Auto-commit of generated files.
[emacs.git] / autogen / configure
blob61c03785f61b60d8f367a99365f34fc43533cb9e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 ns_check_file
608 WINDOW_SYSTEM_OBJ
609 EMACS_HEAPSIZE
610 TEMACS_POST_LINK
611 ADDSECTION
612 LD_SWITCH_SYSTEM_TEMACS
613 LIBGNU_LTLIBDEPS
614 LIBGNU_LIBDEPS
615 gltests_WITNESS
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
617 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
618 gl_GNULIB_ENABLED_tempname_FALSE
619 gl_GNULIB_ENABLED_tempname_TRUE
620 gl_GNULIB_ENABLED_strtoull_FALSE
621 gl_GNULIB_ENABLED_strtoull_TRUE
622 gl_GNULIB_ENABLED_strtoll_FALSE
623 gl_GNULIB_ENABLED_strtoll_TRUE
624 gl_GNULIB_ENABLED_stat_FALSE
625 gl_GNULIB_ENABLED_stat_TRUE
626 gl_GNULIB_ENABLED_secure_getenv_FALSE
627 gl_GNULIB_ENABLED_secure_getenv_TRUE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
629 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
630 gl_GNULIB_ENABLED_pathmax_FALSE
631 gl_GNULIB_ENABLED_pathmax_TRUE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
633 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
635 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
637 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
638 gl_GNULIB_ENABLED_getgroups_FALSE
639 gl_GNULIB_ENABLED_getgroups_TRUE
640 gl_GNULIB_ENABLED_getdtablesize_FALSE
641 gl_GNULIB_ENABLED_getdtablesize_TRUE
642 gl_GNULIB_ENABLED_euidaccess_FALSE
643 gl_GNULIB_ENABLED_euidaccess_TRUE
644 gl_GNULIB_ENABLED_dosname_FALSE
645 gl_GNULIB_ENABLED_dosname_TRUE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
648 LTLIBINTL
649 LIBINTL
650 LIB_EACCESS
651 WINDOWS_64_BIT_OFF_T
652 HAVE_UNISTD_H
653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
654 NEXT_UNISTD_H
655 LIB_TIMER_TIME
656 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
658 TIME_H_DEFINES_STRUCT_TIMESPEC
659 NEXT_AS_FIRST_DIRECTIVE_TIME_H
660 NEXT_TIME_H
661 WINDOWS_64_BIT_ST_SIZE
662 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
663 NEXT_SYS_STAT_H
664 NEXT_AS_FIRST_DIRECTIVE_STRING_H
665 NEXT_STRING_H
666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
667 NEXT_STDLIB_H
668 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 NEXT_STDIO_H
670 REPLACE_VSPRINTF
671 REPLACE_VSNPRINTF
672 REPLACE_VPRINTF
673 REPLACE_VFPRINTF
674 REPLACE_VDPRINTF
675 REPLACE_VASPRINTF
676 REPLACE_TMPFILE
677 REPLACE_STDIO_WRITE_FUNCS
678 REPLACE_STDIO_READ_FUNCS
679 REPLACE_SPRINTF
680 REPLACE_SNPRINTF
681 REPLACE_RENAMEAT
682 REPLACE_RENAME
683 REPLACE_REMOVE
684 REPLACE_PRINTF
685 REPLACE_POPEN
686 REPLACE_PERROR
687 REPLACE_OBSTACK_PRINTF
688 REPLACE_GETLINE
689 REPLACE_GETDELIM
690 REPLACE_FTELLO
691 REPLACE_FTELL
692 REPLACE_FSEEKO
693 REPLACE_FSEEK
694 REPLACE_FREOPEN
695 REPLACE_FPURGE
696 REPLACE_FPRINTF
697 REPLACE_FOPEN
698 REPLACE_FFLUSH
699 REPLACE_FDOPEN
700 REPLACE_FCLOSE
701 REPLACE_DPRINTF
702 HAVE_VDPRINTF
703 HAVE_VASPRINTF
704 HAVE_RENAMEAT
705 HAVE_POPEN
706 HAVE_PCLOSE
707 HAVE_FTELLO
708 HAVE_FSEEKO
709 HAVE_DPRINTF
710 HAVE_DECL_VSNPRINTF
711 HAVE_DECL_SNPRINTF
712 HAVE_DECL_OBSTACK_PRINTF
713 HAVE_DECL_GETLINE
714 HAVE_DECL_GETDELIM
715 HAVE_DECL_FTELLO
716 HAVE_DECL_FSEEKO
717 HAVE_DECL_FPURGE
718 GNULIB_VSPRINTF_POSIX
719 GNULIB_VSNPRINTF
720 GNULIB_VPRINTF_POSIX
721 GNULIB_VPRINTF
722 GNULIB_VFPRINTF_POSIX
723 GNULIB_VFPRINTF
724 GNULIB_VDPRINTF
725 GNULIB_VSCANF
726 GNULIB_VFSCANF
727 GNULIB_VASPRINTF
728 GNULIB_TMPFILE
729 GNULIB_STDIO_H_SIGPIPE
730 GNULIB_STDIO_H_NONBLOCKING
731 GNULIB_SPRINTF_POSIX
732 GNULIB_SNPRINTF
733 GNULIB_SCANF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_PCLOSE
745 GNULIB_OBSTACK_PRINTF_POSIX
746 GNULIB_OBSTACK_PRINTF
747 GNULIB_GETLINE
748 GNULIB_GETDELIM
749 GNULIB_GETCHAR
750 GNULIB_GETC
751 GNULIB_FWRITE
752 GNULIB_FTELLO
753 GNULIB_FTELL
754 GNULIB_FSEEKO
755 GNULIB_FSEEK
756 GNULIB_FSCANF
757 GNULIB_FREOPEN
758 GNULIB_FREAD
759 GNULIB_FPUTS
760 GNULIB_FPUTC
761 GNULIB_FPURGE
762 GNULIB_FPRINTF_POSIX
763 GNULIB_FPRINTF
764 GNULIB_FOPEN
765 GNULIB_FGETS
766 GNULIB_FGETC
767 GNULIB_FFLUSH
768 GNULIB_FDOPEN
769 GNULIB_FCLOSE
770 GNULIB_DPRINTF
771 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
772 NEXT_STDDEF_H
773 GL_GENERATE_STDDEF_H_FALSE
774 GL_GENERATE_STDDEF_H_TRUE
775 STDDEF_H
776 HAVE_WCHAR_T
777 REPLACE_NULL
778 HAVE__BOOL
779 GL_GENERATE_STDBOOL_H_FALSE
780 GL_GENERATE_STDBOOL_H_TRUE
781 STDBOOL_H
782 GL_GENERATE_STDARG_H_FALSE
783 GL_GENERATE_STDARG_H_TRUE
784 STDARG_H
785 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
786 NEXT_STDARG_H
787 GL_GENERATE_STDALIGN_H_FALSE
788 GL_GENERATE_STDALIGN_H_TRUE
789 STDALIGN_H
790 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
791 NEXT_SIGNAL_H
792 USE_ACL
793 LIB_ACL
794 LIB_PTHREAD_SIGMASK
795 REPLACE_RAISE
796 REPLACE_PTHREAD_SIGMASK
797 HAVE_SIGHANDLER_T
798 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
799 HAVE_STRUCT_SIGACTION_SA_SIGACTION
800 HAVE_SIGACTION
801 HAVE_SIGINFO_T
802 HAVE_SIGSET_T
803 HAVE_RAISE
804 HAVE_PTHREAD_SIGMASK
805 HAVE_POSIX_SIGNALBLOCKING
806 GNULIB_SIGACTION
807 GNULIB_SIGPROCMASK
808 GNULIB_SIGNAL_H_SIGPIPE
809 GNULIB_RAISE
810 GNULIB_PTHREAD_SIGMASK
811 HAVE_SYS_SELECT_H
812 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
813 NEXT_SYS_SELECT_H
814 REPLACE_SELECT
815 REPLACE_PSELECT
816 HAVE_PSELECT
817 GNULIB_SELECT
818 GNULIB_PSELECT
819 REPLACE_TIMEGM
820 REPLACE_NANOSLEEP
821 REPLACE_MKTIME
822 REPLACE_LOCALTIME_R
823 HAVE_TIMEGM
824 HAVE_STRPTIME
825 HAVE_NANOSLEEP
826 HAVE_DECL_LOCALTIME_R
827 GNULIB_TIME_R
828 GNULIB_TIMEGM
829 GNULIB_STRPTIME
830 GNULIB_NANOSLEEP
831 GNULIB_MKTIME
832 UNDEFINE_STRTOK_R
833 REPLACE_STRTOK_R
834 REPLACE_STRSIGNAL
835 REPLACE_STRNLEN
836 REPLACE_STRNDUP
837 REPLACE_STRNCAT
838 REPLACE_STRERROR_R
839 REPLACE_STRERROR
840 REPLACE_STRCHRNUL
841 REPLACE_STRCASESTR
842 REPLACE_STRSTR
843 REPLACE_STRDUP
844 REPLACE_STPNCPY
845 REPLACE_MEMMEM
846 REPLACE_MEMCHR
847 HAVE_STRVERSCMP
848 HAVE_DECL_STRSIGNAL
849 HAVE_DECL_STRERROR_R
850 HAVE_DECL_STRTOK_R
851 HAVE_STRCASESTR
852 HAVE_STRSEP
853 HAVE_STRPBRK
854 HAVE_DECL_STRNLEN
855 HAVE_DECL_STRNDUP
856 HAVE_DECL_STRDUP
857 HAVE_STRCHRNUL
858 HAVE_STPNCPY
859 HAVE_STPCPY
860 HAVE_RAWMEMCHR
861 HAVE_DECL_MEMRCHR
862 HAVE_MEMPCPY
863 HAVE_DECL_MEMMEM
864 HAVE_MEMCHR
865 HAVE_FFSLL
866 HAVE_FFSL
867 HAVE_MBSLEN
868 GNULIB_STRVERSCMP
869 GNULIB_STRSIGNAL
870 GNULIB_STRERROR_R
871 GNULIB_STRERROR
872 GNULIB_MBSTOK_R
873 GNULIB_MBSSEP
874 GNULIB_MBSSPN
875 GNULIB_MBSPBRK
876 GNULIB_MBSCSPN
877 GNULIB_MBSCASESTR
878 GNULIB_MBSPCASECMP
879 GNULIB_MBSNCASECMP
880 GNULIB_MBSCASECMP
881 GNULIB_MBSSTR
882 GNULIB_MBSRCHR
883 GNULIB_MBSCHR
884 GNULIB_MBSNLEN
885 GNULIB_MBSLEN
886 GNULIB_STRTOK_R
887 GNULIB_STRCASESTR
888 GNULIB_STRSTR
889 GNULIB_STRSEP
890 GNULIB_STRPBRK
891 GNULIB_STRNLEN
892 GNULIB_STRNDUP
893 GNULIB_STRNCAT
894 GNULIB_STRDUP
895 GNULIB_STRCHRNUL
896 GNULIB_STPNCPY
897 GNULIB_STPCPY
898 GNULIB_RAWMEMCHR
899 GNULIB_MEMRCHR
900 GNULIB_MEMPCPY
901 GNULIB_MEMMEM
902 GNULIB_MEMCHR
903 GNULIB_FFSLL
904 GNULIB_FFSL
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 NEXT_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
909 PRIPTR_PREFIX
910 PRI_MACROS_BROKEN
911 INT64_MAX_EQ_LONG_MAX
912 INT32_MAX_LT_INTMAX_MAX
913 REPLACE_STRTOIMAX
914 HAVE_DECL_STRTOUMAX
915 HAVE_DECL_STRTOIMAX
916 HAVE_DECL_IMAXDIV
917 HAVE_DECL_IMAXABS
918 GNULIB_STRTOUMAX
919 GNULIB_STRTOIMAX
920 GNULIB_IMAXDIV
921 GNULIB_IMAXABS
922 GL_GENERATE_STDINT_H_FALSE
923 GL_GENERATE_STDINT_H_TRUE
924 STDINT_H
925 WINT_T_SUFFIX
926 WCHAR_T_SUFFIX
927 SIG_ATOMIC_T_SUFFIX
928 SIZE_T_SUFFIX
929 PTRDIFF_T_SUFFIX
930 HAVE_SIGNED_WINT_T
931 HAVE_SIGNED_WCHAR_T
932 HAVE_SIGNED_SIG_ATOMIC_T
933 BITSIZEOF_WINT_T
934 BITSIZEOF_WCHAR_T
935 BITSIZEOF_SIG_ATOMIC_T
936 BITSIZEOF_SIZE_T
937 BITSIZEOF_PTRDIFF_T
938 APPLE_UNIVERSAL_BUILD
939 HAVE_SYS_BITYPES_H
940 HAVE_SYS_INTTYPES_H
941 HAVE_STDINT_H
942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
943 NEXT_STDINT_H
944 HAVE_SYS_TYPES_H
945 HAVE_INTTYPES_H
946 HAVE_WCHAR_H
947 HAVE_UNSIGNED_LONG_LONG_INT
948 HAVE_LONG_LONG_INT
949 HAVE_WINSOCK2_H
950 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
951 NEXT_SYS_TIME_H
952 REPLACE_STRUCT_TIMEVAL
953 REPLACE_GETTIMEOFDAY
954 HAVE_SYS_TIME_H
955 HAVE_STRUCT_TIMEVAL
956 HAVE_GETTIMEOFDAY
957 GNULIB_GETTIMEOFDAY
958 GNULIB_GL_UNISTD_H_GETOPT
959 GETOPT_H
960 HAVE_GETOPT_H
961 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
962 NEXT_GETOPT_H
963 GETLOADAVG_LIBS
964 REPLACE_WCTOMB
965 REPLACE_UNSETENV
966 REPLACE_STRTOD
967 REPLACE_SETENV
968 REPLACE_REALPATH
969 REPLACE_REALLOC
970 REPLACE_RANDOM_R
971 REPLACE_PUTENV
972 REPLACE_PTSNAME_R
973 REPLACE_PTSNAME
974 REPLACE_MKSTEMP
975 REPLACE_MBTOWC
976 REPLACE_MALLOC
977 REPLACE_CANONICALIZE_FILE_NAME
978 REPLACE_CALLOC
979 HAVE_DECL_UNSETENV
980 HAVE_UNLOCKPT
981 HAVE_SYS_LOADAVG_H
982 HAVE_STRUCT_RANDOM_DATA
983 HAVE_STRTOULL
984 HAVE_STRTOLL
985 HAVE_STRTOD
986 HAVE_DECL_SETENV
987 HAVE_SETENV
988 HAVE_SECURE_GETENV
989 HAVE_RPMATCH
990 HAVE_REALPATH
991 HAVE_RANDOM_R
992 HAVE_RANDOM_H
993 HAVE_RANDOM
994 HAVE_PTSNAME_R
995 HAVE_PTSNAME
996 HAVE_POSIX_OPENPT
997 HAVE_MKSTEMPS
998 HAVE_MKSTEMP
999 HAVE_MKOSTEMPS
1000 HAVE_MKOSTEMP
1001 HAVE_MKDTEMP
1002 HAVE_GRANTPT
1003 HAVE_GETSUBOPT
1004 HAVE_DECL_GETLOADAVG
1005 HAVE_CANONICALIZE_FILE_NAME
1006 HAVE_ATOLL
1007 HAVE__EXIT
1008 GNULIB_WCTOMB
1009 GNULIB_UNSETENV
1010 GNULIB_UNLOCKPT
1011 GNULIB_SYSTEM_POSIX
1012 GNULIB_STRTOULL
1013 GNULIB_STRTOLL
1014 GNULIB_STRTOD
1015 GNULIB_SETENV
1016 GNULIB_SECURE_GETENV
1017 GNULIB_RPMATCH
1018 GNULIB_REALPATH
1019 GNULIB_REALLOC_POSIX
1020 GNULIB_RANDOM_R
1021 GNULIB_RANDOM
1022 GNULIB_PUTENV
1023 GNULIB_PTSNAME_R
1024 GNULIB_PTSNAME
1025 GNULIB_POSIX_OPENPT
1026 GNULIB_MKSTEMPS
1027 GNULIB_MKSTEMP
1028 GNULIB_MKOSTEMPS
1029 GNULIB_MKOSTEMP
1030 GNULIB_MKDTEMP
1031 GNULIB_MBTOWC
1032 GNULIB_MALLOC_POSIX
1033 GNULIB_GRANTPT
1034 GNULIB_GETSUBOPT
1035 GNULIB_GETLOADAVG
1036 GNULIB_CANONICALIZE_FILE_NAME
1037 GNULIB_CALLOC_POSIX
1038 GNULIB_ATOLL
1039 GNULIB__EXIT
1040 REPLACE_UTIMENSAT
1041 REPLACE_STAT
1042 REPLACE_MKNOD
1043 REPLACE_MKFIFO
1044 REPLACE_MKDIR
1045 REPLACE_LSTAT
1046 REPLACE_FUTIMENS
1047 REPLACE_FSTATAT
1048 REPLACE_FSTAT
1049 HAVE_UTIMENSAT
1050 HAVE_MKNODAT
1051 HAVE_MKNOD
1052 HAVE_MKFIFOAT
1053 HAVE_MKFIFO
1054 HAVE_MKDIRAT
1055 HAVE_LSTAT
1056 HAVE_LCHMOD
1057 HAVE_FUTIMENS
1058 HAVE_FSTATAT
1059 HAVE_FCHMODAT
1060 GNULIB_UTIMENSAT
1061 GNULIB_STAT
1062 GNULIB_MKNODAT
1063 GNULIB_MKNOD
1064 GNULIB_MKFIFOAT
1065 GNULIB_MKFIFO
1066 GNULIB_MKDIRAT
1067 GNULIB_LSTAT
1068 GNULIB_LCHMOD
1069 GNULIB_FUTIMENS
1070 GNULIB_FSTATAT
1071 GNULIB_FSTAT
1072 GNULIB_FCHMODAT
1073 LIB_FDATASYNC
1074 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1075 NEXT_FCNTL_H
1076 REPLACE_OPENAT
1077 REPLACE_OPEN
1078 REPLACE_FCNTL
1079 HAVE_OPENAT
1080 HAVE_FCNTL
1081 GNULIB_OPENAT
1082 GNULIB_OPEN
1083 GNULIB_NONBLOCKING
1084 GNULIB_FCNTL
1085 GL_GENERATE_EXECINFO_H_FALSE
1086 GL_GENERATE_EXECINFO_H_TRUE
1087 LIB_EXECINFO
1088 EXECINFO_H
1089 EOVERFLOW_VALUE
1090 EOVERFLOW_HIDDEN
1091 ENOLINK_VALUE
1092 ENOLINK_HIDDEN
1093 EMULTIHOP_VALUE
1094 EMULTIHOP_HIDDEN
1095 GL_GENERATE_ERRNO_H_FALSE
1096 GL_GENERATE_ERRNO_H_TRUE
1097 ERRNO_H
1098 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1099 NEXT_ERRNO_H
1100 HAVE_DIRENT_H
1101 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1102 NEXT_DIRENT_H
1103 PRAGMA_COLUMNS
1104 PRAGMA_SYSTEM_HEADER
1105 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1106 INCLUDE_NEXT
1107 REPLACE_FDOPENDIR
1108 REPLACE_DIRFD
1109 REPLACE_CLOSEDIR
1110 REPLACE_OPENDIR
1111 HAVE_ALPHASORT
1112 HAVE_SCANDIR
1113 HAVE_FDOPENDIR
1114 HAVE_DECL_FDOPENDIR
1115 HAVE_DECL_DIRFD
1116 HAVE_CLOSEDIR
1117 HAVE_REWINDDIR
1118 HAVE_READDIR
1119 HAVE_OPENDIR
1120 GNULIB_ALPHASORT
1121 GNULIB_SCANDIR
1122 GNULIB_FDOPENDIR
1123 GNULIB_DIRFD
1124 GNULIB_CLOSEDIR
1125 GNULIB_REWINDDIR
1126 GNULIB_READDIR
1127 GNULIB_OPENDIR
1128 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1129 UNISTD_H_HAVE_WINSOCK2_H
1130 REPLACE_WRITE
1131 REPLACE_USLEEP
1132 REPLACE_UNLINKAT
1133 REPLACE_UNLINK
1134 REPLACE_TTYNAME_R
1135 REPLACE_SYMLINK
1136 REPLACE_SLEEP
1137 REPLACE_RMDIR
1138 REPLACE_READLINK
1139 REPLACE_READ
1140 REPLACE_PWRITE
1141 REPLACE_PREAD
1142 REPLACE_LSEEK
1143 REPLACE_LINKAT
1144 REPLACE_LINK
1145 REPLACE_LCHOWN
1146 REPLACE_ISATTY
1147 REPLACE_GETPAGESIZE
1148 REPLACE_GETGROUPS
1149 REPLACE_GETLOGIN_R
1150 REPLACE_GETDOMAINNAME
1151 REPLACE_GETCWD
1152 REPLACE_FTRUNCATE
1153 REPLACE_FCHOWNAT
1154 REPLACE_DUP2
1155 REPLACE_DUP
1156 REPLACE_CLOSE
1157 REPLACE_CHOWN
1158 HAVE_SYS_PARAM_H
1159 HAVE_OS_H
1160 HAVE_DECL_TTYNAME_R
1161 HAVE_DECL_SETHOSTNAME
1162 HAVE_DECL_GETUSERSHELL
1163 HAVE_DECL_GETPAGESIZE
1164 HAVE_DECL_GETLOGIN_R
1165 HAVE_DECL_GETDOMAINNAME
1166 HAVE_DECL_FDATASYNC
1167 HAVE_DECL_FCHDIR
1168 HAVE_DECL_ENVIRON
1169 HAVE_USLEEP
1170 HAVE_UNLINKAT
1171 HAVE_SYMLINKAT
1172 HAVE_SYMLINK
1173 HAVE_SLEEP
1174 HAVE_SETHOSTNAME
1175 HAVE_READLINKAT
1176 HAVE_READLINK
1177 HAVE_PWRITE
1178 HAVE_PREAD
1179 HAVE_PIPE2
1180 HAVE_PIPE
1181 HAVE_LINKAT
1182 HAVE_LINK
1183 HAVE_LCHOWN
1184 HAVE_GROUP_MEMBER
1185 HAVE_GETPAGESIZE
1186 HAVE_GETLOGIN
1187 HAVE_GETHOSTNAME
1188 HAVE_GETGROUPS
1189 HAVE_GETDTABLESIZE
1190 HAVE_FTRUNCATE
1191 HAVE_FSYNC
1192 HAVE_FDATASYNC
1193 HAVE_FCHOWNAT
1194 HAVE_FCHDIR
1195 HAVE_FACCESSAT
1196 HAVE_EUIDACCESS
1197 HAVE_DUP3
1198 HAVE_DUP2
1199 HAVE_CHOWN
1200 GNULIB_WRITE
1201 GNULIB_USLEEP
1202 GNULIB_UNLINKAT
1203 GNULIB_UNLINK
1204 GNULIB_UNISTD_H_SIGPIPE
1205 GNULIB_UNISTD_H_NONBLOCKING
1206 GNULIB_TTYNAME_R
1207 GNULIB_SYMLINKAT
1208 GNULIB_SYMLINK
1209 GNULIB_SLEEP
1210 GNULIB_SETHOSTNAME
1211 GNULIB_RMDIR
1212 GNULIB_READLINKAT
1213 GNULIB_READLINK
1214 GNULIB_READ
1215 GNULIB_PWRITE
1216 GNULIB_PREAD
1217 GNULIB_PIPE2
1218 GNULIB_PIPE
1219 GNULIB_LSEEK
1220 GNULIB_LINKAT
1221 GNULIB_LINK
1222 GNULIB_LCHOWN
1223 GNULIB_ISATTY
1224 GNULIB_GROUP_MEMBER
1225 GNULIB_GETUSERSHELL
1226 GNULIB_GETPAGESIZE
1227 GNULIB_GETLOGIN_R
1228 GNULIB_GETLOGIN
1229 GNULIB_GETHOSTNAME
1230 GNULIB_GETGROUPS
1231 GNULIB_GETDTABLESIZE
1232 GNULIB_GETDOMAINNAME
1233 GNULIB_GETCWD
1234 GNULIB_FTRUNCATE
1235 GNULIB_FSYNC
1236 GNULIB_FDATASYNC
1237 GNULIB_FCHOWNAT
1238 GNULIB_FCHDIR
1239 GNULIB_FACCESSAT
1240 GNULIB_EUIDACCESS
1241 GNULIB_ENVIRON
1242 GNULIB_DUP3
1243 GNULIB_DUP2
1244 GNULIB_DUP
1245 GNULIB_CLOSE
1246 GNULIB_CHOWN
1247 GNULIB_CHDIR
1248 LIB_CLOCK_GETTIME
1249 GL_GENERATE_ALLOCA_H_FALSE
1250 GL_GENERATE_ALLOCA_H_TRUE
1251 ALLOCA_H
1252 ALLOCA
1253 GL_COND_LIBTOOL_FALSE
1254 GL_COND_LIBTOOL_TRUE
1255 POST_ALLOC_OBJ
1256 PRE_ALLOC_OBJ
1257 CYGWIN_OBJ
1258 RALLOC_OBJ
1259 OLDXMENU_DEPS
1260 LIBX_OTHER
1261 LIBXMENU
1262 OLDXMENU
1263 OLDXMENU_TARGET
1264 LIBXT_OTHER
1265 TOOLKIT_LIBW
1266 WIDGET_OBJ
1267 XOBJ
1268 XMENU_OBJ
1269 FONT_OBJ
1270 OTHER_FILES
1271 GNU_OBJC_CFLAGS
1272 ns_appsrc
1273 ns_appresdir
1274 ns_appbindir
1275 ns_appdir
1276 X_TOOLKIT_TYPE
1277 GNUSTEP_CFLAGS
1278 C_SWITCH_X_SITE
1279 LD_SWITCH_X_SITE
1280 gameuser
1281 gamedir
1282 bitmapdir
1283 etcdocdir
1284 archlibdir
1285 etcdir
1286 x_default_search_path
1287 lisppath
1288 locallisppath
1289 standardlisppath
1290 leimdir
1291 lispdir
1292 srcdir
1293 canonical
1294 configuration
1295 version
1296 copyright
1297 XGSELOBJ
1298 KRB4LIB
1299 DESLIB
1300 KRB5LIB
1301 CRYPTOLIB
1302 COM_ERRLIB
1303 LIBRESOLV
1304 LIBHESIOD
1305 TERMCAP_OBJ
1306 LIBS_TERMCAP
1307 BLESSMAIL_TARGET
1308 LIBS_MAIL
1309 liblockfile
1310 LIBXML2_LIBS
1311 LIBXML2_CFLAGS
1312 XINERAMA_LIBS
1313 XINERAMA_CFLAGS
1314 XRANDR_LIBS
1315 XRANDR_CFLAGS
1316 LIBXSM
1317 LIBGPM
1318 LIBGIF
1319 LIBTIFF
1320 LIBZ
1321 LIBPNG
1322 LIBJPEG
1323 LIBXPM
1324 M17N_FLT_LIBS
1325 M17N_FLT_CFLAGS
1326 LIBOTF_LIBS
1327 LIBOTF_CFLAGS
1328 FREETYPE_LIBS
1329 FREETYPE_CFLAGS
1330 XFT_LIBS
1331 XFT_CFLAGS
1332 FONTCONFIG_LIBS
1333 FONTCONFIG_CFLAGS
1334 LIBXMU
1335 LIBXTR6
1336 NOTIFY_OBJ
1337 GFILENOTIFY_LIBS
1338 GFILENOTIFY_CFLAGS
1339 LIBGNUTLS_LIBS
1340 LIBGNUTLS_CFLAGS
1341 LIBSELINUX_LIBS
1342 SETTINGS_LIBS
1343 SETTINGS_CFLAGS
1344 GOBJECT_LIBS
1345 GOBJECT_CFLAGS
1346 GCONF_LIBS
1347 GCONF_CFLAGS
1348 GSETTINGS_LIBS
1349 GSETTINGS_CFLAGS
1350 DBUS_OBJ
1351 DBUS_LIBS
1352 DBUS_CFLAGS
1353 GTK_OBJ
1354 GTK_LIBS
1355 GTK_CFLAGS
1356 IMAGEMAGICK_LIBS
1357 IMAGEMAGICK_CFLAGS
1358 RSVG_LIBS
1359 RSVG_CFLAGS
1360 LIB_PTHREAD
1361 VMLIMIT_OBJ
1362 GMALLOC_OBJ
1363 HAVE_XSERVER
1364 XARGS_LIMIT
1365 NTLIB
1366 LIB_WSOCK32
1367 LIBS_ECLIENT
1368 CM_OBJ
1369 NTDIR
1370 FIRSTFILE_OBJ
1371 W32_RES_LINK
1372 CLIENTW
1373 CLIENTRES
1374 UPDATE_MANIFEST
1375 EMACS_MANIFEST
1376 EMACSRES
1377 W32_LIBS
1378 W32_OBJ
1379 WINDRES
1380 NS_OBJC_OBJ
1381 NS_OBJ
1382 ns_self_contained
1383 INSTALL_ARCH_INDEP_EXTRA
1384 LIBS_GNUSTEP
1385 LD_SWITCH_X_SITE_RPATH
1386 XMKMF
1387 DEPFLAGS
1388 MKDEPDIR
1389 CFLAGS_SOUND
1390 ALSA_LIBS
1391 ALSA_CFLAGS
1392 LIBSOUND
1393 PKG_CONFIG
1394 LIB_MATH
1395 LIBS_SYSTEM
1396 C_SWITCH_SYSTEM
1397 UNEXEC_OBJ
1398 C_SWITCH_MACHINE
1399 LD_SWITCH_SYSTEM
1400 CANNOT_DUMP
1401 DOCMISC_W32
1402 INFO_OPTS
1403 INFO_EXT
1404 HAVE_MAKEINFO
1405 PAXCTL
1406 GZIP_PROG
1407 INSTALL_INFO
1408 LN_S_FILEONLY
1409 GNULIB_WARN_CFLAGS
1410 WARN_CFLAGS
1411 WERROR_CFLAGS
1412 RANLIB
1413 ARFLAGS
1415 EGREP
1416 GREP
1418 BUILDING_FOR_WINDOWSNT_FALSE
1419 BUILDING_FOR_WINDOWSNT_TRUE
1420 am__fastdepCC_FALSE
1421 am__fastdepCC_TRUE
1422 CCDEPMODE
1423 AMDEPBACKSLASH
1424 AMDEP_FALSE
1425 AMDEP_TRUE
1426 am__quote
1427 am__include
1428 DEPDIR
1429 OBJEXT
1430 EXEEXT
1431 ac_ct_CC
1432 CPPFLAGS
1433 LDFLAGS
1434 CFLAGS
1436 host_os
1437 host_vendor
1438 host_cpu
1439 host
1440 build_os
1441 build_vendor
1442 build_cpu
1443 build
1444 PROFILING_CFLAGS
1445 GZIP_INFO
1446 cache_file
1447 am__untar
1448 am__tar
1449 AMTAR
1450 am__leading_dot
1451 SET_MAKE
1453 mkdir_p
1454 MKDIR_P
1455 INSTALL_STRIP_PROGRAM
1456 STRIP
1457 install_sh
1458 MAKEINFO
1459 AUTOHEADER
1460 AUTOMAKE
1461 AUTOCONF
1462 ACLOCAL
1463 VERSION
1464 PACKAGE
1465 CYGPATH_W
1466 am__isrc
1467 INSTALL_DATA
1468 INSTALL_SCRIPT
1469 INSTALL_PROGRAM
1470 target_alias
1471 host_alias
1472 build_alias
1473 LIBS
1474 ECHO_T
1475 ECHO_N
1476 ECHO_C
1477 DEFS
1478 mandir
1479 localedir
1480 libdir
1481 psdir
1482 pdfdir
1483 dvidir
1484 htmldir
1485 infodir
1486 docdir
1487 oldincludedir
1488 includedir
1489 localstatedir
1490 sharedstatedir
1491 sysconfdir
1492 datadir
1493 datarootdir
1494 libexecdir
1495 sbindir
1496 bindir
1497 program_transform_name
1498 prefix
1499 exec_prefix
1500 PACKAGE_URL
1501 PACKAGE_BUGREPORT
1502 PACKAGE_STRING
1503 PACKAGE_VERSION
1504 PACKAGE_TARNAME
1505 PACKAGE_NAME
1506 PATH_SEPARATOR
1507 SHELL'
1508 ac_subst_files='deps_frag
1509 lisp_frag'
1510 ac_user_opts='
1511 enable_option_checking
1512 with_all
1513 with_pop
1514 with_kerberos
1515 with_kerberos5
1516 with_hesiod
1517 with_mmdf
1518 with_mail_unlink
1519 with_mailhost
1520 with_sound
1521 with_x_toolkit
1522 with_wide_int
1523 with_xpm
1524 with_jpeg
1525 with_tiff
1526 with_gif
1527 with_png
1528 with_rsvg
1529 with_xml2
1530 with_imagemagick
1531 with_xft
1532 with_libotf
1533 with_m17n_flt
1534 with_toolkit_scroll_bars
1535 with_xaw3d
1536 with_xim
1537 with_ns
1538 with_w32
1539 with_gpm
1540 with_dbus
1541 with_gconf
1542 with_gsettings
1543 with_selinux
1544 with_gnutls
1545 with_zlib
1546 with_file_notification
1547 with_makeinfo
1548 with_compress_info
1549 with_pkg_config_prog
1550 with_gameuser
1551 with_gnustep_conf
1552 enable_ns_self_contained
1553 enable_locallisppath
1554 enable_checking
1555 enable_check_lisp_object_type
1556 enable_profiling
1557 enable_autodepend
1558 enable_gtk_deprecation_warnings
1559 enable_dependency_tracking
1560 enable_largefile
1561 enable_gcc_warnings
1562 enable_link_time_optimization
1563 with_x
1564 enable_acl
1566 ac_precious_vars='build_alias
1567 host_alias
1568 target_alias
1570 CFLAGS
1571 LDFLAGS
1572 LIBS
1573 CPPFLAGS
1575 XMKMF'
1578 # Initialize some variables set by options.
1579 ac_init_help=
1580 ac_init_version=false
1581 ac_unrecognized_opts=
1582 ac_unrecognized_sep=
1583 # The variables have the same names as the options, with
1584 # dashes changed to underlines.
1585 cache_file=/dev/null
1586 exec_prefix=NONE
1587 no_create=
1588 no_recursion=
1589 prefix=NONE
1590 program_prefix=NONE
1591 program_suffix=NONE
1592 program_transform_name=s,x,x,
1593 silent=
1594 site=
1595 srcdir=
1596 verbose=
1597 x_includes=NONE
1598 x_libraries=NONE
1600 # Installation directory options.
1601 # These are left unexpanded so users can "make install exec_prefix=/foo"
1602 # and all the variables that are supposed to be based on exec_prefix
1603 # by default will actually change.
1604 # Use braces instead of parens because sh, perl, etc. also accept them.
1605 # (The list follows the same order as the GNU Coding Standards.)
1606 bindir='${exec_prefix}/bin'
1607 sbindir='${exec_prefix}/sbin'
1608 libexecdir='${exec_prefix}/libexec'
1609 datarootdir='${prefix}/share'
1610 datadir='${datarootdir}'
1611 sysconfdir='${prefix}/etc'
1612 sharedstatedir='${prefix}/com'
1613 localstatedir='${prefix}/var'
1614 includedir='${prefix}/include'
1615 oldincludedir='/usr/include'
1616 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1617 infodir='${datarootdir}/info'
1618 htmldir='${docdir}'
1619 dvidir='${docdir}'
1620 pdfdir='${docdir}'
1621 psdir='${docdir}'
1622 libdir='${exec_prefix}/lib'
1623 localedir='${datarootdir}/locale'
1624 mandir='${datarootdir}/man'
1626 ac_prev=
1627 ac_dashdash=
1628 for ac_option
1630 # If the previous option needs an argument, assign it.
1631 if test -n "$ac_prev"; then
1632 eval $ac_prev=\$ac_option
1633 ac_prev=
1634 continue
1637 case $ac_option in
1638 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1639 *) ac_optarg=yes ;;
1640 esac
1642 # Accept the important Cygnus configure options, so we can diagnose typos.
1644 case $ac_dashdash$ac_option in
1646 ac_dashdash=yes ;;
1648 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1649 ac_prev=bindir ;;
1650 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1651 bindir=$ac_optarg ;;
1653 -build | --build | --buil | --bui | --bu)
1654 ac_prev=build_alias ;;
1655 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1656 build_alias=$ac_optarg ;;
1658 -cache-file | --cache-file | --cache-fil | --cache-fi \
1659 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1660 ac_prev=cache_file ;;
1661 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1662 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1663 cache_file=$ac_optarg ;;
1665 --config-cache | -C)
1666 cache_file=config.cache ;;
1668 -datadir | --datadir | --datadi | --datad)
1669 ac_prev=datadir ;;
1670 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1671 datadir=$ac_optarg ;;
1673 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1674 | --dataroo | --dataro | --datar)
1675 ac_prev=datarootdir ;;
1676 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1677 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1678 datarootdir=$ac_optarg ;;
1680 -disable-* | --disable-*)
1681 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1684 as_fn_error "invalid feature name: $ac_useropt"
1685 ac_useropt_orig=$ac_useropt
1686 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687 case $ac_user_opts in
1689 "enable_$ac_useropt"
1690 "*) ;;
1691 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1692 ac_unrecognized_sep=', ';;
1693 esac
1694 eval enable_$ac_useropt=no ;;
1696 -docdir | --docdir | --docdi | --doc | --do)
1697 ac_prev=docdir ;;
1698 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1699 docdir=$ac_optarg ;;
1701 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1702 ac_prev=dvidir ;;
1703 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1704 dvidir=$ac_optarg ;;
1706 -enable-* | --enable-*)
1707 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1708 # Reject names that are not valid shell variable names.
1709 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1710 as_fn_error "invalid feature name: $ac_useropt"
1711 ac_useropt_orig=$ac_useropt
1712 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1713 case $ac_user_opts in
1715 "enable_$ac_useropt"
1716 "*) ;;
1717 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1718 ac_unrecognized_sep=', ';;
1719 esac
1720 eval enable_$ac_useropt=\$ac_optarg ;;
1722 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1723 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1724 | --exec | --exe | --ex)
1725 ac_prev=exec_prefix ;;
1726 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1727 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1728 | --exec=* | --exe=* | --ex=*)
1729 exec_prefix=$ac_optarg ;;
1731 -gas | --gas | --ga | --g)
1732 # Obsolete; use --with-gas.
1733 with_gas=yes ;;
1735 -help | --help | --hel | --he | -h)
1736 ac_init_help=long ;;
1737 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1738 ac_init_help=recursive ;;
1739 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1740 ac_init_help=short ;;
1742 -host | --host | --hos | --ho)
1743 ac_prev=host_alias ;;
1744 -host=* | --host=* | --hos=* | --ho=*)
1745 host_alias=$ac_optarg ;;
1747 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1748 ac_prev=htmldir ;;
1749 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1750 | --ht=*)
1751 htmldir=$ac_optarg ;;
1753 -includedir | --includedir | --includedi | --included | --include \
1754 | --includ | --inclu | --incl | --inc)
1755 ac_prev=includedir ;;
1756 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1757 | --includ=* | --inclu=* | --incl=* | --inc=*)
1758 includedir=$ac_optarg ;;
1760 -infodir | --infodir | --infodi | --infod | --info | --inf)
1761 ac_prev=infodir ;;
1762 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1763 infodir=$ac_optarg ;;
1765 -libdir | --libdir | --libdi | --libd)
1766 ac_prev=libdir ;;
1767 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1768 libdir=$ac_optarg ;;
1770 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1771 | --libexe | --libex | --libe)
1772 ac_prev=libexecdir ;;
1773 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1774 | --libexe=* | --libex=* | --libe=*)
1775 libexecdir=$ac_optarg ;;
1777 -localedir | --localedir | --localedi | --localed | --locale)
1778 ac_prev=localedir ;;
1779 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1780 localedir=$ac_optarg ;;
1782 -localstatedir | --localstatedir | --localstatedi | --localstated \
1783 | --localstate | --localstat | --localsta | --localst | --locals)
1784 ac_prev=localstatedir ;;
1785 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1786 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1787 localstatedir=$ac_optarg ;;
1789 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1790 ac_prev=mandir ;;
1791 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1792 mandir=$ac_optarg ;;
1794 -nfp | --nfp | --nf)
1795 # Obsolete; use --without-fp.
1796 with_fp=no ;;
1798 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1799 | --no-cr | --no-c | -n)
1800 no_create=yes ;;
1802 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1803 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1804 no_recursion=yes ;;
1806 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1807 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1808 | --oldin | --oldi | --old | --ol | --o)
1809 ac_prev=oldincludedir ;;
1810 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1811 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1812 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1813 oldincludedir=$ac_optarg ;;
1815 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1816 ac_prev=prefix ;;
1817 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1818 prefix=$ac_optarg ;;
1820 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1821 | --program-pre | --program-pr | --program-p)
1822 ac_prev=program_prefix ;;
1823 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1824 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1825 program_prefix=$ac_optarg ;;
1827 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1828 | --program-suf | --program-su | --program-s)
1829 ac_prev=program_suffix ;;
1830 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1831 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1832 program_suffix=$ac_optarg ;;
1834 -program-transform-name | --program-transform-name \
1835 | --program-transform-nam | --program-transform-na \
1836 | --program-transform-n | --program-transform- \
1837 | --program-transform | --program-transfor \
1838 | --program-transfo | --program-transf \
1839 | --program-trans | --program-tran \
1840 | --progr-tra | --program-tr | --program-t)
1841 ac_prev=program_transform_name ;;
1842 -program-transform-name=* | --program-transform-name=* \
1843 | --program-transform-nam=* | --program-transform-na=* \
1844 | --program-transform-n=* | --program-transform-=* \
1845 | --program-transform=* | --program-transfor=* \
1846 | --program-transfo=* | --program-transf=* \
1847 | --program-trans=* | --program-tran=* \
1848 | --progr-tra=* | --program-tr=* | --program-t=*)
1849 program_transform_name=$ac_optarg ;;
1851 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1852 ac_prev=pdfdir ;;
1853 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1854 pdfdir=$ac_optarg ;;
1856 -psdir | --psdir | --psdi | --psd | --ps)
1857 ac_prev=psdir ;;
1858 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1859 psdir=$ac_optarg ;;
1861 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1862 | -silent | --silent | --silen | --sile | --sil)
1863 silent=yes ;;
1865 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1866 ac_prev=sbindir ;;
1867 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1868 | --sbi=* | --sb=*)
1869 sbindir=$ac_optarg ;;
1871 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1872 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1873 | --sharedst | --shareds | --shared | --share | --shar \
1874 | --sha | --sh)
1875 ac_prev=sharedstatedir ;;
1876 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1877 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1878 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1879 | --sha=* | --sh=*)
1880 sharedstatedir=$ac_optarg ;;
1882 -site | --site | --sit)
1883 ac_prev=site ;;
1884 -site=* | --site=* | --sit=*)
1885 site=$ac_optarg ;;
1887 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1888 ac_prev=srcdir ;;
1889 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1890 srcdir=$ac_optarg ;;
1892 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1893 | --syscon | --sysco | --sysc | --sys | --sy)
1894 ac_prev=sysconfdir ;;
1895 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1896 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1897 sysconfdir=$ac_optarg ;;
1899 -target | --target | --targe | --targ | --tar | --ta | --t)
1900 ac_prev=target_alias ;;
1901 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1902 target_alias=$ac_optarg ;;
1904 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1905 verbose=yes ;;
1907 -version | --version | --versio | --versi | --vers | -V)
1908 ac_init_version=: ;;
1910 -with-* | --with-*)
1911 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1912 # Reject names that are not valid shell variable names.
1913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1914 as_fn_error "invalid package name: $ac_useropt"
1915 ac_useropt_orig=$ac_useropt
1916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1917 case $ac_user_opts in
1919 "with_$ac_useropt"
1920 "*) ;;
1921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1922 ac_unrecognized_sep=', ';;
1923 esac
1924 eval with_$ac_useropt=\$ac_optarg ;;
1926 -without-* | --without-*)
1927 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1928 # Reject names that are not valid shell variable names.
1929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1930 as_fn_error "invalid package name: $ac_useropt"
1931 ac_useropt_orig=$ac_useropt
1932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1933 case $ac_user_opts in
1935 "with_$ac_useropt"
1936 "*) ;;
1937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1938 ac_unrecognized_sep=', ';;
1939 esac
1940 eval with_$ac_useropt=no ;;
1942 --x)
1943 # Obsolete; use --with-x.
1944 with_x=yes ;;
1946 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1947 | --x-incl | --x-inc | --x-in | --x-i)
1948 ac_prev=x_includes ;;
1949 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1950 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1951 x_includes=$ac_optarg ;;
1953 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1954 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1955 ac_prev=x_libraries ;;
1956 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1957 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1958 x_libraries=$ac_optarg ;;
1960 -*) as_fn_error "unrecognized option: \`$ac_option'
1961 Try \`$0 --help' for more information."
1964 *=*)
1965 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1966 # Reject names that are not valid shell variable names.
1967 case $ac_envvar in #(
1968 '' | [0-9]* | *[!_$as_cr_alnum]* )
1969 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1970 esac
1971 eval $ac_envvar=\$ac_optarg
1972 export $ac_envvar ;;
1975 # FIXME: should be removed in autoconf 3.0.
1976 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1977 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1978 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1979 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1982 esac
1983 done
1985 if test -n "$ac_prev"; then
1986 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1987 as_fn_error "missing argument to $ac_option"
1990 if test -n "$ac_unrecognized_opts"; then
1991 case $enable_option_checking in
1992 no) ;;
1993 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1994 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1995 esac
1998 # Check all directory arguments for consistency.
1999 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2000 datadir sysconfdir sharedstatedir localstatedir includedir \
2001 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2002 libdir localedir mandir
2004 eval ac_val=\$$ac_var
2005 # Remove trailing slashes.
2006 case $ac_val in
2007 */ )
2008 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2009 eval $ac_var=\$ac_val;;
2010 esac
2011 # Be sure to have absolute directory names.
2012 case $ac_val in
2013 [\\/$]* | ?:[\\/]* ) continue;;
2014 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2015 esac
2016 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2017 done
2019 # There might be people who depend on the old broken behavior: `$host'
2020 # used to hold the argument of --host etc.
2021 # FIXME: To remove some day.
2022 build=$build_alias
2023 host=$host_alias
2024 target=$target_alias
2026 # FIXME: To remove some day.
2027 if test "x$host_alias" != x; then
2028 if test "x$build_alias" = x; then
2029 cross_compiling=maybe
2030 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2031 If a cross compiler is detected then cross compile mode will be used." >&2
2032 elif test "x$build_alias" != "x$host_alias"; then
2033 cross_compiling=yes
2037 ac_tool_prefix=
2038 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2040 test "$silent" = yes && exec 6>/dev/null
2043 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2044 ac_ls_di=`ls -di .` &&
2045 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2046 as_fn_error "working directory cannot be determined"
2047 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2048 as_fn_error "pwd does not report name of working directory"
2051 # Find the source files, if location was not specified.
2052 if test -z "$srcdir"; then
2053 ac_srcdir_defaulted=yes
2054 # Try the directory containing this script, then the parent directory.
2055 ac_confdir=`$as_dirname -- "$as_myself" ||
2056 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2057 X"$as_myself" : 'X\(//\)[^/]' \| \
2058 X"$as_myself" : 'X\(//\)$' \| \
2059 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2060 $as_echo X"$as_myself" |
2061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2062 s//\1/
2065 /^X\(\/\/\)[^/].*/{
2066 s//\1/
2069 /^X\(\/\/\)$/{
2070 s//\1/
2073 /^X\(\/\).*/{
2074 s//\1/
2077 s/.*/./; q'`
2078 srcdir=$ac_confdir
2079 if test ! -r "$srcdir/$ac_unique_file"; then
2080 srcdir=..
2082 else
2083 ac_srcdir_defaulted=no
2085 if test ! -r "$srcdir/$ac_unique_file"; then
2086 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2087 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2089 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2090 ac_abs_confdir=`(
2091 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2092 pwd)`
2093 # When building in place, set srcdir=.
2094 if test "$ac_abs_confdir" = "$ac_pwd"; then
2095 srcdir=.
2097 # Remove unnecessary trailing slashes from srcdir.
2098 # Double slashes in file names in object file debugging info
2099 # mess up M-x gdb in Emacs.
2100 case $srcdir in
2101 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2102 esac
2103 for ac_var in $ac_precious_vars; do
2104 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2105 eval ac_env_${ac_var}_value=\$${ac_var}
2106 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2107 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2108 done
2111 # Report the --help message.
2113 if test "$ac_init_help" = "long"; then
2114 # Omit some internal or obsolete options to make the list less imposing.
2115 # This message is too long to be a string in the A/UX 3.1 sh.
2116 cat <<_ACEOF
2117 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2119 Usage: $0 [OPTION]... [VAR=VALUE]...
2121 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2122 VAR=VALUE. See below for descriptions of some of the useful variables.
2124 Defaults for the options are specified in brackets.
2126 Configuration:
2127 -h, --help display this help and exit
2128 --help=short display options specific to this package
2129 --help=recursive display the short help of all the included packages
2130 -V, --version display version information and exit
2131 -q, --quiet, --silent do not print \`checking...' messages
2132 --cache-file=FILE cache test results in FILE [disabled]
2133 -C, --config-cache alias for \`--cache-file=config.cache'
2134 -n, --no-create do not create output files
2135 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2137 Installation directories:
2138 --prefix=PREFIX install architecture-independent files in PREFIX
2139 [$ac_default_prefix]
2140 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2141 [PREFIX]
2143 By default, \`make install' will install all the files in
2144 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2145 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2146 for instance \`--prefix=\$HOME'.
2148 For better control, use the options below.
2150 Fine tuning of the installation directories:
2151 --bindir=DIR user executables [EPREFIX/bin]
2152 --sbindir=DIR system admin executables [EPREFIX/sbin]
2153 --libexecdir=DIR program executables [EPREFIX/libexec]
2154 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2155 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2156 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2157 --libdir=DIR object code libraries [EPREFIX/lib]
2158 --includedir=DIR C header files [PREFIX/include]
2159 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2160 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2161 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2162 --infodir=DIR info documentation [DATAROOTDIR/info]
2163 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2164 --mandir=DIR man documentation [DATAROOTDIR/man]
2165 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2166 --htmldir=DIR html documentation [DOCDIR]
2167 --dvidir=DIR dvi documentation [DOCDIR]
2168 --pdfdir=DIR pdf documentation [DOCDIR]
2169 --psdir=DIR ps documentation [DOCDIR]
2170 _ACEOF
2172 cat <<\_ACEOF
2174 Program names:
2175 --program-prefix=PREFIX prepend PREFIX to installed program names
2176 --program-suffix=SUFFIX append SUFFIX to installed program names
2177 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2179 X features:
2180 --x-includes=DIR X include files are in DIR
2181 --x-libraries=DIR X library files are in DIR
2183 System types:
2184 --build=BUILD configure for building on BUILD [guessed]
2185 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2186 _ACEOF
2189 if test -n "$ac_init_help"; then
2190 case $ac_init_help in
2191 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2192 esac
2193 cat <<\_ACEOF
2195 Optional Features:
2196 --disable-option-checking ignore unrecognized --enable/--with options
2197 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2198 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2199 --disable-ns-self-contained
2200 disable self contained build under NeXTstep
2201 --enable-locallisppath=PATH
2202 directories Emacs should search for lisp files
2203 specific to this site
2204 --enable-checking[=LIST]
2205 enable expensive run-time checks. With LIST, enable
2206 only specific categories of checks. Categories are:
2207 all,yes,no. Flags are: stringbytes, stringoverrun,
2208 stringfreelist, xmallocoverrun, conslist, glyphs
2209 --enable-check-lisp-object-type
2210 enable compile time checks for the Lisp_Object data
2211 type. This is useful for development for catching
2212 certain types of bugs.
2213 --enable-profiling build emacs with low-level, gprof profiling support.
2214 Mainly useful for debugging Emacs itself. May not
2215 work on all platforms. Stops profiler.el working.
2216 --enable-autodepend automatically generate dependencies to .h-files.
2217 Requires GNU Make and Gcc. Enabled if GNU Make and
2218 Gcc is found
2219 --enable-gtk-deprecation-warnings
2220 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2221 --disable-dependency-tracking speeds up one-time build
2222 --enable-dependency-tracking do not reject slow dependency extractors
2223 --disable-largefile omit support for large files
2224 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2225 intended for developers, and may generate false
2226 alarms when used with older or non-GNU development
2227 tools.
2228 --enable-link-time-optimization
2229 build emacs with link-time optimization. This is
2230 supported only for GCC since 4.5.0.
2231 --disable-acl do not support ACLs
2233 Optional Packages:
2234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2236 --without-all omit almost all features and build small executable
2237 with minimal dependencies
2238 --without-pop don't support POP mail retrieval with movemail
2239 --with-kerberos support Kerberos-authenticated POP
2240 --with-kerberos5 support Kerberos version 5 authenticated POP
2241 --with-hesiod support Hesiod to get the POP server host
2242 --with-mmdf support MMDF mailboxes
2243 --with-mail-unlink unlink, rather than empty, mail spool after reading
2244 --with-mailhost=HOSTNAME
2245 string giving default POP mail host
2246 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2247 oss, bsd-ossaudio, no; default yes). Only for
2248 GNU/Linux, FreeBSD, NetBSD, MinGW.
2249 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2250 gtk3, lucid or athena, motif, no)
2251 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2252 --without-xpm don't compile with XPM image support
2253 --without-jpeg don't compile with JPEG image support
2254 --without-tiff don't compile with TIFF image support
2255 --without-gif don't compile with GIF image support
2256 --without-png don't compile with PNG image support
2257 --without-rsvg don't compile with SVG image support
2258 --without-xml2 don't compile with XML parsing support
2259 --without-imagemagick don't compile with ImageMagick image support
2260 --without-xft don't use XFT for anti aliased fonts
2261 --without-libotf don't use libotf for OpenType font support
2262 --without-m17n-flt don't use m17n-flt for text shaping
2263 --without-toolkit-scroll-bars
2264 don't use Motif or Xaw3d scroll bars
2265 --without-xaw3d don't use Xaw3d
2266 --without-xim don't use X11 XIM
2267 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2268 --with-w32 use native MS Windows GUI in a Cygwin build
2269 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2270 console
2271 --without-dbus don't compile with D-Bus support
2272 --without-gconf don't compile with GConf support
2273 --without-gsettings don't compile with GSettings support
2274 --without-selinux don't compile with SELinux support
2275 --without-gnutls don't use -lgnutls for SSL/TLS support
2276 --without-zlib don't compile with zlib decompression support
2277 --with-file-notification=LIB
2278 use a file notification library (LIB one of: yes,
2279 gfile, inotify, w32, no)
2280 --without-makeinfo don't require makeinfo for building manuals
2281 --without-compress-info don't compress the installed Info pages
2282 --with-pkg-config-prog=FILENAME
2283 file name of pkg-config for finding GTK and librsvg
2284 --with-gameuser=USER user for shared game score files
2285 --with-gnustep-conf=FILENAME
2286 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2287 or /etc/GNUstep/GNUstep.conf
2288 --with-x use the X Window System
2290 Some influential environment variables:
2291 CC C compiler command
2292 CFLAGS C compiler flags
2293 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2294 nonstandard directory <lib dir>
2295 LIBS libraries to pass to the linker, e.g. -l<library>
2296 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2297 you have headers in a nonstandard directory <include dir>
2298 CPP C preprocessor
2299 XMKMF Path to xmkmf, Makefile generator for X Window System
2301 Use these variables to override the choices made by `configure' or to help
2302 it to find libraries and programs with nonstandard names/locations.
2304 Report bugs to the package provider.
2305 _ACEOF
2306 ac_status=$?
2309 if test "$ac_init_help" = "recursive"; then
2310 # If there are subdirs, report their specific --help.
2311 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2312 test -d "$ac_dir" ||
2313 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2314 continue
2315 ac_builddir=.
2317 case "$ac_dir" in
2318 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2320 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2321 # A ".." for each directory in $ac_dir_suffix.
2322 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2323 case $ac_top_builddir_sub in
2324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2326 esac ;;
2327 esac
2328 ac_abs_top_builddir=$ac_pwd
2329 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2330 # for backward compatibility:
2331 ac_top_builddir=$ac_top_build_prefix
2333 case $srcdir in
2334 .) # We are building in place.
2335 ac_srcdir=.
2336 ac_top_srcdir=$ac_top_builddir_sub
2337 ac_abs_top_srcdir=$ac_pwd ;;
2338 [\\/]* | ?:[\\/]* ) # Absolute name.
2339 ac_srcdir=$srcdir$ac_dir_suffix;
2340 ac_top_srcdir=$srcdir
2341 ac_abs_top_srcdir=$srcdir ;;
2342 *) # Relative name.
2343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2344 ac_top_srcdir=$ac_top_build_prefix$srcdir
2345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2346 esac
2347 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2349 cd "$ac_dir" || { ac_status=$?; continue; }
2350 # Check for guested configure.
2351 if test -f "$ac_srcdir/configure.gnu"; then
2352 echo &&
2353 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2354 elif test -f "$ac_srcdir/configure"; then
2355 echo &&
2356 $SHELL "$ac_srcdir/configure" --help=recursive
2357 else
2358 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2359 fi || ac_status=$?
2360 cd "$ac_pwd" || { ac_status=$?; break; }
2361 done
2364 test -n "$ac_init_help" && exit $ac_status
2365 if $ac_init_version; then
2366 cat <<\_ACEOF
2367 emacs configure 24.3.50
2368 generated by GNU Autoconf 2.65
2370 Copyright (C) 2009 Free Software Foundation, Inc.
2371 This configure script is free software; the Free Software Foundation
2372 gives unlimited permission to copy, distribute and modify it.
2373 _ACEOF
2374 exit
2377 ## ------------------------ ##
2378 ## Autoconf initialization. ##
2379 ## ------------------------ ##
2381 # ac_fn_c_try_compile LINENO
2382 # --------------------------
2383 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2384 ac_fn_c_try_compile ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 rm -f conftest.$ac_objext
2388 if { { ac_try="$ac_compile"
2389 case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392 esac
2393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2394 $as_echo "$ac_try_echo"; } >&5
2395 (eval "$ac_compile") 2>conftest.err
2396 ac_status=$?
2397 if test -s conftest.err; then
2398 grep -v '^ *+' conftest.err >conftest.er1
2399 cat conftest.er1 >&5
2400 mv -f conftest.er1 conftest.err
2402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2403 test $ac_status = 0; } && {
2404 test -z "$ac_c_werror_flag" ||
2405 test ! -s conftest.err
2406 } && test -s conftest.$ac_objext; then :
2407 ac_retval=0
2408 else
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 ac_retval=1
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 as_fn_set_status $ac_retval
2417 } # ac_fn_c_try_compile
2419 # ac_fn_c_try_cpp LINENO
2420 # ----------------------
2421 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2422 ac_fn_c_try_cpp ()
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 if { { ac_try="$ac_cpp conftest.$ac_ext"
2426 case "(($ac_try" in
2427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2428 *) ac_try_echo=$ac_try;;
2429 esac
2430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2431 $as_echo "$ac_try_echo"; } >&5
2432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2433 ac_status=$?
2434 if test -s conftest.err; then
2435 grep -v '^ *+' conftest.err >conftest.er1
2436 cat conftest.er1 >&5
2437 mv -f conftest.er1 conftest.err
2439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2440 test $ac_status = 0; } >/dev/null && {
2441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2442 test ! -s conftest.err
2443 }; then :
2444 ac_retval=0
2445 else
2446 $as_echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2449 ac_retval=1
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452 as_fn_set_status $ac_retval
2454 } # ac_fn_c_try_cpp
2456 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2457 # -------------------------------------------------------
2458 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2459 # the include files in INCLUDES and setting the cache variable VAR
2460 # accordingly.
2461 ac_fn_c_check_header_mongrel ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2466 $as_echo_n "checking for $2... " >&6; }
2467 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2468 $as_echo_n "(cached) " >&6
2470 eval ac_res=\$$3
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 else
2474 # Is the header compilable?
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2476 $as_echo_n "checking $2 usability... " >&6; }
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2480 #include <$2>
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_header_compiler=yes
2484 else
2485 ac_header_compiler=no
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2489 $as_echo "$ac_header_compiler" >&6; }
2491 # Is the header present?
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2493 $as_echo_n "checking $2 presence... " >&6; }
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2496 #include <$2>
2497 _ACEOF
2498 if ac_fn_c_try_cpp "$LINENO"; then :
2499 ac_header_preproc=yes
2500 else
2501 ac_header_preproc=no
2503 rm -f conftest.err conftest.$ac_ext
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2505 $as_echo "$ac_header_preproc" >&6; }
2507 # So? What about this header?
2508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2509 yes:no: )
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2511 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2513 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2515 no:yes:* )
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2517 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2519 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2521 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2523 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2525 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2527 esac
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 eval "$3=\$ac_header_compiler"
2535 eval ac_res=\$$3
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 } # ac_fn_c_check_header_mongrel
2543 # ac_fn_c_try_run LINENO
2544 # ----------------------
2545 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2546 # that executables *can* be run.
2547 ac_fn_c_try_run ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 if { { ac_try="$ac_link"
2551 case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554 esac
2555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556 $as_echo "$ac_try_echo"; } >&5
2557 (eval "$ac_link") 2>&5
2558 ac_status=$?
2559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2560 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2561 { { case "(($ac_try" in
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2564 esac
2565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2566 $as_echo "$ac_try_echo"; } >&5
2567 (eval "$ac_try") 2>&5
2568 ac_status=$?
2569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2570 test $ac_status = 0; }; }; then :
2571 ac_retval=0
2572 else
2573 $as_echo "$as_me: program exited with status $ac_status" >&5
2574 $as_echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2577 ac_retval=$ac_status
2579 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581 as_fn_set_status $ac_retval
2583 } # ac_fn_c_try_run
2585 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2586 # -------------------------------------------------------
2587 # Tests whether HEADER exists and can be compiled using the include files in
2588 # INCLUDES, setting the cache variable VAR accordingly.
2589 ac_fn_c_check_header_compile ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2600 #include <$2>
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 eval "$3=yes"
2604 else
2605 eval "$3=no"
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 eval ac_res=\$$3
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614 } # ac_fn_c_check_header_compile
2616 # ac_fn_c_try_link LINENO
2617 # -----------------------
2618 # Try to link conftest.$ac_ext, and return whether this succeeded.
2619 ac_fn_c_try_link ()
2621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622 rm -f conftest.$ac_objext conftest$ac_exeext
2623 if { { ac_try="$ac_link"
2624 case "(($ac_try" in
2625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626 *) ac_try_echo=$ac_try;;
2627 esac
2628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_link") 2>conftest.err
2631 ac_status=$?
2632 if test -s conftest.err; then
2633 grep -v '^ *+' conftest.err >conftest.er1
2634 cat conftest.er1 >&5
2635 mv -f conftest.er1 conftest.err
2637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638 test $ac_status = 0; } && {
2639 test -z "$ac_c_werror_flag" ||
2640 test ! -s conftest.err
2641 } && test -s conftest$ac_exeext && {
2642 test "$cross_compiling" = yes ||
2643 $as_test_x conftest$ac_exeext
2644 }; then :
2645 ac_retval=0
2646 else
2647 $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2650 ac_retval=1
2652 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2653 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2654 # interfere with the next link command; also delete a directory that is
2655 # left behind by Apple's compiler. We do this before executing the actions.
2656 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658 as_fn_set_status $ac_retval
2660 } # ac_fn_c_try_link
2662 # ac_fn_c_check_decl LINENO SYMBOL VAR
2663 # ------------------------------------
2664 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2665 ac_fn_c_check_decl ()
2667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2669 $as_echo_n "checking whether $2 is declared... " >&6; }
2670 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2677 main ()
2679 #ifndef $2
2680 (void) $2;
2681 #endif
2684 return 0;
2686 _ACEOF
2687 if ac_fn_c_try_compile "$LINENO"; then :
2688 eval "$3=yes"
2689 else
2690 eval "$3=no"
2692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 eval ac_res=\$$3
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2696 $as_echo "$ac_res" >&6; }
2697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2699 } # ac_fn_c_check_decl
2701 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2702 # ----------------------------------------------
2703 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2704 ac_fn_c_check_header_preproc ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2708 $as_echo_n "checking for $2... " >&6; }
2709 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2714 #include <$2>
2715 _ACEOF
2716 if ac_fn_c_try_cpp "$LINENO"; then :
2717 eval "$3=yes"
2718 else
2719 eval "$3=no"
2721 rm -f conftest.err conftest.$ac_ext
2723 eval ac_res=\$$3
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2725 $as_echo "$ac_res" >&6; }
2726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2728 } # ac_fn_c_check_header_preproc
2730 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2731 # ----------------------------------------------------
2732 # Tries to find if the field MEMBER exists in type AGGR, after including
2733 # INCLUDES, setting cache variable VAR accordingly.
2734 ac_fn_c_check_member ()
2736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2738 $as_echo_n "checking for $2.$3... " >&6; }
2739 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2740 $as_echo_n "(cached) " >&6
2741 else
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2746 main ()
2748 static $2 ac_aggr;
2749 if (ac_aggr.$3)
2750 return 0;
2752 return 0;
2754 _ACEOF
2755 if ac_fn_c_try_compile "$LINENO"; then :
2756 eval "$4=yes"
2757 else
2758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2759 /* end confdefs.h. */
2762 main ()
2764 static $2 ac_aggr;
2765 if (sizeof ac_aggr.$3)
2766 return 0;
2768 return 0;
2770 _ACEOF
2771 if ac_fn_c_try_compile "$LINENO"; then :
2772 eval "$4=yes"
2773 else
2774 eval "$4=no"
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780 eval ac_res=\$$4
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2782 $as_echo "$ac_res" >&6; }
2783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2785 } # ac_fn_c_check_member
2787 # ac_fn_c_check_func LINENO FUNC VAR
2788 # ----------------------------------
2789 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2790 ac_fn_c_check_func ()
2792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2794 $as_echo_n "checking for $2... " >&6; }
2795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2800 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2802 #define $2 innocuous_$2
2804 /* System header to define __stub macros and hopefully few prototypes,
2805 which can conflict with char $2 (); below.
2806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2807 <limits.h> exists even on freestanding compilers. */
2809 #ifdef __STDC__
2810 # include <limits.h>
2811 #else
2812 # include <assert.h>
2813 #endif
2815 #undef $2
2817 /* Override any GCC internal prototype to avoid an error.
2818 Use char because int might match the return type of a GCC
2819 builtin and then its argument prototype would still apply. */
2820 #ifdef __cplusplus
2821 extern "C"
2822 #endif
2823 char $2 ();
2824 /* The GNU C library defines this for functions which it implements
2825 to always fail with ENOSYS. Some functions are actually named
2826 something starting with __ and the normal name is an alias. */
2827 #if defined __stub_$2 || defined __stub___$2
2828 choke me
2829 #endif
2832 main ()
2834 return $2 ();
2836 return 0;
2838 _ACEOF
2839 if ac_fn_c_try_link "$LINENO"; then :
2840 eval "$3=yes"
2841 else
2842 eval "$3=no"
2844 rm -f core conftest.err conftest.$ac_objext \
2845 conftest$ac_exeext conftest.$ac_ext
2847 eval ac_res=\$$3
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2849 $as_echo "$ac_res" >&6; }
2850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2852 } # ac_fn_c_check_func
2854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2855 # -------------------------------------------
2856 # Tests whether TYPE exists after having included INCLUDES, setting cache
2857 # variable VAR accordingly.
2858 ac_fn_c_check_type ()
2860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2862 $as_echo_n "checking for $2... " >&6; }
2863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 eval "$3=no"
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2871 main ()
2873 if (sizeof ($2))
2874 return 0;
2876 return 0;
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2884 main ()
2886 if (sizeof (($2)))
2887 return 0;
2889 return 0;
2891 _ACEOF
2892 if ac_fn_c_try_compile "$LINENO"; then :
2894 else
2895 eval "$3=yes"
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 eval ac_res=\$$3
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2903 $as_echo "$ac_res" >&6; }
2904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2906 } # ac_fn_c_check_type
2908 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2909 # --------------------------------------------
2910 # Tries to find the compile-time value of EXPR in a program that includes
2911 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2912 # computed
2913 ac_fn_c_compute_int ()
2915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2916 if test "$cross_compiling" = yes; then
2917 # Depending upon the size, compute the lo and hi bounds.
2918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919 /* end confdefs.h. */
2922 main ()
2924 static int test_array [1 - 2 * !(($2) >= 0)];
2925 test_array [0] = 0
2928 return 0;
2930 _ACEOF
2931 if ac_fn_c_try_compile "$LINENO"; then :
2932 ac_lo=0 ac_mid=0
2933 while :; do
2934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h. */
2938 main ()
2940 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2941 test_array [0] = 0
2944 return 0;
2946 _ACEOF
2947 if ac_fn_c_try_compile "$LINENO"; then :
2948 ac_hi=$ac_mid; break
2949 else
2950 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2951 if test $ac_lo -le $ac_mid; then
2952 ac_lo= ac_hi=
2953 break
2955 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 done
2959 else
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2964 main ()
2966 static int test_array [1 - 2 * !(($2) < 0)];
2967 test_array [0] = 0
2970 return 0;
2972 _ACEOF
2973 if ac_fn_c_try_compile "$LINENO"; then :
2974 ac_hi=-1 ac_mid=-1
2975 while :; do
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2980 main ()
2982 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2983 test_array [0] = 0
2986 return 0;
2988 _ACEOF
2989 if ac_fn_c_try_compile "$LINENO"; then :
2990 ac_lo=$ac_mid; break
2991 else
2992 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2993 if test $ac_mid -le $ac_hi; then
2994 ac_lo= ac_hi=
2995 break
2997 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 done
3001 else
3002 ac_lo= ac_hi=
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 # Binary search between lo and hi bounds.
3008 while test "x$ac_lo" != "x$ac_hi"; do
3009 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h. */
3014 main ()
3016 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3017 test_array [0] = 0
3020 return 0;
3022 _ACEOF
3023 if ac_fn_c_try_compile "$LINENO"; then :
3024 ac_hi=$ac_mid
3025 else
3026 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 done
3030 case $ac_lo in #((
3031 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3032 '') ac_retval=1 ;;
3033 esac
3034 else
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3038 static long int longval () { return $2; }
3039 static unsigned long int ulongval () { return $2; }
3040 #include <stdio.h>
3041 #include <stdlib.h>
3043 main ()
3046 FILE *f = fopen ("conftest.val", "w");
3047 if (! f)
3048 return 1;
3049 if (($2) < 0)
3051 long int i = longval ();
3052 if (i != ($2))
3053 return 1;
3054 fprintf (f, "%ld", i);
3056 else
3058 unsigned long int i = ulongval ();
3059 if (i != ($2))
3060 return 1;
3061 fprintf (f, "%lu", i);
3063 /* Do not output a trailing newline, as this causes \r\n confusion
3064 on some platforms. */
3065 return ferror (f) || fclose (f) != 0;
3068 return 0;
3070 _ACEOF
3071 if ac_fn_c_try_run "$LINENO"; then :
3072 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3073 else
3074 ac_retval=1
3076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3077 conftest.$ac_objext conftest.beam conftest.$ac_ext
3078 rm -f conftest.val
3081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3082 as_fn_set_status $ac_retval
3084 } # ac_fn_c_compute_int
3085 cat >config.log <<_ACEOF
3086 This file contains any messages produced by compilers while
3087 running configure, to aid debugging if configure makes a mistake.
3089 It was created by emacs $as_me 24.3.50, which was
3090 generated by GNU Autoconf 2.65. Invocation command line was
3092 $ $0 $@
3094 _ACEOF
3095 exec 5>>config.log
3097 cat <<_ASUNAME
3098 ## --------- ##
3099 ## Platform. ##
3100 ## --------- ##
3102 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3103 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3104 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3105 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3106 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3108 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3109 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3111 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3112 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3113 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3114 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3115 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3116 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3117 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3119 _ASUNAME
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 $as_echo "PATH: $as_dir"
3127 done
3128 IFS=$as_save_IFS
3130 } >&5
3132 cat >&5 <<_ACEOF
3135 ## ----------- ##
3136 ## Core tests. ##
3137 ## ----------- ##
3139 _ACEOF
3142 # Keep a trace of the command line.
3143 # Strip out --no-create and --no-recursion so they do not pile up.
3144 # Strip out --silent because we don't want to record it for future runs.
3145 # Also quote any args containing shell meta-characters.
3146 # Make two passes to allow for proper duplicate-argument suppression.
3147 ac_configure_args=
3148 ac_configure_args0=
3149 ac_configure_args1=
3150 ac_must_keep_next=false
3151 for ac_pass in 1 2
3153 for ac_arg
3155 case $ac_arg in
3156 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3158 | -silent | --silent | --silen | --sile | --sil)
3159 continue ;;
3160 *\'*)
3161 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3162 esac
3163 case $ac_pass in
3164 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3166 as_fn_append ac_configure_args1 " '$ac_arg'"
3167 if test $ac_must_keep_next = true; then
3168 ac_must_keep_next=false # Got value, back to normal.
3169 else
3170 case $ac_arg in
3171 *=* | --config-cache | -C | -disable-* | --disable-* \
3172 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3173 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3174 | -with-* | --with-* | -without-* | --without-* | --x)
3175 case "$ac_configure_args0 " in
3176 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3177 esac
3179 -* ) ac_must_keep_next=true ;;
3180 esac
3182 as_fn_append ac_configure_args " '$ac_arg'"
3184 esac
3185 done
3186 done
3187 { ac_configure_args0=; unset ac_configure_args0;}
3188 { ac_configure_args1=; unset ac_configure_args1;}
3190 # When interrupted or exit'd, cleanup temporary files, and complete
3191 # config.log. We remove comments because anyway the quotes in there
3192 # would cause problems or look ugly.
3193 # WARNING: Use '\'' to represent an apostrophe within the trap.
3194 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3195 trap 'exit_status=$?
3196 # Save into config.log some information that might help in debugging.
3198 echo
3200 cat <<\_ASBOX
3201 ## ---------------- ##
3202 ## Cache variables. ##
3203 ## ---------------- ##
3204 _ASBOX
3205 echo
3206 # The following way of writing the cache mishandles newlines in values,
3208 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3209 eval ac_val=\$$ac_var
3210 case $ac_val in #(
3211 *${as_nl}*)
3212 case $ac_var in #(
3213 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3214 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3215 esac
3216 case $ac_var in #(
3217 _ | IFS | as_nl) ;; #(
3218 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3219 *) { eval $ac_var=; unset $ac_var;} ;;
3220 esac ;;
3221 esac
3222 done
3223 (set) 2>&1 |
3224 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3225 *${as_nl}ac_space=\ *)
3226 sed -n \
3227 "s/'\''/'\''\\\\'\'''\''/g;
3228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3229 ;; #(
3231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3233 esac |
3234 sort
3236 echo
3238 cat <<\_ASBOX
3239 ## ----------------- ##
3240 ## Output variables. ##
3241 ## ----------------- ##
3242 _ASBOX
3243 echo
3244 for ac_var in $ac_subst_vars
3246 eval ac_val=\$$ac_var
3247 case $ac_val in
3248 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3249 esac
3250 $as_echo "$ac_var='\''$ac_val'\''"
3251 done | sort
3252 echo
3254 if test -n "$ac_subst_files"; then
3255 cat <<\_ASBOX
3256 ## ------------------- ##
3257 ## File substitutions. ##
3258 ## ------------------- ##
3259 _ASBOX
3260 echo
3261 for ac_var in $ac_subst_files
3263 eval ac_val=\$$ac_var
3264 case $ac_val in
3265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3266 esac
3267 $as_echo "$ac_var='\''$ac_val'\''"
3268 done | sort
3269 echo
3272 if test -s confdefs.h; then
3273 cat <<\_ASBOX
3274 ## ----------- ##
3275 ## confdefs.h. ##
3276 ## ----------- ##
3277 _ASBOX
3278 echo
3279 cat confdefs.h
3280 echo
3282 test "$ac_signal" != 0 &&
3283 $as_echo "$as_me: caught signal $ac_signal"
3284 $as_echo "$as_me: exit $exit_status"
3285 } >&5
3286 rm -f core *.core core.conftest.* &&
3287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3288 exit $exit_status
3290 for ac_signal in 1 2 13 15; do
3291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3292 done
3293 ac_signal=0
3295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3296 rm -f -r conftest* confdefs.h
3298 $as_echo "/* confdefs.h */" > confdefs.h
3300 # Predefined preprocessor variables.
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE_NAME "$PACKAGE_NAME"
3304 _ACEOF
3306 cat >>confdefs.h <<_ACEOF
3307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3308 _ACEOF
3310 cat >>confdefs.h <<_ACEOF
3311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3312 _ACEOF
3314 cat >>confdefs.h <<_ACEOF
3315 #define PACKAGE_STRING "$PACKAGE_STRING"
3316 _ACEOF
3318 cat >>confdefs.h <<_ACEOF
3319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3320 _ACEOF
3322 cat >>confdefs.h <<_ACEOF
3323 #define PACKAGE_URL "$PACKAGE_URL"
3324 _ACEOF
3327 # Let the site file select an alternate cache file if it wants to.
3328 # Prefer an explicitly selected file to automatically selected ones.
3329 ac_site_file1=NONE
3330 ac_site_file2=NONE
3331 if test -n "$CONFIG_SITE"; then
3332 ac_site_file1=$CONFIG_SITE
3333 elif test "x$prefix" != xNONE; then
3334 ac_site_file1=$prefix/share/config.site
3335 ac_site_file2=$prefix/etc/config.site
3336 else
3337 ac_site_file1=$ac_default_prefix/share/config.site
3338 ac_site_file2=$ac_default_prefix/etc/config.site
3340 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3342 test "x$ac_site_file" = xNONE && continue
3343 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3345 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3346 sed 's/^/| /' "$ac_site_file" >&5
3347 . "$ac_site_file"
3349 done
3351 if test -r "$cache_file"; then
3352 # Some versions of bash will fail to source /dev/null (special files
3353 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3354 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3356 $as_echo "$as_me: loading cache $cache_file" >&6;}
3357 case $cache_file in
3358 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3359 *) . "./$cache_file";;
3360 esac
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3364 $as_echo "$as_me: creating cache $cache_file" >&6;}
3365 >$cache_file
3368 as_fn_append ac_header_list " sys/systeminfo.h"
3369 as_fn_append ac_header_list " coff.h"
3370 as_fn_append ac_header_list " pty.h"
3371 as_fn_append ac_header_list " sys/resource.h"
3372 as_fn_append ac_header_list " sys/utsname.h"
3373 as_fn_append ac_header_list " pwd.h"
3374 as_fn_append ac_header_list " utmp.h"
3375 as_fn_append ac_header_list " util.h"
3376 as_fn_append ac_header_list " sys/socket.h"
3377 as_fn_append ac_header_list " stdlib.h"
3378 as_fn_append ac_header_list " unistd.h"
3379 as_fn_append ac_header_list " sys/param.h"
3380 as_fn_append ac_header_list " pthread.h"
3381 as_fn_append ac_header_list " malloc/malloc.h"
3382 as_fn_append ac_header_list " maillock.h"
3383 as_fn_append ac_header_list " sys/un.h"
3384 as_fn_append ac_func_list " tzset"
3385 as_fn_append ac_func_list " readlinkat"
3386 as_fn_append ac_header_list " dirent.h"
3387 as_fn_append ac_header_list " execinfo.h"
3388 as_fn_append ac_func_list " faccessat"
3389 as_fn_append ac_func_list " fcntl"
3390 as_fn_append ac_func_list " fdopendir"
3391 as_fn_append ac_header_list " stdio_ext.h"
3392 as_fn_append ac_func_list " fstatat"
3393 as_fn_append ac_func_list " fsync"
3394 gl_getopt_required=GNU
3395 as_fn_append ac_header_list " getopt.h"
3396 as_fn_append ac_func_list " gettimeofday"
3397 as_fn_append ac_func_list " nanotime"
3398 as_fn_append ac_header_list " sys/time.h"
3399 as_fn_append ac_header_list " wchar.h"
3400 as_fn_append ac_header_list " stdint.h"
3401 as_fn_append ac_header_list " inttypes.h"
3402 as_fn_append ac_func_list " lstat"
3403 as_fn_append ac_func_list " mkostemp"
3404 as_fn_append ac_func_list " pipe2"
3405 as_fn_append ac_header_list " sys/select.h"
3406 as_fn_append ac_func_list " pselect"
3407 as_fn_append ac_func_list " pthread_sigmask"
3408 as_fn_append ac_func_list " readlink"
3409 as_fn_append ac_func_list " strtoimax"
3410 as_fn_append ac_func_list " strtoumax"
3411 as_fn_append ac_func_list " symlink"
3412 as_fn_append ac_header_list " sys/stat.h"
3413 as_fn_append ac_func_list " localtime_r"
3414 as_fn_append ac_header_list " utime.h"
3415 as_fn_append ac_func_list " futimes"
3416 as_fn_append ac_func_list " futimesat"
3417 as_fn_append ac_func_list " futimens"
3418 as_fn_append ac_func_list " utimensat"
3419 as_fn_append ac_func_list " lutimes"
3420 as_fn_append ac_func_list " getdtablesize"
3421 as_fn_append ac_func_list " secure_getenv"
3422 # Check that the precious variables saved in the cache have kept the same
3423 # value.
3424 ac_cache_corrupted=false
3425 for ac_var in $ac_precious_vars; do
3426 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3427 eval ac_new_set=\$ac_env_${ac_var}_set
3428 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3429 eval ac_new_val=\$ac_env_${ac_var}_value
3430 case $ac_old_set,$ac_new_set in
3431 set,)
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3434 ac_cache_corrupted=: ;;
3435 ,set)
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3438 ac_cache_corrupted=: ;;
3439 ,);;
3441 if test "x$ac_old_val" != "x$ac_new_val"; then
3442 # differences in whitespace do not lead to failure.
3443 ac_old_val_w=`echo x $ac_old_val`
3444 ac_new_val_w=`echo x $ac_new_val`
3445 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3448 ac_cache_corrupted=:
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3452 eval $ac_var=\$ac_old_val
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3455 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3457 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3458 fi;;
3459 esac
3460 # Pass precious variables to config.status.
3461 if test "$ac_new_set" = set; then
3462 case $ac_new_val in
3463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3464 *) ac_arg=$ac_var=$ac_new_val ;;
3465 esac
3466 case " $ac_configure_args " in
3467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3468 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3469 esac
3471 done
3472 if $ac_cache_corrupted; then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3477 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3479 ## -------------------- ##
3480 ## Main body of script. ##
3481 ## -------------------- ##
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3491 emacs_config_options=
3492 optsep=
3493 for opt in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS; do
3494 case $opt in
3495 -n | --no-create | --no-recursion)
3496 continue ;;
3497 CFLAGS | CPPFLAGS | LDFLAGS)
3498 eval 'test "${'$opt'+set}" = set' || continue
3499 case " $*" in
3500 *" $opt="*) continue ;;
3501 esac
3502 eval opt=$opt=\$$opt ;;
3503 esac
3505 emacs_shell_specials=$IFS\''"#$&()*;<>?[\\`{|~'
3506 case $opt in
3507 *["$emacs_shell_specials"]*)
3508 case $opt in
3509 *\'*)
3510 emacs_quote_apostrophes="s/'/'\\\\''/g"
3511 opt=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3512 esac
3513 opt="'$opt'"
3514 case $opt in
3515 *['"\\']*)
3516 emacs_quote_for_c='s/["\\]/\\&/g; $!s/$/\\n\\/'
3517 opt=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3518 esac ;;
3519 esac
3520 as_fn_append emacs_config_options "$optsep$opt"
3521 optsep=' '
3522 done
3524 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3527 ac_aux_dir=
3528 for ac_dir in build-aux "$srcdir"/build-aux; do
3529 for ac_t in install-sh install.sh shtool; do
3530 if test -f "$ac_dir/$ac_t"; then
3531 ac_aux_dir=$ac_dir
3532 ac_install_sh="$ac_aux_dir/$ac_t -c"
3533 break 2
3535 done
3536 done
3537 if test -z "$ac_aux_dir"; then
3538 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3541 # These three variables are undocumented and unsupported,
3542 # and are intended to be withdrawn in a future Autoconf release.
3543 # They can cause serious problems if a builder's source tree is in a directory
3544 # whose full name contains unusual characters.
3545 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3546 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3547 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3550 am__api_version='1.11'
3552 # Find a good install program. We prefer a C program (faster),
3553 # so one script is as good as another. But avoid the broken or
3554 # incompatible versions:
3555 # SysV /etc/install, /usr/sbin/install
3556 # SunOS /usr/etc/install
3557 # IRIX /sbin/install
3558 # AIX /bin/install
3559 # AmigaOS /C/install, which installs bootblocks on floppy discs
3560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3563 # OS/2's system install, which has a completely different semantic
3564 # ./install, which can be erroneously created by make from ./install.sh.
3565 # Reject install programs that cannot install multiple files.
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3567 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3568 if test -z "$INSTALL"; then
3569 if test "${ac_cv_path_install+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 # Account for people who put trailing slashes in PATH elements.
3578 case $as_dir/ in #((
3579 ./ | .// | /[cC]/* | \
3580 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3581 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3582 /usr/ucb/* ) ;;
3584 # OSF1 and SCO ODT 3.0 have their own names for install.
3585 # Don't use installbsd from OSF since it installs stuff as root
3586 # by default.
3587 for ac_prog in ginstall scoinst install; do
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3590 if test $ac_prog = install &&
3591 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3592 # AIX install. It has an incompatible calling convention.
3594 elif test $ac_prog = install &&
3595 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3596 # program-specific install script used by HP pwplus--don't use.
3598 else
3599 rm -rf conftest.one conftest.two conftest.dir
3600 echo one > conftest.one
3601 echo two > conftest.two
3602 mkdir conftest.dir
3603 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3604 test -s conftest.one && test -s conftest.two &&
3605 test -s conftest.dir/conftest.one &&
3606 test -s conftest.dir/conftest.two
3607 then
3608 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3609 break 3
3613 done
3614 done
3616 esac
3618 done
3619 IFS=$as_save_IFS
3621 rm -rf conftest.one conftest.two conftest.dir
3624 if test "${ac_cv_path_install+set}" = set; then
3625 INSTALL=$ac_cv_path_install
3626 else
3627 # As a last resort, use the slow shell script. Don't cache a
3628 # value for INSTALL within a source directory, because that will
3629 # break other packages using the cache if that directory is
3630 # removed, or if the value is a relative name.
3631 INSTALL=$ac_install_sh
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3635 $as_echo "$INSTALL" >&6; }
3637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3638 # It thinks the first close brace ends the variable substitution.
3639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3646 $as_echo_n "checking whether build environment is sane... " >&6; }
3647 # Just in case
3648 sleep 1
3649 echo timestamp > conftest.file
3650 # Reject unsafe characters in $srcdir or the absolute working directory
3651 # name. Accept space and tab only in the latter.
3652 am_lf='
3654 case `pwd` in
3655 *[\\\"\#\$\&\'\`$am_lf]*)
3656 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3657 esac
3658 case $srcdir in
3659 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3660 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3661 esac
3663 # Do `set' in a subshell so we don't clobber the current shell's
3664 # arguments. Must try -L first in case configure is actually a
3665 # symlink; some systems play weird games with the mod time of symlinks
3666 # (eg FreeBSD returns the mod time of the symlink's containing
3667 # directory).
3668 if (
3669 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3670 if test "$*" = "X"; then
3671 # -L didn't work.
3672 set X `ls -t "$srcdir/configure" conftest.file`
3674 rm -f conftest.file
3675 if test "$*" != "X $srcdir/configure conftest.file" \
3676 && test "$*" != "X conftest.file $srcdir/configure"; then
3678 # If neither matched, then we have a broken ls. This can happen
3679 # if, for instance, CONFIG_SHELL is bash and it inherits a
3680 # broken ls alias from the environment. This has actually
3681 # happened. Such a system could not be considered "sane".
3682 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3683 alias in your environment" "$LINENO" 5
3686 test "$2" = conftest.file
3688 then
3689 # Ok.
3691 else
3692 as_fn_error "newly created file is older than distributed files!
3693 Check your system clock" "$LINENO" 5
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3696 $as_echo "yes" >&6; }
3697 test "$program_prefix" != NONE &&
3698 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3699 # Use a double $ so make ignores it.
3700 test "$program_suffix" != NONE &&
3701 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3702 # Double any \ or $.
3703 # By default was `s,x,x', remove it if useless.
3704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3705 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3707 # expand $ac_aux_dir to an absolute path
3708 am_aux_dir=`cd $ac_aux_dir && pwd`
3710 if test x"${MISSING+set}" != xset; then
3711 case $am_aux_dir in
3712 *\ * | *\ *)
3713 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3715 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3716 esac
3718 # Use eval to expand $SHELL
3719 if eval "$MISSING --run true"; then
3720 am_missing_run="$MISSING --run "
3721 else
3722 am_missing_run=
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3724 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3727 if test x"${install_sh}" != xset; then
3728 case $am_aux_dir in
3729 *\ * | *\ *)
3730 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3732 install_sh="\${SHELL} $am_aux_dir/install-sh"
3733 esac
3736 # Installed binaries are usually stripped using `strip' when the user
3737 # run `make install-strip'. However `strip' might not be the right
3738 # tool to use in cross-compilation environments, therefore Automake
3739 # will honor the `STRIP' environment variable to overrule this program.
3740 if test "$cross_compiling" != no; then
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3743 set dummy ${ac_tool_prefix}strip; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if test "${ac_cv_prog_STRIP+set}" = set; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$STRIP"; then
3750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3765 IFS=$as_save_IFS
3769 STRIP=$ac_cv_prog_STRIP
3770 if test -n "$STRIP"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3772 $as_echo "$STRIP" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3780 if test -z "$ac_cv_prog_STRIP"; then
3781 ac_ct_STRIP=$STRIP
3782 # Extract the first word of "strip", so it can be a program name with args.
3783 set dummy strip; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -n "$ac_ct_STRIP"; then
3790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799 ac_cv_prog_ac_ct_STRIP="strip"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3803 done
3804 done
3805 IFS=$as_save_IFS
3809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3810 if test -n "$ac_ct_STRIP"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3812 $as_echo "$ac_ct_STRIP" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3818 if test "x$ac_ct_STRIP" = x; then
3819 STRIP=":"
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822 yes:)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3826 esac
3827 STRIP=$ac_ct_STRIP
3829 else
3830 STRIP="$ac_cv_prog_STRIP"
3834 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3837 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3838 if test -z "$MKDIR_P"; then
3839 if test "${ac_cv_path_mkdir+set}" = set; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_prog in mkdir gmkdir; do
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3850 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3851 'mkdir (GNU coreutils) '* | \
3852 'mkdir (coreutils) '* | \
3853 'mkdir (fileutils) '4.1*)
3854 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3855 break 3;;
3856 esac
3857 done
3858 done
3859 done
3860 IFS=$as_save_IFS
3864 test -d ./--version && rmdir ./--version
3865 if test "${ac_cv_path_mkdir+set}" = set; then
3866 MKDIR_P="$ac_cv_path_mkdir -p"
3867 else
3868 # As a last resort, use the slow shell script. Don't cache a
3869 # value for MKDIR_P within a source directory, because that will
3870 # break other packages using the cache if that directory is
3871 # removed, or if the value is a relative name.
3872 MKDIR_P="$ac_install_sh -d"
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3876 $as_echo "$MKDIR_P" >&6; }
3878 mkdir_p="$MKDIR_P"
3879 case $mkdir_p in
3880 [\\/$]* | ?:[\\/]*) ;;
3881 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3882 esac
3884 for ac_prog in gawk mawk nawk awk
3886 # Extract the first word of "$ac_prog", so it can be a program name with args.
3887 set dummy $ac_prog; ac_word=$2
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889 $as_echo_n "checking for $ac_word... " >&6; }
3890 if test "${ac_cv_prog_AWK+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 if test -n "$AWK"; then
3894 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903 ac_cv_prog_AWK="$ac_prog"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3907 done
3908 done
3909 IFS=$as_save_IFS
3913 AWK=$ac_cv_prog_AWK
3914 if test -n "$AWK"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3916 $as_echo "$AWK" >&6; }
3917 else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3923 test -n "$AWK" && break
3924 done
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3927 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3928 set x ${MAKE-make}
3929 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3930 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 cat >conftest.make <<\_ACEOF
3934 SHELL = /bin/sh
3935 all:
3936 @echo '@@@%%%=$(MAKE)=@@@%%%'
3937 _ACEOF
3938 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3939 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3940 *@@@%%%=?*=@@@%%%*)
3941 eval ac_cv_prog_make_${ac_make}_set=yes;;
3943 eval ac_cv_prog_make_${ac_make}_set=no;;
3944 esac
3945 rm -f conftest.make
3947 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3950 SET_MAKE=
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 SET_MAKE="MAKE=${MAKE-make}"
3957 rm -rf .tst 2>/dev/null
3958 mkdir .tst 2>/dev/null
3959 if test -d .tst; then
3960 am__leading_dot=.
3961 else
3962 am__leading_dot=_
3964 rmdir .tst 2>/dev/null
3966 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3968 # is not polluted with repeated "-I."
3969 am__isrc=' -I$(srcdir)'
3970 # test to see if srcdir already configured
3971 if test -f $srcdir/config.status; then
3972 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3976 # test whether we have cygpath
3977 if test -z "$CYGPATH_W"; then
3978 if (cygpath --version) >/dev/null 2>/dev/null; then
3979 CYGPATH_W='cygpath -w'
3980 else
3981 CYGPATH_W=echo
3986 # Define the identity of the package.
3987 PACKAGE='emacs'
3988 VERSION='24.3.50'
3991 cat >>confdefs.h <<_ACEOF
3992 #define PACKAGE "$PACKAGE"
3993 _ACEOF
3996 cat >>confdefs.h <<_ACEOF
3997 #define VERSION "$VERSION"
3998 _ACEOF
4000 # Some tools Automake needs.
4002 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4005 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4008 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4011 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4014 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4016 # We need awk for the "check" target. The system "awk" is bad on
4017 # some platforms.
4018 # Always define AMTAR for backward compatibility.
4020 AMTAR=${AMTAR-"${am_missing_run}tar"}
4022 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4031 lispdir='${datadir}/emacs/${version}/lisp'
4032 leimdir='${datadir}/emacs/${version}/leim'
4033 standardlisppath='${lispdir}:${leimdir}'
4034 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
4035 '${datadir}/emacs/site-lisp'
4036 lisppath='${locallisppath}:${standardlisppath}'
4037 etcdir='${datadir}/emacs/${version}/etc'
4038 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4039 etcdocdir='${datadir}/emacs/${version}/etc'
4040 gamedir='${localstatedir}/games/emacs'
4043 # Check whether --with-all was given.
4044 if test "${with_all+set}" = set; then :
4045 withval=$with_all; with_features=$withval
4046 else
4047 with_features=yes
4054 # Check whether --with-pop was given.
4055 if test "${with_pop+set}" = set; then :
4056 withval=$with_pop;
4057 else
4058 with_pop=$with_features
4061 if test "$with_pop" = yes; then
4062 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4067 # Check whether --with-kerberos was given.
4068 if test "${with_kerberos+set}" = set; then :
4069 withval=$with_kerberos;
4070 else
4071 with_kerberos=no
4074 if test "$with_kerberos" != no; then
4075 $as_echo "#define KERBEROS 1" >>confdefs.h
4080 # Check whether --with-kerberos5 was given.
4081 if test "${with_kerberos5+set}" = set; then :
4082 withval=$with_kerberos5;
4083 else
4084 with_kerberos5=no
4087 if test "${with_kerberos5}" != no; then
4088 if test "${with_kerberos}" = no; then
4089 with_kerberos=yes
4090 $as_echo "#define KERBEROS 1" >>confdefs.h
4094 $as_echo "#define KERBEROS5 1" >>confdefs.h
4099 # Check whether --with-hesiod was given.
4100 if test "${with_hesiod+set}" = set; then :
4101 withval=$with_hesiod;
4102 else
4103 with_hesiod=no
4106 if test "$with_hesiod" != no; then
4108 $as_echo "#define HESIOD 1" >>confdefs.h
4113 # Check whether --with-mmdf was given.
4114 if test "${with_mmdf+set}" = set; then :
4115 withval=$with_mmdf;
4116 else
4117 with_mmdf=no
4120 if test "$with_mmdf" != no; then
4122 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4127 # Check whether --with-mail-unlink was given.
4128 if test "${with_mail_unlink+set}" = set; then :
4129 withval=$with_mail_unlink;
4130 else
4131 with_mail_unlink=no
4134 if test "$with_mail_unlink" != no; then
4136 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4141 # Check whether --with-mailhost was given.
4142 if test "${with_mailhost+set}" = set; then :
4143 withval=$with_mailhost;
4144 cat >>confdefs.h <<_ACEOF
4145 #define MAILHOST "$withval"
4146 _ACEOF
4152 # Check whether --with-sound was given.
4153 if test "${with_sound+set}" = set; then :
4154 withval=$with_sound; case "${withval}" in
4155 yes|no|alsa|oss|bsd-ossaudio) val=$withval ;;
4156 *) as_fn_error "\`--with-sound=$withval' is invalid;
4157 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4159 esac
4160 with_sound=$val
4162 else
4163 with_sound=$with_features
4168 # Check whether --with-x-toolkit was given.
4169 if test "${with_x_toolkit+set}" = set; then :
4170 withval=$with_x_toolkit; case "${withval}" in
4171 y | ye | yes ) val=gtk ;;
4172 n | no ) val=no ;;
4173 l | lu | luc | luci | lucid ) val=lucid ;;
4174 a | at | ath | athe | athen | athena ) val=athena ;;
4175 m | mo | mot | moti | motif ) val=motif ;;
4176 g | gt | gtk ) val=gtk ;;
4177 gtk2 ) val=gtk2 ;;
4178 gtk3 ) val=gtk3 ;;
4180 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4181 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4182 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4183 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4185 esac
4186 with_x_toolkit=$val
4192 # Check whether --with-wide-int was given.
4193 if test "${with_wide_int+set}" = set; then :
4194 withval=$with_wide_int;
4195 else
4196 with_wide_int=no
4199 if test "$with_wide_int" = yes; then
4201 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4206 # Check whether --with-xpm was given.
4207 if test "${with_xpm+set}" = set; then :
4208 withval=$with_xpm;
4209 else
4210 with_xpm=$with_features
4214 # Check whether --with-jpeg was given.
4215 if test "${with_jpeg+set}" = set; then :
4216 withval=$with_jpeg;
4217 else
4218 with_jpeg=$with_features
4222 # Check whether --with-tiff was given.
4223 if test "${with_tiff+set}" = set; then :
4224 withval=$with_tiff;
4225 else
4226 with_tiff=$with_features
4230 # Check whether --with-gif was given.
4231 if test "${with_gif+set}" = set; then :
4232 withval=$with_gif;
4233 else
4234 with_gif=$with_features
4238 # Check whether --with-png was given.
4239 if test "${with_png+set}" = set; then :
4240 withval=$with_png;
4241 else
4242 with_png=$with_features
4246 # Check whether --with-rsvg was given.
4247 if test "${with_rsvg+set}" = set; then :
4248 withval=$with_rsvg;
4249 else
4250 with_rsvg=$with_features
4254 # Check whether --with-xml2 was given.
4255 if test "${with_xml2+set}" = set; then :
4256 withval=$with_xml2;
4257 else
4258 with_xml2=$with_features
4262 # Check whether --with-imagemagick was given.
4263 if test "${with_imagemagick+set}" = set; then :
4264 withval=$with_imagemagick;
4265 else
4266 with_imagemagick=$with_features
4271 # Check whether --with-xft was given.
4272 if test "${with_xft+set}" = set; then :
4273 withval=$with_xft;
4274 else
4275 with_xft=$with_features
4279 # Check whether --with-libotf was given.
4280 if test "${with_libotf+set}" = set; then :
4281 withval=$with_libotf;
4282 else
4283 with_libotf=$with_features
4287 # Check whether --with-m17n-flt was given.
4288 if test "${with_m17n_flt+set}" = set; then :
4289 withval=$with_m17n_flt;
4290 else
4291 with_m17n_flt=$with_features
4296 # Check whether --with-toolkit-scroll-bars was given.
4297 if test "${with_toolkit_scroll_bars+set}" = set; then :
4298 withval=$with_toolkit_scroll_bars;
4299 else
4300 with_toolkit_scroll_bars=$with_features
4304 # Check whether --with-xaw3d was given.
4305 if test "${with_xaw3d+set}" = set; then :
4306 withval=$with_xaw3d;
4307 else
4308 with_xaw3d=$with_features
4312 # Check whether --with-xim was given.
4313 if test "${with_xim+set}" = set; then :
4314 withval=$with_xim;
4315 else
4316 with_xim=$with_features
4320 # Check whether --with-ns was given.
4321 if test "${with_ns+set}" = set; then :
4322 withval=$with_ns;
4323 else
4324 with_ns=no
4328 # Check whether --with-w32 was given.
4329 if test "${with_w32+set}" = set; then :
4330 withval=$with_w32;
4331 else
4332 with_w32=no
4337 # Check whether --with-gpm was given.
4338 if test "${with_gpm+set}" = set; then :
4339 withval=$with_gpm;
4340 else
4341 with_gpm=$with_features
4345 # Check whether --with-dbus was given.
4346 if test "${with_dbus+set}" = set; then :
4347 withval=$with_dbus;
4348 else
4349 with_dbus=$with_features
4353 # Check whether --with-gconf was given.
4354 if test "${with_gconf+set}" = set; then :
4355 withval=$with_gconf;
4356 else
4357 with_gconf=$with_features
4361 # Check whether --with-gsettings was given.
4362 if test "${with_gsettings+set}" = set; then :
4363 withval=$with_gsettings;
4364 else
4365 with_gsettings=$with_features
4369 # Check whether --with-selinux was given.
4370 if test "${with_selinux+set}" = set; then :
4371 withval=$with_selinux;
4372 else
4373 with_selinux=$with_features
4377 # Check whether --with-gnutls was given.
4378 if test "${with_gnutls+set}" = set; then :
4379 withval=$with_gnutls;
4380 else
4381 with_gnutls=$with_features
4385 # Check whether --with-zlib was given.
4386 if test "${with_zlib+set}" = set; then :
4387 withval=$with_zlib;
4388 else
4389 with_zlib=$with_features
4394 # Check whether --with-file-notification was given.
4395 if test "${with_file_notification+set}" = set; then :
4396 withval=$with_file_notification; case "${withval}" in
4397 y | ye | yes ) val=yes ;;
4398 n | no ) val=no ;;
4399 g | gf | gfi | gfil | gfile ) val=gfile ;;
4400 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4401 w | w3 | w32 ) val=w32 ;;
4402 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4403 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4404 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4405 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4407 esac
4408 with_file_notification=$val
4410 else
4411 with_file_notification=$with_features
4415 ## For the times when you want to build Emacs but don't have
4416 ## a suitable makeinfo, and can live without the manuals.
4418 # Check whether --with-makeinfo was given.
4419 if test "${with_makeinfo+set}" = set; then :
4420 withval=$with_makeinfo;
4421 else
4422 with_makeinfo=$with_features
4426 ## Makefile.in needs the cache file name.
4429 ## This is an option because I do not know if all info/man support
4430 ## compressed files, nor how to test if they do so.
4432 # Check whether --with-compress-info was given.
4433 if test "${with_compress_info+set}" = set; then :
4434 withval=$with_compress_info;
4435 else
4436 with_compress_info=$with_features
4439 if test $with_compress_info = yes; then
4440 GZIP_INFO=yes
4441 else
4442 GZIP_INFO=
4447 # Check whether --with-pkg-config-prog was given.
4448 if test "${with_pkg_config_prog+set}" = set; then :
4449 withval=$with_pkg_config_prog;
4452 if test "X${with_pkg_config_prog}" != X; then
4453 if test "${with_pkg_config_prog}" != yes; then
4454 PKG_CONFIG="${with_pkg_config_prog}"
4459 # Check whether --with-gameuser was given.
4460 if test "${with_gameuser+set}" = set; then :
4461 withval=$with_gameuser;
4464 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4465 && gameuser="${with_gameuser}"
4466 test "X$gameuser" = X && gameuser=games
4469 # Check whether --with-gnustep-conf was given.
4470 if test "${with_gnustep_conf+set}" = set; then :
4471 withval=$with_gnustep_conf;
4474 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4475 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4476 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4477 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4479 # Check whether --enable-ns-self-contained was given.
4480 if test "${enable_ns_self_contained+set}" = set; then :
4481 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4482 else
4483 EN_NS_SELF_CONTAINED=yes
4487 # Check whether --enable-locallisppath was given.
4488 if test "${enable_locallisppath+set}" = set; then :
4489 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4490 locallisppath=
4491 elif test "${enableval}" != "yes"; then
4492 locallisppath=${enableval}
4497 # Check whether --enable-checking was given.
4498 if test "${enable_checking+set}" = set; then :
4499 enableval=$enable_checking; ac_checking_flags="${enableval}"
4502 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4503 for check in $ac_checking_flags
4505 case $check in
4506 # these set all the flags to specific states
4507 yes) ac_enable_checking=1 ;;
4508 no) ac_enable_checking= ;
4509 ac_gc_check_stringbytes= ;
4510 ac_gc_check_string_overrun= ;
4511 ac_gc_check_string_free_list= ;
4512 ac_xmalloc_overrun= ;
4513 ac_gc_check_cons_list= ;
4514 ac_glyphs_debug= ;;
4515 all) ac_enable_checking=1 ;
4516 ac_gc_check_stringbytes=1 ;
4517 ac_gc_check_string_overrun=1 ;
4518 ac_gc_check_string_free_list=1 ;
4519 ac_xmalloc_overrun=1 ;
4520 ac_gc_check_cons_list=1 ;
4521 ac_glyphs_debug=1 ;;
4522 # these enable particular checks
4523 stringbytes) ac_gc_check_stringbytes=1 ;;
4524 stringoverrun) ac_gc_check_string_overrun=1 ;;
4525 stringfreelist) ac_gc_check_string_free_list=1 ;;
4526 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4527 conslist) ac_gc_check_cons_list=1 ;;
4528 glyphs) ac_glyphs_debug=1 ;;
4529 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4530 esac
4531 done
4532 IFS="$ac_save_IFS"
4534 if test x$ac_enable_checking != x ; then
4536 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4539 if test x$ac_gc_check_stringbytes != x ; then
4541 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4544 if test x$ac_gc_check_string_overrun != x ; then
4546 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4549 if test x$ac_gc_check_string_free_list != x ; then
4551 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4554 if test x$ac_xmalloc_overrun != x ; then
4556 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4559 if test x$ac_gc_check_cons_list != x ; then
4561 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4564 if test x$ac_glyphs_debug != x ; then
4566 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4570 # Check whether --enable-check-lisp-object-type was given.
4571 if test "${enable_check_lisp_object_type+set}" = set; then :
4572 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4574 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4581 # Check whether --enable-profiling was given.
4582 if test "${enable_profiling+set}" = set; then :
4583 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4586 if test x$ac_enable_profiling != x ; then
4587 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4588 else
4589 PROFILING_CFLAGS=
4593 # Check whether --enable-autodepend was given.
4594 if test "${enable_autodepend+set}" = set; then :
4595 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4596 else
4597 ac_enable_autodepend=yes
4601 # Check whether --enable-gtk-deprecation-warnings was given.
4602 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4603 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4607 #### Make srcdir absolute, if it isn't already. It's important to
4608 #### avoid running the file name through pwd unnecessarily, since pwd can
4609 #### give you automounter prefixes, which can go away. We do all this
4610 #### so Emacs can find its files when run uninstalled.
4611 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4612 unset CDPATH
4613 case "${srcdir}" in
4614 [\\/]* | ?:[\\/]*) ;;
4616 ## We may be able to use the $PWD environment variable to make this
4617 ## absolute. But sometimes PWD is inaccurate.
4618 ## Note: we used to use $PWD at the end instead of `pwd`,
4619 ## but that tested only for a well-formed and valid PWD,
4620 ## it did not object when PWD was well-formed and valid but just wrong.
4621 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4622 then
4623 srcdir="$PWD"
4624 else
4625 srcdir=`(cd "$srcdir"; pwd)`
4628 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4629 esac
4631 ### Canonicalize the configuration name.
4633 # Make sure we can run config.sub.
4634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4635 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4638 $as_echo_n "checking build system type... " >&6; }
4639 if test "${ac_cv_build+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 ac_build_alias=$build_alias
4643 test "x$ac_build_alias" = x &&
4644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4645 test "x$ac_build_alias" = x &&
4646 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4647 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4648 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4652 $as_echo "$ac_cv_build" >&6; }
4653 case $ac_cv_build in
4654 *-*-*) ;;
4655 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4656 esac
4657 build=$ac_cv_build
4658 ac_save_IFS=$IFS; IFS='-'
4659 set x $ac_cv_build
4660 shift
4661 build_cpu=$1
4662 build_vendor=$2
4663 shift; shift
4664 # Remember, the first character of IFS is used to create $*,
4665 # except with old shells:
4666 build_os=$*
4667 IFS=$ac_save_IFS
4668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4672 $as_echo_n "checking host system type... " >&6; }
4673 if test "${ac_cv_host+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4675 else
4676 if test "x$host_alias" = x; then
4677 ac_cv_host=$ac_cv_build
4678 else
4679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4680 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4685 $as_echo "$ac_cv_host" >&6; }
4686 case $ac_cv_host in
4687 *-*-*) ;;
4688 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4689 esac
4690 host=$ac_cv_host
4691 ac_save_IFS=$IFS; IFS='-'
4692 set x $ac_cv_host
4693 shift
4694 host_cpu=$1
4695 host_vendor=$2
4696 shift; shift
4697 # Remember, the first character of IFS is used to create $*,
4698 # except with old shells:
4699 host_os=$*
4700 IFS=$ac_save_IFS
4701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4704 canonical=$host
4705 configuration=${host_alias-${build_alias-$host}}
4709 ### If you add support for a new configuration, add code to this
4710 ### switch statement to recognize your configuration name and select
4711 ### the appropriate operating system file.
4713 ### You would hope that you could choose an s/*.h
4714 ### file based on the operating system portion. However, it turns out
4715 ### that each s/*.h file is pretty manufacturer-specific.
4716 ### So we basically have to have a special case for each
4717 ### configuration name.
4719 ### As far as handling version numbers on operating systems is
4720 ### concerned, make sure things will fail in a fixable way. If
4721 ### /etc/MACHINES doesn't say anything about version numbers, be
4722 ### prepared to handle anything reasonably. If version numbers
4723 ### matter, be sure /etc/MACHINES says something about it.
4725 opsys='' unported=no
4726 case "${canonical}" in
4728 ## GNU/Linux and similar ports
4729 *-*-linux* )
4730 opsys=gnu-linux
4733 ## FreeBSD ports
4734 *-*-freebsd* )
4735 opsys=freebsd
4738 ## DragonFly ports
4739 *-*-dragonfly* )
4740 opsys=dragonfly
4743 ## FreeBSD kernel + glibc based userland
4744 *-*-kfreebsd*gnu* )
4745 opsys=gnu-kfreebsd
4748 ## NetBSD ports
4749 *-*-netbsd* )
4750 opsys=netbsd
4753 ## OpenBSD ports
4754 *-*-openbsd* )
4755 opsys=openbsd
4758 ## Apple Darwin / Mac OS X
4759 *-apple-darwin* )
4760 case "${canonical}" in
4761 i[3456]86-* ) ;;
4762 powerpc-* ) ;;
4763 x86_64-* ) ;;
4764 * ) unported=yes ;;
4765 esac
4766 opsys=darwin
4767 ## Use fink packages if available.
4768 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4769 ## if test -d /sw/include && test -d /sw/lib; then
4770 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4771 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4772 ## fi
4775 ## Cygwin ports
4776 *-*-cygwin )
4777 opsys=cygwin
4780 ## HP 9000 series 700 and 800, running HP/UX
4781 hppa*-hp-hpux10.2* )
4782 opsys=hpux10-20
4784 hppa*-hp-hpux1[1-9]* )
4785 opsys=hpux11
4786 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4789 ## IBM machines
4790 rs6000-ibm-aix4.[23]* )
4791 opsys=aix4-2
4793 powerpc-ibm-aix4.[23]* )
4794 opsys=aix4-2
4796 rs6000-ibm-aix[56]* )
4797 opsys=aix4-2
4799 powerpc-ibm-aix[56]* )
4800 opsys=aix4-2
4803 ## Silicon Graphics machines
4804 ## Iris 4D
4805 mips-sgi-irix6.5 )
4806 opsys=irix6-5
4807 # Without defining _LANGUAGE_C, things get masked out in the headers
4808 # so that, for instance, grepping for `free' in stdlib.h fails and
4809 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4810 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4813 ## Suns
4814 *-sun-solaris* \
4815 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4816 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4817 case "${canonical}" in
4818 i[3456]86-*-* ) ;;
4819 amd64-*-*|x86_64-*-*) ;;
4820 sparc* ) ;;
4821 * ) unported=yes ;;
4822 esac
4823 case "${canonical}" in
4824 *-sunos5.6* | *-solaris2.6* )
4825 opsys=sol2-6
4826 RANLIB="ar -ts"
4828 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4829 opsys=sol2-6
4830 emacs_check_sunpro_c=yes
4832 *-sunos5* | *-solaris* )
4833 opsys=sol2-10
4834 emacs_check_sunpro_c=yes
4836 esac
4837 ## Watch out for a compiler that we know will not work.
4838 case "${canonical}" in
4839 *-solaris* | *-sunos5* )
4840 if [ "x$CC" = x/usr/ucb/cc ]; then
4841 ## /usr/ucb/cc doesn't work;
4842 ## we should find some other compiler that does work.
4843 unset CC
4846 *) ;;
4847 esac
4850 ## Intel 386 machines where we don't care about the manufacturer.
4851 i[3456]86-*-* )
4852 case "${canonical}" in
4853 *-darwin* ) opsys=darwin ;;
4854 *-mingw32 )
4855 opsys=mingw32
4856 # MinGW overrides and adds some system headers in nt/inc.
4857 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4859 *-sysv4.2uw* ) opsys=unixware ;;
4860 *-sysv5uw* ) opsys=unixware ;;
4861 *-sysv5OpenUNIX* ) opsys=unixware ;;
4862 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4863 esac
4867 unported=yes
4869 esac
4871 ### If the code above didn't choose an operating system, just choose
4872 ### an operating system based on the configuration name. You really
4873 ### only want to use this when you have no idea what the right
4874 ### operating system is; if you know what operating systems a machine
4875 ### runs, it's cleaner to make it explicit in the case statement
4876 ### above.
4877 if test x"${opsys}" = x; then
4878 case "${canonical}" in
4879 *-gnu* ) opsys=gnu ;;
4881 unported=yes
4883 esac
4888 if test $unported = yes; then
4889 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4890 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4894 #### Choose a compiler.
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_CC+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -n "$CC"; then
4910 ac_cv_prog_CC="$CC" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4929 CC=$ac_cv_prog_CC
4930 if test -n "$CC"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4932 $as_echo "$CC" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4940 if test -z "$ac_cv_prog_CC"; then
4941 ac_ct_CC=$CC
4942 # Extract the first word of "gcc", so it can be a program name with args.
4943 set dummy gcc; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$ac_ct_CC"; then
4950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_ac_ct_CC="gcc"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4963 done
4964 done
4965 IFS=$as_save_IFS
4969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4970 if test -n "$ac_ct_CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4972 $as_echo "$ac_ct_CC" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4978 if test "x$ac_ct_CC" = x; then
4979 CC=""
4980 else
4981 case $cross_compiling:$ac_tool_warned in
4982 yes:)
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4985 ac_tool_warned=yes ;;
4986 esac
4987 CC=$ac_ct_CC
4989 else
4990 CC="$ac_cv_prog_CC"
4993 if test -z "$CC"; then
4994 if test -n "$ac_tool_prefix"; then
4995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4996 set dummy ${ac_tool_prefix}cc; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if test "${ac_cv_prog_CC+set}" = set; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC="$CC" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_CC="${ac_tool_prefix}cc"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5016 done
5017 done
5018 IFS=$as_save_IFS
5022 CC=$ac_cv_prog_CC
5023 if test -n "$CC"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5025 $as_echo "$CC" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5034 if test -z "$CC"; then
5035 # Extract the first word of "cc", so it can be a program name with args.
5036 set dummy cc; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_prog_CC+set}" = set; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 if test -n "$CC"; then
5043 ac_cv_prog_CC="$CC" # Let the user override the test.
5044 else
5045 ac_prog_rejected=no
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5054 ac_prog_rejected=yes
5055 continue
5057 ac_cv_prog_CC="cc"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5065 if test $ac_prog_rejected = yes; then
5066 # We found a bogon in the path, so make sure we never use it.
5067 set dummy $ac_cv_prog_CC
5068 shift
5069 if test $# != 0; then
5070 # We chose a different compiler from the bogus one.
5071 # However, it has the same basename, so the bogon will be chosen
5072 # first if we set CC to just the basename; use the full file name.
5073 shift
5074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5079 CC=$ac_cv_prog_CC
5080 if test -n "$CC"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5082 $as_echo "$CC" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5090 if test -z "$CC"; then
5091 if test -n "$ac_tool_prefix"; then
5092 for ac_prog in cl.exe
5094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_prog_CC+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -n "$CC"; then
5102 ac_cv_prog_CC="$CC" # Let the user override the test.
5103 else
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5115 done
5116 done
5117 IFS=$as_save_IFS
5121 CC=$ac_cv_prog_CC
5122 if test -n "$CC"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5124 $as_echo "$CC" >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 test -n "$CC" && break
5132 done
5134 if test -z "$CC"; then
5135 ac_ct_CC=$CC
5136 for ac_prog in cl.exe
5138 # Extract the first word of "$ac_prog", so it can be a program name with args.
5139 set dummy $ac_prog; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$ac_ct_CC"; then
5146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_CC="$ac_prog"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5159 done
5160 done
5161 IFS=$as_save_IFS
5165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5166 if test -n "$ac_ct_CC"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5168 $as_echo "$ac_ct_CC" >&6; }
5169 else
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 test -n "$ac_ct_CC" && break
5176 done
5178 if test "x$ac_ct_CC" = x; then
5179 CC=""
5180 else
5181 case $cross_compiling:$ac_tool_warned in
5182 yes:)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned=yes ;;
5186 esac
5187 CC=$ac_ct_CC
5194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5196 as_fn_error "no acceptable C compiler found in \$PATH
5197 See \`config.log' for more details." "$LINENO" 5; }
5199 # Provide some information about the compiler.
5200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5201 set X $ac_compile
5202 ac_compiler=$2
5203 for ac_option in --version -v -V -qversion; do
5204 { { ac_try="$ac_compiler $ac_option >&5"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5210 $as_echo "$ac_try_echo"; } >&5
5211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5212 ac_status=$?
5213 if test -s conftest.err; then
5214 sed '10a\
5215 ... rest of stderr output deleted ...
5216 10q' conftest.err >conftest.er1
5217 cat conftest.er1 >&5
5219 rm -f conftest.er1 conftest.err
5220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5221 test $ac_status = 0; }
5222 done
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5228 main ()
5232 return 0;
5234 _ACEOF
5235 ac_clean_files_save=$ac_clean_files
5236 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5237 # Try to create an executable without -o first, disregard a.out.
5238 # It will help us diagnose broken compilers, and finding out an intuition
5239 # of exeext.
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5241 $as_echo_n "checking whether the C compiler works... " >&6; }
5242 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5244 # The possible output files:
5245 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5247 ac_rmfiles=
5248 for ac_file in $ac_files
5250 case $ac_file in
5251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5252 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5253 esac
5254 done
5255 rm -f $ac_rmfiles
5257 if { { ac_try="$ac_link_default"
5258 case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261 esac
5262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5263 $as_echo "$ac_try_echo"; } >&5
5264 (eval "$ac_link_default") 2>&5
5265 ac_status=$?
5266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267 test $ac_status = 0; }; then :
5268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5271 # so that the user can short-circuit this test for compilers unknown to
5272 # Autoconf.
5273 for ac_file in $ac_files ''
5275 test -f "$ac_file" || continue
5276 case $ac_file in
5277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5279 [ab].out )
5280 # We found the default executable, but exeext='' is most
5281 # certainly right.
5282 break;;
5283 *.* )
5284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5285 then :; else
5286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5288 # We set ac_cv_exeext here because the later test for it is not
5289 # safe: cross compilers may not add the suffix if given an `-o'
5290 # argument, so we may need to know it at that point already.
5291 # Even if this section looks crufty: it has the advantage of
5292 # actually working.
5293 break;;
5295 break;;
5296 esac
5297 done
5298 test "$ac_cv_exeext" = no && ac_cv_exeext=
5300 else
5301 ac_file=''
5303 if test -z "$ac_file"; then :
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305 $as_echo "no" >&6; }
5306 $as_echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5311 { as_fn_set_status 77
5312 as_fn_error "C compiler cannot create executables
5313 See \`config.log' for more details." "$LINENO" 5; }; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5316 $as_echo "yes" >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5319 $as_echo_n "checking for C compiler default output file name... " >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5321 $as_echo "$ac_file" >&6; }
5322 ac_exeext=$ac_cv_exeext
5324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5325 ac_clean_files=$ac_clean_files_save
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5327 $as_echo_n "checking for suffix of executables... " >&6; }
5328 if { { ac_try="$ac_link"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5334 $as_echo "$ac_try_echo"; } >&5
5335 (eval "$ac_link") 2>&5
5336 ac_status=$?
5337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5338 test $ac_status = 0; }; then :
5339 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5340 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5341 # work properly (i.e., refer to `conftest.exe'), while it won't with
5342 # `rm'.
5343 for ac_file in conftest.exe conftest conftest.*; do
5344 test -f "$ac_file" || continue
5345 case $ac_file in
5346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5348 break;;
5349 * ) break;;
5350 esac
5351 done
5352 else
5353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5355 as_fn_error "cannot compute suffix of executables: cannot compile and link
5356 See \`config.log' for more details." "$LINENO" 5; }
5358 rm -f conftest conftest$ac_cv_exeext
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5360 $as_echo "$ac_cv_exeext" >&6; }
5362 rm -f conftest.$ac_ext
5363 EXEEXT=$ac_cv_exeext
5364 ac_exeext=$EXEEXT
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5367 #include <stdio.h>
5369 main ()
5371 FILE *f = fopen ("conftest.out", "w");
5372 return ferror (f) || fclose (f) != 0;
5375 return 0;
5377 _ACEOF
5378 ac_clean_files="$ac_clean_files conftest.out"
5379 # Check that the compiler produces executables we can run. If not, either
5380 # the compiler is broken, or we cross compile.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5382 $as_echo_n "checking whether we are cross compiling... " >&6; }
5383 if test "$cross_compiling" != yes; then
5384 { { ac_try="$ac_link"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5390 $as_echo "$ac_try_echo"; } >&5
5391 (eval "$ac_link") 2>&5
5392 ac_status=$?
5393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5394 test $ac_status = 0; }
5395 if { ac_try='./conftest$ac_cv_exeext'
5396 { { case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5401 $as_echo "$ac_try_echo"; } >&5
5402 (eval "$ac_try") 2>&5
5403 ac_status=$?
5404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5405 test $ac_status = 0; }; }; then
5406 cross_compiling=no
5407 else
5408 if test "$cross_compiling" = maybe; then
5409 cross_compiling=yes
5410 else
5411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5413 as_fn_error "cannot run C compiled programs.
5414 If you meant to cross compile, use \`--host'.
5415 See \`config.log' for more details." "$LINENO" 5; }
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5420 $as_echo "$cross_compiling" >&6; }
5422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5423 ac_clean_files=$ac_clean_files_save
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5425 $as_echo_n "checking for suffix of object files... " >&6; }
5426 if test "${ac_cv_objext+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5433 main ()
5437 return 0;
5439 _ACEOF
5440 rm -f conftest.o conftest.obj
5441 if { { ac_try="$ac_compile"
5442 case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5447 $as_echo "$ac_try_echo"; } >&5
5448 (eval "$ac_compile") 2>&5
5449 ac_status=$?
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; then :
5452 for ac_file in conftest.o conftest.obj conftest.*; do
5453 test -f "$ac_file" || continue;
5454 case $ac_file in
5455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5457 break;;
5458 esac
5459 done
5460 else
5461 $as_echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5466 as_fn_error "cannot compute suffix of object files: cannot compile
5467 See \`config.log' for more details." "$LINENO" 5; }
5469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5472 $as_echo "$ac_cv_objext" >&6; }
5473 OBJEXT=$ac_cv_objext
5474 ac_objext=$OBJEXT
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5477 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5484 main ()
5486 #ifndef __GNUC__
5487 choke me
5488 #endif
5491 return 0;
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_compiler_gnu=yes
5496 else
5497 ac_compiler_gnu=no
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5505 if test $ac_compiler_gnu = yes; then
5506 GCC=yes
5507 else
5508 GCC=
5510 ac_test_CFLAGS=${CFLAGS+set}
5511 ac_save_CFLAGS=$CFLAGS
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5514 if test "${ac_cv_prog_cc_g+set}" = set; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 ac_save_c_werror_flag=$ac_c_werror_flag
5518 ac_c_werror_flag=yes
5519 ac_cv_prog_cc_g=no
5520 CFLAGS="-g"
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5525 main ()
5529 return 0;
5531 _ACEOF
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 ac_cv_prog_cc_g=yes
5534 else
5535 CFLAGS=""
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5540 main ()
5544 return 0;
5546 _ACEOF
5547 if ac_fn_c_try_compile "$LINENO"; then :
5549 else
5550 ac_c_werror_flag=$ac_save_c_werror_flag
5551 CFLAGS="-g"
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5556 main ()
5560 return 0;
5562 _ACEOF
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564 ac_cv_prog_cc_g=yes
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 ac_c_werror_flag=$ac_save_c_werror_flag
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5574 $as_echo "$ac_cv_prog_cc_g" >&6; }
5575 if test "$ac_test_CFLAGS" = set; then
5576 CFLAGS=$ac_save_CFLAGS
5577 elif test $ac_cv_prog_cc_g = yes; then
5578 if test "$GCC" = yes; then
5579 CFLAGS="-g -O2"
5580 else
5581 CFLAGS="-g"
5583 else
5584 if test "$GCC" = yes; then
5585 CFLAGS="-O2"
5586 else
5587 CFLAGS=
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5592 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 ac_cv_prog_cc_c89=no
5596 ac_save_CC=$CC
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 #include <stdarg.h>
5600 #include <stdio.h>
5601 #include <sys/types.h>
5602 #include <sys/stat.h>
5603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5604 struct buf { int x; };
5605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5606 static char *e (p, i)
5607 char **p;
5608 int i;
5610 return p[i];
5612 static char *f (char * (*g) (char **, int), char **p, ...)
5614 char *s;
5615 va_list v;
5616 va_start (v,p);
5617 s = g (p, va_arg (v,int));
5618 va_end (v);
5619 return s;
5622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5623 function prototypes and stuff, but not '\xHH' hex character constants.
5624 These don't provoke an error unfortunately, instead are silently treated
5625 as 'x'. The following induces an error, until -std is added to get
5626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5627 array size at least. It's necessary to write '\x00'==0 to get something
5628 that's true only with -std. */
5629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5632 inside strings and character constants. */
5633 #define FOO(x) 'x'
5634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5636 int test (int i, double x);
5637 struct s1 {int (*f) (int a);};
5638 struct s2 {int (*f) (double a);};
5639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5640 int argc;
5641 char **argv;
5643 main ()
5645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5647 return 0;
5649 _ACEOF
5650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5653 CC="$ac_save_CC $ac_arg"
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 ac_cv_prog_cc_c89=$ac_arg
5657 rm -f core conftest.err conftest.$ac_objext
5658 test "x$ac_cv_prog_cc_c89" != "xno" && break
5659 done
5660 rm -f conftest.$ac_ext
5661 CC=$ac_save_CC
5664 # AC_CACHE_VAL
5665 case "x$ac_cv_prog_cc_c89" in
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5668 $as_echo "none needed" >&6; } ;;
5669 xno)
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5671 $as_echo "unsupported" >&6; } ;;
5673 CC="$CC $ac_cv_prog_cc_c89"
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5676 esac
5677 if test "x$ac_cv_prog_cc_c89" != xno; then :
5681 ac_ext=c
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686 DEPDIR="${am__leading_dot}deps"
5688 ac_config_commands="$ac_config_commands depfiles"
5691 am_make=${MAKE-make}
5692 cat > confinc << 'END'
5693 am__doit:
5694 @echo this is the am__doit target
5695 .PHONY: am__doit
5697 # If we don't find an include directive, just comment out the code.
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5699 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5700 am__include="#"
5701 am__quote=
5702 _am_result=none
5703 # First try GNU make style include.
5704 echo "include confinc" > confmf
5705 # Ignore all kinds of additional output from `make'.
5706 case `$am_make -s -f confmf 2> /dev/null` in #(
5707 *the\ am__doit\ target*)
5708 am__include=include
5709 am__quote=
5710 _am_result=GNU
5712 esac
5713 # Now try BSD make style include.
5714 if test "$am__include" = "#"; then
5715 echo '.include "confinc"' > confmf
5716 case `$am_make -s -f confmf 2> /dev/null` in #(
5717 *the\ am__doit\ target*)
5718 am__include=.include
5719 am__quote="\""
5720 _am_result=BSD
5722 esac
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5727 $as_echo "$_am_result" >&6; }
5728 rm -f confinc confmf
5730 # Check whether --enable-dependency-tracking was given.
5731 if test "${enable_dependency_tracking+set}" = set; then :
5732 enableval=$enable_dependency_tracking;
5735 if test "x$enable_dependency_tracking" != xno; then
5736 am_depcomp="$ac_aux_dir/depcomp"
5737 AMDEPBACKSLASH='\'
5739 if test "x$enable_dependency_tracking" != xno; then
5740 AMDEP_TRUE=
5741 AMDEP_FALSE='#'
5742 else
5743 AMDEP_TRUE='#'
5744 AMDEP_FALSE=
5749 depcc="$CC" am_compiler_list=
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5752 $as_echo_n "checking dependency style of $depcc... " >&6; }
5753 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5757 # We make a subdir and do the tests there. Otherwise we can end up
5758 # making bogus files that we don't know about and never remove. For
5759 # instance it was reported that on HP-UX the gcc test will end up
5760 # making a dummy file named `D' -- because `-MD' means `put the output
5761 # in D'.
5762 mkdir conftest.dir
5763 # Copy depcomp to subdir because otherwise we won't find it if we're
5764 # using a relative directory.
5765 cp "$am_depcomp" conftest.dir
5766 cd conftest.dir
5767 # We will build objects and dependencies in a subdirectory because
5768 # it helps to detect inapplicable dependency modes. For instance
5769 # both Tru64's cc and ICC support -MD to output dependencies as a
5770 # side effect of compilation, but ICC will put the dependencies in
5771 # the current directory while Tru64 will put them in the object
5772 # directory.
5773 mkdir sub
5775 am_cv_CC_dependencies_compiler_type=none
5776 if test "$am_compiler_list" = ""; then
5777 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5779 am__universal=false
5780 case " $depcc " in #(
5781 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5782 esac
5784 for depmode in $am_compiler_list; do
5785 # Setup a source with many dependencies, because some compilers
5786 # like to wrap large dependency lists on column 80 (with \), and
5787 # we should not choose a depcomp mode which is confused by this.
5789 # We need to recreate these files for each test, as the compiler may
5790 # overwrite some of them when testing with obscure command lines.
5791 # This happens at least with the AIX C compiler.
5792 : > sub/conftest.c
5793 for i in 1 2 3 4 5 6; do
5794 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5795 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5796 # Solaris 8's {/usr,}/bin/sh.
5797 touch sub/conftst$i.h
5798 done
5799 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5801 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5802 # mode. It turns out that the SunPro C++ compiler does not properly
5803 # handle `-M -o', and we need to detect this. Also, some Intel
5804 # versions had trouble with output in subdirs
5805 am__obj=sub/conftest.${OBJEXT-o}
5806 am__minus_obj="-o $am__obj"
5807 case $depmode in
5808 gcc)
5809 # This depmode causes a compiler race in universal mode.
5810 test "$am__universal" = false || continue
5812 nosideeffect)
5813 # after this tag, mechanisms are not by side-effect, so they'll
5814 # only be used when explicitly requested
5815 if test "x$enable_dependency_tracking" = xyes; then
5816 continue
5817 else
5818 break
5821 msvisualcpp | msvcmsys)
5822 # This compiler won't grok `-c -o', but also, the minuso test has
5823 # not run yet. These depmodes are late enough in the game, and
5824 # so weak that their functioning should not be impacted.
5825 am__obj=conftest.${OBJEXT-o}
5826 am__minus_obj=
5828 none) break ;;
5829 esac
5830 if depmode=$depmode \
5831 source=sub/conftest.c object=$am__obj \
5832 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5833 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5834 >/dev/null 2>conftest.err &&
5835 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5836 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5837 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5838 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5839 # icc doesn't choke on unknown options, it will just issue warnings
5840 # or remarks (even with -Werror). So we grep stderr for any message
5841 # that says an option was ignored or not supported.
5842 # When given -MP, icc 7.0 and 7.1 complain thusly:
5843 # icc: Command line warning: ignoring option '-M'; no argument required
5844 # The diagnosis changed in icc 8.0:
5845 # icc: Command line remark: option '-MP' not supported
5846 if (grep 'ignoring option' conftest.err ||
5847 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5848 am_cv_CC_dependencies_compiler_type=$depmode
5849 break
5852 done
5854 cd ..
5855 rm -rf conftest.dir
5856 else
5857 am_cv_CC_dependencies_compiler_type=none
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5862 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5863 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5866 test "x$enable_dependency_tracking" != xno \
5867 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5868 am__fastdepCC_TRUE=
5869 am__fastdepCC_FALSE='#'
5870 else
5871 am__fastdepCC_TRUE='#'
5872 am__fastdepCC_FALSE=
5876 if test "x$CC" != xcc; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5878 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5881 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5883 set dummy $CC; ac_cc=`$as_echo "$2" |
5884 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5885 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5886 $as_echo_n "(cached) " >&6
5887 else
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5892 main ()
5896 return 0;
5898 _ACEOF
5899 # Make sure it works both with $CC and with simple cc.
5900 # We do the test twice because some compilers refuse to overwrite an
5901 # existing .o file with -o, though they will create one.
5902 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5903 rm -f conftest2.*
5904 if { { case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5909 $as_echo "$ac_try_echo"; } >&5
5910 (eval "$ac_try") 2>&5
5911 ac_status=$?
5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5913 test $ac_status = 0; } &&
5914 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917 esac
5918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5919 $as_echo "$ac_try_echo"; } >&5
5920 (eval "$ac_try") 2>&5
5921 ac_status=$?
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; };
5924 then
5925 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5926 if test "x$CC" != xcc; then
5927 # Test first that cc exists at all.
5928 if { ac_try='cc -c conftest.$ac_ext >&5'
5929 { { case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932 esac
5933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5934 $as_echo "$ac_try_echo"; } >&5
5935 (eval "$ac_try") 2>&5
5936 ac_status=$?
5937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5938 test $ac_status = 0; }; }; then
5939 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5940 rm -f conftest2.*
5941 if { { case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944 esac
5945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5946 $as_echo "$ac_try_echo"; } >&5
5947 (eval "$ac_try") 2>&5
5948 ac_status=$?
5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950 test $ac_status = 0; } &&
5951 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954 esac
5955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5956 $as_echo "$ac_try_echo"; } >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5960 test $ac_status = 0; };
5961 then
5962 # cc works too.
5964 else
5965 # cc exists but doesn't like -o.
5966 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5970 else
5971 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5973 rm -f core conftest*
5976 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5978 $as_echo "yes" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5983 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5987 # FIXME: we rely on the cache variable name because
5988 # there is no other way.
5989 set dummy $CC
5990 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5991 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5992 if test "$am_t" != yes; then
5993 # Losing compiler, so override with the script.
5994 # FIXME: It is wrong to rewrite CC.
5995 # But if we don't then we get into trouble of one sort or another.
5996 # A longer-term fix would be to have automake use am__CC in this case,
5997 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5998 CC="$am_aux_dir/compile $CC"
6003 if test x$GCC = xyes; then
6004 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6005 else
6006 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6009 if test "x$opsys" = "xmingw32"; then
6010 BUILDING_FOR_WINDOWSNT_TRUE=
6011 BUILDING_FOR_WINDOWSNT_FALSE='#'
6012 else
6013 BUILDING_FOR_WINDOWSNT_TRUE='#'
6014 BUILDING_FOR_WINDOWSNT_FALSE=
6018 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6019 # as we don't use them.
6021 # Avoid gnulib's threadlib module, as we do threads our own way.
6024 # Initialize gnulib right after choosing the compiler.
6026 ac_ext=c
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6033 # On Suns, sometimes $CPP names a directory.
6034 if test -n "$CPP" && test -d "$CPP"; then
6035 CPP=
6037 if test -z "$CPP"; then
6038 if test "${ac_cv_prog_CPP+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 # Double quotes because CPP needs to be expanded
6042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6044 ac_preproc_ok=false
6045 for ac_c_preproc_warn_flag in '' yes
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6055 #ifdef __STDC__
6056 # include <limits.h>
6057 #else
6058 # include <assert.h>
6059 #endif
6060 Syntax error
6061 _ACEOF
6062 if ac_fn_c_try_cpp "$LINENO"; then :
6064 else
6065 # Broken: fails on valid input.
6066 continue
6068 rm -f conftest.err conftest.$ac_ext
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ac_nonexistent.h>
6075 _ACEOF
6076 if ac_fn_c_try_cpp "$LINENO"; then :
6077 # Broken: success on invalid input.
6078 continue
6079 else
6080 # Passes both tests.
6081 ac_preproc_ok=:
6082 break
6084 rm -f conftest.err conftest.$ac_ext
6086 done
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.$ac_ext
6089 if $ac_preproc_ok; then :
6090 break
6093 done
6094 ac_cv_prog_CPP=$CPP
6097 CPP=$ac_cv_prog_CPP
6098 else
6099 ac_cv_prog_CPP=$CPP
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102 $as_echo "$CPP" >&6; }
6103 ac_preproc_ok=false
6104 for ac_c_preproc_warn_flag in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 #ifdef __STDC__
6115 # include <limits.h>
6116 #else
6117 # include <assert.h>
6118 #endif
6119 Syntax error
6120 _ACEOF
6121 if ac_fn_c_try_cpp "$LINENO"; then :
6123 else
6124 # Broken: fails on valid input.
6125 continue
6127 rm -f conftest.err conftest.$ac_ext
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133 #include <ac_nonexistent.h>
6134 _ACEOF
6135 if ac_fn_c_try_cpp "$LINENO"; then :
6136 # Broken: success on invalid input.
6137 continue
6138 else
6139 # Passes both tests.
6140 ac_preproc_ok=:
6141 break
6143 rm -f conftest.err conftest.$ac_ext
6145 done
6146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147 rm -f conftest.err conftest.$ac_ext
6148 if $ac_preproc_ok; then :
6150 else
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details." "$LINENO" 5; }
6157 ac_ext=c
6158 ac_cpp='$CPP $CPPFLAGS'
6159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6165 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6166 if test "${ac_cv_path_GREP+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -z "$GREP"; then
6170 ac_path_GREP_found=false
6171 # Loop through the user's path and test for each of PROGNAME-LIST
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_prog in grep ggrep; do
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6180 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6181 # Check for GNU ac_path_GREP and select it if it is found.
6182 # Check for GNU $ac_path_GREP
6183 case `"$ac_path_GREP" --version 2>&1` in
6184 *GNU*)
6185 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6187 ac_count=0
6188 $as_echo_n 0123456789 >"conftest.in"
6189 while :
6191 cat "conftest.in" "conftest.in" >"conftest.tmp"
6192 mv "conftest.tmp" "conftest.in"
6193 cp "conftest.in" "conftest.nl"
6194 $as_echo 'GREP' >> "conftest.nl"
6195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6197 as_fn_arith $ac_count + 1 && ac_count=$as_val
6198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6199 # Best one so far, save it but keep looking for a better one
6200 ac_cv_path_GREP="$ac_path_GREP"
6201 ac_path_GREP_max=$ac_count
6203 # 10*(2^10) chars as input seems more than enough
6204 test $ac_count -gt 10 && break
6205 done
6206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6207 esac
6209 $ac_path_GREP_found && break 3
6210 done
6211 done
6212 done
6213 IFS=$as_save_IFS
6214 if test -z "$ac_cv_path_GREP"; then
6215 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6217 else
6218 ac_cv_path_GREP=$GREP
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6223 $as_echo "$ac_cv_path_GREP" >&6; }
6224 GREP="$ac_cv_path_GREP"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6228 $as_echo_n "checking for egrep... " >&6; }
6229 if test "${ac_cv_path_EGREP+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6233 then ac_cv_path_EGREP="$GREP -E"
6234 else
6235 if test -z "$EGREP"; then
6236 ac_path_EGREP_found=false
6237 # Loop through the user's path and test for each of PROGNAME-LIST
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_prog in egrep; do
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6246 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6247 # Check for GNU ac_path_EGREP and select it if it is found.
6248 # Check for GNU $ac_path_EGREP
6249 case `"$ac_path_EGREP" --version 2>&1` in
6250 *GNU*)
6251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6253 ac_count=0
6254 $as_echo_n 0123456789 >"conftest.in"
6255 while :
6257 cat "conftest.in" "conftest.in" >"conftest.tmp"
6258 mv "conftest.tmp" "conftest.in"
6259 cp "conftest.in" "conftest.nl"
6260 $as_echo 'EGREP' >> "conftest.nl"
6261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6263 as_fn_arith $ac_count + 1 && ac_count=$as_val
6264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6265 # Best one so far, save it but keep looking for a better one
6266 ac_cv_path_EGREP="$ac_path_EGREP"
6267 ac_path_EGREP_max=$ac_count
6269 # 10*(2^10) chars as input seems more than enough
6270 test $ac_count -gt 10 && break
6271 done
6272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6273 esac
6275 $ac_path_EGREP_found && break 3
6276 done
6277 done
6278 done
6279 IFS=$as_save_IFS
6280 if test -z "$ac_cv_path_EGREP"; then
6281 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6283 else
6284 ac_cv_path_EGREP=$EGREP
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6290 $as_echo "$ac_cv_path_EGREP" >&6; }
6291 EGREP="$ac_cv_path_EGREP"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6297 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6298 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6305 #ifdef __ACK__
6306 Amsterdam
6307 #endif
6309 _ACEOF
6310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6311 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6312 gl_cv_c_amsterdam_compiler=yes
6313 else
6314 gl_cv_c_amsterdam_compiler=no
6316 rm -f conftest*
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6321 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6322 if test -z "$AR"; then
6323 if test $gl_cv_c_amsterdam_compiler = yes; then
6324 AR='cc -c.a'
6325 if test -z "$ARFLAGS"; then
6326 ARFLAGS='-o'
6328 else
6329 if test -n "$ac_tool_prefix"; then
6330 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6331 set dummy ${ac_tool_prefix}ar; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_AR+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 if test -n "$AR"; then
6338 ac_cv_prog_AR="$AR" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6343 IFS=$as_save_IFS
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_AR="${ac_tool_prefix}ar"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 break 2
6351 done
6352 done
6353 IFS=$as_save_IFS
6357 AR=$ac_cv_prog_AR
6358 if test -n "$AR"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6360 $as_echo "$AR" >&6; }
6361 else
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6368 if test -z "$ac_cv_prog_AR"; then
6369 ac_ct_AR=$AR
6370 # Extract the first word of "ar", so it can be a program name with args.
6371 set dummy ar; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if test -n "$ac_ct_AR"; then
6378 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_prog_ac_ct_AR="ar"
6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6391 done
6392 done
6393 IFS=$as_save_IFS
6397 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6398 if test -n "$ac_ct_AR"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6400 $as_echo "$ac_ct_AR" >&6; }
6401 else
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6406 if test "x$ac_ct_AR" = x; then
6407 AR="ar"
6408 else
6409 case $cross_compiling:$ac_tool_warned in
6410 yes:)
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6413 ac_tool_warned=yes ;;
6414 esac
6415 AR=$ac_ct_AR
6417 else
6418 AR="$ac_cv_prog_AR"
6421 if test -z "$ARFLAGS"; then
6422 ARFLAGS='cru'
6425 else
6426 if test -z "$ARFLAGS"; then
6427 ARFLAGS='cru'
6432 if test -z "$RANLIB"; then
6433 if test $gl_cv_c_amsterdam_compiler = yes; then
6434 RANLIB=':'
6435 else
6436 if test -n "$ac_tool_prefix"; then
6437 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6438 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$RANLIB"; then
6445 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6458 done
6459 done
6460 IFS=$as_save_IFS
6464 RANLIB=$ac_cv_prog_RANLIB
6465 if test -n "$RANLIB"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6467 $as_echo "$RANLIB" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6475 if test -z "$ac_cv_prog_RANLIB"; then
6476 ac_ct_RANLIB=$RANLIB
6477 # Extract the first word of "ranlib", so it can be a program name with args.
6478 set dummy ranlib; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6482 $as_echo_n "(cached) " >&6
6483 else
6484 if test -n "$ac_ct_RANLIB"; then
6485 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6490 IFS=$as_save_IFS
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_prog_ac_ct_RANLIB="ranlib"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 break 2
6498 done
6499 done
6500 IFS=$as_save_IFS
6504 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6505 if test -n "$ac_ct_RANLIB"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6507 $as_echo "$ac_ct_RANLIB" >&6; }
6508 else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6513 if test "x$ac_ct_RANLIB" = x; then
6514 RANLIB=":"
6515 else
6516 case $cross_compiling:$ac_tool_warned in
6517 yes:)
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520 ac_tool_warned=yes ;;
6521 esac
6522 RANLIB=$ac_ct_RANLIB
6524 else
6525 RANLIB="$ac_cv_prog_RANLIB"
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6533 $as_echo_n "checking for ANSI C header files... " >&6; }
6534 if test "${ac_cv_header_stdc+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <stdlib.h>
6540 #include <stdarg.h>
6541 #include <string.h>
6542 #include <float.h>
6545 main ()
6549 return 0;
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553 ac_cv_header_stdc=yes
6554 else
6555 ac_cv_header_stdc=no
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 if test $ac_cv_header_stdc = yes; then
6560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 #include <string.h>
6565 _ACEOF
6566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6567 $EGREP "memchr" >/dev/null 2>&1; then :
6569 else
6570 ac_cv_header_stdc=no
6572 rm -f conftest*
6576 if test $ac_cv_header_stdc = yes; then
6577 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 #include <stdlib.h>
6582 _ACEOF
6583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6584 $EGREP "free" >/dev/null 2>&1; then :
6586 else
6587 ac_cv_header_stdc=no
6589 rm -f conftest*
6593 if test $ac_cv_header_stdc = yes; then
6594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6595 if test "$cross_compiling" = yes; then :
6597 else
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6600 #include <ctype.h>
6601 #include <stdlib.h>
6602 #if ((' ' & 0x0FF) == 0x020)
6603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6605 #else
6606 # define ISLOWER(c) \
6607 (('a' <= (c) && (c) <= 'i') \
6608 || ('j' <= (c) && (c) <= 'r') \
6609 || ('s' <= (c) && (c) <= 'z'))
6610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6611 #endif
6613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6615 main ()
6617 int i;
6618 for (i = 0; i < 256; i++)
6619 if (XOR (islower (i), ISLOWER (i))
6620 || toupper (i) != TOUPPER (i))
6621 return 2;
6622 return 0;
6624 _ACEOF
6625 if ac_fn_c_try_run "$LINENO"; then :
6627 else
6628 ac_cv_header_stdc=no
6630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6631 conftest.$ac_objext conftest.beam conftest.$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6637 $as_echo "$ac_cv_header_stdc" >&6; }
6638 if test $ac_cv_header_stdc = yes; then
6640 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6644 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6645 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6646 inttypes.h stdint.h unistd.h
6647 do :
6648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6649 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6651 eval as_val=\$$as_ac_Header
6652 if test "x$as_val" = x""yes; then :
6653 cat >>confdefs.h <<_ACEOF
6654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6655 _ACEOF
6659 done
6663 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6664 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6665 MINIX=yes
6666 else
6667 MINIX=
6671 if test "$MINIX" = yes; then
6673 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6676 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6679 $as_echo "#define _MINIX 1" >>confdefs.h
6682 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6688 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6689 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6695 # define __EXTENSIONS__ 1
6696 $ac_includes_default
6698 main ()
6702 return 0;
6704 _ACEOF
6705 if ac_fn_c_try_compile "$LINENO"; then :
6706 ac_cv_safe_to_define___extensions__=yes
6707 else
6708 ac_cv_safe_to_define___extensions__=no
6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6713 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6714 test $ac_cv_safe_to_define___extensions__ = yes &&
6715 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6717 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6719 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6721 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6723 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6725 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6728 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6729 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 ac_cv_should_define__xopen_source=no
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6736 #include <wchar.h>
6737 mbstate_t x;
6739 main ()
6743 return 0;
6745 _ACEOF
6746 if ac_fn_c_try_compile "$LINENO"; then :
6748 else
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6752 #define _XOPEN_SOURCE 500
6753 #include <wchar.h>
6754 mbstate_t x;
6756 main ()
6760 return 0;
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 ac_cv_should_define__xopen_source=yes
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6771 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6772 test $ac_cv_should_define__xopen_source = yes &&
6773 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6782 # Check whether --enable-largefile was given.
6783 if test "${enable_largefile+set}" = set; then :
6784 enableval=$enable_largefile;
6787 if test "$enable_largefile" != no; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6790 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6791 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 ac_cv_sys_largefile_CC=no
6795 if test "$GCC" != yes; then
6796 ac_save_CC=$CC
6797 while :; do
6798 # IRIX 6.2 and later do not support large files by default,
6799 # so use the C compiler's -n32 option if that helps.
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6802 #include <sys/types.h>
6803 /* Check that off_t can represent 2**63 - 1 correctly.
6804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6805 since some C++ compilers masquerading as C compilers
6806 incorrectly reject 9223372036854775807. */
6807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6809 && LARGE_OFF_T % 2147483647 == 1)
6810 ? 1 : -1];
6812 main ()
6816 return 0;
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 break
6822 rm -f core conftest.err conftest.$ac_objext
6823 CC="$CC -n32"
6824 if ac_fn_c_try_compile "$LINENO"; then :
6825 ac_cv_sys_largefile_CC=' -n32'; break
6827 rm -f core conftest.err conftest.$ac_objext
6828 break
6829 done
6830 CC=$ac_save_CC
6831 rm -f conftest.$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6835 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6836 if test "$ac_cv_sys_largefile_CC" != no; then
6837 CC=$CC$ac_cv_sys_largefile_CC
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6841 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6842 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 while :; do
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <sys/types.h>
6849 /* Check that off_t can represent 2**63 - 1 correctly.
6850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6851 since some C++ compilers masquerading as C compilers
6852 incorrectly reject 9223372036854775807. */
6853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6855 && LARGE_OFF_T % 2147483647 == 1)
6856 ? 1 : -1];
6858 main ()
6862 return 0;
6864 _ACEOF
6865 if ac_fn_c_try_compile "$LINENO"; then :
6866 ac_cv_sys_file_offset_bits=no; break
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 #define _FILE_OFFSET_BITS 64
6872 #include <sys/types.h>
6873 /* Check that off_t can represent 2**63 - 1 correctly.
6874 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6875 since some C++ compilers masquerading as C compilers
6876 incorrectly reject 9223372036854775807. */
6877 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6878 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6879 && LARGE_OFF_T % 2147483647 == 1)
6880 ? 1 : -1];
6882 main ()
6886 return 0;
6888 _ACEOF
6889 if ac_fn_c_try_compile "$LINENO"; then :
6890 ac_cv_sys_file_offset_bits=64; break
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 ac_cv_sys_file_offset_bits=unknown
6894 break
6895 done
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6898 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6899 case $ac_cv_sys_file_offset_bits in #(
6900 no | unknown) ;;
6902 cat >>confdefs.h <<_ACEOF
6903 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6904 _ACEOF
6906 esac
6907 rm -rf conftest*
6908 if test $ac_cv_sys_file_offset_bits = unknown; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6910 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6911 if test "${ac_cv_sys_large_files+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 while :; do
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 #include <sys/types.h>
6918 /* Check that off_t can represent 2**63 - 1 correctly.
6919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6920 since some C++ compilers masquerading as C compilers
6921 incorrectly reject 9223372036854775807. */
6922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6924 && LARGE_OFF_T % 2147483647 == 1)
6925 ? 1 : -1];
6927 main ()
6931 return 0;
6933 _ACEOF
6934 if ac_fn_c_try_compile "$LINENO"; then :
6935 ac_cv_sys_large_files=no; break
6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 #define _LARGE_FILES 1
6941 #include <sys/types.h>
6942 /* Check that off_t can represent 2**63 - 1 correctly.
6943 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6944 since some C++ compilers masquerading as C compilers
6945 incorrectly reject 9223372036854775807. */
6946 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6947 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6948 && LARGE_OFF_T % 2147483647 == 1)
6949 ? 1 : -1];
6951 main ()
6955 return 0;
6957 _ACEOF
6958 if ac_fn_c_try_compile "$LINENO"; then :
6959 ac_cv_sys_large_files=1; break
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 ac_cv_sys_large_files=unknown
6963 break
6964 done
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6967 $as_echo "$ac_cv_sys_large_files" >&6; }
6968 case $ac_cv_sys_large_files in #(
6969 no | unknown) ;;
6971 cat >>confdefs.h <<_ACEOF
6972 #define _LARGE_FILES $ac_cv_sys_large_files
6973 _ACEOF
6975 esac
6976 rm -rf conftest*
6980 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6984 case $ac_cv_prog_cc_stdc in #(
6985 no) :
6986 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6987 *) :
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6989 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6990 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 ac_cv_prog_cc_c99=no
6994 ac_save_CC=$CC
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 #include <stdarg.h>
6998 #include <stdbool.h>
6999 #include <stdlib.h>
7000 #include <wchar.h>
7001 #include <stdio.h>
7003 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7004 #define debug(...) fprintf (stderr, __VA_ARGS__)
7005 #define showlist(...) puts (#__VA_ARGS__)
7006 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7007 static void
7008 test_varargs_macros (void)
7010 int x = 1234;
7011 int y = 5678;
7012 debug ("Flag");
7013 debug ("X = %d\n", x);
7014 showlist (The first, second, and third items.);
7015 report (x>y, "x is %d but y is %d", x, y);
7018 // Check long long types.
7019 #define BIG64 18446744073709551615ull
7020 #define BIG32 4294967295ul
7021 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7022 #if !BIG_OK
7023 your preprocessor is broken;
7024 #endif
7025 #if BIG_OK
7026 #else
7027 your preprocessor is broken;
7028 #endif
7029 static long long int bignum = -9223372036854775807LL;
7030 static unsigned long long int ubignum = BIG64;
7032 struct incomplete_array
7034 int datasize;
7035 double data[];
7038 struct named_init {
7039 int number;
7040 const wchar_t *name;
7041 double average;
7044 typedef const char *ccp;
7046 static inline int
7047 test_restrict (ccp restrict text)
7049 // See if C++-style comments work.
7050 // Iterate through items via the restricted pointer.
7051 // Also check for declarations in for loops.
7052 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7053 continue;
7054 return 0;
7057 // Check varargs and va_copy.
7058 static void
7059 test_varargs (const char *format, ...)
7061 va_list args;
7062 va_start (args, format);
7063 va_list args_copy;
7064 va_copy (args_copy, args);
7066 const char *str;
7067 int number;
7068 float fnumber;
7070 while (*format)
7072 switch (*format++)
7074 case 's': // string
7075 str = va_arg (args_copy, const char *);
7076 break;
7077 case 'd': // int
7078 number = va_arg (args_copy, int);
7079 break;
7080 case 'f': // float
7081 fnumber = va_arg (args_copy, double);
7082 break;
7083 default:
7084 break;
7087 va_end (args_copy);
7088 va_end (args);
7092 main ()
7095 // Check bool.
7096 _Bool success = false;
7098 // Check restrict.
7099 if (test_restrict ("String literal") == 0)
7100 success = true;
7101 char *restrict newvar = "Another string";
7103 // Check varargs.
7104 test_varargs ("s, d' f .", "string", 65, 34.234);
7105 test_varargs_macros ();
7107 // Check flexible array members.
7108 struct incomplete_array *ia =
7109 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7110 ia->datasize = 10;
7111 for (int i = 0; i < ia->datasize; ++i)
7112 ia->data[i] = i * 1.234;
7114 // Check named initializers.
7115 struct named_init ni = {
7116 .number = 34,
7117 .name = L"Test wide string",
7118 .average = 543.34343,
7121 ni.number = 58;
7123 int dynamic_array[ni.number];
7124 dynamic_array[ni.number - 1] = 543;
7126 // work around unused variable warnings
7127 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7128 || dynamic_array[ni.number - 1] != 543);
7131 return 0;
7133 _ACEOF
7134 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7136 CC="$ac_save_CC $ac_arg"
7137 if ac_fn_c_try_compile "$LINENO"; then :
7138 ac_cv_prog_cc_c99=$ac_arg
7140 rm -f core conftest.err conftest.$ac_objext
7141 test "x$ac_cv_prog_cc_c99" != "xno" && break
7142 done
7143 rm -f conftest.$ac_ext
7144 CC=$ac_save_CC
7147 # AC_CACHE_VAL
7148 case "x$ac_cv_prog_cc_c99" in
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7151 $as_echo "none needed" >&6; } ;;
7152 xno)
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7154 $as_echo "unsupported" >&6; } ;;
7156 CC="$CC $ac_cv_prog_cc_c99"
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7158 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7159 esac
7160 if test "x$ac_cv_prog_cc_c99" != xno; then :
7161 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7165 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 ac_cv_prog_cc_c89=no
7169 ac_save_CC=$CC
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172 #include <stdarg.h>
7173 #include <stdio.h>
7174 #include <sys/types.h>
7175 #include <sys/stat.h>
7176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7177 struct buf { int x; };
7178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7179 static char *e (p, i)
7180 char **p;
7181 int i;
7183 return p[i];
7185 static char *f (char * (*g) (char **, int), char **p, ...)
7187 char *s;
7188 va_list v;
7189 va_start (v,p);
7190 s = g (p, va_arg (v,int));
7191 va_end (v);
7192 return s;
7195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7196 function prototypes and stuff, but not '\xHH' hex character constants.
7197 These don't provoke an error unfortunately, instead are silently treated
7198 as 'x'. The following induces an error, until -std is added to get
7199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7200 array size at least. It's necessary to write '\x00'==0 to get something
7201 that's true only with -std. */
7202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7205 inside strings and character constants. */
7206 #define FOO(x) 'x'
7207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7209 int test (int i, double x);
7210 struct s1 {int (*f) (int a);};
7211 struct s2 {int (*f) (double a);};
7212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7213 int argc;
7214 char **argv;
7216 main ()
7218 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7220 return 0;
7222 _ACEOF
7223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7226 CC="$ac_save_CC $ac_arg"
7227 if ac_fn_c_try_compile "$LINENO"; then :
7228 ac_cv_prog_cc_c89=$ac_arg
7230 rm -f core conftest.err conftest.$ac_objext
7231 test "x$ac_cv_prog_cc_c89" != "xno" && break
7232 done
7233 rm -f conftest.$ac_ext
7234 CC=$ac_save_CC
7237 # AC_CACHE_VAL
7238 case "x$ac_cv_prog_cc_c89" in
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7241 $as_echo "none needed" >&6; } ;;
7242 xno)
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7244 $as_echo "unsupported" >&6; } ;;
7246 CC="$CC $ac_cv_prog_cc_c89"
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7249 esac
7250 if test "x$ac_cv_prog_cc_c89" != xno; then :
7251 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7252 else
7253 ac_cv_prog_cc_stdc=no
7258 esac
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7260 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7261 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7262 $as_echo_n "(cached) " >&6
7265 case $ac_cv_prog_cc_stdc in #(
7266 no) :
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7268 $as_echo "unsupported" >&6; } ;; #(
7269 '') :
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7271 $as_echo "none needed" >&6; } ;; #(
7272 *) :
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7274 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7275 esac
7279 # Code from module alloca-opt:
7280 # Code from module allocator:
7281 # Code from module at-internal:
7282 # Code from module binary-io:
7283 # Code from module c-ctype:
7284 # Code from module c-strcase:
7285 # Code from module careadlinkat:
7286 # Code from module clock-time:
7287 # Code from module close-stream:
7288 # Code from module crypto/md5:
7289 # Code from module crypto/sha1:
7290 # Code from module crypto/sha256:
7291 # Code from module crypto/sha512:
7292 # Code from module dirent:
7293 # Code from module dosname:
7294 # Code from module dtoastr:
7295 # Code from module dtotimespec:
7296 # Code from module dup2:
7297 # Code from module environ:
7298 # Code from module errno:
7299 # Code from module euidaccess:
7300 # Code from module execinfo:
7301 # Code from module extensions:
7303 # Code from module extern-inline:
7304 # Code from module faccessat:
7305 # Code from module fcntl:
7306 # Code from module fcntl-h:
7307 # Code from module fdatasync:
7308 # Code from module fdopendir:
7309 # Code from module filemode:
7310 # Code from module fpending:
7311 # Code from module fstatat:
7312 # Code from module fsync:
7313 # Code from module getdtablesize:
7314 # Code from module getgroups:
7315 # Code from module getloadavg:
7316 # Code from module getopt-gnu:
7317 # Code from module getopt-posix:
7318 # Code from module gettext-h:
7319 # Code from module gettime:
7320 # Code from module gettimeofday:
7321 # Code from module group-member:
7322 # Code from module include_next:
7323 # Code from module intprops:
7324 # Code from module inttypes-incomplete:
7325 # Code from module largefile:
7327 # Code from module lstat:
7328 # Code from module manywarnings:
7329 # Code from module memrchr:
7330 # Code from module mkostemp:
7331 # Code from module mktime:
7332 # Code from module multiarch:
7333 # Code from module nocrash:
7334 # Code from module openat-h:
7335 # Code from module pathmax:
7336 # Code from module pipe2:
7337 # Code from module pselect:
7338 # Code from module pthread_sigmask:
7339 # Code from module putenv:
7340 # Code from module qacl:
7341 # Code from module readlink:
7342 # Code from module readlinkat:
7343 # Code from module root-uid:
7344 # Code from module secure_getenv:
7345 # Code from module sig2str:
7346 # Code from module signal-h:
7347 # Code from module snippet/_Noreturn:
7348 # Code from module snippet/arg-nonnull:
7349 # Code from module snippet/c++defs:
7350 # Code from module snippet/warn-on-use:
7351 # Code from module socklen:
7352 # Code from module ssize_t:
7353 # Code from module stat:
7354 # Code from module stat-time:
7355 # Code from module stdalign:
7356 # Code from module stdarg:
7360 # Code from module stdbool:
7361 # Code from module stddef:
7362 # Code from module stdint:
7363 # Code from module stdio:
7364 # Code from module stdlib:
7365 # Code from module strftime:
7366 # Code from module string:
7367 # Code from module strtoimax:
7368 # Code from module strtoll:
7369 # Code from module strtoull:
7370 # Code from module strtoumax:
7371 # Code from module symlink:
7372 # Code from module sys_select:
7373 # Code from module sys_stat:
7374 # Code from module sys_time:
7375 # Code from module tempname:
7376 # Code from module time:
7377 # Code from module time_r:
7378 # Code from module timer-time:
7379 # Code from module timespec:
7380 # Code from module timespec-add:
7381 # Code from module timespec-sub:
7382 # Code from module u64:
7383 # Code from module unistd:
7384 # Code from module unsetenv:
7385 # Code from module utimens:
7386 # Code from module verify:
7387 # Code from module warnings:
7388 # Code from module xalloc-oversized:
7391 if test "$ac_test_CFLAGS" != set; then
7392 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7393 # if -g3 works and the user does not specify CFLAGS.
7394 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7395 case $CFLAGS in
7396 '-g')
7397 emacs_g3_CFLAGS='-g3';;
7398 '-g -O2')
7399 emacs_g3_CFLAGS='-g3 -O2';;
7401 emacs_g3_CFLAGS='';;
7402 esac
7403 if test -n "$emacs_g3_CFLAGS"; then
7404 emacs_save_CFLAGS=$CFLAGS
7405 CFLAGS=$emacs_g3_CFLAGS
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7407 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7408 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7415 main ()
7419 return 0;
7421 _ACEOF
7422 if ac_fn_c_try_link "$LINENO"; then :
7423 emacs_cv_prog_cc_g3=yes
7424 else
7425 emacs_cv_prog_cc_g3=no
7427 rm -f core conftest.err conftest.$ac_objext \
7428 conftest$ac_exeext conftest.$ac_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7431 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7432 if test $emacs_cv_prog_cc_g3 != yes; then
7433 CFLAGS=$emacs_save_CFLAGS
7435 if test $opsys = mingw32; then
7436 CFLAGS="$CFLAGS -gdwarf-2"
7440 case $CFLAGS in
7441 *-O*) ;;
7443 # No optimization flag was inferred for this non-GCC compiler.
7444 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7445 emacs_save_CFLAGS=$CFLAGS
7446 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7447 CFLAGS=${CFLAGS}-O
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7449 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7450 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7457 main ()
7461 return 0;
7463 _ACEOF
7464 if ac_fn_c_try_link "$LINENO"; then :
7465 emacs_cv_prog_cc_o=yes
7466 else
7467 emacs_cv_prog_cc_o=no
7469 rm -f core conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7473 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7474 if test $emacs_cv_prog_cc_o != yes; then
7475 CFLAGS=$emacs_save_CFLAGS
7476 fi ;;
7477 esac
7480 # Check whether --enable-gcc-warnings was given.
7481 if test "${enable_gcc_warnings+set}" = set; then :
7482 enableval=$enable_gcc_warnings; case $enableval in
7483 yes|no) ;;
7484 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7485 esac
7486 gl_gcc_warnings=$enableval
7487 else
7488 gl_gcc_warnings=no
7493 # Check whether --enable-link-time-optimization was given.
7494 if test "${enable_link_time_optimization+set}" = set; then :
7495 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7497 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7498 ac_lto_supported=no
7499 if test x$GCC = xyes; then
7500 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7501 if test x$CPUS != x; then
7502 LTO="-flto=$CPUS"
7503 else
7504 LTO="-flto"
7506 old_CFLAGS=$CFLAGS
7507 CFLAGS="$CFLAGS $LTO"
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7512 main ()
7516 return 0;
7518 _ACEOF
7519 if ac_fn_c_try_compile "$LINENO"; then :
7520 ac_lto_supported=yes
7521 else
7522 ac_lto_supported=no
7524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 CFLAGS="$old_CFLAGS"
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7528 $as_echo "$ac_lto_supported" >&6; }
7529 if test "$ac_lto_supported" = "yes"; then
7530 CFLAGS="$CFLAGS $LTO"
7536 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7537 # ------------------------------------------------
7538 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7539 # Otherwise, run RUN-IF-NOT-FOUND.
7542 # When compiling with GCC, prefer -isystem to -I when including system
7543 # include files, to avoid generating useless diagnostics for the files.
7544 if test "$gl_gcc_warnings" != yes; then
7545 isystem='-I'
7546 else
7547 isystem='-isystem '
7549 # This, $nw, is the list of warnings we disable.
7552 case $with_x_toolkit in
7553 lucid | athena | motif)
7554 # Old toolkits mishandle 'const'.
7555 nw="$nw -Wwrite-strings"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7559 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7560 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7564 gl_save_compiler_FLAGS="$CFLAGS"
7565 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7570 main ()
7574 return 0;
7576 _ACEOF
7577 if ac_fn_c_try_compile "$LINENO"; then :
7578 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7579 else
7580 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 CFLAGS="$gl_save_compiler_FLAGS"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7587 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7588 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7589 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7590 else
7591 gl_unknown_warnings_are_errors=
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7596 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7597 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7601 gl_save_compiler_FLAGS="$CFLAGS"
7602 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7607 main ()
7611 return 0;
7613 _ACEOF
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615 gl_cv_warn_c__Werror=yes
7616 else
7617 gl_cv_warn_c__Werror=no
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 CFLAGS="$gl_save_compiler_FLAGS"
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7624 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7625 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7626 as_fn_append WERROR_CFLAGS " -Werror"
7631 esac
7634 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7635 nw="$nw -Woverlength-strings" # Not a problem these days
7636 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7637 nw="$nw -Wformat-nonliteral" # we do this a lot
7638 nw="$nw -Wvla" # warnings in gettext.h
7639 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7640 nw="$nw -Wswitch-default" # Too many warnings for now
7641 nw="$nw -Winline" # OK to ignore 'inline'
7642 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7643 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7644 # signed overflow has undefined behavior
7645 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7646 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7647 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7649 # Emacs doesn't care about shadowing; see
7650 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7651 nw="$nw -Wshadow"
7653 # Emacs's use of alloca inhibits protecting the stack.
7654 nw="$nw -Wstack-protector"
7656 # The following line should be removable at some point.
7657 nw="$nw -Wsuggest-attribute=pure"
7659 # clang is unduly picky about some things.
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7661 $as_echo_n "checking whether the compiler is clang... " >&6; }
7662 if test "${emacs_cv_clang+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7668 #ifndef __clang__
7669 #error "not clang"
7670 #endif
7673 main ()
7677 return 0;
7679 _ACEOF
7680 if ac_fn_c_try_compile "$LINENO"; then :
7681 emacs_cv_clang=yes
7682 else
7683 emacs_cv_clang=no
7685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7688 $as_echo "$emacs_cv_clang" >&6; }
7689 if test $emacs_cv_clang = yes; then
7690 nw="$nw -Wcast-align"
7695 if test -n "$GCC"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7698 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7699 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7703 gl_save_CFLAGS="$CFLAGS"
7704 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7709 main ()
7713 return 0;
7715 _ACEOF
7716 if ac_fn_c_try_compile "$LINENO"; then :
7717 gl_cv_cc_nomfi_supported=yes
7718 else
7719 gl_cv_cc_nomfi_supported=no
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 CFLAGS="$gl_save_CFLAGS"
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7726 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7728 if test "$gl_cv_cc_nomfi_supported" = yes; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7730 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7731 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7735 gl_save_CFLAGS="$CFLAGS"
7736 CFLAGS="$CFLAGS -W -Werror"
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 void f (void)
7741 typedef struct { int a; int b; } s_t;
7742 s_t s1 = { 0, };
7746 main ()
7750 return 0;
7752 _ACEOF
7753 if ac_fn_c_try_compile "$LINENO"; then :
7754 gl_cv_cc_nomfi_needed=no
7755 else
7756 gl_cv_cc_nomfi_needed=yes
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 CFLAGS="$gl_save_CFLAGS"
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7764 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7768 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7769 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7773 gl_save_CFLAGS="$CFLAGS"
7774 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7779 main ()
7783 return 0;
7785 _ACEOF
7786 if ac_fn_c_try_compile "$LINENO"; then :
7787 gl_cv_cc_uninitialized_supported=yes
7788 else
7789 gl_cv_cc_uninitialized_supported=no
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 CFLAGS="$gl_save_CFLAGS"
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7796 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7800 # List all gcc warning categories.
7801 gl_manywarn_set=
7802 for gl_manywarn_item in \
7803 -W \
7804 -Wabi \
7805 -Waddress \
7806 -Waggressive-loop-optimizations \
7807 -Wall \
7808 -Warray-bounds \
7809 -Wattributes \
7810 -Wbad-function-cast \
7811 -Wbuiltin-macro-redefined \
7812 -Wcast-align \
7813 -Wchar-subscripts \
7814 -Wclobbered \
7815 -Wcomment \
7816 -Wcomments \
7817 -Wcoverage-mismatch \
7818 -Wcpp \
7819 -Wdeprecated \
7820 -Wdeprecated-declarations \
7821 -Wdisabled-optimization \
7822 -Wdiv-by-zero \
7823 -Wdouble-promotion \
7824 -Wempty-body \
7825 -Wendif-labels \
7826 -Wenum-compare \
7827 -Wextra \
7828 -Wformat-contains-nul \
7829 -Wformat-extra-args \
7830 -Wformat-nonliteral \
7831 -Wformat-security \
7832 -Wformat-y2k \
7833 -Wformat-zero-length \
7834 -Wfree-nonheap-object \
7835 -Wignored-qualifiers \
7836 -Wimplicit \
7837 -Wimplicit-function-declaration \
7838 -Wimplicit-int \
7839 -Winit-self \
7840 -Winline \
7841 -Wint-to-pointer-cast \
7842 -Winvalid-memory-model \
7843 -Winvalid-pch \
7844 -Wjump-misses-init \
7845 -Wlogical-op \
7846 -Wmain \
7847 -Wmaybe-uninitialized \
7848 -Wmissing-braces \
7849 -Wmissing-declarations \
7850 -Wmissing-field-initializers \
7851 -Wmissing-include-dirs \
7852 -Wmissing-parameter-type \
7853 -Wmissing-prototypes \
7854 -Wmudflap \
7855 -Wmultichar \
7856 -Wnarrowing \
7857 -Wnested-externs \
7858 -Wnonnull \
7859 -Wnormalized=nfc \
7860 -Wold-style-declaration \
7861 -Wold-style-definition \
7862 -Woverflow \
7863 -Woverlength-strings \
7864 -Woverride-init \
7865 -Wpacked \
7866 -Wpacked-bitfield-compat \
7867 -Wparentheses \
7868 -Wpointer-arith \
7869 -Wpointer-sign \
7870 -Wpointer-to-int-cast \
7871 -Wpragmas \
7872 -Wreturn-local-addr \
7873 -Wreturn-type \
7874 -Wsequence-point \
7875 -Wshadow \
7876 -Wsizeof-pointer-memaccess \
7877 -Wstack-protector \
7878 -Wstrict-aliasing \
7879 -Wstrict-overflow \
7880 -Wstrict-prototypes \
7881 -Wsuggest-attribute=const \
7882 -Wsuggest-attribute=format \
7883 -Wsuggest-attribute=noreturn \
7884 -Wsuggest-attribute=pure \
7885 -Wswitch \
7886 -Wswitch-default \
7887 -Wsync-nand \
7888 -Wsystem-headers \
7889 -Wtrampolines \
7890 -Wtrigraphs \
7891 -Wtype-limits \
7892 -Wuninitialized \
7893 -Wunknown-pragmas \
7894 -Wunsafe-loop-optimizations \
7895 -Wunused \
7896 -Wunused-but-set-parameter \
7897 -Wunused-but-set-variable \
7898 -Wunused-function \
7899 -Wunused-label \
7900 -Wunused-local-typedefs \
7901 -Wunused-macros \
7902 -Wunused-parameter \
7903 -Wunused-result \
7904 -Wunused-value \
7905 -Wunused-variable \
7906 -Wvarargs \
7907 -Wvariadic-macros \
7908 -Wvector-operation-performance \
7909 -Wvla \
7910 -Wvolatile-register-var \
7911 -Wwrite-strings \
7913 ; do
7914 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7915 done
7917 # Disable specific options as needed.
7918 if test "$gl_cv_cc_nomfi_needed" = yes; then
7919 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7922 if test "$gl_cv_cc_uninitialized_supported" = no; then
7923 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7926 ws=$gl_manywarn_set
7929 gl_warn_set=
7930 set x $ws; shift
7931 for gl_warn_item
7933 case " $nw " in
7934 *" $gl_warn_item "*)
7937 gl_warn_set="$gl_warn_set $gl_warn_item"
7939 esac
7940 done
7941 ws=$gl_warn_set
7943 for w in $ws; do
7945 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7946 gl_positive="$w"
7947 case $gl_positive in
7948 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
7949 esac
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7951 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7952 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7956 gl_save_compiler_FLAGS="$CFLAGS"
7957 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7962 main ()
7966 return 0;
7968 _ACEOF
7969 if ac_fn_c_try_compile "$LINENO"; then :
7970 eval "$as_gl_Warn=yes"
7971 else
7972 eval "$as_gl_Warn=no"
7974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7975 CFLAGS="$gl_save_compiler_FLAGS"
7978 eval ac_res=\$$as_gl_Warn
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7980 $as_echo "$ac_res" >&6; }
7981 eval as_val=\$$as_gl_Warn
7982 if test "x$as_val" = x""yes; then :
7983 as_fn_append WARN_CFLAGS " $w"
7987 done
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7990 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7991 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7995 gl_save_compiler_FLAGS="$CFLAGS"
7996 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
8001 main ()
8005 return 0;
8007 _ACEOF
8008 if ac_fn_c_try_compile "$LINENO"; then :
8009 gl_cv_warn_c__Wno_missing_field_initializers=yes
8010 else
8011 gl_cv_warn_c__Wno_missing_field_initializers=no
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 CFLAGS="$gl_save_compiler_FLAGS"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8018 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8019 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
8020 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8023 # We need this one
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8026 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8027 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8031 gl_save_compiler_FLAGS="$CFLAGS"
8032 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8037 main ()
8041 return 0;
8043 _ACEOF
8044 if ac_fn_c_try_compile "$LINENO"; then :
8045 gl_cv_warn_c__Wno_sign_compare=yes
8046 else
8047 gl_cv_warn_c__Wno_sign_compare=no
8049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8050 CFLAGS="$gl_save_compiler_FLAGS"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8054 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8055 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
8056 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
8059 # Too many warnings for now
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8062 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8063 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8067 gl_save_compiler_FLAGS="$CFLAGS"
8068 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8073 main ()
8077 return 0;
8079 _ACEOF
8080 if ac_fn_c_try_compile "$LINENO"; then :
8081 gl_cv_warn_c__Wno_type_limits=yes
8082 else
8083 gl_cv_warn_c__Wno_type_limits=no
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 CFLAGS="$gl_save_compiler_FLAGS"
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8090 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8091 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8092 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8095 # Too many warnings for now
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8098 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8099 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8103 gl_save_compiler_FLAGS="$CFLAGS"
8104 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8109 main ()
8113 return 0;
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117 gl_cv_warn_c__Wno_switch=yes
8118 else
8119 gl_cv_warn_c__Wno_switch=no
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 CFLAGS="$gl_save_compiler_FLAGS"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8126 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8127 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8128 as_fn_append WARN_CFLAGS " -Wno-switch"
8131 # Too many warnings for now
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8134 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8135 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8139 gl_save_compiler_FLAGS="$CFLAGS"
8140 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8145 main ()
8149 return 0;
8151 _ACEOF
8152 if ac_fn_c_try_compile "$LINENO"; then :
8153 gl_cv_warn_c__Wno_unused_parameter=yes
8154 else
8155 gl_cv_warn_c__Wno_unused_parameter=no
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 CFLAGS="$gl_save_compiler_FLAGS"
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8162 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8163 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8164 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8167 # Too many warnings for now
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8170 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8171 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8175 gl_save_compiler_FLAGS="$CFLAGS"
8176 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8181 main ()
8185 return 0;
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189 gl_cv_warn_c__Wno_format_nonliteral=yes
8190 else
8191 gl_cv_warn_c__Wno_format_nonliteral=no
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 CFLAGS="$gl_save_compiler_FLAGS"
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8198 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8199 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8200 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8205 # In spite of excluding -Wlogical-op above, it is enabled, as of
8206 # gcc 4.5.0 20090517.
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8209 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8210 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8214 gl_save_compiler_FLAGS="$CFLAGS"
8215 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op"
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8220 main ()
8224 return 0;
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"; then :
8228 gl_cv_warn_c__Wno_logical_op=yes
8229 else
8230 gl_cv_warn_c__Wno_logical_op=no
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 CFLAGS="$gl_save_compiler_FLAGS"
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8237 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8238 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8239 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8244 # More things that clang is unduly picky about.
8245 if test $emacs_cv_clang = yes; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8248 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8249 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8253 gl_save_compiler_FLAGS="$CFLAGS"
8254 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args"
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8259 main ()
8263 return 0;
8265 _ACEOF
8266 if ac_fn_c_try_compile "$LINENO"; then :
8267 gl_cv_warn_c__Wno_format_extra_args=yes
8268 else
8269 gl_cv_warn_c__Wno_format_extra_args=no
8271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 CFLAGS="$gl_save_compiler_FLAGS"
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8276 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8277 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8278 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8284 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8285 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8289 gl_save_compiler_FLAGS="$CFLAGS"
8290 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8295 main ()
8299 return 0;
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"; then :
8303 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8304 else
8305 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 CFLAGS="$gl_save_compiler_FLAGS"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8312 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8313 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8314 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8320 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8321 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8325 gl_save_compiler_FLAGS="$CFLAGS"
8326 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8331 main ()
8335 return 0;
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"; then :
8339 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8340 else
8341 gl_cv_warn_c__Wno_unused_command_line_argument=no
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 CFLAGS="$gl_save_compiler_FLAGS"
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8348 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8349 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8350 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8356 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8357 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8361 gl_save_compiler_FLAGS="$CFLAGS"
8362 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8367 main ()
8371 return 0;
8373 _ACEOF
8374 if ac_fn_c_try_compile "$LINENO"; then :
8375 gl_cv_warn_c__Wno_unused_value=yes
8376 else
8377 gl_cv_warn_c__Wno_unused_value=no
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 CFLAGS="$gl_save_compiler_FLAGS"
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8384 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8385 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8386 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8394 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8395 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8399 gl_save_compiler_FLAGS="$CFLAGS"
8400 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8405 main ()
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_compile "$LINENO"; then :
8413 gl_cv_warn_c__fdiagnostics_show_option=yes
8414 else
8415 gl_cv_warn_c__fdiagnostics_show_option=no
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 CFLAGS="$gl_save_compiler_FLAGS"
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8422 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8423 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8424 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8430 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8431 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8435 gl_save_compiler_FLAGS="$CFLAGS"
8436 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time"
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8441 main ()
8445 return 0;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 gl_cv_warn_c__funit_at_a_time=yes
8450 else
8451 gl_cv_warn_c__funit_at_a_time=no
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 CFLAGS="$gl_save_compiler_FLAGS"
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8458 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8459 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8460 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8466 $as_echo "#define lint 1" >>confdefs.h
8470 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8473 # We use a slightly smaller set of warning options for lib/.
8474 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8476 nw="$nw -Wunused-macros"
8479 gl_warn_set=
8480 set x $WARN_CFLAGS; shift
8481 for gl_warn_item
8483 case " $nw " in
8484 *" $gl_warn_item "*)
8487 gl_warn_set="$gl_warn_set $gl_warn_item"
8489 esac
8490 done
8491 GNULIB_WARN_CFLAGS=$gl_warn_set
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8502 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8503 rm -f conf$$ conf$$.file
8505 LN_S_FILEONLY='cp -p'
8507 if (echo >conf$$.file) 2>/dev/null; then
8508 if ln -s conf$$.file conf$$ 2>/dev/null; then
8509 LN_S_FILEONLY='ln -s'
8510 elif ln conf$$.file conf$$ 2>/dev/null; then
8511 LN_S_FILEONLY=ln
8515 rm -f conf$$ conf$$.file
8517 if test "$LN_S_FILEONLY" = "ln -s"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8519 $as_echo "yes" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8522 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8528 if test "$opsys" = "mingw32"; then
8529 LN_S="ln"
8532 # Extract the first word of "install-info", so it can be a program name with args.
8533 set dummy install-info; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 case $INSTALL_INFO in
8540 [\\/]* | ?:[\\/]*)
8541 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8555 done
8556 done
8557 IFS=$as_save_IFS
8559 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8561 esac
8563 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8564 if test -n "$INSTALL_INFO"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8566 $as_echo "$INSTALL_INFO" >&6; }
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8573 # Extract the first word of "gzip", so it can be a program name with args.
8574 set dummy gzip; ac_word=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 case $GZIP_PROG in
8581 [\\/]* | ?:[\\/]*)
8582 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8596 done
8597 done
8598 IFS=$as_save_IFS
8601 esac
8603 GZIP_PROG=$ac_cv_path_GZIP_PROG
8604 if test -n "$GZIP_PROG"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8606 $as_echo "$GZIP_PROG" >&6; }
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8614 if test $opsys = gnu-linux; then
8615 # Extract the first word of "paxctl", so it can be a program name with args.
8616 set dummy paxctl; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 $as_echo_n "checking for $ac_word... " >&6; }
8619 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 case $PAXCTL in
8623 [\\/]* | ?:[\\/]*)
8624 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8630 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8634 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2
8638 done
8639 done
8640 IFS=$as_save_IFS
8643 esac
8645 PAXCTL=$ac_cv_path_PAXCTL
8646 if test -n "$PAXCTL"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8648 $as_echo "$PAXCTL" >&6; }
8649 else
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8655 if test "X$PAXCTL" != X; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8657 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8662 main ()
8666 return 0;
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8670 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8671 $as_echo "yes" >&6; }
8672 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }; PAXCTL=""; fi
8675 rm -f core conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8680 ## Need makeinfo >= 4.7 (?) to build the manuals.
8681 # Extract the first word of "makeinfo", so it can be a program name with args.
8682 set dummy makeinfo; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8686 $as_echo_n "(cached) " >&6
8687 else
8688 case $MAKEINFO in
8689 [\\/]* | ?:[\\/]*)
8690 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 break 2
8704 done
8705 done
8706 IFS=$as_save_IFS
8708 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8710 esac
8712 MAKEINFO=$ac_cv_path_MAKEINFO
8713 if test -n "$MAKEINFO"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8715 $as_echo "$MAKEINFO" >&6; }
8716 else
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8722 if test "$MAKEINFO" != "no"; then
8723 case `
8724 $MAKEINFO --version 2> /dev/null |
8725 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8726 ` in
8727 '') MAKEINFO=no;;
8728 esac
8731 ## Makeinfo is unusual. For a released Emacs, the manuals are
8732 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8733 ## therefore in the category of "special tools" not normally required, which
8734 ## configure does not have to check for (eg autoconf itself).
8735 ## In a Bazaar checkout on the other hand, the manuals are not included.
8736 ## So makeinfo is a requirement to build from Bazaar, and configure
8737 ## should test for it as it does for any other build requirement.
8738 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8739 ## with pre-built manuals, from a Bazaar checkout.
8740 HAVE_MAKEINFO=yes
8742 if test "$MAKEINFO" = "no"; then
8743 MAKEINFO=makeinfo
8744 if test "x${with_makeinfo}" = "xno"; then
8745 HAVE_MAKEINFO=no
8746 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8747 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8748 source tree does not seem to have pre-built manuals in the \`info' directory.
8749 Either install a suitable version of makeinfo, or re-run configure
8750 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8755 INFO_EXT=.info
8756 INFO_OPTS=--no-split
8760 if test $opsys = mingw32; then
8761 DOCMISC_W32=efaq-w32
8762 else
8763 DOCMISC_W32=
8768 if test x$GCC = xyes; then
8769 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8770 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8771 else
8772 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8773 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8777 late_LDFLAGS=$LDFLAGS
8778 if test x$GCC = xyes; then
8779 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8780 else
8781 LDFLAGS="$LDFLAGS -znocombreloc"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8785 $as_echo_n "checking for -znocombreloc... " >&6; }
8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8790 main ()
8794 return 0;
8796 _ACEOF
8797 if ac_fn_c_try_link "$LINENO"; then :
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8799 $as_echo "yes" >&6; }
8800 else
8801 LDFLAGS=$late_LDFLAGS
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8809 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8810 case "$opsys" in
8811 your-opsys-here) CANNOT_DUMP=yes ;;
8812 esac
8814 test "$CANNOT_DUMP" = "yes" && \
8816 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8822 UNEXEC_OBJ=unexelf.o
8823 case "$opsys" in
8824 # MSDOS uses unexcoff.o
8825 aix4-2)
8826 UNEXEC_OBJ=unexaix.o
8828 cygwin)
8829 UNEXEC_OBJ=unexcw.o
8831 darwin)
8832 UNEXEC_OBJ=unexmacosx.o
8834 hpux10-20 | hpux11)
8835 UNEXEC_OBJ=unexhp9k800.o
8837 mingw32)
8838 UNEXEC_OBJ=unexw32.o
8840 sol2-10)
8841 # Use the Solaris dldump() function, called from unexsol.c, to dump
8842 # emacs, instead of the generic ELF dump code found in unexelf.c.
8843 # The resulting binary has a complete symbol table, and is better
8844 # for debugging and other observability tools (debuggers, pstack, etc).
8846 # If you encounter a problem using dldump(), please consider sending
8847 # a message to the OpenSolaris tools-linking mailing list:
8848 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8850 # It is likely that dldump() works with older Solaris too, but this has
8851 # not been tested, so for now this change is for Solaris 10 or newer.
8852 UNEXEC_OBJ=unexsol.o
8854 esac
8856 LD_SWITCH_SYSTEM=
8857 case "$opsys" in
8858 freebsd|dragonfly)
8859 ## Let `ld' find image libs and similar things in /usr/local/lib.
8860 ## The system compiler, GCC, has apparently been modified to not
8861 ## look there, contrary to what a stock GCC would do.
8862 ### It's not our place to do this. See bug#10313#17.
8863 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8867 gnu-linux)
8868 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8869 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8872 netbsd)
8873 ### It's not our place to do this. See bug#10313#17.
8874 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8878 openbsd)
8879 ## Han Boetes <han@boetes.org> says this is necessary,
8880 ## otherwise Emacs dumps core on elf systems.
8881 LD_SWITCH_SYSTEM="-Z"
8883 esac
8886 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8888 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8889 ## which has not been defined yet. When this was handled with cpp,
8890 ## it was expanded to null when configure sourced the s/*.h file.
8891 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8892 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8893 ## (or somesuch), but because it is supposed to go at the _front_
8894 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8895 ## Compare with the gnu-linux case below, which added to the end
8896 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8897 ## LD_SWITCH_SYSTEM_TEMACS.
8898 case "$opsys" in
8899 netbsd|openbsd)
8900 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8901 esac
8904 C_SWITCH_MACHINE=
8905 case $canonical in
8906 alpha*)
8907 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8908 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8912 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8913 ## With ELF, make sure that all common symbols get allocated to in the
8914 ## data section. Otherwise, the dump of temacs may miss variables in
8915 ## the shared library that have been initialized. For example, with
8916 ## GNU libc, __malloc_initialized would normally be resolved to the
8917 ## shared library's .bss section, which is fatal.
8918 if test "x$GCC" = "xyes"; then
8919 C_SWITCH_MACHINE="-fno-common"
8920 else
8921 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8923 else
8924 UNEXEC_OBJ=unexalpha.o
8927 esac
8932 C_SWITCH_SYSTEM=
8933 ## Some programs in src produce warnings saying certain subprograms
8934 ## are too complex and need a MAXMEM value greater than 2000 for
8935 ## additional optimization. --nils@exp-math.uni-essen.de
8936 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8937 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8938 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
8939 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8940 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8944 LIBS_SYSTEM=
8945 case "$opsys" in
8946 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8947 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8949 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
8951 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8953 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8955 ## Motif needs -lgen.
8956 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8957 esac
8961 ### Make sure subsequent tests use flags consistent with the build flags.
8963 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8964 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8965 else
8966 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8969 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8971 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8975 LIB_MATH=-lm
8976 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8978 case $opsys in
8979 cygwin )
8980 LIB_MATH=
8982 darwin )
8983 ## Adding -lm confuses the dynamic linker, so omit it.
8984 LIB_MATH=
8986 freebsd | dragonfly )
8987 SYSTEM_TYPE=berkeley-unix
8989 gnu-linux | gnu-kfreebsd )
8991 hpux10-20 | hpux11 )
8993 mingw32 )
8994 LIB_MATH=
8995 SYSTEM_TYPE=windows-nt
8997 netbsd | openbsd )
8998 SYSTEM_TYPE=berkeley-unix
9001 sol2* | unixware )
9002 SYSTEM_TYPE=usg-unix-v
9005 esac
9009 cat >>confdefs.h <<_ACEOF
9010 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9011 _ACEOF
9015 pre_PKG_CONFIG_CFLAGS=$CFLAGS
9016 pre_PKG_CONFIG_LIBS=$LIBS
9018 # Extract the first word of "pkg-config", so it can be a program name with args.
9019 set dummy pkg-config; ac_word=$2
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 $as_echo_n "checking for $ac_word... " >&6; }
9022 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 case $PKG_CONFIG in
9026 [\\/]* | ?:[\\/]*)
9027 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 for as_dir in $PATH
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9037 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9039 break 2
9041 done
9042 done
9043 IFS=$as_save_IFS
9045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9047 esac
9049 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9050 if test -n "$PKG_CONFIG"; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9052 $as_echo "$PKG_CONFIG" >&6; }
9053 else
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9062 HAVE_SOUND=no
9063 if test "${with_sound}" != "no"; then
9064 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9065 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
9066 do :
9067 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9068 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9069 #ifdef __MINGW32__
9070 #define WIN32_LEAN_AND_MEAN
9071 #include <windows.h>
9072 #endif
9075 eval as_val=\$$as_ac_Header
9076 if test "x$as_val" = x""yes; then :
9077 cat >>confdefs.h <<_ACEOF
9078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9079 _ACEOF
9080 have_sound_header=yes
9083 done
9085 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9086 as_fn_error "OSS sound support requested but not found." "$LINENO" 5
9088 if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then
9089 # Emulation library used on NetBSD.
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9091 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9092 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 ac_check_lib_save_LIBS=$LIBS
9096 LIBS="-lossaudio $LIBS"
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 char _oss_ioctl ();
9108 main ()
9110 return _oss_ioctl ();
9112 return 0;
9114 _ACEOF
9115 if ac_fn_c_try_link "$LINENO"; then :
9116 ac_cv_lib_ossaudio__oss_ioctl=yes
9117 else
9118 ac_cv_lib_ossaudio__oss_ioctl=no
9120 rm -f core conftest.err conftest.$ac_objext \
9121 conftest$ac_exeext conftest.$ac_ext
9122 LIBS=$ac_check_lib_save_LIBS
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9125 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9126 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9127 LIBSOUND=-lossaudio
9128 else
9129 LIBSOUND=
9132 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9133 as_fn_error "bsd-ossaudio sound support requested but not found." "$LINENO" 5
9137 if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then
9138 ALSA_REQUIRED=1.0.0
9139 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9141 succeeded=no
9143 if test "$PKG_CONFIG" = "no" ; then
9144 HAVE_ALSA=no
9145 else
9146 PKG_CONFIG_MIN_VERSION=0.9.0
9147 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9149 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9151 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9152 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9153 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9154 edit_cflags="
9155 s,///*,/,g
9156 s/^/ /
9157 s/ -I/ $isystem/g
9158 s/^ //
9160 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9161 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9163 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9164 succeeded=yes
9165 else
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 ALSA_CFLAGS=""
9169 ALSA_LIBS=""
9170 ## If we have a custom action on failure, don't print errors, but
9171 ## do set a variable so people can do so. Do it in a subshell
9172 ## to capture any diagnostics in invoking pkg-config.
9173 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9179 else
9180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9185 if test $succeeded = yes; then
9186 HAVE_ALSA=yes
9187 else
9188 HAVE_ALSA=no
9191 if test $HAVE_ALSA = yes; then
9192 SAVE_CFLAGS="$CFLAGS"
9193 SAVE_LIBS="$LIBS"
9194 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9195 LIBS="$ALSA_LIBS $LIBS"
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <asoundlib.h>
9200 main ()
9202 snd_lib_error_set_handler (0);
9204 return 0;
9206 _ACEOF
9207 if ac_fn_c_try_compile "$LINENO"; then :
9208 emacs_alsa_normal=yes
9209 else
9210 emacs_alsa_normal=no
9212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9213 if test "$emacs_alsa_normal" != yes; then
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 #include <alsa/asoundlib.h>
9218 main ()
9220 snd_lib_error_set_handler (0);
9222 return 0;
9224 _ACEOF
9225 if ac_fn_c_try_compile "$LINENO"; then :
9226 emacs_alsa_subdir=yes
9227 else
9228 emacs_alsa_subdir=no
9230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 if test "$emacs_alsa_subdir" != yes; then
9232 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9234 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9237 CFLAGS="$SAVE_CFLAGS"
9238 LIBS="$SAVE_LIBS"
9239 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9240 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9242 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9244 elif test "${with_sound}" = "alsa"; then
9245 as_fn_error "ALSA sound support requested but not found." "$LINENO" 5
9248 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9249 case "$opsys" in
9250 gnu-linux|freebsd|netbsd|mingw32)
9252 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9254 HAVE_SOUND=yes
9256 esac
9265 for ac_header in $ac_header_list
9266 do :
9267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9268 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9270 eval as_val=\$$as_ac_Header
9271 if test "x$as_val" = x""yes; then :
9272 cat >>confdefs.h <<_ACEOF
9273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9274 _ACEOF
9278 done
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9299 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 #include <sys/personality.h>
9304 main ()
9306 personality (PER_LINUX32)
9308 return 0;
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"; then :
9312 emacs_cv_personality_linux32=yes
9313 else
9314 emacs_cv_personality_linux32=no
9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9318 $as_echo "$emacs_cv_personality_linux32" >&6; }
9320 if test $emacs_cv_personality_linux32 = yes; then
9322 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9326 for ac_header in term.h
9327 do :
9328 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9329 if test "x$ac_cv_header_term_h" = x""yes; then :
9330 cat >>confdefs.h <<_ACEOF
9331 #define HAVE_TERM_H 1
9332 _ACEOF
9336 done
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9339 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9340 if test "${ac_cv_header_time+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9342 else
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9345 #include <sys/types.h>
9346 #include <sys/time.h>
9347 #include <time.h>
9350 main ()
9352 if ((struct tm *) 0)
9353 return 0;
9355 return 0;
9357 _ACEOF
9358 if ac_fn_c_try_compile "$LINENO"; then :
9359 ac_cv_header_time=yes
9360 else
9361 ac_cv_header_time=no
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9366 $as_echo "$ac_cv_header_time" >&6; }
9367 if test $ac_cv_header_time = yes; then
9369 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9373 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9376 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9377 ac_have_decl=1
9378 else
9379 ac_have_decl=0
9382 cat >>confdefs.h <<_ACEOF
9383 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9384 _ACEOF
9386 if test $ac_cv_have_decl_sys_siglist != yes; then
9387 # For Tru64, at least:
9388 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9391 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9392 ac_have_decl=1
9393 else
9394 ac_have_decl=0
9397 cat >>confdefs.h <<_ACEOF
9398 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9399 _ACEOF
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9403 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9404 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9409 #include <sys/types.h>
9410 #include <sys/wait.h>
9411 #ifndef WEXITSTATUS
9412 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9413 #endif
9414 #ifndef WIFEXITED
9415 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9416 #endif
9419 main ()
9421 int s;
9422 wait (&s);
9423 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9425 return 0;
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 ac_cv_header_sys_wait_h=yes
9430 else
9431 ac_cv_header_sys_wait_h=no
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9436 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9437 if test $ac_cv_header_sys_wait_h = yes; then
9439 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9447 for ac_header in net/if.h
9448 do :
9449 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9450 #if HAVE_SYS_SOCKET_H
9451 #include <sys/socket.h>
9452 #endif
9454 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9455 cat >>confdefs.h <<_ACEOF
9456 #define HAVE_NET_IF_H 1
9457 _ACEOF
9461 done
9463 for ac_header in ifaddrs.h
9464 do :
9465 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9466 #if HAVE_SYS_SOCKET_H
9467 #include <sys/socket.h>
9468 #endif
9470 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9471 cat >>confdefs.h <<_ACEOF
9472 #define HAVE_IFADDRS_H 1
9473 _ACEOF
9477 done
9479 for ac_header in net/if_dl.h
9480 do :
9481 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9482 #if HAVE_SYS_SOCKET_H
9483 #include <sys/socket.h>
9484 #endif
9486 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9487 cat >>confdefs.h <<_ACEOF
9488 #define HAVE_NET_IF_DL_H 1
9489 _ACEOF
9493 done
9496 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9497 #if HAVE_SYS_SOCKET_H
9498 #include <sys/socket.h>
9499 #endif
9500 #if HAVE_NET_IF_H
9501 #include <net/if.h>
9502 #endif
9504 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9506 cat >>confdefs.h <<_ACEOF
9507 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9508 _ACEOF
9512 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9513 #if HAVE_SYS_SOCKET_H
9514 #include <sys/socket.h>
9515 #endif
9516 #if HAVE_NET_IF_H
9517 #include <net/if.h>
9518 #endif
9520 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9524 _ACEOF
9528 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9529 #if HAVE_SYS_SOCKET_H
9530 #include <sys/socket.h>
9531 #endif
9532 #if HAVE_NET_IF_H
9533 #include <net/if.h>
9534 #endif
9536 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9538 cat >>confdefs.h <<_ACEOF
9539 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9540 _ACEOF
9544 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9545 #if HAVE_SYS_SOCKET_H
9546 #include <sys/socket.h>
9547 #endif
9548 #if HAVE_NET_IF_H
9549 #include <net/if.h>
9550 #endif
9552 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9554 cat >>confdefs.h <<_ACEOF
9555 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9556 _ACEOF
9560 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9561 #if HAVE_SYS_SOCKET_H
9562 #include <sys/socket.h>
9563 #endif
9564 #if HAVE_NET_IF_H
9565 #include <net/if.h>
9566 #endif
9568 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9570 cat >>confdefs.h <<_ACEOF
9571 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9572 _ACEOF
9576 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9577 #if HAVE_SYS_SOCKET_H
9578 #include <sys/socket.h>
9579 #endif
9580 #if HAVE_NET_IF_H
9581 #include <net/if.h>
9582 #endif
9584 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9586 cat >>confdefs.h <<_ACEOF
9587 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9588 _ACEOF
9596 DEPFLAGS=
9597 MKDEPDIR=":"
9598 deps_frag=deps.mk
9599 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9601 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9602 HAVE_GNU_MAKE=no
9603 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9604 if test "x$testval" != x; then
9605 HAVE_GNU_MAKE=yes
9606 else
9607 ac_enable_autodepend=no
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9610 $as_echo "$HAVE_GNU_MAKE" >&6; }
9611 if test $HAVE_GNU_MAKE = yes; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9613 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9614 SAVE_CFLAGS="$CFLAGS"
9615 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9620 main ()
9624 return 0;
9626 _ACEOF
9627 if ac_fn_c_try_compile "$LINENO"; then :
9629 else
9630 ac_enable_autodepend=no
9632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9633 CFLAGS="$SAVE_CFLAGS"
9634 test -f deps.d || ac_enable_autodepend=no
9635 rm -rf deps.d
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9637 $as_echo "$ac_enable_autodepend" >&6; }
9639 if test $ac_enable_autodepend = yes; then
9640 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9641 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9642 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9643 deps_frag=autodeps.mk
9646 deps_frag=$srcdir/src/$deps_frag
9652 lisp_frag=$srcdir/src/lisp.mk
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9657 $as_echo_n "checking for long file names... " >&6; }
9658 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 ac_cv_sys_long_file_names=yes
9662 # Test for long file names in all the places we know might matter:
9663 # . the current directory, where building will happen
9664 # $prefix/lib where we will be installing things
9665 # $exec_prefix/lib likewise
9666 # $TMPDIR if set, where it might want to write temporary files
9667 # /tmp where it might want to write temporary files
9668 # /var/tmp likewise
9669 # /usr/tmp likewise
9670 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9671 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9672 # in the usual case where exec_prefix is '${prefix}'.
9673 case $ac_dir in #(
9674 . | /* | ?:[\\/]*) ;; #(
9675 *) continue;;
9676 esac
9677 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9678 ac_xdir=$ac_dir/cf$$
9679 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9680 ac_tf1=$ac_xdir/conftest9012345
9681 ac_tf2=$ac_xdir/conftest9012346
9682 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9683 ac_cv_sys_long_file_names=no
9684 rm -f -r "$ac_xdir" 2>/dev/null
9685 test $ac_cv_sys_long_file_names = no && break
9686 done
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9689 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9690 if test $ac_cv_sys_long_file_names = yes; then
9692 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9697 #### Choose a window system.
9699 ## We leave window_system equal to none if
9700 ## we end up building without one. Any new window system should
9701 ## set window_system to an appropriate value and add objects to
9702 ## window-system-specific substs.
9704 window_system=none
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9706 $as_echo_n "checking for X... " >&6; }
9709 # Check whether --with-x was given.
9710 if test "${with_x+set}" = set; then :
9711 withval=$with_x;
9714 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9715 if test "x$with_x" = xno; then
9716 # The user explicitly disabled X.
9717 have_x=disabled
9718 else
9719 case $x_includes,$x_libraries in #(
9720 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9721 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 # One or both of the vars are not set, and there is no cached value.
9725 ac_x_includes=no ac_x_libraries=no
9726 rm -f -r conftest.dir
9727 if mkdir conftest.dir; then
9728 cd conftest.dir
9729 cat >Imakefile <<'_ACEOF'
9730 incroot:
9731 @echo incroot='${INCROOT}'
9732 usrlibdir:
9733 @echo usrlibdir='${USRLIBDIR}'
9734 libdir:
9735 @echo libdir='${LIBDIR}'
9736 _ACEOF
9737 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9739 for ac_var in incroot usrlibdir libdir; do
9740 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9741 done
9742 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9743 for ac_extension in a so sl dylib la dll; do
9744 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9745 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9746 ac_im_usrlibdir=$ac_im_libdir; break
9748 done
9749 # Screen out bogus values from the imake configuration. They are
9750 # bogus both because they are the default anyway, and because
9751 # using them would break gcc on systems where it needs fixed includes.
9752 case $ac_im_incroot in
9753 /usr/include) ac_x_includes= ;;
9754 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9755 esac
9756 case $ac_im_usrlibdir in
9757 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9758 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9759 esac
9761 cd ..
9762 rm -f -r conftest.dir
9765 # Standard set of common directories for X headers.
9766 # Check X11 before X11Rn because it is often a symlink to the current release.
9767 ac_x_header_dirs='
9768 /usr/X11/include
9769 /usr/X11R7/include
9770 /usr/X11R6/include
9771 /usr/X11R5/include
9772 /usr/X11R4/include
9774 /usr/include/X11
9775 /usr/include/X11R7
9776 /usr/include/X11R6
9777 /usr/include/X11R5
9778 /usr/include/X11R4
9780 /usr/local/X11/include
9781 /usr/local/X11R7/include
9782 /usr/local/X11R6/include
9783 /usr/local/X11R5/include
9784 /usr/local/X11R4/include
9786 /usr/local/include/X11
9787 /usr/local/include/X11R7
9788 /usr/local/include/X11R6
9789 /usr/local/include/X11R5
9790 /usr/local/include/X11R4
9792 /usr/X386/include
9793 /usr/x386/include
9794 /usr/XFree86/include/X11
9796 /usr/include
9797 /usr/local/include
9798 /usr/unsupported/include
9799 /usr/athena/include
9800 /usr/local/x11r5/include
9801 /usr/lpp/Xamples/include
9803 /usr/openwin/include
9804 /usr/openwin/share/include'
9806 if test "$ac_x_includes" = no; then
9807 # Guess where to find include files, by looking for Xlib.h.
9808 # First, try using that file with no special directory specified.
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9811 #include <X11/Xlib.h>
9812 _ACEOF
9813 if ac_fn_c_try_cpp "$LINENO"; then :
9814 # We can compile using X headers with no special include directory.
9815 ac_x_includes=
9816 else
9817 for ac_dir in $ac_x_header_dirs; do
9818 if test -r "$ac_dir/X11/Xlib.h"; then
9819 ac_x_includes=$ac_dir
9820 break
9822 done
9824 rm -f conftest.err conftest.$ac_ext
9825 fi # $ac_x_includes = no
9827 if test "$ac_x_libraries" = no; then
9828 # Check for the libraries.
9829 # See if we find them without any special options.
9830 # Don't add to $LIBS permanently.
9831 ac_save_LIBS=$LIBS
9832 LIBS="-lX11 $LIBS"
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 #include <X11/Xlib.h>
9837 main ()
9839 XrmInitialize ()
9841 return 0;
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"; then :
9845 LIBS=$ac_save_LIBS
9846 # We can link X programs with no special library path.
9847 ac_x_libraries=
9848 else
9849 LIBS=$ac_save_LIBS
9850 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9852 # Don't even attempt the hair of trying to link an X program!
9853 for ac_extension in a so sl dylib la dll; do
9854 if test -r "$ac_dir/libX11.$ac_extension"; then
9855 ac_x_libraries=$ac_dir
9856 break 2
9858 done
9859 done
9861 rm -f core conftest.err conftest.$ac_objext \
9862 conftest$ac_exeext conftest.$ac_ext
9863 fi # $ac_x_libraries = no
9865 case $ac_x_includes,$ac_x_libraries in #(
9866 no,* | *,no | *\'*)
9867 # Didn't find X, or a directory has "'" in its name.
9868 ac_cv_have_x="have_x=no";; #(
9870 # Record where we found X for the cache.
9871 ac_cv_have_x="have_x=yes\
9872 ac_x_includes='$ac_x_includes'\
9873 ac_x_libraries='$ac_x_libraries'"
9874 esac
9876 ;; #(
9877 *) have_x=yes;;
9878 esac
9879 eval "$ac_cv_have_x"
9880 fi # $with_x != no
9882 if test "$have_x" != yes; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9884 $as_echo "$have_x" >&6; }
9885 no_x=yes
9886 else
9887 # If each of the values was on the command line, it overrides each guess.
9888 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9889 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9890 # Update the cache value to reflect the command line values.
9891 ac_cv_have_x="have_x=yes\
9892 ac_x_includes='$x_includes'\
9893 ac_x_libraries='$x_libraries'"
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9895 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9898 if test "$no_x" != yes; then
9899 window_system=x11
9902 LD_SWITCH_X_SITE_RPATH=
9903 if test "${x_libraries}" != NONE; then
9904 if test -n "${x_libraries}"; then
9905 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9906 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9908 x_default_search_path=""
9909 x_search_path=${x_libraries}
9910 if test -z "${x_search_path}"; then
9911 x_search_path=/usr/lib
9913 for x_library in `echo ${x_search_path}: | \
9914 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9915 x_search_path="\
9916 ${x_library}/X11/%L/%T/%N%C%S:\
9917 ${x_library}/X11/%l/%T/%N%C%S:\
9918 ${x_library}/X11/%T/%N%C%S:\
9919 ${x_library}/X11/%L/%T/%N%S:\
9920 ${x_library}/X11/%l/%T/%N%S:\
9921 ${x_library}/X11/%T/%N%S"
9922 if test x"${x_default_search_path}" = x; then
9923 x_default_search_path=${x_search_path}
9924 else
9925 x_default_search_path="${x_search_path}:${x_default_search_path}"
9927 done
9931 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9932 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9935 if test x"${x_includes}" = x; then
9936 bitmapdir=/usr/include/X11/bitmaps
9937 else
9938 # accumulate include directories that have X11 bitmap subdirectories
9939 bmd_acc="dummyval"
9940 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9941 if test -d "${bmd}/X11/bitmaps"; then
9942 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9944 if test -d "${bmd}/bitmaps"; then
9945 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9947 done
9948 if test ${bmd_acc} != "dummyval"; then
9949 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9953 HAVE_NS=no
9954 NS_IMPL_COCOA=no
9955 NS_IMPL_GNUSTEP=no
9956 tmp_CPPFLAGS="$CPPFLAGS"
9957 tmp_CFLAGS="$CFLAGS"
9958 CPPFLAGS="$CPPFLAGS -x objective-c"
9959 CFLAGS="$CFLAGS -x objective-c"
9960 GNU_OBJC_CFLAGS=
9961 LIBS_GNUSTEP=
9962 if test "${with_ns}" != no; then
9963 if test "${opsys}" = darwin; then
9964 NS_IMPL_COCOA=yes
9965 ns_appdir=`pwd`/nextstep/Emacs.app
9966 ns_appbindir=${ns_appdir}/Contents/MacOS
9967 ns_appresdir=${ns_appdir}/Contents/Resources
9968 ns_appsrc=Cocoa/Emacs.base
9969 elif test -f $GNUSTEP_CONFIG_FILE; then
9970 NS_IMPL_GNUSTEP=yes
9971 ns_appdir=`pwd`/nextstep/Emacs.app
9972 ns_appbindir=${ns_appdir}
9973 ns_appresdir=${ns_appdir}/Resources
9974 ns_appsrc=GNUstep/Emacs.base
9975 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9976 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9977 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9978 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9979 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9980 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9981 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9982 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9983 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9984 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9985 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9986 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9988 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9989 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9990 $as_echo_n "(cached) " >&6
9991 else
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 #include <GNUstepBase/GSConfig.h>
9996 main ()
9998 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10000 #else
10001 fail;
10002 #endif
10004 return 0;
10006 _ACEOF
10007 if ac_fn_c_try_compile "$LINENO"; then :
10008 emacs_cv_objc_exceptions=yes
10009 else
10010 emacs_cv_objc_exceptions=no
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10015 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10016 if test $emacs_cv_objc_exceptions = yes; then
10018 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10020 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10024 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10026 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10027 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10028 HAVE_NS=yes
10029 else
10030 as_fn_error "\`--with-ns' was specified, but the include
10031 files are missing or cannot be compiled." "$LINENO" 5
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 #include <AppKit/AppKit.h>
10040 main ()
10043 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10044 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10045 ; /* OK */
10046 #else
10047 #error "OSX 10.4 or newer required"
10048 #endif
10049 #endif
10052 return 0;
10054 _ACEOF
10055 if ac_fn_c_try_compile "$LINENO"; then :
10056 ns_osx_have_104=yes
10057 else
10058 ns_osx_have_104=no
10060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 #include <Foundation/NSObjCRuntime.h>
10065 main ()
10067 NSInteger i;
10069 return 0;
10071 _ACEOF
10072 if ac_fn_c_try_compile "$LINENO"; then :
10073 ns_have_nsinteger=yes
10074 else
10075 ns_have_nsinteger=no
10077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10078 if test $ns_osx_have_104 = no; then
10079 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10081 if test $ns_have_nsinteger = yes; then
10083 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10090 INSTALL_ARCH_INDEP_EXTRA=install-etc
10091 ns_self_contained=no
10092 NS_OBJ=
10093 NS_OBJC_OBJ=
10094 if test "${HAVE_NS}" = yes; then
10095 if test "$with_toolkit_scroll_bars" = "no"; then
10096 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10099 window_system=nextstep
10100 # set up packaging dirs
10101 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10102 ns_self_contained=yes
10103 prefix=${ns_appresdir}
10104 exec_prefix=${ns_appbindir}
10105 libexecdir="\${ns_appbindir}/libexec"
10106 archlibdir="\${ns_appbindir}/libexec"
10107 etcdocdir="\${ns_appresdir}/etc"
10108 etcdir="\${ns_appresdir}/etc"
10109 infodir="\${ns_appresdir}/info"
10110 mandir="\${ns_appresdir}/man"
10111 lispdir="\${ns_appresdir}/lisp"
10112 leimdir="\${ns_appresdir}/leim"
10113 INSTALL_ARCH_INDEP_EXTRA=
10115 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10117 CFLAGS="$tmp_CFLAGS"
10118 CPPFLAGS="$tmp_CPPFLAGS"
10124 HAVE_W32=no
10125 W32_OBJ=
10126 W32_LIBS=
10127 EMACSRES=
10128 CLIENTRES=
10129 CLIENTW=
10130 W32_RES_LINK=
10131 EMACS_MANIFEST=
10132 UPDATE_MANIFEST=
10133 if test "${with_w32}" != no; then
10134 case "${opsys}" in
10135 cygwin)
10136 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10137 if test "x$ac_cv_header_windows_h" = x""yes; then :
10138 HAVE_W32=yes
10139 else
10140 as_fn_error "\`--with-w32' was specified, but windows.h
10141 cannot be found." "$LINENO" 5
10146 mingw32)
10147 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10150 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10152 esac
10155 if test "${opsys}" = "mingw32"; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10157 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10161 #include <windows.h>
10162 #include <usp10.h>
10164 main ()
10166 PIMAGE_NT_HEADERS pHeader;
10167 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10169 return 0;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"; then :
10173 emacs_cv_w32api=yes
10174 HAVE_W32=yes
10175 else
10176 emacs_cv_w32api=no
10178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10180 $as_echo "$emacs_cv_w32api" >&6; }
10181 if test "${emacs_cv_w32api}" = "no"; then
10182 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10186 FIRSTFILE_OBJ=
10187 NTDIR=
10188 LIBS_ECLIENT=
10189 LIB_WSOCK32=
10190 NTLIB=
10191 CM_OBJ="cm.o"
10192 XARGS_LIMIT=
10193 if test "${HAVE_W32}" = "yes"; then
10195 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10197 if test -n "$ac_tool_prefix"; then
10198 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10199 set dummy ${ac_tool_prefix}windres; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 if test -n "$WINDRES"; then
10206 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10207 else
10208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209 for as_dir in $PATH
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10215 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10217 break 2
10219 done
10220 done
10221 IFS=$as_save_IFS
10225 WINDRES=$ac_cv_prog_WINDRES
10226 if test -n "$WINDRES"; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10228 $as_echo "$WINDRES" >&6; }
10229 else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231 $as_echo "no" >&6; }
10236 if test -z "$ac_cv_prog_WINDRES"; then
10237 ac_ct_WINDRES=$WINDRES
10238 # Extract the first word of "windres", so it can be a program name with args.
10239 set dummy windres; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10243 $as_echo_n "(cached) " >&6
10244 else
10245 if test -n "$ac_ct_WINDRES"; then
10246 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10247 else
10248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249 for as_dir in $PATH
10251 IFS=$as_save_IFS
10252 test -z "$as_dir" && as_dir=.
10253 for ac_exec_ext in '' $ac_executable_extensions; do
10254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10255 ac_cv_prog_ac_ct_WINDRES="windres"
10256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10257 break 2
10259 done
10260 done
10261 IFS=$as_save_IFS
10265 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10266 if test -n "$ac_ct_WINDRES"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10268 $as_echo "$ac_ct_WINDRES" >&6; }
10269 else
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10274 if test "x$ac_ct_WINDRES" = x; then
10275 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10276 else
10277 case $cross_compiling:$ac_tool_warned in
10278 yes:)
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10281 ac_tool_warned=yes ;;
10282 esac
10283 WINDRES=$ac_ct_WINDRES
10285 else
10286 WINDRES="$ac_cv_prog_WINDRES"
10289 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10290 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10291 EMACSRES="emacs.res"
10292 case "$canonical" in
10293 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10294 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10295 esac
10296 UPDATE_MANIFEST=update-game-score.exe.manifest
10297 if test "${opsys}" = "cygwin"; then
10298 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10299 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10300 # Tell the linker that emacs.res is an object (which we compile from
10301 # the rc file), not a linker script.
10302 W32_RES_LINK="-Wl,emacs.res"
10303 else
10304 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10305 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10306 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10307 W32_RES_LINK="\$(EMACSRES)"
10308 CLIENTRES="emacsclient.res"
10309 CLIENTW="emacsclientw\$(EXEEXT)"
10310 FIRSTFILE_OBJ=firstfile.o
10311 NTDIR=nt
10312 CM_OBJ=
10313 LIBS_ECLIENT="-lcomctl32"
10314 LIB_WSOCK32="-lwsock32"
10315 NTLIB="ntlib.$ac_objext"
10316 XARGS_LIMIT="-s 10000"
10335 if test "${HAVE_W32}" = "yes"; then
10336 window_system=w32
10337 with_xft=no
10340 ## $window_system is now set to the window system we will
10341 ## ultimately use.
10343 term_header=
10344 HAVE_X_WINDOWS=no
10345 HAVE_X11=no
10346 USE_X_TOOLKIT=none
10348 case "${window_system}" in
10349 x11 )
10350 HAVE_X_WINDOWS=yes
10351 HAVE_X11=yes
10352 term_header=xterm.h
10353 case "${with_x_toolkit}" in
10354 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10355 motif ) USE_X_TOOLKIT=MOTIF ;;
10356 gtk ) with_gtk=yes
10357 term_header=gtkutil.h
10358 USE_X_TOOLKIT=none ;;
10359 gtk2 ) with_gtk2=yes
10360 term_header=gtkutil.h
10361 USE_X_TOOLKIT=none ;;
10362 gtk3 ) with_gtk3=yes
10363 term_header=gtkutil.h
10364 USE_X_TOOLKIT=none ;;
10365 no ) USE_X_TOOLKIT=none ;;
10366 * ) USE_X_TOOLKIT=maybe ;;
10367 esac
10369 nextstep )
10370 term_header=nsterm.h
10372 w32 )
10373 term_header=w32term.h
10375 esac
10377 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10378 # Extract the first word of "X", so it can be a program name with args.
10379 set dummy X; ac_word=$2
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 $as_echo_n "checking for $ac_word... " >&6; }
10382 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10385 if test -n "$HAVE_XSERVER"; then
10386 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10387 else
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10395 ac_cv_prog_HAVE_XSERVER="true"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 break 2
10399 done
10400 done
10401 IFS=$as_save_IFS
10403 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10406 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10407 if test -n "$HAVE_XSERVER"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10409 $as_echo "$HAVE_XSERVER" >&6; }
10410 else
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10416 if test "$HAVE_XSERVER" = true ||
10417 test -n "$DISPLAY" ||
10418 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10419 as_fn_error "You seem to be running X, but no X development libraries
10420 were found. You should install the relevant development files for X
10421 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10422 sure you have development files for image handling, i.e.
10423 tiff, gif, jpeg, png and xpm.
10424 If you are sure you want Emacs compiled without X window support, pass
10425 --without-x
10426 to configure." "$LINENO" 5
10430 ### If we're using X11, we should use the X menu package.
10431 HAVE_MENUS=no
10432 case ${HAVE_X11} in
10433 yes ) HAVE_MENUS=yes ;;
10434 esac
10436 # Does the opsystem file prohibit the use of the GNU malloc?
10437 # Assume not, until told otherwise.
10438 GNU_MALLOC=yes
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10441 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10442 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10447 #include <malloc.h>
10448 static void hook (void) {}
10450 main ()
10452 malloc_set_state (malloc_get_state ());
10453 __after_morecore_hook = hook;
10454 __malloc_initialize_hook = hook;
10456 return 0;
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 emacs_cv_var_doug_lea_malloc=yes
10461 else
10462 emacs_cv_var_doug_lea_malloc=no
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10468 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10469 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10472 system_malloc=no
10473 case "$opsys" in
10474 ## darwin ld insists on the use of malloc routines in the System framework.
10475 darwin|sol2-10) system_malloc=yes ;;
10476 esac
10478 if test "${system_malloc}" = "yes"; then
10480 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10482 GNU_MALLOC=no
10483 GNU_MALLOC_reason="
10484 (The GNU allocators don't work with this system configuration.)"
10485 GMALLOC_OBJ=
10486 VMLIMIT_OBJ=
10487 else
10488 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10489 VMLIMIT_OBJ=vm-limit.o
10491 for ac_header in sys/vlimit.h
10492 do :
10493 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10494 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10495 cat >>confdefs.h <<_ACEOF
10496 #define HAVE_SYS_VLIMIT_H 1
10497 _ACEOF
10501 done
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10504 $as_echo_n "checking for data_start... " >&6; }
10505 if test "${emacs_cv_data_start+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 extern char data_start[]; char ch;
10512 main ()
10514 return data_start < &ch;
10516 return 0;
10518 _ACEOF
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 emacs_cv_data_start=yes
10521 else
10522 emacs_cv_data_start=no
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10528 $as_echo "$emacs_cv_data_start" >&6; }
10529 if test $emacs_cv_data_start = yes; then
10531 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10538 if test "$doug_lea_malloc" = "yes" ; then
10539 if test "$GNU_MALLOC" = yes ; then
10540 GNU_MALLOC_reason="
10541 (Using Doug Lea's new malloc from the GNU C Library.)"
10544 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10547 ## Use mmap directly for allocating larger buffers.
10548 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10549 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10550 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10551 case "$opsys" in
10552 gnu*) REL_ALLOC=no ;;
10553 esac
10556 if test x"${REL_ALLOC}" = x; then
10557 REL_ALLOC=${GNU_MALLOC}
10560 use_mmap_for_buffers=no
10561 case "$opsys" in
10562 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10563 esac
10572 for ac_func in getpagesize
10573 do :
10574 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10575 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10576 cat >>confdefs.h <<_ACEOF
10577 #define HAVE_GETPAGESIZE 1
10578 _ACEOF
10581 done
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10584 $as_echo_n "checking for working mmap... " >&6; }
10585 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 if test "$cross_compiling" = yes; then :
10589 ac_cv_func_mmap_fixed_mapped=no
10590 else
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 $ac_includes_default
10594 /* malloc might have been renamed as rpl_malloc. */
10595 #undef malloc
10597 /* Thanks to Mike Haertel and Jim Avera for this test.
10598 Here is a matrix of mmap possibilities:
10599 mmap private not fixed
10600 mmap private fixed at somewhere currently unmapped
10601 mmap private fixed at somewhere already mapped
10602 mmap shared not fixed
10603 mmap shared fixed at somewhere currently unmapped
10604 mmap shared fixed at somewhere already mapped
10605 For private mappings, we should verify that changes cannot be read()
10606 back from the file, nor mmap's back from the file at a different
10607 address. (There have been systems where private was not correctly
10608 implemented like the infamous i386 svr4.0, and systems where the
10609 VM page cache was not coherent with the file system buffer cache
10610 like early versions of FreeBSD and possibly contemporary NetBSD.)
10611 For shared mappings, we should conversely verify that changes get
10612 propagated back to all the places they're supposed to be.
10614 Grep wants private fixed already mapped.
10615 The main things grep needs to know about mmap are:
10616 * does it exist and is it safe to write into the mmap'd area
10617 * how to use it (BSD variants) */
10619 #include <fcntl.h>
10620 #include <sys/mman.h>
10622 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10623 char *malloc ();
10624 #endif
10626 /* This mess was copied from the GNU getpagesize.h. */
10627 #ifndef HAVE_GETPAGESIZE
10628 # ifdef _SC_PAGESIZE
10629 # define getpagesize() sysconf(_SC_PAGESIZE)
10630 # else /* no _SC_PAGESIZE */
10631 # ifdef HAVE_SYS_PARAM_H
10632 # include <sys/param.h>
10633 # ifdef EXEC_PAGESIZE
10634 # define getpagesize() EXEC_PAGESIZE
10635 # else /* no EXEC_PAGESIZE */
10636 # ifdef NBPG
10637 # define getpagesize() NBPG * CLSIZE
10638 # ifndef CLSIZE
10639 # define CLSIZE 1
10640 # endif /* no CLSIZE */
10641 # else /* no NBPG */
10642 # ifdef NBPC
10643 # define getpagesize() NBPC
10644 # else /* no NBPC */
10645 # ifdef PAGESIZE
10646 # define getpagesize() PAGESIZE
10647 # endif /* PAGESIZE */
10648 # endif /* no NBPC */
10649 # endif /* no NBPG */
10650 # endif /* no EXEC_PAGESIZE */
10651 # else /* no HAVE_SYS_PARAM_H */
10652 # define getpagesize() 8192 /* punt totally */
10653 # endif /* no HAVE_SYS_PARAM_H */
10654 # endif /* no _SC_PAGESIZE */
10656 #endif /* no HAVE_GETPAGESIZE */
10659 main ()
10661 char *data, *data2, *data3;
10662 const char *cdata2;
10663 int i, pagesize;
10664 int fd, fd2;
10666 pagesize = getpagesize ();
10668 /* First, make a file with some known garbage in it. */
10669 data = (char *) malloc (pagesize);
10670 if (!data)
10671 return 1;
10672 for (i = 0; i < pagesize; ++i)
10673 *(data + i) = rand ();
10674 umask (0);
10675 fd = creat ("conftest.mmap", 0600);
10676 if (fd < 0)
10677 return 2;
10678 if (write (fd, data, pagesize) != pagesize)
10679 return 3;
10680 close (fd);
10682 /* Next, check that the tail of a page is zero-filled. File must have
10683 non-zero length, otherwise we risk SIGBUS for entire page. */
10684 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10685 if (fd2 < 0)
10686 return 4;
10687 cdata2 = "";
10688 if (write (fd2, cdata2, 1) != 1)
10689 return 5;
10690 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10691 if (data2 == MAP_FAILED)
10692 return 6;
10693 for (i = 0; i < pagesize; ++i)
10694 if (*(data2 + i))
10695 return 7;
10696 close (fd2);
10697 if (munmap (data2, pagesize))
10698 return 8;
10700 /* Next, try to mmap the file at a fixed address which already has
10701 something else allocated at it. If we can, also make sure that
10702 we see the same garbage. */
10703 fd = open ("conftest.mmap", O_RDWR);
10704 if (fd < 0)
10705 return 9;
10706 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10707 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10708 return 10;
10709 for (i = 0; i < pagesize; ++i)
10710 if (*(data + i) != *(data2 + i))
10711 return 11;
10713 /* Finally, make sure that changes to the mapped area do not
10714 percolate back to the file as seen by read(). (This is a bug on
10715 some variants of i386 svr4.0.) */
10716 for (i = 0; i < pagesize; ++i)
10717 *(data2 + i) = *(data2 + i) + 1;
10718 data3 = (char *) malloc (pagesize);
10719 if (!data3)
10720 return 12;
10721 if (read (fd, data3, pagesize) != pagesize)
10722 return 13;
10723 for (i = 0; i < pagesize; ++i)
10724 if (*(data + i) != *(data3 + i))
10725 return 14;
10726 close (fd);
10727 return 0;
10729 _ACEOF
10730 if ac_fn_c_try_run "$LINENO"; then :
10731 ac_cv_func_mmap_fixed_mapped=yes
10732 else
10733 ac_cv_func_mmap_fixed_mapped=no
10735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10736 conftest.$ac_objext conftest.beam conftest.$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10741 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10742 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10744 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10747 rm -f conftest.mmap conftest.txt
10749 if test $use_mmap_for_buffers = yes; then
10751 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10753 REL_ALLOC=no
10756 LIBS="$LIBS_SYSTEM $LIBS"
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10759 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10760 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 ac_check_lib_save_LIBS=$LIBS
10764 LIBS="-ldnet $LIBS"
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10768 /* Override any GCC internal prototype to avoid an error.
10769 Use char because int might match the return type of a GCC
10770 builtin and then its argument prototype would still apply. */
10771 #ifdef __cplusplus
10772 extern "C"
10773 #endif
10774 char dnet_ntoa ();
10776 main ()
10778 return dnet_ntoa ();
10780 return 0;
10782 _ACEOF
10783 if ac_fn_c_try_link "$LINENO"; then :
10784 ac_cv_lib_dnet_dnet_ntoa=yes
10785 else
10786 ac_cv_lib_dnet_dnet_ntoa=no
10788 rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
10790 LIBS=$ac_check_lib_save_LIBS
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10793 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10794 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10795 cat >>confdefs.h <<_ACEOF
10796 #define HAVE_LIBDNET 1
10797 _ACEOF
10799 LIBS="-ldnet $LIBS"
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10805 $as_echo_n "checking for main in -lXbsd... " >&6; }
10806 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 ac_check_lib_save_LIBS=$LIBS
10810 LIBS="-lXbsd $LIBS"
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10816 main ()
10818 return main ();
10820 return 0;
10822 _ACEOF
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 ac_cv_lib_Xbsd_main=yes
10825 else
10826 ac_cv_lib_Xbsd_main=no
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_lib_save_LIBS
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10833 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10834 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10835 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10839 LIB_PTHREAD=
10843 if test "$ac_cv_header_pthread_h"; then
10844 if test "$GMALLOC_OBJ" = gmalloc.o; then
10845 emacs_pthread_function=pthread_atfork
10846 else
10847 emacs_pthread_function=pthread_self
10849 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10851 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10852 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 ac_check_lib_save_LIBS=$LIBS
10856 LIBS="-lpthread $LIBS"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10863 #ifdef __cplusplus
10864 extern "C"
10865 #endif
10866 char $emacs_pthread_function ();
10868 main ()
10870 return $emacs_pthread_function ();
10872 return 0;
10874 _ACEOF
10875 if ac_fn_c_try_link "$LINENO"; then :
10876 eval "$as_ac_Lib=yes"
10877 else
10878 eval "$as_ac_Lib=no"
10880 rm -f core conftest.err conftest.$ac_objext \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_lib_save_LIBS
10884 eval ac_res=\$$as_ac_Lib
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10886 $as_echo "$ac_res" >&6; }
10887 eval as_val=\$$as_ac_Lib
10888 if test "x$as_val" = x""yes; then :
10889 HAVE_PTHREAD=yes
10893 if test "$HAVE_PTHREAD" = yes; then
10894 case "${canonical}" in
10895 *-hpux*) ;;
10896 *) LIB_PTHREAD="-lpthread"
10897 LIBS="$LIB_PTHREAD $LIBS" ;;
10898 esac
10900 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10906 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10907 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 ac_check_lib_save_LIBS=$LIBS
10911 LIBS="-lpthreads $LIBS"
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10915 /* Override any GCC internal prototype to avoid an error.
10916 Use char because int might match the return type of a GCC
10917 builtin and then its argument prototype would still apply. */
10918 #ifdef __cplusplus
10919 extern "C"
10920 #endif
10921 char cma_open ();
10923 main ()
10925 return cma_open ();
10927 return 0;
10929 _ACEOF
10930 if ac_fn_c_try_link "$LINENO"; then :
10931 ac_cv_lib_pthreads_cma_open=yes
10932 else
10933 ac_cv_lib_pthreads_cma_open=no
10935 rm -f core conftest.err conftest.$ac_objext \
10936 conftest$ac_exeext conftest.$ac_ext
10937 LIBS=$ac_check_lib_save_LIBS
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10940 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10941 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10942 cat >>confdefs.h <<_ACEOF
10943 #define HAVE_LIBPTHREADS 1
10944 _ACEOF
10946 LIBS="-lpthreads $LIBS"
10951 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10952 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10953 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10954 ## added to LIBS in configure would never contain the pthreads part,
10955 ## but the value used in Makefiles might. FIXME?
10957 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10958 ## be harmless on older versions of X where it happens to exist.
10959 test "$opsys" = "aix4-2" && \
10960 test $ac_cv_lib_pthreads_cma_open = yes && \
10961 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10964 case ${host_os} in
10965 aix*)
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10967 $as_echo_n "checking for -bbigtoc option... " >&6; }
10968 if test "${gdb_cv_bigtoc+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10972 case $GCC in
10973 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10974 *) gdb_cv_bigtoc=-bbigtoc ;;
10975 esac
10977 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10982 main ()
10984 int i;
10986 return 0;
10988 _ACEOF
10989 if ac_fn_c_try_link "$LINENO"; then :
10991 else
10992 gdb_cv_bigtoc=
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10999 $as_echo "$gdb_cv_bigtoc" >&6; }
11001 esac
11003 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11004 # used for the tests that follow. We set them back to REAL_CFLAGS and
11005 # REAL_CPPFLAGS later on.
11007 REAL_CFLAGS="$CFLAGS"
11008 REAL_CPPFLAGS="$CPPFLAGS"
11010 if test "${HAVE_X11}" = "yes"; then
11011 DEFS="$C_SWITCH_X_SITE $DEFS"
11012 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11013 LIBS="-lX11 $LIBS"
11014 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11015 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11017 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11018 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11019 # but it's more convenient here to set LD_RUN_PATH since this
11020 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11021 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11022 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11023 export LD_RUN_PATH
11026 if test "${opsys}" = "gnu-linux"; then
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11028 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11033 main ()
11035 XOpenDisplay ("foo");
11037 return 0;
11039 _ACEOF
11040 if ac_fn_c_try_link "$LINENO"; then :
11041 xgnu_linux_first_failure=no
11042 else
11043 xgnu_linux_first_failure=yes
11045 rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11047 if test "${xgnu_linux_first_failure}" = "yes"; then
11048 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11049 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11050 OLD_CPPFLAGS="$CPPFLAGS"
11051 OLD_LIBS="$LIBS"
11052 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11053 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11054 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11055 LIBS="$LIBS -b i486-linuxaout"
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11060 main ()
11062 XOpenDisplay ("foo");
11064 return 0;
11066 _ACEOF
11067 if ac_fn_c_try_link "$LINENO"; then :
11068 xgnu_linux_second_failure=no
11069 else
11070 xgnu_linux_second_failure=yes
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074 if test "${xgnu_linux_second_failure}" = "yes"; then
11075 # If we get the same failure with -b, there is no use adding -b.
11076 # So take it out. This plays safe.
11077 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11078 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11079 CPPFLAGS="$OLD_CPPFLAGS"
11080 LIBS="$OLD_LIBS"
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082 $as_echo "no" >&6; }
11083 else
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11085 $as_echo "yes" >&6; }
11087 else
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11093 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11094 # header files included from there.
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11096 $as_echo_n "checking for Xkb... " >&6; }
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 #include <X11/Xlib.h>
11100 #include <X11/XKBlib.h>
11102 main ()
11104 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11106 return 0;
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 emacs_xkb=yes
11111 else
11112 emacs_xkb=no
11114 rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11117 $as_echo "$emacs_xkb" >&6; }
11118 if test $emacs_xkb = yes; then
11120 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11124 for ac_func in XrmSetDatabase XScreenResourceString \
11125 XScreenNumberOfScreen
11126 do :
11127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11129 eval as_val=\$$as_ac_var
11130 if test "x$as_val" = x""yes; then :
11131 cat >>confdefs.h <<_ACEOF
11132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11133 _ACEOF
11136 done
11140 if test "${window_system}" = "x11"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11142 $as_echo_n "checking X11 version 6... " >&6; }
11143 if test "${emacs_cv_x11_version_6+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148 #include <X11/Xlib.h>
11150 main ()
11152 #if XlibSpecificationRelease < 6
11153 fail;
11154 #endif
11157 return 0;
11159 _ACEOF
11160 if ac_fn_c_try_link "$LINENO"; then :
11161 emacs_cv_x11_version_6=yes
11162 else
11163 emacs_cv_x11_version_6=no
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11169 if test $emacs_cv_x11_version_6 = yes; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11171 $as_echo "6 or newer" >&6; }
11173 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11176 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11178 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11179 ## XIM support.
11180 case "$opsys" in
11181 sol2-*) : ;;
11183 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11186 esac
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11189 $as_echo "before 6" >&6; }
11194 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11195 HAVE_RSVG=no
11196 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11197 if test "${with_rsvg}" != "no"; then
11198 RSVG_REQUIRED=2.11.0
11199 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11202 succeeded=no
11204 if test "$PKG_CONFIG" = "no" ; then
11206 else
11207 PKG_CONFIG_MIN_VERSION=0.9.0
11208 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11210 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11212 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11213 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11214 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11215 edit_cflags="
11216 s,///*,/,g
11217 s/^/ /
11218 s/ -I/ $isystem/g
11219 s/^ //
11221 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11222 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11224 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11225 succeeded=yes
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 RSVG_CFLAGS=""
11230 RSVG_LIBS=""
11231 ## If we have a custom action on failure, don't print errors, but
11232 ## do set a variable so people can do so. Do it in a subshell
11233 ## to capture any diagnostics in invoking pkg-config.
11234 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11240 else
11241 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11242 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11246 if test $succeeded = yes; then
11247 HAVE_RSVG=yes
11248 else
11255 if test $HAVE_RSVG = yes; then
11257 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11259 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11260 LIBS="$RSVG_LIBS $LIBS"
11265 HAVE_IMAGEMAGICK=no
11266 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11267 if test "${with_imagemagick}" != "no"; then
11268 ## 6.2.8 is the earliest version known to work, but earlier versions
11269 ## might work - let us know if you find one.
11270 ## 6.0.7 does not work. See bug#7955.
11271 ## 6.8.2 makes Emacs crash; see Bug#13867.
11272 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11274 succeeded=no
11276 if test "$PKG_CONFIG" = "no" ; then
11278 else
11279 PKG_CONFIG_MIN_VERSION=0.9.0
11280 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11282 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11284 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11285 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11286 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11287 edit_cflags="
11288 s,///*,/,g
11289 s/^/ /
11290 s/ -I/ $isystem/g
11291 s/^ //
11293 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11294 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11296 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11297 succeeded=yes
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11301 IMAGEMAGICK_CFLAGS=""
11302 IMAGEMAGICK_LIBS=""
11303 ## If we have a custom action on failure, don't print errors, but
11304 ## do set a variable so people can do so. Do it in a subshell
11305 ## to capture any diagnostics in invoking pkg-config.
11306 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11312 else
11313 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11314 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11318 if test $succeeded = yes; then
11319 HAVE_IMAGEMAGICK=yes
11320 else
11327 if test $HAVE_IMAGEMAGICK = yes; then
11329 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11331 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11332 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11333 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11334 do :
11335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11337 eval as_val=\$$as_ac_var
11338 if test "x$as_val" = x""yes; then :
11339 cat >>confdefs.h <<_ACEOF
11340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11341 _ACEOF
11344 done
11351 HAVE_GTK=no
11352 GTK_OBJ=
11353 gtk_term_header=$term_header
11354 check_gtk2=no
11355 gtk3_pkg_errors=
11356 if test "${opsys}" != "mingw32"; then
11357 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11358 GLIB_REQUIRED=2.28
11359 GTK_REQUIRED=3.0
11360 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11363 succeeded=no
11365 if test "$PKG_CONFIG" = "no" ; then
11366 pkg_check_gtk=no
11367 else
11368 PKG_CONFIG_MIN_VERSION=0.9.0
11369 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11371 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11373 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11374 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11375 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11376 edit_cflags="
11377 s,///*,/,g
11378 s/^/ /
11379 s/ -I/ $isystem/g
11380 s/^ //
11382 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11383 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11385 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11386 succeeded=yes
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390 GTK_CFLAGS=""
11391 GTK_LIBS=""
11392 ## If we have a custom action on failure, don't print errors, but
11393 ## do set a variable so people can do so. Do it in a subshell
11394 ## to capture any diagnostics in invoking pkg-config.
11395 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11401 else
11402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11407 if test $succeeded = yes; then
11408 pkg_check_gtk=yes
11409 else
11410 pkg_check_gtk=no
11413 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11414 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11416 if test "$pkg_check_gtk" = "yes"; then
11418 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11420 GTK_OBJ=emacsgtkfixed.o
11421 gtk_term_header=gtkutil.h
11422 USE_GTK_TOOLKIT="GTK3"
11423 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11424 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11425 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11427 else
11428 check_gtk2=yes
11429 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11433 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11434 GLIB_REQUIRED=2.10
11435 GTK_REQUIRED=2.10
11436 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11439 succeeded=no
11441 if test "$PKG_CONFIG" = "no" ; then
11442 pkg_check_gtk=no
11443 else
11444 PKG_CONFIG_MIN_VERSION=0.9.0
11445 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11447 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11449 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11450 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11451 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11452 edit_cflags="
11453 s,///*,/,g
11454 s/^/ /
11455 s/ -I/ $isystem/g
11456 s/^ //
11458 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11459 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11461 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11462 succeeded=yes
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11466 GTK_CFLAGS=""
11467 GTK_LIBS=""
11468 ## If we have a custom action on failure, don't print errors, but
11469 ## do set a variable so people can do so. Do it in a subshell
11470 ## to capture any diagnostics in invoking pkg-config.
11471 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11477 else
11478 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11479 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11483 if test $succeeded = yes; then
11484 pkg_check_gtk=yes
11485 else
11486 pkg_check_gtk=no
11489 if test "$pkg_check_gtk" = "no" &&
11490 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11491 then
11492 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11494 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11498 if test x"$pkg_check_gtk" = xyes; then
11502 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11503 CFLAGS="$CFLAGS $GTK_CFLAGS"
11504 LIBS="$GTK_LIBS $LIBS"
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11506 $as_echo_n "checking whether GTK compiles... " >&6; }
11507 GTK_COMPILES=no
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 /* Check the Gtk and Glib APIs. */
11511 #include <gtk/gtk.h>
11512 #include <glib-object.h>
11513 static void
11514 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11518 main ()
11521 GtkSettings *gs = 0;
11522 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11523 strict C prohibits this. Use gtk_main_iteration to test that the
11524 libraries are there. */
11525 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11526 0, 0, 0, G_CALLBACK (callback), 0))
11527 gtk_main_iteration ();
11530 return 0;
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 GTK_COMPILES=yes
11536 rm -f core conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11539 $as_echo "$GTK_COMPILES" >&6; }
11540 if test "${GTK_COMPILES}" != "yes"; then
11541 GTK_OBJ=
11542 if test "$USE_X_TOOLKIT" != "maybe"; then
11543 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11545 else
11546 HAVE_GTK=yes
11548 $as_echo "#define USE_GTK 1" >>confdefs.h
11550 GTK_OBJ="gtkutil.o $GTK_OBJ"
11551 term_header=$gtk_term_header
11552 USE_X_TOOLKIT=none
11553 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11557 closing open displays. This is no problem if you just use
11558 one display, but if you use more than one and close one of them
11559 Emacs may crash." >&5
11560 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11561 closing open displays. This is no problem if you just use
11562 one display, but if you use more than one and close one of them
11563 Emacs may crash." >&2;}
11564 sleep 3
11572 if test "${HAVE_GTK}" = "yes"; then
11574 if test "$with_toolkit_scroll_bars" != no; then
11575 with_toolkit_scroll_bars=yes
11578 HAVE_GTK_FILE_SELECTION=no
11579 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11580 #include <gtk/gtk.h>
11582 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11583 HAVE_GTK_FILE_SELECTION=yes
11584 else
11585 HAVE_GTK_FILE_SELECTION=no
11588 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11589 for ac_func in gtk_file_selection_new
11590 do :
11591 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11592 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_GTK_FILE_SELECTION_NEW 1
11595 _ACEOF
11598 done
11602 HAVE_GTK_HANDLE_BOX=no
11603 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11604 #include <gtk/gtk.h>
11606 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11607 HAVE_GTK_HANDLE_BOX=yes
11608 else
11609 HAVE_GTK_HANDLE_BOX=no
11612 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11613 for ac_func in gtk_handle_box_new
11614 do :
11615 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11616 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11617 cat >>confdefs.h <<_ACEOF
11618 #define HAVE_GTK_HANDLE_BOX_NEW 1
11619 _ACEOF
11622 done
11626 HAVE_GTK_TEAROFF_MENU_ITEM=no
11627 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11628 #include <gtk/gtk.h>
11630 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11631 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11632 else
11633 HAVE_GTK_TEAROFF_MENU_ITEM=no
11636 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11637 for ac_func in gtk_tearoff_menu_item_new
11638 do :
11639 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11640 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11641 cat >>confdefs.h <<_ACEOF
11642 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11643 _ACEOF
11646 done
11650 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11651 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11652 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11653 gtk_orientable_set_orientation \
11654 gtk_window_set_has_resize_grip
11655 do :
11656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11658 eval as_val=\$$as_ac_var
11659 if test "x$as_val" = x""yes; then :
11660 cat >>confdefs.h <<_ACEOF
11661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662 _ACEOF
11665 done
11668 term_header=gtkutil.h
11671 HAVE_DBUS=no
11672 DBUS_OBJ=
11673 if test "${with_dbus}" = "yes"; then
11675 succeeded=no
11677 if test "$PKG_CONFIG" = "no" ; then
11678 HAVE_DBUS=no
11679 else
11680 PKG_CONFIG_MIN_VERSION=0.9.0
11681 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11683 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11685 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11686 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11687 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11688 edit_cflags="
11689 s,///*,/,g
11690 s/^/ /
11691 s/ -I/ $isystem/g
11692 s/^ //
11694 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11695 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11697 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11698 succeeded=yes
11699 else
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701 $as_echo "no" >&6; }
11702 DBUS_CFLAGS=""
11703 DBUS_LIBS=""
11704 ## If we have a custom action on failure, don't print errors, but
11705 ## do set a variable so people can do so. Do it in a subshell
11706 ## to capture any diagnostics in invoking pkg-config.
11707 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11713 else
11714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11719 if test $succeeded = yes; then
11720 HAVE_DBUS=yes
11721 else
11722 HAVE_DBUS=no
11725 if test "$HAVE_DBUS" = yes; then
11726 LIBS="$LIBS $DBUS_LIBS"
11728 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11730 for ac_func in dbus_watch_get_unix_fd \
11731 dbus_type_is_valid \
11732 dbus_validate_bus_name \
11733 dbus_validate_path \
11734 dbus_validate_interface \
11735 dbus_validate_member
11736 do :
11737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11738 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11739 eval as_val=\$$as_ac_var
11740 if test "x$as_val" = x""yes; then :
11741 cat >>confdefs.h <<_ACEOF
11742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11743 _ACEOF
11746 done
11748 DBUS_OBJ=dbusbind.o
11753 HAVE_GSETTINGS=no
11754 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11756 succeeded=no
11758 if test "$PKG_CONFIG" = "no" ; then
11759 HAVE_GSETTINGS=no
11760 else
11761 PKG_CONFIG_MIN_VERSION=0.9.0
11762 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11764 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11766 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11767 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11768 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11769 edit_cflags="
11770 s,///*,/,g
11771 s/^/ /
11772 s/ -I/ $isystem/g
11773 s/^ //
11775 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11776 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11778 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11779 succeeded=yes
11780 else
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782 $as_echo "no" >&6; }
11783 GSETTINGS_CFLAGS=""
11784 GSETTINGS_LIBS=""
11785 ## If we have a custom action on failure, don't print errors, but
11786 ## do set a variable so people can do so. Do it in a subshell
11787 ## to capture any diagnostics in invoking pkg-config.
11788 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11794 else
11795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11800 if test $succeeded = yes; then
11801 HAVE_GSETTINGS=yes
11802 else
11803 HAVE_GSETTINGS=no
11806 if test "$HAVE_GSETTINGS" = "yes"; then
11808 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11810 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11811 SETTINGS_LIBS="$GSETTINGS_LIBS"
11815 HAVE_GCONF=no
11816 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11818 succeeded=no
11820 if test "$PKG_CONFIG" = "no" ; then
11821 HAVE_GCONF=no
11822 else
11823 PKG_CONFIG_MIN_VERSION=0.9.0
11824 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11826 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11828 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11829 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11830 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11831 edit_cflags="
11832 s,///*,/,g
11833 s/^/ /
11834 s/ -I/ $isystem/g
11835 s/^ //
11837 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11838 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11840 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11841 succeeded=yes
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11845 GCONF_CFLAGS=""
11846 GCONF_LIBS=""
11847 ## If we have a custom action on failure, don't print errors, but
11848 ## do set a variable so people can do so. Do it in a subshell
11849 ## to capture any diagnostics in invoking pkg-config.
11850 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11856 else
11857 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11858 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11862 if test $succeeded = yes; then
11863 HAVE_GCONF=yes
11864 else
11865 HAVE_GCONF=no
11868 if test "$HAVE_GCONF" = yes; then
11870 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11872 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11873 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11877 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11879 succeeded=no
11881 if test "$PKG_CONFIG" = "no" ; then
11882 HAVE_GOBJECT=no
11883 else
11884 PKG_CONFIG_MIN_VERSION=0.9.0
11885 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11887 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11889 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11890 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11891 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11892 edit_cflags="
11893 s,///*,/,g
11894 s/^/ /
11895 s/ -I/ $isystem/g
11896 s/^ //
11898 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11899 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11901 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11902 succeeded=yes
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11906 GOBJECT_CFLAGS=""
11907 GOBJECT_LIBS=""
11908 ## If we have a custom action on failure, don't print errors, but
11909 ## do set a variable so people can do so. Do it in a subshell
11910 ## to capture any diagnostics in invoking pkg-config.
11911 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11917 else
11918 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11919 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11923 if test $succeeded = yes; then
11924 HAVE_GOBJECT=yes
11925 else
11926 HAVE_GOBJECT=no
11929 if test "$HAVE_GOBJECT" = "yes"; then
11930 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11931 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11933 SAVE_CFLAGS="$CFLAGS"
11934 SAVE_LIBS="$LIBS"
11935 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11936 LIBS="$SETTINGS_LIBS $LIBS"
11937 for ac_func in g_type_init
11938 do :
11939 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11940 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_G_TYPE_INIT 1
11943 _ACEOF
11946 done
11948 CFLAGS="$SAVE_CFLAGS"
11949 LIBS="$SAVE_LIBS"
11955 HAVE_LIBSELINUX=no
11956 LIBSELINUX_LIBS=
11957 if test "${with_selinux}" = "yes"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11959 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11960 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11961 $as_echo_n "(cached) " >&6
11962 else
11963 ac_check_lib_save_LIBS=$LIBS
11964 LIBS="-lselinux $LIBS"
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char lgetfilecon ();
11976 main ()
11978 return lgetfilecon ();
11980 return 0;
11982 _ACEOF
11983 if ac_fn_c_try_link "$LINENO"; then :
11984 ac_cv_lib_selinux_lgetfilecon=yes
11985 else
11986 ac_cv_lib_selinux_lgetfilecon=no
11988 rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11990 LIBS=$ac_check_lib_save_LIBS
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11993 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11994 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11995 HAVE_LIBSELINUX=yes
11996 else
11997 HAVE_LIBSELINUX=no
12000 if test "$HAVE_LIBSELINUX" = yes; then
12002 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12004 LIBSELINUX_LIBS=-lselinux
12009 HAVE_GNUTLS=no
12010 if test "${with_gnutls}" = "yes" ; then
12012 succeeded=no
12014 if test "$PKG_CONFIG" = "no" ; then
12015 HAVE_GNUTLS=no
12016 else
12017 PKG_CONFIG_MIN_VERSION=0.9.0
12018 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12020 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12022 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12023 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12024 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12025 edit_cflags="
12026 s,///*,/,g
12027 s/^/ /
12028 s/ -I/ $isystem/g
12029 s/^ //
12031 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12032 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12034 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12035 succeeded=yes
12036 else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038 $as_echo "no" >&6; }
12039 LIBGNUTLS_CFLAGS=""
12040 LIBGNUTLS_LIBS=""
12041 ## If we have a custom action on failure, don't print errors, but
12042 ## do set a variable so people can do so. Do it in a subshell
12043 ## to capture any diagnostics in invoking pkg-config.
12044 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12050 else
12051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12056 if test $succeeded = yes; then
12057 HAVE_GNUTLS=yes
12058 else
12059 HAVE_GNUTLS=no
12062 if test "${HAVE_GNUTLS}" = "yes"; then
12064 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12068 # Windows loads GnuTLS dynamically
12069 if test "${opsys}" = "mingw32"; then
12070 LIBGNUTLS_LIBS=
12071 else
12072 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12073 LIBS="$LIBGNUTLS_LIBS $LIBS"
12080 NOTIFY_OBJ=
12081 NOTIFY_SUMMARY=no
12083 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12084 with_file_notification=no
12087 case $with_file_notification,$opsys in
12088 w32,* | yes,mingw32)
12089 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12090 if test "x$ac_cv_header_windows_h" = x""yes; then :
12095 if test "$ac_cv_header_windows_h" = yes ; then
12097 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12099 NOTIFY_OBJ=w32notify.o
12100 NOTIFY_SUMMARY="yes (w32)"
12101 fi ;;
12102 esac
12104 case $with_file_notification,$NOTIFY_OBJ in
12105 gfile, | yes,)
12107 succeeded=no
12109 if test "$PKG_CONFIG" = "no" ; then
12110 HAVE_GFILENOTIFY=no
12111 else
12112 PKG_CONFIG_MIN_VERSION=0.9.0
12113 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12115 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12117 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12118 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12119 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12120 edit_cflags="
12121 s,///*,/,g
12122 s/^/ /
12123 s/ -I/ $isystem/g
12124 s/^ //
12126 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12127 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12129 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12130 succeeded=yes
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 GFILENOTIFY_CFLAGS=""
12135 GFILENOTIFY_LIBS=""
12136 ## If we have a custom action on failure, don't print errors, but
12137 ## do set a variable so people can do so. Do it in a subshell
12138 ## to capture any diagnostics in invoking pkg-config.
12139 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12145 else
12146 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12147 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12151 if test $succeeded = yes; then
12152 HAVE_GFILENOTIFY=yes
12153 else
12154 HAVE_GFILENOTIFY=no
12157 if test "$HAVE_GFILENOTIFY" = "yes"; then
12159 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12161 NOTIFY_OBJ=gfilenotify.o
12162 NOTIFY_SUMMARY="yes -lgio (gfile)"
12163 fi ;;
12164 esac
12166 case $with_file_notification,$NOTIFY_OBJ in
12167 inotify, | yes,)
12168 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12169 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12174 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12175 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12176 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12180 if test "$ac_cv_func_inotify_init1" = yes; then
12182 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12184 NOTIFY_OBJ=inotify.o
12185 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12187 fi ;;
12188 esac
12190 case $with_file_notification,$NOTIFY_OBJ in
12191 yes,* | no,* | *,?*) ;;
12192 *) as_fn_error "File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12193 esac
12195 if test -n "$NOTIFY_OBJ"; then
12197 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12204 HAVE_XAW3D=no
12205 LUCID_LIBW=
12206 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12207 if test "$with_xaw3d" != no; then
12208 if test "${emacs_cv_xaw3d+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12214 #include <X11/Intrinsic.h>
12215 #include <X11/Xaw3d/Simple.h>
12217 main ()
12221 return 0;
12223 _ACEOF
12224 if ac_fn_c_try_link "$LINENO"; then :
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12226 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12227 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 ac_check_lib_save_LIBS=$LIBS
12231 LIBS="-lXaw3d $LIBS"
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12235 /* Override any GCC internal prototype to avoid an error.
12236 Use char because int might match the return type of a GCC
12237 builtin and then its argument prototype would still apply. */
12238 #ifdef __cplusplus
12239 extern "C"
12240 #endif
12241 char XawScrollbarSetThumb ();
12243 main ()
12245 return XawScrollbarSetThumb ();
12247 return 0;
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"; then :
12251 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12252 else
12253 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12255 rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257 LIBS=$ac_check_lib_save_LIBS
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12260 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12261 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12262 emacs_cv_xaw3d=yes
12263 else
12264 emacs_cv_xaw3d=no
12267 else
12268 emacs_cv_xaw3d=no
12270 rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12274 else
12275 emacs_cv_xaw3d=no
12277 if test $emacs_cv_xaw3d = yes; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12279 $as_echo_n "checking for xaw3d... " >&6; }
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12281 $as_echo "yes; using Lucid toolkit" >&6; }
12282 USE_X_TOOLKIT=LUCID
12283 HAVE_XAW3D=yes
12284 LUCID_LIBW=-lXaw3d
12286 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12290 $as_echo_n "checking for xaw3d... " >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12294 $as_echo_n "checking for libXaw... " >&6; }
12295 if test "${emacs_cv_xaw+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12301 #include <X11/Intrinsic.h>
12302 #include <X11/Xaw/Simple.h>
12304 main ()
12308 return 0;
12310 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"; then :
12312 emacs_cv_xaw=yes
12313 else
12314 emacs_cv_xaw=no
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12320 if test $emacs_cv_xaw = yes; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12322 $as_echo "yes; using Lucid toolkit" >&6; }
12323 USE_X_TOOLKIT=LUCID
12324 LUCID_LIBW=-lXaw
12325 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12326 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12327 else
12328 as_fn_error "No X toolkit could be found.
12329 If you are sure you want Emacs compiled without an X toolkit, pass
12330 --with-x-toolkit=no
12331 to configure. Otherwise, install the development libraries for the toolkit
12332 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12337 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12339 LIBXTR6=
12340 if test "${USE_X_TOOLKIT}" != "none"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12342 $as_echo_n "checking X11 toolkit version... " >&6; }
12343 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348 #include <X11/Intrinsic.h>
12350 main ()
12352 #if XtSpecificationRelease < 6
12353 fail;
12354 #endif
12357 return 0;
12359 _ACEOF
12360 if ac_fn_c_try_link "$LINENO"; then :
12361 emacs_cv_x11_toolkit_version_6=yes
12362 else
12363 emacs_cv_x11_toolkit_version_6=no
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12369 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12370 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12372 $as_echo "6 or newer" >&6; }
12374 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12376 LIBXTR6="-lSM -lICE"
12377 case "$opsys" in
12378 ## Use libw.a along with X11R6 Xt.
12379 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12380 esac
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12383 $as_echo "before 6" >&6; }
12386 OLDLIBS="$LIBS"
12387 if test x$HAVE_X11XTR6 = xyes; then
12388 LIBS="-lXt -lSM -lICE $LIBS"
12389 else
12390 LIBS="-lXt $LIBS"
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12393 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12394 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-lXmu $LIBS"
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12405 #ifdef __cplusplus
12406 extern "C"
12407 #endif
12408 char XmuConvertStandardSelection ();
12410 main ()
12412 return XmuConvertStandardSelection ();
12414 return 0;
12416 _ACEOF
12417 if ac_fn_c_try_link "$LINENO"; then :
12418 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12419 else
12420 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12422 rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12424 LIBS=$ac_check_lib_save_LIBS
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12427 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12428 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_LIBXMU 1
12431 _ACEOF
12433 LIBS="-lXmu $LIBS"
12437 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12441 LIBXMU=-lXmu
12442 case $opsys in
12443 ## These systems don't supply Xmu.
12444 hpux* | aix4-2 )
12445 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12447 mingw32 )
12448 LIBXMU=
12450 esac
12453 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12454 if test "${HAVE_X11}" = "yes"; then
12455 if test "${USE_X_TOOLKIT}" != "none"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12457 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12458 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lXext $LIBS"
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 char XShapeQueryExtension ();
12474 main ()
12476 return XShapeQueryExtension ();
12478 return 0;
12480 _ACEOF
12481 if ac_fn_c_try_link "$LINENO"; then :
12482 ac_cv_lib_Xext_XShapeQueryExtension=yes
12483 else
12484 ac_cv_lib_Xext_XShapeQueryExtension=no
12486 rm -f core conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
12488 LIBS=$ac_check_lib_save_LIBS
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12491 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12492 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12493 cat >>confdefs.h <<_ACEOF
12494 #define HAVE_LIBXEXT 1
12495 _ACEOF
12497 LIBS="-lXext $LIBS"
12504 LIBXP=
12505 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12506 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12507 if test -d /usr/include/openmotif; then
12508 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12509 emacs_cv_openmotif=yes
12510 case "$canonical" in
12511 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12512 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12515 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12516 esac
12517 else
12518 emacs_cv_openmotif=no
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12521 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12522 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527 #include <Xm/Xm.h>
12529 main ()
12531 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12532 int x = 5;
12533 #else
12534 Motif version prior to 2.1.
12535 #endif
12537 return 0;
12539 _ACEOF
12540 if ac_fn_c_try_compile "$LINENO"; then :
12541 emacs_cv_motif_version_2_1=yes
12542 else
12543 emacs_cv_motif_version_2_1=no
12545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12548 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12549 if test $emacs_cv_motif_version_2_1 = yes; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12551 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12552 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-lXp $LIBS"
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12563 #ifdef __cplusplus
12564 extern "C"
12565 #endif
12566 char XpCreateContext ();
12568 main ()
12570 return XpCreateContext ();
12572 return 0;
12574 _ACEOF
12575 if ac_fn_c_try_link "$LINENO"; then :
12576 ac_cv_lib_Xp_XpCreateContext=yes
12577 else
12578 ac_cv_lib_Xp_XpCreateContext=no
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582 LIBS=$ac_check_lib_save_LIBS
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12585 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12586 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12587 LIBXP=-lXp
12590 if test x$emacs_cv_openmotif = xyes; then
12591 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12593 else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12595 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12596 if test "${emacs_cv_lesstif+set}" = set; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 # We put this in CFLAGS temporarily to precede other -I options
12600 # that might be in CFLAGS temporarily.
12601 # We put this in CPPFLAGS where it precedes the other -I options.
12602 OLD_CPPFLAGS=$CPPFLAGS
12603 OLD_CFLAGS=$CFLAGS
12604 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12605 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12610 main ()
12612 int x = 5;
12614 return 0;
12616 _ACEOF
12617 if ac_fn_c_try_compile "$LINENO"; then :
12618 emacs_cv_lesstif=yes
12619 else
12620 emacs_cv_lesstif=no
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12625 $as_echo "$emacs_cv_lesstif" >&6; }
12626 if test $emacs_cv_lesstif = yes; then
12627 # Make sure this -I option remains in CPPFLAGS after it is set
12628 # back to REAL_CPPFLAGS.
12629 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12630 # have those other -I options anyway. Ultimately, having this
12631 # directory ultimately in CPPFLAGS will be enough.
12632 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12633 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12634 else
12635 CFLAGS=$OLD_CFLAGS
12636 CPPFLAGS=$OLD_CPPFLAGS
12639 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12640 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12642 else
12643 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12650 USE_TOOLKIT_SCROLL_BARS=no
12651 if test "${with_toolkit_scroll_bars}" != "no"; then
12652 if test "${USE_X_TOOLKIT}" != "none"; then
12653 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12654 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12656 HAVE_XAW3D=no
12657 USE_TOOLKIT_SCROLL_BARS=yes
12658 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12659 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12661 USE_TOOLKIT_SCROLL_BARS=yes
12663 elif test "${HAVE_GTK}" = "yes"; then
12664 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12666 USE_TOOLKIT_SCROLL_BARS=yes
12667 elif test "${HAVE_NS}" = "yes"; then
12668 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12670 USE_TOOLKIT_SCROLL_BARS=yes
12671 elif test "${HAVE_W32}" = "yes"; then
12672 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12674 USE_TOOLKIT_SCROLL_BARS=yes
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #include <X11/Xlib.h>
12682 #include <X11/Xresource.h>
12684 main ()
12686 XIMProc callback;
12688 return 0;
12690 _ACEOF
12691 if ac_fn_c_try_compile "$LINENO"; then :
12692 HAVE_XIM=yes
12694 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12696 else
12697 HAVE_XIM=no
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702 if test "${with_xim}" != "no"; then
12704 $as_echo "#define USE_XIM 1" >>confdefs.h
12709 if test "${HAVE_XIM}" != "no"; then
12710 late_CFLAGS=$CFLAGS
12711 if test "$GCC" = yes; then
12712 CFLAGS="$CFLAGS --pedantic-errors"
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12717 #include <X11/Xlib.h>
12718 #include <X11/Xresource.h>
12720 main ()
12722 Display *display;
12723 XrmDatabase db;
12724 char *res_name;
12725 char *res_class;
12726 XIMProc callback;
12727 XPointer *client_data;
12728 #ifndef __GNUC__
12729 /* If we're not using GCC, it's probably not XFree86, and this is
12730 probably right, but we can't use something like --pedantic-errors. */
12731 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12732 char*, XIMProc, XPointer*);
12733 #endif
12734 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12735 client_data);
12737 return 0;
12739 _ACEOF
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741 emacs_cv_arg6_star=yes
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744 if test "$emacs_cv_arg6_star" = yes; then
12745 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12747 else
12748 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12751 CFLAGS=$late_CFLAGS
12754 ### Start of font-backend (under any platform) section.
12755 # (nothing here yet -- this is a placeholder)
12756 ### End of font-backend (under any platform) section.
12758 ### Start of font-backend (under X11) section.
12759 if test "${HAVE_X11}" = "yes"; then
12761 succeeded=no
12763 if test "$PKG_CONFIG" = "no" ; then
12764 HAVE_FC=no
12765 else
12766 PKG_CONFIG_MIN_VERSION=0.9.0
12767 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12769 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12771 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12772 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12773 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12774 edit_cflags="
12775 s,///*,/,g
12776 s/^/ /
12777 s/ -I/ $isystem/g
12778 s/^ //
12780 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12781 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12783 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12784 succeeded=yes
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 FONTCONFIG_CFLAGS=""
12789 FONTCONFIG_LIBS=""
12790 ## If we have a custom action on failure, don't print errors, but
12791 ## do set a variable so people can do so. Do it in a subshell
12792 ## to capture any diagnostics in invoking pkg-config.
12793 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12799 else
12800 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12801 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12805 if test $succeeded = yes; then
12806 HAVE_FC=yes
12807 else
12808 HAVE_FC=no
12812 ## Use -lXft if available, unless `--with-xft=no'.
12813 HAVE_XFT=maybe
12814 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12815 with_xft="no";
12817 if test "x${with_xft}" != "xno"; then
12820 succeeded=no
12822 if test "$PKG_CONFIG" = "no" ; then
12823 HAVE_XFT=no
12824 else
12825 PKG_CONFIG_MIN_VERSION=0.9.0
12826 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12828 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12830 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12831 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12832 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12833 edit_cflags="
12834 s,///*,/,g
12835 s/^/ /
12836 s/ -I/ $isystem/g
12837 s/^ //
12839 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12840 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12842 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12843 succeeded=yes
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12847 XFT_CFLAGS=""
12848 XFT_LIBS=""
12849 ## If we have a custom action on failure, don't print errors, but
12850 ## do set a variable so people can do so. Do it in a subshell
12851 ## to capture any diagnostics in invoking pkg-config.
12852 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12858 else
12859 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12860 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12864 if test $succeeded = yes; then
12866 else
12867 HAVE_XFT=no
12870 ## Because xftfont.c uses XRenderQueryExtension, we also
12871 ## need to link to -lXrender.
12872 HAVE_XRENDER=no
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12874 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12875 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-lXrender $LIBS"
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 char XRenderQueryExtension ();
12891 main ()
12893 return XRenderQueryExtension ();
12895 return 0;
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12900 else
12901 ac_cv_lib_Xrender_XRenderQueryExtension=no
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12908 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12909 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12910 HAVE_XRENDER=yes
12913 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12914 OLD_CPPFLAGS="$CPPFLAGS"
12915 OLD_CFLAGS="$CFLAGS"
12916 OLD_LIBS="$LIBS"
12917 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12918 CFLAGS="$CFLAGS $XFT_CFLAGS"
12919 XFT_LIBS="-lXrender $XFT_LIBS"
12920 LIBS="$XFT_LIBS $LIBS"
12921 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12923 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12925 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12926 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lXft $XFT_LIBS $LIBS"
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char XftFontOpen ();
12942 main ()
12944 return XftFontOpen ();
12946 return 0;
12948 _ACEOF
12949 if ac_fn_c_try_link "$LINENO"; then :
12950 ac_cv_lib_Xft_XftFontOpen=yes
12951 else
12952 ac_cv_lib_Xft_XftFontOpen=no
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 LIBS=$ac_check_lib_save_LIBS
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12959 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12960 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12961 HAVE_XFT=yes
12968 if test "${HAVE_XFT}" = "yes"; then
12970 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12973 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12974 else
12975 CPPFLAGS="$OLD_CPPFLAGS"
12976 CFLAGS="$OLD_CFLAGS"
12977 LIBS="$OLD_LIBS"
12978 fi # "${HAVE_XFT}" = "yes"
12979 fi # "$HAVE_XFT" != no
12980 fi # "x${with_xft}" != "xno"
12982 ## We used to allow building with FreeType and without Xft.
12983 ## However, the ftx font backend driver is not in good shape.
12984 if test "$HAVE_XFT" != "yes"; then
12985 HAVE_XFT=no
12986 HAVE_FREETYPE=no
12987 else
12989 succeeded=no
12991 if test "$PKG_CONFIG" = "no" ; then
12992 HAVE_FREETYPE=no
12993 else
12994 PKG_CONFIG_MIN_VERSION=0.9.0
12995 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12997 $as_echo_n "checking for freetype2... " >&6; }
12999 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13000 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13001 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13002 edit_cflags="
13003 s,///*,/,g
13004 s/^/ /
13005 s/ -I/ $isystem/g
13006 s/^ //
13008 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13009 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13011 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13012 succeeded=yes
13013 else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015 $as_echo "no" >&6; }
13016 FREETYPE_CFLAGS=""
13017 FREETYPE_LIBS=""
13018 ## If we have a custom action on failure, don't print errors, but
13019 ## do set a variable so people can do so. Do it in a subshell
13020 ## to capture any diagnostics in invoking pkg-config.
13021 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13027 else
13028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13033 if test $succeeded = yes; then
13034 HAVE_FREETYPE=yes
13035 else
13036 HAVE_FREETYPE=no
13040 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13043 HAVE_LIBOTF=no
13044 if test "${HAVE_FREETYPE}" = "yes"; then
13046 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13048 if test "${with_libotf}" != "no"; then
13050 succeeded=no
13052 if test "$PKG_CONFIG" = "no" ; then
13053 HAVE_LIBOTF=no
13054 else
13055 PKG_CONFIG_MIN_VERSION=0.9.0
13056 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13058 $as_echo_n "checking for libotf... " >&6; }
13060 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13061 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13062 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13063 edit_cflags="
13064 s,///*,/,g
13065 s/^/ /
13066 s/ -I/ $isystem/g
13067 s/^ //
13069 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13070 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13072 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13073 succeeded=yes
13074 else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13077 LIBOTF_CFLAGS=""
13078 LIBOTF_LIBS=""
13079 ## If we have a custom action on failure, don't print errors, but
13080 ## do set a variable so people can do so. Do it in a subshell
13081 ## to capture any diagnostics in invoking pkg-config.
13082 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13088 else
13089 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13090 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13094 if test $succeeded = yes; then
13095 HAVE_LIBOTF=yes
13096 else
13097 HAVE_LIBOTF=no
13100 if test "$HAVE_LIBOTF" = "yes"; then
13102 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13105 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13106 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 ac_check_lib_save_LIBS=$LIBS
13110 LIBS="-lotf $LIBS"
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13117 #ifdef __cplusplus
13118 extern "C"
13119 #endif
13120 char OTF_get_variation_glyphs ();
13122 main ()
13124 return OTF_get_variation_glyphs ();
13126 return 0;
13128 _ACEOF
13129 if ac_fn_c_try_link "$LINENO"; then :
13130 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13131 else
13132 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13139 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13140 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13141 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13142 else
13143 HAVE_OTF_GET_VARIATION_GLYPHS=no
13146 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13148 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13155 HAVE_M17N_FLT=no
13156 if test "${HAVE_LIBOTF}" = yes; then
13157 if test "${with_m17n_flt}" != "no"; then
13159 succeeded=no
13161 if test "$PKG_CONFIG" = "no" ; then
13162 HAVE_M17N_FLT=no
13163 else
13164 PKG_CONFIG_MIN_VERSION=0.9.0
13165 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13167 $as_echo_n "checking for m17n-flt... " >&6; }
13169 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13170 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13171 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13172 edit_cflags="
13173 s,///*,/,g
13174 s/^/ /
13175 s/ -I/ $isystem/g
13176 s/^ //
13178 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13179 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13181 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13182 succeeded=yes
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13186 M17N_FLT_CFLAGS=""
13187 M17N_FLT_LIBS=""
13188 ## If we have a custom action on failure, don't print errors, but
13189 ## do set a variable so people can do so. Do it in a subshell
13190 ## to capture any diagnostics in invoking pkg-config.
13191 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13197 else
13198 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13199 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13203 if test $succeeded = yes; then
13204 HAVE_M17N_FLT=yes
13205 else
13206 HAVE_M17N_FLT=no
13209 if test "$HAVE_M17N_FLT" = "yes"; then
13211 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13216 else
13217 HAVE_XFT=no
13218 HAVE_FREETYPE=no
13219 HAVE_LIBOTF=no
13220 HAVE_M17N_FLT=no
13223 ### End of font-backend (under X11) section.
13234 ### Use -lXpm if available, unless `--with-xpm=no'.
13235 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13236 HAVE_XPM=no
13237 LIBXPM=
13238 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13239 if test "${with_xpm}" != "no"; then
13240 SAVE_CPPFLAGS="$CPPFLAGS"
13241 SAVE_LDFLAGS="$LDFLAGS"
13242 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13243 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13244 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13245 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13247 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13248 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 ac_check_lib_save_LIBS=$LIBS
13252 LIBS="-lXpm $LIBS"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13259 #ifdef __cplusplus
13260 extern "C"
13261 #endif
13262 char XpmReadFileToImage ();
13264 main ()
13266 return XpmReadFileToImage ();
13268 return 0;
13270 _ACEOF
13271 if ac_fn_c_try_link "$LINENO"; then :
13272 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13273 else
13274 ac_cv_lib_Xpm_XpmReadFileToImage=no
13276 rm -f core conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13278 LIBS=$ac_check_lib_save_LIBS
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13281 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13282 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13283 HAVE_XPM=yes
13289 if test "${HAVE_XPM}" = "yes"; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13291 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294 #include "X11/xpm.h"
13295 #ifndef XpmReturnAllocPixels
13296 no_return_alloc_pixels
13297 #endif
13299 _ACEOF
13300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13301 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13302 HAVE_XPM=no
13303 else
13304 HAVE_XPM=yes
13306 rm -f conftest*
13309 if test "${HAVE_XPM}" = "yes"; then
13310 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312 $as_echo "yes" >&6; }
13313 else
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 CPPFLAGS="$SAVE_CPPFLAGS"
13317 LDFLAGS="$SAVE_LDFLAGS"
13322 if test "${HAVE_XPM}" = "yes"; then
13324 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13326 LIBXPM=-lXpm
13330 if test "${HAVE_X11}" = "yes"; then
13331 if test "${with_xpm}" != "no"; then
13332 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13333 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13335 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13336 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-lXpm -lX11 $LIBS"
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13347 #ifdef __cplusplus
13348 extern "C"
13349 #endif
13350 char XpmReadFileToPixmap ();
13352 main ()
13354 return XpmReadFileToPixmap ();
13356 return 0;
13358 _ACEOF
13359 if ac_fn_c_try_link "$LINENO"; then :
13360 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13361 else
13362 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13369 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13370 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13371 HAVE_XPM=yes
13377 if test "${HAVE_XPM}" = "yes"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13379 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include "X11/xpm.h"
13383 #ifndef XpmReturnAllocPixels
13384 no_return_alloc_pixels
13385 #endif
13387 _ACEOF
13388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13389 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13390 HAVE_XPM=no
13391 else
13392 HAVE_XPM=yes
13394 rm -f conftest*
13397 if test "${HAVE_XPM}" = "yes"; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13399 $as_echo "yes" >&6; }
13400 else
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13407 if test "${HAVE_XPM}" = "yes"; then
13409 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13411 LIBXPM=-lXpm
13415 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13416 ### slightly different requirements wrt image libraries (it doesn't
13417 ### use -lXpm because it loads the xpm shared library dynamically at
13418 ### run time).
13419 if test "${opsys}" = "mingw32"; then
13420 if test "${with_xpm}" != "no"; then
13421 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13422 #define FOR_MSW 1
13424 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13425 HAVE_XPM=yes
13426 else
13427 HAVE_XPM=no
13433 if test "${HAVE_XPM}" = "yes"; then
13435 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13442 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13443 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13444 HAVE_JPEG=no
13445 LIBJPEG=
13446 if test "${opsys}" = "mingw32"; then
13447 if test "${with_jpeg}" != "no"; then
13448 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13449 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13450 HAVE_JPEG=yes
13451 else
13452 HAVE_JPEG=no
13457 if test "${HAVE_JPEG}" = "yes"; then
13458 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 #include <jpeglib.h>
13463 version=JPEG_LIB_VERSION
13465 _ACEOF
13466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13467 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13468 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13470 else
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13472 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13473 HAVE_JPEG=no
13475 rm -f conftest*
13478 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13479 if test "${with_jpeg}" != "no"; then
13480 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13481 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13483 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13484 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 ac_check_lib_save_LIBS=$LIBS
13488 LIBS="-ljpeg $LIBS"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13492 /* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13495 #ifdef __cplusplus
13496 extern "C"
13497 #endif
13498 char jpeg_destroy_compress ();
13500 main ()
13502 return jpeg_destroy_compress ();
13504 return 0;
13506 _ACEOF
13507 if ac_fn_c_try_link "$LINENO"; then :
13508 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13509 else
13510 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13512 rm -f core conftest.err conftest.$ac_objext \
13513 conftest$ac_exeext conftest.$ac_ext
13514 LIBS=$ac_check_lib_save_LIBS
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13517 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13518 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13519 HAVE_JPEG=yes
13527 if test "${HAVE_JPEG}" = "yes"; then
13528 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #include <jpeglib.h>
13533 version=JPEG_LIB_VERSION
13535 _ACEOF
13536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13537 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13538 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13540 else
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13542 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13543 HAVE_JPEG=no
13545 rm -f conftest*
13548 if test "${HAVE_JPEG}" = "yes"; then
13549 LIBJPEG=-ljpeg
13554 ### Use -lpng if available, unless `--with-png=no'.
13555 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13556 HAVE_PNG=no
13557 LIBPNG=
13558 if test "${opsys}" = "mingw32"; then
13559 if test "${with_png}" != "no"; then
13560 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13561 if test "x$ac_cv_header_png_h" = x""yes; then :
13562 HAVE_PNG=yes
13563 else
13564 HAVE_PNG=no
13569 if test "${HAVE_PNG}" = "yes"; then
13571 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13574 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13575 # include <libpng/png.h>
13576 #else
13577 # include <png.h>
13578 #endif
13581 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13583 else
13585 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13590 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13591 if test "${with_png}" != "no"; then
13592 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13593 # in /usr/include/libpng.
13594 for ac_header in png.h libpng/png.h
13595 do :
13596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13597 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13598 eval as_val=\$$as_ac_Header
13599 if test "x$as_val" = x""yes; then :
13600 cat >>confdefs.h <<_ACEOF
13601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13602 _ACEOF
13603 break
13606 done
13608 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13610 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13611 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13612 $as_echo_n "(cached) " >&6
13613 else
13614 ac_check_lib_save_LIBS=$LIBS
13615 LIBS="-lpng -lz -lm $LIBS"
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13619 /* Override any GCC internal prototype to avoid an error.
13620 Use char because int might match the return type of a GCC
13621 builtin and then its argument prototype would still apply. */
13622 #ifdef __cplusplus
13623 extern "C"
13624 #endif
13625 char png_get_channels ();
13627 main ()
13629 return png_get_channels ();
13631 return 0;
13633 _ACEOF
13634 if ac_fn_c_try_link "$LINENO"; then :
13635 ac_cv_lib_png_png_get_channels=yes
13636 else
13637 ac_cv_lib_png_png_get_channels=no
13639 rm -f core conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext conftest.$ac_ext
13641 LIBS=$ac_check_lib_save_LIBS
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13644 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13645 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13646 HAVE_PNG=yes
13652 if test "${HAVE_PNG}" = "yes"; then
13654 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13656 LIBPNG="-lpng -lz -lm"
13658 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13659 # include <libpng/png.h>
13660 #else
13661 # include <png.h>
13662 #endif
13665 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13667 else
13669 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13677 HAVE_ZLIB=no
13678 LIBZ=
13679 if test "${with_zlib}" != "no"; then
13680 OLIBS=$LIBS
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13682 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13683 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13685 else
13686 ac_func_search_save_LIBS=$LIBS
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char inflateEnd ();
13698 main ()
13700 return inflateEnd ();
13702 return 0;
13704 _ACEOF
13705 for ac_lib in '' z; do
13706 if test -z "$ac_lib"; then
13707 ac_res="none required"
13708 else
13709 ac_res=-l$ac_lib
13710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13712 if ac_fn_c_try_link "$LINENO"; then :
13713 ac_cv_search_inflateEnd=$ac_res
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext
13717 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13718 break
13720 done
13721 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13723 else
13724 ac_cv_search_inflateEnd=no
13726 rm conftest.$ac_ext
13727 LIBS=$ac_func_search_save_LIBS
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13730 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13731 ac_res=$ac_cv_search_inflateEnd
13732 if test "$ac_res" != no; then :
13733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13734 HAVE_ZLIB=yes
13737 LIBS=$OLIBS
13738 case $ac_cv_search_inflateEnd in
13739 -*) LIBZ=$ac_cv_search_inflateEnd ;;
13740 esac
13742 if test "${HAVE_ZLIB}" = "yes"; then
13744 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13746 ### mingw32 doesn't use -lz, since it loads the library dynamically.
13747 if test "${opsys}" = "mingw32"; then
13748 LIBZ=
13754 ### Use -ltiff if available, unless `--with-tiff=no'.
13755 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13756 HAVE_TIFF=no
13757 LIBTIFF=
13758 if test "${opsys}" = "mingw32"; then
13759 if test "${with_tiff}" != "no"; then
13760 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13761 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13762 HAVE_TIFF=yes
13763 else
13764 HAVE_TIFF=no
13769 if test "${HAVE_TIFF}" = "yes"; then
13771 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13774 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13775 if test "${with_tiff}" != "no"; then
13776 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13777 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13778 tifflibs="-lz -lm"
13779 # At least one tiff package requires the jpeg library.
13780 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13782 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13783 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 ac_check_lib_save_LIBS=$LIBS
13787 LIBS="-ltiff $tifflibs $LIBS"
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13791 /* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply. */
13794 #ifdef __cplusplus
13795 extern "C"
13796 #endif
13797 char TIFFGetVersion ();
13799 main ()
13801 return TIFFGetVersion ();
13803 return 0;
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"; then :
13807 ac_cv_lib_tiff_TIFFGetVersion=yes
13808 else
13809 ac_cv_lib_tiff_TIFFGetVersion=no
13811 rm -f core conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13813 LIBS=$ac_check_lib_save_LIBS
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13816 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13817 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13818 HAVE_TIFF=yes
13826 if test "${HAVE_TIFF}" = "yes"; then
13828 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13830 LIBTIFF=-ltiff
13835 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13836 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13837 HAVE_GIF=no
13838 LIBGIF=
13839 if test "${opsys}" = "mingw32"; then
13840 if test "${with_gif}" != "no"; then
13841 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13842 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13843 HAVE_GIF=yes
13844 else
13845 HAVE_GIF=no
13850 if test "${HAVE_GIF}" = "yes"; then
13852 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13855 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13856 || test "${HAVE_W32}" = "yes"; then
13857 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13858 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13859 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13860 # Earlier versions can crash Emacs.
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13862 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13863 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 ac_check_lib_save_LIBS=$LIBS
13867 LIBS="-lgif $LIBS"
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13871 /* Override any GCC internal prototype to avoid an error.
13872 Use char because int might match the return type of a GCC
13873 builtin and then its argument prototype would still apply. */
13874 #ifdef __cplusplus
13875 extern "C"
13876 #endif
13877 char EGifPutExtensionLast ();
13879 main ()
13881 return EGifPutExtensionLast ();
13883 return 0;
13885 _ACEOF
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 ac_cv_lib_gif_EGifPutExtensionLast=yes
13888 else
13889 ac_cv_lib_gif_EGifPutExtensionLast=no
13891 rm -f core conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13893 LIBS=$ac_check_lib_save_LIBS
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13896 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13897 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13898 HAVE_GIF=yes
13899 else
13900 HAVE_GIF=maybe
13907 if test "$HAVE_GIF" = yes; then
13908 LIBGIF=-lgif
13909 elif test "$HAVE_GIF" = maybe; then
13910 # If gif_lib.h but no libgif, try libungif.
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13912 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13913 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13914 $as_echo_n "(cached) " >&6
13915 else
13916 ac_check_lib_save_LIBS=$LIBS
13917 LIBS="-lungif $LIBS"
13918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13921 /* Override any GCC internal prototype to avoid an error.
13922 Use char because int might match the return type of a GCC
13923 builtin and then its argument prototype would still apply. */
13924 #ifdef __cplusplus
13925 extern "C"
13926 #endif
13927 char EGifPutExtensionLast ();
13929 main ()
13931 return EGifPutExtensionLast ();
13933 return 0;
13935 _ACEOF
13936 if ac_fn_c_try_link "$LINENO"; then :
13937 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13938 else
13939 ac_cv_lib_ungif_EGifPutExtensionLast=no
13941 rm -f core conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
13943 LIBS=$ac_check_lib_save_LIBS
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13946 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13947 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13948 HAVE_GIF=yes
13949 else
13950 HAVE_GIF=no
13953 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13956 if test "${HAVE_GIF}" = "yes"; then
13958 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13964 if test "${HAVE_X11}" = "yes"; then
13965 MISSING=""
13966 WITH_NO=""
13967 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13968 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13969 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13970 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13971 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13972 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13973 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13974 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13975 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13976 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13978 if test "X${MISSING}" != X; then
13979 as_fn_error "The following required libraries were not found:
13980 $MISSING
13981 Maybe some development libraries/packages are missing?
13982 If you don't want to link with them give
13983 $WITH_NO
13984 as options to configure" "$LINENO" 5
13988 ### Use -lgpm if available, unless `--with-gpm=no'.
13989 HAVE_GPM=no
13990 LIBGPM=
13991 if test "${with_gpm}" != "no"; then
13992 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13993 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13995 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13996 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 ac_check_lib_save_LIBS=$LIBS
14000 LIBS="-lgpm $LIBS"
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14004 /* Override any GCC internal prototype to avoid an error.
14005 Use char because int might match the return type of a GCC
14006 builtin and then its argument prototype would still apply. */
14007 #ifdef __cplusplus
14008 extern "C"
14009 #endif
14010 char Gpm_Open ();
14012 main ()
14014 return Gpm_Open ();
14016 return 0;
14018 _ACEOF
14019 if ac_fn_c_try_link "$LINENO"; then :
14020 ac_cv_lib_gpm_Gpm_Open=yes
14021 else
14022 ac_cv_lib_gpm_Gpm_Open=no
14024 rm -f core conftest.err conftest.$ac_objext \
14025 conftest$ac_exeext conftest.$ac_ext
14026 LIBS=$ac_check_lib_save_LIBS
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14029 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14030 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14031 HAVE_GPM=yes
14038 if test "${HAVE_GPM}" = "yes"; then
14040 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14042 LIBGPM=-lgpm
14051 GNUSTEP_CFLAGS=
14052 ### Use NeXTstep API to implement GUI.
14053 if test "${HAVE_NS}" = "yes"; then
14055 $as_echo "#define HAVE_NS 1" >>confdefs.h
14057 if test "${NS_IMPL_COCOA}" = "yes"; then
14059 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14062 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14064 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14066 # See also .m.o rule in Makefile.in */
14067 # FIXME: are all these flags really needed? Document here why. */
14068 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14069 ## Extra CFLAGS applied to src/*.m files.
14070 GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14072 # We also have mouse menus.
14073 HAVE_MENUS=yes
14074 OTHER_FILES=ns-app
14077 if test "${HAVE_W32}" = "yes"; then
14078 HAVE_MENUS=yes
14081 ### Use session management (-lSM -lICE) if available
14082 HAVE_X_SM=no
14083 LIBXSM=
14084 if test "${HAVE_X11}" = "yes"; then
14085 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14086 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14088 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14089 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 ac_check_lib_save_LIBS=$LIBS
14093 LIBS="-lSM -lICE $LIBS"
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14097 /* Override any GCC internal prototype to avoid an error.
14098 Use char because int might match the return type of a GCC
14099 builtin and then its argument prototype would still apply. */
14100 #ifdef __cplusplus
14101 extern "C"
14102 #endif
14103 char SmcOpenConnection ();
14105 main ()
14107 return SmcOpenConnection ();
14109 return 0;
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113 ac_cv_lib_SM_SmcOpenConnection=yes
14114 else
14115 ac_cv_lib_SM_SmcOpenConnection=no
14117 rm -f core conftest.err conftest.$ac_objext \
14118 conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14122 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14123 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14124 HAVE_X_SM=yes
14131 if test "${HAVE_X_SM}" = "yes"; then
14133 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14135 LIBXSM="-lSM -lICE"
14136 case "$LIBS" in
14137 *-lSM*) ;;
14138 *) LIBS="$LIBXSM $LIBS" ;;
14139 esac
14144 ### Use XRandr (-lXrandr) if available
14145 HAVE_XRANDR=no
14146 if test "${HAVE_X11}" = "yes"; then
14147 XRANDR_REQUIRED=1.2.2
14148 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14150 succeeded=no
14152 if test "$PKG_CONFIG" = "no" ; then
14153 HAVE_XRANDR=no
14154 else
14155 PKG_CONFIG_MIN_VERSION=0.9.0
14156 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14158 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14160 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14161 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14162 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14163 edit_cflags="
14164 s,///*,/,g
14165 s/^/ /
14166 s/ -I/ $isystem/g
14167 s/^ //
14169 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14170 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14172 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14173 succeeded=yes
14174 else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 $as_echo "no" >&6; }
14177 XRANDR_CFLAGS=""
14178 XRANDR_LIBS=""
14179 ## If we have a custom action on failure, don't print errors, but
14180 ## do set a variable so people can do so. Do it in a subshell
14181 ## to capture any diagnostics in invoking pkg-config.
14182 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14188 else
14189 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14190 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14194 if test $succeeded = yes; then
14195 HAVE_XRANDR=yes
14196 else
14197 HAVE_XRANDR=no
14200 if test $HAVE_XRANDR = no; then
14201 # Test old way in case pkg-config doesn't have it (older machines).
14202 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14203 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14205 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14206 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 ac_check_lib_save_LIBS=$LIBS
14210 LIBS="-lXrandr $LIBS"
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply. */
14217 #ifdef __cplusplus
14218 extern "C"
14219 #endif
14220 char XRRGetScreenResources ();
14222 main ()
14224 return XRRGetScreenResources ();
14226 return 0;
14228 _ACEOF
14229 if ac_fn_c_try_link "$LINENO"; then :
14230 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14231 else
14232 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 LIBS=$ac_check_lib_save_LIBS
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14239 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14240 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14241 HAVE_XRANDR=yes
14247 if test $HAVE_XRANDR = yes; then
14248 XRANDR_LIBS=-lXrandr
14252 if test $HAVE_XRANDR = yes; then
14253 SAVE_CFLAGS="$CFLAGS"
14254 SAVE_LIBS="$LIBS"
14255 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14256 LIBS="$XRANDR_LIBS $LIBS"
14257 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14258 do :
14259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14260 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14261 eval as_val=\$$as_ac_var
14262 if test "x$as_val" = x""yes; then :
14263 cat >>confdefs.h <<_ACEOF
14264 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14265 _ACEOF
14268 done
14270 CFLAGS="$SAVE_CFLAGS"
14271 LIBS="$SAVE_LIBS"
14274 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14279 ### Use Xinerama (-lXinerama) if available
14280 HAVE_XINERAMA=no
14281 if test "${HAVE_X11}" = "yes"; then
14282 XINERAMA_REQUIRED=1.0.2
14283 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14285 succeeded=no
14287 if test "$PKG_CONFIG" = "no" ; then
14288 HAVE_XINERAMA=no
14289 else
14290 PKG_CONFIG_MIN_VERSION=0.9.0
14291 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14293 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14295 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14296 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14297 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14298 edit_cflags="
14299 s,///*,/,g
14300 s/^/ /
14301 s/ -I/ $isystem/g
14302 s/^ //
14304 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14305 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14307 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14308 succeeded=yes
14309 else
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311 $as_echo "no" >&6; }
14312 XINERAMA_CFLAGS=""
14313 XINERAMA_LIBS=""
14314 ## If we have a custom action on failure, don't print errors, but
14315 ## do set a variable so people can do so. Do it in a subshell
14316 ## to capture any diagnostics in invoking pkg-config.
14317 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14323 else
14324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14329 if test $succeeded = yes; then
14330 HAVE_XINERAMA=yes
14331 else
14332 HAVE_XINERAMA=no
14335 if test $HAVE_XINERAMA = no; then
14336 # Test old way in case pkg-config doesn't have it (older machines).
14337 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14338 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14340 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14341 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 ac_check_lib_save_LIBS=$LIBS
14345 LIBS="-lXinerama $LIBS"
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14349 /* Override any GCC internal prototype to avoid an error.
14350 Use char because int might match the return type of a GCC
14351 builtin and then its argument prototype would still apply. */
14352 #ifdef __cplusplus
14353 extern "C"
14354 #endif
14355 char XineramaQueryExtension ();
14357 main ()
14359 return XineramaQueryExtension ();
14361 return 0;
14363 _ACEOF
14364 if ac_fn_c_try_link "$LINENO"; then :
14365 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14366 else
14367 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14369 rm -f core conftest.err conftest.$ac_objext \
14370 conftest$ac_exeext conftest.$ac_ext
14371 LIBS=$ac_check_lib_save_LIBS
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14374 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14375 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14376 HAVE_XINERAMA=yes
14382 if test $HAVE_XINERAMA = yes; then
14383 XINERAMA_LIBS=-lXinerama
14387 if test $HAVE_XINERAMA = yes; then
14389 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14395 ### Use libxml (-lxml2) if available
14396 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14397 HAVE_LIBXML2=no
14398 if test "${with_xml2}" != "no"; then
14399 ### I'm not sure what the version number should be, so I just guessed.
14401 succeeded=no
14403 if test "$PKG_CONFIG" = "no" ; then
14404 HAVE_LIBXML2=no
14405 else
14406 PKG_CONFIG_MIN_VERSION=0.9.0
14407 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14409 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14411 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14412 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14413 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14414 edit_cflags="
14415 s,///*,/,g
14416 s/^/ /
14417 s/ -I/ $isystem/g
14418 s/^ //
14420 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14421 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14423 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14424 succeeded=yes
14425 else
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14428 LIBXML2_CFLAGS=""
14429 LIBXML2_LIBS=""
14430 ## If we have a custom action on failure, don't print errors, but
14431 ## do set a variable so people can do so. Do it in a subshell
14432 ## to capture any diagnostics in invoking pkg-config.
14433 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14439 else
14440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14445 if test $succeeded = yes; then
14446 HAVE_LIBXML2=yes
14447 else
14448 HAVE_LIBXML2=no
14451 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14452 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14453 SAVE_CPPFLAGS="$CPPFLAGS"
14454 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14455 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14456 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14457 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14459 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14460 HAVE_LIBXML2=yes
14466 CPPFLAGS="$SAVE_CPPFLAGS"
14467 if test "${HAVE_LIBXML2}" = "yes"; then
14468 LIBXML2_LIBS="-lxml2"
14469 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14472 if test "${HAVE_LIBXML2}" = "yes"; then
14473 if test "${opsys}" != "mingw32"; then
14474 LIBS="$LIBXML2_LIBS $LIBS"
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14476 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14477 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 ac_check_lib_save_LIBS=$LIBS
14481 LIBS="-lxml2 $LIBS"
14482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h. */
14485 /* Override any GCC internal prototype to avoid an error.
14486 Use char because int might match the return type of a GCC
14487 builtin and then its argument prototype would still apply. */
14488 #ifdef __cplusplus
14489 extern "C"
14490 #endif
14491 char htmlReadMemory ();
14493 main ()
14495 return htmlReadMemory ();
14497 return 0;
14499 _ACEOF
14500 if ac_fn_c_try_link "$LINENO"; then :
14501 ac_cv_lib_xml2_htmlReadMemory=yes
14502 else
14503 ac_cv_lib_xml2_htmlReadMemory=no
14505 rm -f core conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14510 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14511 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14512 HAVE_LIBXML2=yes
14513 else
14514 HAVE_LIBXML2=no
14517 else
14518 LIBXML2_LIBS=""
14520 if test "${HAVE_LIBXML2}" = "yes"; then
14522 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14524 else
14525 LIBXML2_LIBS=""
14526 LIBXML2_CFLAGS=""
14533 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14534 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14535 if test "${opsys}" = "mingw32"; then
14536 emacs_cv_netdb_declares_h_errno=yes
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14539 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14540 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14541 $as_echo_n "(cached) " >&6
14542 else
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14545 #include <netdb.h>
14547 main ()
14549 return h_errno;
14551 return 0;
14553 _ACEOF
14554 if ac_fn_c_try_link "$LINENO"; then :
14555 emacs_cv_netdb_declares_h_errno=yes
14556 else
14557 emacs_cv_netdb_declares_h_errno=no
14559 rm -f core conftest.err conftest.$ac_objext \
14560 conftest$ac_exeext conftest.$ac_ext
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14563 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14564 if test $emacs_cv_netdb_declares_h_errno = yes; then
14566 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14570 # sqrt and other floating-point functions such as fmod and frexp
14571 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14572 if test "${opsys}" != "mingw32"; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14574 $as_echo_n "checking for sqrt in -lm... " >&6; }
14575 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 ac_check_lib_save_LIBS=$LIBS
14579 LIBS="-lm $LIBS"
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14583 /* Override any GCC internal prototype to avoid an error.
14584 Use char because int might match the return type of a GCC
14585 builtin and then its argument prototype would still apply. */
14586 #ifdef __cplusplus
14587 extern "C"
14588 #endif
14589 char sqrt ();
14591 main ()
14593 return sqrt ();
14595 return 0;
14597 _ACEOF
14598 if ac_fn_c_try_link "$LINENO"; then :
14599 ac_cv_lib_m_sqrt=yes
14600 else
14601 ac_cv_lib_m_sqrt=no
14603 rm -f core conftest.err conftest.$ac_objext \
14604 conftest$ac_exeext conftest.$ac_ext
14605 LIBS=$ac_check_lib_save_LIBS
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14608 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14609 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14610 cat >>confdefs.h <<_ACEOF
14611 #define HAVE_LIBM 1
14612 _ACEOF
14614 LIBS="-lm $LIBS"
14620 # Check for mail-locking functions in a "mail" library. Probably this should
14621 # have the same check as for liblockfile below.
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14623 $as_echo_n "checking for maillock in -lmail... " >&6; }
14624 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14626 else
14627 ac_check_lib_save_LIBS=$LIBS
14628 LIBS="-lmail $LIBS"
14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14632 /* Override any GCC internal prototype to avoid an error.
14633 Use char because int might match the return type of a GCC
14634 builtin and then its argument prototype would still apply. */
14635 #ifdef __cplusplus
14636 extern "C"
14637 #endif
14638 char maillock ();
14640 main ()
14642 return maillock ();
14644 return 0;
14646 _ACEOF
14647 if ac_fn_c_try_link "$LINENO"; then :
14648 ac_cv_lib_mail_maillock=yes
14649 else
14650 ac_cv_lib_mail_maillock=no
14652 rm -f core conftest.err conftest.$ac_objext \
14653 conftest$ac_exeext conftest.$ac_ext
14654 LIBS=$ac_check_lib_save_LIBS
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14657 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14658 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14659 have_mail=yes
14660 else
14661 have_mail=no
14664 if test $have_mail = yes; then
14665 LIBS_MAIL=-lmail
14666 LIBS="$LIBS_MAIL $LIBS"
14668 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14670 else
14671 LIBS_MAIL=
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14674 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14675 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 ac_check_lib_save_LIBS=$LIBS
14679 LIBS="-llockfile $LIBS"
14680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14686 #ifdef __cplusplus
14687 extern "C"
14688 #endif
14689 char maillock ();
14691 main ()
14693 return maillock ();
14695 return 0;
14697 _ACEOF
14698 if ac_fn_c_try_link "$LINENO"; then :
14699 ac_cv_lib_lockfile_maillock=yes
14700 else
14701 ac_cv_lib_lockfile_maillock=no
14703 rm -f core conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14708 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14709 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14710 have_lockfile=yes
14711 else
14712 have_lockfile=no
14715 if test $have_lockfile = yes; then
14716 LIBS_MAIL=-llockfile
14717 LIBS="$LIBS_MAIL $LIBS"
14719 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14721 else
14722 # If we have the shared liblockfile, assume we must use it for mail
14723 # locking (e.g. Debian). If we couldn't link against liblockfile
14724 # (no liblockfile.a installed), ensure that we don't need to.
14725 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14726 set dummy liblockfile.so; ac_word=$2
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14728 $as_echo_n "checking for $ac_word... " >&6; }
14729 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14730 $as_echo_n "(cached) " >&6
14731 else
14732 if test -n "$liblockfile"; then
14733 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14734 else
14735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14736 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14737 for as_dir in $as_dummy
14739 IFS=$as_save_IFS
14740 test -z "$as_dir" && as_dir=.
14741 for ac_exec_ext in '' $ac_executable_extensions; do
14742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14743 ac_cv_prog_liblockfile="yes"
14744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14745 break 2
14747 done
14748 done
14749 IFS=$as_save_IFS
14751 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14754 liblockfile=$ac_cv_prog_liblockfile
14755 if test -n "$liblockfile"; then
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14757 $as_echo "$liblockfile" >&6; }
14758 else
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14760 $as_echo "no" >&6; }
14764 if test $ac_cv_prog_liblockfile = yes; then
14765 as_fn_error "Shared liblockfile found but can't link against it.
14766 This probably means that movemail could lose mail.
14767 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14775 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14776 ## interlock access to the mail spool. The alternative is a lock file named
14777 ## /usr/spool/mail/$USER.lock.
14778 mail_lock=no
14779 case "$opsys" in
14780 aix4-2) mail_lock="lockf" ;;
14782 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14784 ## On GNU/Linux systems, both methods are used by various mail programs.
14785 ## I assume most people are using newer mailers that have heard of flock.
14786 ## Change this if you need to.
14787 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14788 ## configure gets the right answers, and that means *NOT* using flock.
14789 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14790 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14791 ## Debian maintainer hasn't provided a clean fix for Emacs.
14792 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14793 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14794 ## correct logic. -- fx
14795 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14796 ## liblockfile is a Free Software replacement for libmail, used on
14797 ## Debian systems and elsewhere. -rfr.
14798 gnu-*)
14799 mail_lock="flock"
14800 if test $have_mail = yes || test $have_lockfile = yes; then
14801 test $ac_cv_header_maillock_h = yes && mail_lock=no
14805 mingw32)
14806 mail_lock="none-needed" ;;
14807 esac
14809 BLESSMAIL_TARGET=
14810 case "$mail_lock" in
14811 flock)
14812 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14815 lockf)
14816 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14819 none-needed) ;;
14821 *) BLESSMAIL_TARGET="need-blessmail" ;;
14822 esac
14826 for ac_func in accept4 gethostname \
14827 getrusage get_current_dir_name \
14828 lrand48 \
14829 select getpagesize setlocale \
14830 getrlimit setrlimit shutdown getaddrinfo \
14831 strsignal setitimer \
14832 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14833 gai_strerror getline getdelim sync \
14834 difftime posix_memalign \
14835 getpwent endpwent getgrent endgrent \
14836 touchlock \
14837 cfmakeraw cfsetspeed copysign __executable_start log2
14838 do :
14839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14841 eval as_val=\$$as_ac_var
14842 if test "x$as_val" = x""yes; then :
14843 cat >>confdefs.h <<_ACEOF
14844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14845 _ACEOF
14848 done
14851 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14852 ## has a broken `rint' in some library versions including math library
14853 ## version number A.09.05.
14854 ## You can fix the math library by installing patch number PHSS_4630.
14855 ## But we can fix it more reliably for Emacs by just not using rint.
14856 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14857 case $opsys in
14858 hpux*) : ;;
14859 *) for ac_func in random rint
14860 do :
14861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14863 eval as_val=\$$as_ac_var
14864 if test "x$as_val" = x""yes; then :
14865 cat >>confdefs.h <<_ACEOF
14866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14867 _ACEOF
14870 done
14872 esac
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14875 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14876 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14877 $as_echo_n "(cached) " >&6
14878 else
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14883 main ()
14885 __builtin_unwind_init ();
14887 return 0;
14889 _ACEOF
14890 if ac_fn_c_try_link "$LINENO"; then :
14891 emacs_cv_func___builtin_unwind_init=yes
14892 else
14893 emacs_cv_func___builtin_unwind_init=no
14895 rm -f core conftest.err conftest.$ac_objext \
14896 conftest$ac_exeext conftest.$ac_ext
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14899 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14900 if test $emacs_cv_func___builtin_unwind_init = yes; then
14902 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14911 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14912 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14913 $as_echo_n "(cached) " >&6
14914 else
14915 while :; do
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14918 #include <sys/types.h> /* for off_t */
14919 #include <stdio.h>
14921 main ()
14923 int (*fp) (FILE *, off_t, int) = fseeko;
14924 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14926 return 0;
14928 _ACEOF
14929 if ac_fn_c_try_link "$LINENO"; then :
14930 ac_cv_sys_largefile_source=no; break
14932 rm -f core conftest.err conftest.$ac_objext \
14933 conftest$ac_exeext conftest.$ac_ext
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #define _LARGEFILE_SOURCE 1
14937 #include <sys/types.h> /* for off_t */
14938 #include <stdio.h>
14940 main ()
14942 int (*fp) (FILE *, off_t, int) = fseeko;
14943 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14945 return 0;
14947 _ACEOF
14948 if ac_fn_c_try_link "$LINENO"; then :
14949 ac_cv_sys_largefile_source=1; break
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 ac_cv_sys_largefile_source=unknown
14954 break
14955 done
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14958 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14959 case $ac_cv_sys_largefile_source in #(
14960 no | unknown) ;;
14962 cat >>confdefs.h <<_ACEOF
14963 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14964 _ACEOF
14966 esac
14967 rm -rf conftest*
14969 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14970 # in glibc 2.1.3, but that breaks too many other things.
14971 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14972 if test $ac_cv_sys_largefile_source != unknown; then
14974 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14979 # UNIX98 PTYs.
14980 for ac_func in grantpt
14981 do :
14982 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14983 if test "x$ac_cv_func_grantpt" = x""yes; then :
14984 cat >>confdefs.h <<_ACEOF
14985 #define HAVE_GRANTPT 1
14986 _ACEOF
14989 done
14992 # PTY-related GNU extensions.
14993 for ac_func in getpt posix_openpt
14994 do :
14995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14997 eval as_val=\$$as_ac_var
14998 if test "x$as_val" = x""yes; then :
14999 cat >>confdefs.h <<_ACEOF
15000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15001 _ACEOF
15004 done
15007 # Check this now, so that we will NOT find the above functions in ncurses.
15008 # That is because we have not set up to link ncurses in lib-src.
15009 # It's better to believe a function is not available
15010 # than to expect to find it in ncurses.
15011 # Also we need tputs and friends to be able to build at all.
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15013 $as_echo_n "checking for library containing tputs... " >&6; }
15014 # Run a test program that contains a call to tputs, a call that is
15015 # never executed. This tests whether a pre-'main' dynamic linker
15016 # works with the library. It's too much trouble to actually call
15017 # tputs in the test program, due to portability hassles. When
15018 # cross-compiling, assume the test program will run if it links.
15020 if test "${opsys}" = "mingw32"; then
15021 msg='none required'
15022 else
15023 # Maybe curses should be tried earlier?
15024 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15025 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
15026 OLIBS=$LIBS
15027 if test -z "$tputs_library"; then
15028 LIBS_TERMCAP=
15029 msg='none required'
15030 else
15031 LIBS_TERMCAP=-l$tputs_library
15032 msg=$LIBS_TERMCAP
15033 LIBS="$LIBS_TERMCAP $LIBS"
15035 if test "$cross_compiling" = yes; then :
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15039 extern void tputs (const char *, int, int (*)(int));
15040 int main (int argc, char **argv)
15042 if (argc == 10000)
15043 tputs (argv[0], 0, 0);
15044 return 0;
15047 _ACEOF
15048 if ac_fn_c_try_link "$LINENO"; then :
15050 else
15051 msg=no
15053 rm -f core conftest.err conftest.$ac_objext \
15054 conftest$ac_exeext conftest.$ac_ext
15055 else
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15059 extern void tputs (const char *, int, int (*)(int));
15060 int main (int argc, char **argv)
15062 if (argc == 10000)
15063 tputs (argv[0], 0, 0);
15064 return 0;
15067 _ACEOF
15068 if ac_fn_c_try_run "$LINENO"; then :
15070 else
15071 msg=no
15073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15074 conftest.$ac_objext conftest.beam conftest.$ac_ext
15077 LIBS=$OLIBS
15078 if test "X$msg" != Xno; then
15079 break
15081 done
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15084 $as_echo "$msg" >&6; }
15085 if test "X$msg" = Xno; then
15086 as_fn_error "The required function \`tputs' was not found in any library.
15087 The following libraries were tried (in order):
15088 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15089 Please try installing whichever of these libraries is most appropriate
15090 for your system, together with its header files.
15091 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15094 ## Use termcap instead of terminfo?
15095 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15096 TERMINFO=yes
15097 ## FIXME? In the cases below where we unconditionally set
15098 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15099 ## if that was found above to have tputs.
15100 ## Should we use the gnu* logic everywhere?
15101 case "$opsys" in
15102 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15103 ## The ncurses library has been moved out of the System framework in
15104 ## Mac OS X 10.2. So if configure detects it, set the command-line
15105 ## option to use it.
15106 darwin) LIBS_TERMCAP="-lncurses" ;;
15108 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
15110 freebsd)
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15112 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15113 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15114 $as_echo_n "(cached) " >&6
15115 else
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 #include <osreldate.h>
15120 main ()
15122 #if __FreeBSD_version < 400000
15123 fail;
15124 #endif
15127 return 0;
15129 _ACEOF
15130 if ac_fn_c_try_link "$LINENO"; then :
15131 emacs_cv_freebsd_terminfo=yes
15132 else
15133 emacs_cv_freebsd_terminfo=no
15135 rm -f core conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15141 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15143 if test $emacs_cv_freebsd_terminfo = yes; then
15144 LIBS_TERMCAP="-lncurses"
15145 else
15146 TERMINFO=no
15147 LIBS_TERMCAP="-ltermcap"
15151 mingw32)
15152 TERMINFO=no
15153 LIBS_TERMCAP=
15156 netbsd)
15157 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15158 TERMINFO=no
15159 LIBS_TERMCAP="-ltermcap"
15163 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15165 ## hpux: Make sure we get select from libc rather than from libcurses
15166 ## because libcurses on HPUX 10.10 has a broken version of select.
15167 ## We used to use -lc -lcurses, but this may be cleaner.
15168 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15169 # set that way, now it uses the default). Isn't this a contradiction?
15170 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15172 esac
15174 TERMCAP_OBJ=tparam.o
15175 if test $TERMINFO = yes; then
15177 $as_echo "#define TERMINFO 1" >>confdefs.h
15179 TERMCAP_OBJ=terminfo.o
15181 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15183 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15190 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15191 # On Darwin, res_init appears not to be useful: see bug#562 and
15192 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15193 resolv=no
15195 if test $opsys != darwin; then
15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15199 #include <netinet/in.h>
15200 #include <arpa/nameser.h>
15201 #include <resolv.h>
15203 main ()
15205 return res_init();
15207 return 0;
15209 _ACEOF
15210 if ac_fn_c_try_link "$LINENO"; then :
15211 have_res_init=yes
15212 else
15213 have_res_init=no
15215 rm -f core conftest.err conftest.$ac_objext \
15216 conftest$ac_exeext conftest.$ac_ext
15217 if test "$have_res_init" = no; then
15218 OLIBS="$LIBS"
15219 LIBS="$LIBS -lresolv"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15221 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 #include <netinet/in.h>
15225 #include <arpa/nameser.h>
15226 #include <resolv.h>
15228 main ()
15230 return res_init();
15232 return 0;
15234 _ACEOF
15235 if ac_fn_c_try_link "$LINENO"; then :
15236 have_res_init=yes
15237 else
15238 have_res_init=no
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15243 $as_echo "$have_res_init" >&6; }
15244 if test "$have_res_init" = yes ; then
15245 resolv=yes
15247 LIBS="$OLIBS"
15250 if test "$have_res_init" = yes; then
15252 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15256 # Do we need the Hesiod library to provide the support routines?
15257 LIBHESIOD=
15258 if test "$with_hesiod" != no ; then
15259 # Don't set $LIBS here -- see comments above. FIXME which comments?
15260 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15261 if test "x$ac_cv_func_res_send" = x""yes; then :
15263 else
15264 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15265 if test "x$ac_cv_func___res_send" = x""yes; then :
15267 else
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15269 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15270 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15272 else
15273 ac_check_lib_save_LIBS=$LIBS
15274 LIBS="-lresolv $LIBS"
15275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15276 /* end confdefs.h. */
15278 /* Override any GCC internal prototype to avoid an error.
15279 Use char because int might match the return type of a GCC
15280 builtin and then its argument prototype would still apply. */
15281 #ifdef __cplusplus
15282 extern "C"
15283 #endif
15284 char res_send ();
15286 main ()
15288 return res_send ();
15290 return 0;
15292 _ACEOF
15293 if ac_fn_c_try_link "$LINENO"; then :
15294 ac_cv_lib_resolv_res_send=yes
15295 else
15296 ac_cv_lib_resolv_res_send=no
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15300 LIBS=$ac_check_lib_save_LIBS
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15303 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15304 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15305 resolv=yes
15306 else
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15308 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15309 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15310 $as_echo_n "(cached) " >&6
15311 else
15312 ac_check_lib_save_LIBS=$LIBS
15313 LIBS="-lresolv $LIBS"
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15317 /* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15320 #ifdef __cplusplus
15321 extern "C"
15322 #endif
15323 char __res_send ();
15325 main ()
15327 return __res_send ();
15329 return 0;
15331 _ACEOF
15332 if ac_fn_c_try_link "$LINENO"; then :
15333 ac_cv_lib_resolv___res_send=yes
15334 else
15335 ac_cv_lib_resolv___res_send=no
15337 rm -f core conftest.err conftest.$ac_objext \
15338 conftest$ac_exeext conftest.$ac_ext
15339 LIBS=$ac_check_lib_save_LIBS
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15342 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15343 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15344 resolv=yes
15353 if test "$resolv" = yes ; then
15354 RESOLVLIB=-lresolv
15355 else
15356 RESOLVLIB=
15358 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15359 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15361 else
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15363 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15364 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 ac_check_lib_save_LIBS=$LIBS
15368 LIBS="-lhesiod $RESOLVLIB $LIBS"
15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h. */
15372 /* Override any GCC internal prototype to avoid an error.
15373 Use char because int might match the return type of a GCC
15374 builtin and then its argument prototype would still apply. */
15375 #ifdef __cplusplus
15376 extern "C"
15377 #endif
15378 char hes_getmailhost ();
15380 main ()
15382 return hes_getmailhost ();
15384 return 0;
15386 _ACEOF
15387 if ac_fn_c_try_link "$LINENO"; then :
15388 ac_cv_lib_hesiod_hes_getmailhost=yes
15389 else
15390 ac_cv_lib_hesiod_hes_getmailhost=no
15392 rm -f core conftest.err conftest.$ac_objext \
15393 conftest$ac_exeext conftest.$ac_ext
15394 LIBS=$ac_check_lib_save_LIBS
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15397 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15398 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15399 hesiod=yes
15400 else
15407 if test x"$hesiod" = xyes; then
15408 LIBHESIOD=-lhesiod
15413 # Do we need libresolv (due to res_init or Hesiod)?
15414 if test "$resolv" = yes && test $opsys != darwin; then
15415 LIBRESOLV=-lresolv
15416 else
15417 LIBRESOLV=
15421 # These tell us which Kerberos-related libraries to use.
15422 COM_ERRLIB=
15423 CRYPTOLIB=
15424 KRB5LIB=
15425 DESLIB=
15426 KRB4LIB=
15428 if test "${with_kerberos}" != no; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15430 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15431 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15432 $as_echo_n "(cached) " >&6
15433 else
15434 ac_check_lib_save_LIBS=$LIBS
15435 LIBS="-lcom_err $LIBS"
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15439 /* Override any GCC internal prototype to avoid an error.
15440 Use char because int might match the return type of a GCC
15441 builtin and then its argument prototype would still apply. */
15442 #ifdef __cplusplus
15443 extern "C"
15444 #endif
15445 char com_err ();
15447 main ()
15449 return com_err ();
15451 return 0;
15453 _ACEOF
15454 if ac_fn_c_try_link "$LINENO"; then :
15455 ac_cv_lib_com_err_com_err=yes
15456 else
15457 ac_cv_lib_com_err_com_err=no
15459 rm -f core conftest.err conftest.$ac_objext \
15460 conftest$ac_exeext conftest.$ac_ext
15461 LIBS=$ac_check_lib_save_LIBS
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15464 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15465 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15466 have_com_err=yes
15467 else
15468 have_com_err=no
15471 if test $have_com_err = yes; then
15472 COM_ERRLIB=-lcom_err
15473 LIBS="$COM_ERRLIB $LIBS"
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15476 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15477 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15478 $as_echo_n "(cached) " >&6
15479 else
15480 ac_check_lib_save_LIBS=$LIBS
15481 LIBS="-lcrypto $LIBS"
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15485 /* Override any GCC internal prototype to avoid an error.
15486 Use char because int might match the return type of a GCC
15487 builtin and then its argument prototype would still apply. */
15488 #ifdef __cplusplus
15489 extern "C"
15490 #endif
15491 char mit_des_cbc_encrypt ();
15493 main ()
15495 return mit_des_cbc_encrypt ();
15497 return 0;
15499 _ACEOF
15500 if ac_fn_c_try_link "$LINENO"; then :
15501 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15502 else
15503 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15505 rm -f core conftest.err conftest.$ac_objext \
15506 conftest$ac_exeext conftest.$ac_ext
15507 LIBS=$ac_check_lib_save_LIBS
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15510 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15511 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15512 have_crypto=yes
15513 else
15514 have_crypto=no
15517 if test $have_crypto = yes; then
15518 CRYPTOLIB=-lcrypto
15519 LIBS="$CRYPTOLIB $LIBS"
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15522 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15523 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15524 $as_echo_n "(cached) " >&6
15525 else
15526 ac_check_lib_save_LIBS=$LIBS
15527 LIBS="-lk5crypto $LIBS"
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15531 /* Override any GCC internal prototype to avoid an error.
15532 Use char because int might match the return type of a GCC
15533 builtin and then its argument prototype would still apply. */
15534 #ifdef __cplusplus
15535 extern "C"
15536 #endif
15537 char mit_des_cbc_encrypt ();
15539 main ()
15541 return mit_des_cbc_encrypt ();
15543 return 0;
15545 _ACEOF
15546 if ac_fn_c_try_link "$LINENO"; then :
15547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15548 else
15549 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15551 rm -f core conftest.err conftest.$ac_objext \
15552 conftest$ac_exeext conftest.$ac_ext
15553 LIBS=$ac_check_lib_save_LIBS
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15556 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15557 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15558 have_k5crypto=yes
15559 else
15560 have_k5crypto=no
15563 if test $have_k5crypto = yes; then
15564 CRYPTOLIB=-lk5crypto
15565 LIBS="$CRYPTOLIB $LIBS"
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15568 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15569 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15570 $as_echo_n "(cached) " >&6
15571 else
15572 ac_check_lib_save_LIBS=$LIBS
15573 LIBS="-lkrb5 $LIBS"
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15577 /* Override any GCC internal prototype to avoid an error.
15578 Use char because int might match the return type of a GCC
15579 builtin and then its argument prototype would still apply. */
15580 #ifdef __cplusplus
15581 extern "C"
15582 #endif
15583 char krb5_init_context ();
15585 main ()
15587 return krb5_init_context ();
15589 return 0;
15591 _ACEOF
15592 if ac_fn_c_try_link "$LINENO"; then :
15593 ac_cv_lib_krb5_krb5_init_context=yes
15594 else
15595 ac_cv_lib_krb5_krb5_init_context=no
15597 rm -f core conftest.err conftest.$ac_objext \
15598 conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15602 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15603 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15604 have_krb5=yes
15605 else
15606 have_krb5=no
15609 if test $have_krb5=yes; then
15610 KRB5LIB=-lkrb5
15611 LIBS="$KRB5LIB $LIBS"
15613 if test "${with_kerberos5}" = no; then
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15615 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15616 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15617 $as_echo_n "(cached) " >&6
15618 else
15619 ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-ldes425 $LIBS"
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15624 /* Override any GCC internal prototype to avoid an error.
15625 Use char because int might match the return type of a GCC
15626 builtin and then its argument prototype would still apply. */
15627 #ifdef __cplusplus
15628 extern "C"
15629 #endif
15630 char des_cbc_encrypt ();
15632 main ()
15634 return des_cbc_encrypt ();
15636 return 0;
15638 _ACEOF
15639 if ac_fn_c_try_link "$LINENO"; then :
15640 ac_cv_lib_des425_des_cbc_encrypt=yes
15641 else
15642 ac_cv_lib_des425_des_cbc_encrypt=no
15644 rm -f core conftest.err conftest.$ac_objext \
15645 conftest$ac_exeext conftest.$ac_ext
15646 LIBS=$ac_check_lib_save_LIBS
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15649 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15650 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15651 have_des425=yes
15652 else
15653 have_des425=no
15656 if test $have_des425 = yes; then
15657 DESLIB=-ldes425
15658 LIBS="$DESLIB $LIBS"
15659 else
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15661 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15662 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 ac_check_lib_save_LIBS=$LIBS
15666 LIBS="-ldes $LIBS"
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15673 #ifdef __cplusplus
15674 extern "C"
15675 #endif
15676 char des_cbc_encrypt ();
15678 main ()
15680 return des_cbc_encrypt ();
15682 return 0;
15684 _ACEOF
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 ac_cv_lib_des_des_cbc_encrypt=yes
15687 else
15688 ac_cv_lib_des_des_cbc_encrypt=no
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15692 LIBS=$ac_check_lib_save_LIBS
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15695 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15696 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15697 have_des=yes
15698 else
15699 have_des=no
15702 if test $have_des = yes; then
15703 DESLIB=-ldes
15704 LIBS="$DESLIB $LIBS"
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15708 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15709 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15710 $as_echo_n "(cached) " >&6
15711 else
15712 ac_check_lib_save_LIBS=$LIBS
15713 LIBS="-lkrb4 $LIBS"
15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15717 /* Override any GCC internal prototype to avoid an error.
15718 Use char because int might match the return type of a GCC
15719 builtin and then its argument prototype would still apply. */
15720 #ifdef __cplusplus
15721 extern "C"
15722 #endif
15723 char krb_get_cred ();
15725 main ()
15727 return krb_get_cred ();
15729 return 0;
15731 _ACEOF
15732 if ac_fn_c_try_link "$LINENO"; then :
15733 ac_cv_lib_krb4_krb_get_cred=yes
15734 else
15735 ac_cv_lib_krb4_krb_get_cred=no
15737 rm -f core conftest.err conftest.$ac_objext \
15738 conftest$ac_exeext conftest.$ac_ext
15739 LIBS=$ac_check_lib_save_LIBS
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15742 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15743 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15744 have_krb4=yes
15745 else
15746 have_krb4=no
15749 if test $have_krb4 = yes; then
15750 KRB4LIB=-lkrb4
15751 LIBS="$KRB4LIB $LIBS"
15752 else
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15754 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15755 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 ac_check_lib_save_LIBS=$LIBS
15759 LIBS="-lkrb $LIBS"
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15763 /* Override any GCC internal prototype to avoid an error.
15764 Use char because int might match the return type of a GCC
15765 builtin and then its argument prototype would still apply. */
15766 #ifdef __cplusplus
15767 extern "C"
15768 #endif
15769 char krb_get_cred ();
15771 main ()
15773 return krb_get_cred ();
15775 return 0;
15777 _ACEOF
15778 if ac_fn_c_try_link "$LINENO"; then :
15779 ac_cv_lib_krb_krb_get_cred=yes
15780 else
15781 ac_cv_lib_krb_krb_get_cred=no
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15788 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15789 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15790 have_krb=yes
15791 else
15792 have_krb=no
15795 if test $have_krb = yes; then
15796 KRB4LIB=-lkrb
15797 LIBS="$KRB4LIB $LIBS"
15802 if test "${with_kerberos5}" != no; then
15803 for ac_header in krb5.h
15804 do :
15805 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15806 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15807 cat >>confdefs.h <<_ACEOF
15808 #define HAVE_KRB5_H 1
15809 _ACEOF
15810 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15812 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15814 cat >>confdefs.h <<_ACEOF
15815 #define HAVE_KRB5_ERROR_TEXT 1
15816 _ACEOF
15820 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15822 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15824 cat >>confdefs.h <<_ACEOF
15825 #define HAVE_KRB5_ERROR_E_TEXT 1
15826 _ACEOF
15833 done
15835 else
15836 for ac_header in krb.h
15837 do :
15838 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15839 if test "x$ac_cv_header_krb_h" = x""yes; then :
15840 cat >>confdefs.h <<_ACEOF
15841 #define HAVE_KRB_H 1
15842 _ACEOF
15844 else
15845 for ac_header in kerberosIV/krb.h
15846 do :
15847 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15848 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15849 cat >>confdefs.h <<_ACEOF
15850 #define HAVE_KERBEROSIV_KRB_H 1
15851 _ACEOF
15853 else
15854 for ac_header in kerberos/krb.h
15855 do :
15856 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15857 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15858 cat >>confdefs.h <<_ACEOF
15859 #define HAVE_KERBEROS_KRB_H 1
15860 _ACEOF
15864 done
15868 done
15872 done
15875 for ac_header in com_err.h
15876 do :
15877 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15878 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15879 cat >>confdefs.h <<_ACEOF
15880 #define HAVE_COM_ERR_H 1
15881 _ACEOF
15885 done
15898 for ac_func in $ac_func_list
15899 do :
15900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15902 eval as_val=\$$as_ac_var
15903 if test "x$as_val" = x""yes; then :
15904 cat >>confdefs.h <<_ACEOF
15905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15906 _ACEOF
15909 done
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15915 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15916 if test "${emacs_cv_localtime_cache+set}" = set; then :
15917 $as_echo_n "(cached) " >&6
15918 else
15919 if test x$ac_cv_func_tzset = xyes; then
15920 if test "$cross_compiling" = yes; then :
15921 # If we have tzset, assume the worst when cross-compiling.
15922 emacs_cv_localtime_cache=yes
15923 else
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 #include <time.h>
15927 char TZ_GMT0[] = "TZ=GMT0";
15928 char TZ_PST8[] = "TZ=PST8";
15929 main()
15931 time_t now = time ((time_t *) 0);
15932 int hour_GMT0, hour_unset;
15933 if (putenv (TZ_GMT0) != 0)
15934 exit (1);
15935 hour_GMT0 = localtime (&now)->tm_hour;
15936 unsetenv("TZ");
15937 hour_unset = localtime (&now)->tm_hour;
15938 if (putenv (TZ_PST8) != 0)
15939 exit (1);
15940 if (localtime (&now)->tm_hour == hour_GMT0)
15941 exit (1);
15942 unsetenv("TZ");
15943 if (localtime (&now)->tm_hour != hour_unset)
15944 exit (1);
15945 exit (0);
15947 _ACEOF
15948 if ac_fn_c_try_run "$LINENO"; then :
15949 emacs_cv_localtime_cache=no
15950 else
15951 emacs_cv_localtime_cache=yes
15953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15954 conftest.$ac_objext conftest.beam conftest.$ac_ext
15957 else
15958 # If we lack tzset, report that localtime does not cache TZ,
15959 # since we can't invalidate the cache if we don't have tzset.
15960 emacs_cv_localtime_cache=no
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15964 $as_echo "$emacs_cv_localtime_cache" >&6; }
15965 if test $emacs_cv_localtime_cache = yes; then
15967 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15971 ok_so_far=yes
15972 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15973 if test "x$ac_cv_func_socket" = x""yes; then :
15975 else
15976 ok_so_far=no
15979 if test $ok_so_far = yes; then
15980 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15981 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15983 else
15984 ok_so_far=no
15989 if test $ok_so_far = yes; then
15990 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15991 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15993 else
15994 ok_so_far=no
15999 if test $ok_so_far = yes; then
16001 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16005 case $canonical in
16006 *-solaris2.4 | *-solaris2.4.*)
16007 : ${ac_cv_func_vfork_works=no};;
16008 esac
16010 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16011 if test "x$ac_cv_type_pid_t" = x""yes; then :
16013 else
16015 cat >>confdefs.h <<_ACEOF
16016 #define pid_t int
16017 _ACEOF
16021 for ac_header in vfork.h
16022 do :
16023 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16024 if test "x$ac_cv_header_vfork_h" = x""yes; then :
16025 cat >>confdefs.h <<_ACEOF
16026 #define HAVE_VFORK_H 1
16027 _ACEOF
16031 done
16033 for ac_func in fork vfork
16034 do :
16035 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16036 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16037 eval as_val=\$$as_ac_var
16038 if test "x$as_val" = x""yes; then :
16039 cat >>confdefs.h <<_ACEOF
16040 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16041 _ACEOF
16044 done
16046 if test "x$ac_cv_func_fork" = xyes; then
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16048 $as_echo_n "checking for working fork... " >&6; }
16049 if test "${ac_cv_func_fork_works+set}" = set; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052 if test "$cross_compiling" = yes; then :
16053 ac_cv_func_fork_works=cross
16054 else
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 $ac_includes_default
16059 main ()
16062 /* By Ruediger Kuhlmann. */
16063 return fork () < 0;
16066 return 0;
16068 _ACEOF
16069 if ac_fn_c_try_run "$LINENO"; then :
16070 ac_cv_func_fork_works=yes
16071 else
16072 ac_cv_func_fork_works=no
16074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16075 conftest.$ac_objext conftest.beam conftest.$ac_ext
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16080 $as_echo "$ac_cv_func_fork_works" >&6; }
16082 else
16083 ac_cv_func_fork_works=$ac_cv_func_fork
16085 if test "x$ac_cv_func_fork_works" = xcross; then
16086 case $host in
16087 *-*-amigaos* | *-*-msdosdjgpp*)
16088 # Override, as these systems have only a dummy fork() stub
16089 ac_cv_func_fork_works=no
16092 ac_cv_func_fork_works=yes
16094 esac
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16096 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16098 ac_cv_func_vfork_works=$ac_cv_func_vfork
16099 if test "x$ac_cv_func_vfork" = xyes; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16101 $as_echo_n "checking for working vfork... " >&6; }
16102 if test "${ac_cv_func_vfork_works+set}" = set; then :
16103 $as_echo_n "(cached) " >&6
16104 else
16105 if test "$cross_compiling" = yes; then :
16106 ac_cv_func_vfork_works=cross
16107 else
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110 /* Thanks to Paul Eggert for this test. */
16111 $ac_includes_default
16112 #include <sys/wait.h>
16113 #ifdef HAVE_VFORK_H
16114 # include <vfork.h>
16115 #endif
16116 /* On some sparc systems, changes by the child to local and incoming
16117 argument registers are propagated back to the parent. The compiler
16118 is told about this with #include <vfork.h>, but some compilers
16119 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16120 static variable whose address is put into a register that is
16121 clobbered by the vfork. */
16122 static void
16123 #ifdef __cplusplus
16124 sparc_address_test (int arg)
16125 # else
16126 sparc_address_test (arg) int arg;
16127 #endif
16129 static pid_t child;
16130 if (!child) {
16131 child = vfork ();
16132 if (child < 0) {
16133 perror ("vfork");
16134 _exit(2);
16136 if (!child) {
16137 arg = getpid();
16138 write(-1, "", 0);
16139 _exit (arg);
16145 main ()
16147 pid_t parent = getpid ();
16148 pid_t child;
16150 sparc_address_test (0);
16152 child = vfork ();
16154 if (child == 0) {
16155 /* Here is another test for sparc vfork register problems. This
16156 test uses lots of local variables, at least as many local
16157 variables as main has allocated so far including compiler
16158 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16159 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16160 reuse the register of parent for one of the local variables,
16161 since it will think that parent can't possibly be used any more
16162 in this routine. Assigning to the local variable will thus
16163 munge parent in the parent process. */
16164 pid_t
16165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16167 /* Convince the compiler that p..p7 are live; otherwise, it might
16168 use the same hardware register for all 8 local variables. */
16169 if (p != p1 || p != p2 || p != p3 || p != p4
16170 || p != p5 || p != p6 || p != p7)
16171 _exit(1);
16173 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16174 from child file descriptors. If the child closes a descriptor
16175 before it execs or exits, this munges the parent's descriptor
16176 as well. Test for this by closing stdout in the child. */
16177 _exit(close(fileno(stdout)) != 0);
16178 } else {
16179 int status;
16180 struct stat st;
16182 while (wait(&status) != child)
16184 return (
16185 /* Was there some problem with vforking? */
16186 child < 0
16188 /* Did the child fail? (This shouldn't happen.) */
16189 || status
16191 /* Did the vfork/compiler bug occur? */
16192 || parent != getpid()
16194 /* Did the file descriptor bug occur? */
16195 || fstat(fileno(stdout), &st) != 0
16199 _ACEOF
16200 if ac_fn_c_try_run "$LINENO"; then :
16201 ac_cv_func_vfork_works=yes
16202 else
16203 ac_cv_func_vfork_works=no
16205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16206 conftest.$ac_objext conftest.beam conftest.$ac_ext
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16211 $as_echo "$ac_cv_func_vfork_works" >&6; }
16214 if test "x$ac_cv_func_fork_works" = xcross; then
16215 ac_cv_func_vfork_works=$ac_cv_func_vfork
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16217 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16220 if test "x$ac_cv_func_vfork_works" = xyes; then
16222 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16224 else
16226 $as_echo "#define vfork fork" >>confdefs.h
16229 if test "x$ac_cv_func_fork_works" = xyes; then
16231 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16236 for ac_func in snprintf
16237 do :
16238 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16239 if test "x$ac_cv_func_snprintf" = x""yes; then :
16240 cat >>confdefs.h <<_ACEOF
16241 #define HAVE_SNPRINTF 1
16242 _ACEOF
16245 done
16248 XGSELOBJ=
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16250 $as_echo_n "checking whether GLib is linked in... " >&6; }
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 #include <glib.h>
16256 main ()
16258 g_print ("Hello world");
16260 return 0;
16262 _ACEOF
16263 if ac_fn_c_try_link "$LINENO"; then :
16264 links_glib=yes
16265 else
16266 links_glib=no
16268 rm -f core conftest.err conftest.$ac_objext \
16269 conftest$ac_exeext conftest.$ac_ext
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16271 $as_echo "$links_glib" >&6; }
16272 if test "${links_glib}" = "yes"; then
16274 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16276 if test "$HAVE_NS" = no;then
16277 XGSELOBJ=xgselect.o
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16283 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16284 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16285 $as_echo_n "(cached) " >&6
16286 else
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 #include <langinfo.h>
16291 main ()
16293 char* cs = nl_langinfo(CODESET);
16295 return 0;
16297 _ACEOF
16298 if ac_fn_c_try_link "$LINENO"; then :
16299 emacs_cv_langinfo_codeset=yes
16300 else
16301 emacs_cv_langinfo_codeset=no
16303 rm -f core conftest.err conftest.$ac_objext \
16304 conftest$ac_exeext conftest.$ac_ext
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16308 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16309 if test $emacs_cv_langinfo_codeset = yes; then
16311 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16316 $as_echo_n "checking for mbstate_t... " >&6; }
16317 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16318 $as_echo_n "(cached) " >&6
16319 else
16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 $ac_includes_default
16323 # include <wchar.h>
16325 main ()
16327 mbstate_t x; return sizeof x;
16329 return 0;
16331 _ACEOF
16332 if ac_fn_c_try_compile "$LINENO"; then :
16333 ac_cv_type_mbstate_t=yes
16334 else
16335 ac_cv_type_mbstate_t=no
16337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16340 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16341 if test $ac_cv_type_mbstate_t = yes; then
16343 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16345 else
16347 $as_echo "#define mbstate_t int" >>confdefs.h
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16352 $as_echo_n "checking for C restricted array declarations... " >&6; }
16353 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 void fred (int x[__restrict]);
16360 main ()
16364 return 0;
16366 _ACEOF
16367 if ac_fn_c_try_compile "$LINENO"; then :
16368 emacs_cv_c_restrict_arr=yes
16369 else
16370 emacs_cv_c_restrict_arr=no
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16375 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16376 if test "$emacs_cv_c_restrict_arr" = yes; then
16378 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16383 if test "${opsys}" != "mingw32"; then
16385 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16390 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16393 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16394 if test "${opsys}" != "mingw32"; then
16396 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16401 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16407 if test "${opsys}" = "mingw32"; then
16408 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16410 else
16411 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16416 if test "${opsys}" = "mingw32"; then
16417 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16419 else
16420 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16425 $as_echo "#define subprocesses 1" >>confdefs.h
16429 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16434 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16437 if test "${opsys}" = "mingw32"; then
16439 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16443 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16447 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16449 else
16451 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16455 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16459 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16465 case $opsys in
16466 aix4-2)
16467 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16468 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16473 hpux*)
16474 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16477 esac
16480 case $opsys in
16481 irix6-5 | sol2* | unixware )
16483 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16486 esac
16488 emacs_broken_SIGIO=no
16490 case $opsys in
16491 hpux* | irix6-5 | openbsd | sol2* | unixware )
16492 emacs_broken_SIGIO=yes
16495 aix4-2)
16497 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16501 freebsd)
16503 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16506 esac
16508 case $opsys in
16509 gnu-* | sol2-10 )
16511 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16514 esac
16516 case $opsys in
16517 darwin | dragonfly | freebsd | netbsd | openbsd )
16519 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16522 esac
16524 case $opsys in
16525 netbsd | openbsd) sound_device="/dev/audio" ;;
16526 *) sound_device="/dev/dsp" ;;
16527 esac
16530 cat >>confdefs.h <<_ACEOF
16531 #define DEFAULT_SOUND_DEVICE "$sound_device"
16532 _ACEOF
16536 case $opsys in
16537 darwin | gnu-linux | gnu-kfreebsd )
16539 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16542 esac
16545 case $opsys in
16546 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16548 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16551 esac
16560 case $opsys in
16561 aix4-2 )
16562 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16564 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16566 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16570 cygwin )
16571 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16573 $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h
16575 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16577 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16581 darwin )
16582 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16584 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16586 $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h
16588 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16590 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16594 gnu | openbsd )
16595 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16599 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16600 if test "x$ac_cv_func_grantpt" = xyes; then
16602 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16604 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16606 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16608 if test "x$ac_cv_func_posix_openpt" = xyes; then
16609 $as_echo "#define PTY_OPEN do { fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY); if (fd < 0 && errno == EINVAL) fd = posix_openpt (O_RDWR | O_NOCTTY); } while (0)" >>confdefs.h
16611 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16613 elif test "x$ac_cv_func_getpt" = xyes; then
16614 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16616 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16618 else
16619 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16622 else
16623 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16628 hpux*)
16629 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16631 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16633 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16637 irix6-5 )
16638 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16640 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16642 $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h
16644 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16646 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16650 sol2* )
16651 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16655 unixware )
16656 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, PTY_NAME_SIZE, \"%s\", ptyname); }" >>confdefs.h
16659 esac
16662 case $opsys in
16663 sol2* | unixware )
16664 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16666 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16669 $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h
16672 esac
16677 case $opsys in
16678 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
16679 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16683 gnu-linux | gnu-kfreebsd )
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16686 $as_echo_n "checking for signals via characters... " >&6; }
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16690 #include <linux/version.h>
16691 #if LINUX_VERSION_CODE < 0x20400
16692 # error "Linux version too old"
16693 #endif
16696 main ()
16700 return 0;
16702 _ACEOF
16703 if ac_fn_c_try_cpp "$LINENO"; then :
16704 emacs_signals_via_chars=yes
16705 else
16706 emacs_signals_via_chars=no
16708 rm -f conftest.err conftest.$ac_ext
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16711 $as_echo "$emacs_signals_via_chars" >&6; }
16712 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16715 esac
16720 case $opsys in
16721 aix*)
16722 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16725 hpux*)
16726 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16729 irix6-5)
16730 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16733 esac
16738 case $opsys in
16739 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16742 gnu | dragonfly | freebsd | netbsd | openbsd )
16744 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16746 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16750 gnu-linux | gnu-kfreebsd )
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16754 #ifndef __ia64__
16755 # error "not ia64"
16756 #endif
16759 main ()
16763 return 0;
16765 _ACEOF
16766 if ac_fn_c_try_cpp "$LINENO"; then :
16768 $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h
16771 rm -f conftest.err conftest.$ac_ext
16774 hpux*)
16776 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16779 esac
16785 case $opsys in
16786 gnu-linux | gnu-kfreebsd )
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16790 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16791 || defined __alpha__ || defined __mips__ || defined __s390__ \
16792 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16793 || defined __ia64__ || defined __sh__
16794 /* ok */
16795 #else
16796 # error "setjmp not known to work on this arch"
16797 #endif
16800 main ()
16804 return 0;
16806 _ACEOF
16807 if ac_fn_c_try_cpp "$LINENO"; then :
16808 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16811 rm -f conftest.err conftest.$ac_ext
16813 esac
16816 if test x$GCC = xyes; then
16817 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16819 else
16820 case $opsys in
16821 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
16822 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16825 esac
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16828 $as_echo_n "checking for _setjmp... " >&6; }
16829 if test "${emacs_cv_func__setjmp+set}" = set; then :
16830 $as_echo_n "(cached) " >&6
16831 else
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 #include <setjmp.h>
16835 #ifdef __MINGW32__
16836 # define _longjmp longjmp
16837 #endif
16840 main ()
16842 jmp_buf j;
16843 if (! _setjmp (j))
16844 _longjmp (j, 1);
16846 return 0;
16848 _ACEOF
16849 if ac_fn_c_try_link "$LINENO"; then :
16850 emacs_cv_func__setjmp=yes
16851 else
16852 emacs_cv_func__setjmp=no
16854 rm -f core conftest.err conftest.$ac_objext \
16855 conftest$ac_exeext conftest.$ac_ext
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16858 $as_echo "$emacs_cv_func__setjmp" >&6; }
16859 if test $emacs_cv_func__setjmp = yes; then
16861 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16863 else
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16865 $as_echo_n "checking for sigsetjmp... " >&6; }
16866 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16867 $as_echo_n "(cached) " >&6
16868 else
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16871 #include <setjmp.h>
16874 main ()
16876 sigjmp_buf j;
16877 if (! sigsetjmp (j, 1))
16878 siglongjmp (j, 1);
16880 return 0;
16882 _ACEOF
16883 if ac_fn_c_try_link "$LINENO"; then :
16884 emacs_cv_func_sigsetjmp=yes
16885 else
16886 emacs_cv_func_sigsetjmp=no
16888 rm -f core conftest.err conftest.$ac_objext \
16889 conftest$ac_exeext conftest.$ac_ext
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16892 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16893 if test $emacs_cv_func_sigsetjmp = yes; then
16895 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16900 case $opsys in
16901 sol2* | unixware )
16903 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16906 esac
16909 case $opsys in
16910 hpux* | sol2* )
16912 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16915 esac
16923 case $opsys in
16924 aix4-2)
16925 $as_echo "#define USG /**/" >>confdefs.h
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16930 #ifndef _AIX
16931 # error "_AIX not defined"
16932 #endif
16935 main ()
16939 return 0;
16941 _ACEOF
16942 if ac_fn_c_try_cpp "$LINENO"; then :
16944 else
16946 $as_echo "#define _AIX /**/" >>confdefs.h
16949 rm -f conftest.err conftest.$ac_ext
16952 cygwin)
16954 $as_echo "#define CYGWIN 1" >>confdefs.h
16958 darwin)
16960 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16964 gnu-linux | gnu-kfreebsd )
16965 $as_echo "#define USG /**/" >>confdefs.h
16968 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16972 hpux*)
16973 $as_echo "#define USG /**/" >>confdefs.h
16976 $as_echo "#define HPUX /**/" >>confdefs.h
16980 irix6-5)
16981 $as_echo "#define USG /**/" >>confdefs.h
16983 $as_echo "#define USG5_4 /**/" >>confdefs.h
16986 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16990 mingw32)
16991 $as_echo "#define DOS_NT /**/" >>confdefs.h
16994 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16996 if test "x$ac_enable_checking" != "x" ; then
16998 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17003 sol2*)
17004 $as_echo "#define USG /**/" >>confdefs.h
17006 $as_echo "#define USG5_4 /**/" >>confdefs.h
17009 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17013 unixware)
17014 $as_echo "#define USG /**/" >>confdefs.h
17016 $as_echo "#define USG5_4 /**/" >>confdefs.h
17019 esac
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17022 $as_echo_n "checking for usable FIONREAD... " >&6; }
17023 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17024 $as_echo_n "(cached) " >&6
17025 else
17026 case $opsys in
17027 aix4-2)
17028 emacs_cv_usable_FIONREAD=no
17031 mingw32)
17032 emacs_cv_usable_FIONREAD=yes
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17038 #include <sys/types.h>
17039 #include <sys/ioctl.h>
17040 #ifdef USG5_4
17041 # include <sys/filio.h>
17042 #endif
17045 main ()
17047 int foo = ioctl (0, FIONREAD, &foo);
17049 return 0;
17051 _ACEOF
17052 if ac_fn_c_try_compile "$LINENO"; then :
17053 emacs_cv_usable_FIONREAD=yes
17054 else
17055 emacs_cv_usable_FIONREAD=no
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 esac
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17062 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17063 if test $emacs_cv_usable_FIONREAD = yes; then
17065 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17068 if test $emacs_broken_SIGIO = no; then
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17070 $as_echo_n "checking for usable SIGIO... " >&6; }
17071 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17072 $as_echo_n "(cached) " >&6
17073 else
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 #include <fcntl.h>
17077 #include <signal.h>
17080 main ()
17082 int foo = SIGIO | F_SETFL | FASYNC;
17084 return 0;
17086 _ACEOF
17087 if ac_fn_c_try_compile "$LINENO"; then :
17088 emacs_cv_usable_SIGIO=yes
17089 else
17090 emacs_cv_usable_SIGIO=no
17092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17095 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17096 if test $emacs_cv_usable_SIGIO = yes; then
17098 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17105 case $opsys in
17106 cygwin)
17108 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17112 hpux11)
17114 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17118 irix6-5)
17120 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17124 sol2-10)
17126 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17129 esac
17131 # Set up the CFLAGS for real compilation, so we can substitute it.
17132 CFLAGS="$REAL_CFLAGS"
17133 CPPFLAGS="$REAL_CPPFLAGS"
17135 ## Hack to detect a buggy GCC version.
17136 if test "x$GCC" = xyes \
17137 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17138 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17139 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17140 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17143 version=$PACKAGE_VERSION
17145 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17147 cat >>confdefs.h <<_ACEOF
17148 #define COPYRIGHT "$copyright"
17149 _ACEOF
17153 ### Specify what sort of things we'll be editing into Makefile and config.h.
17154 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17157 ## Unused?
17180 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17181 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17182 ## end of LIBX_BASE, but nothing ever set it.
17187 ## Used in lwlib/Makefile.in.
17196 if test -n "${term_header}"; then
17198 cat >>confdefs.h <<_ACEOF
17199 #define TERM_HEADER "${term_header}"
17200 _ACEOF
17205 cat >>confdefs.h <<_ACEOF
17206 #define EMACS_CONFIGURATION "${canonical}"
17207 _ACEOF
17210 cat >>confdefs.h <<_ACEOF
17211 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17212 _ACEOF
17216 case $opsys in
17217 mingw32)
17218 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17221 esac
17223 XMENU_OBJ=
17224 XOBJ=
17225 FONT_OBJ=
17226 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17228 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17230 XMENU_OBJ=xmenu.o
17231 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17232 FONT_OBJ=xfont.o
17233 if test "$HAVE_XFT" = "yes"; then
17234 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17235 elif test "$HAVE_FREETYPE" = "yes"; then
17236 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17244 WIDGET_OBJ=
17245 MOTIF_LIBW=
17246 if test "${USE_X_TOOLKIT}" != "none" ; then
17247 WIDGET_OBJ=widget.o
17249 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17251 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17253 $as_echo "#define USE_LUCID 1" >>confdefs.h
17255 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17257 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17259 MOTIF_LIBW=-lXm
17260 case "$opsys" in
17261 gnu-linux)
17262 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17263 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17266 unixware)
17267 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17268 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17269 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17272 aix4-2)
17273 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17274 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17276 esac
17277 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17282 TOOLKIT_LIBW=
17283 case "$USE_X_TOOLKIT" in
17284 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17285 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17286 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17287 esac
17290 if test "${opsys}" != "mingw32"; then
17291 if test "$USE_X_TOOLKIT" = "none"; then
17292 LIBXT_OTHER="\$(LIBXSM)"
17293 OLDXMENU_TARGET="really-oldXMenu"
17294 else
17295 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17296 OLDXMENU_TARGET="really-lwlib"
17301 ## The X Menu stuff is present in the X10 distribution, but missing
17302 ## from X11. If we have X10, just use the installed library;
17303 ## otherwise, use our own copy.
17304 if test "${HAVE_X11}" = "yes" ; then
17306 $as_echo "#define HAVE_X11 1" >>confdefs.h
17309 if test "$USE_X_TOOLKIT" = "none"; then
17310 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17311 else
17312 OLDXMENU="\${lwlibdir}/liblw.a"
17314 LIBXMENU="\$(OLDXMENU)"
17315 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17316 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17317 else
17318 ## For a syntactically valid Makefile; not actually used for anything.
17319 ## See comments in src/Makefile.in.
17320 OLDXMENU=nothing
17321 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17322 if test "${HAVE_X_WINDOWS}" = "yes"; then
17323 LIBXMENU="-lXMenu"
17324 else
17325 LIBXMENU=
17327 LIBX_OTHER=
17328 OLDXMENU_DEPS=
17331 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17332 OLDXMENU_TARGET=
17333 OLDXMENU=nothing
17334 LIBXMENU=
17335 OLDXMENU_DEPS=
17344 if test "${HAVE_MENUS}" = "yes" ; then
17346 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17350 if test "${GNU_MALLOC}" = "yes" ; then
17352 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17356 RALLOC_OBJ=
17357 if test "${REL_ALLOC}" = "yes" ; then
17359 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17362 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17366 if test "$opsys" = "cygwin"; then
17367 CYGWIN_OBJ="sheap.o cygw32.o"
17368 ## Cygwin differs because of its unexec().
17369 PRE_ALLOC_OBJ=
17370 POST_ALLOC_OBJ=lastfile.o
17371 elif test "$opsys" = "mingw32"; then
17372 CYGWIN_OBJ=
17373 PRE_ALLOC_OBJ=
17374 POST_ALLOC_OBJ=lastfile.o
17375 else
17376 CYGWIN_OBJ=
17377 PRE_ALLOC_OBJ=lastfile.o
17378 POST_ALLOC_OBJ=
17384 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17385 # it temporarily reverts them to their pre-pkg-config values,
17386 # because gnulib needs to work with both src (which uses the
17387 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17388 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17389 # and it therefore needs to run in an environment where LIBS does not
17390 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17391 # for some package unrelated to lib-src.
17392 SAVE_CFLAGS=$CFLAGS
17393 SAVE_LIBS=$LIBS
17394 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17395 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17407 LIBC_FATAL_STDERR_=1
17408 export LIBC_FATAL_STDERR_
17410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17411 # for constant arguments. Useless!
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17413 $as_echo_n "checking for working alloca.h... " >&6; }
17414 if test "${ac_cv_working_alloca_h+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17416 else
17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418 /* end confdefs.h. */
17419 #include <alloca.h>
17421 main ()
17423 char *p = (char *) alloca (2 * sizeof (int));
17424 if (p) return 0;
17426 return 0;
17428 _ACEOF
17429 if ac_fn_c_try_link "$LINENO"; then :
17430 ac_cv_working_alloca_h=yes
17431 else
17432 ac_cv_working_alloca_h=no
17434 rm -f core conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17438 $as_echo "$ac_cv_working_alloca_h" >&6; }
17439 if test $ac_cv_working_alloca_h = yes; then
17441 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17446 $as_echo_n "checking for alloca... " >&6; }
17447 if test "${ac_cv_func_alloca_works+set}" = set; then :
17448 $as_echo_n "(cached) " >&6
17449 else
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 #ifdef __GNUC__
17453 # define alloca __builtin_alloca
17454 #else
17455 # ifdef _MSC_VER
17456 # include <malloc.h>
17457 # define alloca _alloca
17458 # else
17459 # ifdef HAVE_ALLOCA_H
17460 # include <alloca.h>
17461 # else
17462 # ifdef _AIX
17463 #pragma alloca
17464 # else
17465 # ifndef alloca /* predefined by HP cc +Olibcalls */
17466 char *alloca ();
17467 # endif
17468 # endif
17469 # endif
17470 # endif
17471 #endif
17474 main ()
17476 char *p = (char *) alloca (1);
17477 if (p) return 0;
17479 return 0;
17481 _ACEOF
17482 if ac_fn_c_try_link "$LINENO"; then :
17483 ac_cv_func_alloca_works=yes
17484 else
17485 ac_cv_func_alloca_works=no
17487 rm -f core conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17491 $as_echo "$ac_cv_func_alloca_works" >&6; }
17493 if test $ac_cv_func_alloca_works = yes; then
17495 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17497 else
17498 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17499 # that cause trouble. Some versions do not even contain alloca or
17500 # contain a buggy version. If you still want to use their alloca,
17501 # use ar to extract alloca.o from them instead of compiling alloca.c.
17507 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17509 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17513 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17514 if test "${ac_cv_os_cray+set}" = set; then :
17515 $as_echo_n "(cached) " >&6
17516 else
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 #if defined CRAY && ! defined CRAY2
17520 webecray
17521 #else
17522 wenotbecray
17523 #endif
17525 _ACEOF
17526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17527 $EGREP "webecray" >/dev/null 2>&1; then :
17528 ac_cv_os_cray=yes
17529 else
17530 ac_cv_os_cray=no
17532 rm -f conftest*
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17536 $as_echo "$ac_cv_os_cray" >&6; }
17537 if test $ac_cv_os_cray = yes; then
17538 for ac_func in _getb67 GETB67 getb67; do
17539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17541 eval as_val=\$$as_ac_var
17542 if test "x$as_val" = x""yes; then :
17544 cat >>confdefs.h <<_ACEOF
17545 #define CRAY_STACKSEG_END $ac_func
17546 _ACEOF
17548 break
17551 done
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17555 $as_echo_n "checking stack direction for C alloca... " >&6; }
17556 if test "${ac_cv_c_stack_direction+set}" = set; then :
17557 $as_echo_n "(cached) " >&6
17558 else
17559 if test "$cross_compiling" = yes; then :
17560 ac_cv_c_stack_direction=0
17561 else
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h. */
17564 $ac_includes_default
17566 find_stack_direction (int *addr, int depth)
17568 int dir, dummy = 0;
17569 if (! addr)
17570 addr = &dummy;
17571 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17572 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17573 return dir + dummy;
17577 main (int argc, char **argv)
17579 return find_stack_direction (0, argc + !argv + 20) < 0;
17581 _ACEOF
17582 if ac_fn_c_try_run "$LINENO"; then :
17583 ac_cv_c_stack_direction=1
17584 else
17585 ac_cv_c_stack_direction=-1
17587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17588 conftest.$ac_objext conftest.beam conftest.$ac_ext
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17593 $as_echo "$ac_cv_c_stack_direction" >&6; }
17594 cat >>confdefs.h <<_ACEOF
17595 #define STACK_DIRECTION $ac_cv_c_stack_direction
17596 _ACEOF
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17605 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17606 if test "${ac_cv_c_bigendian+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17609 ac_cv_c_bigendian=unknown
17610 # See if we're dealing with a universal compiler.
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #ifndef __APPLE_CC__
17614 not a universal capable compiler
17615 #endif
17616 typedef int dummy;
17618 _ACEOF
17619 if ac_fn_c_try_compile "$LINENO"; then :
17621 # Check for potential -arch flags. It is not universal unless
17622 # there are at least two -arch flags with different values.
17623 ac_arch=
17624 ac_prev=
17625 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17626 if test -n "$ac_prev"; then
17627 case $ac_word in
17628 i?86 | x86_64 | ppc | ppc64)
17629 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17630 ac_arch=$ac_word
17631 else
17632 ac_cv_c_bigendian=universal
17633 break
17636 esac
17637 ac_prev=
17638 elif test "x$ac_word" = "x-arch"; then
17639 ac_prev=arch
17641 done
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644 if test $ac_cv_c_bigendian = unknown; then
17645 # See if sys/param.h defines the BYTE_ORDER macro.
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648 #include <sys/types.h>
17649 #include <sys/param.h>
17652 main ()
17654 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17655 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17656 && LITTLE_ENDIAN)
17657 bogus endian macros
17658 #endif
17661 return 0;
17663 _ACEOF
17664 if ac_fn_c_try_compile "$LINENO"; then :
17665 # It does; now see whether it defined to BIG_ENDIAN or not.
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17668 #include <sys/types.h>
17669 #include <sys/param.h>
17672 main ()
17674 #if BYTE_ORDER != BIG_ENDIAN
17675 not big endian
17676 #endif
17679 return 0;
17681 _ACEOF
17682 if ac_fn_c_try_compile "$LINENO"; then :
17683 ac_cv_c_bigendian=yes
17684 else
17685 ac_cv_c_bigendian=no
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 if test $ac_cv_c_bigendian = unknown; then
17692 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17695 #include <limits.h>
17698 main ()
17700 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17701 bogus endian macros
17702 #endif
17705 return 0;
17707 _ACEOF
17708 if ac_fn_c_try_compile "$LINENO"; then :
17709 # It does; now see whether it defined to _BIG_ENDIAN or not.
17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h. */
17712 #include <limits.h>
17715 main ()
17717 #ifndef _BIG_ENDIAN
17718 not big endian
17719 #endif
17722 return 0;
17724 _ACEOF
17725 if ac_fn_c_try_compile "$LINENO"; then :
17726 ac_cv_c_bigendian=yes
17727 else
17728 ac_cv_c_bigendian=no
17730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734 if test $ac_cv_c_bigendian = unknown; then
17735 # Compile a test program.
17736 if test "$cross_compiling" = yes; then :
17737 # Try to guess by grepping values from an object file.
17738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740 short int ascii_mm[] =
17741 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17742 short int ascii_ii[] =
17743 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17744 int use_ascii (int i) {
17745 return ascii_mm[i] + ascii_ii[i];
17747 short int ebcdic_ii[] =
17748 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17749 short int ebcdic_mm[] =
17750 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17751 int use_ebcdic (int i) {
17752 return ebcdic_mm[i] + ebcdic_ii[i];
17754 extern int foo;
17757 main ()
17759 return use_ascii (foo) == use_ebcdic (foo);
17761 return 0;
17763 _ACEOF
17764 if ac_fn_c_try_compile "$LINENO"; then :
17765 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17766 ac_cv_c_bigendian=yes
17768 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17769 if test "$ac_cv_c_bigendian" = unknown; then
17770 ac_cv_c_bigendian=no
17771 else
17772 # finding both strings is unlikely to happen, but who knows?
17773 ac_cv_c_bigendian=unknown
17777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778 else
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17781 $ac_includes_default
17783 main ()
17786 /* Are we little or big endian? From Harbison&Steele. */
17787 union
17789 long int l;
17790 char c[sizeof (long int)];
17791 } u;
17792 u.l = 1;
17793 return u.c[sizeof (long int) - 1] == 1;
17796 return 0;
17798 _ACEOF
17799 if ac_fn_c_try_run "$LINENO"; then :
17800 ac_cv_c_bigendian=no
17801 else
17802 ac_cv_c_bigendian=yes
17804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17805 conftest.$ac_objext conftest.beam conftest.$ac_ext
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17811 $as_echo "$ac_cv_c_bigendian" >&6; }
17812 case $ac_cv_c_bigendian in #(
17813 yes)
17814 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17815 ;; #(
17817 ;; #(
17818 universal)
17820 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17822 ;; #(
17824 as_fn_error "unknown endianness
17825 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17826 esac
17830 GNULIB_CHDIR=0;
17831 GNULIB_CHOWN=0;
17832 GNULIB_CLOSE=0;
17833 GNULIB_DUP=0;
17834 GNULIB_DUP2=0;
17835 GNULIB_DUP3=0;
17836 GNULIB_ENVIRON=0;
17837 GNULIB_EUIDACCESS=0;
17838 GNULIB_FACCESSAT=0;
17839 GNULIB_FCHDIR=0;
17840 GNULIB_FCHOWNAT=0;
17841 GNULIB_FDATASYNC=0;
17842 GNULIB_FSYNC=0;
17843 GNULIB_FTRUNCATE=0;
17844 GNULIB_GETCWD=0;
17845 GNULIB_GETDOMAINNAME=0;
17846 GNULIB_GETDTABLESIZE=0;
17847 GNULIB_GETGROUPS=0;
17848 GNULIB_GETHOSTNAME=0;
17849 GNULIB_GETLOGIN=0;
17850 GNULIB_GETLOGIN_R=0;
17851 GNULIB_GETPAGESIZE=0;
17852 GNULIB_GETUSERSHELL=0;
17853 GNULIB_GROUP_MEMBER=0;
17854 GNULIB_ISATTY=0;
17855 GNULIB_LCHOWN=0;
17856 GNULIB_LINK=0;
17857 GNULIB_LINKAT=0;
17858 GNULIB_LSEEK=0;
17859 GNULIB_PIPE=0;
17860 GNULIB_PIPE2=0;
17861 GNULIB_PREAD=0;
17862 GNULIB_PWRITE=0;
17863 GNULIB_READ=0;
17864 GNULIB_READLINK=0;
17865 GNULIB_READLINKAT=0;
17866 GNULIB_RMDIR=0;
17867 GNULIB_SETHOSTNAME=0;
17868 GNULIB_SLEEP=0;
17869 GNULIB_SYMLINK=0;
17870 GNULIB_SYMLINKAT=0;
17871 GNULIB_TTYNAME_R=0;
17872 GNULIB_UNISTD_H_NONBLOCKING=0;
17873 GNULIB_UNISTD_H_SIGPIPE=0;
17874 GNULIB_UNLINK=0;
17875 GNULIB_UNLINKAT=0;
17876 GNULIB_USLEEP=0;
17877 GNULIB_WRITE=0;
17878 HAVE_CHOWN=1;
17879 HAVE_DUP2=1;
17880 HAVE_DUP3=1;
17881 HAVE_EUIDACCESS=1;
17882 HAVE_FACCESSAT=1;
17883 HAVE_FCHDIR=1;
17884 HAVE_FCHOWNAT=1;
17885 HAVE_FDATASYNC=1;
17886 HAVE_FSYNC=1;
17887 HAVE_FTRUNCATE=1;
17888 HAVE_GETDTABLESIZE=1;
17889 HAVE_GETGROUPS=1;
17890 HAVE_GETHOSTNAME=1;
17891 HAVE_GETLOGIN=1;
17892 HAVE_GETPAGESIZE=1;
17893 HAVE_GROUP_MEMBER=1;
17894 HAVE_LCHOWN=1;
17895 HAVE_LINK=1;
17896 HAVE_LINKAT=1;
17897 HAVE_PIPE=1;
17898 HAVE_PIPE2=1;
17899 HAVE_PREAD=1;
17900 HAVE_PWRITE=1;
17901 HAVE_READLINK=1;
17902 HAVE_READLINKAT=1;
17903 HAVE_SETHOSTNAME=1;
17904 HAVE_SLEEP=1;
17905 HAVE_SYMLINK=1;
17906 HAVE_SYMLINKAT=1;
17907 HAVE_UNLINKAT=1;
17908 HAVE_USLEEP=1;
17909 HAVE_DECL_ENVIRON=1;
17910 HAVE_DECL_FCHDIR=1;
17911 HAVE_DECL_FDATASYNC=1;
17912 HAVE_DECL_GETDOMAINNAME=1;
17913 HAVE_DECL_GETLOGIN_R=1;
17914 HAVE_DECL_GETPAGESIZE=1;
17915 HAVE_DECL_GETUSERSHELL=1;
17916 HAVE_DECL_SETHOSTNAME=1;
17917 HAVE_DECL_TTYNAME_R=1;
17918 HAVE_OS_H=0;
17919 HAVE_SYS_PARAM_H=0;
17920 REPLACE_CHOWN=0;
17921 REPLACE_CLOSE=0;
17922 REPLACE_DUP=0;
17923 REPLACE_DUP2=0;
17924 REPLACE_FCHOWNAT=0;
17925 REPLACE_FTRUNCATE=0;
17926 REPLACE_GETCWD=0;
17927 REPLACE_GETDOMAINNAME=0;
17928 REPLACE_GETLOGIN_R=0;
17929 REPLACE_GETGROUPS=0;
17930 REPLACE_GETPAGESIZE=0;
17931 REPLACE_ISATTY=0;
17932 REPLACE_LCHOWN=0;
17933 REPLACE_LINK=0;
17934 REPLACE_LINKAT=0;
17935 REPLACE_LSEEK=0;
17936 REPLACE_PREAD=0;
17937 REPLACE_PWRITE=0;
17938 REPLACE_READ=0;
17939 REPLACE_READLINK=0;
17940 REPLACE_RMDIR=0;
17941 REPLACE_SLEEP=0;
17942 REPLACE_SYMLINK=0;
17943 REPLACE_TTYNAME_R=0;
17944 REPLACE_UNLINK=0;
17945 REPLACE_UNLINKAT=0;
17946 REPLACE_USLEEP=0;
17947 REPLACE_WRITE=0;
17948 UNISTD_H_HAVE_WINSOCK2_H=0;
17949 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17953 GNULIB_OPENDIR=0;
17954 GNULIB_READDIR=0;
17955 GNULIB_REWINDDIR=0;
17956 GNULIB_CLOSEDIR=0;
17957 GNULIB_DIRFD=0;
17958 GNULIB_FDOPENDIR=0;
17959 GNULIB_SCANDIR=0;
17960 GNULIB_ALPHASORT=0;
17961 HAVE_OPENDIR=1;
17962 HAVE_READDIR=1;
17963 HAVE_REWINDDIR=1;
17964 HAVE_CLOSEDIR=1;
17965 HAVE_DECL_DIRFD=1;
17966 HAVE_DECL_FDOPENDIR=1;
17967 HAVE_FDOPENDIR=1;
17968 HAVE_SCANDIR=1;
17969 HAVE_ALPHASORT=1;
17970 REPLACE_OPENDIR=0;
17971 REPLACE_CLOSEDIR=0;
17972 REPLACE_DIRFD=0;
17973 REPLACE_FDOPENDIR=0;
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17978 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17979 if test "${gl_cv_have_include_next+set}" = set; then :
17980 $as_echo_n "(cached) " >&6
17981 else
17982 rm -rf conftestd1a conftestd1b conftestd2
17983 mkdir conftestd1a conftestd1b conftestd2
17984 cat <<EOF > conftestd1a/conftest.h
17985 #define DEFINED_IN_CONFTESTD1
17986 #include_next <conftest.h>
17987 #ifdef DEFINED_IN_CONFTESTD2
17988 int foo;
17989 #else
17990 #error "include_next doesn't work"
17991 #endif
17993 cat <<EOF > conftestd1b/conftest.h
17994 #define DEFINED_IN_CONFTESTD1
17995 #include <stdio.h>
17996 #include_next <conftest.h>
17997 #ifdef DEFINED_IN_CONFTESTD2
17998 int foo;
17999 #else
18000 #error "include_next doesn't work"
18001 #endif
18003 cat <<EOF > conftestd2/conftest.h
18004 #ifndef DEFINED_IN_CONFTESTD1
18005 #error "include_next test doesn't work"
18006 #endif
18007 #define DEFINED_IN_CONFTESTD2
18009 gl_save_CPPFLAGS="$CPPFLAGS"
18010 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013 #include <conftest.h>
18014 _ACEOF
18015 if ac_fn_c_try_compile "$LINENO"; then :
18016 gl_cv_have_include_next=yes
18017 else
18018 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h. */
18021 #include <conftest.h>
18022 _ACEOF
18023 if ac_fn_c_try_compile "$LINENO"; then :
18024 gl_cv_have_include_next=buggy
18025 else
18026 gl_cv_have_include_next=no
18028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032 CPPFLAGS="$gl_save_CPPFLAGS"
18033 rm -rf conftestd1a conftestd1b conftestd2
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18037 $as_echo "$gl_cv_have_include_next" >&6; }
18038 PRAGMA_SYSTEM_HEADER=
18039 if test $gl_cv_have_include_next = yes; then
18040 INCLUDE_NEXT=include_next
18041 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18042 if test -n "$GCC"; then
18043 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18045 else
18046 if test $gl_cv_have_include_next = buggy; then
18047 INCLUDE_NEXT=include
18048 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18049 else
18050 INCLUDE_NEXT=include
18051 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18058 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18059 if test "${gl_cv_pragma_columns+set}" = set; then :
18060 $as_echo_n "(cached) " >&6
18061 else
18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063 /* end confdefs.h. */
18065 #ifdef __TANDEM
18066 choke me
18067 #endif
18069 _ACEOF
18070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18071 $EGREP "choke me" >/dev/null 2>&1; then :
18072 gl_cv_pragma_columns=yes
18073 else
18074 gl_cv_pragma_columns=no
18076 rm -f conftest*
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18081 $as_echo "$gl_cv_pragma_columns" >&6; }
18082 if test $gl_cv_pragma_columns = yes; then
18083 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18084 else
18085 PRAGMA_COLUMNS=
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18093 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18094 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18095 $as_echo_n "(cached) " >&6
18096 else
18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098 /* end confdefs.h. */
18099 /* On HP-UX before 11.23, strtold returns a struct instead of
18100 long double. Reject implementations like that, by requiring
18101 compatibility with the C99 prototype. */
18102 #include <stdlib.h>
18103 static long double (*p) (char const *, char **) = strtold;
18104 static long double
18105 test (char const *nptr, char **endptr)
18107 long double r;
18108 r = strtold (nptr, endptr);
18109 return r;
18112 main ()
18114 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18116 return 0;
18118 _ACEOF
18119 if ac_fn_c_try_link "$LINENO"; then :
18120 gl_cv_func_c99_strtold=yes
18121 else
18122 gl_cv_func_c99_strtold=no
18124 rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18128 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18129 if test $gl_cv_func_c99_strtold = yes; then
18131 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18143 $as_echo_n "checking if environ is properly declared... " >&6; }
18144 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18145 $as_echo_n "(cached) " >&6
18146 else
18148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149 /* end confdefs.h. */
18150 #if HAVE_UNISTD_H
18151 #include <unistd.h>
18152 #endif
18153 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18154 #include <stdlib.h>
18156 extern struct { int foo; } environ;
18158 main ()
18160 environ.foo = 1;
18162 return 0;
18164 _ACEOF
18165 if ac_fn_c_try_compile "$LINENO"; then :
18166 gt_cv_var_environ_declaration=no
18167 else
18168 gt_cv_var_environ_declaration=yes
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18174 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18175 if test $gt_cv_var_environ_declaration = yes; then
18177 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18182 if test $gt_cv_var_environ_declaration != yes; then
18183 HAVE_DECL_ENVIRON=0
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18189 $as_echo_n "checking for complete errno.h... " >&6; }
18190 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18191 $as_echo_n "(cached) " >&6
18192 else
18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h. */
18197 #include <errno.h>
18198 #if !defined ETXTBSY
18199 booboo
18200 #endif
18201 #if !defined ENOMSG
18202 booboo
18203 #endif
18204 #if !defined EIDRM
18205 booboo
18206 #endif
18207 #if !defined ENOLINK
18208 booboo
18209 #endif
18210 #if !defined EPROTO
18211 booboo
18212 #endif
18213 #if !defined EMULTIHOP
18214 booboo
18215 #endif
18216 #if !defined EBADMSG
18217 booboo
18218 #endif
18219 #if !defined EOVERFLOW
18220 booboo
18221 #endif
18222 #if !defined ENOTSUP
18223 booboo
18224 #endif
18225 #if !defined ENETRESET
18226 booboo
18227 #endif
18228 #if !defined ECONNABORTED
18229 booboo
18230 #endif
18231 #if !defined ESTALE
18232 booboo
18233 #endif
18234 #if !defined EDQUOT
18235 booboo
18236 #endif
18237 #if !defined ECANCELED
18238 booboo
18239 #endif
18240 #if !defined EOWNERDEAD
18241 booboo
18242 #endif
18243 #if !defined ENOTRECOVERABLE
18244 booboo
18245 #endif
18246 #if !defined EILSEQ
18247 booboo
18248 #endif
18250 _ACEOF
18251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18252 $EGREP "booboo" >/dev/null 2>&1; then :
18253 gl_cv_header_errno_h_complete=no
18254 else
18255 gl_cv_header_errno_h_complete=yes
18257 rm -f conftest*
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18262 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18263 if test $gl_cv_header_errno_h_complete = yes; then
18264 ERRNO_H=''
18265 else
18274 if test $gl_cv_have_include_next = yes; then
18275 gl_cv_next_errno_h='<'errno.h'>'
18276 else
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18278 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18279 if test "${gl_cv_next_errno_h+set}" = set; then :
18280 $as_echo_n "(cached) " >&6
18281 else
18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h. */
18285 #include <errno.h>
18287 _ACEOF
18288 case "$host_os" in
18289 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18290 *) gl_absname_cpp="$ac_cpp" ;;
18291 esac
18293 case "$host_os" in
18294 mingw*)
18295 gl_dirsep_regex='[/\\]'
18298 gl_dirsep_regex='\/'
18300 esac
18301 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18303 gl_header_literal_regex=`echo 'errno.h' \
18304 | sed -e "$gl_make_literal_regex_sed"`
18305 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18306 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18307 s|^/[^/]|//&|
18311 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18312 sed -n "$gl_absolute_header_sed"`'"'
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18317 $as_echo "$gl_cv_next_errno_h" >&6; }
18319 NEXT_ERRNO_H=$gl_cv_next_errno_h
18321 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18323 gl_next_as_first_directive='<'errno.h'>'
18324 else
18325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18326 gl_next_as_first_directive=$gl_cv_next_errno_h
18328 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18333 ERRNO_H='errno.h'
18336 if test -n "$ERRNO_H"; then
18337 GL_GENERATE_ERRNO_H_TRUE=
18338 GL_GENERATE_ERRNO_H_FALSE='#'
18339 else
18340 GL_GENERATE_ERRNO_H_TRUE='#'
18341 GL_GENERATE_ERRNO_H_FALSE=
18345 if test -n "$ERRNO_H"; then
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18347 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18348 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18349 $as_echo_n "(cached) " >&6
18350 else
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18355 #include <errno.h>
18356 #ifdef EMULTIHOP
18358 #endif
18360 _ACEOF
18361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18362 $EGREP "yes" >/dev/null 2>&1; then :
18363 gl_cv_header_errno_h_EMULTIHOP=yes
18364 else
18365 gl_cv_header_errno_h_EMULTIHOP=no
18367 rm -f conftest*
18369 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18373 #define _XOPEN_SOURCE_EXTENDED 1
18374 #include <errno.h>
18375 #ifdef EMULTIHOP
18377 #endif
18379 _ACEOF
18380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18381 $EGREP "yes" >/dev/null 2>&1; then :
18382 gl_cv_header_errno_h_EMULTIHOP=hidden
18384 rm -f conftest*
18386 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18387 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18388 #define _XOPEN_SOURCE_EXTENDED 1
18389 #include <errno.h>
18390 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18391 #include <stdio.h>
18392 #include <stdlib.h>
18393 "; then :
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18402 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18403 case $gl_cv_header_errno_h_EMULTIHOP in
18404 yes | no)
18405 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18408 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18410 esac
18416 if test -n "$ERRNO_H"; then
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18418 $as_echo_n "checking for ENOLINK value... " >&6; }
18419 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18420 $as_echo_n "(cached) " >&6
18421 else
18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18426 #include <errno.h>
18427 #ifdef ENOLINK
18429 #endif
18431 _ACEOF
18432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18433 $EGREP "yes" >/dev/null 2>&1; then :
18434 gl_cv_header_errno_h_ENOLINK=yes
18435 else
18436 gl_cv_header_errno_h_ENOLINK=no
18438 rm -f conftest*
18440 if test $gl_cv_header_errno_h_ENOLINK = no; then
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18444 #define _XOPEN_SOURCE_EXTENDED 1
18445 #include <errno.h>
18446 #ifdef ENOLINK
18448 #endif
18450 _ACEOF
18451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18452 $EGREP "yes" >/dev/null 2>&1; then :
18453 gl_cv_header_errno_h_ENOLINK=hidden
18455 rm -f conftest*
18457 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18458 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18459 #define _XOPEN_SOURCE_EXTENDED 1
18460 #include <errno.h>
18461 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18462 #include <stdio.h>
18463 #include <stdlib.h>
18464 "; then :
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18473 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18474 case $gl_cv_header_errno_h_ENOLINK in
18475 yes | no)
18476 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18479 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18481 esac
18487 if test -n "$ERRNO_H"; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18489 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18490 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h. */
18497 #include <errno.h>
18498 #ifdef EOVERFLOW
18500 #endif
18502 _ACEOF
18503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18504 $EGREP "yes" >/dev/null 2>&1; then :
18505 gl_cv_header_errno_h_EOVERFLOW=yes
18506 else
18507 gl_cv_header_errno_h_EOVERFLOW=no
18509 rm -f conftest*
18511 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h. */
18515 #define _XOPEN_SOURCE_EXTENDED 1
18516 #include <errno.h>
18517 #ifdef EOVERFLOW
18519 #endif
18521 _ACEOF
18522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18523 $EGREP "yes" >/dev/null 2>&1; then :
18524 gl_cv_header_errno_h_EOVERFLOW=hidden
18526 rm -f conftest*
18528 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18529 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18530 #define _XOPEN_SOURCE_EXTENDED 1
18531 #include <errno.h>
18532 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18533 #include <stdio.h>
18534 #include <stdlib.h>
18535 "; then :
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18544 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18545 case $gl_cv_header_errno_h_EOVERFLOW in
18546 yes | no)
18547 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18550 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18552 esac
18566 GNULIB_FCNTL=0;
18567 GNULIB_NONBLOCKING=0;
18568 GNULIB_OPEN=0;
18569 GNULIB_OPENAT=0;
18570 HAVE_FCNTL=1;
18571 HAVE_OPENAT=1;
18572 REPLACE_FCNTL=0;
18573 REPLACE_OPEN=0;
18574 REPLACE_OPENAT=0;
18579 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18580 if test "x$ac_cv_type_mode_t" = x""yes; then :
18582 else
18584 cat >>confdefs.h <<_ACEOF
18585 #define mode_t int
18586 _ACEOF
18590 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18591 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
18592 ac_have_decl=1
18593 else
18594 ac_have_decl=0
18597 cat >>confdefs.h <<_ACEOF
18598 #define HAVE_DECL_FDATASYNC $ac_have_decl
18599 _ACEOF
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18604 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18605 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18606 $as_echo_n "(cached) " >&6
18607 else
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 #include <sys/types.h>
18612 #include <sys/stat.h>
18614 main ()
18616 struct stat s; s.st_dm_mode;
18618 return 0;
18620 _ACEOF
18621 if ac_fn_c_try_compile "$LINENO"; then :
18622 ac_cv_struct_st_dm_mode=yes
18623 else
18624 ac_cv_struct_st_dm_mode=no
18626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18629 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18631 if test $ac_cv_struct_st_dm_mode = yes; then
18633 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18638 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18639 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
18640 ac_have_decl=1
18641 else
18642 ac_have_decl=0
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_DECL_STRMODE $ac_have_decl
18647 _ACEOF
18652 GNULIB_FCHMODAT=0;
18653 GNULIB_FSTAT=0;
18654 GNULIB_FSTATAT=0;
18655 GNULIB_FUTIMENS=0;
18656 GNULIB_LCHMOD=0;
18657 GNULIB_LSTAT=0;
18658 GNULIB_MKDIRAT=0;
18659 GNULIB_MKFIFO=0;
18660 GNULIB_MKFIFOAT=0;
18661 GNULIB_MKNOD=0;
18662 GNULIB_MKNODAT=0;
18663 GNULIB_STAT=0;
18664 GNULIB_UTIMENSAT=0;
18665 HAVE_FCHMODAT=1;
18666 HAVE_FSTATAT=1;
18667 HAVE_FUTIMENS=1;
18668 HAVE_LCHMOD=1;
18669 HAVE_LSTAT=1;
18670 HAVE_MKDIRAT=1;
18671 HAVE_MKFIFO=1;
18672 HAVE_MKFIFOAT=1;
18673 HAVE_MKNOD=1;
18674 HAVE_MKNODAT=1;
18675 HAVE_UTIMENSAT=1;
18676 REPLACE_FSTAT=0;
18677 REPLACE_FSTATAT=0;
18678 REPLACE_FUTIMENS=0;
18679 REPLACE_LSTAT=0;
18680 REPLACE_MKDIR=0;
18681 REPLACE_MKFIFO=0;
18682 REPLACE_MKNOD=0;
18683 REPLACE_STAT=0;
18684 REPLACE_UTIMENSAT=0;
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18688 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18689 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18690 $as_echo_n "(cached) " >&6
18691 else
18692 rm -f conftest.sym conftest.file
18693 echo >conftest.file
18694 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18695 if test "$cross_compiling" = yes; then :
18696 case "$host_os" in
18697 # Guess yes on glibc systems.
18698 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18699 # If we don't know, assume the worst.
18700 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18701 esac
18703 else
18704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18706 $ac_includes_default
18708 main ()
18710 struct stat sbuf;
18711 /* Linux will dereference the symlink and fail, as required by
18712 POSIX. That is better in the sense that it means we will not
18713 have to compile and use the lstat wrapper. */
18714 return lstat ("conftest.sym/", &sbuf) == 0;
18717 return 0;
18719 _ACEOF
18720 if ac_fn_c_try_run "$LINENO"; then :
18721 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18722 else
18723 gl_cv_func_lstat_dereferences_slashed_symlink=no
18725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18726 conftest.$ac_objext conftest.beam conftest.$ac_ext
18729 else
18730 # If the 'ln -s' command failed, then we probably don't even
18731 # have an lstat function.
18732 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18734 rm -f conftest.sym conftest.file
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18738 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18739 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18740 *yes)
18742 cat >>confdefs.h <<_ACEOF
18743 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18744 _ACEOF
18747 esac
18754 GNULIB__EXIT=0;
18755 GNULIB_ATOLL=0;
18756 GNULIB_CALLOC_POSIX=0;
18757 GNULIB_CANONICALIZE_FILE_NAME=0;
18758 GNULIB_GETLOADAVG=0;
18759 GNULIB_GETSUBOPT=0;
18760 GNULIB_GRANTPT=0;
18761 GNULIB_MALLOC_POSIX=0;
18762 GNULIB_MBTOWC=0;
18763 GNULIB_MKDTEMP=0;
18764 GNULIB_MKOSTEMP=0;
18765 GNULIB_MKOSTEMPS=0;
18766 GNULIB_MKSTEMP=0;
18767 GNULIB_MKSTEMPS=0;
18768 GNULIB_POSIX_OPENPT=0;
18769 GNULIB_PTSNAME=0;
18770 GNULIB_PTSNAME_R=0;
18771 GNULIB_PUTENV=0;
18772 GNULIB_RANDOM=0;
18773 GNULIB_RANDOM_R=0;
18774 GNULIB_REALLOC_POSIX=0;
18775 GNULIB_REALPATH=0;
18776 GNULIB_RPMATCH=0;
18777 GNULIB_SECURE_GETENV=0;
18778 GNULIB_SETENV=0;
18779 GNULIB_STRTOD=0;
18780 GNULIB_STRTOLL=0;
18781 GNULIB_STRTOULL=0;
18782 GNULIB_SYSTEM_POSIX=0;
18783 GNULIB_UNLOCKPT=0;
18784 GNULIB_UNSETENV=0;
18785 GNULIB_WCTOMB=0;
18786 HAVE__EXIT=1;
18787 HAVE_ATOLL=1;
18788 HAVE_CANONICALIZE_FILE_NAME=1;
18789 HAVE_DECL_GETLOADAVG=1;
18790 HAVE_GETSUBOPT=1;
18791 HAVE_GRANTPT=1;
18792 HAVE_MKDTEMP=1;
18793 HAVE_MKOSTEMP=1;
18794 HAVE_MKOSTEMPS=1;
18795 HAVE_MKSTEMP=1;
18796 HAVE_MKSTEMPS=1;
18797 HAVE_POSIX_OPENPT=1;
18798 HAVE_PTSNAME=1;
18799 HAVE_PTSNAME_R=1;
18800 HAVE_RANDOM=1;
18801 HAVE_RANDOM_H=1;
18802 HAVE_RANDOM_R=1;
18803 HAVE_REALPATH=1;
18804 HAVE_RPMATCH=1;
18805 HAVE_SECURE_GETENV=1;
18806 HAVE_SETENV=1;
18807 HAVE_DECL_SETENV=1;
18808 HAVE_STRTOD=1;
18809 HAVE_STRTOLL=1;
18810 HAVE_STRTOULL=1;
18811 HAVE_STRUCT_RANDOM_DATA=1;
18812 HAVE_SYS_LOADAVG_H=0;
18813 HAVE_UNLOCKPT=1;
18814 HAVE_DECL_UNSETENV=1;
18815 REPLACE_CALLOC=0;
18816 REPLACE_CANONICALIZE_FILE_NAME=0;
18817 REPLACE_MALLOC=0;
18818 REPLACE_MBTOWC=0;
18819 REPLACE_MKSTEMP=0;
18820 REPLACE_PTSNAME=0;
18821 REPLACE_PTSNAME_R=0;
18822 REPLACE_PUTENV=0;
18823 REPLACE_RANDOM_R=0;
18824 REPLACE_REALLOC=0;
18825 REPLACE_REALPATH=0;
18826 REPLACE_SETENV=0;
18827 REPLACE_STRTOD=0;
18828 REPLACE_UNSETENV=0;
18829 REPLACE_WCTOMB=0;
18846 if test $gl_cv_have_include_next = yes; then
18847 gl_cv_next_getopt_h='<'getopt.h'>'
18848 else
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18850 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18851 if test "${gl_cv_next_getopt_h+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
18853 else
18855 if test $ac_cv_header_getopt_h = yes; then
18858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18860 #include <getopt.h>
18862 _ACEOF
18863 case "$host_os" in
18864 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18865 *) gl_absname_cpp="$ac_cpp" ;;
18866 esac
18868 case "$host_os" in
18869 mingw*)
18870 gl_dirsep_regex='[/\\]'
18873 gl_dirsep_regex='\/'
18875 esac
18876 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18878 gl_header_literal_regex=`echo 'getopt.h' \
18879 | sed -e "$gl_make_literal_regex_sed"`
18880 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18881 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18882 s|^/[^/]|//&|
18886 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18887 sed -n "$gl_absolute_header_sed"`'"'
18888 else
18889 gl_cv_next_getopt_h='<'getopt.h'>'
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18895 $as_echo "$gl_cv_next_getopt_h" >&6; }
18897 NEXT_GETOPT_H=$gl_cv_next_getopt_h
18899 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18901 gl_next_as_first_directive='<'getopt.h'>'
18902 else
18903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18904 gl_next_as_first_directive=$gl_cv_next_getopt_h
18906 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
18911 if test $ac_cv_header_getopt_h = yes; then
18912 HAVE_GETOPT_H=1
18913 else
18914 HAVE_GETOPT_H=0
18918 gl_replace_getopt=
18920 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18921 for ac_header in getopt.h
18922 do :
18923 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18924 if test "x$ac_cv_header_getopt_h" = x""yes; then :
18925 cat >>confdefs.h <<_ACEOF
18926 #define HAVE_GETOPT_H 1
18927 _ACEOF
18929 else
18930 gl_replace_getopt=yes
18933 done
18937 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18938 for ac_func in getopt_long_only
18939 do :
18940 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18941 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
18942 cat >>confdefs.h <<_ACEOF
18943 #define HAVE_GETOPT_LONG_ONLY 1
18944 _ACEOF
18946 else
18947 gl_replace_getopt=yes
18949 done
18953 if test -z "$gl_replace_getopt"; then
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18955 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18956 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18957 $as_echo_n "(cached) " >&6
18958 else
18960 if test $cross_compiling = no; then
18961 if test "$cross_compiling" = yes; then :
18962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18964 as_fn_error "cannot run test program while cross compiling
18965 See \`config.log' for more details." "$LINENO" 5; }
18966 else
18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h. */
18970 #include <unistd.h>
18971 #include <stdlib.h>
18972 #include <string.h>
18975 main ()
18977 static char program[] = "program";
18978 static char a[] = "-a";
18979 static char foo[] = "foo";
18980 static char bar[] = "bar";
18981 char *argv[] = { program, a, foo, bar, NULL };
18982 int c;
18984 c = getopt (4, argv, "ab");
18985 if (!(c == 'a'))
18986 return 1;
18987 c = getopt (4, argv, "ab");
18988 if (!(c == -1))
18989 return 2;
18990 if (!(optind == 2))
18991 return 3;
18992 return 0;
18995 _ACEOF
18996 if ac_fn_c_try_run "$LINENO"; then :
18997 gl_cv_func_getopt_posix=maybe
18998 else
18999 gl_cv_func_getopt_posix=no
19001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19002 conftest.$ac_objext conftest.beam conftest.$ac_ext
19005 if test $gl_cv_func_getopt_posix = maybe; then
19006 if test "$cross_compiling" = yes; then :
19007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19009 as_fn_error "cannot run test program while cross compiling
19010 See \`config.log' for more details." "$LINENO" 5; }
19011 else
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h. */
19015 #include <unistd.h>
19016 #include <stdlib.h>
19017 #include <string.h>
19020 main ()
19022 static char program[] = "program";
19023 static char donald[] = "donald";
19024 static char p[] = "-p";
19025 static char billy[] = "billy";
19026 static char duck[] = "duck";
19027 static char a[] = "-a";
19028 static char bar[] = "bar";
19029 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19030 int c;
19032 c = getopt (7, argv, "+abp:q:");
19033 if (!(c == -1))
19034 return 4;
19035 if (!(strcmp (argv[0], "program") == 0))
19036 return 5;
19037 if (!(strcmp (argv[1], "donald") == 0))
19038 return 6;
19039 if (!(strcmp (argv[2], "-p") == 0))
19040 return 7;
19041 if (!(strcmp (argv[3], "billy") == 0))
19042 return 8;
19043 if (!(strcmp (argv[4], "duck") == 0))
19044 return 9;
19045 if (!(strcmp (argv[5], "-a") == 0))
19046 return 10;
19047 if (!(strcmp (argv[6], "bar") == 0))
19048 return 11;
19049 if (!(optind == 1))
19050 return 12;
19051 return 0;
19054 _ACEOF
19055 if ac_fn_c_try_run "$LINENO"; then :
19056 gl_cv_func_getopt_posix=maybe
19057 else
19058 gl_cv_func_getopt_posix=no
19060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19061 conftest.$ac_objext conftest.beam conftest.$ac_ext
19065 if test $gl_cv_func_getopt_posix = maybe; then
19066 if test "$cross_compiling" = yes; then :
19067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19069 as_fn_error "cannot run test program while cross compiling
19070 See \`config.log' for more details." "$LINENO" 5; }
19071 else
19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h. */
19075 #include <unistd.h>
19076 #include <stdlib.h>
19077 #include <string.h>
19080 main ()
19082 static char program[] = "program";
19083 static char ab[] = "-ab";
19084 char *argv[3] = { program, ab, NULL };
19085 if (getopt (2, argv, "ab:") != 'a')
19086 return 13;
19087 if (getopt (2, argv, "ab:") != '?')
19088 return 14;
19089 if (optopt != 'b')
19090 return 15;
19091 if (optind != 2)
19092 return 16;
19093 return 0;
19096 _ACEOF
19097 if ac_fn_c_try_run "$LINENO"; then :
19098 gl_cv_func_getopt_posix=yes
19099 else
19100 gl_cv_func_getopt_posix=no
19102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19103 conftest.$ac_objext conftest.beam conftest.$ac_ext
19107 else
19108 case "$host_os" in
19109 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19110 *) gl_cv_func_getopt_posix="guessing yes";;
19111 esac
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19116 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19117 case "$gl_cv_func_getopt_posix" in
19118 *no) gl_replace_getopt=yes ;;
19119 esac
19122 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19124 $as_echo_n "checking for working GNU getopt function... " >&6; }
19125 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19126 $as_echo_n "(cached) " >&6
19127 else
19128 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19129 # optstring is necessary for programs like m4 that have POSIX-mandated
19130 # semantics for supporting options interspersed with files.
19131 # Also, since getopt_long is a GNU extension, we require optind=0.
19132 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19133 # so take care to revert to the correct (non-)export state.
19134 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19135 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19136 xx) gl_had_POSIXLY_CORRECT=exported ;;
19137 x) gl_had_POSIXLY_CORRECT=yes ;;
19138 *) gl_had_POSIXLY_CORRECT= ;;
19139 esac
19140 POSIXLY_CORRECT=1
19141 export POSIXLY_CORRECT
19142 if test "$cross_compiling" = yes; then :
19143 gl_cv_func_getopt_gnu="guessing no"
19145 else
19146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h. */
19148 #include <getopt.h>
19149 #include <stddef.h>
19150 #include <string.h>
19152 #include <stdlib.h>
19153 #if defined __MACH__ && defined __APPLE__
19154 /* Avoid a crash on Mac OS X. */
19155 #include <mach/mach.h>
19156 #include <mach/mach_error.h>
19157 #include <mach/thread_status.h>
19158 #include <mach/exception.h>
19159 #include <mach/task.h>
19160 #include <pthread.h>
19161 /* The exception port on which our thread listens. */
19162 static mach_port_t our_exception_port;
19163 /* The main function of the thread listening for exceptions of type
19164 EXC_BAD_ACCESS. */
19165 static void *
19166 mach_exception_thread (void *arg)
19168 /* Buffer for a message to be received. */
19169 struct {
19170 mach_msg_header_t head;
19171 mach_msg_body_t msgh_body;
19172 char data[1024];
19173 } msg;
19174 mach_msg_return_t retval;
19175 /* Wait for a message on the exception port. */
19176 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19177 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19178 if (retval != MACH_MSG_SUCCESS)
19179 abort ();
19180 exit (1);
19182 static void
19183 nocrash_init (void)
19185 mach_port_t self = mach_task_self ();
19186 /* Allocate a port on which the thread shall listen for exceptions. */
19187 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19188 == KERN_SUCCESS) {
19189 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19190 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19191 MACH_MSG_TYPE_MAKE_SEND)
19192 == KERN_SUCCESS) {
19193 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19194 for us. */
19195 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19196 /* Create the thread listening on the exception port. */
19197 pthread_attr_t attr;
19198 pthread_t thread;
19199 if (pthread_attr_init (&attr) == 0
19200 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19201 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19202 pthread_attr_destroy (&attr);
19203 /* Replace the exception port info for these exceptions with our own.
19204 Note that we replace the exception port for the entire task, not only
19205 for a particular thread. This has the effect that when our exception
19206 port gets the message, the thread specific exception port has already
19207 been asked, and we don't need to bother about it.
19208 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19209 task_set_exception_ports (self, mask, our_exception_port,
19210 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19215 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19216 /* Avoid a crash on native Windows. */
19217 #define WIN32_LEAN_AND_MEAN
19218 #include <windows.h>
19219 #include <winerror.h>
19220 static LONG WINAPI
19221 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19223 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19225 case EXCEPTION_ACCESS_VIOLATION:
19226 case EXCEPTION_IN_PAGE_ERROR:
19227 case EXCEPTION_STACK_OVERFLOW:
19228 case EXCEPTION_GUARD_PAGE:
19229 case EXCEPTION_PRIV_INSTRUCTION:
19230 case EXCEPTION_ILLEGAL_INSTRUCTION:
19231 case EXCEPTION_DATATYPE_MISALIGNMENT:
19232 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19233 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19234 exit (1);
19236 return EXCEPTION_CONTINUE_SEARCH;
19238 static void
19239 nocrash_init (void)
19241 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19243 #else
19244 /* Avoid a crash on POSIX systems. */
19245 #include <signal.h>
19246 /* A POSIX signal handler. */
19247 static void
19248 exception_handler (int sig)
19250 exit (1);
19252 static void
19253 nocrash_init (void)
19255 #ifdef SIGSEGV
19256 signal (SIGSEGV, exception_handler);
19257 #endif
19258 #ifdef SIGBUS
19259 signal (SIGBUS, exception_handler);
19260 #endif
19262 #endif
19266 main ()
19269 int result = 0;
19271 nocrash_init();
19273 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19274 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19275 OSF/1 5.1, Solaris 10. */
19277 static char conftest[] = "conftest";
19278 static char plus[] = "-+";
19279 char *argv[3] = { conftest, plus, NULL };
19280 opterr = 0;
19281 if (getopt (2, argv, "+a") != '?')
19282 result |= 1;
19284 /* This code succeeds on glibc 2.8, mingw,
19285 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19286 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19288 static char program[] = "program";
19289 static char p[] = "-p";
19290 static char foo[] = "foo";
19291 static char bar[] = "bar";
19292 char *argv[] = { program, p, foo, bar, NULL };
19294 optind = 1;
19295 if (getopt (4, argv, "p::") != 'p')
19296 result |= 2;
19297 else if (optarg != NULL)
19298 result |= 4;
19299 else if (getopt (4, argv, "p::") != -1)
19300 result |= 6;
19301 else if (optind != 2)
19302 result |= 8;
19304 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19306 static char program[] = "program";
19307 static char foo[] = "foo";
19308 static char p[] = "-p";
19309 char *argv[] = { program, foo, p, NULL };
19310 optind = 0;
19311 if (getopt (3, argv, "-p") != 1)
19312 result |= 16;
19313 else if (getopt (3, argv, "-p") != 'p')
19314 result |= 16;
19316 /* This code fails on glibc 2.11. */
19318 static char program[] = "program";
19319 static char b[] = "-b";
19320 static char a[] = "-a";
19321 char *argv[] = { program, b, a, NULL };
19322 optind = opterr = 0;
19323 if (getopt (3, argv, "+:a:b") != 'b')
19324 result |= 32;
19325 else if (getopt (3, argv, "+:a:b") != ':')
19326 result |= 32;
19328 /* This code dumps core on glibc 2.14. */
19330 static char program[] = "program";
19331 static char w[] = "-W";
19332 static char dummy[] = "dummy";
19333 char *argv[] = { program, w, dummy, NULL };
19334 optind = opterr = 1;
19335 if (getopt (3, argv, "W;") != 'W')
19336 result |= 64;
19338 return result;
19341 return 0;
19343 _ACEOF
19344 if ac_fn_c_try_run "$LINENO"; then :
19345 gl_cv_func_getopt_gnu=yes
19346 else
19347 gl_cv_func_getopt_gnu=no
19349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19350 conftest.$ac_objext conftest.beam conftest.$ac_ext
19353 case $gl_had_POSIXLY_CORRECT in
19354 exported) ;;
19355 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19356 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19357 esac
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19361 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19362 if test "$gl_cv_func_getopt_gnu" != yes; then
19363 gl_replace_getopt=yes
19364 else
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19366 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19367 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19368 $as_echo_n "(cached) " >&6
19369 else
19370 if test "$cross_compiling" = yes; then :
19371 case "$host_os" in
19372 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19373 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19374 esac
19376 else
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19379 #include <getopt.h>
19380 #include <stddef.h>
19381 #include <string.h>
19384 main ()
19386 static const struct option long_options[] =
19388 { "xtremely-",no_argument, NULL, 1003 },
19389 { "xtra", no_argument, NULL, 1001 },
19390 { "xtreme", no_argument, NULL, 1002 },
19391 { "xtremely", no_argument, NULL, 1003 },
19392 { NULL, 0, NULL, 0 }
19394 /* This code fails on OpenBSD 5.0. */
19396 static char program[] = "program";
19397 static char xtremel[] = "--xtremel";
19398 char *argv[] = { program, xtremel, NULL };
19399 int option_index;
19400 optind = 1; opterr = 0;
19401 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19402 return 1;
19404 return 0;
19407 return 0;
19409 _ACEOF
19410 if ac_fn_c_try_run "$LINENO"; then :
19411 gl_cv_func_getopt_long_gnu=yes
19412 else
19413 gl_cv_func_getopt_long_gnu=no
19415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19416 conftest.$ac_objext conftest.beam conftest.$ac_ext
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19422 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19423 case "$gl_cv_func_getopt_long_gnu" in
19424 *yes) ;;
19425 *) gl_replace_getopt=yes ;;
19426 esac
19435 REPLACE_GETOPT=0
19436 if test -n "$gl_replace_getopt"; then
19437 REPLACE_GETOPT=1
19440 if test $REPLACE_GETOPT = 1; then
19442 GETOPT_H=getopt.h
19444 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19450 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19451 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19452 ac_have_decl=1
19453 else
19454 ac_have_decl=0
19457 cat >>confdefs.h <<_ACEOF
19458 #define HAVE_DECL_GETENV $ac_have_decl
19459 _ACEOF
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19467 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19468 if test "${ac_cv_c_restrict+set}" = set; then :
19469 $as_echo_n "(cached) " >&6
19470 else
19471 ac_cv_c_restrict=no
19472 # The order here caters to the fact that C++ does not require restrict.
19473 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19476 typedef int * int_ptr;
19477 int foo (int_ptr $ac_kw ip) {
19478 return ip[0];
19481 main ()
19483 int s[1];
19484 int * $ac_kw t = s;
19485 t[0] = 0;
19486 return foo(t)
19488 return 0;
19490 _ACEOF
19491 if ac_fn_c_try_compile "$LINENO"; then :
19492 ac_cv_c_restrict=$ac_kw
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 test "$ac_cv_c_restrict" != no && break
19496 done
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19500 $as_echo "$ac_cv_c_restrict" >&6; }
19502 case $ac_cv_c_restrict in
19503 restrict) ;;
19504 no) $as_echo "#define restrict /**/" >>confdefs.h
19506 *) cat >>confdefs.h <<_ACEOF
19507 #define restrict $ac_cv_c_restrict
19508 _ACEOF
19510 esac
19513 GNULIB_GETTIMEOFDAY=0;
19514 HAVE_GETTIMEOFDAY=1;
19515 HAVE_STRUCT_TIMEVAL=1;
19516 HAVE_SYS_TIME_H=1;
19517 REPLACE_GETTIMEOFDAY=0;
19518 REPLACE_STRUCT_TIMEVAL=0;
19535 if test $gl_cv_have_include_next = yes; then
19536 gl_cv_next_sys_time_h='<'sys/time.h'>'
19537 else
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19539 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19540 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19541 $as_echo_n "(cached) " >&6
19542 else
19544 if test $ac_cv_header_sys_time_h = yes; then
19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19549 #include <sys/time.h>
19551 _ACEOF
19552 case "$host_os" in
19553 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19554 *) gl_absname_cpp="$ac_cpp" ;;
19555 esac
19557 case "$host_os" in
19558 mingw*)
19559 gl_dirsep_regex='[/\\]'
19562 gl_dirsep_regex='\/'
19564 esac
19565 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19567 gl_header_literal_regex=`echo 'sys/time.h' \
19568 | sed -e "$gl_make_literal_regex_sed"`
19569 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19570 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19571 s|^/[^/]|//&|
19575 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19576 sed -n "$gl_absolute_header_sed"`'"'
19577 else
19578 gl_cv_next_sys_time_h='<'sys/time.h'>'
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19584 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19586 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19588 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19590 gl_next_as_first_directive='<'sys/time.h'>'
19591 else
19592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19593 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19595 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19601 if test $ac_cv_header_sys_time_h != yes; then
19602 HAVE_SYS_TIME_H=0
19609 if test $ac_cv_header_sys_socket_h != yes; then
19610 for ac_header in winsock2.h
19611 do :
19612 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19613 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_WINSOCK2_H 1
19616 _ACEOF
19620 done
19623 if test "$ac_cv_header_winsock2_h" = yes; then
19624 HAVE_WINSOCK2_H=1
19625 UNISTD_H_HAVE_WINSOCK2_H=1
19626 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19627 else
19628 HAVE_WINSOCK2_H=0
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19633 $as_echo_n "checking for struct timeval... " >&6; }
19634 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19635 $as_echo_n "(cached) " >&6
19636 else
19637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19638 /* end confdefs.h. */
19639 #if HAVE_SYS_TIME_H
19640 #include <sys/time.h>
19641 #endif
19642 #include <time.h>
19643 #if HAVE_WINSOCK2_H
19644 # include <winsock2.h>
19645 #endif
19648 main ()
19650 static struct timeval x; x.tv_sec = x.tv_usec;
19652 return 0;
19654 _ACEOF
19655 if ac_fn_c_try_compile "$LINENO"; then :
19656 gl_cv_sys_struct_timeval=yes
19657 else
19658 gl_cv_sys_struct_timeval=no
19660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19664 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19665 if test $gl_cv_sys_struct_timeval != yes; then
19666 HAVE_STRUCT_TIMEVAL=0
19667 else
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19669 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19670 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19671 $as_echo_n "(cached) " >&6
19672 else
19673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19675 #if HAVE_SYS_TIME_H
19676 #include <sys/time.h>
19677 #endif
19678 #include <time.h>
19679 #if HAVE_WINSOCK2_H
19680 # include <winsock2.h>
19681 #endif
19684 main ()
19686 static struct timeval x;
19687 typedef int verify_tv_sec_type[
19688 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19692 return 0;
19694 _ACEOF
19695 if ac_fn_c_try_compile "$LINENO"; then :
19696 gl_cv_sys_struct_timeval_tv_sec=yes
19697 else
19698 gl_cv_sys_struct_timeval_tv_sec=no
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19704 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19705 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19706 REPLACE_STRUCT_TIMEVAL=1
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19717 $as_echo_n "checking for unsigned long long int... " >&6; }
19718 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19719 $as_echo_n "(cached) " >&6
19720 else
19721 ac_cv_type_unsigned_long_long_int=yes
19722 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19724 /* end confdefs.h. */
19726 /* For now, do not test the preprocessor; as of 2007 there are too many
19727 implementations with broken preprocessors. Perhaps this can
19728 be revisited in 2012. In the meantime, code should not expect
19729 #if to work with literals wider than 32 bits. */
19730 /* Test literals. */
19731 long long int ll = 9223372036854775807ll;
19732 long long int nll = -9223372036854775807LL;
19733 unsigned long long int ull = 18446744073709551615ULL;
19734 /* Test constant expressions. */
19735 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19736 ? 1 : -1)];
19737 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19738 ? 1 : -1)];
19739 int i = 63;
19741 main ()
19743 /* Test availability of runtime routines for shift and division. */
19744 long long int llmax = 9223372036854775807ll;
19745 unsigned long long int ullmax = 18446744073709551615ull;
19746 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19747 | (llmax / ll) | (llmax % ll)
19748 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19749 | (ullmax / ull) | (ullmax % ull));
19751 return 0;
19754 _ACEOF
19755 if ac_fn_c_try_link "$LINENO"; then :
19757 else
19758 ac_cv_type_unsigned_long_long_int=no
19760 rm -f core conftest.err conftest.$ac_objext \
19761 conftest$ac_exeext conftest.$ac_ext
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19765 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19766 if test $ac_cv_type_unsigned_long_long_int = yes; then
19768 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19775 $as_echo_n "checking for long long int... " >&6; }
19776 if test "${ac_cv_type_long_long_int+set}" = set; then :
19777 $as_echo_n "(cached) " >&6
19778 else
19779 ac_cv_type_long_long_int=yes
19780 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19781 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19782 if test $ac_cv_type_long_long_int = yes; then
19783 if test "$cross_compiling" = yes; then :
19785 else
19786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19787 /* end confdefs.h. */
19788 #include <limits.h>
19789 #ifndef LLONG_MAX
19790 # define HALF \
19791 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19792 # define LLONG_MAX (HALF - 1 + HALF)
19793 #endif
19795 main ()
19797 long long int n = 1;
19798 int i;
19799 for (i = 0; ; i++)
19801 long long int m = n << i;
19802 if (m >> i != n)
19803 return 1;
19804 if (LLONG_MAX / 2 < m)
19805 break;
19807 return 0;
19809 return 0;
19811 _ACEOF
19812 if ac_fn_c_try_run "$LINENO"; then :
19814 else
19815 ac_cv_type_long_long_int=no
19817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19818 conftest.$ac_objext conftest.beam conftest.$ac_ext
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19825 $as_echo "$ac_cv_type_long_long_int" >&6; }
19826 if test $ac_cv_type_long_long_int = yes; then
19828 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19837 gl_cv_c_multiarch=no
19838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839 /* end confdefs.h. */
19840 #ifndef __APPLE_CC__
19841 not a universal capable compiler
19842 #endif
19843 typedef int dummy;
19845 _ACEOF
19846 if ac_fn_c_try_compile "$LINENO"; then :
19848 arch=
19849 prev=
19850 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19851 if test -n "$prev"; then
19852 case $word in
19853 i?86 | x86_64 | ppc | ppc64)
19854 if test -z "$arch" || test "$arch" = "$word"; then
19855 arch="$word"
19856 else
19857 gl_cv_c_multiarch=yes
19860 esac
19861 prev=
19862 else
19863 if test "x$word" = "x-arch"; then
19864 prev=arch
19867 done
19870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 if test $gl_cv_c_multiarch = yes; then
19872 APPLE_UNIVERSAL_BUILD=1
19873 else
19874 APPLE_UNIVERSAL_BUILD=0
19881 if test $ac_cv_type_long_long_int = yes; then
19882 HAVE_LONG_LONG_INT=1
19883 else
19884 HAVE_LONG_LONG_INT=0
19888 if test $ac_cv_type_unsigned_long_long_int = yes; then
19889 HAVE_UNSIGNED_LONG_LONG_INT=1
19890 else
19891 HAVE_UNSIGNED_LONG_LONG_INT=0
19896 if test $ac_cv_header_wchar_h = yes; then
19897 HAVE_WCHAR_H=1
19898 else
19899 HAVE_WCHAR_H=0
19903 if test $ac_cv_header_inttypes_h = yes; then
19904 HAVE_INTTYPES_H=1
19905 else
19906 HAVE_INTTYPES_H=0
19910 if test $ac_cv_header_sys_types_h = yes; then
19911 HAVE_SYS_TYPES_H=1
19912 else
19913 HAVE_SYS_TYPES_H=0
19926 if test $gl_cv_have_include_next = yes; then
19927 gl_cv_next_stdint_h='<'stdint.h'>'
19928 else
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19930 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19931 if test "${gl_cv_next_stdint_h+set}" = set; then :
19932 $as_echo_n "(cached) " >&6
19933 else
19935 if test $ac_cv_header_stdint_h = yes; then
19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19940 #include <stdint.h>
19942 _ACEOF
19943 case "$host_os" in
19944 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19945 *) gl_absname_cpp="$ac_cpp" ;;
19946 esac
19948 case "$host_os" in
19949 mingw*)
19950 gl_dirsep_regex='[/\\]'
19953 gl_dirsep_regex='\/'
19955 esac
19956 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19958 gl_header_literal_regex=`echo 'stdint.h' \
19959 | sed -e "$gl_make_literal_regex_sed"`
19960 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19961 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19962 s|^/[^/]|//&|
19966 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19967 sed -n "$gl_absolute_header_sed"`'"'
19968 else
19969 gl_cv_next_stdint_h='<'stdint.h'>'
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19975 $as_echo "$gl_cv_next_stdint_h" >&6; }
19977 NEXT_STDINT_H=$gl_cv_next_stdint_h
19979 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19981 gl_next_as_first_directive='<'stdint.h'>'
19982 else
19983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19984 gl_next_as_first_directive=$gl_cv_next_stdint_h
19986 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19991 if test $ac_cv_header_stdint_h = yes; then
19992 HAVE_STDINT_H=1
19993 else
19994 HAVE_STDINT_H=0
19998 if test $ac_cv_header_stdint_h = yes; then
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20000 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20001 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20002 $as_echo_n "(cached) " >&6
20003 else
20004 gl_cv_header_working_stdint_h=no
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20009 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20010 #include <stdint.h>
20011 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20012 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20013 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20014 #endif
20017 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20018 included before <wchar.h>. */
20019 #include <stddef.h>
20020 #include <signal.h>
20021 #if HAVE_WCHAR_H
20022 # include <stdio.h>
20023 # include <time.h>
20024 # include <wchar.h>
20025 #endif
20028 #ifdef INT8_MAX
20029 int8_t a1 = INT8_MAX;
20030 int8_t a1min = INT8_MIN;
20031 #endif
20032 #ifdef INT16_MAX
20033 int16_t a2 = INT16_MAX;
20034 int16_t a2min = INT16_MIN;
20035 #endif
20036 #ifdef INT32_MAX
20037 int32_t a3 = INT32_MAX;
20038 int32_t a3min = INT32_MIN;
20039 #endif
20040 #ifdef INT64_MAX
20041 int64_t a4 = INT64_MAX;
20042 int64_t a4min = INT64_MIN;
20043 #endif
20044 #ifdef UINT8_MAX
20045 uint8_t b1 = UINT8_MAX;
20046 #else
20047 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20048 #endif
20049 #ifdef UINT16_MAX
20050 uint16_t b2 = UINT16_MAX;
20051 #endif
20052 #ifdef UINT32_MAX
20053 uint32_t b3 = UINT32_MAX;
20054 #endif
20055 #ifdef UINT64_MAX
20056 uint64_t b4 = UINT64_MAX;
20057 #endif
20058 int_least8_t c1 = INT8_C (0x7f);
20059 int_least8_t c1max = INT_LEAST8_MAX;
20060 int_least8_t c1min = INT_LEAST8_MIN;
20061 int_least16_t c2 = INT16_C (0x7fff);
20062 int_least16_t c2max = INT_LEAST16_MAX;
20063 int_least16_t c2min = INT_LEAST16_MIN;
20064 int_least32_t c3 = INT32_C (0x7fffffff);
20065 int_least32_t c3max = INT_LEAST32_MAX;
20066 int_least32_t c3min = INT_LEAST32_MIN;
20067 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20068 int_least64_t c4max = INT_LEAST64_MAX;
20069 int_least64_t c4min = INT_LEAST64_MIN;
20070 uint_least8_t d1 = UINT8_C (0xff);
20071 uint_least8_t d1max = UINT_LEAST8_MAX;
20072 uint_least16_t d2 = UINT16_C (0xffff);
20073 uint_least16_t d2max = UINT_LEAST16_MAX;
20074 uint_least32_t d3 = UINT32_C (0xffffffff);
20075 uint_least32_t d3max = UINT_LEAST32_MAX;
20076 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20077 uint_least64_t d4max = UINT_LEAST64_MAX;
20078 int_fast8_t e1 = INT_FAST8_MAX;
20079 int_fast8_t e1min = INT_FAST8_MIN;
20080 int_fast16_t e2 = INT_FAST16_MAX;
20081 int_fast16_t e2min = INT_FAST16_MIN;
20082 int_fast32_t e3 = INT_FAST32_MAX;
20083 int_fast32_t e3min = INT_FAST32_MIN;
20084 int_fast64_t e4 = INT_FAST64_MAX;
20085 int_fast64_t e4min = INT_FAST64_MIN;
20086 uint_fast8_t f1 = UINT_FAST8_MAX;
20087 uint_fast16_t f2 = UINT_FAST16_MAX;
20088 uint_fast32_t f3 = UINT_FAST32_MAX;
20089 uint_fast64_t f4 = UINT_FAST64_MAX;
20090 #ifdef INTPTR_MAX
20091 intptr_t g = INTPTR_MAX;
20092 intptr_t gmin = INTPTR_MIN;
20093 #endif
20094 #ifdef UINTPTR_MAX
20095 uintptr_t h = UINTPTR_MAX;
20096 #endif
20097 intmax_t i = INTMAX_MAX;
20098 uintmax_t j = UINTMAX_MAX;
20100 #include <limits.h> /* for CHAR_BIT */
20101 #define TYPE_MINIMUM(t) \
20102 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20103 #define TYPE_MAXIMUM(t) \
20104 ((t) ((t) 0 < (t) -1 \
20105 ? (t) -1 \
20106 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20107 struct s {
20108 int check_PTRDIFF:
20109 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20110 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20111 ? 1 : -1;
20112 /* Detect bug in FreeBSD 6.0 / ia64. */
20113 int check_SIG_ATOMIC:
20114 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20115 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20116 ? 1 : -1;
20117 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20118 int check_WCHAR:
20119 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20120 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20121 ? 1 : -1;
20122 /* Detect bug in mingw. */
20123 int check_WINT:
20124 WINT_MIN == TYPE_MINIMUM (wint_t)
20125 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20126 ? 1 : -1;
20128 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20129 int check_UINT8_C:
20130 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20131 int check_UINT16_C:
20132 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20134 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20135 #ifdef UINT8_MAX
20136 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20137 #endif
20138 #ifdef UINT16_MAX
20139 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20140 #endif
20141 #ifdef UINT32_MAX
20142 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20143 #endif
20144 #ifdef UINT64_MAX
20145 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20146 #endif
20147 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20148 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20149 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20150 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20151 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20152 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20153 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20154 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20155 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20156 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20157 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20161 main ()
20165 return 0;
20167 _ACEOF
20168 if ac_fn_c_try_compile "$LINENO"; then :
20169 if test "$cross_compiling" = yes; then :
20170 gl_cv_header_working_stdint_h=yes
20172 else
20173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20174 /* end confdefs.h. */
20177 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20178 #include <stdint.h>
20181 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20182 included before <wchar.h>. */
20183 #include <stddef.h>
20184 #include <signal.h>
20185 #if HAVE_WCHAR_H
20186 # include <stdio.h>
20187 # include <time.h>
20188 # include <wchar.h>
20189 #endif
20192 #include <stdio.h>
20193 #include <string.h>
20194 #define MVAL(macro) MVAL1(macro)
20195 #define MVAL1(expression) #expression
20196 static const char *macro_values[] =
20198 #ifdef INT8_MAX
20199 MVAL (INT8_MAX),
20200 #endif
20201 #ifdef INT16_MAX
20202 MVAL (INT16_MAX),
20203 #endif
20204 #ifdef INT32_MAX
20205 MVAL (INT32_MAX),
20206 #endif
20207 #ifdef INT64_MAX
20208 MVAL (INT64_MAX),
20209 #endif
20210 #ifdef UINT8_MAX
20211 MVAL (UINT8_MAX),
20212 #endif
20213 #ifdef UINT16_MAX
20214 MVAL (UINT16_MAX),
20215 #endif
20216 #ifdef UINT32_MAX
20217 MVAL (UINT32_MAX),
20218 #endif
20219 #ifdef UINT64_MAX
20220 MVAL (UINT64_MAX),
20221 #endif
20222 NULL
20226 main ()
20229 const char **mv;
20230 for (mv = macro_values; *mv != NULL; mv++)
20232 const char *value = *mv;
20233 /* Test whether it looks like a cast expression. */
20234 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20235 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20236 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20237 || strncmp (value, "((int)"/*)*/, 6) == 0
20238 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20239 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20240 return mv - macro_values + 1;
20242 return 0;
20245 return 0;
20247 _ACEOF
20248 if ac_fn_c_try_run "$LINENO"; then :
20249 gl_cv_header_working_stdint_h=yes
20251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20252 conftest.$ac_objext conftest.beam conftest.$ac_ext
20257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20261 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20263 if test "$gl_cv_header_working_stdint_h" = yes; then
20264 STDINT_H=
20265 else
20266 for ac_header in sys/inttypes.h sys/bitypes.h
20267 do :
20268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20269 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20270 eval as_val=\$$as_ac_Header
20271 if test "x$as_val" = x""yes; then :
20272 cat >>confdefs.h <<_ACEOF
20273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20274 _ACEOF
20278 done
20280 if test $ac_cv_header_sys_inttypes_h = yes; then
20281 HAVE_SYS_INTTYPES_H=1
20282 else
20283 HAVE_SYS_INTTYPES_H=0
20286 if test $ac_cv_header_sys_bitypes_h = yes; then
20287 HAVE_SYS_BITYPES_H=1
20288 else
20289 HAVE_SYS_BITYPES_H=0
20295 if test $APPLE_UNIVERSAL_BUILD = 0; then
20298 for gltype in ptrdiff_t size_t ; do
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20300 $as_echo_n "checking for bit size of $gltype... " >&6; }
20301 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20302 $as_echo_n "(cached) " >&6
20303 else
20304 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20305 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20306 included before <wchar.h>. */
20307 #include <stddef.h>
20308 #include <signal.h>
20309 #if HAVE_WCHAR_H
20310 # include <stdio.h>
20311 # include <time.h>
20312 # include <wchar.h>
20313 #endif
20315 #include <limits.h>"; then :
20317 else
20318 result=unknown
20321 eval gl_cv_bitsizeof_${gltype}=\$result
20324 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20326 $as_echo "$ac_res" >&6; }
20327 eval result=\$gl_cv_bitsizeof_${gltype}
20328 if test $result = unknown; then
20329 result=0
20331 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20332 cat >>confdefs.h <<_ACEOF
20333 #define BITSIZEOF_${GLTYPE} $result
20334 _ACEOF
20336 eval BITSIZEOF_${GLTYPE}=\$result
20337 done
20343 for gltype in sig_atomic_t wchar_t wint_t ; do
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20345 $as_echo_n "checking for bit size of $gltype... " >&6; }
20346 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20347 $as_echo_n "(cached) " >&6
20348 else
20349 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20350 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20351 included before <wchar.h>. */
20352 #include <stddef.h>
20353 #include <signal.h>
20354 #if HAVE_WCHAR_H
20355 # include <stdio.h>
20356 # include <time.h>
20357 # include <wchar.h>
20358 #endif
20360 #include <limits.h>"; then :
20362 else
20363 result=unknown
20366 eval gl_cv_bitsizeof_${gltype}=\$result
20369 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20371 $as_echo "$ac_res" >&6; }
20372 eval result=\$gl_cv_bitsizeof_${gltype}
20373 if test $result = unknown; then
20374 result=0
20376 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20377 cat >>confdefs.h <<_ACEOF
20378 #define BITSIZEOF_${GLTYPE} $result
20379 _ACEOF
20381 eval BITSIZEOF_${GLTYPE}=\$result
20382 done
20387 for gltype in sig_atomic_t wchar_t wint_t ; do
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20389 $as_echo_n "checking whether $gltype is signed... " >&6; }
20390 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20391 $as_echo_n "(cached) " >&6
20392 else
20393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20394 /* end confdefs.h. */
20396 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20397 included before <wchar.h>. */
20398 #include <stddef.h>
20399 #include <signal.h>
20400 #if HAVE_WCHAR_H
20401 # include <stdio.h>
20402 # include <time.h>
20403 # include <wchar.h>
20404 #endif
20406 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20408 main ()
20412 return 0;
20414 _ACEOF
20415 if ac_fn_c_try_compile "$LINENO"; then :
20416 result=yes
20417 else
20418 result=no
20420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20421 eval gl_cv_type_${gltype}_signed=\$result
20424 eval ac_res=\$gl_cv_type_${gltype}_signed
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20426 $as_echo "$ac_res" >&6; }
20427 eval result=\$gl_cv_type_${gltype}_signed
20428 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20429 if test "$result" = yes; then
20430 cat >>confdefs.h <<_ACEOF
20431 #define HAVE_SIGNED_${GLTYPE} 1
20432 _ACEOF
20434 eval HAVE_SIGNED_${GLTYPE}=1
20435 else
20436 eval HAVE_SIGNED_${GLTYPE}=0
20438 done
20441 gl_cv_type_ptrdiff_t_signed=yes
20442 gl_cv_type_size_t_signed=no
20443 if test $APPLE_UNIVERSAL_BUILD = 0; then
20446 for gltype in ptrdiff_t size_t ; do
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20448 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20449 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20450 $as_echo_n "(cached) " >&6
20451 else
20452 eval gl_cv_type_${gltype}_suffix=no
20453 eval result=\$gl_cv_type_${gltype}_signed
20454 if test "$result" = yes; then
20455 glsufu=
20456 else
20457 glsufu=u
20459 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20460 case $glsuf in
20461 '') gltype1='int';;
20462 l) gltype1='long int';;
20463 ll) gltype1='long long int';;
20464 i64) gltype1='__int64';;
20465 u) gltype1='unsigned int';;
20466 ul) gltype1='unsigned long int';;
20467 ull) gltype1='unsigned long long int';;
20468 ui64)gltype1='unsigned __int64';;
20469 esac
20470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20471 /* end confdefs.h. */
20473 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20474 included before <wchar.h>. */
20475 #include <stddef.h>
20476 #include <signal.h>
20477 #if HAVE_WCHAR_H
20478 # include <stdio.h>
20479 # include <time.h>
20480 # include <wchar.h>
20481 #endif
20483 extern $gltype foo;
20484 extern $gltype1 foo;
20486 main ()
20490 return 0;
20492 _ACEOF
20493 if ac_fn_c_try_compile "$LINENO"; then :
20494 eval gl_cv_type_${gltype}_suffix=\$glsuf
20496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20497 eval result=\$gl_cv_type_${gltype}_suffix
20498 test "$result" != no && break
20499 done
20501 eval ac_res=\$gl_cv_type_${gltype}_suffix
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20503 $as_echo "$ac_res" >&6; }
20504 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20505 eval result=\$gl_cv_type_${gltype}_suffix
20506 test "$result" = no && result=
20507 eval ${GLTYPE}_SUFFIX=\$result
20508 cat >>confdefs.h <<_ACEOF
20509 #define ${GLTYPE}_SUFFIX $result
20510 _ACEOF
20512 done
20518 for gltype in sig_atomic_t wchar_t wint_t ; do
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20520 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20521 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20522 $as_echo_n "(cached) " >&6
20523 else
20524 eval gl_cv_type_${gltype}_suffix=no
20525 eval result=\$gl_cv_type_${gltype}_signed
20526 if test "$result" = yes; then
20527 glsufu=
20528 else
20529 glsufu=u
20531 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20532 case $glsuf in
20533 '') gltype1='int';;
20534 l) gltype1='long int';;
20535 ll) gltype1='long long int';;
20536 i64) gltype1='__int64';;
20537 u) gltype1='unsigned int';;
20538 ul) gltype1='unsigned long int';;
20539 ull) gltype1='unsigned long long int';;
20540 ui64)gltype1='unsigned __int64';;
20541 esac
20542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543 /* end confdefs.h. */
20545 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20546 included before <wchar.h>. */
20547 #include <stddef.h>
20548 #include <signal.h>
20549 #if HAVE_WCHAR_H
20550 # include <stdio.h>
20551 # include <time.h>
20552 # include <wchar.h>
20553 #endif
20555 extern $gltype foo;
20556 extern $gltype1 foo;
20558 main ()
20562 return 0;
20564 _ACEOF
20565 if ac_fn_c_try_compile "$LINENO"; then :
20566 eval gl_cv_type_${gltype}_suffix=\$glsuf
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 eval result=\$gl_cv_type_${gltype}_suffix
20570 test "$result" != no && break
20571 done
20573 eval ac_res=\$gl_cv_type_${gltype}_suffix
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20575 $as_echo "$ac_res" >&6; }
20576 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20577 eval result=\$gl_cv_type_${gltype}_suffix
20578 test "$result" = no && result=
20579 eval ${GLTYPE}_SUFFIX=\$result
20580 cat >>confdefs.h <<_ACEOF
20581 #define ${GLTYPE}_SUFFIX $result
20582 _ACEOF
20584 done
20588 if test $BITSIZEOF_WINT_T -lt 32; then
20589 BITSIZEOF_WINT_T=32
20592 STDINT_H=stdint.h
20595 if test -n "$STDINT_H"; then
20596 GL_GENERATE_STDINT_H_TRUE=
20597 GL_GENERATE_STDINT_H_FALSE='#'
20598 else
20599 GL_GENERATE_STDINT_H_TRUE='#'
20600 GL_GENERATE_STDINT_H_FALSE=
20607 GNULIB_IMAXABS=0;
20608 GNULIB_IMAXDIV=0;
20609 GNULIB_STRTOIMAX=0;
20610 GNULIB_STRTOUMAX=0;
20611 HAVE_DECL_IMAXABS=1;
20612 HAVE_DECL_IMAXDIV=1;
20613 HAVE_DECL_STRTOIMAX=1;
20614 HAVE_DECL_STRTOUMAX=1;
20615 REPLACE_STRTOIMAX=0;
20616 INT32_MAX_LT_INTMAX_MAX=1;
20617 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20618 PRI_MACROS_BROKEN=0;
20619 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20620 UINT32_MAX_LT_UINTMAX_MAX=1;
20621 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20637 if test $gl_cv_have_include_next = yes; then
20638 gl_cv_next_inttypes_h='<'inttypes.h'>'
20639 else
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20641 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20642 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20643 $as_echo_n "(cached) " >&6
20644 else
20646 if test $ac_cv_header_inttypes_h = yes; then
20649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20650 /* end confdefs.h. */
20651 #include <inttypes.h>
20653 _ACEOF
20654 case "$host_os" in
20655 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20656 *) gl_absname_cpp="$ac_cpp" ;;
20657 esac
20659 case "$host_os" in
20660 mingw*)
20661 gl_dirsep_regex='[/\\]'
20664 gl_dirsep_regex='\/'
20666 esac
20667 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20669 gl_header_literal_regex=`echo 'inttypes.h' \
20670 | sed -e "$gl_make_literal_regex_sed"`
20671 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20672 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20673 s|^/[^/]|//&|
20677 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20678 sed -n "$gl_absolute_header_sed"`'"'
20679 else
20680 gl_cv_next_inttypes_h='<'inttypes.h'>'
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20686 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20688 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
20690 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20691 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20692 gl_next_as_first_directive='<'inttypes.h'>'
20693 else
20694 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20695 gl_next_as_first_directive=$gl_cv_next_inttypes_h
20697 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
20709 case "$host_os" in
20710 mingw*)
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20712 $as_echo_n "checking for 64-bit off_t... " >&6; }
20713 if test "${gl_cv_type_off_t_64+set}" = set; then :
20714 $as_echo_n "(cached) " >&6
20715 else
20716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20717 /* end confdefs.h. */
20718 #include <sys/types.h>
20719 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20722 main ()
20726 return 0;
20728 _ACEOF
20729 if ac_fn_c_try_compile "$LINENO"; then :
20730 gl_cv_type_off_t_64=yes
20731 else
20732 gl_cv_type_off_t_64=no
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20738 $as_echo "$gl_cv_type_off_t_64" >&6; }
20739 if test $gl_cv_type_off_t_64 = no; then
20740 WINDOWS_64_BIT_OFF_T=1
20741 else
20742 WINDOWS_64_BIT_OFF_T=0
20744 WINDOWS_64_BIT_ST_SIZE=1
20747 WINDOWS_64_BIT_OFF_T=0
20748 WINDOWS_64_BIT_ST_SIZE=0
20750 esac
20755 GNULIB_FFSL=0;
20756 GNULIB_FFSLL=0;
20757 GNULIB_MEMCHR=0;
20758 GNULIB_MEMMEM=0;
20759 GNULIB_MEMPCPY=0;
20760 GNULIB_MEMRCHR=0;
20761 GNULIB_RAWMEMCHR=0;
20762 GNULIB_STPCPY=0;
20763 GNULIB_STPNCPY=0;
20764 GNULIB_STRCHRNUL=0;
20765 GNULIB_STRDUP=0;
20766 GNULIB_STRNCAT=0;
20767 GNULIB_STRNDUP=0;
20768 GNULIB_STRNLEN=0;
20769 GNULIB_STRPBRK=0;
20770 GNULIB_STRSEP=0;
20771 GNULIB_STRSTR=0;
20772 GNULIB_STRCASESTR=0;
20773 GNULIB_STRTOK_R=0;
20774 GNULIB_MBSLEN=0;
20775 GNULIB_MBSNLEN=0;
20776 GNULIB_MBSCHR=0;
20777 GNULIB_MBSRCHR=0;
20778 GNULIB_MBSSTR=0;
20779 GNULIB_MBSCASECMP=0;
20780 GNULIB_MBSNCASECMP=0;
20781 GNULIB_MBSPCASECMP=0;
20782 GNULIB_MBSCASESTR=0;
20783 GNULIB_MBSCSPN=0;
20784 GNULIB_MBSPBRK=0;
20785 GNULIB_MBSSPN=0;
20786 GNULIB_MBSSEP=0;
20787 GNULIB_MBSTOK_R=0;
20788 GNULIB_STRERROR=0;
20789 GNULIB_STRERROR_R=0;
20790 GNULIB_STRSIGNAL=0;
20791 GNULIB_STRVERSCMP=0;
20792 HAVE_MBSLEN=0;
20793 HAVE_FFSL=1;
20794 HAVE_FFSLL=1;
20795 HAVE_MEMCHR=1;
20796 HAVE_DECL_MEMMEM=1;
20797 HAVE_MEMPCPY=1;
20798 HAVE_DECL_MEMRCHR=1;
20799 HAVE_RAWMEMCHR=1;
20800 HAVE_STPCPY=1;
20801 HAVE_STPNCPY=1;
20802 HAVE_STRCHRNUL=1;
20803 HAVE_DECL_STRDUP=1;
20804 HAVE_DECL_STRNDUP=1;
20805 HAVE_DECL_STRNLEN=1;
20806 HAVE_STRPBRK=1;
20807 HAVE_STRSEP=1;
20808 HAVE_STRCASESTR=1;
20809 HAVE_DECL_STRTOK_R=1;
20810 HAVE_DECL_STRERROR_R=1;
20811 HAVE_DECL_STRSIGNAL=1;
20812 HAVE_STRVERSCMP=1;
20813 REPLACE_MEMCHR=0;
20814 REPLACE_MEMMEM=0;
20815 REPLACE_STPNCPY=0;
20816 REPLACE_STRDUP=0;
20817 REPLACE_STRSTR=0;
20818 REPLACE_STRCASESTR=0;
20819 REPLACE_STRCHRNUL=0;
20820 REPLACE_STRERROR=0;
20821 REPLACE_STRERROR_R=0;
20822 REPLACE_STRNCAT=0;
20823 REPLACE_STRNDUP=0;
20824 REPLACE_STRNLEN=0;
20825 REPLACE_STRSIGNAL=0;
20826 REPLACE_STRTOK_R=0;
20827 UNDEFINE_STRTOK_R=0;
20829 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20830 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
20831 ac_have_decl=1
20832 else
20833 ac_have_decl=0
20836 cat >>confdefs.h <<_ACEOF
20837 #define HAVE_DECL_MEMRCHR $ac_have_decl
20838 _ACEOF
20843 GNULIB_MKTIME=0;
20844 GNULIB_NANOSLEEP=0;
20845 GNULIB_STRPTIME=0;
20846 GNULIB_TIMEGM=0;
20847 GNULIB_TIME_R=0;
20848 HAVE_DECL_LOCALTIME_R=1;
20849 HAVE_NANOSLEEP=1;
20850 HAVE_STRPTIME=1;
20851 HAVE_TIMEGM=1;
20852 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20853 REPLACE_MKTIME=GNULIB_PORTCHECK;
20854 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20855 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20857 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20858 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
20859 ac_have_decl=1
20860 else
20861 ac_have_decl=0
20864 cat >>confdefs.h <<_ACEOF
20865 #define HAVE_DECL_ALARM $ac_have_decl
20866 _ACEOF
20871 GNULIB_PSELECT=0;
20872 GNULIB_SELECT=0;
20873 HAVE_PSELECT=1;
20874 REPLACE_PSELECT=0;
20875 REPLACE_SELECT=0;
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20883 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20884 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20885 $as_echo_n "(cached) " >&6
20886 else
20888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20889 /* end confdefs.h. */
20890 #include <sys/select.h>
20892 main ()
20894 struct timeval b;
20896 return 0;
20898 _ACEOF
20899 if ac_fn_c_try_compile "$LINENO"; then :
20900 gl_cv_header_sys_select_h_selfcontained=yes
20901 else
20902 gl_cv_header_sys_select_h_selfcontained=no
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20907 /* end confdefs.h. */
20908 #include <sys/select.h>
20910 main ()
20912 int memset; int bzero;
20914 return 0;
20917 _ACEOF
20918 if ac_fn_c_try_compile "$LINENO"; then :
20919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h. */
20921 #include <sys/select.h>
20923 main ()
20926 #undef memset
20927 #define memset nonexistent_memset
20928 extern
20929 #ifdef __cplusplus
20931 #endif
20932 void *memset (void *, int, unsigned long);
20933 #undef bzero
20934 #define bzero nonexistent_bzero
20935 extern
20936 #ifdef __cplusplus
20938 #endif
20939 void bzero (void *, unsigned long);
20940 fd_set fds;
20941 FD_ZERO (&fds);
20944 return 0;
20947 _ACEOF
20948 if ac_fn_c_try_link "$LINENO"; then :
20950 else
20951 gl_cv_header_sys_select_h_selfcontained=no
20953 rm -f core conftest.err conftest.$ac_objext \
20954 conftest$ac_exeext conftest.$ac_ext
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20962 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20972 if test $gl_cv_have_include_next = yes; then
20973 gl_cv_next_sys_select_h='<'sys/select.h'>'
20974 else
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20976 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20977 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20978 $as_echo_n "(cached) " >&6
20979 else
20981 if test $ac_cv_header_sys_select_h = yes; then
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h. */
20986 #include <sys/select.h>
20988 _ACEOF
20989 case "$host_os" in
20990 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20991 *) gl_absname_cpp="$ac_cpp" ;;
20992 esac
20994 case "$host_os" in
20995 mingw*)
20996 gl_dirsep_regex='[/\\]'
20999 gl_dirsep_regex='\/'
21001 esac
21002 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21004 gl_header_literal_regex=`echo 'sys/select.h' \
21005 | sed -e "$gl_make_literal_regex_sed"`
21006 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21007 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21008 s|^/[^/]|//&|
21012 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21013 sed -n "$gl_absolute_header_sed"`'"'
21014 else
21015 gl_cv_next_sys_select_h='<'sys/select.h'>'
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21021 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21023 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21025 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21027 gl_next_as_first_directive='<'sys/select.h'>'
21028 else
21029 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21030 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21032 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21037 if test $ac_cv_header_sys_select_h = yes; then
21038 HAVE_SYS_SELECT_H=1
21039 else
21040 HAVE_SYS_SELECT_H=0
21047 if test $ac_cv_header_sys_socket_h != yes; then
21048 for ac_header in winsock2.h
21049 do :
21050 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21051 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
21052 cat >>confdefs.h <<_ACEOF
21053 #define HAVE_WINSOCK2_H 1
21054 _ACEOF
21058 done
21061 if test "$ac_cv_header_winsock2_h" = yes; then
21062 HAVE_WINSOCK2_H=1
21063 UNISTD_H_HAVE_WINSOCK2_H=1
21064 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21065 else
21066 HAVE_WINSOCK2_H=0
21076 GNULIB_PTHREAD_SIGMASK=0;
21077 GNULIB_RAISE=0;
21078 GNULIB_SIGNAL_H_SIGPIPE=0;
21079 GNULIB_SIGPROCMASK=0;
21080 GNULIB_SIGACTION=0;
21081 HAVE_POSIX_SIGNALBLOCKING=1;
21082 HAVE_PTHREAD_SIGMASK=1;
21083 HAVE_RAISE=1;
21084 HAVE_SIGSET_T=1;
21085 HAVE_SIGINFO_T=1;
21086 HAVE_SIGACTION=1;
21087 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
21089 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
21091 HAVE_SIGHANDLER_T=1;
21092 REPLACE_PTHREAD_SIGMASK=0;
21093 REPLACE_RAISE=0;
21101 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21102 #include <signal.h>
21103 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21104 #include <sys/types.h>
21107 if test "x$ac_cv_type_sigset_t" = x""yes; then :
21109 cat >>confdefs.h <<_ACEOF
21110 #define HAVE_SIGSET_T 1
21111 _ACEOF
21113 gl_cv_type_sigset_t=yes
21114 else
21115 gl_cv_type_sigset_t=no
21118 if test $gl_cv_type_sigset_t != yes; then
21119 HAVE_SIGSET_T=0
21124 if test $ac_cv_header_sys_socket_h = no; then
21125 for ac_header in ws2tcpip.h
21126 do :
21127 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21128 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21129 cat >>confdefs.h <<_ACEOF
21130 #define HAVE_WS2TCPIP_H 1
21131 _ACEOF
21135 done
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21140 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21141 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21142 $as_echo_n "(cached) " >&6
21143 else
21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h. */
21147 #include <stdbool.h>
21148 #ifndef bool
21149 "error: bool is not defined"
21150 #endif
21151 #ifndef false
21152 "error: false is not defined"
21153 #endif
21154 #if false
21155 "error: false is not 0"
21156 #endif
21157 #ifndef true
21158 "error: true is not defined"
21159 #endif
21160 #if true != 1
21161 "error: true is not 1"
21162 #endif
21163 #ifndef __bool_true_false_are_defined
21164 "error: __bool_true_false_are_defined is not defined"
21165 #endif
21167 struct s { _Bool s: 1; _Bool t; } s;
21169 char a[true == 1 ? 1 : -1];
21170 char b[false == 0 ? 1 : -1];
21171 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21172 char d[(bool) 0.5 == true ? 1 : -1];
21173 /* See body of main program for 'e'. */
21174 char f[(_Bool) 0.0 == false ? 1 : -1];
21175 char g[true];
21176 char h[sizeof (_Bool)];
21177 char i[sizeof s.t];
21178 enum { j = false, k = true, l = false * true, m = true * 256 };
21179 /* The following fails for
21180 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21181 _Bool n[m];
21182 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21183 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21184 /* Catch a bug in an HP-UX C compiler. See
21185 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21186 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21188 _Bool q = true;
21189 _Bool *pq = &q;
21192 main ()
21195 bool e = &s;
21196 *pq |= q;
21197 *pq |= ! q;
21198 /* Refer to every declared value, to avoid compiler optimizations. */
21199 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21200 + !m + !n + !o + !p + !q + !pq);
21203 return 0;
21205 _ACEOF
21206 if ac_fn_c_try_compile "$LINENO"; then :
21207 ac_cv_header_stdbool_h=yes
21208 else
21209 ac_cv_header_stdbool_h=no
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21214 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21215 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21216 if test "x$ac_cv_type__Bool" = x""yes; then :
21218 cat >>confdefs.h <<_ACEOF
21219 #define HAVE__BOOL 1
21220 _ACEOF
21227 REPLACE_NULL=0;
21228 HAVE_WCHAR_T=1;
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21232 $as_echo_n "checking for wchar_t... " >&6; }
21233 if test "${gt_cv_c_wchar_t+set}" = set; then :
21234 $as_echo_n "(cached) " >&6
21235 else
21236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21237 /* end confdefs.h. */
21238 #include <stddef.h>
21239 wchar_t foo = (wchar_t)'\0';
21241 main ()
21245 return 0;
21247 _ACEOF
21248 if ac_fn_c_try_compile "$LINENO"; then :
21249 gt_cv_c_wchar_t=yes
21250 else
21251 gt_cv_c_wchar_t=no
21253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21256 $as_echo "$gt_cv_c_wchar_t" >&6; }
21257 if test $gt_cv_c_wchar_t = yes; then
21259 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21264 GNULIB_DPRINTF=0;
21265 GNULIB_FCLOSE=0;
21266 GNULIB_FDOPEN=0;
21267 GNULIB_FFLUSH=0;
21268 GNULIB_FGETC=0;
21269 GNULIB_FGETS=0;
21270 GNULIB_FOPEN=0;
21271 GNULIB_FPRINTF=0;
21272 GNULIB_FPRINTF_POSIX=0;
21273 GNULIB_FPURGE=0;
21274 GNULIB_FPUTC=0;
21275 GNULIB_FPUTS=0;
21276 GNULIB_FREAD=0;
21277 GNULIB_FREOPEN=0;
21278 GNULIB_FSCANF=0;
21279 GNULIB_FSEEK=0;
21280 GNULIB_FSEEKO=0;
21281 GNULIB_FTELL=0;
21282 GNULIB_FTELLO=0;
21283 GNULIB_FWRITE=0;
21284 GNULIB_GETC=0;
21285 GNULIB_GETCHAR=0;
21286 GNULIB_GETDELIM=0;
21287 GNULIB_GETLINE=0;
21288 GNULIB_OBSTACK_PRINTF=0;
21289 GNULIB_OBSTACK_PRINTF_POSIX=0;
21290 GNULIB_PCLOSE=0;
21291 GNULIB_PERROR=0;
21292 GNULIB_POPEN=0;
21293 GNULIB_PRINTF=0;
21294 GNULIB_PRINTF_POSIX=0;
21295 GNULIB_PUTC=0;
21296 GNULIB_PUTCHAR=0;
21297 GNULIB_PUTS=0;
21298 GNULIB_REMOVE=0;
21299 GNULIB_RENAME=0;
21300 GNULIB_RENAMEAT=0;
21301 GNULIB_SCANF=0;
21302 GNULIB_SNPRINTF=0;
21303 GNULIB_SPRINTF_POSIX=0;
21304 GNULIB_STDIO_H_NONBLOCKING=0;
21305 GNULIB_STDIO_H_SIGPIPE=0;
21306 GNULIB_TMPFILE=0;
21307 GNULIB_VASPRINTF=0;
21308 GNULIB_VFSCANF=0;
21309 GNULIB_VSCANF=0;
21310 GNULIB_VDPRINTF=0;
21311 GNULIB_VFPRINTF=0;
21312 GNULIB_VFPRINTF_POSIX=0;
21313 GNULIB_VPRINTF=0;
21314 GNULIB_VPRINTF_POSIX=0;
21315 GNULIB_VSNPRINTF=0;
21316 GNULIB_VSPRINTF_POSIX=0;
21317 HAVE_DECL_FPURGE=1;
21318 HAVE_DECL_FSEEKO=1;
21319 HAVE_DECL_FTELLO=1;
21320 HAVE_DECL_GETDELIM=1;
21321 HAVE_DECL_GETLINE=1;
21322 HAVE_DECL_OBSTACK_PRINTF=1;
21323 HAVE_DECL_SNPRINTF=1;
21324 HAVE_DECL_VSNPRINTF=1;
21325 HAVE_DPRINTF=1;
21326 HAVE_FSEEKO=1;
21327 HAVE_FTELLO=1;
21328 HAVE_PCLOSE=1;
21329 HAVE_POPEN=1;
21330 HAVE_RENAMEAT=1;
21331 HAVE_VASPRINTF=1;
21332 HAVE_VDPRINTF=1;
21333 REPLACE_DPRINTF=0;
21334 REPLACE_FCLOSE=0;
21335 REPLACE_FDOPEN=0;
21336 REPLACE_FFLUSH=0;
21337 REPLACE_FOPEN=0;
21338 REPLACE_FPRINTF=0;
21339 REPLACE_FPURGE=0;
21340 REPLACE_FREOPEN=0;
21341 REPLACE_FSEEK=0;
21342 REPLACE_FSEEKO=0;
21343 REPLACE_FTELL=0;
21344 REPLACE_FTELLO=0;
21345 REPLACE_GETDELIM=0;
21346 REPLACE_GETLINE=0;
21347 REPLACE_OBSTACK_PRINTF=0;
21348 REPLACE_PERROR=0;
21349 REPLACE_POPEN=0;
21350 REPLACE_PRINTF=0;
21351 REPLACE_REMOVE=0;
21352 REPLACE_RENAME=0;
21353 REPLACE_RENAMEAT=0;
21354 REPLACE_SNPRINTF=0;
21355 REPLACE_SPRINTF=0;
21356 REPLACE_STDIO_READ_FUNCS=0;
21357 REPLACE_STDIO_WRITE_FUNCS=0;
21358 REPLACE_TMPFILE=0;
21359 REPLACE_VASPRINTF=0;
21360 REPLACE_VDPRINTF=0;
21361 REPLACE_VFPRINTF=0;
21362 REPLACE_VPRINTF=0;
21363 REPLACE_VSNPRINTF=0;
21364 REPLACE_VSPRINTF=0;
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21367 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21368 if test "${ac_cv_struct_tm+set}" = set; then :
21369 $as_echo_n "(cached) " >&6
21370 else
21371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21372 /* end confdefs.h. */
21373 #include <sys/types.h>
21374 #include <time.h>
21377 main ()
21379 struct tm tm;
21380 int *p = &tm.tm_sec;
21381 return !p;
21383 return 0;
21385 _ACEOF
21386 if ac_fn_c_try_compile "$LINENO"; then :
21387 ac_cv_struct_tm=time.h
21388 else
21389 ac_cv_struct_tm=sys/time.h
21391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21394 $as_echo "$ac_cv_struct_tm" >&6; }
21395 if test $ac_cv_struct_tm = sys/time.h; then
21397 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21401 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21402 #include <$ac_cv_struct_tm>
21405 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21407 cat >>confdefs.h <<_ACEOF
21408 #define HAVE_STRUCT_TM_TM_ZONE 1
21409 _ACEOF
21414 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21416 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21418 else
21419 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21421 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21422 ac_have_decl=1
21423 else
21424 ac_have_decl=0
21427 cat >>confdefs.h <<_ACEOF
21428 #define HAVE_DECL_TZNAME $ac_have_decl
21429 _ACEOF
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21432 $as_echo_n "checking for tzname... " >&6; }
21433 if test "${ac_cv_var_tzname+set}" = set; then :
21434 $as_echo_n "(cached) " >&6
21435 else
21436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21437 /* end confdefs.h. */
21438 #include <time.h>
21439 #if !HAVE_DECL_TZNAME
21440 extern char *tzname[];
21441 #endif
21444 main ()
21446 return tzname[0][0];
21448 return 0;
21450 _ACEOF
21451 if ac_fn_c_try_link "$LINENO"; then :
21452 ac_cv_var_tzname=yes
21453 else
21454 ac_cv_var_tzname=no
21456 rm -f core conftest.err conftest.$ac_objext \
21457 conftest$ac_exeext conftest.$ac_ext
21459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21460 $as_echo "$ac_cv_var_tzname" >&6; }
21461 if test $ac_cv_var_tzname = yes; then
21463 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21469 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21471 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21473 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21489 if test $gl_cv_have_include_next = yes; then
21490 gl_cv_next_string_h='<'string.h'>'
21491 else
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21493 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21494 if test "${gl_cv_next_string_h+set}" = set; then :
21495 $as_echo_n "(cached) " >&6
21496 else
21498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21499 /* end confdefs.h. */
21500 #include <string.h>
21502 _ACEOF
21503 case "$host_os" in
21504 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21505 *) gl_absname_cpp="$ac_cpp" ;;
21506 esac
21508 case "$host_os" in
21509 mingw*)
21510 gl_dirsep_regex='[/\\]'
21513 gl_dirsep_regex='\/'
21515 esac
21516 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21518 gl_header_literal_regex=`echo 'string.h' \
21519 | sed -e "$gl_make_literal_regex_sed"`
21520 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21521 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21522 s|^/[^/]|//&|
21526 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21527 sed -n "$gl_absolute_header_sed"`'"'
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21532 $as_echo "$gl_cv_next_string_h" >&6; }
21534 NEXT_STRING_H=$gl_cv_next_string_h
21536 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21538 gl_next_as_first_directive='<'string.h'>'
21539 else
21540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21541 gl_next_as_first_directive=$gl_cv_next_string_h
21543 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21553 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21554 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21555 ac_have_decl=1
21556 else
21557 ac_have_decl=0
21560 cat >>confdefs.h <<_ACEOF
21561 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21562 _ACEOF
21566 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21567 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21568 ac_have_decl=1
21569 else
21570 ac_have_decl=0
21573 cat >>confdefs.h <<_ACEOF
21574 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21575 _ACEOF
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21580 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21581 if test "${ac_cv_header_stat_broken+set}" = set; then :
21582 $as_echo_n "(cached) " >&6
21583 else
21584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585 /* end confdefs.h. */
21586 #include <sys/types.h>
21587 #include <sys/stat.h>
21589 #if defined S_ISBLK && defined S_IFDIR
21590 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21591 #endif
21593 #if defined S_ISBLK && defined S_IFCHR
21594 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21595 #endif
21597 #if defined S_ISLNK && defined S_IFREG
21598 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21599 #endif
21601 #if defined S_ISSOCK && defined S_IFREG
21602 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21603 #endif
21605 _ACEOF
21606 if ac_fn_c_try_compile "$LINENO"; then :
21607 ac_cv_header_stat_broken=no
21608 else
21609 ac_cv_header_stat_broken=yes
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21614 $as_echo "$ac_cv_header_stat_broken" >&6; }
21615 if test $ac_cv_header_stat_broken = yes; then
21617 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21626 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21627 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21628 $as_echo_n "(cached) " >&6
21629 else
21630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631 /* end confdefs.h. */
21632 #include <time.h>
21635 main ()
21637 static struct timespec x; x.tv_sec = x.tv_nsec;
21639 return 0;
21641 _ACEOF
21642 if ac_fn_c_try_compile "$LINENO"; then :
21643 gl_cv_sys_struct_timespec_in_time_h=yes
21644 else
21645 gl_cv_sys_struct_timespec_in_time_h=no
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21650 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21652 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21653 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21654 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21655 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21656 TIME_H_DEFINES_STRUCT_TIMESPEC=1
21657 else
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21659 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21660 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21661 $as_echo_n "(cached) " >&6
21662 else
21663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21664 /* end confdefs.h. */
21665 #include <sys/time.h>
21668 main ()
21670 static struct timespec x; x.tv_sec = x.tv_nsec;
21672 return 0;
21674 _ACEOF
21675 if ac_fn_c_try_compile "$LINENO"; then :
21676 gl_cv_sys_struct_timespec_in_sys_time_h=yes
21677 else
21678 gl_cv_sys_struct_timespec_in_sys_time_h=no
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21683 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21684 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21685 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21686 else
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21688 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21689 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21691 else
21692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21693 /* end confdefs.h. */
21694 #include <pthread.h>
21697 main ()
21699 static struct timespec x; x.tv_sec = x.tv_nsec;
21701 return 0;
21703 _ACEOF
21704 if ac_fn_c_try_compile "$LINENO"; then :
21705 gl_cv_sys_struct_timespec_in_pthread_h=yes
21706 else
21707 gl_cv_sys_struct_timespec_in_pthread_h=no
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21712 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21713 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21714 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21733 if test $gl_cv_have_include_next = yes; then
21734 gl_cv_next_time_h='<'time.h'>'
21735 else
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21737 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21738 if test "${gl_cv_next_time_h+set}" = set; then :
21739 $as_echo_n "(cached) " >&6
21740 else
21742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21743 /* end confdefs.h. */
21744 #include <time.h>
21746 _ACEOF
21747 case "$host_os" in
21748 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21749 *) gl_absname_cpp="$ac_cpp" ;;
21750 esac
21752 case "$host_os" in
21753 mingw*)
21754 gl_dirsep_regex='[/\\]'
21757 gl_dirsep_regex='\/'
21759 esac
21760 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21762 gl_header_literal_regex=`echo 'time.h' \
21763 | sed -e "$gl_make_literal_regex_sed"`
21764 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21765 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21766 s|^/[^/]|//&|
21770 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21771 sed -n "$gl_absolute_header_sed"`'"'
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21776 $as_echo "$gl_cv_next_time_h" >&6; }
21778 NEXT_TIME_H=$gl_cv_next_time_h
21780 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21782 gl_next_as_first_directive='<'time.h'>'
21783 else
21784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21785 gl_next_as_first_directive=$gl_cv_next_time_h
21787 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21802 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21803 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
21804 ac_have_decl=1
21805 else
21806 ac_have_decl=0
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_DECL_UNSETENV $ac_have_decl
21811 _ACEOF
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21815 $as_echo_n "checking whether the utimes function works... " >&6; }
21816 if test "${gl_cv_func_working_utimes+set}" = set; then :
21817 $as_echo_n "(cached) " >&6
21818 else
21820 if test "$cross_compiling" = yes; then :
21821 gl_cv_func_working_utimes=no
21822 else
21823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21824 /* end confdefs.h. */
21826 #include <sys/types.h>
21827 #include <sys/stat.h>
21828 #include <fcntl.h>
21829 #include <sys/time.h>
21830 #include <time.h>
21831 #include <unistd.h>
21832 #include <stdlib.h>
21833 #include <stdio.h>
21834 #include <utime.h>
21836 static int
21837 inorder (time_t a, time_t b, time_t c)
21839 return a <= b && b <= c;
21843 main ()
21845 int result = 0;
21846 char const *file = "conftest.utimes";
21847 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21849 /* Test whether utimes() essentially works. */
21851 struct stat sbuf;
21852 FILE *f = fopen (file, "w");
21853 if (f == NULL)
21854 result |= 1;
21855 else if (fclose (f) != 0)
21856 result |= 1;
21857 else if (utimes (file, timeval) != 0)
21858 result |= 2;
21859 else if (lstat (file, &sbuf) != 0)
21860 result |= 1;
21861 else if (!(sbuf.st_atime == timeval[0].tv_sec
21862 && sbuf.st_mtime == timeval[1].tv_sec))
21863 result |= 4;
21864 if (unlink (file) != 0)
21865 result |= 1;
21868 /* Test whether utimes() with a NULL argument sets the file's timestamp
21869 to the current time. Use 'fstat' as well as 'time' to
21870 determine the "current" time, to accommodate NFS file systems
21871 if there is a time skew between the host and the NFS server. */
21873 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21874 if (fd < 0)
21875 result |= 1;
21876 else
21878 time_t t0, t2;
21879 struct stat st0, st1, st2;
21880 if (time (&t0) == (time_t) -1)
21881 result |= 1;
21882 else if (fstat (fd, &st0) != 0)
21883 result |= 1;
21884 else if (utimes (file, timeval) != 0)
21885 result |= 2;
21886 else if (utimes (file, NULL) != 0)
21887 result |= 8;
21888 else if (fstat (fd, &st1) != 0)
21889 result |= 1;
21890 else if (write (fd, "\n", 1) != 1)
21891 result |= 1;
21892 else if (fstat (fd, &st2) != 0)
21893 result |= 1;
21894 else if (time (&t2) == (time_t) -1)
21895 result |= 1;
21896 else
21898 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21899 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21900 if (! (st1.st_atime == st1.st_mtime))
21901 result |= 16;
21902 if (! (m_ok_POSIX || m_ok_NFS))
21903 result |= 32;
21905 if (close (fd) != 0)
21906 result |= 1;
21908 if (unlink (file) != 0)
21909 result |= 1;
21912 /* Test whether utimes() with a NULL argument works on read-only files. */
21914 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21915 if (fd < 0)
21916 result |= 1;
21917 else if (close (fd) != 0)
21918 result |= 1;
21919 else if (utimes (file, NULL) != 0)
21920 result |= 64;
21921 if (unlink (file) != 0)
21922 result |= 1;
21925 return result;
21928 _ACEOF
21929 if ac_fn_c_try_run "$LINENO"; then :
21930 gl_cv_func_working_utimes=yes
21931 else
21932 gl_cv_func_working_utimes=no
21934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21935 conftest.$ac_objext conftest.beam conftest.$ac_ext
21939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21940 $as_echo "$gl_cv_func_working_utimes" >&6; }
21942 if test $gl_cv_func_working_utimes = yes; then
21944 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21953 $as_echo_n "checking for struct utimbuf... " >&6; }
21954 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21955 $as_echo_n "(cached) " >&6
21956 else
21957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21959 #if HAVE_SYS_TIME_H
21960 #include <sys/time.h>
21961 #endif
21962 #include <time.h>
21963 #ifdef HAVE_UTIME_H
21964 #include <utime.h>
21965 #endif
21968 main ()
21970 static struct utimbuf x; x.actime = x.modtime;
21972 return 0;
21974 _ACEOF
21975 if ac_fn_c_try_compile "$LINENO"; then :
21976 gl_cv_sys_struct_utimbuf=yes
21977 else
21978 gl_cv_sys_struct_utimbuf=no
21980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21983 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21985 if test $gl_cv_sys_struct_utimbuf = yes; then
21987 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22002 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22003 if test "${ac_cv_type_getgroups+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22005 else
22006 if test "$cross_compiling" = yes; then :
22007 ac_cv_type_getgroups=cross
22008 else
22009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22010 /* end confdefs.h. */
22011 /* Thanks to Mike Rendell for this test. */
22012 $ac_includes_default
22013 #define NGID 256
22014 #undef MAX
22015 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22018 main ()
22020 gid_t gidset[NGID];
22021 int i, n;
22022 union { gid_t gval; long int lval; } val;
22024 val.lval = -1;
22025 for (i = 0; i < NGID; i++)
22026 gidset[i] = val.gval;
22027 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22028 gidset);
22029 /* Exit non-zero if getgroups seems to require an array of ints. This
22030 happens when gid_t is short int but getgroups modifies an array
22031 of ints. */
22032 return n > 0 && gidset[n] != val.gval;
22034 _ACEOF
22035 if ac_fn_c_try_run "$LINENO"; then :
22036 ac_cv_type_getgroups=gid_t
22037 else
22038 ac_cv_type_getgroups=int
22040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22041 conftest.$ac_objext conftest.beam conftest.$ac_ext
22044 if test $ac_cv_type_getgroups = cross; then
22045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22046 /* end confdefs.h. */
22047 #include <unistd.h>
22049 _ACEOF
22050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22051 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
22052 ac_cv_type_getgroups=gid_t
22053 else
22054 ac_cv_type_getgroups=int
22056 rm -f conftest*
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22061 $as_echo "$ac_cv_type_getgroups" >&6; }
22063 cat >>confdefs.h <<_ACEOF
22064 #define GETGROUPS_T $ac_cv_type_getgroups
22065 _ACEOF
22074 if false; then
22075 GL_COND_LIBTOOL_TRUE=
22076 GL_COND_LIBTOOL_FALSE='#'
22077 else
22078 GL_COND_LIBTOOL_TRUE='#'
22079 GL_COND_LIBTOOL_FALSE=
22082 gl_cond_libtool=false
22083 gl_libdeps=
22084 gl_ltlibdeps=
22085 gl_m4_base='m4'
22095 gl_source_base='lib'
22098 if test $ac_cv_func_alloca_works = no; then
22102 # Define an additional variable used in the Makefile substitution.
22103 if test $ac_cv_working_alloca_h = yes; then
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22105 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22106 if test "${gl_cv_rpl_alloca+set}" = set; then :
22107 $as_echo_n "(cached) " >&6
22108 else
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22113 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22114 Need own alloca
22115 #endif
22117 _ACEOF
22118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22119 $EGREP "Need own alloca" >/dev/null 2>&1; then :
22120 gl_cv_rpl_alloca=yes
22121 else
22122 gl_cv_rpl_alloca=no
22124 rm -f conftest*
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22129 $as_echo "$gl_cv_rpl_alloca" >&6; }
22130 if test $gl_cv_rpl_alloca = yes; then
22132 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22134 ALLOCA_H=alloca.h
22135 else
22136 ALLOCA_H=
22138 else
22139 ALLOCA_H=alloca.h
22142 if test -n "$ALLOCA_H"; then
22143 GL_GENERATE_ALLOCA_H_TRUE=
22144 GL_GENERATE_ALLOCA_H_FALSE='#'
22145 else
22146 GL_GENERATE_ALLOCA_H_TRUE='#'
22147 GL_GENERATE_ALLOCA_H_FALSE=
22155 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22156 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22158 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22159 # programs in the package would end up linked with that potentially-shared
22160 # library, inducing unnecessary run-time overhead.
22161 LIB_CLOCK_GETTIME=
22163 gl_saved_libs=$LIBS
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22165 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22166 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22167 $as_echo_n "(cached) " >&6
22168 else
22169 ac_func_search_save_LIBS=$LIBS
22170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22173 /* Override any GCC internal prototype to avoid an error.
22174 Use char because int might match the return type of a GCC
22175 builtin and then its argument prototype would still apply. */
22176 #ifdef __cplusplus
22177 extern "C"
22178 #endif
22179 char clock_gettime ();
22181 main ()
22183 return clock_gettime ();
22185 return 0;
22187 _ACEOF
22188 for ac_lib in '' rt posix4; do
22189 if test -z "$ac_lib"; then
22190 ac_res="none required"
22191 else
22192 ac_res=-l$ac_lib
22193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22195 if ac_fn_c_try_link "$LINENO"; then :
22196 ac_cv_search_clock_gettime=$ac_res
22198 rm -f core conftest.err conftest.$ac_objext \
22199 conftest$ac_exeext
22200 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22201 break
22203 done
22204 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22206 else
22207 ac_cv_search_clock_gettime=no
22209 rm conftest.$ac_ext
22210 LIBS=$ac_func_search_save_LIBS
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22213 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22214 ac_res=$ac_cv_search_clock_gettime
22215 if test "$ac_res" != no; then :
22216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22217 test "$ac_cv_search_clock_gettime" = "none required" ||
22218 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22221 for ac_func in clock_gettime clock_settime
22222 do :
22223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22224 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22225 eval as_val=\$$as_ac_var
22226 if test "x$as_val" = x""yes; then :
22227 cat >>confdefs.h <<_ACEOF
22228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22229 _ACEOF
22232 done
22234 LIBS=$gl_saved_libs
22241 cat >>confdefs.h <<_ACEOF
22242 #define GNULIB_CLOSE_STREAM 1
22243 _ACEOF
22274 if test $gl_cv_have_include_next = yes; then
22275 gl_cv_next_dirent_h='<'dirent.h'>'
22276 else
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22278 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22279 if test "${gl_cv_next_dirent_h+set}" = set; then :
22280 $as_echo_n "(cached) " >&6
22281 else
22283 if test $ac_cv_header_dirent_h = yes; then
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22288 #include <dirent.h>
22290 _ACEOF
22291 case "$host_os" in
22292 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22293 *) gl_absname_cpp="$ac_cpp" ;;
22294 esac
22296 case "$host_os" in
22297 mingw*)
22298 gl_dirsep_regex='[/\\]'
22301 gl_dirsep_regex='\/'
22303 esac
22304 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22306 gl_header_literal_regex=`echo 'dirent.h' \
22307 | sed -e "$gl_make_literal_regex_sed"`
22308 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22309 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22310 s|^/[^/]|//&|
22314 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22315 sed -n "$gl_absolute_header_sed"`'"'
22316 else
22317 gl_cv_next_dirent_h='<'dirent.h'>'
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22323 $as_echo "$gl_cv_next_dirent_h" >&6; }
22325 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22327 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22329 gl_next_as_first_directive='<'dirent.h'>'
22330 else
22331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22332 gl_next_as_first_directive=$gl_cv_next_dirent_h
22334 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22339 if test $ac_cv_header_dirent_h = yes; then
22340 HAVE_DIRENT_H=1
22341 else
22342 HAVE_DIRENT_H=0
22354 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22357 if test $HAVE_DUP2 = 1; then
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22359 $as_echo_n "checking whether dup2 works... " >&6; }
22360 if test "${gl_cv_func_dup2_works+set}" = set; then :
22361 $as_echo_n "(cached) " >&6
22362 else
22363 if test "$cross_compiling" = yes; then :
22364 case "$host_os" in
22365 mingw*) # on this platform, dup2 always returns 0 for success
22366 gl_cv_func_dup2_works="guessing no" ;;
22367 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22368 gl_cv_func_dup2_works="guessing no" ;;
22369 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22370 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22371 gl_cv_func_dup2_works="guessing no" ;;
22372 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22373 gl_cv_func_dup2_works="guessing no" ;;
22374 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22375 gl_cv_func_dup2_works="guessing no" ;;
22376 *) gl_cv_func_dup2_works="guessing yes" ;;
22377 esac
22378 else
22379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22382 #include <unistd.h>
22383 #include <fcntl.h>
22384 #include <errno.h>
22386 main ()
22388 int result = 0;
22389 #ifdef FD_CLOEXEC
22390 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22391 result |= 1;
22392 #endif
22393 if (dup2 (1, 1) == 0)
22394 result |= 2;
22395 #ifdef FD_CLOEXEC
22396 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22397 result |= 4;
22398 #endif
22399 close (0);
22400 if (dup2 (0, 0) != -1)
22401 result |= 8;
22402 /* Many gnulib modules require POSIX conformance of EBADF. */
22403 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22404 result |= 16;
22405 /* Flush out a cygwin core dump. */
22406 if (dup2 (2, -1) != -1 || errno != EBADF)
22407 result |= 32;
22408 return result;
22411 return 0;
22414 _ACEOF
22415 if ac_fn_c_try_run "$LINENO"; then :
22416 gl_cv_func_dup2_works=yes
22417 else
22418 gl_cv_func_dup2_works=no
22420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22421 conftest.$ac_objext conftest.beam conftest.$ac_ext
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22427 $as_echo "$gl_cv_func_dup2_works" >&6; }
22428 case "$gl_cv_func_dup2_works" in
22429 *yes) ;;
22431 REPLACE_DUP2=1
22433 esac
22437 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22446 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22455 GNULIB_DUP2=1
22467 GNULIB_ENVIRON=1
22477 LIB_EXECINFO=''
22478 EXECINFO_H='execinfo.h'
22480 if test $ac_cv_header_execinfo_h = yes; then
22481 gl_saved_libs=$LIBS
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22483 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22484 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22485 $as_echo_n "(cached) " >&6
22486 else
22487 ac_func_search_save_LIBS=$LIBS
22488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22491 /* Override any GCC internal prototype to avoid an error.
22492 Use char because int might match the return type of a GCC
22493 builtin and then its argument prototype would still apply. */
22494 #ifdef __cplusplus
22495 extern "C"
22496 #endif
22497 char backtrace_symbols_fd ();
22499 main ()
22501 return backtrace_symbols_fd ();
22503 return 0;
22505 _ACEOF
22506 for ac_lib in '' execinfo; do
22507 if test -z "$ac_lib"; then
22508 ac_res="none required"
22509 else
22510 ac_res=-l$ac_lib
22511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22513 if ac_fn_c_try_link "$LINENO"; then :
22514 ac_cv_search_backtrace_symbols_fd=$ac_res
22516 rm -f core conftest.err conftest.$ac_objext \
22517 conftest$ac_exeext
22518 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22519 break
22521 done
22522 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22524 else
22525 ac_cv_search_backtrace_symbols_fd=no
22527 rm conftest.$ac_ext
22528 LIBS=$ac_func_search_save_LIBS
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22531 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22532 ac_res=$ac_cv_search_backtrace_symbols_fd
22533 if test "$ac_res" != no; then :
22534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22535 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22536 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22539 LIBS=$gl_saved_libs
22540 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22543 if test -n "$EXECINFO_H"; then
22552 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22558 if test -n "$EXECINFO_H"; then
22559 GL_GENERATE_EXECINFO_H_TRUE=
22560 GL_GENERATE_EXECINFO_H_FALSE='#'
22561 else
22562 GL_GENERATE_EXECINFO_H_TRUE='#'
22563 GL_GENERATE_EXECINFO_H_FALSE=
22574 if test $ac_cv_func_faccessat = no; then
22575 HAVE_FACCESSAT=0
22578 if test $HAVE_FACCESSAT = 0; then
22587 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22590 for ac_func in access
22591 do :
22592 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22593 if test "x$ac_cv_func_access" = x""yes; then :
22594 cat >>confdefs.h <<_ACEOF
22595 #define HAVE_ACCESS 1
22596 _ACEOF
22599 done
22605 cat >>confdefs.h <<_ACEOF
22606 #define GNULIB_FACCESSAT 1
22607 _ACEOF
22615 GNULIB_FACCESSAT=1
22626 if test $ac_cv_func_fcntl = no; then
22630 if test $ac_cv_func_fcntl = no; then
22631 HAVE_FCNTL=0
22632 else
22633 REPLACE_FCNTL=1
22636 else
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22638 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22639 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22641 else
22642 if test "$cross_compiling" = yes; then :
22643 # Guess that it works on glibc systems
22644 case $host_os in #((
22645 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
22646 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
22647 esac
22648 else
22649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22650 /* end confdefs.h. */
22652 #include <fcntl.h>
22653 #include <errno.h>
22656 main ()
22658 int result = 0;
22659 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22660 if (errno != EINVAL) result |= 2;
22661 return result;
22664 return 0;
22666 _ACEOF
22667 if ac_fn_c_try_run "$LINENO"; then :
22668 gl_cv_func_fcntl_f_dupfd_works=yes
22669 else
22670 gl_cv_func_fcntl_f_dupfd_works=no
22672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22673 conftest.$ac_objext conftest.beam conftest.$ac_ext
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22678 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22679 case $gl_cv_func_fcntl_f_dupfd_works in
22680 *yes) ;;
22684 if test $ac_cv_func_fcntl = no; then
22685 HAVE_FCNTL=0
22686 else
22687 REPLACE_FCNTL=1
22691 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22693 esac
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22696 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22697 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22698 $as_echo_n "(cached) " >&6
22699 else
22700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h. */
22703 #include <fcntl.h>
22704 #ifndef F_DUPFD_CLOEXEC
22705 choke me
22706 #endif
22709 main ()
22713 return 0;
22715 _ACEOF
22716 if ac_fn_c_try_compile "$LINENO"; then :
22717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22718 /* end confdefs.h. */
22720 #ifdef __linux__
22721 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22722 it to support the semantics on older kernels that failed with EINVAL. */
22723 choke me
22724 #endif
22727 main ()
22731 return 0;
22733 _ACEOF
22734 if ac_fn_c_try_compile "$LINENO"; then :
22735 gl_cv_func_fcntl_f_dupfd_cloexec=yes
22736 else
22737 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 else
22741 gl_cv_func_fcntl_f_dupfd_cloexec=no
22743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22746 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22747 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22751 if test $ac_cv_func_fcntl = no; then
22752 HAVE_FCNTL=0
22753 else
22754 REPLACE_FCNTL=1
22761 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
22770 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
22778 GNULIB_FCNTL=1
22795 if test $gl_cv_have_include_next = yes; then
22796 gl_cv_next_fcntl_h='<'fcntl.h'>'
22797 else
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22799 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22800 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22801 $as_echo_n "(cached) " >&6
22802 else
22804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22805 /* end confdefs.h. */
22806 #include <fcntl.h>
22808 _ACEOF
22809 case "$host_os" in
22810 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22811 *) gl_absname_cpp="$ac_cpp" ;;
22812 esac
22814 case "$host_os" in
22815 mingw*)
22816 gl_dirsep_regex='[/\\]'
22819 gl_dirsep_regex='\/'
22821 esac
22822 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22824 gl_header_literal_regex=`echo 'fcntl.h' \
22825 | sed -e "$gl_make_literal_regex_sed"`
22826 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22827 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22828 s|^/[^/]|//&|
22832 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22833 sed -n "$gl_absolute_header_sed"`'"'
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22838 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22840 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22842 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22844 gl_next_as_first_directive='<'fcntl.h'>'
22845 else
22846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22847 gl_next_as_first_directive=$gl_cv_next_fcntl_h
22849 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22865 LIB_FDATASYNC=
22868 if test $ac_cv_have_decl_fdatasync = no; then
22869 HAVE_DECL_FDATASYNC=0
22870 for ac_func in fdatasync
22871 do :
22872 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22873 if test "x$ac_cv_func_fdatasync" = x""yes; then :
22874 cat >>confdefs.h <<_ACEOF
22875 #define HAVE_FDATASYNC 1
22876 _ACEOF
22879 done
22881 if test $ac_cv_func_fdatasync = no; then
22882 HAVE_FDATASYNC=0
22884 else
22885 gl_saved_libs=$LIBS
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22887 $as_echo_n "checking for library containing fdatasync... " >&6; }
22888 if test "${ac_cv_search_fdatasync+set}" = set; then :
22889 $as_echo_n "(cached) " >&6
22890 else
22891 ac_func_search_save_LIBS=$LIBS
22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h. */
22895 /* Override any GCC internal prototype to avoid an error.
22896 Use char because int might match the return type of a GCC
22897 builtin and then its argument prototype would still apply. */
22898 #ifdef __cplusplus
22899 extern "C"
22900 #endif
22901 char fdatasync ();
22903 main ()
22905 return fdatasync ();
22907 return 0;
22909 _ACEOF
22910 for ac_lib in '' rt posix4; do
22911 if test -z "$ac_lib"; then
22912 ac_res="none required"
22913 else
22914 ac_res=-l$ac_lib
22915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22917 if ac_fn_c_try_link "$LINENO"; then :
22918 ac_cv_search_fdatasync=$ac_res
22920 rm -f core conftest.err conftest.$ac_objext \
22921 conftest$ac_exeext
22922 if test "${ac_cv_search_fdatasync+set}" = set; then :
22923 break
22925 done
22926 if test "${ac_cv_search_fdatasync+set}" = set; then :
22928 else
22929 ac_cv_search_fdatasync=no
22931 rm conftest.$ac_ext
22932 LIBS=$ac_func_search_save_LIBS
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22935 $as_echo "$ac_cv_search_fdatasync" >&6; }
22936 ac_res=$ac_cv_search_fdatasync
22937 if test "$ac_res" != no; then :
22938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22939 test "$ac_cv_search_fdatasync" = "none required" ||
22940 LIB_FDATASYNC=$ac_cv_search_fdatasync
22943 LIBS=$gl_saved_libs
22946 if test $HAVE_FDATASYNC = 0; then
22955 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
22963 GNULIB_FDATASYNC=1
22974 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22975 #include <dirent.h>
22978 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
22979 ac_have_decl=1
22980 else
22981 ac_have_decl=0
22984 cat >>confdefs.h <<_ACEOF
22985 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22986 _ACEOF
22987 if test $ac_have_decl = 1; then :
22989 else
22990 HAVE_DECL_FDOPENDIR=0
22994 if test $ac_cv_func_fdopendir = no; then
22995 HAVE_FDOPENDIR=0
22996 else
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22998 $as_echo_n "checking whether fdopendir works... " >&6; }
22999 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23001 else
23002 if test "$cross_compiling" = yes; then :
23003 case "$host_os" in
23004 # Guess yes on glibc systems.
23005 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
23006 # If we don't know, assume the worst.
23007 *) gl_cv_func_fdopendir_works="guessing no" ;;
23008 esac
23010 else
23011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23012 /* end confdefs.h. */
23014 #include <dirent.h>
23015 #include <fcntl.h>
23016 #include <unistd.h>
23017 #if !HAVE_DECL_FDOPENDIR
23018 extern
23019 # ifdef __cplusplus
23021 # endif
23022 DIR *fdopendir (int);
23023 #endif
23026 main ()
23028 int result = 0;
23029 int fd = open ("conftest.c", O_RDONLY);
23030 if (fd < 0) result |= 1;
23031 if (fdopendir (fd)) result |= 2;
23032 if (close (fd)) result |= 4;
23033 return result;
23035 return 0;
23037 _ACEOF
23038 if ac_fn_c_try_run "$LINENO"; then :
23039 gl_cv_func_fdopendir_works=yes
23040 else
23041 gl_cv_func_fdopendir_works=no
23043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23044 conftest.$ac_objext conftest.beam conftest.$ac_ext
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23049 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23050 case "$gl_cv_func_fdopendir_works" in
23051 *yes) ;;
23053 REPLACE_FDOPENDIR=1
23055 esac
23058 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
23067 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
23075 GNULIB_FDOPENDIR=1
23083 cat >>confdefs.h <<_ACEOF
23084 #define GNULIB_FDOPENDIR 1
23085 _ACEOF
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23095 $as_echo_n "checking for __fpending... " >&6; }
23096 if test "${gl_cv_func___fpending+set}" = set; then :
23097 $as_echo_n "(cached) " >&6
23098 else
23100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23101 /* end confdefs.h. */
23102 #include <stdio.h>
23103 #if HAVE_STDIO_EXT_H
23104 # include <stdio_ext.h>
23105 #endif
23108 main ()
23110 return ! __fpending (stdin);
23112 return 0;
23114 _ACEOF
23115 if ac_fn_c_try_link "$LINENO"; then :
23116 gl_cv_func___fpending=yes
23117 else
23118 gl_cv_func___fpending=no
23120 rm -f core conftest.err conftest.$ac_objext \
23121 conftest$ac_exeext conftest.$ac_ext
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23125 $as_echo "$gl_cv_func___fpending" >&6; }
23127 if test $gl_cv_func___fpending = no; then
23136 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23140 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23141 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23142 $as_echo_n "(cached) " >&6
23143 else
23145 for ac_expr in \
23147 '# glibc2' \
23148 'fp->_IO_write_ptr - fp->_IO_write_base' \
23150 '# traditional Unix' \
23151 'fp->_ptr - fp->_base' \
23153 '# BSD' \
23154 'fp->_p - fp->_bf._base' \
23156 '# SCO, Unixware' \
23157 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23159 '# QNX' \
23160 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23162 '# old glibc?' \
23163 'fp->__bufp - fp->__buffer' \
23165 '# old glibc iostream?' \
23166 'fp->_pptr - fp->_pbase' \
23168 '# emx+gcc' \
23169 'fp->_ptr - fp->_buffer' \
23171 '# Minix' \
23172 'fp->_ptr - fp->_buf' \
23174 '# Plan9' \
23175 'fp->wp - fp->buf' \
23177 '# VMS' \
23178 '(*fp)->_ptr - (*fp)->_base' \
23180 '# e.g., DGUX R4.11; the info is not available' \
23182 ; do
23184 # Skip each embedded comment.
23185 case "$ac_expr" in '#'*) continue;; esac
23187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188 /* end confdefs.h. */
23189 #include <stdio.h>
23191 main ()
23193 FILE *fp = stdin; (void) ($ac_expr);
23195 return 0;
23197 _ACEOF
23198 if ac_fn_c_try_compile "$LINENO"; then :
23199 fp_done=yes
23202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23203 test "$fp_done" = yes && break
23204 done
23206 ac_cv_sys_pending_output_n_bytes=$ac_expr
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23211 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23213 cat >>confdefs.h <<_ACEOF
23214 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23215 _ACEOF
23225 if test $ac_cv_func_fstatat = no; then
23226 HAVE_FSTATAT=0
23227 else
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23229 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23230 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23231 $as_echo_n "(cached) " >&6
23232 else
23233 if test "$cross_compiling" = yes; then :
23234 case "$host_os" in
23235 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23236 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23237 esac
23239 else
23240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23241 /* end confdefs.h. */
23243 #include <fcntl.h>
23244 #include <sys/stat.h>
23246 main (void)
23248 struct stat a;
23249 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23252 _ACEOF
23253 if ac_fn_c_try_run "$LINENO"; then :
23254 gl_cv_func_fstatat_zero_flag=yes
23255 else
23256 gl_cv_func_fstatat_zero_flag=no
23258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23259 conftest.$ac_objext conftest.beam conftest.$ac_ext
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23265 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23267 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23268 *yes+*yes) ;;
23269 *) REPLACE_FSTATAT=1
23270 case $gl_cv_func_fstatat_zero_flag in
23271 *yes)
23273 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23276 esac
23278 esac
23281 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23290 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23298 GNULIB_FSTATAT=1
23307 if test $ac_cv_func_fsync = no; then
23308 HAVE_FSYNC=0
23311 if test $HAVE_FSYNC = 0; then
23320 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23329 GNULIB_FSYNC=1
23337 # Persuade glibc <stdlib.h> to declare getloadavg().
23340 gl_save_LIBS=$LIBS
23342 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23343 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23344 HAVE_GETLOADAVG=1
23345 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23346 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23348 else
23349 gl_func_getloadavg_done=no
23351 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23352 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23353 # to get the right answer into the cache.
23354 # For kstat on solaris, we need to test for libelf and libkvm to force the
23355 # definition of SVR4 below.
23356 if test $gl_func_getloadavg_done = no; then
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23358 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23359 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23360 $as_echo_n "(cached) " >&6
23361 else
23362 ac_check_lib_save_LIBS=$LIBS
23363 LIBS="-lelf $LIBS"
23364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h. */
23367 /* Override any GCC internal prototype to avoid an error.
23368 Use char because int might match the return type of a GCC
23369 builtin and then its argument prototype would still apply. */
23370 #ifdef __cplusplus
23371 extern "C"
23372 #endif
23373 char elf_begin ();
23375 main ()
23377 return elf_begin ();
23379 return 0;
23381 _ACEOF
23382 if ac_fn_c_try_link "$LINENO"; then :
23383 ac_cv_lib_elf_elf_begin=yes
23384 else
23385 ac_cv_lib_elf_elf_begin=no
23387 rm -f core conftest.err conftest.$ac_objext \
23388 conftest$ac_exeext conftest.$ac_ext
23389 LIBS=$ac_check_lib_save_LIBS
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23392 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23393 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23394 LIBS="-lelf $LIBS"
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23398 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23399 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402 ac_check_lib_save_LIBS=$LIBS
23403 LIBS="-lkvm $LIBS"
23404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23405 /* end confdefs.h. */
23407 /* Override any GCC internal prototype to avoid an error.
23408 Use char because int might match the return type of a GCC
23409 builtin and then its argument prototype would still apply. */
23410 #ifdef __cplusplus
23411 extern "C"
23412 #endif
23413 char kvm_open ();
23415 main ()
23417 return kvm_open ();
23419 return 0;
23421 _ACEOF
23422 if ac_fn_c_try_link "$LINENO"; then :
23423 ac_cv_lib_kvm_kvm_open=yes
23424 else
23425 ac_cv_lib_kvm_kvm_open=no
23427 rm -f core conftest.err conftest.$ac_objext \
23428 conftest$ac_exeext conftest.$ac_ext
23429 LIBS=$ac_check_lib_save_LIBS
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23432 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23433 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23434 LIBS="-lkvm $LIBS"
23437 # Check for the 4.4BSD definition of getloadavg.
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23439 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23440 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23441 $as_echo_n "(cached) " >&6
23442 else
23443 ac_check_lib_save_LIBS=$LIBS
23444 LIBS="-lutil $LIBS"
23445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23446 /* end confdefs.h. */
23448 /* Override any GCC internal prototype to avoid an error.
23449 Use char because int might match the return type of a GCC
23450 builtin and then its argument prototype would still apply. */
23451 #ifdef __cplusplus
23452 extern "C"
23453 #endif
23454 char getloadavg ();
23456 main ()
23458 return getloadavg ();
23460 return 0;
23462 _ACEOF
23463 if ac_fn_c_try_link "$LINENO"; then :
23464 ac_cv_lib_util_getloadavg=yes
23465 else
23466 ac_cv_lib_util_getloadavg=no
23468 rm -f core conftest.err conftest.$ac_objext \
23469 conftest$ac_exeext conftest.$ac_ext
23470 LIBS=$ac_check_lib_save_LIBS
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23473 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23474 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23475 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23480 if test $gl_func_getloadavg_done = no; then
23481 # There is a commonly available library for RS/6000 AIX.
23482 # Since it is not a standard part of AIX, it might be installed locally.
23483 gl_getloadavg_LIBS=$LIBS
23484 LIBS="-L/usr/local/lib $LIBS"
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23486 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23487 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23488 $as_echo_n "(cached) " >&6
23489 else
23490 ac_check_lib_save_LIBS=$LIBS
23491 LIBS="-lgetloadavg $LIBS"
23492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23493 /* end confdefs.h. */
23495 /* Override any GCC internal prototype to avoid an error.
23496 Use char because int might match the return type of a GCC
23497 builtin and then its argument prototype would still apply. */
23498 #ifdef __cplusplus
23499 extern "C"
23500 #endif
23501 char getloadavg ();
23503 main ()
23505 return getloadavg ();
23507 return 0;
23509 _ACEOF
23510 if ac_fn_c_try_link "$LINENO"; then :
23511 ac_cv_lib_getloadavg_getloadavg=yes
23512 else
23513 ac_cv_lib_getloadavg_getloadavg=no
23515 rm -f core conftest.err conftest.$ac_objext \
23516 conftest$ac_exeext conftest.$ac_ext
23517 LIBS=$ac_check_lib_save_LIBS
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23520 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23521 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23522 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23523 else
23524 LIBS=$gl_getloadavg_LIBS
23529 # Set up the replacement function if necessary.
23530 if test $gl_func_getloadavg_done = no; then
23531 HAVE_GETLOADAVG=0
23533 # Solaris has libkstat which does not require root.
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23535 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23536 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23537 $as_echo_n "(cached) " >&6
23538 else
23539 ac_check_lib_save_LIBS=$LIBS
23540 LIBS="-lkstat $LIBS"
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h. */
23544 /* Override any GCC internal prototype to avoid an error.
23545 Use char because int might match the return type of a GCC
23546 builtin and then its argument prototype would still apply. */
23547 #ifdef __cplusplus
23548 extern "C"
23549 #endif
23550 char kstat_open ();
23552 main ()
23554 return kstat_open ();
23556 return 0;
23558 _ACEOF
23559 if ac_fn_c_try_link "$LINENO"; then :
23560 ac_cv_lib_kstat_kstat_open=yes
23561 else
23562 ac_cv_lib_kstat_kstat_open=no
23564 rm -f core conftest.err conftest.$ac_objext \
23565 conftest$ac_exeext conftest.$ac_ext
23566 LIBS=$ac_check_lib_save_LIBS
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23569 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23570 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23571 cat >>confdefs.h <<_ACEOF
23572 #define HAVE_LIBKSTAT 1
23573 _ACEOF
23575 LIBS="-lkstat $LIBS"
23579 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23581 # AIX has libperfstat which does not require root
23582 if test $gl_func_getloadavg_done = no; then
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23584 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23585 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23586 $as_echo_n "(cached) " >&6
23587 else
23588 ac_check_lib_save_LIBS=$LIBS
23589 LIBS="-lperfstat $LIBS"
23590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23591 /* end confdefs.h. */
23593 /* Override any GCC internal prototype to avoid an error.
23594 Use char because int might match the return type of a GCC
23595 builtin and then its argument prototype would still apply. */
23596 #ifdef __cplusplus
23597 extern "C"
23598 #endif
23599 char perfstat_cpu_total ();
23601 main ()
23603 return perfstat_cpu_total ();
23605 return 0;
23607 _ACEOF
23608 if ac_fn_c_try_link "$LINENO"; then :
23609 ac_cv_lib_perfstat_perfstat_cpu_total=yes
23610 else
23611 ac_cv_lib_perfstat_perfstat_cpu_total=no
23613 rm -f core conftest.err conftest.$ac_objext \
23614 conftest$ac_exeext conftest.$ac_ext
23615 LIBS=$ac_check_lib_save_LIBS
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23618 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23619 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
23620 cat >>confdefs.h <<_ACEOF
23621 #define HAVE_LIBPERFSTAT 1
23622 _ACEOF
23624 LIBS="-lperfstat $LIBS"
23628 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
23631 if test $gl_func_getloadavg_done = no; then
23632 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23633 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
23634 gl_func_getloadavg_done=yes
23636 $as_echo "#define DGUX 1" >>confdefs.h
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23639 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23640 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23641 $as_echo_n "(cached) " >&6
23642 else
23643 ac_check_lib_save_LIBS=$LIBS
23644 LIBS="-ldgc $LIBS"
23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h. */
23648 /* Override any GCC internal prototype to avoid an error.
23649 Use char because int might match the return type of a GCC
23650 builtin and then its argument prototype would still apply. */
23651 #ifdef __cplusplus
23652 extern "C"
23653 #endif
23654 char dg_sys_info ();
23656 main ()
23658 return dg_sys_info ();
23660 return 0;
23662 _ACEOF
23663 if ac_fn_c_try_link "$LINENO"; then :
23664 ac_cv_lib_dgc_dg_sys_info=yes
23665 else
23666 ac_cv_lib_dgc_dg_sys_info=no
23668 rm -f core conftest.err conftest.$ac_objext \
23669 conftest$ac_exeext conftest.$ac_ext
23670 LIBS=$ac_check_lib_save_LIBS
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23673 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23674 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
23675 cat >>confdefs.h <<_ACEOF
23676 #define HAVE_LIBDGC 1
23677 _ACEOF
23679 LIBS="-ldgc $LIBS"
23691 if test "x$gl_save_LIBS" = x; then
23692 GETLOADAVG_LIBS=$LIBS
23693 else
23694 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23696 LIBS=$gl_save_LIBS
23699 # Test whether the system declares getloadavg. Solaris has the function
23700 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23701 for ac_header in sys/loadavg.h
23702 do :
23703 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23704 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
23705 cat >>confdefs.h <<_ACEOF
23706 #define HAVE_SYS_LOADAVG_H 1
23707 _ACEOF
23711 done
23713 if test $ac_cv_header_sys_loadavg_h = yes; then
23714 HAVE_SYS_LOADAVG_H=1
23715 else
23716 HAVE_SYS_LOADAVG_H=0
23718 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23719 # include <sys/loadavg.h>
23720 #endif
23721 #include <stdlib.h>
23723 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
23725 else
23726 HAVE_DECL_GETLOADAVG=0
23730 if test $HAVE_GETLOADAVG = 0; then
23739 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
23742 # Figure out what our getloadavg.c needs.
23746 # On HPUX9, an unprivileged user can get load averages this way.
23747 if test $gl_func_getloadavg_done = no; then
23748 for ac_func in pstat_getdynamic
23749 do :
23750 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23751 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
23752 cat >>confdefs.h <<_ACEOF
23753 #define HAVE_PSTAT_GETDYNAMIC 1
23754 _ACEOF
23755 gl_func_getloadavg_done=yes
23757 done
23761 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23762 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23763 # Irix 4.0.5F has the header but not the library.
23764 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
23765 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23766 gl_func_getloadavg_done=yes
23768 $as_echo "#define SVR4 1" >>confdefs.h
23772 if test $gl_func_getloadavg_done = no; then
23773 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23774 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
23775 gl_func_getloadavg_done=yes
23777 $as_echo "#define UMAX 1" >>confdefs.h
23780 $as_echo "#define UMAX4_3 1" >>confdefs.h
23787 if test $gl_func_getloadavg_done = no; then
23788 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23789 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
23790 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
23797 if test $gl_func_getloadavg_done = no; then
23798 for ac_header in mach/mach.h
23799 do :
23800 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23801 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
23802 cat >>confdefs.h <<_ACEOF
23803 #define HAVE_MACH_MACH_H 1
23804 _ACEOF
23808 done
23812 for ac_header in nlist.h
23813 do :
23814 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23815 if test "x$ac_cv_header_nlist_h" = x""yes; then :
23816 cat >>confdefs.h <<_ACEOF
23817 #define HAVE_NLIST_H 1
23818 _ACEOF
23819 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23821 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
23823 cat >>confdefs.h <<_ACEOF
23824 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23825 _ACEOF
23830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23831 /* end confdefs.h. */
23832 #include <nlist.h>
23834 main ()
23836 struct nlist x;
23837 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23838 x.n_un.n_name = "";
23839 #else
23840 x.n_name = "";
23841 #endif
23843 return 0;
23845 _ACEOF
23846 if ac_fn_c_try_link "$LINENO"; then :
23848 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23851 rm -f core conftest.err conftest.$ac_objext \
23852 conftest$ac_exeext conftest.$ac_ext
23856 done
23864 GNULIB_GETLOADAVG=1
23875 if test $REPLACE_GETOPT = 1; then
23884 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23894 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23899 GNULIB_GL_UNISTD_H_GETOPT=1
23908 REPLACE_GETOPT=0
23909 if test -n "$gl_replace_getopt"; then
23910 REPLACE_GETOPT=1
23913 if test $REPLACE_GETOPT = 1; then
23915 GETOPT_H=getopt.h
23917 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23923 if test $REPLACE_GETOPT = 1; then
23932 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23942 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23947 GNULIB_GL_UNISTD_H_GETOPT=1
23961 gl_gettimeofday_timezone=void
23962 if test $ac_cv_func_gettimeofday != yes; then
23963 HAVE_GETTIMEOFDAY=0
23964 else
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23969 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23970 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23971 $as_echo_n "(cached) " >&6
23972 else
23973 if test "$cross_compiling" = yes; then :
23974 # When cross-compiling:
23975 case "$host_os" in
23976 # Guess all is fine on glibc systems.
23977 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23978 # If we don't know, assume the worst.
23979 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23980 esac
23982 else
23983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23984 /* end confdefs.h. */
23985 #include <string.h>
23986 #include <sys/time.h>
23987 #include <time.h>
23988 #include <stdlib.h>
23991 main ()
23994 time_t t = 0;
23995 struct tm *lt;
23996 struct tm saved_lt;
23997 struct timeval tv;
23998 lt = localtime (&t);
23999 saved_lt = *lt;
24000 gettimeofday (&tv, NULL);
24001 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24004 return 0;
24006 _ACEOF
24007 if ac_fn_c_try_run "$LINENO"; then :
24008 gl_cv_func_gettimeofday_clobber=no
24009 else
24010 gl_cv_func_gettimeofday_clobber=yes
24012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24013 conftest.$ac_objext conftest.beam conftest.$ac_ext
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24018 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24020 case "$gl_cv_func_gettimeofday_clobber" in
24021 *yes)
24022 REPLACE_GETTIMEOFDAY=1
24025 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24028 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24032 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24035 esac
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24038 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24039 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24040 $as_echo_n "(cached) " >&6
24041 else
24042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24044 #include <sys/time.h>
24045 struct timeval c;
24046 int gettimeofday (struct timeval *restrict, void *restrict);
24049 main ()
24051 /* glibc uses struct timezone * rather than the POSIX void *
24052 if _GNU_SOURCE is defined. However, since the only portable
24053 use of gettimeofday uses NULL as the second parameter, and
24054 since the glibc definition is actually more typesafe, it is
24055 not worth wrapping this to get a compliant signature. */
24056 int (*f) (struct timeval *restrict, void *restrict)
24057 = gettimeofday;
24058 int x = f (&c, 0);
24059 return !(x | c.tv_sec | c.tv_usec);
24062 return 0;
24064 _ACEOF
24065 if ac_fn_c_try_compile "$LINENO"; then :
24066 gl_cv_func_gettimeofday_posix_signature=yes
24067 else
24068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24069 /* end confdefs.h. */
24070 #include <sys/time.h>
24071 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24074 main ()
24078 return 0;
24080 _ACEOF
24081 if ac_fn_c_try_compile "$LINENO"; then :
24082 gl_cv_func_gettimeofday_posix_signature=almost
24083 else
24084 gl_cv_func_gettimeofday_posix_signature=no
24086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24091 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24092 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
24093 gl_gettimeofday_timezone='struct timezone'
24094 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24095 REPLACE_GETTIMEOFDAY=1
24097 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24098 REPLACE_GETTIMEOFDAY=1
24103 cat >>confdefs.h <<_ACEOF
24104 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24105 _ACEOF
24108 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
24117 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24120 for ac_header in sys/timeb.h
24121 do :
24122 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24123 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
24124 cat >>confdefs.h <<_ACEOF
24125 #define HAVE_SYS_TIMEB_H 1
24126 _ACEOF
24130 done
24132 for ac_func in _ftime
24133 do :
24134 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
24135 if test "x$ac_cv_func__ftime" = x""yes; then :
24136 cat >>confdefs.h <<_ACEOF
24137 #define HAVE__FTIME 1
24138 _ACEOF
24141 done
24150 GNULIB_GETTIMEOFDAY=1
24161 if test $ac_cv_func_lstat = yes; then
24163 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24164 *no)
24165 REPLACE_LSTAT=1
24167 esac
24168 else
24169 HAVE_LSTAT=0
24172 if test $REPLACE_LSTAT = 1; then
24181 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24190 GNULIB_LSTAT=1
24201 if test $ac_cv_have_decl_memrchr = no; then
24202 HAVE_DECL_MEMRCHR=0
24205 for ac_func in memrchr
24206 do :
24207 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24208 if test "x$ac_cv_func_memrchr" = x""yes; then :
24209 cat >>confdefs.h <<_ACEOF
24210 #define HAVE_MEMRCHR 1
24211 _ACEOF
24214 done
24217 if test $ac_cv_func_memrchr = no; then
24226 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24235 GNULIB_MEMRCHR=1
24247 if test $ac_cv_func_mkostemp != yes; then
24248 HAVE_MKOSTEMP=0
24251 if test $HAVE_MKOSTEMP = 0; then
24260 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
24267 cat >>confdefs.h <<_ACEOF
24268 #define GNULIB_MKOSTEMP 1
24269 _ACEOF
24277 GNULIB_MKOSTEMP=1
24289 if test $APPLE_UNIVERSAL_BUILD = 1; then
24290 # A universal build on Apple Mac OS X platforms.
24291 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24292 # But we need a configuration result that is valid in both modes.
24293 gl_cv_func_working_mktime=no
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24296 $as_echo_n "checking for working mktime... " >&6; }
24297 if test "${gl_cv_func_working_mktime+set}" = set; then :
24298 $as_echo_n "(cached) " >&6
24299 else
24300 if test "$cross_compiling" = yes; then :
24301 gl_cv_func_working_mktime=no
24302 else
24303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24304 /* end confdefs.h. */
24305 /* Test program from Paul Eggert and Tony Leneis. */
24306 #include <limits.h>
24307 #include <stdlib.h>
24308 #include <time.h>
24310 #ifdef HAVE_UNISTD_H
24311 # include <unistd.h>
24312 #endif
24314 #if HAVE_DECL_ALARM
24315 # include <signal.h>
24316 #endif
24318 /* Work around redefinition to rpl_putenv by other config tests. */
24319 #undef putenv
24321 static time_t time_t_max;
24322 static time_t time_t_min;
24324 /* Values we'll use to set the TZ environment variable. */
24325 static char *tz_strings[] = {
24326 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24327 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24329 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24331 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24332 Based on a problem report from Andreas Jaeger. */
24333 static int
24334 spring_forward_gap ()
24336 /* glibc (up to about 1998-10-07) failed this test. */
24337 struct tm tm;
24339 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24340 instead of "TZ=America/Vancouver" in order to detect the bug even
24341 on systems that don't support the Olson extension, or don't have the
24342 full zoneinfo tables installed. */
24343 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24345 tm.tm_year = 98;
24346 tm.tm_mon = 3;
24347 tm.tm_mday = 5;
24348 tm.tm_hour = 2;
24349 tm.tm_min = 0;
24350 tm.tm_sec = 0;
24351 tm.tm_isdst = -1;
24352 return mktime (&tm) != (time_t) -1;
24355 static int
24356 mktime_test1 (time_t now)
24358 struct tm *lt;
24359 return ! (lt = localtime (&now)) || mktime (lt) == now;
24362 static int
24363 mktime_test (time_t now)
24365 return (mktime_test1 (now)
24366 && mktime_test1 ((time_t) (time_t_max - now))
24367 && mktime_test1 ((time_t) (time_t_min + now)));
24370 static int
24371 irix_6_4_bug ()
24373 /* Based on code from Ariel Faigon. */
24374 struct tm tm;
24375 tm.tm_year = 96;
24376 tm.tm_mon = 3;
24377 tm.tm_mday = 0;
24378 tm.tm_hour = 0;
24379 tm.tm_min = 0;
24380 tm.tm_sec = 0;
24381 tm.tm_isdst = -1;
24382 mktime (&tm);
24383 return tm.tm_mon == 2 && tm.tm_mday == 31;
24386 static int
24387 bigtime_test (int j)
24389 struct tm tm;
24390 time_t now;
24391 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24392 now = mktime (&tm);
24393 if (now != (time_t) -1)
24395 struct tm *lt = localtime (&now);
24396 if (! (lt
24397 && lt->tm_year == tm.tm_year
24398 && lt->tm_mon == tm.tm_mon
24399 && lt->tm_mday == tm.tm_mday
24400 && lt->tm_hour == tm.tm_hour
24401 && lt->tm_min == tm.tm_min
24402 && lt->tm_sec == tm.tm_sec
24403 && lt->tm_yday == tm.tm_yday
24404 && lt->tm_wday == tm.tm_wday
24405 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24406 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24407 return 0;
24409 return 1;
24412 static int
24413 year_2050_test ()
24415 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24416 ignoring leap seconds. */
24417 unsigned long int answer = 2527315200UL;
24419 struct tm tm;
24420 time_t t;
24421 tm.tm_year = 2050 - 1900;
24422 tm.tm_mon = 2 - 1;
24423 tm.tm_mday = 1;
24424 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24425 tm.tm_isdst = -1;
24427 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24428 instead of "TZ=America/Vancouver" in order to detect the bug even
24429 on systems that don't support the Olson extension, or don't have the
24430 full zoneinfo tables installed. */
24431 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24433 t = mktime (&tm);
24435 /* Check that the result is either a failure, or close enough
24436 to the correct answer that we can assume the discrepancy is
24437 due to leap seconds. */
24438 return (t == (time_t) -1
24439 || (0 < t && answer - 120 <= t && t <= answer + 120));
24443 main ()
24445 int result = 0;
24446 time_t t, delta;
24447 int i, j;
24448 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24449 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24451 #if HAVE_DECL_ALARM
24452 /* This test makes some buggy mktime implementations loop.
24453 Give up after 60 seconds; a mktime slower than that
24454 isn't worth using anyway. */
24455 signal (SIGALRM, SIG_DFL);
24456 alarm (60);
24457 #endif
24459 time_t_max = (! time_t_signed
24460 ? (time_t) -1
24461 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24462 * 2 + 1));
24463 time_t_min = (! time_t_signed
24464 ? (time_t) 0
24465 : time_t_signed_magnitude
24466 ? ~ (time_t) 0
24467 : ~ time_t_max);
24469 delta = time_t_max / 997; /* a suitable prime number */
24470 for (i = 0; i < N_STRINGS; i++)
24472 if (tz_strings[i])
24473 putenv (tz_strings[i]);
24475 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24476 if (! mktime_test (t))
24477 result |= 1;
24478 if ((result & 2) == 0
24479 && ! (mktime_test ((time_t) 1)
24480 && mktime_test ((time_t) (60 * 60))
24481 && mktime_test ((time_t) (60 * 60 * 24))))
24482 result |= 2;
24484 for (j = 1; (result & 4) == 0; j <<= 1)
24486 if (! bigtime_test (j))
24487 result |= 4;
24488 if (INT_MAX / 2 < j)
24489 break;
24491 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24492 result |= 8;
24494 if (! irix_6_4_bug ())
24495 result |= 16;
24496 if (! spring_forward_gap ())
24497 result |= 32;
24498 if (! year_2050_test ())
24499 result |= 64;
24500 return result;
24502 _ACEOF
24503 if ac_fn_c_try_run "$LINENO"; then :
24504 gl_cv_func_working_mktime=yes
24505 else
24506 gl_cv_func_working_mktime=no
24508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24509 conftest.$ac_objext conftest.beam conftest.$ac_ext
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24515 $as_echo "$gl_cv_func_working_mktime" >&6; }
24517 if test $gl_cv_func_working_mktime = no; then
24518 REPLACE_MKTIME=1
24519 else
24520 REPLACE_MKTIME=0
24523 if test $REPLACE_MKTIME = 1; then
24532 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24541 GNULIB_MKTIME=1
24554 if test $ac_cv_func_pipe2 != yes; then
24555 HAVE_PIPE2=0
24563 GNULIB_PIPE2=1
24574 if test $ac_cv_func_pselect = yes; then
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24576 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24577 if test "${gl_cv_sig_pselect+set}" = set; then :
24578 $as_echo_n "(cached) " >&6
24579 else
24580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24581 /* end confdefs.h. */
24582 #include <sys/select.h>
24585 main ()
24587 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24588 struct timespec const *restrict,
24589 sigset_t const *restrict) = pselect;
24590 return !p;
24592 return 0;
24594 _ACEOF
24595 if ac_fn_c_try_link "$LINENO"; then :
24596 gl_cv_sig_pselect=yes
24597 else
24598 gl_cv_sig_pselect=no
24600 rm -f core conftest.err conftest.$ac_objext \
24601 conftest$ac_exeext conftest.$ac_ext
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24604 $as_echo "$gl_cv_sig_pselect" >&6; }
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24607 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24608 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24609 $as_echo_n "(cached) " >&6
24610 else
24612 if test "$cross_compiling" = yes; then :
24614 case "$host_os" in
24615 # Guess yes on glibc systems.
24616 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
24617 # If we don't know, assume the worst.
24618 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
24619 esac
24621 else
24622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24625 #include <sys/types.h>
24626 #include <sys/time.h>
24627 #if HAVE_SYS_SELECT_H
24628 # include <sys/select.h>
24629 #endif
24630 #include <unistd.h>
24631 #include <errno.h>
24634 main ()
24637 fd_set set;
24638 dup2(0, 16);
24639 FD_ZERO(&set);
24640 FD_SET(16, &set);
24641 close(16);
24642 struct timespec timeout;
24643 timeout.tv_sec = 0;
24644 timeout.tv_nsec = 5000;
24645 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24648 return 0;
24650 _ACEOF
24651 if ac_fn_c_try_run "$LINENO"; then :
24652 gl_cv_func_pselect_detects_ebadf=yes
24653 else
24654 gl_cv_func_pselect_detects_ebadf=no
24656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24657 conftest.$ac_objext conftest.beam conftest.$ac_ext
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24663 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24664 case $gl_cv_func_pselect_detects_ebadf in
24665 *yes) ;;
24666 *) REPLACE_PSELECT=1 ;;
24667 esac
24670 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
24671 REPLACE_PSELECT=1
24674 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
24683 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
24691 GNULIB_PSELECT=1
24701 LIB_PTHREAD_SIGMASK=
24706 if test "$gl_threads_api" = posix; then
24707 if test $ac_cv_func_pthread_sigmask = yes; then
24709 else
24710 if test -n "$LIBMULTITHREAD"; then
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24712 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24713 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24714 $as_echo_n "(cached) " >&6
24715 else
24716 gl_save_LIBS="$LIBS"
24717 LIBS="$LIBS $LIBMULTITHREAD"
24718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24719 /* end confdefs.h. */
24720 #include <pthread.h>
24721 #include <signal.h>
24724 main ()
24726 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24728 return 0;
24731 _ACEOF
24732 if ac_fn_c_try_link "$LINENO"; then :
24733 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
24734 else
24735 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
24737 rm -f core conftest.err conftest.$ac_objext \
24738 conftest$ac_exeext conftest.$ac_ext
24739 LIBS="$gl_save_LIBS"
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24743 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24744 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24745 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
24746 else
24747 HAVE_PTHREAD_SIGMASK=0
24749 else
24750 HAVE_PTHREAD_SIGMASK=0
24753 else
24754 if test $ac_cv_func_pthread_sigmask = yes; then
24755 REPLACE_PTHREAD_SIGMASK=1
24756 else
24757 HAVE_PTHREAD_SIGMASK=0
24764 if test $HAVE_PTHREAD_SIGMASK = 1; then
24767 if test -z "$LIB_PTHREAD_SIGMASK"; then
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24769 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24770 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24771 $as_echo_n "(cached) " >&6
24772 else
24774 if test "$cross_compiling" = yes; then :
24776 case "$host_os" in
24777 freebsd* | hpux* | solaris | solaris2.[2-9]*)
24778 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
24780 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
24781 esac
24783 else
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24787 #include <pthread.h>
24788 #include <signal.h>
24789 #include <stddef.h>
24790 int main ()
24792 sigset_t set;
24793 sigemptyset (&set);
24794 return pthread_sigmask (1729, &set, NULL) != 0;
24796 _ACEOF
24797 if ac_fn_c_try_run "$LINENO"; then :
24798 gl_cv_func_pthread_sigmask_in_libc_works=no
24799 else
24800 gl_cv_func_pthread_sigmask_in_libc_works=yes
24802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24803 conftest.$ac_objext conftest.beam conftest.$ac_ext
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24809 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24810 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24811 *no)
24812 REPLACE_PTHREAD_SIGMASK=1
24814 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24817 esac
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24821 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24822 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24823 $as_echo_n "(cached) " >&6
24824 else
24826 gl_save_LIBS="$LIBS"
24827 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
24828 if test "$cross_compiling" = yes; then :
24829 case "$host_os" in
24830 cygwin*)
24831 gl_cv_func_pthread_sigmask_return_works="guessing no";;
24833 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
24834 esac
24836 else
24837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24838 /* end confdefs.h. */
24840 #include <pthread.h>
24841 #include <signal.h>
24842 #include <stddef.h>
24843 int main ()
24845 sigset_t set;
24846 sigemptyset (&set);
24847 if (pthread_sigmask (1729, &set, NULL) == -1)
24848 return 1;
24849 return 0;
24851 _ACEOF
24852 if ac_fn_c_try_run "$LINENO"; then :
24853 gl_cv_func_pthread_sigmask_return_works=yes
24854 else
24855 gl_cv_func_pthread_sigmask_return_works=no
24857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24858 conftest.$ac_objext conftest.beam conftest.$ac_ext
24861 LIBS="$gl_save_LIBS"
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24865 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24866 case "$gl_cv_func_pthread_sigmask_return_works" in
24867 *no)
24868 REPLACE_PTHREAD_SIGMASK=1
24870 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24873 esac
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24876 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24877 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24878 $as_echo_n "(cached) " >&6
24879 else
24881 case "$host_os" in
24882 irix*)
24883 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
24885 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
24886 esac
24887 gl_save_LIBS="$LIBS"
24888 LIBS="$LIBS $LIBMULTITHREAD"
24889 if test "$cross_compiling" = yes; then :
24891 else
24892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24893 /* end confdefs.h. */
24895 #include <pthread.h>
24896 #include <signal.h>
24897 #include <stdio.h>
24898 #include <stdlib.h>
24899 #include <unistd.h>
24900 static volatile int sigint_occurred;
24901 static void
24902 sigint_handler (int sig)
24904 sigint_occurred++;
24906 int main ()
24908 sigset_t set;
24909 int pid = getpid ();
24910 char command[80];
24911 signal (SIGINT, sigint_handler);
24912 sigemptyset (&set);
24913 sigaddset (&set, SIGINT);
24914 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24915 return 1;
24916 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24917 if (!(system (command) == 0))
24918 return 2;
24919 sleep (2);
24920 if (!(sigint_occurred == 0))
24921 return 3;
24922 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24923 return 4;
24924 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24925 return 5;
24926 return 0;
24928 _ACEOF
24929 if ac_fn_c_try_run "$LINENO"; then :
24931 else
24932 gl_cv_func_pthread_sigmask_unblock_works=no
24934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24935 conftest.$ac_objext conftest.beam conftest.$ac_ext
24938 LIBS="$gl_save_LIBS"
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24942 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24943 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24944 *no)
24945 REPLACE_PTHREAD_SIGMASK=1
24947 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24950 esac
24953 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
24962 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24965 if test $HAVE_PTHREAD_SIGMASK = 1; then
24967 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24977 GNULIB_PTHREAD_SIGMASK=1
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24986 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24987 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24988 $as_echo_n "(cached) " >&6
24989 else
24990 if test "$cross_compiling" = yes; then :
24991 case "$host_os" in
24992 # Guess yes on glibc systems.
24993 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
24994 # If we don't know, assume the worst.
24995 *) gl_cv_func_svid_putenv="guessing no" ;;
24996 esac
24998 else
24999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25000 /* end confdefs.h. */
25001 $ac_includes_default
25003 main ()
25006 /* Put it in env. */
25007 if (putenv ("CONFTEST_putenv=val"))
25008 return 1;
25010 /* Try to remove it. */
25011 if (putenv ("CONFTEST_putenv"))
25012 return 2;
25014 /* Make sure it was deleted. */
25015 if (getenv ("CONFTEST_putenv") != 0)
25016 return 3;
25018 return 0;
25021 return 0;
25023 _ACEOF
25024 if ac_fn_c_try_run "$LINENO"; then :
25025 gl_cv_func_svid_putenv=yes
25026 else
25027 gl_cv_func_svid_putenv=no
25029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25030 conftest.$ac_objext conftest.beam conftest.$ac_ext
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25036 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25037 case "$gl_cv_func_svid_putenv" in
25038 *yes) ;;
25040 REPLACE_PUTENV=1
25042 esac
25044 if test $REPLACE_PUTENV = 1; then
25053 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
25056 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25057 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
25058 ac_have_decl=1
25059 else
25060 ac_have_decl=0
25063 cat >>confdefs.h <<_ACEOF
25064 #define HAVE_DECL__PUTENV $ac_have_decl
25065 _ACEOF
25074 GNULIB_PUTENV=1
25081 # Check whether --enable-acl was given.
25082 if test "${enable_acl+set}" = set; then :
25083 enableval=$enable_acl;
25084 else
25085 enable_acl=auto
25089 LIB_ACL=
25090 use_acl=0
25091 if test "x$enable_acl" != "xno"; then
25092 for ac_header in sys/acl.h
25093 do :
25094 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25095 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
25096 cat >>confdefs.h <<_ACEOF
25097 #define HAVE_SYS_ACL_H 1
25098 _ACEOF
25102 done
25104 if test $ac_cv_header_sys_acl_h = yes; then
25105 ac_save_LIBS=$LIBS
25107 if test $use_acl = 0; then
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25109 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25110 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25111 $as_echo_n "(cached) " >&6
25112 else
25113 ac_func_search_save_LIBS=$LIBS
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25117 /* Override any GCC internal prototype to avoid an error.
25118 Use char because int might match the return type of a GCC
25119 builtin and then its argument prototype would still apply. */
25120 #ifdef __cplusplus
25121 extern "C"
25122 #endif
25123 char acl_get_file ();
25125 main ()
25127 return acl_get_file ();
25129 return 0;
25131 _ACEOF
25132 for ac_lib in '' acl pacl; do
25133 if test -z "$ac_lib"; then
25134 ac_res="none required"
25135 else
25136 ac_res=-l$ac_lib
25137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25139 if ac_fn_c_try_link "$LINENO"; then :
25140 ac_cv_search_acl_get_file=$ac_res
25142 rm -f core conftest.err conftest.$ac_objext \
25143 conftest$ac_exeext
25144 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25145 break
25147 done
25148 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25150 else
25151 ac_cv_search_acl_get_file=no
25153 rm conftest.$ac_ext
25154 LIBS=$ac_func_search_save_LIBS
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25157 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25158 ac_res=$ac_cv_search_acl_get_file
25159 if test "$ac_res" != no; then :
25160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25161 if test "$ac_cv_search_acl_get_file" != "none required"; then
25162 LIB_ACL=$ac_cv_search_acl_get_file
25164 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25165 acl_free acl_from_mode acl_from_text \
25166 acl_delete_def_file acl_extended_file \
25167 acl_delete_fd_np acl_delete_file_np \
25168 acl_copy_ext_native acl_create_entry_np \
25169 acl_to_short_text acl_free_text
25170 do :
25171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25172 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25173 eval as_val=\$$as_ac_var
25174 if test "x$as_val" = x""yes; then :
25175 cat >>confdefs.h <<_ACEOF
25176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25177 _ACEOF
25180 done
25182 # If the acl_get_file bug is detected, don't enable the ACL support.
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25185 $as_echo_n "checking for working acl_get_file... " >&6; }
25186 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25187 $as_echo_n "(cached) " >&6
25188 else
25189 if test "$cross_compiling" = yes; then :
25190 gl_cv_func_working_acl_get_file=cross-compiling
25191 else
25192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25193 /* end confdefs.h. */
25194 #include <sys/types.h>
25195 #include <sys/acl.h>
25196 #include <errno.h>
25199 main ()
25201 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25202 return 1;
25203 return 0;
25206 return 0;
25208 _ACEOF
25209 if ac_fn_c_try_run "$LINENO"; then :
25210 gl_cv_func_working_acl_get_file=yes
25211 else
25212 gl_cv_func_working_acl_get_file=no
25214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25215 conftest.$ac_objext conftest.beam conftest.$ac_ext
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25220 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25222 if test $gl_cv_func_working_acl_get_file = yes; then :
25223 use_acl=1
25226 if test $use_acl = 1; then
25227 for ac_header in acl/libacl.h
25228 do :
25229 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25230 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
25231 cat >>confdefs.h <<_ACEOF
25232 #define HAVE_ACL_LIBACL_H 1
25233 _ACEOF
25237 done
25247 for ac_func in acl_entries
25248 do :
25249 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25250 if test "x$ac_cv_func_acl_entries" = x""yes; then :
25251 cat >>confdefs.h <<_ACEOF
25252 #define HAVE_ACL_ENTRIES 1
25253 _ACEOF
25255 else
25257 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25260 done
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25264 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25265 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25266 $as_echo_n "(cached) " >&6
25267 else
25268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25269 /* end confdefs.h. */
25270 #include <sys/types.h>
25271 #include <sys/acl.h>
25272 int type = ACL_FIRST_ENTRY;
25274 main ()
25278 return 0;
25280 _ACEOF
25281 if ac_fn_c_try_compile "$LINENO"; then :
25282 gl_cv_acl_ACL_FIRST_ENTRY=yes
25283 else
25284 gl_cv_acl_ACL_FIRST_ENTRY=no
25286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25289 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25290 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25292 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25296 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25297 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25299 else
25300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h. */
25302 #include <sys/types.h>
25303 #include <sys/acl.h>
25304 int type = ACL_TYPE_EXTENDED;
25306 main ()
25310 return 0;
25312 _ACEOF
25313 if ac_fn_c_try_compile "$LINENO"; then :
25314 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25315 else
25316 gl_cv_acl_ACL_TYPE_EXTENDED=no
25318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25321 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25322 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25324 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25327 else
25328 LIB_ACL=
25335 if test $use_acl = 0; then
25336 for ac_func in facl
25337 do :
25338 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25339 if test "x$ac_cv_func_facl" = x""yes; then :
25340 cat >>confdefs.h <<_ACEOF
25341 #define HAVE_FACL 1
25342 _ACEOF
25345 done
25347 if test $ac_cv_func_facl = yes; then
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25349 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25350 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25351 $as_echo_n "(cached) " >&6
25352 else
25353 ac_func_search_save_LIBS=$LIBS
25354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25355 /* end confdefs.h. */
25357 /* Override any GCC internal prototype to avoid an error.
25358 Use char because int might match the return type of a GCC
25359 builtin and then its argument prototype would still apply. */
25360 #ifdef __cplusplus
25361 extern "C"
25362 #endif
25363 char acl_trivial ();
25365 main ()
25367 return acl_trivial ();
25369 return 0;
25371 _ACEOF
25372 for ac_lib in '' sec; do
25373 if test -z "$ac_lib"; then
25374 ac_res="none required"
25375 else
25376 ac_res=-l$ac_lib
25377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25379 if ac_fn_c_try_link "$LINENO"; then :
25380 ac_cv_search_acl_trivial=$ac_res
25382 rm -f core conftest.err conftest.$ac_objext \
25383 conftest$ac_exeext
25384 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25385 break
25387 done
25388 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25390 else
25391 ac_cv_search_acl_trivial=no
25393 rm conftest.$ac_ext
25394 LIBS=$ac_func_search_save_LIBS
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25397 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25398 ac_res=$ac_cv_search_acl_trivial
25399 if test "$ac_res" != no; then :
25400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25401 if test "$ac_cv_search_acl_trivial" != "none required"; then
25402 LIB_ACL=$ac_cv_search_acl_trivial
25407 for ac_func in acl_trivial
25408 do :
25409 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25410 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25411 cat >>confdefs.h <<_ACEOF
25412 #define HAVE_ACL_TRIVIAL 1
25413 _ACEOF
25416 done
25418 use_acl=1
25422 if test $use_acl = 0; then
25423 for ac_func in getacl
25424 do :
25425 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25426 if test "x$ac_cv_func_getacl" = x""yes; then :
25427 cat >>confdefs.h <<_ACEOF
25428 #define HAVE_GETACL 1
25429 _ACEOF
25432 done
25434 if test $ac_cv_func_getacl = yes; then
25435 use_acl=1
25437 for ac_header in aclv.h
25438 do :
25439 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25441 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25442 cat >>confdefs.h <<_ACEOF
25443 #define HAVE_ACLV_H 1
25444 _ACEOF
25448 done
25452 if test $use_acl = 0; then
25453 for ac_func in aclx_get
25454 do :
25455 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25456 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25457 cat >>confdefs.h <<_ACEOF
25458 #define HAVE_ACLX_GET 1
25459 _ACEOF
25462 done
25464 if test $ac_cv_func_aclx_get = yes; then
25465 use_acl=1
25469 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25470 for ac_func in statacl
25471 do :
25472 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25473 if test "x$ac_cv_func_statacl" = x""yes; then :
25474 cat >>confdefs.h <<_ACEOF
25475 #define HAVE_STATACL 1
25476 _ACEOF
25479 done
25481 if test $ac_cv_func_statacl = yes; then
25482 use_acl=1
25486 if test $use_acl = 0; then
25487 for ac_func in aclsort
25488 do :
25489 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25490 if test "x$ac_cv_func_aclsort" = x""yes; then :
25491 cat >>confdefs.h <<_ACEOF
25492 #define HAVE_ACLSORT 1
25493 _ACEOF
25496 done
25498 if test $ac_cv_func_aclsort = yes; then
25499 use_acl=1
25503 LIBS=$ac_save_LIBS
25505 if test "x$enable_acl$use_acl" = "xyes0"; then
25506 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25507 elif test "x$enable_acl$use_acl" = "xauto0"; then
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25509 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25511 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25516 cat >>confdefs.h <<_ACEOF
25517 #define USE_ACL $use_acl
25518 _ACEOF
25520 USE_ACL=$use_acl
25526 if test $ac_cv_func_readlink = no; then
25527 HAVE_READLINK=0
25528 else
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25530 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25531 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25532 $as_echo_n "(cached) " >&6
25533 else
25534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25535 /* end confdefs.h. */
25536 #include <unistd.h>
25537 /* Cause compilation failure if original declaration has wrong type. */
25538 ssize_t readlink (const char *, char *, size_t);
25540 main ()
25544 return 0;
25546 _ACEOF
25547 if ac_fn_c_try_compile "$LINENO"; then :
25548 gl_cv_decl_readlink_works=yes
25549 else
25550 gl_cv_decl_readlink_works=no
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25555 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25557 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25558 if test "${gl_cv_func_readlink_works+set}" = set; then :
25559 $as_echo_n "(cached) " >&6
25560 else
25561 # We have readlink, so assume ln -s works.
25562 ln -s conftest.no-such conftest.link
25563 ln -s conftest.link conftest.lnk2
25564 if test "$cross_compiling" = yes; then :
25565 case "$host_os" in
25566 # Guess yes on glibc systems.
25567 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25568 # If we don't know, assume the worst.
25569 *) gl_cv_func_readlink_works="guessing no" ;;
25570 esac
25572 else
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25575 #include <unistd.h>
25578 main ()
25580 char buf[20];
25581 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25583 return 0;
25585 _ACEOF
25586 if ac_fn_c_try_run "$LINENO"; then :
25587 gl_cv_func_readlink_works=yes
25588 else
25589 gl_cv_func_readlink_works=no
25591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25592 conftest.$ac_objext conftest.beam conftest.$ac_ext
25595 rm -f conftest.link conftest.lnk2
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25598 $as_echo "$gl_cv_func_readlink_works" >&6; }
25599 case "$gl_cv_func_readlink_works" in
25600 *yes)
25601 if test "$gl_cv_decl_readlink_works" != yes; then
25602 REPLACE_READLINK=1
25607 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25609 REPLACE_READLINK=1
25611 esac
25614 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25623 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25634 GNULIB_READLINK=1
25644 if test $ac_cv_func_readlinkat = no; then
25645 HAVE_READLINKAT=0
25648 if test $HAVE_READLINKAT = 0; then
25657 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
25665 GNULIB_READLINKAT=1
25672 for ac_func in sig2str
25673 do :
25674 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
25675 if test "x$ac_cv_func_sig2str" = x""yes; then :
25676 cat >>confdefs.h <<_ACEOF
25677 #define HAVE_SIG2STR 1
25678 _ACEOF
25681 done
25684 if test $ac_cv_func_sig2str = no; then
25693 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
25710 if test $gl_cv_have_include_next = yes; then
25711 gl_cv_next_signal_h='<'signal.h'>'
25712 else
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25714 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25715 if test "${gl_cv_next_signal_h+set}" = set; then :
25716 $as_echo_n "(cached) " >&6
25717 else
25719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25720 /* end confdefs.h. */
25721 #include <signal.h>
25723 _ACEOF
25724 case "$host_os" in
25725 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25726 *) gl_absname_cpp="$ac_cpp" ;;
25727 esac
25729 case "$host_os" in
25730 mingw*)
25731 gl_dirsep_regex='[/\\]'
25734 gl_dirsep_regex='\/'
25736 esac
25737 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25739 gl_header_literal_regex=`echo 'signal.h' \
25740 | sed -e "$gl_make_literal_regex_sed"`
25741 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25742 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25743 s|^/[^/]|//&|
25747 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25748 sed -n "$gl_absolute_header_sed"`'"'
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25753 $as_echo "$gl_cv_next_signal_h" >&6; }
25755 NEXT_SIGNAL_H=$gl_cv_next_signal_h
25757 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25759 gl_next_as_first_directive='<'signal.h'>'
25760 else
25761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25762 gl_next_as_first_directive=$gl_cv_next_signal_h
25764 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
25770 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25771 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25772 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25773 #include <signal.h>
25776 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
25778 else
25779 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
25788 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25789 #include <signal.h>
25792 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
25794 else
25795 HAVE_SIGHANDLER_T=0
25801 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25802 /* <sys/types.h> is not needed according to POSIX, but the
25803 <sys/socket.h> in i386-unknown-freebsd4.10 and
25804 powerpc-apple-darwin5.5 required it. */
25805 #include <sys/types.h>
25806 #if HAVE_SYS_SOCKET_H
25807 # include <sys/socket.h>
25808 #elif HAVE_WS2TCPIP_H
25809 # include <ws2tcpip.h>
25810 #endif
25813 if test "x$ac_cv_type_socklen_t" = x""yes; then :
25815 else
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25817 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25818 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25819 $as_echo_n "(cached) " >&6
25820 else
25821 # Systems have either "struct sockaddr *" or
25822 # "void *" as the second argument to getpeername
25823 gl_cv_socklen_t_equiv=
25824 for arg2 in "struct sockaddr" void; do
25825 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
25826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25827 /* end confdefs.h. */
25828 #include <sys/types.h>
25829 #include <sys/socket.h>
25831 int getpeername (int, $arg2 *, $t *);
25833 main ()
25835 $t len;
25836 getpeername (0, 0, &len);
25838 return 0;
25840 _ACEOF
25841 if ac_fn_c_try_compile "$LINENO"; then :
25842 gl_cv_socklen_t_equiv="$t"
25844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845 test "$gl_cv_socklen_t_equiv" != "" && break
25846 done
25847 test "$gl_cv_socklen_t_equiv" != "" && break
25848 done
25852 if test "$gl_cv_socklen_t_equiv" = ""; then
25853 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25856 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25858 cat >>confdefs.h <<_ACEOF
25859 #define socklen_t $gl_cv_socklen_t_equiv
25860 _ACEOF
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25866 $as_echo_n "checking for ssize_t... " >&6; }
25867 if test "${gt_cv_ssize_t+set}" = set; then :
25868 $as_echo_n "(cached) " >&6
25869 else
25870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25871 /* end confdefs.h. */
25872 #include <sys/types.h>
25874 main ()
25876 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25877 return !x;
25879 return 0;
25881 _ACEOF
25882 if ac_fn_c_try_compile "$LINENO"; then :
25883 gt_cv_ssize_t=yes
25884 else
25885 gt_cv_ssize_t=no
25887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25890 $as_echo "$gt_cv_ssize_t" >&6; }
25891 if test $gt_cv_ssize_t = no; then
25893 $as_echo "#define ssize_t int" >>confdefs.h
25901 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
25902 #include <sys/stat.h>
25904 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
25906 cat >>confdefs.h <<_ACEOF
25907 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25908 _ACEOF
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25911 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25912 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25913 $as_echo_n "(cached) " >&6
25914 else
25915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25918 #include <sys/types.h>
25919 #include <sys/stat.h>
25920 #if HAVE_SYS_TIME_H
25921 # include <sys/time.h>
25922 #endif
25923 #include <time.h>
25924 struct timespec ts;
25925 struct stat st;
25928 main ()
25931 st.st_atim = ts;
25934 return 0;
25936 _ACEOF
25937 if ac_fn_c_try_compile "$LINENO"; then :
25938 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25939 else
25940 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25945 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25946 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25948 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25951 else
25952 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
25953 #include <sys/stat.h>
25955 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
25957 cat >>confdefs.h <<_ACEOF
25958 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25959 _ACEOF
25962 else
25963 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25964 #include <sys/stat.h>
25966 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
25968 cat >>confdefs.h <<_ACEOF
25969 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25970 _ACEOF
25973 else
25974 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
25975 #include <sys/stat.h>
25977 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
25979 cat >>confdefs.h <<_ACEOF
25980 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25981 _ACEOF
25996 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
25997 #include <sys/stat.h>
25999 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
26001 cat >>confdefs.h <<_ACEOF
26002 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26003 _ACEOF
26006 else
26007 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26008 #include <sys/stat.h>
26010 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
26012 cat >>confdefs.h <<_ACEOF
26013 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26014 _ACEOF
26017 else
26018 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
26019 #include <sys/stat.h>
26021 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
26023 cat >>confdefs.h <<_ACEOF
26024 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26025 _ACEOF
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26037 $as_echo_n "checking for working stdalign.h... " >&6; }
26038 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26039 $as_echo_n "(cached) " >&6
26040 else
26041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h. */
26043 #include <stdalign.h>
26044 #include <stddef.h>
26046 /* Test that alignof yields a result consistent with offsetof.
26047 This catches GCC bug 52023
26048 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26049 #ifdef __cplusplus
26050 template <class t> struct alignof_helper { char a; t b; };
26051 # define ao(type) offsetof (alignof_helper<type>, b)
26052 #else
26053 # define ao(type) offsetof (struct { char a; type b; }, b)
26054 #endif
26055 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26056 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26057 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26059 /* Test _Alignas only on platforms where gnulib can help. */
26060 #if \
26061 ((defined __cplusplus && 201103 <= __cplusplus) \
26062 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26063 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26064 struct alignas_test { char c; char alignas (8) alignas_8; };
26065 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26066 ? 1 : -1];
26067 #endif
26070 main ()
26074 return 0;
26076 _ACEOF
26077 if ac_fn_c_try_compile "$LINENO"; then :
26078 gl_cv_header_working_stdalign_h=yes
26079 else
26080 gl_cv_header_working_stdalign_h=no
26082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26085 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26087 if test $gl_cv_header_working_stdalign_h = yes; then
26088 STDALIGN_H=''
26089 else
26090 STDALIGN_H='stdalign.h'
26094 if test -n "$STDALIGN_H"; then
26095 GL_GENERATE_STDALIGN_H_TRUE=
26096 GL_GENERATE_STDALIGN_H_FALSE='#'
26097 else
26098 GL_GENERATE_STDALIGN_H_TRUE='#'
26099 GL_GENERATE_STDALIGN_H_FALSE=
26104 STDARG_H=''
26105 NEXT_STDARG_H='<stdarg.h>'
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26107 $as_echo_n "checking for va_copy... " >&6; }
26108 if test "${gl_cv_func_va_copy+set}" = set; then :
26109 $as_echo_n "(cached) " >&6
26110 else
26112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26113 /* end confdefs.h. */
26114 #include <stdarg.h>
26116 main ()
26119 #ifndef va_copy
26120 void (*func) (va_list, va_list) = va_copy;
26121 #endif
26124 return 0;
26126 _ACEOF
26127 if ac_fn_c_try_compile "$LINENO"; then :
26128 gl_cv_func_va_copy=yes
26129 else
26130 gl_cv_func_va_copy=no
26132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26136 $as_echo "$gl_cv_func_va_copy" >&6; }
26137 if test $gl_cv_func_va_copy = no; then
26138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26139 /* end confdefs.h. */
26140 #if defined _AIX && !defined __GNUC__
26141 AIX vaccine
26142 #endif
26144 _ACEOF
26145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26146 $EGREP "vaccine" >/dev/null 2>&1; then :
26147 gl_aixcc=yes
26148 else
26149 gl_aixcc=no
26151 rm -f conftest*
26153 if test $gl_aixcc = yes; then
26154 STDARG_H=stdarg.h
26163 if test $gl_cv_have_include_next = yes; then
26164 gl_cv_next_stdarg_h='<'stdarg.h'>'
26165 else
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26167 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26168 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26169 $as_echo_n "(cached) " >&6
26170 else
26172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26173 /* end confdefs.h. */
26174 #include <stdarg.h>
26176 _ACEOF
26177 case "$host_os" in
26178 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26179 *) gl_absname_cpp="$ac_cpp" ;;
26180 esac
26182 case "$host_os" in
26183 mingw*)
26184 gl_dirsep_regex='[/\\]'
26187 gl_dirsep_regex='\/'
26189 esac
26190 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26192 gl_header_literal_regex=`echo 'stdarg.h' \
26193 | sed -e "$gl_make_literal_regex_sed"`
26194 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26195 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26196 s|^/[^/]|//&|
26200 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26201 sed -n "$gl_absolute_header_sed"`'"'
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26206 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26208 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26210 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26211 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26212 gl_next_as_first_directive='<'stdarg.h'>'
26213 else
26214 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26215 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26217 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26222 if test "$gl_cv_next_stdarg_h" = '""'; then
26223 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26224 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26226 else
26228 saved_as_echo_n="$as_echo_n"
26229 as_echo_n=':'
26230 if test "${gl_cv_func___va_copy+set}" = set; then :
26231 $as_echo_n "(cached) " >&6
26232 else
26234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235 /* end confdefs.h. */
26236 #include <stdarg.h>
26238 main ()
26241 #ifndef __va_copy
26242 error, bail out
26243 #endif
26246 return 0;
26248 _ACEOF
26249 if ac_fn_c_try_compile "$LINENO"; then :
26250 gl_cv_func___va_copy=yes
26251 else
26252 gl_cv_func___va_copy=no
26254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26257 as_echo_n="$saved_as_echo_n"
26259 if test $gl_cv_func___va_copy = yes; then
26261 $as_echo "#define va_copy __va_copy" >>confdefs.h
26263 else
26266 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26272 if test -n "$STDARG_H"; then
26273 GL_GENERATE_STDARG_H_TRUE=
26274 GL_GENERATE_STDARG_H_FALSE='#'
26275 else
26276 GL_GENERATE_STDARG_H_TRUE='#'
26277 GL_GENERATE_STDARG_H_FALSE=
26285 # Define two additional variables used in the Makefile substitution.
26287 if test "$ac_cv_header_stdbool_h" = yes; then
26288 STDBOOL_H=''
26289 else
26290 STDBOOL_H='stdbool.h'
26293 if test -n "$STDBOOL_H"; then
26294 GL_GENERATE_STDBOOL_H_TRUE=
26295 GL_GENERATE_STDBOOL_H_FALSE='#'
26296 else
26297 GL_GENERATE_STDBOOL_H_TRUE='#'
26298 GL_GENERATE_STDBOOL_H_FALSE=
26302 if test "$ac_cv_type__Bool" = yes; then
26303 HAVE__BOOL=1
26304 else
26305 HAVE__BOOL=0
26312 STDDEF_H=
26313 if test $gt_cv_c_wchar_t = no; then
26314 HAVE_WCHAR_T=0
26315 STDDEF_H=stddef.h
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26318 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26319 if test "${gl_cv_decl_null_works+set}" = set; then :
26320 $as_echo_n "(cached) " >&6
26321 else
26322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26323 /* end confdefs.h. */
26324 #include <stddef.h>
26325 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26328 main ()
26332 return 0;
26334 _ACEOF
26335 if ac_fn_c_try_compile "$LINENO"; then :
26336 gl_cv_decl_null_works=yes
26337 else
26338 gl_cv_decl_null_works=no
26340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26343 $as_echo "$gl_cv_decl_null_works" >&6; }
26344 if test $gl_cv_decl_null_works = no; then
26345 REPLACE_NULL=1
26346 STDDEF_H=stddef.h
26349 if test -n "$STDDEF_H"; then
26350 GL_GENERATE_STDDEF_H_TRUE=
26351 GL_GENERATE_STDDEF_H_FALSE='#'
26352 else
26353 GL_GENERATE_STDDEF_H_TRUE='#'
26354 GL_GENERATE_STDDEF_H_FALSE=
26357 if test -n "$STDDEF_H"; then
26366 if test $gl_cv_have_include_next = yes; then
26367 gl_cv_next_stddef_h='<'stddef.h'>'
26368 else
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26370 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26371 if test "${gl_cv_next_stddef_h+set}" = set; then :
26372 $as_echo_n "(cached) " >&6
26373 else
26375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26376 /* end confdefs.h. */
26377 #include <stddef.h>
26379 _ACEOF
26380 case "$host_os" in
26381 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26382 *) gl_absname_cpp="$ac_cpp" ;;
26383 esac
26385 case "$host_os" in
26386 mingw*)
26387 gl_dirsep_regex='[/\\]'
26390 gl_dirsep_regex='\/'
26392 esac
26393 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26395 gl_header_literal_regex=`echo 'stddef.h' \
26396 | sed -e "$gl_make_literal_regex_sed"`
26397 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26398 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26399 s|^/[^/]|//&|
26403 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26404 sed -n "$gl_absolute_header_sed"`'"'
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26409 $as_echo "$gl_cv_next_stddef_h" >&6; }
26411 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26413 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26415 gl_next_as_first_directive='<'stddef.h'>'
26416 else
26417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26418 gl_next_as_first_directive=$gl_cv_next_stddef_h
26420 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26438 if test $gl_cv_have_include_next = yes; then
26439 gl_cv_next_stdio_h='<'stdio.h'>'
26440 else
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26442 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26443 if test "${gl_cv_next_stdio_h+set}" = set; then :
26444 $as_echo_n "(cached) " >&6
26445 else
26447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26448 /* end confdefs.h. */
26449 #include <stdio.h>
26451 _ACEOF
26452 case "$host_os" in
26453 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26454 *) gl_absname_cpp="$ac_cpp" ;;
26455 esac
26457 case "$host_os" in
26458 mingw*)
26459 gl_dirsep_regex='[/\\]'
26462 gl_dirsep_regex='\/'
26464 esac
26465 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26467 gl_header_literal_regex=`echo 'stdio.h' \
26468 | sed -e "$gl_make_literal_regex_sed"`
26469 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26470 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26471 s|^/[^/]|//&|
26475 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26476 sed -n "$gl_absolute_header_sed"`'"'
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26481 $as_echo "$gl_cv_next_stdio_h" >&6; }
26483 NEXT_STDIO_H=$gl_cv_next_stdio_h
26485 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26486 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26487 gl_next_as_first_directive='<'stdio.h'>'
26488 else
26489 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26490 gl_next_as_first_directive=$gl_cv_next_stdio_h
26492 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26498 GNULIB_FSCANF=1
26501 cat >>confdefs.h <<_ACEOF
26502 #define GNULIB_FSCANF 1
26503 _ACEOF
26506 GNULIB_SCANF=1
26509 cat >>confdefs.h <<_ACEOF
26510 #define GNULIB_SCANF 1
26511 _ACEOF
26514 GNULIB_FGETC=1
26515 GNULIB_GETC=1
26516 GNULIB_GETCHAR=1
26517 GNULIB_FGETS=1
26518 GNULIB_FREAD=1
26521 GNULIB_FPRINTF=1
26522 GNULIB_PRINTF=1
26523 GNULIB_VFPRINTF=1
26524 GNULIB_VPRINTF=1
26525 GNULIB_FPUTC=1
26526 GNULIB_PUTC=1
26527 GNULIB_PUTCHAR=1
26528 GNULIB_FPUTS=1
26529 GNULIB_PUTS=1
26530 GNULIB_FWRITE=1
26546 if test $gl_cv_have_include_next = yes; then
26547 gl_cv_next_stdlib_h='<'stdlib.h'>'
26548 else
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26550 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26551 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26553 else
26555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26556 /* end confdefs.h. */
26557 #include <stdlib.h>
26559 _ACEOF
26560 case "$host_os" in
26561 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26562 *) gl_absname_cpp="$ac_cpp" ;;
26563 esac
26565 case "$host_os" in
26566 mingw*)
26567 gl_dirsep_regex='[/\\]'
26570 gl_dirsep_regex='\/'
26572 esac
26573 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26575 gl_header_literal_regex=`echo 'stdlib.h' \
26576 | sed -e "$gl_make_literal_regex_sed"`
26577 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26578 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26579 s|^/[^/]|//&|
26583 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26584 sed -n "$gl_absolute_header_sed"`'"'
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26589 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26591 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26593 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26595 gl_next_as_first_directive='<'stdlib.h'>'
26596 else
26597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26598 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26600 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26610 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26618 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26630 if test "$ac_cv_have_decl_strtoimax" != yes; then
26631 HAVE_DECL_STRTOIMAX=0
26634 if test $ac_cv_func_strtoimax = yes; then
26635 HAVE_STRTOIMAX=1
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26637 $as_echo_n "checking whether strtoimax works... " >&6; }
26638 if test "${gl_cv_func_strtoimax+set}" = set; then :
26639 $as_echo_n "(cached) " >&6
26640 else
26641 if test "$cross_compiling" = yes; then :
26642 case "$host_os" in
26643 # Guess no on AIX 5.
26644 aix5*) gl_cv_func_strtoimax="guessing no" ;;
26645 # Guess yes otherwise.
26646 *) gl_cv_func_strtoimax="guessing yes" ;;
26647 esac
26649 else
26650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h. */
26653 #include <errno.h>
26654 #include <string.h>
26655 #include <inttypes.h>
26656 int main ()
26658 if (sizeof (intmax_t) > sizeof (int))
26660 const char *s = "4294967295";
26661 char *p;
26662 intmax_t res;
26663 errno = 0;
26664 res = strtoimax (s, &p, 10);
26665 if (p != s + strlen (s))
26666 return 1;
26667 if (errno != 0)
26668 return 2;
26669 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26670 return 3;
26672 else
26674 const char *s = "2147483647";
26675 char *p;
26676 intmax_t res;
26677 errno = 0;
26678 res = strtoimax (s, &p, 10);
26679 if (p != s + strlen (s))
26680 return 1;
26681 if (errno != 0)
26682 return 2;
26683 if (res != 2147483647)
26684 return 3;
26686 return 0;
26689 _ACEOF
26690 if ac_fn_c_try_run "$LINENO"; then :
26691 gl_cv_func_strtoimax=yes
26692 else
26693 gl_cv_func_strtoimax=no
26695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26696 conftest.$ac_objext conftest.beam conftest.$ac_ext
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26702 $as_echo "$gl_cv_func_strtoimax" >&6; }
26703 case "$gl_cv_func_strtoimax" in
26704 *no) REPLACE_STRTOIMAX=1 ;;
26705 esac
26706 else
26707 HAVE_STRTOIMAX=0
26710 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26719 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
26722 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26723 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
26724 ac_have_decl=1
26725 else
26726 ac_have_decl=0
26729 cat >>confdefs.h <<_ACEOF
26730 #define HAVE_DECL_STRTOLL $ac_have_decl
26731 _ACEOF
26741 GNULIB_STRTOIMAX=1
26751 if test "$ac_cv_have_decl_strtoumax" != yes; then
26752 HAVE_DECL_STRTOUMAX=0
26755 if test $ac_cv_func_strtoumax = no; then
26764 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
26767 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26768 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
26769 ac_have_decl=1
26770 else
26771 ac_have_decl=0
26774 cat >>confdefs.h <<_ACEOF
26775 #define HAVE_DECL_STRTOULL $ac_have_decl
26776 _ACEOF
26786 GNULIB_STRTOUMAX=1
26794 if test $ac_cv_func_symlink = no; then
26795 HAVE_SYMLINK=0
26796 else
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26798 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26799 if test "${gl_cv_func_symlink_works+set}" = set; then :
26800 $as_echo_n "(cached) " >&6
26801 else
26802 if test "$cross_compiling" = yes; then :
26803 case "$host_os" in
26804 # Guess yes on glibc systems.
26805 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
26806 # If we don't know, assume the worst.
26807 *) gl_cv_func_symlink_works="guessing no" ;;
26808 esac
26810 else
26811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26812 /* end confdefs.h. */
26813 #include <unistd.h>
26816 main ()
26818 int result = 0;
26819 if (!symlink ("a", "conftest.link/"))
26820 result |= 1;
26821 if (symlink ("conftest.f", "conftest.lnk2"))
26822 result |= 2;
26823 else if (!symlink ("a", "conftest.lnk2/"))
26824 result |= 4;
26825 return result;
26828 return 0;
26830 _ACEOF
26831 if ac_fn_c_try_run "$LINENO"; then :
26832 gl_cv_func_symlink_works=yes
26833 else
26834 gl_cv_func_symlink_works=no
26836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26837 conftest.$ac_objext conftest.beam conftest.$ac_ext
26840 rm -f conftest.f conftest.link conftest.lnk2
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26843 $as_echo "$gl_cv_func_symlink_works" >&6; }
26844 case "$gl_cv_func_symlink_works" in
26845 *yes) ;;
26847 REPLACE_SYMLINK=1
26849 esac
26852 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
26861 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
26869 GNULIB_SYMLINK=1
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26879 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26880 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26881 $as_echo_n "(cached) " >&6
26882 else
26884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26885 /* end confdefs.h. */
26886 #include <sys/select.h>
26888 main ()
26890 struct timeval b;
26892 return 0;
26894 _ACEOF
26895 if ac_fn_c_try_compile "$LINENO"; then :
26896 gl_cv_header_sys_select_h_selfcontained=yes
26897 else
26898 gl_cv_header_sys_select_h_selfcontained=no
26900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26903 /* end confdefs.h. */
26904 #include <sys/select.h>
26906 main ()
26908 int memset; int bzero;
26910 return 0;
26913 _ACEOF
26914 if ac_fn_c_try_compile "$LINENO"; then :
26915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26916 /* end confdefs.h. */
26917 #include <sys/select.h>
26919 main ()
26922 #undef memset
26923 #define memset nonexistent_memset
26924 extern
26925 #ifdef __cplusplus
26927 #endif
26928 void *memset (void *, int, unsigned long);
26929 #undef bzero
26930 #define bzero nonexistent_bzero
26931 extern
26932 #ifdef __cplusplus
26934 #endif
26935 void bzero (void *, unsigned long);
26936 fd_set fds;
26937 FD_ZERO (&fds);
26940 return 0;
26943 _ACEOF
26944 if ac_fn_c_try_link "$LINENO"; then :
26946 else
26947 gl_cv_header_sys_select_h_selfcontained=no
26949 rm -f core conftest.err conftest.$ac_objext \
26950 conftest$ac_exeext conftest.$ac_ext
26953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26958 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26968 if test $gl_cv_have_include_next = yes; then
26969 gl_cv_next_sys_select_h='<'sys/select.h'>'
26970 else
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26972 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26973 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26974 $as_echo_n "(cached) " >&6
26975 else
26977 if test $ac_cv_header_sys_select_h = yes; then
26980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26981 /* end confdefs.h. */
26982 #include <sys/select.h>
26984 _ACEOF
26985 case "$host_os" in
26986 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26987 *) gl_absname_cpp="$ac_cpp" ;;
26988 esac
26990 case "$host_os" in
26991 mingw*)
26992 gl_dirsep_regex='[/\\]'
26995 gl_dirsep_regex='\/'
26997 esac
26998 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27000 gl_header_literal_regex=`echo 'sys/select.h' \
27001 | sed -e "$gl_make_literal_regex_sed"`
27002 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27003 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27004 s|^/[^/]|//&|
27008 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27009 sed -n "$gl_absolute_header_sed"`'"'
27010 else
27011 gl_cv_next_sys_select_h='<'sys/select.h'>'
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27017 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27019 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27021 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27023 gl_next_as_first_directive='<'sys/select.h'>'
27024 else
27025 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27026 gl_next_as_first_directive=$gl_cv_next_sys_select_h
27028 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27033 if test $ac_cv_header_sys_select_h = yes; then
27034 HAVE_SYS_SELECT_H=1
27035 else
27036 HAVE_SYS_SELECT_H=0
27043 if test $ac_cv_header_sys_socket_h != yes; then
27044 for ac_header in winsock2.h
27045 do :
27046 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27047 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27048 cat >>confdefs.h <<_ACEOF
27049 #define HAVE_WINSOCK2_H 1
27050 _ACEOF
27054 done
27057 if test "$ac_cv_header_winsock2_h" = yes; then
27058 HAVE_WINSOCK2_H=1
27059 UNISTD_H_HAVE_WINSOCK2_H=1
27060 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27061 else
27062 HAVE_WINSOCK2_H=0
27084 if test $gl_cv_have_include_next = yes; then
27085 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27086 else
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27088 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27089 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27090 $as_echo_n "(cached) " >&6
27091 else
27093 if test $ac_cv_header_sys_stat_h = yes; then
27096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h. */
27098 #include <sys/stat.h>
27100 _ACEOF
27101 case "$host_os" in
27102 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27103 *) gl_absname_cpp="$ac_cpp" ;;
27104 esac
27106 case "$host_os" in
27107 mingw*)
27108 gl_dirsep_regex='[/\\]'
27111 gl_dirsep_regex='\/'
27113 esac
27114 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27116 gl_header_literal_regex=`echo 'sys/stat.h' \
27117 | sed -e "$gl_make_literal_regex_sed"`
27118 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27119 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27120 s|^/[^/]|//&|
27124 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27125 sed -n "$gl_absolute_header_sed"`'"'
27126 else
27127 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27133 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27135 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27137 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27139 gl_next_as_first_directive='<'sys/stat.h'>'
27140 else
27141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27142 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27144 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27156 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27158 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27162 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27163 #include <sys/stat.h>
27165 if test "x$ac_cv_type_nlink_t" = x""yes; then :
27167 else
27169 $as_echo "#define nlink_t int" >>confdefs.h
27190 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27192 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
27193 ac_have_decl=1
27194 else
27195 ac_have_decl=0
27198 cat >>confdefs.h <<_ACEOF
27199 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27200 _ACEOF
27202 if test $ac_cv_have_decl_localtime_r = no; then
27203 HAVE_DECL_LOCALTIME_R=0
27207 if test $ac_cv_func_localtime_r = yes; then
27208 HAVE_LOCALTIME_R=1
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27210 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27211 if test "${gl_cv_time_r_posix+set}" = set; then :
27212 $as_echo_n "(cached) " >&6
27213 else
27214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27215 /* end confdefs.h. */
27216 #include <time.h>
27218 main ()
27220 /* We don't need to append 'restrict's to the argument types,
27221 even though the POSIX signature has the 'restrict's,
27222 since C99 says they can't affect type compatibility. */
27223 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27224 if (ptr) return 0;
27225 /* Check the return type is a pointer.
27226 On HP-UX 10 it is 'int'. */
27227 *localtime_r (0, 0);
27229 return 0;
27232 _ACEOF
27233 if ac_fn_c_try_compile "$LINENO"; then :
27234 gl_cv_time_r_posix=yes
27235 else
27236 gl_cv_time_r_posix=no
27238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27242 $as_echo "$gl_cv_time_r_posix" >&6; }
27243 if test $gl_cv_time_r_posix = yes; then
27244 REPLACE_LOCALTIME_R=0
27245 else
27246 REPLACE_LOCALTIME_R=1
27248 else
27249 HAVE_LOCALTIME_R=0
27252 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
27261 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
27272 GNULIB_TIME_R=1
27283 LIB_TIMER_TIME=
27285 gl_saved_libs=$LIBS
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27287 $as_echo_n "checking for library containing timer_settime... " >&6; }
27288 if test "${ac_cv_search_timer_settime+set}" = set; then :
27289 $as_echo_n "(cached) " >&6
27290 else
27291 ac_func_search_save_LIBS=$LIBS
27292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27293 /* end confdefs.h. */
27295 /* Override any GCC internal prototype to avoid an error.
27296 Use char because int might match the return type of a GCC
27297 builtin and then its argument prototype would still apply. */
27298 #ifdef __cplusplus
27299 extern "C"
27300 #endif
27301 char timer_settime ();
27303 main ()
27305 return timer_settime ();
27307 return 0;
27309 _ACEOF
27310 for ac_lib in '' rt posix4; do
27311 if test -z "$ac_lib"; then
27312 ac_res="none required"
27313 else
27314 ac_res=-l$ac_lib
27315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27317 if ac_fn_c_try_link "$LINENO"; then :
27318 ac_cv_search_timer_settime=$ac_res
27320 rm -f core conftest.err conftest.$ac_objext \
27321 conftest$ac_exeext
27322 if test "${ac_cv_search_timer_settime+set}" = set; then :
27323 break
27325 done
27326 if test "${ac_cv_search_timer_settime+set}" = set; then :
27328 else
27329 ac_cv_search_timer_settime=no
27331 rm conftest.$ac_ext
27332 LIBS=$ac_func_search_save_LIBS
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27335 $as_echo "$ac_cv_search_timer_settime" >&6; }
27336 ac_res=$ac_cv_search_timer_settime
27337 if test "$ac_res" != no; then :
27338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27339 test "$ac_cv_search_timer_settime" = "none required" ||
27340 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27344 /* end confdefs.h. */
27346 #include <features.h>
27347 #ifdef __GNU_LIBRARY__
27348 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27349 && !defined __UCLIBC__
27350 Thread emulation available
27351 #endif
27352 #endif
27354 _ACEOF
27355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27356 $EGREP "Thread" >/dev/null 2>&1; then :
27357 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27359 rm -f conftest*
27361 for ac_func in timer_settime
27362 do :
27363 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27364 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27365 cat >>confdefs.h <<_ACEOF
27366 #define HAVE_TIMER_SETTIME 1
27367 _ACEOF
27370 done
27372 LIBS=$gl_saved_libs
27387 if test $gl_cv_have_include_next = yes; then
27388 gl_cv_next_unistd_h='<'unistd.h'>'
27389 else
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27391 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27392 if test "${gl_cv_next_unistd_h+set}" = set; then :
27393 $as_echo_n "(cached) " >&6
27394 else
27396 if test $ac_cv_header_unistd_h = yes; then
27399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27400 /* end confdefs.h. */
27401 #include <unistd.h>
27403 _ACEOF
27404 case "$host_os" in
27405 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27406 *) gl_absname_cpp="$ac_cpp" ;;
27407 esac
27409 case "$host_os" in
27410 mingw*)
27411 gl_dirsep_regex='[/\\]'
27414 gl_dirsep_regex='\/'
27416 esac
27417 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27419 gl_header_literal_regex=`echo 'unistd.h' \
27420 | sed -e "$gl_make_literal_regex_sed"`
27421 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27422 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27423 s|^/[^/]|//&|
27427 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27428 sed -n "$gl_absolute_header_sed"`'"'
27429 else
27430 gl_cv_next_unistd_h='<'unistd.h'>'
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27436 $as_echo "$gl_cv_next_unistd_h" >&6; }
27438 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27440 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27441 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27442 gl_next_as_first_directive='<'unistd.h'>'
27443 else
27444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27445 gl_next_as_first_directive=$gl_cv_next_unistd_h
27447 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27452 if test $ac_cv_header_unistd_h = yes; then
27453 HAVE_UNISTD_H=1
27454 else
27455 HAVE_UNISTD_H=0
27468 if test $ac_cv_have_decl_unsetenv = no; then
27469 HAVE_DECL_UNSETENV=0
27471 for ac_func in unsetenv
27472 do :
27473 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27474 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27475 cat >>confdefs.h <<_ACEOF
27476 #define HAVE_UNSETENV 1
27477 _ACEOF
27480 done
27482 if test $ac_cv_func_unsetenv = no; then
27483 HAVE_UNSETENV=0
27484 else
27485 HAVE_UNSETENV=1
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27487 $as_echo_n "checking for unsetenv() return type... " >&6; }
27488 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27489 $as_echo_n "(cached) " >&6
27490 else
27491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h. */
27494 #undef _BSD
27495 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27496 #include <stdlib.h>
27497 extern
27498 #ifdef __cplusplus
27500 #endif
27501 int unsetenv (const char *name);
27504 main ()
27508 return 0;
27510 _ACEOF
27511 if ac_fn_c_try_compile "$LINENO"; then :
27512 gt_cv_func_unsetenv_ret='int'
27513 else
27514 gt_cv_func_unsetenv_ret='void'
27516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27519 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27520 if test $gt_cv_func_unsetenv_ret = 'void'; then
27522 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27524 REPLACE_UNSETENV=1
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27528 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27529 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27530 $as_echo_n "(cached) " >&6
27531 else
27532 if test "$cross_compiling" = yes; then :
27533 case "$host_os" in
27534 # Guess yes on glibc systems.
27535 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27536 # If we don't know, assume the worst.
27537 *) gl_cv_func_unsetenv_works="guessing no" ;;
27538 esac
27540 else
27541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27542 /* end confdefs.h. */
27544 #include <stdlib.h>
27545 #include <errno.h>
27546 extern char **environ;
27549 main ()
27552 char entry1[] = "a=1";
27553 char entry2[] = "b=2";
27554 char *env[] = { entry1, entry2, NULL };
27555 if (putenv ((char *) "a=1")) return 1;
27556 if (putenv (entry2)) return 2;
27557 entry2[0] = 'a';
27558 unsetenv ("a");
27559 if (getenv ("a")) return 3;
27560 if (!unsetenv ("") || errno != EINVAL) return 4;
27561 entry2[0] = 'b';
27562 environ = env;
27563 if (!getenv ("a")) return 5;
27564 entry2[0] = 'a';
27565 unsetenv ("a");
27566 if (getenv ("a")) return 6;
27569 return 0;
27571 _ACEOF
27572 if ac_fn_c_try_run "$LINENO"; then :
27573 gl_cv_func_unsetenv_works=yes
27574 else
27575 gl_cv_func_unsetenv_works=no
27577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27578 conftest.$ac_objext conftest.beam conftest.$ac_ext
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27583 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27584 case "$gl_cv_func_unsetenv_works" in
27585 *yes) ;;
27587 REPLACE_UNSETENV=1
27589 esac
27592 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27601 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27613 GNULIB_UNSETENV=1
27625 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27627 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27628 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27629 $as_echo_n "(cached) " >&6
27630 else
27631 touch conftest.file
27632 if test "$cross_compiling" = yes; then :
27633 case "$host_os" in
27634 # Guess yes on glibc systems.
27635 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
27636 # If we don't know, assume the worst.
27637 *) gl_cv_func_futimesat_works="guessing no" ;;
27638 esac
27640 else
27641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27642 /* end confdefs.h. */
27644 #include <stddef.h>
27645 #include <sys/times.h>
27646 #include <fcntl.h>
27649 main ()
27651 int fd = open ("conftest.file", O_RDWR);
27652 if (fd < 0) return 1;
27653 if (futimesat (fd, NULL, NULL)) return 2;
27656 return 0;
27658 _ACEOF
27659 if ac_fn_c_try_run "$LINENO"; then :
27660 gl_cv_func_futimesat_works=yes
27661 else
27662 gl_cv_func_futimesat_works=no
27664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27665 conftest.$ac_objext conftest.beam conftest.$ac_ext
27668 rm -f conftest.file
27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27671 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27672 case "$gl_cv_func_futimesat_works" in
27673 *yes) ;;
27676 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27679 esac
27682 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
27683 gl_gnulib_enabled_dosname=false
27684 gl_gnulib_enabled_euidaccess=false
27685 gl_gnulib_enabled_getdtablesize=false
27686 gl_gnulib_enabled_getgroups=false
27687 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
27688 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
27689 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
27690 gl_gnulib_enabled_pathmax=false
27691 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
27692 gl_gnulib_enabled_secure_getenv=false
27693 gl_gnulib_enabled_stat=false
27694 gl_gnulib_enabled_strtoll=false
27695 gl_gnulib_enabled_strtoull=false
27696 gl_gnulib_enabled_tempname=false
27697 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
27698 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
27700 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27709 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27711 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
27714 func_gl_gnulib_m4code_dosname ()
27716 if ! $gl_gnulib_enabled_dosname; then
27717 gl_gnulib_enabled_dosname=true
27720 func_gl_gnulib_m4code_euidaccess ()
27722 if ! $gl_gnulib_enabled_euidaccess; then
27728 for ac_func in euidaccess
27729 do :
27730 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27731 if test "x$ac_cv_func_euidaccess" = x""yes; then :
27732 cat >>confdefs.h <<_ACEOF
27733 #define HAVE_EUIDACCESS 1
27734 _ACEOF
27737 done
27739 if test $ac_cv_func_euidaccess = no; then
27740 HAVE_EUIDACCESS=0
27743 if test $HAVE_EUIDACCESS = 0; then
27752 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
27756 for ac_header in libgen.h
27757 do :
27758 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27759 if test "x$ac_cv_header_libgen_h" = x""yes; then :
27760 cat >>confdefs.h <<_ACEOF
27761 #define HAVE_LIBGEN_H 1
27762 _ACEOF
27766 done
27769 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
27770 if test "x$ac_cv_func_getgroups" = x""yes; then :
27775 # If we don't yet have getgroups, see if it's in -lbsd.
27776 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27777 ac_save_LIBS=$LIBS
27778 if test $ac_cv_func_getgroups = no; then
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27780 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27781 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27782 $as_echo_n "(cached) " >&6
27783 else
27784 ac_check_lib_save_LIBS=$LIBS
27785 LIBS="-lbsd $LIBS"
27786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27787 /* end confdefs.h. */
27789 /* Override any GCC internal prototype to avoid an error.
27790 Use char because int might match the return type of a GCC
27791 builtin and then its argument prototype would still apply. */
27792 #ifdef __cplusplus
27793 extern "C"
27794 #endif
27795 char getgroups ();
27797 main ()
27799 return getgroups ();
27801 return 0;
27803 _ACEOF
27804 if ac_fn_c_try_link "$LINENO"; then :
27805 ac_cv_lib_bsd_getgroups=yes
27806 else
27807 ac_cv_lib_bsd_getgroups=no
27809 rm -f core conftest.err conftest.$ac_objext \
27810 conftest$ac_exeext conftest.$ac_ext
27811 LIBS=$ac_check_lib_save_LIBS
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27814 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27815 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
27816 GETGROUPS_LIB=-lbsd
27821 # Run the program to test the functionality of the system-supplied
27822 # getgroups function only if there is such a function.
27823 if test $ac_cv_func_getgroups = yes; then
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27825 $as_echo_n "checking for working getgroups... " >&6; }
27826 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27827 $as_echo_n "(cached) " >&6
27828 else
27829 if test "$cross_compiling" = yes; then :
27830 case "$host_os" in # ((
27831 # Guess yes on glibc systems.
27832 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
27833 # If we don't know, assume the worst.
27834 *) ac_cv_func_getgroups_works="guessing no" ;;
27835 esac
27837 else
27838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27839 /* end confdefs.h. */
27840 $ac_includes_default
27842 main ()
27844 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27845 return getgroups (0, 0) == -1;
27847 return 0;
27850 _ACEOF
27851 if ac_fn_c_try_run "$LINENO"; then :
27852 ac_cv_func_getgroups_works=yes
27853 else
27854 ac_cv_func_getgroups_works=no
27856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27857 conftest.$ac_objext conftest.beam conftest.$ac_ext
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27863 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27864 else
27865 ac_cv_func_getgroups_works=no
27867 case "$ac_cv_func_getgroups_works" in
27868 *yes)
27870 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27873 esac
27874 LIBS=$ac_save_LIBS
27877 # Solaris 9 and 10 need -lgen to get the eaccess function.
27878 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27879 # programs in the package would end up linked with that potentially-shared
27880 # library, inducing unnecessary run-time overhead.
27881 LIB_EACCESS=
27883 gl_saved_libs=$LIBS
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27885 $as_echo_n "checking for library containing eaccess... " >&6; }
27886 if test "${ac_cv_search_eaccess+set}" = set; then :
27887 $as_echo_n "(cached) " >&6
27888 else
27889 ac_func_search_save_LIBS=$LIBS
27890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27891 /* end confdefs.h. */
27893 /* Override any GCC internal prototype to avoid an error.
27894 Use char because int might match the return type of a GCC
27895 builtin and then its argument prototype would still apply. */
27896 #ifdef __cplusplus
27897 extern "C"
27898 #endif
27899 char eaccess ();
27901 main ()
27903 return eaccess ();
27905 return 0;
27907 _ACEOF
27908 for ac_lib in '' gen; do
27909 if test -z "$ac_lib"; then
27910 ac_res="none required"
27911 else
27912 ac_res=-l$ac_lib
27913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27915 if ac_fn_c_try_link "$LINENO"; then :
27916 ac_cv_search_eaccess=$ac_res
27918 rm -f core conftest.err conftest.$ac_objext \
27919 conftest$ac_exeext
27920 if test "${ac_cv_search_eaccess+set}" = set; then :
27921 break
27923 done
27924 if test "${ac_cv_search_eaccess+set}" = set; then :
27926 else
27927 ac_cv_search_eaccess=no
27929 rm conftest.$ac_ext
27930 LIBS=$ac_func_search_save_LIBS
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27933 $as_echo "$ac_cv_search_eaccess" >&6; }
27934 ac_res=$ac_cv_search_eaccess
27935 if test "$ac_res" != no; then :
27936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27937 test "$ac_cv_search_eaccess" = "none required" ||
27938 LIB_EACCESS=$ac_cv_search_eaccess
27941 for ac_func in eaccess
27942 do :
27943 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
27944 if test "x$ac_cv_func_eaccess" = x""yes; then :
27945 cat >>confdefs.h <<_ACEOF
27946 #define HAVE_EACCESS 1
27947 _ACEOF
27950 done
27952 LIBS=$gl_saved_libs
27960 GNULIB_EUIDACCESS=1
27966 gl_gnulib_enabled_euidaccess=true
27967 if test $HAVE_EUIDACCESS = 0; then
27968 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27970 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27971 if test $HAVE_EUIDACCESS = 0; then
27972 func_gl_gnulib_m4code_stat
27976 func_gl_gnulib_m4code_getdtablesize ()
27978 if ! $gl_gnulib_enabled_getdtablesize; then
27982 if test $ac_cv_func_getdtablesize != yes; then
27983 HAVE_GETDTABLESIZE=0
27986 if test $HAVE_GETDTABLESIZE = 0; then
27995 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
28004 GNULIB_GETDTABLESIZE=1
28010 gl_gnulib_enabled_getdtablesize=true
28013 func_gl_gnulib_m4code_getgroups ()
28015 if ! $gl_gnulib_enabled_getgroups; then
28021 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28022 if test "x$ac_cv_func_getgroups" = x""yes; then :
28027 # If we don't yet have getgroups, see if it's in -lbsd.
28028 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28029 ac_save_LIBS=$LIBS
28030 if test $ac_cv_func_getgroups = no; then
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28032 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28033 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28034 $as_echo_n "(cached) " >&6
28035 else
28036 ac_check_lib_save_LIBS=$LIBS
28037 LIBS="-lbsd $LIBS"
28038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28039 /* end confdefs.h. */
28041 /* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
28044 #ifdef __cplusplus
28045 extern "C"
28046 #endif
28047 char getgroups ();
28049 main ()
28051 return getgroups ();
28053 return 0;
28055 _ACEOF
28056 if ac_fn_c_try_link "$LINENO"; then :
28057 ac_cv_lib_bsd_getgroups=yes
28058 else
28059 ac_cv_lib_bsd_getgroups=no
28061 rm -f core conftest.err conftest.$ac_objext \
28062 conftest$ac_exeext conftest.$ac_ext
28063 LIBS=$ac_check_lib_save_LIBS
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28066 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28067 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28068 GETGROUPS_LIB=-lbsd
28073 # Run the program to test the functionality of the system-supplied
28074 # getgroups function only if there is such a function.
28075 if test $ac_cv_func_getgroups = yes; then
28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28077 $as_echo_n "checking for working getgroups... " >&6; }
28078 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28079 $as_echo_n "(cached) " >&6
28080 else
28081 if test "$cross_compiling" = yes; then :
28082 case "$host_os" in # ((
28083 # Guess yes on glibc systems.
28084 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28085 # If we don't know, assume the worst.
28086 *) ac_cv_func_getgroups_works="guessing no" ;;
28087 esac
28089 else
28090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28091 /* end confdefs.h. */
28092 $ac_includes_default
28094 main ()
28096 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28097 return getgroups (0, 0) == -1;
28099 return 0;
28102 _ACEOF
28103 if ac_fn_c_try_run "$LINENO"; then :
28104 ac_cv_func_getgroups_works=yes
28105 else
28106 ac_cv_func_getgroups_works=no
28108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28109 conftest.$ac_objext conftest.beam conftest.$ac_ext
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28115 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28116 else
28117 ac_cv_func_getgroups_works=no
28119 case "$ac_cv_func_getgroups_works" in
28120 *yes)
28122 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28125 esac
28126 LIBS=$ac_save_LIBS
28128 if test $ac_cv_func_getgroups != yes; then
28129 HAVE_GETGROUPS=0
28130 else
28131 if test "$ac_cv_type_getgroups" != gid_t \
28132 || { case "$ac_cv_func_getgroups_works" in
28133 *yes) false;;
28134 *) true;;
28135 esac
28136 }; then
28137 REPLACE_GETGROUPS=1
28139 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28141 else
28142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28143 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28144 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28145 $as_echo_n "(cached) " >&6
28146 else
28147 if test "$cross_compiling" = yes; then :
28148 case "$host_os" in
28149 # Guess yes on glibc systems.
28150 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
28151 # If we don't know, assume the worst.
28152 *) gl_cv_func_getgroups_works="guessing no" ;;
28153 esac
28155 else
28156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28157 /* end confdefs.h. */
28158 $ac_includes_default
28160 main ()
28162 int size = getgroups (0, 0);
28163 gid_t *list = malloc (size * sizeof *list);
28164 return getgroups (-1, list) != -1;
28166 return 0;
28168 _ACEOF
28169 if ac_fn_c_try_run "$LINENO"; then :
28170 gl_cv_func_getgroups_works=yes
28171 else
28172 gl_cv_func_getgroups_works=no
28174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28175 conftest.$ac_objext conftest.beam conftest.$ac_ext
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28180 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28181 case "$gl_cv_func_getgroups_works" in
28182 *yes) ;;
28183 *) REPLACE_GETGROUPS=1 ;;
28184 esac
28187 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28189 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
28198 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
28206 GNULIB_GETGROUPS=1
28212 gl_gnulib_enabled_getgroups=true
28215 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
28217 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28220 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
28223 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
28225 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28231 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
28232 if test "x$ac_cv_func_group_member" = x""yes; then :
28234 else
28236 HAVE_GROUP_MEMBER=0
28241 if test $HAVE_GROUP_MEMBER = 0; then
28250 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
28261 GNULIB_GROUP_MEMBER=1
28267 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
28268 if test $HAVE_GROUP_MEMBER = 0; then
28269 func_gl_gnulib_m4code_getgroups
28271 if test $HAVE_GROUP_MEMBER = 0; then
28272 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28276 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
28278 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28279 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
28282 func_gl_gnulib_m4code_pathmax ()
28284 if ! $gl_gnulib_enabled_pathmax; then
28288 gl_gnulib_enabled_pathmax=true
28291 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
28293 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28294 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
28297 func_gl_gnulib_m4code_secure_getenv ()
28299 if ! $gl_gnulib_enabled_secure_getenv; then
28305 if test $ac_cv_func_secure_getenv = no; then
28306 HAVE_SECURE_GETENV=0
28309 if test $HAVE_SECURE_GETENV = 0; then
28318 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
28321 for ac_func in __secure_getenv
28322 do :
28323 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28324 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
28325 cat >>confdefs.h <<_ACEOF
28326 #define HAVE___SECURE_GETENV 1
28327 _ACEOF
28330 done
28332 if test $ac_cv_func___secure_getenv = no; then
28333 for ac_func in issetugid
28334 do :
28335 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28336 if test "x$ac_cv_func_issetugid" = x""yes; then :
28337 cat >>confdefs.h <<_ACEOF
28338 #define HAVE_ISSETUGID 1
28339 _ACEOF
28342 done
28352 GNULIB_SECURE_GETENV=1
28358 gl_gnulib_enabled_secure_getenv=true
28361 func_gl_gnulib_m4code_stat ()
28363 if ! $gl_gnulib_enabled_stat; then
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28368 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28369 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28370 $as_echo_n "(cached) " >&6
28371 else
28372 if test "$cross_compiling" = yes; then :
28373 case $host_os in
28374 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28375 *) gl_cv_func_stat_dir_slash="guessing yes";;
28376 esac
28377 else
28378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28379 /* end confdefs.h. */
28380 #include <sys/stat.h>
28383 main ()
28385 struct stat st; return stat (".", &st) != stat ("./", &st);
28387 return 0;
28389 _ACEOF
28390 if ac_fn_c_try_run "$LINENO"; then :
28391 gl_cv_func_stat_dir_slash=yes
28392 else
28393 gl_cv_func_stat_dir_slash=no
28395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28396 conftest.$ac_objext conftest.beam conftest.$ac_ext
28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28401 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28403 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28404 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28405 $as_echo_n "(cached) " >&6
28406 else
28407 touch conftest.tmp
28408 # Assume that if we have lstat, we can also check symlinks.
28409 if test $ac_cv_func_lstat = yes; then
28410 ln -s conftest.tmp conftest.lnk
28412 if test "$cross_compiling" = yes; then :
28413 case "$host_os" in
28414 # Guess yes on glibc systems.
28415 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28416 # If we don't know, assume the worst.
28417 *) gl_cv_func_stat_file_slash="guessing no" ;;
28418 esac
28420 else
28421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28422 /* end confdefs.h. */
28423 #include <sys/stat.h>
28426 main ()
28428 int result = 0;
28429 struct stat st;
28430 if (!stat ("conftest.tmp/", &st))
28431 result |= 1;
28432 #if HAVE_LSTAT
28433 if (!stat ("conftest.lnk/", &st))
28434 result |= 2;
28435 #endif
28436 return result;
28439 return 0;
28441 _ACEOF
28442 if ac_fn_c_try_run "$LINENO"; then :
28443 gl_cv_func_stat_file_slash=yes
28444 else
28445 gl_cv_func_stat_file_slash=no
28447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28448 conftest.$ac_objext conftest.beam conftest.$ac_ext
28451 rm -f conftest.tmp conftest.lnk
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28454 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28455 case $gl_cv_func_stat_dir_slash in
28456 *no) REPLACE_STAT=1
28458 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28460 esac
28461 case $gl_cv_func_stat_file_slash in
28462 *no) REPLACE_STAT=1
28464 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28466 esac
28468 if test $REPLACE_STAT = 1; then
28477 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28486 GNULIB_STAT=1
28492 gl_gnulib_enabled_stat=true
28493 if test $REPLACE_STAT = 1; then
28494 func_gl_gnulib_m4code_dosname
28496 if test $REPLACE_STAT = 1; then
28497 func_gl_gnulib_m4code_pathmax
28501 func_gl_gnulib_m4code_strtoll ()
28503 if ! $gl_gnulib_enabled_strtoll; then
28507 if test "$ac_cv_type_long_long_int" = yes; then
28508 for ac_func in strtoll
28509 do :
28510 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28511 if test "x$ac_cv_func_strtoll" = x""yes; then :
28512 cat >>confdefs.h <<_ACEOF
28513 #define HAVE_STRTOLL 1
28514 _ACEOF
28517 done
28519 if test $ac_cv_func_strtoll = no; then
28520 HAVE_STRTOLL=0
28524 if test $HAVE_STRTOLL = 0; then
28533 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
28544 GNULIB_STRTOLL=1
28550 gl_gnulib_enabled_strtoll=true
28553 func_gl_gnulib_m4code_strtoull ()
28555 if ! $gl_gnulib_enabled_strtoull; then
28559 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28560 for ac_func in strtoull
28561 do :
28562 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
28563 if test "x$ac_cv_func_strtoull" = x""yes; then :
28564 cat >>confdefs.h <<_ACEOF
28565 #define HAVE_STRTOULL 1
28566 _ACEOF
28569 done
28571 if test $ac_cv_func_strtoull = no; then
28572 HAVE_STRTOULL=0
28576 if test $HAVE_STRTOULL = 0; then
28585 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
28596 GNULIB_STRTOULL=1
28602 gl_gnulib_enabled_strtoull=true
28605 func_gl_gnulib_m4code_tempname ()
28607 if ! $gl_gnulib_enabled_tempname; then
28613 gl_gnulib_enabled_tempname=true
28614 func_gl_gnulib_m4code_secure_getenv
28617 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
28619 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28620 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
28623 if test $HAVE_FACCESSAT = 0; then
28624 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28626 if test $HAVE_FACCESSAT = 0; then
28627 func_gl_gnulib_m4code_dosname
28629 if test $HAVE_FACCESSAT = 0; then
28630 func_gl_gnulib_m4code_euidaccess
28632 if test $HAVE_FACCESSAT = 0; then
28633 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28635 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
28636 func_gl_gnulib_m4code_getdtablesize
28638 if test $HAVE_FDOPENDIR = 0; then
28639 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28641 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28642 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28644 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28645 func_gl_gnulib_m4code_dosname
28647 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28648 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28650 if test $REPLACE_GETOPT = 1; then
28651 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28653 if test $REPLACE_LSTAT = 1; then
28654 func_gl_gnulib_m4code_dosname
28656 if test $REPLACE_LSTAT = 1; then
28657 func_gl_gnulib_m4code_stat
28659 if test $HAVE_MKOSTEMP = 0; then
28660 func_gl_gnulib_m4code_tempname
28662 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
28663 func_gl_gnulib_m4code_stat
28665 if test $HAVE_READLINKAT = 0; then
28666 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28668 if test $HAVE_READLINKAT = 0; then
28669 func_gl_gnulib_m4code_dosname
28671 if test $HAVE_READLINKAT = 0; then
28672 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28674 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28675 func_gl_gnulib_m4code_strtoll
28677 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
28678 func_gl_gnulib_m4code_strtoull
28681 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28682 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
28683 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
28684 else
28685 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
28686 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
28689 if $gl_gnulib_enabled_dosname; then
28690 gl_GNULIB_ENABLED_dosname_TRUE=
28691 gl_GNULIB_ENABLED_dosname_FALSE='#'
28692 else
28693 gl_GNULIB_ENABLED_dosname_TRUE='#'
28694 gl_GNULIB_ENABLED_dosname_FALSE=
28697 if $gl_gnulib_enabled_euidaccess; then
28698 gl_GNULIB_ENABLED_euidaccess_TRUE=
28699 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
28700 else
28701 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
28702 gl_GNULIB_ENABLED_euidaccess_FALSE=
28705 if $gl_gnulib_enabled_getdtablesize; then
28706 gl_GNULIB_ENABLED_getdtablesize_TRUE=
28707 gl_GNULIB_ENABLED_getdtablesize_FALSE='#'
28708 else
28709 gl_GNULIB_ENABLED_getdtablesize_TRUE='#'
28710 gl_GNULIB_ENABLED_getdtablesize_FALSE=
28713 if $gl_gnulib_enabled_getgroups; then
28714 gl_GNULIB_ENABLED_getgroups_TRUE=
28715 gl_GNULIB_ENABLED_getgroups_FALSE='#'
28716 else
28717 gl_GNULIB_ENABLED_getgroups_TRUE='#'
28718 gl_GNULIB_ENABLED_getgroups_FALSE=
28721 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28722 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
28723 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
28724 else
28725 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
28726 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
28729 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28730 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
28731 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
28732 else
28733 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
28734 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
28737 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28738 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
28739 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
28740 else
28741 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
28742 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
28745 if $gl_gnulib_enabled_pathmax; then
28746 gl_GNULIB_ENABLED_pathmax_TRUE=
28747 gl_GNULIB_ENABLED_pathmax_FALSE='#'
28748 else
28749 gl_GNULIB_ENABLED_pathmax_TRUE='#'
28750 gl_GNULIB_ENABLED_pathmax_FALSE=
28753 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28754 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
28755 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
28756 else
28757 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
28758 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
28761 if $gl_gnulib_enabled_secure_getenv; then
28762 gl_GNULIB_ENABLED_secure_getenv_TRUE=
28763 gl_GNULIB_ENABLED_secure_getenv_FALSE='#'
28764 else
28765 gl_GNULIB_ENABLED_secure_getenv_TRUE='#'
28766 gl_GNULIB_ENABLED_secure_getenv_FALSE=
28769 if $gl_gnulib_enabled_stat; then
28770 gl_GNULIB_ENABLED_stat_TRUE=
28771 gl_GNULIB_ENABLED_stat_FALSE='#'
28772 else
28773 gl_GNULIB_ENABLED_stat_TRUE='#'
28774 gl_GNULIB_ENABLED_stat_FALSE=
28777 if $gl_gnulib_enabled_strtoll; then
28778 gl_GNULIB_ENABLED_strtoll_TRUE=
28779 gl_GNULIB_ENABLED_strtoll_FALSE='#'
28780 else
28781 gl_GNULIB_ENABLED_strtoll_TRUE='#'
28782 gl_GNULIB_ENABLED_strtoll_FALSE=
28785 if $gl_gnulib_enabled_strtoull; then
28786 gl_GNULIB_ENABLED_strtoull_TRUE=
28787 gl_GNULIB_ENABLED_strtoull_FALSE='#'
28788 else
28789 gl_GNULIB_ENABLED_strtoull_TRUE='#'
28790 gl_GNULIB_ENABLED_strtoull_FALSE=
28793 if $gl_gnulib_enabled_tempname; then
28794 gl_GNULIB_ENABLED_tempname_TRUE=
28795 gl_GNULIB_ENABLED_tempname_FALSE='#'
28796 else
28797 gl_GNULIB_ENABLED_tempname_TRUE='#'
28798 gl_GNULIB_ENABLED_tempname_FALSE=
28801 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28802 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
28803 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
28804 else
28805 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
28806 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
28809 # End of code from modules
28819 gltests_libdeps=
28820 gltests_ltlibdeps=
28830 gl_source_base='tests'
28831 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
28833 gl_module_indicator_condition=$gltests_WITNESS
28844 LIBGNU_LIBDEPS="$gl_libdeps"
28846 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
28849 CFLAGS=$SAVE_CFLAGS
28850 LIBS=$SAVE_LIBS
28852 if test "${opsys}" = "mingw32"; then
28853 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28854 # Remove unneeded switches from the value of CC that goes to Makefiles
28855 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28858 case "$opsys" in
28859 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
28861 darwin)
28862 ## The -headerpad option tells ld (see man page) to leave room at the
28863 ## end of the header for adding load commands. Needed for dumping.
28864 ## 0x690 is the total size of 30 segment load commands (at 56
28865 ## each); under Cocoa 31 commands are required.
28866 if test "$HAVE_NS" = "yes"; then
28867 libs_nsgui="-framework AppKit"
28868 if test "$NS_IMPL_COCOA" = "yes"; then
28869 libs_nsgui="$libs_nsgui -framework IOKit"
28871 headerpad_extra=6C8
28872 else
28873 libs_nsgui=
28874 headerpad_extra=690
28876 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28878 ## This is here because src/Makefile.in did some extra fiddling around
28879 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28880 ## LD_SWITCH_SYSTEM_TEMACS instead,
28881 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28882 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
28885 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28886 ## find X at run-time.
28887 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28888 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28889 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28890 ## had different values in configure (in ac_link) and src/Makefile.in.
28891 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28892 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28894 mingw32)
28895 ## MinGW64 does not prepend an underscore to symbols, so we must
28896 ## pass a different -entry switch to linker. FIXME: It is better
28897 ## to make the entry points the same by changing unexw32.c.
28898 case "$canonical" in
28899 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28900 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28901 esac
28904 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
28906 *) LD_SWITCH_SYSTEM_TEMACS= ;;
28907 esac
28909 if test x$ac_enable_profiling != x ; then
28910 case $opsys in
28911 *freebsd | gnu-linux) ;;
28912 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28913 esac
28918 ## MinGW-specific post-link processing of temacs.
28919 TEMACS_POST_LINK=":"
28920 ADDSECTION=
28921 EMACS_HEAPSIZE=
28922 if test "${opsys}" = "mingw32"; then
28923 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
28924 ADDSECTION="../nt/addsection\$(EXEEXT)"
28925 ## Preload heap size of temacs.exe in MB.
28926 case "$canonical" in
28927 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
28928 *) EMACS_HEAPSIZE=27 ;;
28929 esac
28936 ## Common for all window systems
28937 if test "$window_system" != "none"; then
28939 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28941 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
28948 #### Report on what we decided to do.
28949 #### Report GTK as a toolkit, even if it doesn't use Xt.
28950 #### It makes printing result more understandable as using GTK sets
28951 #### toolkit_scroll_bars to yes by default.
28952 if test "${HAVE_GTK}" = "yes"; then
28953 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
28956 if test $USE_ACL -ne 0; then
28957 acl_summary="yes $LIB_ACL"
28958 else
28959 acl_summary=no
28962 echo "
28963 Configured for \`${canonical}'.
28965 Where should the build process find the source code? ${srcdir}
28966 What compiler should emacs be built with? ${CC} ${CFLAGS}
28967 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28968 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28969 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28970 What window system should Emacs use? ${window_system}
28971 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28973 if test -n "${x_includes}"; then
28974 echo " Where do we find X Windows header files? ${x_includes}"
28975 else
28976 echo " Where do we find X Windows header files? Standard dirs"
28978 if test -n "${x_libraries}"; then
28979 echo " Where do we find X Windows libraries? ${x_libraries}"
28980 else
28981 echo " Where do we find X Windows libraries? Standard dirs"
28984 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28985 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28986 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28987 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28988 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28989 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28990 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28991 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28993 echo " Does Emacs support sound? ${HAVE_SOUND}"
28995 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28996 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28997 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28998 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28999 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29000 echo " Does Emacs use access control lists? ${acl_summary}"
29001 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29002 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29003 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29005 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29006 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29007 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29008 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29009 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29011 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29012 echo
29014 if test -n "${EMACSDATA}"; then
29015 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29017 if test -n "${EMACSDOC}"; then
29018 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29021 echo
29023 if test "$HAVE_NS" = "yes"; then
29024 echo
29025 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29026 The installed application will go to nextstep/Emacs.app and can be
29027 run or moved from there."
29028 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29029 echo "The application will be fully self-contained."
29030 else
29031 echo "The lisp resources for the application will be installed under ${prefix}.
29032 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29033 to run if these resources are not installed."
29035 echo
29038 if test "${opsys}" = "cygwin"; then
29039 case `uname -r` in
29040 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29041 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29042 echo
29044 esac
29047 # Remove any trailing slashes in these variables.
29048 test "${prefix}" != NONE &&
29049 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29050 test "${exec_prefix}" != NONE &&
29051 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29053 if test "$HAVE_NS" = "yes"; then
29054 if test "$NS_IMPL_GNUSTEP" = yes; then
29055 ac_config_files="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in"
29057 ns_check_file=Resources/Info-gnustep.plist
29058 else
29059 ac_config_files="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in"
29061 ns_check_file=Contents/Info.plist
29066 SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile nt/Makefile"
29068 ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile nt/Makefile"
29071 opt_makefile=test/automated/Makefile
29073 if test -f "$srcdir/$opt_makefile.in"; then
29074 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29075 ac_config_files="$ac_config_files test/automated/Makefile"
29080 opt_makefile=admin/unidata/Makefile
29082 if test -f "$srcdir/$opt_makefile.in"; then
29083 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29084 ac_config_files="$ac_config_files admin/unidata/Makefile"
29089 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29093 ac_config_commands="$ac_config_commands src/epaths.h"
29096 ac_config_commands="$ac_config_commands src/.gdbinit"
29099 cat >confcache <<\_ACEOF
29100 # This file is a shell script that caches the results of configure
29101 # tests run on this system so they can be shared between configure
29102 # scripts and configure runs, see configure's option --config-cache.
29103 # It is not useful on other systems. If it contains results you don't
29104 # want to keep, you may remove or edit it.
29106 # config.status only pays attention to the cache file if you give it
29107 # the --recheck option to rerun configure.
29109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29111 # following values.
29113 _ACEOF
29115 # The following way of writing the cache mishandles newlines in values,
29116 # but we know of no workaround that is simple, portable, and efficient.
29117 # So, we kill variables containing newlines.
29118 # Ultrix sh set writes to stderr and can't be redirected directly,
29119 # and sets the high bit in the cache file unless we assign to the vars.
29121 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29122 eval ac_val=\$$ac_var
29123 case $ac_val in #(
29124 *${as_nl}*)
29125 case $ac_var in #(
29126 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29127 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29128 esac
29129 case $ac_var in #(
29130 _ | IFS | as_nl) ;; #(
29131 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29132 *) { eval $ac_var=; unset $ac_var;} ;;
29133 esac ;;
29134 esac
29135 done
29137 (set) 2>&1 |
29138 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29139 *${as_nl}ac_space=\ *)
29140 # `set' does not quote correctly, so add quotes: double-quote
29141 # substitution turns \\\\ into \\, and sed turns \\ into \.
29142 sed -n \
29143 "s/'/'\\\\''/g;
29144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29145 ;; #(
29147 # `set' quotes correctly as required by POSIX, so do not add quotes.
29148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29150 esac |
29151 sort
29153 sed '
29154 /^ac_cv_env_/b end
29155 t clear
29156 :clear
29157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29158 t end
29159 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29160 :end' >>confcache
29161 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29162 if test -w "$cache_file"; then
29163 test "x$cache_file" != "x/dev/null" &&
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29165 $as_echo "$as_me: updating cache $cache_file" >&6;}
29166 cat confcache >$cache_file
29167 else
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29169 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29172 rm -f confcache
29174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29175 # Let make expand exec_prefix.
29176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29178 DEFS=-DHAVE_CONFIG_H
29180 ac_libobjs=
29181 ac_ltlibobjs=
29182 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29183 # 1. Remove the extension, and $U if already installed.
29184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29185 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29187 # will be set to the directory where LIBOBJS objects are built.
29188 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29189 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29190 done
29191 LIBOBJS=$ac_libobjs
29193 LTLIBOBJS=$ac_ltlibobjs
29196 if test -n "$EXEEXT"; then
29197 am__EXEEXT_TRUE=
29198 am__EXEEXT_FALSE='#'
29199 else
29200 am__EXEEXT_TRUE='#'
29201 am__EXEEXT_FALSE=
29204 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29205 as_fn_error "conditional \"AMDEP\" was never defined.
29206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29209 as_fn_error "conditional \"am__fastdepCC\" was never defined.
29210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29212 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29213 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29216 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29217 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
29218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29220 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29221 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29225 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29226 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29229 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29230 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29233 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29234 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29237 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29238 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29241 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29242 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29245 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29246 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29249 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29250 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29253 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29254 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29257 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29258 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29261 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29262 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29265 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29266 as_fn_error "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29269 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29270 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29273 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29274 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29277 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29278 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29281 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29282 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29285 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29286 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29289 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29290 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29293 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29294 as_fn_error "conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29297 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29298 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29301 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29302 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29305 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29306 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29309 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29310 as_fn_error "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29313 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29314 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29318 gl_libobjs=
29319 gl_ltlibobjs=
29320 if test -n "$gl_LIBOBJS"; then
29321 # Remove the extension.
29322 sed_drop_objext='s/\.o$//;s/\.obj$//'
29323 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29324 gl_libobjs="$gl_libobjs $i.$ac_objext"
29325 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29326 done
29328 gl_LIBOBJS=$gl_libobjs
29330 gl_LTLIBOBJS=$gl_ltlibobjs
29334 gltests_libobjs=
29335 gltests_ltlibobjs=
29336 if test -n "$gltests_LIBOBJS"; then
29337 # Remove the extension.
29338 sed_drop_objext='s/\.o$//;s/\.obj$//'
29339 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29340 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29341 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29342 done
29344 gltests_LIBOBJS=$gltests_libobjs
29346 gltests_LTLIBOBJS=$gltests_ltlibobjs
29350 : ${CONFIG_STATUS=./config.status}
29351 ac_write_fail=0
29352 ac_clean_files_save=$ac_clean_files
29353 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29355 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29356 as_write_fail=0
29357 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29358 #! $SHELL
29359 # Generated by $as_me.
29360 # Run this file to recreate the current configuration.
29361 # Compiler output produced by configure, useful for debugging
29362 # configure, is in config.log if it exists.
29364 debug=false
29365 ac_cs_recheck=false
29366 ac_cs_silent=false
29368 SHELL=\${CONFIG_SHELL-$SHELL}
29369 export SHELL
29370 _ASEOF
29371 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29372 ## -------------------- ##
29373 ## M4sh Initialization. ##
29374 ## -------------------- ##
29376 # Be more Bourne compatible
29377 DUALCASE=1; export DUALCASE # for MKS sh
29378 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29379 emulate sh
29380 NULLCMD=:
29381 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29382 # is contrary to our usage. Disable this feature.
29383 alias -g '${1+"$@"}'='"$@"'
29384 setopt NO_GLOB_SUBST
29385 else
29386 case `(set -o) 2>/dev/null` in #(
29387 *posix*) :
29388 set -o posix ;; #(
29389 *) :
29391 esac
29395 as_nl='
29397 export as_nl
29398 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29399 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29400 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29401 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29402 # Prefer a ksh shell builtin over an external printf program on Solaris,
29403 # but without wasting forks for bash or zsh.
29404 if test -z "$BASH_VERSION$ZSH_VERSION" \
29405 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29406 as_echo='print -r --'
29407 as_echo_n='print -rn --'
29408 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29409 as_echo='printf %s\n'
29410 as_echo_n='printf %s'
29411 else
29412 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29413 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29414 as_echo_n='/usr/ucb/echo -n'
29415 else
29416 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29417 as_echo_n_body='eval
29418 arg=$1;
29419 case $arg in #(
29420 *"$as_nl"*)
29421 expr "X$arg" : "X\\(.*\\)$as_nl";
29422 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29423 esac;
29424 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29426 export as_echo_n_body
29427 as_echo_n='sh -c $as_echo_n_body as_echo'
29429 export as_echo_body
29430 as_echo='sh -c $as_echo_body as_echo'
29433 # The user is always right.
29434 if test "${PATH_SEPARATOR+set}" != set; then
29435 PATH_SEPARATOR=:
29436 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29437 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29438 PATH_SEPARATOR=';'
29443 # IFS
29444 # We need space, tab and new line, in precisely that order. Quoting is
29445 # there to prevent editors from complaining about space-tab.
29446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29447 # splitting by setting IFS to empty value.)
29448 IFS=" "" $as_nl"
29450 # Find who we are. Look in the path if we contain no directory separator.
29451 case $0 in #((
29452 *[\\/]* ) as_myself=$0 ;;
29453 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29454 for as_dir in $PATH
29456 IFS=$as_save_IFS
29457 test -z "$as_dir" && as_dir=.
29458 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29459 done
29460 IFS=$as_save_IFS
29463 esac
29464 # We did not find ourselves, most probably we were run as `sh COMMAND'
29465 # in which case we are not to be found in the path.
29466 if test "x$as_myself" = x; then
29467 as_myself=$0
29469 if test ! -f "$as_myself"; then
29470 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29471 exit 1
29474 # Unset variables that we do not need and which cause bugs (e.g. in
29475 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29476 # suppresses any "Segmentation fault" message there. '((' could
29477 # trigger a bug in pdksh 5.2.14.
29478 for as_var in BASH_ENV ENV MAIL MAILPATH
29479 do eval test x\${$as_var+set} = xset \
29480 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29481 done
29482 PS1='$ '
29483 PS2='> '
29484 PS4='+ '
29486 # NLS nuisances.
29487 LC_ALL=C
29488 export LC_ALL
29489 LANGUAGE=C
29490 export LANGUAGE
29492 # CDPATH.
29493 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29496 # as_fn_error ERROR [LINENO LOG_FD]
29497 # ---------------------------------
29498 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29499 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29500 # script with status $?, using 1 if that was 0.
29501 as_fn_error ()
29503 as_status=$?; test $as_status -eq 0 && as_status=1
29504 if test "$3"; then
29505 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29506 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29508 $as_echo "$as_me: error: $1" >&2
29509 as_fn_exit $as_status
29510 } # as_fn_error
29513 # as_fn_set_status STATUS
29514 # -----------------------
29515 # Set $? to STATUS, without forking.
29516 as_fn_set_status ()
29518 return $1
29519 } # as_fn_set_status
29521 # as_fn_exit STATUS
29522 # -----------------
29523 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29524 as_fn_exit ()
29526 set +e
29527 as_fn_set_status $1
29528 exit $1
29529 } # as_fn_exit
29531 # as_fn_unset VAR
29532 # ---------------
29533 # Portably unset VAR.
29534 as_fn_unset ()
29536 { eval $1=; unset $1;}
29538 as_unset=as_fn_unset
29539 # as_fn_append VAR VALUE
29540 # ----------------------
29541 # Append the text in VALUE to the end of the definition contained in VAR. Take
29542 # advantage of any shell optimizations that allow amortized linear growth over
29543 # repeated appends, instead of the typical quadratic growth present in naive
29544 # implementations.
29545 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29546 eval 'as_fn_append ()
29548 eval $1+=\$2
29550 else
29551 as_fn_append ()
29553 eval $1=\$$1\$2
29555 fi # as_fn_append
29557 # as_fn_arith ARG...
29558 # ------------------
29559 # Perform arithmetic evaluation on the ARGs, and store the result in the
29560 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29561 # must be portable across $(()) and expr.
29562 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29563 eval 'as_fn_arith ()
29565 as_val=$(( $* ))
29567 else
29568 as_fn_arith ()
29570 as_val=`expr "$@" || test $? -eq 1`
29572 fi # as_fn_arith
29575 if expr a : '\(a\)' >/dev/null 2>&1 &&
29576 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29577 as_expr=expr
29578 else
29579 as_expr=false
29582 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29583 as_basename=basename
29584 else
29585 as_basename=false
29588 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29589 as_dirname=dirname
29590 else
29591 as_dirname=false
29594 as_me=`$as_basename -- "$0" ||
29595 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29596 X"$0" : 'X\(//\)$' \| \
29597 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29598 $as_echo X/"$0" |
29599 sed '/^.*\/\([^/][^/]*\)\/*$/{
29600 s//\1/
29603 /^X\/\(\/\/\)$/{
29604 s//\1/
29607 /^X\/\(\/\).*/{
29608 s//\1/
29611 s/.*/./; q'`
29613 # Avoid depending upon Character Ranges.
29614 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29615 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29616 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29617 as_cr_digits='0123456789'
29618 as_cr_alnum=$as_cr_Letters$as_cr_digits
29620 ECHO_C= ECHO_N= ECHO_T=
29621 case `echo -n x` in #(((((
29622 -n*)
29623 case `echo 'xy\c'` in
29624 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29625 xy) ECHO_C='\c';;
29626 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29627 ECHO_T=' ';;
29628 esac;;
29630 ECHO_N='-n';;
29631 esac
29633 rm -f conf$$ conf$$.exe conf$$.file
29634 if test -d conf$$.dir; then
29635 rm -f conf$$.dir/conf$$.file
29636 else
29637 rm -f conf$$.dir
29638 mkdir conf$$.dir 2>/dev/null
29640 if (echo >conf$$.file) 2>/dev/null; then
29641 if ln -s conf$$.file conf$$ 2>/dev/null; then
29642 as_ln_s='ln -s'
29643 # ... but there are two gotchas:
29644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29646 # In both cases, we have to default to `cp -p'.
29647 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29648 as_ln_s='cp -p'
29649 elif ln conf$$.file conf$$ 2>/dev/null; then
29650 as_ln_s=ln
29651 else
29652 as_ln_s='cp -p'
29654 else
29655 as_ln_s='cp -p'
29657 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29658 rmdir conf$$.dir 2>/dev/null
29661 # as_fn_mkdir_p
29662 # -------------
29663 # Create "$as_dir" as a directory, including parents if necessary.
29664 as_fn_mkdir_p ()
29667 case $as_dir in #(
29668 -*) as_dir=./$as_dir;;
29669 esac
29670 test -d "$as_dir" || eval $as_mkdir_p || {
29671 as_dirs=
29672 while :; do
29673 case $as_dir in #(
29674 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29675 *) as_qdir=$as_dir;;
29676 esac
29677 as_dirs="'$as_qdir' $as_dirs"
29678 as_dir=`$as_dirname -- "$as_dir" ||
29679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29680 X"$as_dir" : 'X\(//\)[^/]' \| \
29681 X"$as_dir" : 'X\(//\)$' \| \
29682 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29683 $as_echo X"$as_dir" |
29684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29685 s//\1/
29688 /^X\(\/\/\)[^/].*/{
29689 s//\1/
29692 /^X\(\/\/\)$/{
29693 s//\1/
29696 /^X\(\/\).*/{
29697 s//\1/
29700 s/.*/./; q'`
29701 test -d "$as_dir" && break
29702 done
29703 test -z "$as_dirs" || eval "mkdir $as_dirs"
29704 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29707 } # as_fn_mkdir_p
29708 if mkdir -p . 2>/dev/null; then
29709 as_mkdir_p='mkdir -p "$as_dir"'
29710 else
29711 test -d ./-p && rmdir ./-p
29712 as_mkdir_p=false
29715 if test -x / >/dev/null 2>&1; then
29716 as_test_x='test -x'
29717 else
29718 if ls -dL / >/dev/null 2>&1; then
29719 as_ls_L_option=L
29720 else
29721 as_ls_L_option=
29723 as_test_x='
29724 eval sh -c '\''
29725 if test -d "$1"; then
29726 test -d "$1/.";
29727 else
29728 case $1 in #(
29729 -*)set "./$1";;
29730 esac;
29731 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29732 ???[sx]*):;;*)false;;esac;fi
29733 '\'' sh
29736 as_executable_p=$as_test_x
29738 # Sed expression to map a string onto a valid CPP name.
29739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29741 # Sed expression to map a string onto a valid variable name.
29742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29745 exec 6>&1
29746 ## ----------------------------------- ##
29747 ## Main body of $CONFIG_STATUS script. ##
29748 ## ----------------------------------- ##
29749 _ASEOF
29750 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29753 # Save the log message, to keep $0 and so on meaningful, and to
29754 # report actual input values of CONFIG_FILES etc. instead of their
29755 # values after options handling.
29756 ac_log="
29757 This file was extended by emacs $as_me 24.3.50, which was
29758 generated by GNU Autoconf 2.65. Invocation command line was
29760 CONFIG_FILES = $CONFIG_FILES
29761 CONFIG_HEADERS = $CONFIG_HEADERS
29762 CONFIG_LINKS = $CONFIG_LINKS
29763 CONFIG_COMMANDS = $CONFIG_COMMANDS
29764 $ $0 $@
29766 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29769 _ACEOF
29771 case $ac_config_files in *"
29772 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29773 esac
29775 case $ac_config_headers in *"
29776 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29777 esac
29780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29781 # Files that config.status was made for.
29782 config_files="$ac_config_files"
29783 config_headers="$ac_config_headers"
29784 config_commands="$ac_config_commands"
29786 _ACEOF
29788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29789 ac_cs_usage="\
29790 \`$as_me' instantiates files and other configuration actions
29791 from templates according to the current configuration. Unless the files
29792 and actions are specified as TAGs, all are instantiated by default.
29794 Usage: $0 [OPTION]... [TAG]...
29796 -h, --help print this help, then exit
29797 -V, --version print version number and configuration settings, then exit
29798 --config print configuration, then exit
29799 -q, --quiet, --silent
29800 do not print progress messages
29801 -d, --debug don't remove temporary files
29802 --recheck update $as_me by reconfiguring in the same conditions
29803 --file=FILE[:TEMPLATE]
29804 instantiate the configuration file FILE
29805 --header=FILE[:TEMPLATE]
29806 instantiate the configuration header FILE
29808 Configuration files:
29809 $config_files
29811 Configuration headers:
29812 $config_headers
29814 Configuration commands:
29815 $config_commands
29817 Report bugs to the package provider."
29819 _ACEOF
29820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29821 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29822 ac_cs_version="\\
29823 emacs config.status 24.3.50
29824 configured by $0, generated by GNU Autoconf 2.65,
29825 with options \\"\$ac_cs_config\\"
29827 Copyright (C) 2009 Free Software Foundation, Inc.
29828 This config.status script is free software; the Free Software Foundation
29829 gives unlimited permission to copy, distribute and modify it."
29831 ac_pwd='$ac_pwd'
29832 srcdir='$srcdir'
29833 INSTALL='$INSTALL'
29834 MKDIR_P='$MKDIR_P'
29835 AWK='$AWK'
29836 test -n "\$AWK" || AWK=awk
29837 _ACEOF
29839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29840 # The default lists apply if the user does not specify any file.
29841 ac_need_defaults=:
29842 while test $# != 0
29844 case $1 in
29845 --*=*)
29846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29847 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29848 ac_shift=:
29851 ac_option=$1
29852 ac_optarg=$2
29853 ac_shift=shift
29855 esac
29857 case $ac_option in
29858 # Handling of the options.
29859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29860 ac_cs_recheck=: ;;
29861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29862 $as_echo "$ac_cs_version"; exit ;;
29863 --config | --confi | --conf | --con | --co | --c )
29864 $as_echo "$ac_cs_config"; exit ;;
29865 --debug | --debu | --deb | --de | --d | -d )
29866 debug=: ;;
29867 --file | --fil | --fi | --f )
29868 $ac_shift
29869 case $ac_optarg in
29870 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29871 esac
29872 as_fn_append CONFIG_FILES " '$ac_optarg'"
29873 ac_need_defaults=false;;
29874 --header | --heade | --head | --hea )
29875 $ac_shift
29876 case $ac_optarg in
29877 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29878 esac
29879 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29880 ac_need_defaults=false;;
29881 --he | --h)
29882 # Conflict between --help and --header
29883 as_fn_error "ambiguous option: \`$1'
29884 Try \`$0 --help' for more information.";;
29885 --help | --hel | -h )
29886 $as_echo "$ac_cs_usage"; exit ;;
29887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29888 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29889 ac_cs_silent=: ;;
29891 # This is an error.
29892 -*) as_fn_error "unrecognized option: \`$1'
29893 Try \`$0 --help' for more information." ;;
29895 *) as_fn_append ac_config_targets " $1"
29896 ac_need_defaults=false ;;
29898 esac
29899 shift
29900 done
29902 ac_configure_extra_args=
29904 if $ac_cs_silent; then
29905 exec 6>/dev/null
29906 ac_configure_extra_args="$ac_configure_extra_args --silent"
29909 _ACEOF
29910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29911 if \$ac_cs_recheck; then
29912 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29913 shift
29914 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29915 CONFIG_SHELL='$SHELL'
29916 export CONFIG_SHELL
29917 exec "\$@"
29920 _ACEOF
29921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29922 exec 5>>config.log
29924 echo
29925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29926 ## Running $as_me. ##
29927 _ASBOX
29928 $as_echo "$ac_log"
29929 } >&5
29931 _ACEOF
29932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29934 # INIT-COMMANDS
29936 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29937 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29939 _ACEOF
29941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29943 # Handling of arguments.
29944 for ac_config_target in $ac_config_targets
29946 case $ac_config_target in
29947 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29948 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29949 "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;;
29950 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29951 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29952 "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;;
29953 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29954 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29955 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
29956 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
29957 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
29958 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
29959 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
29960 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
29961 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29962 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
29963 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
29964 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
29965 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
29966 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
29967 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
29968 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
29969 "src/epaths.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/epaths.h" ;;
29970 "src/.gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS src/.gdbinit" ;;
29972 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29973 esac
29974 done
29977 # If the user did not use the arguments to specify the items to instantiate,
29978 # then the envvar interface is used. Set only those that are not.
29979 # We use the long form for the default assignment because of an extremely
29980 # bizarre bug on SunOS 4.1.3.
29981 if $ac_need_defaults; then
29982 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29983 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29987 # Have a temporary directory for convenience. Make it in the build tree
29988 # simply because there is no reason against having it here, and in addition,
29989 # creating and moving files from /tmp can sometimes cause problems.
29990 # Hook for its removal unless debugging.
29991 # Note that there is a small window in which the directory will not be cleaned:
29992 # after its creation but before its name has been assigned to `$tmp'.
29993 $debug ||
29995 tmp=
29996 trap 'exit_status=$?
29997 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29999 trap 'as_fn_exit 1' 1 2 13 15
30001 # Create a (secure) tmp directory for tmp files.
30004 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30005 test -n "$tmp" && test -d "$tmp"
30006 } ||
30008 tmp=./conf$$-$RANDOM
30009 (umask 077 && mkdir "$tmp")
30010 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30012 # Set up the scripts for CONFIG_FILES section.
30013 # No need to generate them if there are no CONFIG_FILES.
30014 # This happens for instance with `./config.status config.h'.
30015 if test -n "$CONFIG_FILES"; then
30017 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30018 ac_cs_awk_getline=:
30019 ac_cs_awk_pipe_init=
30020 ac_cs_awk_read_file='
30021 while ((getline aline < (F[key])) > 0)
30022 print(aline)
30023 close(F[key])'
30024 ac_cs_awk_pipe_fini=
30025 else
30026 ac_cs_awk_getline=false
30027 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30028 ac_cs_awk_read_file='
30029 print "|#_!!_#|"
30030 print "cat " F[key] " &&"
30031 '$ac_cs_awk_pipe_init
30032 # The final `:' finishes the AND list.
30033 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30035 ac_cr=`echo X | tr X '\015'`
30036 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30037 # But we know of no other shell where ac_cr would be empty at this
30038 # point, so we can use a bashism as a fallback.
30039 if test "x$ac_cr" = x; then
30040 eval ac_cr=\$\'\\r\'
30042 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30043 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30044 ac_cs_awk_cr='\r'
30045 else
30046 ac_cs_awk_cr=$ac_cr
30049 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30050 _ACEOF
30052 # Create commands to substitute file output variables.
30054 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30055 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30056 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30057 echo "_ACAWK" &&
30058 echo "_ACEOF"
30059 } >conf$$files.sh &&
30060 . ./conf$$files.sh ||
30061 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30062 rm -f conf$$files.sh
30065 echo "cat >conf$$subs.awk <<_ACEOF" &&
30066 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30067 echo "_ACEOF"
30068 } >conf$$subs.sh ||
30069 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30070 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30071 ac_delim='%!_!# '
30072 for ac_last_try in false false false false false :; do
30073 . ./conf$$subs.sh ||
30074 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30076 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30077 if test $ac_delim_n = $ac_delim_num; then
30078 break
30079 elif $ac_last_try; then
30080 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30081 else
30082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30084 done
30085 rm -f conf$$subs.sh
30087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30088 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30089 _ACEOF
30090 sed -n '
30092 s/^/S["/; s/!.*/"]=/
30095 s/^[^!]*!//
30096 :repl
30097 t repl
30098 s/'"$ac_delim"'$//
30099 t delim
30102 s/\(.\{148\}\)..*/\1/
30103 t more1
30104 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30107 b repl
30108 :more1
30109 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30112 s/.\{148\}//
30113 t nl
30114 :delim
30116 s/\(.\{148\}\)..*/\1/
30117 t more2
30118 s/["\\]/\\&/g; s/^/"/; s/$/"/
30121 :more2
30122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30125 s/.\{148\}//
30126 t delim
30127 ' <conf$$subs.awk | sed '
30128 /^[^""]/{
30130 s/\n//
30132 ' >>$CONFIG_STATUS || ac_write_fail=1
30133 rm -f conf$$subs.awk
30134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30135 _ACAWK
30136 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30137 for (key in S) S_is_set[key] = 1
30138 FS = "\a"
30139 \$ac_cs_awk_pipe_init
30142 line = $ 0
30143 nfields = split(line, field, "@")
30144 substed = 0
30145 len = length(field[1])
30146 for (i = 2; i < nfields; i++) {
30147 key = field[i]
30148 keylen = length(key)
30149 if (S_is_set[key]) {
30150 value = S[key]
30151 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30152 len += length(value) + length(field[++i])
30153 substed = 1
30154 } else
30155 len += 1 + keylen
30157 if (nfields == 3 && !substed) {
30158 key = field[2]
30159 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30160 \$ac_cs_awk_read_file
30161 next
30164 print line
30166 \$ac_cs_awk_pipe_fini
30167 _ACAWK
30168 _ACEOF
30169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30170 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30171 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30172 else
30174 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30175 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30176 _ACEOF
30178 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30179 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30180 # trailing colons and then remove the whole line if VPATH becomes empty
30181 # (actually we leave an empty line to preserve line numbers).
30182 if test "x$srcdir" = x.; then
30183 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30184 s/:*\$(srcdir):*/:/
30185 s/:*\${srcdir}:*/:/
30186 s/:*@srcdir@:*/:/
30187 s/^\([^=]*=[ ]*\):*/\1/
30188 s/:*$//
30189 s/^[^=]*=[ ]*$//
30193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30194 fi # test -n "$CONFIG_FILES"
30196 # Set up the scripts for CONFIG_HEADERS section.
30197 # No need to generate them if there are no CONFIG_HEADERS.
30198 # This happens for instance with `./config.status Makefile'.
30199 if test -n "$CONFIG_HEADERS"; then
30200 cat >"$tmp/defines.awk" <<\_ACAWK ||
30201 BEGIN {
30202 _ACEOF
30204 # Transform confdefs.h into an awk script `defines.awk', embedded as
30205 # here-document in config.status, that substitutes the proper values into
30206 # config.h.in to produce config.h.
30208 # Create a delimiter string that does not exist in confdefs.h, to ease
30209 # handling of long lines.
30210 ac_delim='%!_!# '
30211 for ac_last_try in false false :; do
30212 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30213 if test -z "$ac_t"; then
30214 break
30215 elif $ac_last_try; then
30216 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30217 else
30218 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30220 done
30222 # For the awk script, D is an array of macro values keyed by name,
30223 # likewise P contains macro parameters if any. Preserve backslash
30224 # newline sequences.
30226 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30227 sed -n '
30228 s/.\{148\}/&'"$ac_delim"'/g
30229 t rset
30230 :rset
30231 s/^[ ]*#[ ]*define[ ][ ]*/ /
30232 t def
30234 :def
30235 s/\\$//
30236 t bsnl
30237 s/["\\]/\\&/g
30238 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30239 D["\1"]=" \3"/p
30240 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30242 :bsnl
30243 s/["\\]/\\&/g
30244 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30245 D["\1"]=" \3\\\\\\n"\\/p
30246 t cont
30247 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30248 t cont
30250 :cont
30252 s/.\{148\}/&'"$ac_delim"'/g
30253 t clear
30254 :clear
30255 s/\\$//
30256 t bsnlc
30257 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30259 :bsnlc
30260 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30261 b cont
30262 ' <confdefs.h | sed '
30263 s/'"$ac_delim"'/"\\\
30264 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30267 for (key in D) D_is_set[key] = 1
30268 FS = "\a"
30270 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30271 line = \$ 0
30272 split(line, arg, " ")
30273 if (arg[1] == "#") {
30274 defundef = arg[2]
30275 mac1 = arg[3]
30276 } else {
30277 defundef = substr(arg[1], 2)
30278 mac1 = arg[2]
30280 split(mac1, mac2, "(") #)
30281 macro = mac2[1]
30282 prefix = substr(line, 1, index(line, defundef) - 1)
30283 if (D_is_set[macro]) {
30284 # Preserve the white space surrounding the "#".
30285 print prefix "define", macro P[macro] D[macro]
30286 next
30287 } else {
30288 # Replace #undef with comments. This is necessary, for example,
30289 # in the case of _POSIX_SOURCE, which is predefined and required
30290 # on some systems where configure will not decide to define it.
30291 if (defundef == "undef") {
30292 print "/*", prefix defundef, macro, "*/"
30293 next
30297 { print }
30298 _ACAWK
30299 _ACEOF
30300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30301 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30302 fi # test -n "$CONFIG_HEADERS"
30305 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30306 shift
30307 for ac_tag
30309 case $ac_tag in
30310 :[FHLC]) ac_mode=$ac_tag; continue;;
30311 esac
30312 case $ac_mode$ac_tag in
30313 :[FHL]*:*);;
30314 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30315 :[FH]-) ac_tag=-:-;;
30316 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30317 esac
30318 ac_save_IFS=$IFS
30319 IFS=:
30320 set x $ac_tag
30321 IFS=$ac_save_IFS
30322 shift
30323 ac_file=$1
30324 shift
30326 case $ac_mode in
30327 :L) ac_source=$1;;
30328 :[FH])
30329 ac_file_inputs=
30330 for ac_f
30332 case $ac_f in
30333 -) ac_f="$tmp/stdin";;
30334 *) # Look for the file first in the build tree, then in the source tree
30335 # (if the path is not absolute). The absolute path cannot be DOS-style,
30336 # because $ac_f cannot contain `:'.
30337 test -f "$ac_f" ||
30338 case $ac_f in
30339 [\\/$]*) false;;
30340 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30341 esac ||
30342 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30343 esac
30344 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30345 as_fn_append ac_file_inputs " '$ac_f'"
30346 done
30348 # Let's still pretend it is `configure' which instantiates (i.e., don't
30349 # use $as_me), people would be surprised to read:
30350 # /* config.h. Generated by config.status. */
30351 configure_input='Generated from '`
30352 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30353 `' by configure.'
30354 if test x"$ac_file" != x-; then
30355 configure_input="$ac_file. $configure_input"
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30357 $as_echo "$as_me: creating $ac_file" >&6;}
30359 # Neutralize special characters interpreted by sed in replacement strings.
30360 case $configure_input in #(
30361 *\&* | *\|* | *\\* )
30362 ac_sed_conf_input=`$as_echo "$configure_input" |
30363 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30364 *) ac_sed_conf_input=$configure_input;;
30365 esac
30367 case $ac_tag in
30368 *:-:* | *:-) cat >"$tmp/stdin" \
30369 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30370 esac
30372 esac
30374 ac_dir=`$as_dirname -- "$ac_file" ||
30375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30376 X"$ac_file" : 'X\(//\)[^/]' \| \
30377 X"$ac_file" : 'X\(//\)$' \| \
30378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30379 $as_echo X"$ac_file" |
30380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30381 s//\1/
30384 /^X\(\/\/\)[^/].*/{
30385 s//\1/
30388 /^X\(\/\/\)$/{
30389 s//\1/
30392 /^X\(\/\).*/{
30393 s//\1/
30396 s/.*/./; q'`
30397 as_dir="$ac_dir"; as_fn_mkdir_p
30398 ac_builddir=.
30400 case "$ac_dir" in
30401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30403 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30404 # A ".." for each directory in $ac_dir_suffix.
30405 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30406 case $ac_top_builddir_sub in
30407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30409 esac ;;
30410 esac
30411 ac_abs_top_builddir=$ac_pwd
30412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30413 # for backward compatibility:
30414 ac_top_builddir=$ac_top_build_prefix
30416 case $srcdir in
30417 .) # We are building in place.
30418 ac_srcdir=.
30419 ac_top_srcdir=$ac_top_builddir_sub
30420 ac_abs_top_srcdir=$ac_pwd ;;
30421 [\\/]* | ?:[\\/]* ) # Absolute name.
30422 ac_srcdir=$srcdir$ac_dir_suffix;
30423 ac_top_srcdir=$srcdir
30424 ac_abs_top_srcdir=$srcdir ;;
30425 *) # Relative name.
30426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30427 ac_top_srcdir=$ac_top_build_prefix$srcdir
30428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30429 esac
30430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30433 case $ac_mode in
30436 # CONFIG_FILE
30439 case $INSTALL in
30440 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30441 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30442 esac
30443 ac_MKDIR_P=$MKDIR_P
30444 case $MKDIR_P in
30445 [\\/$]* | ?:[\\/]* ) ;;
30446 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30447 esac
30448 _ACEOF
30450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30451 # If the template does not know about datarootdir, expand it.
30452 # FIXME: This hack should be removed a few years after 2.60.
30453 ac_datarootdir_hack=; ac_datarootdir_seen=
30454 ac_sed_dataroot='
30455 /datarootdir/ {
30459 /@datadir@/p
30460 /@docdir@/p
30461 /@infodir@/p
30462 /@localedir@/p
30463 /@mandir@/p'
30464 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30465 *datarootdir*) ac_datarootdir_seen=yes;;
30466 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30468 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30469 _ACEOF
30470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30471 ac_datarootdir_hack='
30472 s&@datadir@&$datadir&g
30473 s&@docdir@&$docdir&g
30474 s&@infodir@&$infodir&g
30475 s&@localedir@&$localedir&g
30476 s&@mandir@&$mandir&g
30477 s&\\\${datarootdir}&$datarootdir&g' ;;
30478 esac
30479 _ACEOF
30481 # Neutralize VPATH when `$srcdir' = `.'.
30482 # Shell code in configure.ac might set extrasub.
30483 # FIXME: do we really want to maintain this feature?
30484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30485 ac_sed_extra="$ac_vpsub
30486 $extrasub
30487 _ACEOF
30488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30490 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30491 s|@configure_input@|$ac_sed_conf_input|;t t
30492 s&@top_builddir@&$ac_top_builddir_sub&;t t
30493 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30494 s&@srcdir@&$ac_srcdir&;t t
30495 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30496 s&@top_srcdir@&$ac_top_srcdir&;t t
30497 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30498 s&@builddir@&$ac_builddir&;t t
30499 s&@abs_builddir@&$ac_abs_builddir&;t t
30500 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30501 s&@INSTALL@&$ac_INSTALL&;t t
30502 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30503 $ac_datarootdir_hack
30505 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30506 if $ac_cs_awk_getline; then
30507 $AWK -f "$tmp/subs.awk"
30508 else
30509 $AWK -f "$tmp/subs.awk" | $SHELL
30510 fi >$tmp/out \
30511 || as_fn_error "could not create $ac_file" "$LINENO" 5
30513 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30514 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30515 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30517 which seems to be undefined. Please make sure it is defined." >&5
30518 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30519 which seems to be undefined. Please make sure it is defined." >&2;}
30521 rm -f "$tmp/stdin"
30522 case $ac_file in
30523 -) cat "$tmp/out" && rm -f "$tmp/out";;
30524 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30525 esac \
30526 || as_fn_error "could not create $ac_file" "$LINENO" 5
30530 # CONFIG_HEADER
30532 if test x"$ac_file" != x-; then
30534 $as_echo "/* $configure_input */" \
30535 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30536 } >"$tmp/config.h" \
30537 || as_fn_error "could not create $ac_file" "$LINENO" 5
30538 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30539 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30540 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30541 else
30542 rm -f "$ac_file"
30543 mv "$tmp/config.h" "$ac_file" \
30544 || as_fn_error "could not create $ac_file" "$LINENO" 5
30546 else
30547 $as_echo "/* $configure_input */" \
30548 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30549 || as_fn_error "could not create -" "$LINENO" 5
30551 # Compute "$ac_file"'s index in $config_headers.
30552 _am_arg="$ac_file"
30553 _am_stamp_count=1
30554 for _am_header in $config_headers :; do
30555 case $_am_header in
30556 $_am_arg | $_am_arg:* )
30557 break ;;
30559 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30560 esac
30561 done
30562 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30563 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30564 X"$_am_arg" : 'X\(//\)[^/]' \| \
30565 X"$_am_arg" : 'X\(//\)$' \| \
30566 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30567 $as_echo X"$_am_arg" |
30568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30569 s//\1/
30572 /^X\(\/\/\)[^/].*/{
30573 s//\1/
30576 /^X\(\/\/\)$/{
30577 s//\1/
30580 /^X\(\/\).*/{
30581 s//\1/
30584 s/.*/./; q'`/stamp-h$_am_stamp_count
30587 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30588 $as_echo "$as_me: executing $ac_file commands" >&6;}
30590 esac
30593 case $ac_file$ac_mode in
30594 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30595 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30596 # are listed without --file. Let's play safe and only enable the eval
30597 # if we detect the quoting.
30598 case $CONFIG_FILES in
30599 *\'*) eval set x "$CONFIG_FILES" ;;
30600 *) set x $CONFIG_FILES ;;
30601 esac
30602 shift
30603 for mf
30605 # Strip MF so we end up with the name of the file.
30606 mf=`echo "$mf" | sed -e 's/:.*$//'`
30607 # Check whether this is an Automake generated Makefile or not.
30608 # We used to match only the files named `Makefile.in', but
30609 # some people rename them; so instead we look at the file content.
30610 # Grep'ing the first line is not enough: some people post-process
30611 # each Makefile.in and add a new line on top of each file to say so.
30612 # Grep'ing the whole file is not good either: AIX grep has a line
30613 # limit of 2048, but all sed's we know have understand at least 4000.
30614 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30615 dirpart=`$as_dirname -- "$mf" ||
30616 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30617 X"$mf" : 'X\(//\)[^/]' \| \
30618 X"$mf" : 'X\(//\)$' \| \
30619 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30620 $as_echo X"$mf" |
30621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30622 s//\1/
30625 /^X\(\/\/\)[^/].*/{
30626 s//\1/
30629 /^X\(\/\/\)$/{
30630 s//\1/
30633 /^X\(\/\).*/{
30634 s//\1/
30637 s/.*/./; q'`
30638 else
30639 continue
30641 # Extract the definition of DEPDIR, am__include, and am__quote
30642 # from the Makefile without running `make'.
30643 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30644 test -z "$DEPDIR" && continue
30645 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30646 test -z "am__include" && continue
30647 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30648 # When using ansi2knr, U may be empty or an underscore; expand it
30649 U=`sed -n 's/^U = //p' < "$mf"`
30650 # Find all dependency output files, they are included files with
30651 # $(DEPDIR) in their names. We invoke sed twice because it is the
30652 # simplest approach to changing $(DEPDIR) to its actual value in the
30653 # expansion.
30654 for file in `sed -n "
30655 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30656 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30657 # Make sure the directory exists.
30658 test -f "$dirpart/$file" && continue
30659 fdir=`$as_dirname -- "$file" ||
30660 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30661 X"$file" : 'X\(//\)[^/]' \| \
30662 X"$file" : 'X\(//\)$' \| \
30663 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30664 $as_echo X"$file" |
30665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30666 s//\1/
30669 /^X\(\/\/\)[^/].*/{
30670 s//\1/
30673 /^X\(\/\/\)$/{
30674 s//\1/
30677 /^X\(\/\).*/{
30678 s//\1/
30681 s/.*/./; q'`
30682 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30683 # echo "creating $dirpart/$file"
30684 echo '# dummy' > "$dirpart/$file"
30685 done
30686 done
30689 "src/epaths.h":C)
30690 if test "${opsys}" = "mingw32"; then
30691 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
30692 else
30693 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
30696 "src/.gdbinit":C)
30697 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
30698 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
30702 esac
30703 done # for ac_tag
30706 as_fn_exit 0
30707 _ACEOF
30708 ac_clean_files=$ac_clean_files_save
30710 test $ac_write_fail = 0 ||
30711 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30714 # configure is writing to config.log, and then calls config.status.
30715 # config.status does its own redirection, appending to config.log.
30716 # Unfortunately, on DOS this fails, as config.log is still kept open
30717 # by configure, so config.status won't be able to write to it; its
30718 # output is simply discarded. So we exec the FD to /dev/null,
30719 # effectively closing config.log, so it can be properly (re)opened and
30720 # appended to by config.status. When coming back to configure, we
30721 # need to make the FD available again.
30722 if test "$no_create" != yes; then
30723 ac_cs_success=:
30724 ac_config_status_args=
30725 test "$silent" = yes &&
30726 ac_config_status_args="$ac_config_status_args --quiet"
30727 exec 5>/dev/null
30728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30729 exec 5>>config.log
30730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30731 # would make configure fail if this is the last instruction.
30732 $ac_cs_success || as_fn_exit $?
30734 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30736 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}