Auto-commit of generated files.
[emacs.git] / autogen / configure
blobc319167fc51691add3c51558c854635a2fde6788
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 WINDOW_SYSTEM_OBJ
608 EMACS_HEAPSIZE
609 TEMACS_POST_LINK
610 ADDSECTION
611 LD_SWITCH_SYSTEM_TEMACS
612 LIBGNU_LTLIBDEPS
613 LIBGNU_LIBDEPS
614 gltests_WITNESS
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
617 gl_GNULIB_ENABLED_tempname_FALSE
618 gl_GNULIB_ENABLED_tempname_TRUE
619 gl_GNULIB_ENABLED_strtoull_FALSE
620 gl_GNULIB_ENABLED_strtoull_TRUE
621 gl_GNULIB_ENABLED_strtoll_FALSE
622 gl_GNULIB_ENABLED_strtoll_TRUE
623 gl_GNULIB_ENABLED_stat_FALSE
624 gl_GNULIB_ENABLED_stat_TRUE
625 gl_GNULIB_ENABLED_secure_getenv_FALSE
626 gl_GNULIB_ENABLED_secure_getenv_TRUE
627 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
629 gl_GNULIB_ENABLED_pathmax_FALSE
630 gl_GNULIB_ENABLED_pathmax_TRUE
631 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
633 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
635 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
637 gl_GNULIB_ENABLED_getgroups_FALSE
638 gl_GNULIB_ENABLED_getgroups_TRUE
639 gl_GNULIB_ENABLED_getdtablesize_FALSE
640 gl_GNULIB_ENABLED_getdtablesize_TRUE
641 gl_GNULIB_ENABLED_euidaccess_FALSE
642 gl_GNULIB_ENABLED_euidaccess_TRUE
643 gl_GNULIB_ENABLED_dosname_FALSE
644 gl_GNULIB_ENABLED_dosname_TRUE
645 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
647 LTLIBINTL
648 LIBINTL
649 LIB_EACCESS
650 WINDOWS_64_BIT_OFF_T
651 HAVE_UNISTD_H
652 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
653 NEXT_UNISTD_H
654 LIB_TIMER_TIME
655 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
656 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
657 TIME_H_DEFINES_STRUCT_TIMESPEC
658 NEXT_AS_FIRST_DIRECTIVE_TIME_H
659 NEXT_TIME_H
660 WINDOWS_64_BIT_ST_SIZE
661 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
662 NEXT_SYS_STAT_H
663 NEXT_AS_FIRST_DIRECTIVE_STRING_H
664 NEXT_STRING_H
665 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
666 NEXT_STDLIB_H
667 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
668 NEXT_STDIO_H
669 REPLACE_VSPRINTF
670 REPLACE_VSNPRINTF
671 REPLACE_VPRINTF
672 REPLACE_VFPRINTF
673 REPLACE_VDPRINTF
674 REPLACE_VASPRINTF
675 REPLACE_TMPFILE
676 REPLACE_STDIO_WRITE_FUNCS
677 REPLACE_STDIO_READ_FUNCS
678 REPLACE_SPRINTF
679 REPLACE_SNPRINTF
680 REPLACE_RENAMEAT
681 REPLACE_RENAME
682 REPLACE_REMOVE
683 REPLACE_PRINTF
684 REPLACE_POPEN
685 REPLACE_PERROR
686 REPLACE_OBSTACK_PRINTF
687 REPLACE_GETLINE
688 REPLACE_GETDELIM
689 REPLACE_FTELLO
690 REPLACE_FTELL
691 REPLACE_FSEEKO
692 REPLACE_FSEEK
693 REPLACE_FREOPEN
694 REPLACE_FPURGE
695 REPLACE_FPRINTF
696 REPLACE_FOPEN
697 REPLACE_FFLUSH
698 REPLACE_FDOPEN
699 REPLACE_FCLOSE
700 REPLACE_DPRINTF
701 HAVE_VDPRINTF
702 HAVE_VASPRINTF
703 HAVE_RENAMEAT
704 HAVE_POPEN
705 HAVE_PCLOSE
706 HAVE_FTELLO
707 HAVE_FSEEKO
708 HAVE_DPRINTF
709 HAVE_DECL_VSNPRINTF
710 HAVE_DECL_SNPRINTF
711 HAVE_DECL_OBSTACK_PRINTF
712 HAVE_DECL_GETLINE
713 HAVE_DECL_GETDELIM
714 HAVE_DECL_FTELLO
715 HAVE_DECL_FSEEKO
716 HAVE_DECL_FPURGE
717 GNULIB_VSPRINTF_POSIX
718 GNULIB_VSNPRINTF
719 GNULIB_VPRINTF_POSIX
720 GNULIB_VPRINTF
721 GNULIB_VFPRINTF_POSIX
722 GNULIB_VFPRINTF
723 GNULIB_VDPRINTF
724 GNULIB_VSCANF
725 GNULIB_VFSCANF
726 GNULIB_VASPRINTF
727 GNULIB_TMPFILE
728 GNULIB_STDIO_H_SIGPIPE
729 GNULIB_STDIO_H_NONBLOCKING
730 GNULIB_SPRINTF_POSIX
731 GNULIB_SNPRINTF
732 GNULIB_SCANF
733 GNULIB_RENAMEAT
734 GNULIB_RENAME
735 GNULIB_REMOVE
736 GNULIB_PUTS
737 GNULIB_PUTCHAR
738 GNULIB_PUTC
739 GNULIB_PRINTF_POSIX
740 GNULIB_PRINTF
741 GNULIB_POPEN
742 GNULIB_PERROR
743 GNULIB_PCLOSE
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
746 GNULIB_GETLINE
747 GNULIB_GETDELIM
748 GNULIB_GETCHAR
749 GNULIB_GETC
750 GNULIB_FWRITE
751 GNULIB_FTELLO
752 GNULIB_FTELL
753 GNULIB_FSEEKO
754 GNULIB_FSEEK
755 GNULIB_FSCANF
756 GNULIB_FREOPEN
757 GNULIB_FREAD
758 GNULIB_FPUTS
759 GNULIB_FPUTC
760 GNULIB_FPURGE
761 GNULIB_FPRINTF_POSIX
762 GNULIB_FPRINTF
763 GNULIB_FOPEN
764 GNULIB_FGETS
765 GNULIB_FGETC
766 GNULIB_FFLUSH
767 GNULIB_FDOPEN
768 GNULIB_FCLOSE
769 GNULIB_DPRINTF
770 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
771 NEXT_STDDEF_H
772 GL_GENERATE_STDDEF_H_FALSE
773 GL_GENERATE_STDDEF_H_TRUE
774 STDDEF_H
775 HAVE_WCHAR_T
776 REPLACE_NULL
777 HAVE__BOOL
778 GL_GENERATE_STDBOOL_H_FALSE
779 GL_GENERATE_STDBOOL_H_TRUE
780 STDBOOL_H
781 GL_GENERATE_STDARG_H_FALSE
782 GL_GENERATE_STDARG_H_TRUE
783 STDARG_H
784 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
785 NEXT_STDARG_H
786 GL_GENERATE_STDALIGN_H_FALSE
787 GL_GENERATE_STDALIGN_H_TRUE
788 STDALIGN_H
789 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
790 NEXT_SIGNAL_H
791 USE_ACL
792 LIB_ACL
793 LIB_PTHREAD_SIGMASK
794 REPLACE_RAISE
795 REPLACE_PTHREAD_SIGMASK
796 HAVE_SIGHANDLER_T
797 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
798 HAVE_STRUCT_SIGACTION_SA_SIGACTION
799 HAVE_SIGACTION
800 HAVE_SIGINFO_T
801 HAVE_SIGSET_T
802 HAVE_RAISE
803 HAVE_PTHREAD_SIGMASK
804 HAVE_POSIX_SIGNALBLOCKING
805 GNULIB_SIGACTION
806 GNULIB_SIGPROCMASK
807 GNULIB_SIGNAL_H_SIGPIPE
808 GNULIB_RAISE
809 GNULIB_PTHREAD_SIGMASK
810 HAVE_SYS_SELECT_H
811 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
812 NEXT_SYS_SELECT_H
813 REPLACE_SELECT
814 REPLACE_PSELECT
815 HAVE_PSELECT
816 GNULIB_SELECT
817 GNULIB_PSELECT
818 REPLACE_TIMEGM
819 REPLACE_NANOSLEEP
820 REPLACE_MKTIME
821 REPLACE_LOCALTIME_R
822 HAVE_TIMEGM
823 HAVE_STRPTIME
824 HAVE_NANOSLEEP
825 HAVE_DECL_LOCALTIME_R
826 GNULIB_TIME_R
827 GNULIB_TIMEGM
828 GNULIB_STRPTIME
829 GNULIB_NANOSLEEP
830 GNULIB_MKTIME
831 UNDEFINE_STRTOK_R
832 REPLACE_STRTOK_R
833 REPLACE_STRSIGNAL
834 REPLACE_STRNLEN
835 REPLACE_STRNDUP
836 REPLACE_STRNCAT
837 REPLACE_STRERROR_R
838 REPLACE_STRERROR
839 REPLACE_STRCHRNUL
840 REPLACE_STRCASESTR
841 REPLACE_STRSTR
842 REPLACE_STRDUP
843 REPLACE_STPNCPY
844 REPLACE_MEMMEM
845 REPLACE_MEMCHR
846 HAVE_STRVERSCMP
847 HAVE_DECL_STRSIGNAL
848 HAVE_DECL_STRERROR_R
849 HAVE_DECL_STRTOK_R
850 HAVE_STRCASESTR
851 HAVE_STRSEP
852 HAVE_STRPBRK
853 HAVE_DECL_STRNLEN
854 HAVE_DECL_STRNDUP
855 HAVE_DECL_STRDUP
856 HAVE_STRCHRNUL
857 HAVE_STPNCPY
858 HAVE_STPCPY
859 HAVE_RAWMEMCHR
860 HAVE_DECL_MEMRCHR
861 HAVE_MEMPCPY
862 HAVE_DECL_MEMMEM
863 HAVE_MEMCHR
864 HAVE_FFSLL
865 HAVE_FFSL
866 HAVE_MBSLEN
867 GNULIB_STRVERSCMP
868 GNULIB_STRSIGNAL
869 GNULIB_STRERROR_R
870 GNULIB_STRERROR
871 GNULIB_MBSTOK_R
872 GNULIB_MBSSEP
873 GNULIB_MBSSPN
874 GNULIB_MBSPBRK
875 GNULIB_MBSCSPN
876 GNULIB_MBSCASESTR
877 GNULIB_MBSPCASECMP
878 GNULIB_MBSNCASECMP
879 GNULIB_MBSCASECMP
880 GNULIB_MBSSTR
881 GNULIB_MBSRCHR
882 GNULIB_MBSCHR
883 GNULIB_MBSNLEN
884 GNULIB_MBSLEN
885 GNULIB_STRTOK_R
886 GNULIB_STRCASESTR
887 GNULIB_STRSTR
888 GNULIB_STRSEP
889 GNULIB_STRPBRK
890 GNULIB_STRNLEN
891 GNULIB_STRNDUP
892 GNULIB_STRNCAT
893 GNULIB_STRDUP
894 GNULIB_STRCHRNUL
895 GNULIB_STPNCPY
896 GNULIB_STPCPY
897 GNULIB_RAWMEMCHR
898 GNULIB_MEMRCHR
899 GNULIB_MEMPCPY
900 GNULIB_MEMMEM
901 GNULIB_MEMCHR
902 GNULIB_FFSLL
903 GNULIB_FFSL
904 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
905 NEXT_INTTYPES_H
906 UINT64_MAX_EQ_ULONG_MAX
907 UINT32_MAX_LT_UINTMAX_MAX
908 PRIPTR_PREFIX
909 PRI_MACROS_BROKEN
910 INT64_MAX_EQ_LONG_MAX
911 INT32_MAX_LT_INTMAX_MAX
912 REPLACE_STRTOIMAX
913 HAVE_DECL_STRTOUMAX
914 HAVE_DECL_STRTOIMAX
915 HAVE_DECL_IMAXDIV
916 HAVE_DECL_IMAXABS
917 GNULIB_STRTOUMAX
918 GNULIB_STRTOIMAX
919 GNULIB_IMAXDIV
920 GNULIB_IMAXABS
921 GL_GENERATE_STDINT_H_FALSE
922 GL_GENERATE_STDINT_H_TRUE
923 STDINT_H
924 WINT_T_SUFFIX
925 WCHAR_T_SUFFIX
926 SIG_ATOMIC_T_SUFFIX
927 SIZE_T_SUFFIX
928 PTRDIFF_T_SUFFIX
929 HAVE_SIGNED_WINT_T
930 HAVE_SIGNED_WCHAR_T
931 HAVE_SIGNED_SIG_ATOMIC_T
932 BITSIZEOF_WINT_T
933 BITSIZEOF_WCHAR_T
934 BITSIZEOF_SIG_ATOMIC_T
935 BITSIZEOF_SIZE_T
936 BITSIZEOF_PTRDIFF_T
937 APPLE_UNIVERSAL_BUILD
938 HAVE_SYS_BITYPES_H
939 HAVE_SYS_INTTYPES_H
940 HAVE_STDINT_H
941 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
942 NEXT_STDINT_H
943 HAVE_SYS_TYPES_H
944 HAVE_INTTYPES_H
945 HAVE_WCHAR_H
946 HAVE_UNSIGNED_LONG_LONG_INT
947 HAVE_LONG_LONG_INT
948 HAVE_WINSOCK2_H
949 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
950 NEXT_SYS_TIME_H
951 REPLACE_STRUCT_TIMEVAL
952 REPLACE_GETTIMEOFDAY
953 HAVE_SYS_TIME_H
954 HAVE_STRUCT_TIMEVAL
955 HAVE_GETTIMEOFDAY
956 GNULIB_GETTIMEOFDAY
957 GNULIB_GL_UNISTD_H_GETOPT
958 GETOPT_H
959 HAVE_GETOPT_H
960 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
961 NEXT_GETOPT_H
962 GETLOADAVG_LIBS
963 REPLACE_WCTOMB
964 REPLACE_UNSETENV
965 REPLACE_STRTOD
966 REPLACE_SETENV
967 REPLACE_REALPATH
968 REPLACE_REALLOC
969 REPLACE_RANDOM_R
970 REPLACE_PUTENV
971 REPLACE_PTSNAME_R
972 REPLACE_PTSNAME
973 REPLACE_MKSTEMP
974 REPLACE_MBTOWC
975 REPLACE_MALLOC
976 REPLACE_CANONICALIZE_FILE_NAME
977 REPLACE_CALLOC
978 HAVE_DECL_UNSETENV
979 HAVE_UNLOCKPT
980 HAVE_SYS_LOADAVG_H
981 HAVE_STRUCT_RANDOM_DATA
982 HAVE_STRTOULL
983 HAVE_STRTOLL
984 HAVE_STRTOD
985 HAVE_DECL_SETENV
986 HAVE_SETENV
987 HAVE_SECURE_GETENV
988 HAVE_RPMATCH
989 HAVE_REALPATH
990 HAVE_RANDOM_R
991 HAVE_RANDOM_H
992 HAVE_RANDOM
993 HAVE_PTSNAME_R
994 HAVE_PTSNAME
995 HAVE_POSIX_OPENPT
996 HAVE_MKSTEMPS
997 HAVE_MKSTEMP
998 HAVE_MKOSTEMPS
999 HAVE_MKOSTEMP
1000 HAVE_MKDTEMP
1001 HAVE_GRANTPT
1002 HAVE_GETSUBOPT
1003 HAVE_DECL_GETLOADAVG
1004 HAVE_CANONICALIZE_FILE_NAME
1005 HAVE_ATOLL
1006 HAVE__EXIT
1007 GNULIB_WCTOMB
1008 GNULIB_UNSETENV
1009 GNULIB_UNLOCKPT
1010 GNULIB_SYSTEM_POSIX
1011 GNULIB_STRTOULL
1012 GNULIB_STRTOLL
1013 GNULIB_STRTOD
1014 GNULIB_SETENV
1015 GNULIB_SECURE_GETENV
1016 GNULIB_RPMATCH
1017 GNULIB_REALPATH
1018 GNULIB_REALLOC_POSIX
1019 GNULIB_RANDOM_R
1020 GNULIB_RANDOM
1021 GNULIB_PUTENV
1022 GNULIB_PTSNAME_R
1023 GNULIB_PTSNAME
1024 GNULIB_POSIX_OPENPT
1025 GNULIB_MKSTEMPS
1026 GNULIB_MKSTEMP
1027 GNULIB_MKOSTEMPS
1028 GNULIB_MKOSTEMP
1029 GNULIB_MKDTEMP
1030 GNULIB_MBTOWC
1031 GNULIB_MALLOC_POSIX
1032 GNULIB_GRANTPT
1033 GNULIB_GETSUBOPT
1034 GNULIB_GETLOADAVG
1035 GNULIB_CANONICALIZE_FILE_NAME
1036 GNULIB_CALLOC_POSIX
1037 GNULIB_ATOLL
1038 GNULIB__EXIT
1039 REPLACE_UTIMENSAT
1040 REPLACE_STAT
1041 REPLACE_MKNOD
1042 REPLACE_MKFIFO
1043 REPLACE_MKDIR
1044 REPLACE_LSTAT
1045 REPLACE_FUTIMENS
1046 REPLACE_FSTATAT
1047 REPLACE_FSTAT
1048 HAVE_UTIMENSAT
1049 HAVE_MKNODAT
1050 HAVE_MKNOD
1051 HAVE_MKFIFOAT
1052 HAVE_MKFIFO
1053 HAVE_MKDIRAT
1054 HAVE_LSTAT
1055 HAVE_LCHMOD
1056 HAVE_FUTIMENS
1057 HAVE_FSTATAT
1058 HAVE_FCHMODAT
1059 GNULIB_UTIMENSAT
1060 GNULIB_STAT
1061 GNULIB_MKNODAT
1062 GNULIB_MKNOD
1063 GNULIB_MKFIFOAT
1064 GNULIB_MKFIFO
1065 GNULIB_MKDIRAT
1066 GNULIB_LSTAT
1067 GNULIB_LCHMOD
1068 GNULIB_FUTIMENS
1069 GNULIB_FSTATAT
1070 GNULIB_FSTAT
1071 GNULIB_FCHMODAT
1072 LIB_FDATASYNC
1073 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1074 NEXT_FCNTL_H
1075 REPLACE_OPENAT
1076 REPLACE_OPEN
1077 REPLACE_FCNTL
1078 HAVE_OPENAT
1079 HAVE_FCNTL
1080 GNULIB_OPENAT
1081 GNULIB_OPEN
1082 GNULIB_NONBLOCKING
1083 GNULIB_FCNTL
1084 GL_GENERATE_EXECINFO_H_FALSE
1085 GL_GENERATE_EXECINFO_H_TRUE
1086 LIB_EXECINFO
1087 EXECINFO_H
1088 EOVERFLOW_VALUE
1089 EOVERFLOW_HIDDEN
1090 ENOLINK_VALUE
1091 ENOLINK_HIDDEN
1092 EMULTIHOP_VALUE
1093 EMULTIHOP_HIDDEN
1094 GL_GENERATE_ERRNO_H_FALSE
1095 GL_GENERATE_ERRNO_H_TRUE
1096 ERRNO_H
1097 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1098 NEXT_ERRNO_H
1099 HAVE_DIRENT_H
1100 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1101 NEXT_DIRENT_H
1102 PRAGMA_COLUMNS
1103 PRAGMA_SYSTEM_HEADER
1104 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1105 INCLUDE_NEXT
1106 REPLACE_FDOPENDIR
1107 REPLACE_DIRFD
1108 REPLACE_CLOSEDIR
1109 REPLACE_OPENDIR
1110 HAVE_ALPHASORT
1111 HAVE_SCANDIR
1112 HAVE_FDOPENDIR
1113 HAVE_DECL_FDOPENDIR
1114 HAVE_DECL_DIRFD
1115 HAVE_CLOSEDIR
1116 HAVE_REWINDDIR
1117 HAVE_READDIR
1118 HAVE_OPENDIR
1119 GNULIB_ALPHASORT
1120 GNULIB_SCANDIR
1121 GNULIB_FDOPENDIR
1122 GNULIB_DIRFD
1123 GNULIB_CLOSEDIR
1124 GNULIB_REWINDDIR
1125 GNULIB_READDIR
1126 GNULIB_OPENDIR
1127 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1128 UNISTD_H_HAVE_WINSOCK2_H
1129 REPLACE_WRITE
1130 REPLACE_USLEEP
1131 REPLACE_UNLINKAT
1132 REPLACE_UNLINK
1133 REPLACE_TTYNAME_R
1134 REPLACE_SYMLINK
1135 REPLACE_SLEEP
1136 REPLACE_RMDIR
1137 REPLACE_READLINK
1138 REPLACE_READ
1139 REPLACE_PWRITE
1140 REPLACE_PREAD
1141 REPLACE_LSEEK
1142 REPLACE_LINKAT
1143 REPLACE_LINK
1144 REPLACE_LCHOWN
1145 REPLACE_ISATTY
1146 REPLACE_GETPAGESIZE
1147 REPLACE_GETGROUPS
1148 REPLACE_GETLOGIN_R
1149 REPLACE_GETDOMAINNAME
1150 REPLACE_GETCWD
1151 REPLACE_FTRUNCATE
1152 REPLACE_FCHOWNAT
1153 REPLACE_DUP2
1154 REPLACE_DUP
1155 REPLACE_CLOSE
1156 REPLACE_CHOWN
1157 HAVE_SYS_PARAM_H
1158 HAVE_OS_H
1159 HAVE_DECL_TTYNAME_R
1160 HAVE_DECL_SETHOSTNAME
1161 HAVE_DECL_GETUSERSHELL
1162 HAVE_DECL_GETPAGESIZE
1163 HAVE_DECL_GETLOGIN_R
1164 HAVE_DECL_GETDOMAINNAME
1165 HAVE_DECL_FDATASYNC
1166 HAVE_DECL_FCHDIR
1167 HAVE_DECL_ENVIRON
1168 HAVE_USLEEP
1169 HAVE_UNLINKAT
1170 HAVE_SYMLINKAT
1171 HAVE_SYMLINK
1172 HAVE_SLEEP
1173 HAVE_SETHOSTNAME
1174 HAVE_READLINKAT
1175 HAVE_READLINK
1176 HAVE_PWRITE
1177 HAVE_PREAD
1178 HAVE_PIPE2
1179 HAVE_PIPE
1180 HAVE_LINKAT
1181 HAVE_LINK
1182 HAVE_LCHOWN
1183 HAVE_GROUP_MEMBER
1184 HAVE_GETPAGESIZE
1185 HAVE_GETLOGIN
1186 HAVE_GETHOSTNAME
1187 HAVE_GETGROUPS
1188 HAVE_GETDTABLESIZE
1189 HAVE_FTRUNCATE
1190 HAVE_FSYNC
1191 HAVE_FDATASYNC
1192 HAVE_FCHOWNAT
1193 HAVE_FCHDIR
1194 HAVE_FACCESSAT
1195 HAVE_EUIDACCESS
1196 HAVE_DUP3
1197 HAVE_DUP2
1198 HAVE_CHOWN
1199 GNULIB_WRITE
1200 GNULIB_USLEEP
1201 GNULIB_UNLINKAT
1202 GNULIB_UNLINK
1203 GNULIB_UNISTD_H_SIGPIPE
1204 GNULIB_UNISTD_H_NONBLOCKING
1205 GNULIB_TTYNAME_R
1206 GNULIB_SYMLINKAT
1207 GNULIB_SYMLINK
1208 GNULIB_SLEEP
1209 GNULIB_SETHOSTNAME
1210 GNULIB_RMDIR
1211 GNULIB_READLINKAT
1212 GNULIB_READLINK
1213 GNULIB_READ
1214 GNULIB_PWRITE
1215 GNULIB_PREAD
1216 GNULIB_PIPE2
1217 GNULIB_PIPE
1218 GNULIB_LSEEK
1219 GNULIB_LINKAT
1220 GNULIB_LINK
1221 GNULIB_LCHOWN
1222 GNULIB_ISATTY
1223 GNULIB_GROUP_MEMBER
1224 GNULIB_GETUSERSHELL
1225 GNULIB_GETPAGESIZE
1226 GNULIB_GETLOGIN_R
1227 GNULIB_GETLOGIN
1228 GNULIB_GETHOSTNAME
1229 GNULIB_GETGROUPS
1230 GNULIB_GETDTABLESIZE
1231 GNULIB_GETDOMAINNAME
1232 GNULIB_GETCWD
1233 GNULIB_FTRUNCATE
1234 GNULIB_FSYNC
1235 GNULIB_FDATASYNC
1236 GNULIB_FCHOWNAT
1237 GNULIB_FCHDIR
1238 GNULIB_FACCESSAT
1239 GNULIB_EUIDACCESS
1240 GNULIB_ENVIRON
1241 GNULIB_DUP3
1242 GNULIB_DUP2
1243 GNULIB_DUP
1244 GNULIB_CLOSE
1245 GNULIB_CHOWN
1246 GNULIB_CHDIR
1247 LIB_CLOCK_GETTIME
1248 GL_GENERATE_ALLOCA_H_FALSE
1249 GL_GENERATE_ALLOCA_H_TRUE
1250 ALLOCA_H
1251 ALLOCA
1252 GL_COND_LIBTOOL_FALSE
1253 GL_COND_LIBTOOL_TRUE
1254 POST_ALLOC_OBJ
1255 PRE_ALLOC_OBJ
1256 CYGWIN_OBJ
1257 RALLOC_OBJ
1258 OLDXMENU_DEPS
1259 LIBX_OTHER
1260 LIBXMENU
1261 OLDXMENU
1262 OLDXMENU_TARGET
1263 LIBXT_OTHER
1264 TOOLKIT_LIBW
1265 WIDGET_OBJ
1266 XOBJ
1267 XMENU_OBJ
1268 FONT_OBJ
1269 OTHER_FILES
1270 GNU_OBJC_CFLAGS
1271 ns_appsrc
1272 ns_appresdir
1273 ns_appbindir
1274 ns_appdir
1275 X_TOOLKIT_TYPE
1276 GNUSTEP_CFLAGS
1277 C_SWITCH_X_SITE
1278 LD_SWITCH_X_SITE
1279 gameuser
1280 gamedir
1281 bitmapdir
1282 archlibdir
1283 etcdir
1284 x_default_search_path
1285 lisppath
1286 locallisppath
1287 standardlisppath
1288 leimdir
1289 lispdir
1290 srcdir
1291 canonical
1292 configuration
1293 version
1294 copyright
1295 XGSELOBJ
1296 KRB4LIB
1297 DESLIB
1298 KRB5LIB
1299 CRYPTOLIB
1300 COM_ERRLIB
1301 LIBRESOLV
1302 LIBHESIOD
1303 TERMCAP_OBJ
1304 LIBS_TERMCAP
1305 BLESSMAIL_TARGET
1306 LIBS_MAIL
1307 liblockfile
1308 LIBXML2_LIBS
1309 LIBXML2_CFLAGS
1310 XINERAMA_LIBS
1311 XINERAMA_CFLAGS
1312 XRANDR_LIBS
1313 XRANDR_CFLAGS
1314 LIBXSM
1315 LIBGPM
1316 LIBGIF
1317 LIBTIFF
1318 LIBPNG
1319 LIBJPEG
1320 LIBXPM
1321 M17N_FLT_LIBS
1322 M17N_FLT_CFLAGS
1323 LIBOTF_LIBS
1324 LIBOTF_CFLAGS
1325 FREETYPE_LIBS
1326 FREETYPE_CFLAGS
1327 XFT_LIBS
1328 XFT_CFLAGS
1329 FONTCONFIG_LIBS
1330 FONTCONFIG_CFLAGS
1331 LIBXMU
1332 LIBXTR6
1333 NOTIFY_OBJ
1334 GFILENOTIFY_LIBS
1335 GFILENOTIFY_CFLAGS
1336 LIBGNUTLS_LIBS
1337 LIBGNUTLS_CFLAGS
1338 LIBSELINUX_LIBS
1339 SETTINGS_LIBS
1340 SETTINGS_CFLAGS
1341 GOBJECT_LIBS
1342 GOBJECT_CFLAGS
1343 GCONF_LIBS
1344 GCONF_CFLAGS
1345 GSETTINGS_LIBS
1346 GSETTINGS_CFLAGS
1347 DBUS_OBJ
1348 DBUS_LIBS
1349 DBUS_CFLAGS
1350 GTK_OBJ
1351 GTK_LIBS
1352 GTK_CFLAGS
1353 IMAGEMAGICK_LIBS
1354 IMAGEMAGICK_CFLAGS
1355 RSVG_LIBS
1356 RSVG_CFLAGS
1357 LIB_PTHREAD
1358 VMLIMIT_OBJ
1359 GMALLOC_OBJ
1360 HAVE_XSERVER
1361 XARGS_LIMIT
1362 NTLIB
1363 LIB_WSOCK32
1364 LIBS_ECLIENT
1365 CM_OBJ
1366 NTDIR
1367 FIRSTFILE_OBJ
1368 W32_RES_LINK
1369 CLIENTW
1370 CLIENTRES
1371 UPDATE_MANIFEST
1372 EMACS_MANIFEST
1373 EMACSRES
1374 W32_LIBS
1375 W32_OBJ
1376 WINDRES
1377 NS_OBJC_OBJ
1378 NS_OBJ
1379 ns_self_contained
1380 INSTALL_ARCH_INDEP_EXTRA
1381 LIBS_GNUSTEP
1382 LD_SWITCH_X_SITE_RPATH
1383 XMKMF
1384 DEPFLAGS
1385 MKDEPDIR
1386 CFLAGS_SOUND
1387 ALSA_LIBS
1388 ALSA_CFLAGS
1389 LIBSOUND
1390 PKG_CONFIG
1391 LIB_MATH
1392 LIBS_SYSTEM
1393 C_SWITCH_SYSTEM
1394 UNEXEC_OBJ
1395 C_SWITCH_MACHINE
1396 LD_SWITCH_SYSTEM
1397 CANNOT_DUMP
1398 INFO_OPTS
1399 INFO_EXT
1400 HAVE_MAKEINFO
1401 PAXCTL
1402 GZIP_PROG
1403 INSTALL_INFO
1404 LN_S_FILEONLY
1405 GNULIB_WARN_CFLAGS
1406 WARN_CFLAGS
1407 WERROR_CFLAGS
1408 RANLIB
1409 ARFLAGS
1411 EGREP
1412 GREP
1414 BUILDING_FOR_WINDOWSNT_FALSE
1415 BUILDING_FOR_WINDOWSNT_TRUE
1416 am__fastdepCC_FALSE
1417 am__fastdepCC_TRUE
1418 CCDEPMODE
1419 AMDEPBACKSLASH
1420 AMDEP_FALSE
1421 AMDEP_TRUE
1422 am__quote
1423 am__include
1424 DEPDIR
1425 OBJEXT
1426 EXEEXT
1427 ac_ct_CC
1428 CPPFLAGS
1429 LDFLAGS
1430 CFLAGS
1432 host_os
1433 host_vendor
1434 host_cpu
1435 host
1436 build_os
1437 build_vendor
1438 build_cpu
1439 build
1440 PROFILING_CFLAGS
1441 GZIP_INFO
1442 cache_file
1443 am__untar
1444 am__tar
1445 AMTAR
1446 am__leading_dot
1447 SET_MAKE
1449 mkdir_p
1450 MKDIR_P
1451 INSTALL_STRIP_PROGRAM
1452 STRIP
1453 install_sh
1454 MAKEINFO
1455 AUTOHEADER
1456 AUTOMAKE
1457 AUTOCONF
1458 ACLOCAL
1459 VERSION
1460 PACKAGE
1461 CYGPATH_W
1462 am__isrc
1463 INSTALL_DATA
1464 INSTALL_SCRIPT
1465 INSTALL_PROGRAM
1466 target_alias
1467 host_alias
1468 build_alias
1469 LIBS
1470 ECHO_T
1471 ECHO_N
1472 ECHO_C
1473 DEFS
1474 mandir
1475 localedir
1476 libdir
1477 psdir
1478 pdfdir
1479 dvidir
1480 htmldir
1481 infodir
1482 docdir
1483 oldincludedir
1484 includedir
1485 localstatedir
1486 sharedstatedir
1487 sysconfdir
1488 datadir
1489 datarootdir
1490 libexecdir
1491 sbindir
1492 bindir
1493 program_transform_name
1494 prefix
1495 exec_prefix
1496 PACKAGE_URL
1497 PACKAGE_BUGREPORT
1498 PACKAGE_STRING
1499 PACKAGE_VERSION
1500 PACKAGE_TARNAME
1501 PACKAGE_NAME
1502 PATH_SEPARATOR
1503 SHELL'
1504 ac_subst_files='deps_frag
1505 lisp_frag'
1506 ac_user_opts='
1507 enable_option_checking
1508 with_all
1509 with_pop
1510 with_kerberos
1511 with_kerberos5
1512 with_hesiod
1513 with_mmdf
1514 with_mail_unlink
1515 with_mailhost
1516 with_sound
1517 with_x_toolkit
1518 with_wide_int
1519 with_xpm
1520 with_jpeg
1521 with_tiff
1522 with_gif
1523 with_png
1524 with_rsvg
1525 with_xml2
1526 with_imagemagick
1527 with_xft
1528 with_libotf
1529 with_m17n_flt
1530 with_toolkit_scroll_bars
1531 with_xaw3d
1532 with_xim
1533 with_ns
1534 with_w32
1535 with_gpm
1536 with_dbus
1537 with_gconf
1538 with_gsettings
1539 with_selinux
1540 with_gnutls
1541 with_file_notification
1542 with_makeinfo
1543 with_compress_info
1544 with_pkg_config_prog
1545 with_gameuser
1546 with_gnustep_conf
1547 enable_ns_self_contained
1548 enable_locallisppath
1549 enable_checking
1550 enable_check_lisp_object_type
1551 enable_profiling
1552 enable_autodepend
1553 enable_gtk_deprecation_warnings
1554 enable_dependency_tracking
1555 enable_largefile
1556 enable_gcc_warnings
1557 enable_link_time_optimization
1558 with_x
1559 enable_acl
1561 ac_precious_vars='build_alias
1562 host_alias
1563 target_alias
1565 CFLAGS
1566 LDFLAGS
1567 LIBS
1568 CPPFLAGS
1570 XMKMF'
1573 # Initialize some variables set by options.
1574 ac_init_help=
1575 ac_init_version=false
1576 ac_unrecognized_opts=
1577 ac_unrecognized_sep=
1578 # The variables have the same names as the options, with
1579 # dashes changed to underlines.
1580 cache_file=/dev/null
1581 exec_prefix=NONE
1582 no_create=
1583 no_recursion=
1584 prefix=NONE
1585 program_prefix=NONE
1586 program_suffix=NONE
1587 program_transform_name=s,x,x,
1588 silent=
1589 site=
1590 srcdir=
1591 verbose=
1592 x_includes=NONE
1593 x_libraries=NONE
1595 # Installation directory options.
1596 # These are left unexpanded so users can "make install exec_prefix=/foo"
1597 # and all the variables that are supposed to be based on exec_prefix
1598 # by default will actually change.
1599 # Use braces instead of parens because sh, perl, etc. also accept them.
1600 # (The list follows the same order as the GNU Coding Standards.)
1601 bindir='${exec_prefix}/bin'
1602 sbindir='${exec_prefix}/sbin'
1603 libexecdir='${exec_prefix}/libexec'
1604 datarootdir='${prefix}/share'
1605 datadir='${datarootdir}'
1606 sysconfdir='${prefix}/etc'
1607 sharedstatedir='${prefix}/com'
1608 localstatedir='${prefix}/var'
1609 includedir='${prefix}/include'
1610 oldincludedir='/usr/include'
1611 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1612 infodir='${datarootdir}/info'
1613 htmldir='${docdir}'
1614 dvidir='${docdir}'
1615 pdfdir='${docdir}'
1616 psdir='${docdir}'
1617 libdir='${exec_prefix}/lib'
1618 localedir='${datarootdir}/locale'
1619 mandir='${datarootdir}/man'
1621 ac_prev=
1622 ac_dashdash=
1623 for ac_option
1625 # If the previous option needs an argument, assign it.
1626 if test -n "$ac_prev"; then
1627 eval $ac_prev=\$ac_option
1628 ac_prev=
1629 continue
1632 case $ac_option in
1633 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1634 *) ac_optarg=yes ;;
1635 esac
1637 # Accept the important Cygnus configure options, so we can diagnose typos.
1639 case $ac_dashdash$ac_option in
1641 ac_dashdash=yes ;;
1643 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1644 ac_prev=bindir ;;
1645 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1646 bindir=$ac_optarg ;;
1648 -build | --build | --buil | --bui | --bu)
1649 ac_prev=build_alias ;;
1650 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1651 build_alias=$ac_optarg ;;
1653 -cache-file | --cache-file | --cache-fil | --cache-fi \
1654 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1655 ac_prev=cache_file ;;
1656 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1657 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1658 cache_file=$ac_optarg ;;
1660 --config-cache | -C)
1661 cache_file=config.cache ;;
1663 -datadir | --datadir | --datadi | --datad)
1664 ac_prev=datadir ;;
1665 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1666 datadir=$ac_optarg ;;
1668 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1669 | --dataroo | --dataro | --datar)
1670 ac_prev=datarootdir ;;
1671 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1672 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1673 datarootdir=$ac_optarg ;;
1675 -disable-* | --disable-*)
1676 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1677 # Reject names that are not valid shell variable names.
1678 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1679 as_fn_error "invalid feature name: $ac_useropt"
1680 ac_useropt_orig=$ac_useropt
1681 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1682 case $ac_user_opts in
1684 "enable_$ac_useropt"
1685 "*) ;;
1686 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1687 ac_unrecognized_sep=', ';;
1688 esac
1689 eval enable_$ac_useropt=no ;;
1691 -docdir | --docdir | --docdi | --doc | --do)
1692 ac_prev=docdir ;;
1693 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1694 docdir=$ac_optarg ;;
1696 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1697 ac_prev=dvidir ;;
1698 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1699 dvidir=$ac_optarg ;;
1701 -enable-* | --enable-*)
1702 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1703 # Reject names that are not valid shell variable names.
1704 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1705 as_fn_error "invalid feature name: $ac_useropt"
1706 ac_useropt_orig=$ac_useropt
1707 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1708 case $ac_user_opts in
1710 "enable_$ac_useropt"
1711 "*) ;;
1712 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1713 ac_unrecognized_sep=', ';;
1714 esac
1715 eval enable_$ac_useropt=\$ac_optarg ;;
1717 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1718 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1719 | --exec | --exe | --ex)
1720 ac_prev=exec_prefix ;;
1721 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1722 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1723 | --exec=* | --exe=* | --ex=*)
1724 exec_prefix=$ac_optarg ;;
1726 -gas | --gas | --ga | --g)
1727 # Obsolete; use --with-gas.
1728 with_gas=yes ;;
1730 -help | --help | --hel | --he | -h)
1731 ac_init_help=long ;;
1732 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1733 ac_init_help=recursive ;;
1734 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1735 ac_init_help=short ;;
1737 -host | --host | --hos | --ho)
1738 ac_prev=host_alias ;;
1739 -host=* | --host=* | --hos=* | --ho=*)
1740 host_alias=$ac_optarg ;;
1742 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1743 ac_prev=htmldir ;;
1744 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1745 | --ht=*)
1746 htmldir=$ac_optarg ;;
1748 -includedir | --includedir | --includedi | --included | --include \
1749 | --includ | --inclu | --incl | --inc)
1750 ac_prev=includedir ;;
1751 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1752 | --includ=* | --inclu=* | --incl=* | --inc=*)
1753 includedir=$ac_optarg ;;
1755 -infodir | --infodir | --infodi | --infod | --info | --inf)
1756 ac_prev=infodir ;;
1757 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1758 infodir=$ac_optarg ;;
1760 -libdir | --libdir | --libdi | --libd)
1761 ac_prev=libdir ;;
1762 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1763 libdir=$ac_optarg ;;
1765 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1766 | --libexe | --libex | --libe)
1767 ac_prev=libexecdir ;;
1768 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1769 | --libexe=* | --libex=* | --libe=*)
1770 libexecdir=$ac_optarg ;;
1772 -localedir | --localedir | --localedi | --localed | --locale)
1773 ac_prev=localedir ;;
1774 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1775 localedir=$ac_optarg ;;
1777 -localstatedir | --localstatedir | --localstatedi | --localstated \
1778 | --localstate | --localstat | --localsta | --localst | --locals)
1779 ac_prev=localstatedir ;;
1780 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1781 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1782 localstatedir=$ac_optarg ;;
1784 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1785 ac_prev=mandir ;;
1786 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1787 mandir=$ac_optarg ;;
1789 -nfp | --nfp | --nf)
1790 # Obsolete; use --without-fp.
1791 with_fp=no ;;
1793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1794 | --no-cr | --no-c | -n)
1795 no_create=yes ;;
1797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1799 no_recursion=yes ;;
1801 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1802 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1803 | --oldin | --oldi | --old | --ol | --o)
1804 ac_prev=oldincludedir ;;
1805 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1806 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1807 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1808 oldincludedir=$ac_optarg ;;
1810 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1811 ac_prev=prefix ;;
1812 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1813 prefix=$ac_optarg ;;
1815 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1816 | --program-pre | --program-pr | --program-p)
1817 ac_prev=program_prefix ;;
1818 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1819 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1820 program_prefix=$ac_optarg ;;
1822 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1823 | --program-suf | --program-su | --program-s)
1824 ac_prev=program_suffix ;;
1825 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1826 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1827 program_suffix=$ac_optarg ;;
1829 -program-transform-name | --program-transform-name \
1830 | --program-transform-nam | --program-transform-na \
1831 | --program-transform-n | --program-transform- \
1832 | --program-transform | --program-transfor \
1833 | --program-transfo | --program-transf \
1834 | --program-trans | --program-tran \
1835 | --progr-tra | --program-tr | --program-t)
1836 ac_prev=program_transform_name ;;
1837 -program-transform-name=* | --program-transform-name=* \
1838 | --program-transform-nam=* | --program-transform-na=* \
1839 | --program-transform-n=* | --program-transform-=* \
1840 | --program-transform=* | --program-transfor=* \
1841 | --program-transfo=* | --program-transf=* \
1842 | --program-trans=* | --program-tran=* \
1843 | --progr-tra=* | --program-tr=* | --program-t=*)
1844 program_transform_name=$ac_optarg ;;
1846 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1847 ac_prev=pdfdir ;;
1848 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1849 pdfdir=$ac_optarg ;;
1851 -psdir | --psdir | --psdi | --psd | --ps)
1852 ac_prev=psdir ;;
1853 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1854 psdir=$ac_optarg ;;
1856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1857 | -silent | --silent | --silen | --sile | --sil)
1858 silent=yes ;;
1860 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1861 ac_prev=sbindir ;;
1862 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1863 | --sbi=* | --sb=*)
1864 sbindir=$ac_optarg ;;
1866 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1867 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1868 | --sharedst | --shareds | --shared | --share | --shar \
1869 | --sha | --sh)
1870 ac_prev=sharedstatedir ;;
1871 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1872 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1873 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1874 | --sha=* | --sh=*)
1875 sharedstatedir=$ac_optarg ;;
1877 -site | --site | --sit)
1878 ac_prev=site ;;
1879 -site=* | --site=* | --sit=*)
1880 site=$ac_optarg ;;
1882 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1883 ac_prev=srcdir ;;
1884 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1885 srcdir=$ac_optarg ;;
1887 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1888 | --syscon | --sysco | --sysc | --sys | --sy)
1889 ac_prev=sysconfdir ;;
1890 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1891 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1892 sysconfdir=$ac_optarg ;;
1894 -target | --target | --targe | --targ | --tar | --ta | --t)
1895 ac_prev=target_alias ;;
1896 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1897 target_alias=$ac_optarg ;;
1899 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1900 verbose=yes ;;
1902 -version | --version | --versio | --versi | --vers | -V)
1903 ac_init_version=: ;;
1905 -with-* | --with-*)
1906 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1907 # Reject names that are not valid shell variable names.
1908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1909 as_fn_error "invalid package name: $ac_useropt"
1910 ac_useropt_orig=$ac_useropt
1911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1912 case $ac_user_opts in
1914 "with_$ac_useropt"
1915 "*) ;;
1916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1917 ac_unrecognized_sep=', ';;
1918 esac
1919 eval with_$ac_useropt=\$ac_optarg ;;
1921 -without-* | --without-*)
1922 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1923 # Reject names that are not valid shell variable names.
1924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1925 as_fn_error "invalid package name: $ac_useropt"
1926 ac_useropt_orig=$ac_useropt
1927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1928 case $ac_user_opts in
1930 "with_$ac_useropt"
1931 "*) ;;
1932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1933 ac_unrecognized_sep=', ';;
1934 esac
1935 eval with_$ac_useropt=no ;;
1937 --x)
1938 # Obsolete; use --with-x.
1939 with_x=yes ;;
1941 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1942 | --x-incl | --x-inc | --x-in | --x-i)
1943 ac_prev=x_includes ;;
1944 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1945 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1946 x_includes=$ac_optarg ;;
1948 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1949 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1950 ac_prev=x_libraries ;;
1951 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1952 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1953 x_libraries=$ac_optarg ;;
1955 -*) as_fn_error "unrecognized option: \`$ac_option'
1956 Try \`$0 --help' for more information."
1959 *=*)
1960 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1961 # Reject names that are not valid shell variable names.
1962 case $ac_envvar in #(
1963 '' | [0-9]* | *[!_$as_cr_alnum]* )
1964 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1965 esac
1966 eval $ac_envvar=\$ac_optarg
1967 export $ac_envvar ;;
1970 # FIXME: should be removed in autoconf 3.0.
1971 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1972 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1973 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1974 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1977 esac
1978 done
1980 if test -n "$ac_prev"; then
1981 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1982 as_fn_error "missing argument to $ac_option"
1985 if test -n "$ac_unrecognized_opts"; then
1986 case $enable_option_checking in
1987 no) ;;
1988 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1989 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1990 esac
1993 # Check all directory arguments for consistency.
1994 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1995 datadir sysconfdir sharedstatedir localstatedir includedir \
1996 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1997 libdir localedir mandir
1999 eval ac_val=\$$ac_var
2000 # Remove trailing slashes.
2001 case $ac_val in
2002 */ )
2003 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2004 eval $ac_var=\$ac_val;;
2005 esac
2006 # Be sure to have absolute directory names.
2007 case $ac_val in
2008 [\\/$]* | ?:[\\/]* ) continue;;
2009 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2010 esac
2011 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2012 done
2014 # There might be people who depend on the old broken behavior: `$host'
2015 # used to hold the argument of --host etc.
2016 # FIXME: To remove some day.
2017 build=$build_alias
2018 host=$host_alias
2019 target=$target_alias
2021 # FIXME: To remove some day.
2022 if test "x$host_alias" != x; then
2023 if test "x$build_alias" = x; then
2024 cross_compiling=maybe
2025 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2026 If a cross compiler is detected then cross compile mode will be used." >&2
2027 elif test "x$build_alias" != "x$host_alias"; then
2028 cross_compiling=yes
2032 ac_tool_prefix=
2033 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2035 test "$silent" = yes && exec 6>/dev/null
2038 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2039 ac_ls_di=`ls -di .` &&
2040 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2041 as_fn_error "working directory cannot be determined"
2042 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2043 as_fn_error "pwd does not report name of working directory"
2046 # Find the source files, if location was not specified.
2047 if test -z "$srcdir"; then
2048 ac_srcdir_defaulted=yes
2049 # Try the directory containing this script, then the parent directory.
2050 ac_confdir=`$as_dirname -- "$as_myself" ||
2051 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2052 X"$as_myself" : 'X\(//\)[^/]' \| \
2053 X"$as_myself" : 'X\(//\)$' \| \
2054 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2055 $as_echo X"$as_myself" |
2056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2057 s//\1/
2060 /^X\(\/\/\)[^/].*/{
2061 s//\1/
2064 /^X\(\/\/\)$/{
2065 s//\1/
2068 /^X\(\/\).*/{
2069 s//\1/
2072 s/.*/./; q'`
2073 srcdir=$ac_confdir
2074 if test ! -r "$srcdir/$ac_unique_file"; then
2075 srcdir=..
2077 else
2078 ac_srcdir_defaulted=no
2080 if test ! -r "$srcdir/$ac_unique_file"; then
2081 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2082 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2084 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2085 ac_abs_confdir=`(
2086 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2087 pwd)`
2088 # When building in place, set srcdir=.
2089 if test "$ac_abs_confdir" = "$ac_pwd"; then
2090 srcdir=.
2092 # Remove unnecessary trailing slashes from srcdir.
2093 # Double slashes in file names in object file debugging info
2094 # mess up M-x gdb in Emacs.
2095 case $srcdir in
2096 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2097 esac
2098 for ac_var in $ac_precious_vars; do
2099 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2100 eval ac_env_${ac_var}_value=\$${ac_var}
2101 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2102 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2103 done
2106 # Report the --help message.
2108 if test "$ac_init_help" = "long"; then
2109 # Omit some internal or obsolete options to make the list less imposing.
2110 # This message is too long to be a string in the A/UX 3.1 sh.
2111 cat <<_ACEOF
2112 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2114 Usage: $0 [OPTION]... [VAR=VALUE]...
2116 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2117 VAR=VALUE. See below for descriptions of some of the useful variables.
2119 Defaults for the options are specified in brackets.
2121 Configuration:
2122 -h, --help display this help and exit
2123 --help=short display options specific to this package
2124 --help=recursive display the short help of all the included packages
2125 -V, --version display version information and exit
2126 -q, --quiet, --silent do not print \`checking...' messages
2127 --cache-file=FILE cache test results in FILE [disabled]
2128 -C, --config-cache alias for \`--cache-file=config.cache'
2129 -n, --no-create do not create output files
2130 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2132 Installation directories:
2133 --prefix=PREFIX install architecture-independent files in PREFIX
2134 [$ac_default_prefix]
2135 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2136 [PREFIX]
2138 By default, \`make install' will install all the files in
2139 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2140 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2141 for instance \`--prefix=\$HOME'.
2143 For better control, use the options below.
2145 Fine tuning of the installation directories:
2146 --bindir=DIR user executables [EPREFIX/bin]
2147 --sbindir=DIR system admin executables [EPREFIX/sbin]
2148 --libexecdir=DIR program executables [EPREFIX/libexec]
2149 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2150 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2151 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2152 --libdir=DIR object code libraries [EPREFIX/lib]
2153 --includedir=DIR C header files [PREFIX/include]
2154 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2155 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2156 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2157 --infodir=DIR info documentation [DATAROOTDIR/info]
2158 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2159 --mandir=DIR man documentation [DATAROOTDIR/man]
2160 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2161 --htmldir=DIR html documentation [DOCDIR]
2162 --dvidir=DIR dvi documentation [DOCDIR]
2163 --pdfdir=DIR pdf documentation [DOCDIR]
2164 --psdir=DIR ps documentation [DOCDIR]
2165 _ACEOF
2167 cat <<\_ACEOF
2169 Program names:
2170 --program-prefix=PREFIX prepend PREFIX to installed program names
2171 --program-suffix=SUFFIX append SUFFIX to installed program names
2172 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2174 X features:
2175 --x-includes=DIR X include files are in DIR
2176 --x-libraries=DIR X library files are in DIR
2178 System types:
2179 --build=BUILD configure for building on BUILD [guessed]
2180 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2181 _ACEOF
2184 if test -n "$ac_init_help"; then
2185 case $ac_init_help in
2186 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2187 esac
2188 cat <<\_ACEOF
2190 Optional Features:
2191 --disable-option-checking ignore unrecognized --enable/--with options
2192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2194 --disable-ns-self-contained
2195 disable self contained build under NeXTstep
2196 --enable-locallisppath=PATH
2197 directories Emacs should search for lisp files
2198 specific to this site
2199 --enable-checking[=LIST]
2200 enable expensive run-time checks. With LIST, enable
2201 only specific categories of checks. Categories are:
2202 all,yes,no. Flags are: stringbytes, stringoverrun,
2203 stringfreelist, xmallocoverrun, conslist, glyphs
2204 --enable-check-lisp-object-type
2205 enable compile time checks for the Lisp_Object data
2206 type. This is useful for development for catching
2207 certain types of bugs.
2208 --enable-profiling build emacs with low-level, gprof profiling support.
2209 Mainly useful for debugging Emacs itself. May not
2210 work on all platforms. Stops profiler.el working.
2211 --enable-autodepend automatically generate dependencies to .h-files.
2212 Requires GNU Make and Gcc. Enabled if GNU Make and
2213 Gcc is found
2214 --enable-gtk-deprecation-warnings
2215 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2216 --disable-dependency-tracking speeds up one-time build
2217 --enable-dependency-tracking do not reject slow dependency extractors
2218 --disable-largefile omit support for large files
2219 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2220 intended for developers, and may generate false
2221 alarms when used with older or non-GNU development
2222 tools.
2223 --enable-link-time-optimization
2224 build emacs with link-time optimization. This is
2225 supported only for GCC since 4.5.0.
2226 --disable-acl do not support ACLs
2228 Optional Packages:
2229 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2230 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2231 --without-all omit almost all features and build small executable
2232 with minimal dependencies
2233 --without-pop don't support POP mail retrieval with movemail
2234 --with-kerberos support Kerberos-authenticated POP
2235 --with-kerberos5 support Kerberos version 5 authenticated POP
2236 --with-hesiod support Hesiod to get the POP server host
2237 --with-mmdf support MMDF mailboxes
2238 --with-mail-unlink unlink, rather than empty, mail spool after reading
2239 --with-mailhost=HOSTNAME
2240 string giving default POP mail host
2241 --with-sound=VALUE compile with sound support (VALUE one of: yes,
2242 ossaudio, alsa, no; default yes). Only for
2243 GNU/Linux, FreeBSD, NetBSD, MinGW.
2244 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2245 gtk3, lucid or athena, motif, no)
2246 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2247 --without-xpm don't compile with XPM image support
2248 --without-jpeg don't compile with JPEG image support
2249 --without-tiff don't compile with TIFF image support
2250 --without-gif don't compile with GIF image support
2251 --without-png don't compile with PNG image support
2252 --without-rsvg don't compile with SVG image support
2253 --without-xml2 don't compile with XML parsing support
2254 --without-imagemagick don't compile with ImageMagick image support
2255 --without-xft don't use XFT for anti aliased fonts
2256 --without-libotf don't use libotf for OpenType font support
2257 --without-m17n-flt don't use m17n-flt for text shaping
2258 --without-toolkit-scroll-bars
2259 don't use Motif or Xaw3d scroll bars
2260 --without-xaw3d don't use Xaw3d
2261 --without-xim don't use X11 XIM
2262 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2263 --with-w32 use native MS Windows GUI in a Cygwin build
2264 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2265 console
2266 --without-dbus don't compile with D-Bus support
2267 --without-gconf don't compile with GConf support
2268 --without-gsettings don't compile with GSettings support
2269 --without-selinux don't compile with SELinux support
2270 --without-gnutls don't use -lgnutls for SSL/TLS support
2271 --with-file-notification=LIB
2272 use a file notification library (LIB one of: yes,
2273 gfile, inotify, w32, no)
2274 --without-makeinfo don't require makeinfo for building manuals
2275 --without-compress-info don't compress the installed Info pages
2276 --with-pkg-config-prog=FILENAME
2277 file name of pkg-config for finding GTK and librsvg
2278 --with-gameuser=USER user for shared game score files
2279 --with-gnustep-conf=FILENAME
2280 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2281 or /etc/GNUstep/GNUstep.conf
2282 --with-x use the X Window System
2284 Some influential environment variables:
2285 CC C compiler command
2286 CFLAGS C compiler flags
2287 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2288 nonstandard directory <lib dir>
2289 LIBS libraries to pass to the linker, e.g. -l<library>
2290 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2291 you have headers in a nonstandard directory <include dir>
2292 CPP C preprocessor
2293 XMKMF Path to xmkmf, Makefile generator for X Window System
2295 Use these variables to override the choices made by `configure' or to help
2296 it to find libraries and programs with nonstandard names/locations.
2298 Report bugs to the package provider.
2299 _ACEOF
2300 ac_status=$?
2303 if test "$ac_init_help" = "recursive"; then
2304 # If there are subdirs, report their specific --help.
2305 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2306 test -d "$ac_dir" ||
2307 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2308 continue
2309 ac_builddir=.
2311 case "$ac_dir" in
2312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2314 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2315 # A ".." for each directory in $ac_dir_suffix.
2316 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2317 case $ac_top_builddir_sub in
2318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2320 esac ;;
2321 esac
2322 ac_abs_top_builddir=$ac_pwd
2323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2324 # for backward compatibility:
2325 ac_top_builddir=$ac_top_build_prefix
2327 case $srcdir in
2328 .) # We are building in place.
2329 ac_srcdir=.
2330 ac_top_srcdir=$ac_top_builddir_sub
2331 ac_abs_top_srcdir=$ac_pwd ;;
2332 [\\/]* | ?:[\\/]* ) # Absolute name.
2333 ac_srcdir=$srcdir$ac_dir_suffix;
2334 ac_top_srcdir=$srcdir
2335 ac_abs_top_srcdir=$srcdir ;;
2336 *) # Relative name.
2337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2338 ac_top_srcdir=$ac_top_build_prefix$srcdir
2339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2340 esac
2341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2343 cd "$ac_dir" || { ac_status=$?; continue; }
2344 # Check for guested configure.
2345 if test -f "$ac_srcdir/configure.gnu"; then
2346 echo &&
2347 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2348 elif test -f "$ac_srcdir/configure"; then
2349 echo &&
2350 $SHELL "$ac_srcdir/configure" --help=recursive
2351 else
2352 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2353 fi || ac_status=$?
2354 cd "$ac_pwd" || { ac_status=$?; break; }
2355 done
2358 test -n "$ac_init_help" && exit $ac_status
2359 if $ac_init_version; then
2360 cat <<\_ACEOF
2361 emacs configure 24.3.50
2362 generated by GNU Autoconf 2.65
2364 Copyright (C) 2009 Free Software Foundation, Inc.
2365 This configure script is free software; the Free Software Foundation
2366 gives unlimited permission to copy, distribute and modify it.
2367 _ACEOF
2368 exit
2371 ## ------------------------ ##
2372 ## Autoconf initialization. ##
2373 ## ------------------------ ##
2375 # ac_fn_c_try_compile LINENO
2376 # --------------------------
2377 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_c_try_compile ()
2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381 rm -f conftest.$ac_objext
2382 if { { ac_try="$ac_compile"
2383 case "(($ac_try" in
2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2386 esac
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_compile") 2>conftest.err
2390 ac_status=$?
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_c_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest.$ac_objext; then :
2401 ac_retval=0
2402 else
2403 $as_echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2406 ac_retval=1
2408 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2409 as_fn_set_status $ac_retval
2411 } # ac_fn_c_try_compile
2413 # ac_fn_c_try_cpp LINENO
2414 # ----------------------
2415 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2416 ac_fn_c_try_cpp ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 if { { ac_try="$ac_cpp conftest.$ac_ext"
2420 case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2423 esac
2424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 $as_echo "$ac_try_echo"; } >&5
2426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2427 ac_status=$?
2428 if test -s conftest.err; then
2429 grep -v '^ *+' conftest.err >conftest.er1
2430 cat conftest.er1 >&5
2431 mv -f conftest.er1 conftest.err
2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434 test $ac_status = 0; } >/dev/null && {
2435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2436 test ! -s conftest.err
2437 }; then :
2438 ac_retval=0
2439 else
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2443 ac_retval=1
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 as_fn_set_status $ac_retval
2448 } # ac_fn_c_try_cpp
2450 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2451 # -------------------------------------------------------
2452 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2453 # the include files in INCLUDES and setting the cache variable VAR
2454 # accordingly.
2455 ac_fn_c_check_header_mongrel ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460 $as_echo_n "checking for $2... " >&6; }
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 $as_echo_n "(cached) " >&6
2464 eval ac_res=\$$3
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 else
2468 # Is the header compilable?
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2470 $as_echo_n "checking $2 usability... " >&6; }
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2474 #include <$2>
2475 _ACEOF
2476 if ac_fn_c_try_compile "$LINENO"; then :
2477 ac_header_compiler=yes
2478 else
2479 ac_header_compiler=no
2481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2483 $as_echo "$ac_header_compiler" >&6; }
2485 # Is the header present?
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2487 $as_echo_n "checking $2 presence... " >&6; }
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2490 #include <$2>
2491 _ACEOF
2492 if ac_fn_c_try_cpp "$LINENO"; then :
2493 ac_header_preproc=yes
2494 else
2495 ac_header_preproc=no
2497 rm -f conftest.err conftest.$ac_ext
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2499 $as_echo "$ac_header_preproc" >&6; }
2501 # So? What about this header?
2502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2503 yes:no: )
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2505 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2507 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2509 no:yes:* )
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2511 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2513 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2515 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2517 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2521 esac
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2523 $as_echo_n "checking for $2... " >&6; }
2524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 eval "$3=\$ac_header_compiler"
2529 eval ac_res=\$$3
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2531 $as_echo "$ac_res" >&6; }
2533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 } # ac_fn_c_check_header_mongrel
2537 # ac_fn_c_try_run LINENO
2538 # ----------------------
2539 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2540 # that executables *can* be run.
2541 ac_fn_c_try_run ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 if { { ac_try="$ac_link"
2545 case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2550 $as_echo "$ac_try_echo"; } >&5
2551 (eval "$ac_link") 2>&5
2552 ac_status=$?
2553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2554 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2555 { { case "(($ac_try" in
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2558 esac
2559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2560 $as_echo "$ac_try_echo"; } >&5
2561 (eval "$ac_try") 2>&5
2562 ac_status=$?
2563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2564 test $ac_status = 0; }; }; then :
2565 ac_retval=0
2566 else
2567 $as_echo "$as_me: program exited with status $ac_status" >&5
2568 $as_echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2571 ac_retval=$ac_status
2573 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2574 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2575 as_fn_set_status $ac_retval
2577 } # ac_fn_c_try_run
2579 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2580 # -------------------------------------------------------
2581 # Tests whether HEADER exists and can be compiled using the include files in
2582 # INCLUDES, setting the cache variable VAR accordingly.
2583 ac_fn_c_check_header_compile ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2594 #include <$2>
2595 _ACEOF
2596 if ac_fn_c_try_compile "$LINENO"; then :
2597 eval "$3=yes"
2598 else
2599 eval "$3=no"
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 } # ac_fn_c_check_header_compile
2610 # ac_fn_c_try_link LINENO
2611 # -----------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_c_try_link ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 rm -f conftest.$ac_objext conftest$ac_exeext
2617 if { { ac_try="$ac_link"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2625 ac_status=$?
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_c_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2638 }; then :
2639 ac_retval=0
2640 else
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2644 ac_retval=1
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 as_fn_set_status $ac_retval
2654 } # ac_fn_c_try_link
2656 # ac_fn_c_check_decl LINENO SYMBOL VAR
2657 # ------------------------------------
2658 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2659 ac_fn_c_check_decl ()
2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2663 $as_echo_n "checking whether $2 is declared... " >&6; }
2664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2671 main ()
2673 #ifndef $2
2674 (void) $2;
2675 #endif
2678 return 0;
2680 _ACEOF
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682 eval "$3=yes"
2683 else
2684 eval "$3=no"
2686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 eval ac_res=\$$3
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2690 $as_echo "$ac_res" >&6; }
2691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693 } # ac_fn_c_check_decl
2695 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2696 # ----------------------------------------------
2697 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2698 ac_fn_c_check_header_preproc ()
2700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2704 $as_echo_n "(cached) " >&6
2705 else
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2708 #include <$2>
2709 _ACEOF
2710 if ac_fn_c_try_cpp "$LINENO"; then :
2711 eval "$3=yes"
2712 else
2713 eval "$3=no"
2715 rm -f conftest.err conftest.$ac_ext
2717 eval ac_res=\$$3
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2719 $as_echo "$ac_res" >&6; }
2720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2722 } # ac_fn_c_check_header_preproc
2724 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2725 # ----------------------------------------------------
2726 # Tries to find if the field MEMBER exists in type AGGR, after including
2727 # INCLUDES, setting cache variable VAR accordingly.
2728 ac_fn_c_check_member ()
2730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2732 $as_echo_n "checking for $2.$3... " >&6; }
2733 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2740 main ()
2742 static $2 ac_aggr;
2743 if (ac_aggr.$3)
2744 return 0;
2746 return 0;
2748 _ACEOF
2749 if ac_fn_c_try_compile "$LINENO"; then :
2750 eval "$4=yes"
2751 else
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2756 main ()
2758 static $2 ac_aggr;
2759 if (sizeof ac_aggr.$3)
2760 return 0;
2762 return 0;
2764 _ACEOF
2765 if ac_fn_c_try_compile "$LINENO"; then :
2766 eval "$4=yes"
2767 else
2768 eval "$4=no"
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 eval ac_res=\$$4
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2779 } # ac_fn_c_check_member
2781 # ac_fn_c_check_func LINENO FUNC VAR
2782 # ----------------------------------
2783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2784 ac_fn_c_check_func ()
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788 $as_echo_n "checking for $2... " >&6; }
2789 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2796 #define $2 innocuous_$2
2798 /* System header to define __stub macros and hopefully few prototypes,
2799 which can conflict with char $2 (); below.
2800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2801 <limits.h> exists even on freestanding compilers. */
2803 #ifdef __STDC__
2804 # include <limits.h>
2805 #else
2806 # include <assert.h>
2807 #endif
2809 #undef $2
2811 /* Override any GCC internal prototype to avoid an error.
2812 Use char because int might match the return type of a GCC
2813 builtin and then its argument prototype would still apply. */
2814 #ifdef __cplusplus
2815 extern "C"
2816 #endif
2817 char $2 ();
2818 /* The GNU C library defines this for functions which it implements
2819 to always fail with ENOSYS. Some functions are actually named
2820 something starting with __ and the normal name is an alias. */
2821 #if defined __stub_$2 || defined __stub___$2
2822 choke me
2823 #endif
2826 main ()
2828 return $2 ();
2830 return 0;
2832 _ACEOF
2833 if ac_fn_c_try_link "$LINENO"; then :
2834 eval "$3=yes"
2835 else
2836 eval "$3=no"
2838 rm -f core conftest.err conftest.$ac_objext \
2839 conftest$ac_exeext conftest.$ac_ext
2841 eval ac_res=\$$3
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2846 } # ac_fn_c_check_func
2848 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2849 # -------------------------------------------
2850 # Tests whether TYPE exists after having included INCLUDES, setting cache
2851 # variable VAR accordingly.
2852 ac_fn_c_check_type ()
2854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2856 $as_echo_n "checking for $2... " >&6; }
2857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 eval "$3=no"
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h. */
2865 main ()
2867 if (sizeof ($2))
2868 return 0;
2870 return 0;
2872 _ACEOF
2873 if ac_fn_c_try_compile "$LINENO"; then :
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2878 main ()
2880 if (sizeof (($2)))
2881 return 0;
2883 return 0;
2885 _ACEOF
2886 if ac_fn_c_try_compile "$LINENO"; then :
2888 else
2889 eval "$3=yes"
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 eval ac_res=\$$3
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2897 $as_echo "$ac_res" >&6; }
2898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2900 } # ac_fn_c_check_type
2902 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2903 # --------------------------------------------
2904 # Tries to find the compile-time value of EXPR in a program that includes
2905 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2906 # computed
2907 ac_fn_c_compute_int ()
2909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2910 if test "$cross_compiling" = yes; then
2911 # Depending upon the size, compute the lo and hi bounds.
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2916 main ()
2918 static int test_array [1 - 2 * !(($2) >= 0)];
2919 test_array [0] = 0
2922 return 0;
2924 _ACEOF
2925 if ac_fn_c_try_compile "$LINENO"; then :
2926 ac_lo=0 ac_mid=0
2927 while :; do
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2932 main ()
2934 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2935 test_array [0] = 0
2938 return 0;
2940 _ACEOF
2941 if ac_fn_c_try_compile "$LINENO"; then :
2942 ac_hi=$ac_mid; break
2943 else
2944 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2945 if test $ac_lo -le $ac_mid; then
2946 ac_lo= ac_hi=
2947 break
2949 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 done
2953 else
2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2955 /* end confdefs.h. */
2958 main ()
2960 static int test_array [1 - 2 * !(($2) < 0)];
2961 test_array [0] = 0
2964 return 0;
2966 _ACEOF
2967 if ac_fn_c_try_compile "$LINENO"; then :
2968 ac_hi=-1 ac_mid=-1
2969 while :; do
2970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h. */
2974 main ()
2976 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2977 test_array [0] = 0
2980 return 0;
2982 _ACEOF
2983 if ac_fn_c_try_compile "$LINENO"; then :
2984 ac_lo=$ac_mid; break
2985 else
2986 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2987 if test $ac_mid -le $ac_hi; then
2988 ac_lo= ac_hi=
2989 break
2991 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2994 done
2995 else
2996 ac_lo= ac_hi=
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 # Binary search between lo and hi bounds.
3002 while test "x$ac_lo" != "x$ac_hi"; do
3003 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005 /* end confdefs.h. */
3008 main ()
3010 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3011 test_array [0] = 0
3014 return 0;
3016 _ACEOF
3017 if ac_fn_c_try_compile "$LINENO"; then :
3018 ac_hi=$ac_mid
3019 else
3020 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 done
3024 case $ac_lo in #((
3025 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3026 '') ac_retval=1 ;;
3027 esac
3028 else
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3032 static long int longval () { return $2; }
3033 static unsigned long int ulongval () { return $2; }
3034 #include <stdio.h>
3035 #include <stdlib.h>
3037 main ()
3040 FILE *f = fopen ("conftest.val", "w");
3041 if (! f)
3042 return 1;
3043 if (($2) < 0)
3045 long int i = longval ();
3046 if (i != ($2))
3047 return 1;
3048 fprintf (f, "%ld", i);
3050 else
3052 unsigned long int i = ulongval ();
3053 if (i != ($2))
3054 return 1;
3055 fprintf (f, "%lu", i);
3057 /* Do not output a trailing newline, as this causes \r\n confusion
3058 on some platforms. */
3059 return ferror (f) || fclose (f) != 0;
3062 return 0;
3064 _ACEOF
3065 if ac_fn_c_try_run "$LINENO"; then :
3066 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3067 else
3068 ac_retval=1
3070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3071 conftest.$ac_objext conftest.beam conftest.$ac_ext
3072 rm -f conftest.val
3075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3076 as_fn_set_status $ac_retval
3078 } # ac_fn_c_compute_int
3079 cat >config.log <<_ACEOF
3080 This file contains any messages produced by compilers while
3081 running configure, to aid debugging if configure makes a mistake.
3083 It was created by emacs $as_me 24.3.50, which was
3084 generated by GNU Autoconf 2.65. Invocation command line was
3086 $ $0 $@
3088 _ACEOF
3089 exec 5>>config.log
3091 cat <<_ASUNAME
3092 ## --------- ##
3093 ## Platform. ##
3094 ## --------- ##
3096 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3097 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3098 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3099 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3100 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3102 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3103 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3105 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3106 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3107 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3108 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3109 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3110 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3111 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3113 _ASUNAME
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 $as_echo "PATH: $as_dir"
3121 done
3122 IFS=$as_save_IFS
3124 } >&5
3126 cat >&5 <<_ACEOF
3129 ## ----------- ##
3130 ## Core tests. ##
3131 ## ----------- ##
3133 _ACEOF
3136 # Keep a trace of the command line.
3137 # Strip out --no-create and --no-recursion so they do not pile up.
3138 # Strip out --silent because we don't want to record it for future runs.
3139 # Also quote any args containing shell meta-characters.
3140 # Make two passes to allow for proper duplicate-argument suppression.
3141 ac_configure_args=
3142 ac_configure_args0=
3143 ac_configure_args1=
3144 ac_must_keep_next=false
3145 for ac_pass in 1 2
3147 for ac_arg
3149 case $ac_arg in
3150 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3152 | -silent | --silent | --silen | --sile | --sil)
3153 continue ;;
3154 *\'*)
3155 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3156 esac
3157 case $ac_pass in
3158 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3160 as_fn_append ac_configure_args1 " '$ac_arg'"
3161 if test $ac_must_keep_next = true; then
3162 ac_must_keep_next=false # Got value, back to normal.
3163 else
3164 case $ac_arg in
3165 *=* | --config-cache | -C | -disable-* | --disable-* \
3166 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3167 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3168 | -with-* | --with-* | -without-* | --without-* | --x)
3169 case "$ac_configure_args0 " in
3170 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3171 esac
3173 -* ) ac_must_keep_next=true ;;
3174 esac
3176 as_fn_append ac_configure_args " '$ac_arg'"
3178 esac
3179 done
3180 done
3181 { ac_configure_args0=; unset ac_configure_args0;}
3182 { ac_configure_args1=; unset ac_configure_args1;}
3184 # When interrupted or exit'd, cleanup temporary files, and complete
3185 # config.log. We remove comments because anyway the quotes in there
3186 # would cause problems or look ugly.
3187 # WARNING: Use '\'' to represent an apostrophe within the trap.
3188 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3189 trap 'exit_status=$?
3190 # Save into config.log some information that might help in debugging.
3192 echo
3194 cat <<\_ASBOX
3195 ## ---------------- ##
3196 ## Cache variables. ##
3197 ## ---------------- ##
3198 _ASBOX
3199 echo
3200 # The following way of writing the cache mishandles newlines in values,
3202 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3203 eval ac_val=\$$ac_var
3204 case $ac_val in #(
3205 *${as_nl}*)
3206 case $ac_var in #(
3207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3208 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3209 esac
3210 case $ac_var in #(
3211 _ | IFS | as_nl) ;; #(
3212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3213 *) { eval $ac_var=; unset $ac_var;} ;;
3214 esac ;;
3215 esac
3216 done
3217 (set) 2>&1 |
3218 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3219 *${as_nl}ac_space=\ *)
3220 sed -n \
3221 "s/'\''/'\''\\\\'\'''\''/g;
3222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3223 ;; #(
3225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3227 esac |
3228 sort
3230 echo
3232 cat <<\_ASBOX
3233 ## ----------------- ##
3234 ## Output variables. ##
3235 ## ----------------- ##
3236 _ASBOX
3237 echo
3238 for ac_var in $ac_subst_vars
3240 eval ac_val=\$$ac_var
3241 case $ac_val in
3242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3243 esac
3244 $as_echo "$ac_var='\''$ac_val'\''"
3245 done | sort
3246 echo
3248 if test -n "$ac_subst_files"; then
3249 cat <<\_ASBOX
3250 ## ------------------- ##
3251 ## File substitutions. ##
3252 ## ------------------- ##
3253 _ASBOX
3254 echo
3255 for ac_var in $ac_subst_files
3257 eval ac_val=\$$ac_var
3258 case $ac_val in
3259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3260 esac
3261 $as_echo "$ac_var='\''$ac_val'\''"
3262 done | sort
3263 echo
3266 if test -s confdefs.h; then
3267 cat <<\_ASBOX
3268 ## ----------- ##
3269 ## confdefs.h. ##
3270 ## ----------- ##
3271 _ASBOX
3272 echo
3273 cat confdefs.h
3274 echo
3276 test "$ac_signal" != 0 &&
3277 $as_echo "$as_me: caught signal $ac_signal"
3278 $as_echo "$as_me: exit $exit_status"
3279 } >&5
3280 rm -f core *.core core.conftest.* &&
3281 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3282 exit $exit_status
3284 for ac_signal in 1 2 13 15; do
3285 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3286 done
3287 ac_signal=0
3289 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3290 rm -f -r conftest* confdefs.h
3292 $as_echo "/* confdefs.h */" > confdefs.h
3294 # Predefined preprocessor variables.
3296 cat >>confdefs.h <<_ACEOF
3297 #define PACKAGE_NAME "$PACKAGE_NAME"
3298 _ACEOF
3300 cat >>confdefs.h <<_ACEOF
3301 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3302 _ACEOF
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3306 _ACEOF
3308 cat >>confdefs.h <<_ACEOF
3309 #define PACKAGE_STRING "$PACKAGE_STRING"
3310 _ACEOF
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3314 _ACEOF
3316 cat >>confdefs.h <<_ACEOF
3317 #define PACKAGE_URL "$PACKAGE_URL"
3318 _ACEOF
3321 # Let the site file select an alternate cache file if it wants to.
3322 # Prefer an explicitly selected file to automatically selected ones.
3323 ac_site_file1=NONE
3324 ac_site_file2=NONE
3325 if test -n "$CONFIG_SITE"; then
3326 ac_site_file1=$CONFIG_SITE
3327 elif test "x$prefix" != xNONE; then
3328 ac_site_file1=$prefix/share/config.site
3329 ac_site_file2=$prefix/etc/config.site
3330 else
3331 ac_site_file1=$ac_default_prefix/share/config.site
3332 ac_site_file2=$ac_default_prefix/etc/config.site
3334 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3336 test "x$ac_site_file" = xNONE && continue
3337 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3339 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3340 sed 's/^/| /' "$ac_site_file" >&5
3341 . "$ac_site_file"
3343 done
3345 if test -r "$cache_file"; then
3346 # Some versions of bash will fail to source /dev/null (special files
3347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3350 $as_echo "$as_me: loading cache $cache_file" >&6;}
3351 case $cache_file in
3352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3353 *) . "./$cache_file";;
3354 esac
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3358 $as_echo "$as_me: creating cache $cache_file" >&6;}
3359 >$cache_file
3362 as_fn_append ac_header_list " sys/systeminfo.h"
3363 as_fn_append ac_header_list " coff.h"
3364 as_fn_append ac_header_list " pty.h"
3365 as_fn_append ac_header_list " sys/resource.h"
3366 as_fn_append ac_header_list " sys/utsname.h"
3367 as_fn_append ac_header_list " pwd.h"
3368 as_fn_append ac_header_list " utmp.h"
3369 as_fn_append ac_header_list " util.h"
3370 as_fn_append ac_header_list " sys/socket.h"
3371 as_fn_append ac_header_list " stdlib.h"
3372 as_fn_append ac_header_list " unistd.h"
3373 as_fn_append ac_header_list " sys/param.h"
3374 as_fn_append ac_header_list " pthread.h"
3375 as_fn_append ac_header_list " malloc/malloc.h"
3376 as_fn_append ac_header_list " maillock.h"
3377 as_fn_append ac_header_list " sys/un.h"
3378 as_fn_append ac_func_list " tzset"
3379 as_fn_append ac_func_list " readlinkat"
3380 as_fn_append ac_header_list " dirent.h"
3381 as_fn_append ac_header_list " execinfo.h"
3382 as_fn_append ac_func_list " faccessat"
3383 as_fn_append ac_func_list " fcntl"
3384 as_fn_append ac_func_list " fdopendir"
3385 as_fn_append ac_header_list " stdio_ext.h"
3386 as_fn_append ac_func_list " __fpending"
3387 as_fn_append ac_func_list " fstatat"
3388 as_fn_append ac_func_list " fsync"
3389 gl_getopt_required=GNU
3390 as_fn_append ac_header_list " getopt.h"
3391 as_fn_append ac_func_list " gettimeofday"
3392 as_fn_append ac_func_list " nanotime"
3393 as_fn_append ac_header_list " sys/time.h"
3394 as_fn_append ac_header_list " wchar.h"
3395 as_fn_append ac_header_list " stdint.h"
3396 as_fn_append ac_header_list " inttypes.h"
3397 as_fn_append ac_func_list " lstat"
3398 as_fn_append ac_func_list " mkostemp"
3399 as_fn_append ac_func_list " pipe2"
3400 as_fn_append ac_header_list " sys/select.h"
3401 as_fn_append ac_func_list " pselect"
3402 as_fn_append ac_func_list " pthread_sigmask"
3403 as_fn_append ac_func_list " readlink"
3404 as_fn_append ac_func_list " strtoimax"
3405 as_fn_append ac_func_list " strtoumax"
3406 as_fn_append ac_func_list " symlink"
3407 as_fn_append ac_header_list " sys/stat.h"
3408 as_fn_append ac_func_list " localtime_r"
3409 as_fn_append ac_header_list " utime.h"
3410 as_fn_append ac_func_list " futimes"
3411 as_fn_append ac_func_list " futimesat"
3412 as_fn_append ac_func_list " futimens"
3413 as_fn_append ac_func_list " utimensat"
3414 as_fn_append ac_func_list " lutimes"
3415 as_fn_append ac_func_list " getdtablesize"
3416 as_fn_append ac_func_list " secure_getenv"
3417 # Check that the precious variables saved in the cache have kept the same
3418 # value.
3419 ac_cache_corrupted=false
3420 for ac_var in $ac_precious_vars; do
3421 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3422 eval ac_new_set=\$ac_env_${ac_var}_set
3423 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3424 eval ac_new_val=\$ac_env_${ac_var}_value
3425 case $ac_old_set,$ac_new_set in
3426 set,)
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3428 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3429 ac_cache_corrupted=: ;;
3430 ,set)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3432 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3433 ac_cache_corrupted=: ;;
3434 ,);;
3436 if test "x$ac_old_val" != "x$ac_new_val"; then
3437 # differences in whitespace do not lead to failure.
3438 ac_old_val_w=`echo x $ac_old_val`
3439 ac_new_val_w=`echo x $ac_new_val`
3440 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3442 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3443 ac_cache_corrupted=:
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3446 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3447 eval $ac_var=\$ac_old_val
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3450 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3452 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3453 fi;;
3454 esac
3455 # Pass precious variables to config.status.
3456 if test "$ac_new_set" = set; then
3457 case $ac_new_val in
3458 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3459 *) ac_arg=$ac_var=$ac_new_val ;;
3460 esac
3461 case " $ac_configure_args " in
3462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3463 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3464 esac
3466 done
3467 if $ac_cache_corrupted; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3471 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3472 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3474 ## -------------------- ##
3475 ## Main body of script. ##
3476 ## -------------------- ##
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 emacs_config_options="$@"
3487 ## Add some environment variables, if they were passed via the environment
3488 ## rather than on the command-line.
3489 for var in CFLAGS CPPFLAGS LDFLAGS; do
3490 case "$emacs_config_options" in
3491 *$var=*) continue ;;
3492 esac
3493 eval val="\$${var}"
3494 test x"$val" = x && continue
3495 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3496 done
3498 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3501 ac_aux_dir=
3502 for ac_dir in build-aux "$srcdir"/build-aux; do
3503 for ac_t in install-sh install.sh shtool; do
3504 if test -f "$ac_dir/$ac_t"; then
3505 ac_aux_dir=$ac_dir
3506 ac_install_sh="$ac_aux_dir/$ac_t -c"
3507 break 2
3509 done
3510 done
3511 if test -z "$ac_aux_dir"; then
3512 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3515 # These three variables are undocumented and unsupported,
3516 # and are intended to be withdrawn in a future Autoconf release.
3517 # They can cause serious problems if a builder's source tree is in a directory
3518 # whose full name contains unusual characters.
3519 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3520 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3521 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3524 am__api_version='1.11'
3526 # Find a good install program. We prefer a C program (faster),
3527 # so one script is as good as another. But avoid the broken or
3528 # incompatible versions:
3529 # SysV /etc/install, /usr/sbin/install
3530 # SunOS /usr/etc/install
3531 # IRIX /sbin/install
3532 # AIX /bin/install
3533 # AmigaOS /C/install, which installs bootblocks on floppy discs
3534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537 # OS/2's system install, which has a completely different semantic
3538 # ./install, which can be erroneously created by make from ./install.sh.
3539 # Reject install programs that cannot install multiple files.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3542 if test -z "$INSTALL"; then
3543 if test "${ac_cv_path_install+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 # Account for people who put trailing slashes in PATH elements.
3552 case $as_dir/ in #((
3553 ./ | .// | /[cC]/* | \
3554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3556 /usr/ucb/* ) ;;
3558 # OSF1 and SCO ODT 3.0 have their own names for install.
3559 # Don't use installbsd from OSF since it installs stuff as root
3560 # by default.
3561 for ac_prog in ginstall scoinst install; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564 if test $ac_prog = install &&
3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # AIX install. It has an incompatible calling convention.
3568 elif test $ac_prog = install &&
3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570 # program-specific install script used by HP pwplus--don't use.
3572 else
3573 rm -rf conftest.one conftest.two conftest.dir
3574 echo one > conftest.one
3575 echo two > conftest.two
3576 mkdir conftest.dir
3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578 test -s conftest.one && test -s conftest.two &&
3579 test -s conftest.dir/conftest.one &&
3580 test -s conftest.dir/conftest.two
3581 then
3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3583 break 3
3587 done
3588 done
3590 esac
3592 done
3593 IFS=$as_save_IFS
3595 rm -rf conftest.one conftest.two conftest.dir
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL=$ac_cv_path_install
3600 else
3601 # As a last resort, use the slow shell script. Don't cache a
3602 # value for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the value is a relative name.
3605 INSTALL=$ac_install_sh
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3609 $as_echo "$INSTALL" >&6; }
3611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612 # It thinks the first close brace ends the variable substitution.
3613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3620 $as_echo_n "checking whether build environment is sane... " >&6; }
3621 # Just in case
3622 sleep 1
3623 echo timestamp > conftest.file
3624 # Reject unsafe characters in $srcdir or the absolute working directory
3625 # name. Accept space and tab only in the latter.
3626 am_lf='
3628 case `pwd` in
3629 *[\\\"\#\$\&\'\`$am_lf]*)
3630 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3631 esac
3632 case $srcdir in
3633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3634 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3635 esac
3637 # Do `set' in a subshell so we don't clobber the current shell's
3638 # arguments. Must try -L first in case configure is actually a
3639 # symlink; some systems play weird games with the mod time of symlinks
3640 # (eg FreeBSD returns the mod time of the symlink's containing
3641 # directory).
3642 if (
3643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3644 if test "$*" = "X"; then
3645 # -L didn't work.
3646 set X `ls -t "$srcdir/configure" conftest.file`
3648 rm -f conftest.file
3649 if test "$*" != "X $srcdir/configure conftest.file" \
3650 && test "$*" != "X conftest.file $srcdir/configure"; then
3652 # If neither matched, then we have a broken ls. This can happen
3653 # if, for instance, CONFIG_SHELL is bash and it inherits a
3654 # broken ls alias from the environment. This has actually
3655 # happened. Such a system could not be considered "sane".
3656 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3657 alias in your environment" "$LINENO" 5
3660 test "$2" = conftest.file
3662 then
3663 # Ok.
3665 else
3666 as_fn_error "newly created file is older than distributed files!
3667 Check your system clock" "$LINENO" 5
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 test "$program_prefix" != NONE &&
3672 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3673 # Use a double $ so make ignores it.
3674 test "$program_suffix" != NONE &&
3675 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3676 # Double any \ or $.
3677 # By default was `s,x,x', remove it if useless.
3678 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3679 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3681 # expand $ac_aux_dir to an absolute path
3682 am_aux_dir=`cd $ac_aux_dir && pwd`
3684 if test x"${MISSING+set}" != xset; then
3685 case $am_aux_dir in
3686 *\ * | *\ *)
3687 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3689 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3690 esac
3692 # Use eval to expand $SHELL
3693 if eval "$MISSING --run true"; then
3694 am_missing_run="$MISSING --run "
3695 else
3696 am_missing_run=
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3698 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3701 if test x"${install_sh}" != xset; then
3702 case $am_aux_dir in
3703 *\ * | *\ *)
3704 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3706 install_sh="\${SHELL} $am_aux_dir/install-sh"
3707 esac
3710 # Installed binaries are usually stripped using `strip' when the user
3711 # run `make install-strip'. However `strip' might not be the right
3712 # tool to use in cross-compilation environments, therefore Automake
3713 # will honor the `STRIP' environment variable to overrule this program.
3714 if test "$cross_compiling" != no; then
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}strip; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_STRIP+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 if test -n "$STRIP"; then
3724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3737 done
3738 done
3739 IFS=$as_save_IFS
3743 STRIP=$ac_cv_prog_STRIP
3744 if test -n "$STRIP"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3746 $as_echo "$STRIP" >&6; }
3747 else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3754 if test -z "$ac_cv_prog_STRIP"; then
3755 ac_ct_STRIP=$STRIP
3756 # Extract the first word of "strip", so it can be a program name with args.
3757 set dummy strip; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 if test -n "$ac_ct_STRIP"; then
3764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_ac_ct_STRIP="strip"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3777 done
3778 done
3779 IFS=$as_save_IFS
3783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3784 if test -n "$ac_ct_STRIP"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3786 $as_echo "$ac_ct_STRIP" >&6; }
3787 else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3792 if test "x$ac_ct_STRIP" = x; then
3793 STRIP=":"
3794 else
3795 case $cross_compiling:$ac_tool_warned in
3796 yes:)
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799 ac_tool_warned=yes ;;
3800 esac
3801 STRIP=$ac_ct_STRIP
3803 else
3804 STRIP="$ac_cv_prog_STRIP"
3808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3812 if test -z "$MKDIR_P"; then
3813 if test "${ac_cv_path_mkdir+set}" = set; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_prog in mkdir gmkdir; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3824 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3825 'mkdir (GNU coreutils) '* | \
3826 'mkdir (coreutils) '* | \
3827 'mkdir (fileutils) '4.1*)
3828 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3829 break 3;;
3830 esac
3831 done
3832 done
3833 done
3834 IFS=$as_save_IFS
3838 test -d ./--version && rmdir ./--version
3839 if test "${ac_cv_path_mkdir+set}" = set; then
3840 MKDIR_P="$ac_cv_path_mkdir -p"
3841 else
3842 # As a last resort, use the slow shell script. Don't cache a
3843 # value for MKDIR_P within a source directory, because that will
3844 # break other packages using the cache if that directory is
3845 # removed, or if the value is a relative name.
3846 MKDIR_P="$ac_install_sh -d"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3850 $as_echo "$MKDIR_P" >&6; }
3852 mkdir_p="$MKDIR_P"
3853 case $mkdir_p in
3854 [\\/$]* | ?:[\\/]*) ;;
3855 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3856 esac
3858 for ac_prog in gawk mawk nawk awk
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if test "${ac_cv_prog_AWK+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
3866 else
3867 if test -n "$AWK"; then
3868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_AWK="$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3881 done
3882 done
3883 IFS=$as_save_IFS
3887 AWK=$ac_cv_prog_AWK
3888 if test -n "$AWK"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3890 $as_echo "$AWK" >&6; }
3891 else
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3897 test -n "$AWK" && break
3898 done
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3902 set x ${MAKE-make}
3903 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3904 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 cat >conftest.make <<\_ACEOF
3908 SHELL = /bin/sh
3909 all:
3910 @echo '@@@%%%=$(MAKE)=@@@%%%'
3911 _ACEOF
3912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3914 *@@@%%%=?*=@@@%%%*)
3915 eval ac_cv_prog_make_${ac_make}_set=yes;;
3917 eval ac_cv_prog_make_${ac_make}_set=no;;
3918 esac
3919 rm -f conftest.make
3921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3924 SET_MAKE=
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 SET_MAKE="MAKE=${MAKE-make}"
3931 rm -rf .tst 2>/dev/null
3932 mkdir .tst 2>/dev/null
3933 if test -d .tst; then
3934 am__leading_dot=.
3935 else
3936 am__leading_dot=_
3938 rmdir .tst 2>/dev/null
3940 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3941 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3942 # is not polluted with repeated "-I."
3943 am__isrc=' -I$(srcdir)'
3944 # test to see if srcdir already configured
3945 if test -f $srcdir/config.status; then
3946 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3950 # test whether we have cygpath
3951 if test -z "$CYGPATH_W"; then
3952 if (cygpath --version) >/dev/null 2>/dev/null; then
3953 CYGPATH_W='cygpath -w'
3954 else
3955 CYGPATH_W=echo
3960 # Define the identity of the package.
3961 PACKAGE='emacs'
3962 VERSION='24.3.50'
3965 cat >>confdefs.h <<_ACEOF
3966 #define PACKAGE "$PACKAGE"
3967 _ACEOF
3970 cat >>confdefs.h <<_ACEOF
3971 #define VERSION "$VERSION"
3972 _ACEOF
3974 # Some tools Automake needs.
3976 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3979 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3982 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3985 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3988 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3990 # We need awk for the "check" target. The system "awk" is bad on
3991 # some platforms.
3992 # Always define AMTAR for backward compatibility.
3994 AMTAR=${AMTAR-"${am_missing_run}tar"}
3996 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4005 lispdir='${datadir}/emacs/${version}/lisp'
4006 leimdir='${datadir}/emacs/${version}/leim'
4007 standardlisppath='${lispdir}:${leimdir}'
4008 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
4009 '${datadir}/emacs/site-lisp'
4010 lisppath='${locallisppath}:${standardlisppath}'
4011 etcdir='${datadir}/emacs/${version}/etc'
4012 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4013 docdir='${datadir}/emacs/${version}/etc'
4014 gamedir='${localstatedir}/games/emacs'
4017 # Check whether --with-all was given.
4018 if test "${with_all+set}" = set; then :
4019 withval=$with_all; with_features=$withval
4020 else
4021 with_features=yes
4028 # Check whether --with-pop was given.
4029 if test "${with_pop+set}" = set; then :
4030 withval=$with_pop;
4031 else
4032 with_pop=$with_features
4035 if test "$with_pop" = yes; then
4036 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4041 # Check whether --with-kerberos was given.
4042 if test "${with_kerberos+set}" = set; then :
4043 withval=$with_kerberos;
4044 else
4045 with_kerberos=no
4048 if test "$with_kerberos" != no; then
4049 $as_echo "#define KERBEROS 1" >>confdefs.h
4054 # Check whether --with-kerberos5 was given.
4055 if test "${with_kerberos5+set}" = set; then :
4056 withval=$with_kerberos5;
4057 else
4058 with_kerberos5=no
4061 if test "${with_kerberos5}" != no; then
4062 if test "${with_kerberos}" = no; then
4063 with_kerberos=yes
4064 $as_echo "#define KERBEROS 1" >>confdefs.h
4068 $as_echo "#define KERBEROS5 1" >>confdefs.h
4073 # Check whether --with-hesiod was given.
4074 if test "${with_hesiod+set}" = set; then :
4075 withval=$with_hesiod;
4076 else
4077 with_hesiod=no
4080 if test "$with_hesiod" != no; then
4082 $as_echo "#define HESIOD 1" >>confdefs.h
4087 # Check whether --with-mmdf was given.
4088 if test "${with_mmdf+set}" = set; then :
4089 withval=$with_mmdf;
4090 else
4091 with_mmdf=no
4094 if test "$with_mmdf" != no; then
4096 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4101 # Check whether --with-mail-unlink was given.
4102 if test "${with_mail_unlink+set}" = set; then :
4103 withval=$with_mail_unlink;
4104 else
4105 with_mail_unlink=no
4108 if test "$with_mail_unlink" != no; then
4110 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4115 # Check whether --with-mailhost was given.
4116 if test "${with_mailhost+set}" = set; then :
4117 withval=$with_mailhost;
4118 cat >>confdefs.h <<_ACEOF
4119 #define MAILHOST "$withval"
4120 _ACEOF
4126 # Check whether --with-sound was given.
4127 if test "${with_sound+set}" = set; then :
4128 withval=$with_sound; case "${withval}" in
4129 yes|no|ossaudio|alsa) val=$withval ;;
4130 *) as_fn_error "\`--with-sound=$withval' is invalid;
4131 this option's value should be \`yes', \`no', \`ossaudio', or \`alsa'." "$LINENO" 5
4133 esac
4134 with_sound=$val
4136 else
4137 with_sound=$with_features
4142 # Check whether --with-x-toolkit was given.
4143 if test "${with_x_toolkit+set}" = set; then :
4144 withval=$with_x_toolkit; case "${withval}" in
4145 y | ye | yes ) val=gtk ;;
4146 n | no ) val=no ;;
4147 l | lu | luc | luci | lucid ) val=lucid ;;
4148 a | at | ath | athe | athen | athena ) val=athena ;;
4149 m | mo | mot | moti | motif ) val=motif ;;
4150 g | gt | gtk ) val=gtk ;;
4151 gtk2 ) val=gtk2 ;;
4152 gtk3 ) val=gtk3 ;;
4154 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4155 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4156 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4157 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4159 esac
4160 with_x_toolkit=$val
4166 # Check whether --with-wide-int was given.
4167 if test "${with_wide_int+set}" = set; then :
4168 withval=$with_wide_int;
4169 else
4170 with_wide_int=no
4173 if test "$with_wide_int" = yes; then
4175 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4180 # Check whether --with-xpm was given.
4181 if test "${with_xpm+set}" = set; then :
4182 withval=$with_xpm;
4183 else
4184 with_xpm=$with_features
4188 # Check whether --with-jpeg was given.
4189 if test "${with_jpeg+set}" = set; then :
4190 withval=$with_jpeg;
4191 else
4192 with_jpeg=$with_features
4196 # Check whether --with-tiff was given.
4197 if test "${with_tiff+set}" = set; then :
4198 withval=$with_tiff;
4199 else
4200 with_tiff=$with_features
4204 # Check whether --with-gif was given.
4205 if test "${with_gif+set}" = set; then :
4206 withval=$with_gif;
4207 else
4208 with_gif=$with_features
4212 # Check whether --with-png was given.
4213 if test "${with_png+set}" = set; then :
4214 withval=$with_png;
4215 else
4216 with_png=$with_features
4220 # Check whether --with-rsvg was given.
4221 if test "${with_rsvg+set}" = set; then :
4222 withval=$with_rsvg;
4223 else
4224 with_rsvg=$with_features
4228 # Check whether --with-xml2 was given.
4229 if test "${with_xml2+set}" = set; then :
4230 withval=$with_xml2;
4231 else
4232 with_xml2=$with_features
4236 # Check whether --with-imagemagick was given.
4237 if test "${with_imagemagick+set}" = set; then :
4238 withval=$with_imagemagick;
4239 else
4240 with_imagemagick=$with_features
4245 # Check whether --with-xft was given.
4246 if test "${with_xft+set}" = set; then :
4247 withval=$with_xft;
4248 else
4249 with_xft=$with_features
4253 # Check whether --with-libotf was given.
4254 if test "${with_libotf+set}" = set; then :
4255 withval=$with_libotf;
4256 else
4257 with_libotf=$with_features
4261 # Check whether --with-m17n-flt was given.
4262 if test "${with_m17n_flt+set}" = set; then :
4263 withval=$with_m17n_flt;
4264 else
4265 with_m17n_flt=$with_features
4270 # Check whether --with-toolkit-scroll-bars was given.
4271 if test "${with_toolkit_scroll_bars+set}" = set; then :
4272 withval=$with_toolkit_scroll_bars;
4273 else
4274 with_toolkit_scroll_bars=$with_features
4278 # Check whether --with-xaw3d was given.
4279 if test "${with_xaw3d+set}" = set; then :
4280 withval=$with_xaw3d;
4281 else
4282 with_xaw3d=$with_features
4286 # Check whether --with-xim was given.
4287 if test "${with_xim+set}" = set; then :
4288 withval=$with_xim;
4289 else
4290 with_xim=$with_features
4294 # Check whether --with-ns was given.
4295 if test "${with_ns+set}" = set; then :
4296 withval=$with_ns;
4297 else
4298 with_ns=no
4302 # Check whether --with-w32 was given.
4303 if test "${with_w32+set}" = set; then :
4304 withval=$with_w32;
4305 else
4306 with_w32=no
4311 # Check whether --with-gpm was given.
4312 if test "${with_gpm+set}" = set; then :
4313 withval=$with_gpm;
4314 else
4315 with_gpm=$with_features
4319 # Check whether --with-dbus was given.
4320 if test "${with_dbus+set}" = set; then :
4321 withval=$with_dbus;
4322 else
4323 with_dbus=$with_features
4327 # Check whether --with-gconf was given.
4328 if test "${with_gconf+set}" = set; then :
4329 withval=$with_gconf;
4330 else
4331 with_gconf=$with_features
4335 # Check whether --with-gsettings was given.
4336 if test "${with_gsettings+set}" = set; then :
4337 withval=$with_gsettings;
4338 else
4339 with_gsettings=$with_features
4343 # Check whether --with-selinux was given.
4344 if test "${with_selinux+set}" = set; then :
4345 withval=$with_selinux;
4346 else
4347 with_selinux=$with_features
4351 # Check whether --with-gnutls was given.
4352 if test "${with_gnutls+set}" = set; then :
4353 withval=$with_gnutls;
4354 else
4355 with_gnutls=$with_features
4360 # Check whether --with-file-notification was given.
4361 if test "${with_file_notification+set}" = set; then :
4362 withval=$with_file_notification; case "${withval}" in
4363 y | ye | yes ) val=yes ;;
4364 n | no ) val=no ;;
4365 g | gf | gfi | gfil | gfile ) val=gfile ;;
4366 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4367 w | w3 | w32 ) val=w32 ;;
4368 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4369 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4370 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4371 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4373 esac
4374 with_file_notification=$val
4376 else
4377 with_file_notification=$with_features
4381 ## For the times when you want to build Emacs but don't have
4382 ## a suitable makeinfo, and can live without the manuals.
4384 # Check whether --with-makeinfo was given.
4385 if test "${with_makeinfo+set}" = set; then :
4386 withval=$with_makeinfo;
4387 else
4388 with_makeinfo=$with_features
4392 ## Makefile.in needs the cache file name.
4395 ## This is an option because I do not know if all info/man support
4396 ## compressed files, nor how to test if they do so.
4398 # Check whether --with-compress-info was given.
4399 if test "${with_compress_info+set}" = set; then :
4400 withval=$with_compress_info;
4401 else
4402 with_compress_info=$with_features
4405 if test $with_compress_info = yes; then
4406 GZIP_INFO=yes
4407 else
4408 GZIP_INFO=
4413 # Check whether --with-pkg-config-prog was given.
4414 if test "${with_pkg_config_prog+set}" = set; then :
4415 withval=$with_pkg_config_prog;
4418 if test "X${with_pkg_config_prog}" != X; then
4419 if test "${with_pkg_config_prog}" != yes; then
4420 PKG_CONFIG="${with_pkg_config_prog}"
4425 # Check whether --with-gameuser was given.
4426 if test "${with_gameuser+set}" = set; then :
4427 withval=$with_gameuser;
4430 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4431 && gameuser="${with_gameuser}"
4432 test "X$gameuser" = X && gameuser=games
4435 # Check whether --with-gnustep-conf was given.
4436 if test "${with_gnustep_conf+set}" = set; then :
4437 withval=$with_gnustep_conf;
4440 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4441 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4442 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4443 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4445 # Check whether --enable-ns-self-contained was given.
4446 if test "${enable_ns_self_contained+set}" = set; then :
4447 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4448 else
4449 EN_NS_SELF_CONTAINED=yes
4453 # Check whether --enable-locallisppath was given.
4454 if test "${enable_locallisppath+set}" = set; then :
4455 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4456 locallisppath=
4457 elif test "${enableval}" != "yes"; then
4458 locallisppath=${enableval}
4463 # Check whether --enable-checking was given.
4464 if test "${enable_checking+set}" = set; then :
4465 enableval=$enable_checking; ac_checking_flags="${enableval}"
4468 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4469 for check in $ac_checking_flags
4471 case $check in
4472 # these set all the flags to specific states
4473 yes) ac_enable_checking=1 ;;
4474 no) ac_enable_checking= ;
4475 ac_gc_check_stringbytes= ;
4476 ac_gc_check_string_overrun= ;
4477 ac_gc_check_string_free_list= ;
4478 ac_xmalloc_overrun= ;
4479 ac_gc_check_cons_list= ;
4480 ac_glyphs_debug= ;;
4481 all) ac_enable_checking=1 ;
4482 ac_gc_check_stringbytes=1 ;
4483 ac_gc_check_string_overrun=1 ;
4484 ac_gc_check_string_free_list=1 ;
4485 ac_xmalloc_overrun=1 ;
4486 ac_gc_check_cons_list=1 ;
4487 ac_glyphs_debug=1 ;;
4488 # these enable particular checks
4489 stringbytes) ac_gc_check_stringbytes=1 ;;
4490 stringoverrun) ac_gc_check_string_overrun=1 ;;
4491 stringfreelist) ac_gc_check_string_free_list=1 ;;
4492 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4493 conslist) ac_gc_check_cons_list=1 ;;
4494 glyphs) ac_glyphs_debug=1 ;;
4495 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4496 esac
4497 done
4498 IFS="$ac_save_IFS"
4500 if test x$ac_enable_checking != x ; then
4502 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4505 if test x$ac_gc_check_stringbytes != x ; then
4507 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4510 if test x$ac_gc_check_string_overrun != x ; then
4512 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4515 if test x$ac_gc_check_string_free_list != x ; then
4517 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4520 if test x$ac_xmalloc_overrun != x ; then
4522 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4525 if test x$ac_gc_check_cons_list != x ; then
4527 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4530 if test x$ac_glyphs_debug != x ; then
4532 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4536 # Check whether --enable-check-lisp-object-type was given.
4537 if test "${enable_check_lisp_object_type+set}" = set; then :
4538 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4540 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4547 # Check whether --enable-profiling was given.
4548 if test "${enable_profiling+set}" = set; then :
4549 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4552 if test x$ac_enable_profiling != x ; then
4553 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4554 else
4555 PROFILING_CFLAGS=
4559 # Check whether --enable-autodepend was given.
4560 if test "${enable_autodepend+set}" = set; then :
4561 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4562 else
4563 ac_enable_autodepend=yes
4567 # Check whether --enable-gtk-deprecation-warnings was given.
4568 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4569 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4573 #### Make srcdir absolute, if it isn't already. It's important to
4574 #### avoid running the file name through pwd unnecessarily, since pwd can
4575 #### give you automounter prefixes, which can go away. We do all this
4576 #### so Emacs can find its files when run uninstalled.
4577 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4578 unset CDPATH
4579 case "${srcdir}" in
4580 [\\/]* | ?:[\\/]*) ;;
4582 ## We may be able to use the $PWD environment variable to make this
4583 ## absolute. But sometimes PWD is inaccurate.
4584 ## Note: we used to use $PWD at the end instead of `pwd`,
4585 ## but that tested only for a well-formed and valid PWD,
4586 ## it did not object when PWD was well-formed and valid but just wrong.
4587 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4588 then
4589 srcdir="$PWD"
4590 else
4591 srcdir=`(cd "$srcdir"; pwd)`
4594 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4595 esac
4597 ### Canonicalize the configuration name.
4599 # Make sure we can run config.sub.
4600 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4601 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4604 $as_echo_n "checking build system type... " >&6; }
4605 if test "${ac_cv_build+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 ac_build_alias=$build_alias
4609 test "x$ac_build_alias" = x &&
4610 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4611 test "x$ac_build_alias" = x &&
4612 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4613 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4614 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4618 $as_echo "$ac_cv_build" >&6; }
4619 case $ac_cv_build in
4620 *-*-*) ;;
4621 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4622 esac
4623 build=$ac_cv_build
4624 ac_save_IFS=$IFS; IFS='-'
4625 set x $ac_cv_build
4626 shift
4627 build_cpu=$1
4628 build_vendor=$2
4629 shift; shift
4630 # Remember, the first character of IFS is used to create $*,
4631 # except with old shells:
4632 build_os=$*
4633 IFS=$ac_save_IFS
4634 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4638 $as_echo_n "checking host system type... " >&6; }
4639 if test "${ac_cv_host+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test "x$host_alias" = x; then
4643 ac_cv_host=$ac_cv_build
4644 else
4645 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4646 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4651 $as_echo "$ac_cv_host" >&6; }
4652 case $ac_cv_host in
4653 *-*-*) ;;
4654 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4655 esac
4656 host=$ac_cv_host
4657 ac_save_IFS=$IFS; IFS='-'
4658 set x $ac_cv_host
4659 shift
4660 host_cpu=$1
4661 host_vendor=$2
4662 shift; shift
4663 # Remember, the first character of IFS is used to create $*,
4664 # except with old shells:
4665 host_os=$*
4666 IFS=$ac_save_IFS
4667 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4670 canonical=$host
4671 configuration=${host_alias-${build_alias-$host}}
4675 ### If you add support for a new configuration, add code to this
4676 ### switch statement to recognize your configuration name and select
4677 ### the appropriate operating system file.
4679 ### You would hope that you could choose an s/*.h
4680 ### file based on the operating system portion. However, it turns out
4681 ### that each s/*.h file is pretty manufacturer-specific.
4682 ### So we basically have to have a special case for each
4683 ### configuration name.
4685 ### As far as handling version numbers on operating systems is
4686 ### concerned, make sure things will fail in a fixable way. If
4687 ### /etc/MACHINES doesn't say anything about version numbers, be
4688 ### prepared to handle anything reasonably. If version numbers
4689 ### matter, be sure /etc/MACHINES says something about it.
4691 opsys='' unported=no
4692 case "${canonical}" in
4694 ## GNU/Linux and similar ports
4695 *-*-linux* )
4696 opsys=gnu-linux
4699 ## FreeBSD ports
4700 *-*-freebsd* )
4701 opsys=freebsd
4704 ## DragonFly ports
4705 *-*-dragonfly* )
4706 opsys=dragonfly
4709 ## FreeBSD kernel + glibc based userland
4710 *-*-kfreebsd*gnu* )
4711 opsys=gnu-kfreebsd
4714 ## NetBSD ports
4715 *-*-netbsd* )
4716 opsys=netbsd
4719 ## OpenBSD ports
4720 *-*-openbsd* )
4721 opsys=openbsd
4724 ## Apple Darwin / Mac OS X
4725 *-apple-darwin* )
4726 case "${canonical}" in
4727 i[3456]86-* ) ;;
4728 powerpc-* ) ;;
4729 x86_64-* ) ;;
4730 * ) unported=yes ;;
4731 esac
4732 opsys=darwin
4733 ## Use fink packages if available.
4734 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4735 ## if test -d /sw/include && test -d /sw/lib; then
4736 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4737 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4738 ## fi
4741 ## Cygwin ports
4742 *-*-cygwin )
4743 opsys=cygwin
4746 ## HP 9000 series 700 and 800, running HP/UX
4747 hppa*-hp-hpux10.2* )
4748 opsys=hpux10-20
4750 hppa*-hp-hpux1[1-9]* )
4751 opsys=hpux11
4752 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4755 ## IBM machines
4756 rs6000-ibm-aix4.[23]* )
4757 opsys=aix4-2
4759 powerpc-ibm-aix4.[23]* )
4760 opsys=aix4-2
4762 rs6000-ibm-aix[56]* )
4763 opsys=aix4-2
4765 powerpc-ibm-aix[56]* )
4766 opsys=aix4-2
4769 ## Silicon Graphics machines
4770 ## Iris 4D
4771 mips-sgi-irix6.5 )
4772 opsys=irix6-5
4773 # Without defining _LANGUAGE_C, things get masked out in the headers
4774 # so that, for instance, grepping for `free' in stdlib.h fails and
4775 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4776 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4779 ## Suns
4780 *-sun-solaris* \
4781 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4782 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4783 case "${canonical}" in
4784 i[3456]86-*-* ) ;;
4785 amd64-*-*|x86_64-*-*) ;;
4786 sparc* ) ;;
4787 * ) unported=yes ;;
4788 esac
4789 case "${canonical}" in
4790 *-sunos5.6* | *-solaris2.6* )
4791 opsys=sol2-6
4792 RANLIB="ar -ts"
4794 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4795 opsys=sol2-6
4796 emacs_check_sunpro_c=yes
4798 *-sunos5* | *-solaris* )
4799 opsys=sol2-10
4800 emacs_check_sunpro_c=yes
4802 esac
4803 ## Watch out for a compiler that we know will not work.
4804 case "${canonical}" in
4805 *-solaris* | *-sunos5* )
4806 if [ "x$CC" = x/usr/ucb/cc ]; then
4807 ## /usr/ucb/cc doesn't work;
4808 ## we should find some other compiler that does work.
4809 unset CC
4812 *) ;;
4813 esac
4816 ## Intel 386 machines where we don't care about the manufacturer.
4817 i[3456]86-*-* )
4818 case "${canonical}" in
4819 *-darwin* ) opsys=darwin ;;
4820 *-mingw32 )
4821 opsys=mingw32
4822 # MinGW overrides and adds some system headers in nt/inc.
4823 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4825 *-sysv4.2uw* ) opsys=unixware ;;
4826 *-sysv5uw* ) opsys=unixware ;;
4827 *-sysv5OpenUNIX* ) opsys=unixware ;;
4828 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4829 esac
4833 unported=yes
4835 esac
4837 ### If the code above didn't choose an operating system, just choose
4838 ### an operating system based on the configuration name. You really
4839 ### only want to use this when you have no idea what the right
4840 ### operating system is; if you know what operating systems a machine
4841 ### runs, it's cleaner to make it explicit in the case statement
4842 ### above.
4843 if test x"${opsys}" = x; then
4844 case "${canonical}" in
4845 *-gnu* ) opsys=gnu ;;
4847 unported=yes
4849 esac
4854 if test $unported = yes; then
4855 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4856 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4860 #### Choose a compiler.
4862 ac_ext=c
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867 if test -n "$ac_tool_prefix"; then
4868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_CC+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$CC"; then
4876 ac_cv_prog_CC="$CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 CC=$ac_cv_prog_CC
4896 if test -n "$CC"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4898 $as_echo "$CC" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4906 if test -z "$ac_cv_prog_CC"; then
4907 ac_ct_CC=$CC
4908 # Extract the first word of "gcc", so it can be a program name with args.
4909 set dummy gcc; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$ac_ct_CC"; then
4916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_prog_ac_ct_CC="gcc"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4931 IFS=$as_save_IFS
4935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4936 if test -n "$ac_ct_CC"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4938 $as_echo "$ac_ct_CC" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4944 if test "x$ac_ct_CC" = x; then
4945 CC=""
4946 else
4947 case $cross_compiling:$ac_tool_warned in
4948 yes:)
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4951 ac_tool_warned=yes ;;
4952 esac
4953 CC=$ac_ct_CC
4955 else
4956 CC="$ac_cv_prog_CC"
4959 if test -z "$CC"; then
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}cc; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if test "${ac_cv_prog_CC+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$CC"; then
4969 ac_cv_prog_CC="$CC" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_CC="${ac_tool_prefix}cc"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 CC=$ac_cv_prog_CC
4989 if test -n "$CC"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4991 $as_echo "$CC" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
5000 if test -z "$CC"; then
5001 # Extract the first word of "cc", so it can be a program name with args.
5002 set dummy cc; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_CC+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$CC"; then
5009 ac_cv_prog_CC="$CC" # Let the user override the test.
5010 else
5011 ac_prog_rejected=no
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5020 ac_prog_rejected=yes
5021 continue
5023 ac_cv_prog_CC="cc"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5029 IFS=$as_save_IFS
5031 if test $ac_prog_rejected = yes; then
5032 # We found a bogon in the path, so make sure we never use it.
5033 set dummy $ac_cv_prog_CC
5034 shift
5035 if test $# != 0; then
5036 # We chose a different compiler from the bogus one.
5037 # However, it has the same basename, so the bogon will be chosen
5038 # first if we set CC to just the basename; use the full file name.
5039 shift
5040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5045 CC=$ac_cv_prog_CC
5046 if test -n "$CC"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5048 $as_echo "$CC" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5056 if test -z "$CC"; then
5057 if test -n "$ac_tool_prefix"; then
5058 for ac_prog in cl.exe
5060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if test "${ac_cv_prog_CC+set}" = set; then :
5065 $as_echo_n "(cached) " >&6
5066 else
5067 if test -n "$CC"; then
5068 ac_cv_prog_CC="$CC" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 CC=$ac_cv_prog_CC
5088 if test -n "$CC"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5090 $as_echo "$CC" >&6; }
5091 else
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5097 test -n "$CC" && break
5098 done
5100 if test -z "$CC"; then
5101 ac_ct_CC=$CC
5102 for ac_prog in cl.exe
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105 set dummy $ac_prog; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_CC="$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5134 $as_echo "$ac_ct_CC" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 test -n "$ac_ct_CC" && break
5142 done
5144 if test "x$ac_ct_CC" = x; then
5145 CC=""
5146 else
5147 case $cross_compiling:$ac_tool_warned in
5148 yes:)
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5151 ac_tool_warned=yes ;;
5152 esac
5153 CC=$ac_ct_CC
5160 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5162 as_fn_error "no acceptable C compiler found in \$PATH
5163 See \`config.log' for more details." "$LINENO" 5; }
5165 # Provide some information about the compiler.
5166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5167 set X $ac_compile
5168 ac_compiler=$2
5169 for ac_option in --version -v -V -qversion; do
5170 { { ac_try="$ac_compiler $ac_option >&5"
5171 case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5176 $as_echo "$ac_try_echo"; } >&5
5177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5178 ac_status=$?
5179 if test -s conftest.err; then
5180 sed '10a\
5181 ... rest of stderr output deleted ...
5182 10q' conftest.err >conftest.er1
5183 cat conftest.er1 >&5
5185 rm -f conftest.er1 conftest.err
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }
5188 done
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5194 main ()
5198 return 0;
5200 _ACEOF
5201 ac_clean_files_save=$ac_clean_files
5202 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5203 # Try to create an executable without -o first, disregard a.out.
5204 # It will help us diagnose broken compilers, and finding out an intuition
5205 # of exeext.
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5207 $as_echo_n "checking whether the C compiler works... " >&6; }
5208 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5210 # The possible output files:
5211 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5213 ac_rmfiles=
5214 for ac_file in $ac_files
5216 case $ac_file in
5217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5218 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5219 esac
5220 done
5221 rm -f $ac_rmfiles
5223 if { { ac_try="$ac_link_default"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5229 $as_echo "$ac_try_echo"; } >&5
5230 (eval "$ac_link_default") 2>&5
5231 ac_status=$?
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; }; then :
5234 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5235 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5236 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5237 # so that the user can short-circuit this test for compilers unknown to
5238 # Autoconf.
5239 for ac_file in $ac_files ''
5241 test -f "$ac_file" || continue
5242 case $ac_file in
5243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5245 [ab].out )
5246 # We found the default executable, but exeext='' is most
5247 # certainly right.
5248 break;;
5249 *.* )
5250 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5251 then :; else
5252 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5254 # We set ac_cv_exeext here because the later test for it is not
5255 # safe: cross compilers may not add the suffix if given an `-o'
5256 # argument, so we may need to know it at that point already.
5257 # Even if this section looks crufty: it has the advantage of
5258 # actually working.
5259 break;;
5261 break;;
5262 esac
5263 done
5264 test "$ac_cv_exeext" = no && ac_cv_exeext=
5266 else
5267 ac_file=''
5269 if test -z "$ac_file"; then :
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5277 { as_fn_set_status 77
5278 as_fn_error "C compiler cannot create executables
5279 See \`config.log' for more details." "$LINENO" 5; }; }
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5282 $as_echo "yes" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5285 $as_echo_n "checking for C compiler default output file name... " >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5287 $as_echo "$ac_file" >&6; }
5288 ac_exeext=$ac_cv_exeext
5290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5291 ac_clean_files=$ac_clean_files_save
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5293 $as_echo_n "checking for suffix of executables... " >&6; }
5294 if { { ac_try="$ac_link"
5295 case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298 esac
5299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5300 $as_echo "$ac_try_echo"; } >&5
5301 (eval "$ac_link") 2>&5
5302 ac_status=$?
5303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5304 test $ac_status = 0; }; then :
5305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5307 # work properly (i.e., refer to `conftest.exe'), while it won't with
5308 # `rm'.
5309 for ac_file in conftest.exe conftest conftest.*; do
5310 test -f "$ac_file" || continue
5311 case $ac_file in
5312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5314 break;;
5315 * ) break;;
5316 esac
5317 done
5318 else
5319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5321 as_fn_error "cannot compute suffix of executables: cannot compile and link
5322 See \`config.log' for more details." "$LINENO" 5; }
5324 rm -f conftest conftest$ac_cv_exeext
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5326 $as_echo "$ac_cv_exeext" >&6; }
5328 rm -f conftest.$ac_ext
5329 EXEEXT=$ac_cv_exeext
5330 ac_exeext=$EXEEXT
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #include <stdio.h>
5335 main ()
5337 FILE *f = fopen ("conftest.out", "w");
5338 return ferror (f) || fclose (f) != 0;
5341 return 0;
5343 _ACEOF
5344 ac_clean_files="$ac_clean_files conftest.out"
5345 # Check that the compiler produces executables we can run. If not, either
5346 # the compiler is broken, or we cross compile.
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5348 $as_echo_n "checking whether we are cross compiling... " >&6; }
5349 if test "$cross_compiling" != yes; then
5350 { { ac_try="$ac_link"
5351 case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354 esac
5355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5356 $as_echo "$ac_try_echo"; } >&5
5357 (eval "$ac_link") 2>&5
5358 ac_status=$?
5359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5360 test $ac_status = 0; }
5361 if { ac_try='./conftest$ac_cv_exeext'
5362 { { case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365 esac
5366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5367 $as_echo "$ac_try_echo"; } >&5
5368 (eval "$ac_try") 2>&5
5369 ac_status=$?
5370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371 test $ac_status = 0; }; }; then
5372 cross_compiling=no
5373 else
5374 if test "$cross_compiling" = maybe; then
5375 cross_compiling=yes
5376 else
5377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5379 as_fn_error "cannot run C compiled programs.
5380 If you meant to cross compile, use \`--host'.
5381 See \`config.log' for more details." "$LINENO" 5; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5386 $as_echo "$cross_compiling" >&6; }
5388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5389 ac_clean_files=$ac_clean_files_save
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5391 $as_echo_n "checking for suffix of object files... " >&6; }
5392 if test "${ac_cv_objext+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5399 main ()
5403 return 0;
5405 _ACEOF
5406 rm -f conftest.o conftest.obj
5407 if { { ac_try="$ac_compile"
5408 case "(($ac_try" in
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5411 esac
5412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5413 $as_echo "$ac_try_echo"; } >&5
5414 (eval "$ac_compile") 2>&5
5415 ac_status=$?
5416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5417 test $ac_status = 0; }; then :
5418 for ac_file in conftest.o conftest.obj conftest.*; do
5419 test -f "$ac_file" || continue;
5420 case $ac_file in
5421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5423 break;;
5424 esac
5425 done
5426 else
5427 $as_echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5432 as_fn_error "cannot compute suffix of object files: cannot compile
5433 See \`config.log' for more details." "$LINENO" 5; }
5435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5438 $as_echo "$ac_cv_objext" >&6; }
5439 OBJEXT=$ac_cv_objext
5440 ac_objext=$OBJEXT
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5443 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5450 main ()
5452 #ifndef __GNUC__
5453 choke me
5454 #endif
5457 return 0;
5459 _ACEOF
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461 ac_compiler_gnu=yes
5462 else
5463 ac_compiler_gnu=no
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5471 if test $ac_compiler_gnu = yes; then
5472 GCC=yes
5473 else
5474 GCC=
5476 ac_test_CFLAGS=${CFLAGS+set}
5477 ac_save_CFLAGS=$CFLAGS
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5480 if test "${ac_cv_prog_cc_g+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 ac_save_c_werror_flag=$ac_c_werror_flag
5484 ac_c_werror_flag=yes
5485 ac_cv_prog_cc_g=no
5486 CFLAGS="-g"
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5491 main ()
5495 return 0;
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499 ac_cv_prog_cc_g=yes
5500 else
5501 CFLAGS=""
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h. */
5506 main ()
5510 return 0;
5512 _ACEOF
5513 if ac_fn_c_try_compile "$LINENO"; then :
5515 else
5516 ac_c_werror_flag=$ac_save_c_werror_flag
5517 CFLAGS="-g"
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5522 main ()
5526 return 0;
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"; then :
5530 ac_cv_prog_cc_g=yes
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 ac_c_werror_flag=$ac_save_c_werror_flag
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5540 $as_echo "$ac_cv_prog_cc_g" >&6; }
5541 if test "$ac_test_CFLAGS" = set; then
5542 CFLAGS=$ac_save_CFLAGS
5543 elif test $ac_cv_prog_cc_g = yes; then
5544 if test "$GCC" = yes; then
5545 CFLAGS="-g -O2"
5546 else
5547 CFLAGS="-g"
5549 else
5550 if test "$GCC" = yes; then
5551 CFLAGS="-O2"
5552 else
5553 CFLAGS=
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5558 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 ac_cv_prog_cc_c89=no
5562 ac_save_CC=$CC
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 #include <stdarg.h>
5566 #include <stdio.h>
5567 #include <sys/types.h>
5568 #include <sys/stat.h>
5569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5570 struct buf { int x; };
5571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5572 static char *e (p, i)
5573 char **p;
5574 int i;
5576 return p[i];
5578 static char *f (char * (*g) (char **, int), char **p, ...)
5580 char *s;
5581 va_list v;
5582 va_start (v,p);
5583 s = g (p, va_arg (v,int));
5584 va_end (v);
5585 return s;
5588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5589 function prototypes and stuff, but not '\xHH' hex character constants.
5590 These don't provoke an error unfortunately, instead are silently treated
5591 as 'x'. The following induces an error, until -std is added to get
5592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5593 array size at least. It's necessary to write '\x00'==0 to get something
5594 that's true only with -std. */
5595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5598 inside strings and character constants. */
5599 #define FOO(x) 'x'
5600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5602 int test (int i, double x);
5603 struct s1 {int (*f) (int a);};
5604 struct s2 {int (*f) (double a);};
5605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5606 int argc;
5607 char **argv;
5609 main ()
5611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5613 return 0;
5615 _ACEOF
5616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5619 CC="$ac_save_CC $ac_arg"
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_prog_cc_c89=$ac_arg
5623 rm -f core conftest.err conftest.$ac_objext
5624 test "x$ac_cv_prog_cc_c89" != "xno" && break
5625 done
5626 rm -f conftest.$ac_ext
5627 CC=$ac_save_CC
5630 # AC_CACHE_VAL
5631 case "x$ac_cv_prog_cc_c89" in
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5634 $as_echo "none needed" >&6; } ;;
5635 xno)
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5637 $as_echo "unsupported" >&6; } ;;
5639 CC="$CC $ac_cv_prog_cc_c89"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5642 esac
5643 if test "x$ac_cv_prog_cc_c89" != xno; then :
5647 ac_ext=c
5648 ac_cpp='$CPP $CPPFLAGS'
5649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5652 DEPDIR="${am__leading_dot}deps"
5654 ac_config_commands="$ac_config_commands depfiles"
5657 am_make=${MAKE-make}
5658 cat > confinc << 'END'
5659 am__doit:
5660 @echo this is the am__doit target
5661 .PHONY: am__doit
5663 # If we don't find an include directive, just comment out the code.
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5665 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5666 am__include="#"
5667 am__quote=
5668 _am_result=none
5669 # First try GNU make style include.
5670 echo "include confinc" > confmf
5671 # Ignore all kinds of additional output from `make'.
5672 case `$am_make -s -f confmf 2> /dev/null` in #(
5673 *the\ am__doit\ target*)
5674 am__include=include
5675 am__quote=
5676 _am_result=GNU
5678 esac
5679 # Now try BSD make style include.
5680 if test "$am__include" = "#"; then
5681 echo '.include "confinc"' > confmf
5682 case `$am_make -s -f confmf 2> /dev/null` in #(
5683 *the\ am__doit\ target*)
5684 am__include=.include
5685 am__quote="\""
5686 _am_result=BSD
5688 esac
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5693 $as_echo "$_am_result" >&6; }
5694 rm -f confinc confmf
5696 # Check whether --enable-dependency-tracking was given.
5697 if test "${enable_dependency_tracking+set}" = set; then :
5698 enableval=$enable_dependency_tracking;
5701 if test "x$enable_dependency_tracking" != xno; then
5702 am_depcomp="$ac_aux_dir/depcomp"
5703 AMDEPBACKSLASH='\'
5705 if test "x$enable_dependency_tracking" != xno; then
5706 AMDEP_TRUE=
5707 AMDEP_FALSE='#'
5708 else
5709 AMDEP_TRUE='#'
5710 AMDEP_FALSE=
5715 depcc="$CC" am_compiler_list=
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5718 $as_echo_n "checking dependency style of $depcc... " >&6; }
5719 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5723 # We make a subdir and do the tests there. Otherwise we can end up
5724 # making bogus files that we don't know about and never remove. For
5725 # instance it was reported that on HP-UX the gcc test will end up
5726 # making a dummy file named `D' -- because `-MD' means `put the output
5727 # in D'.
5728 mkdir conftest.dir
5729 # Copy depcomp to subdir because otherwise we won't find it if we're
5730 # using a relative directory.
5731 cp "$am_depcomp" conftest.dir
5732 cd conftest.dir
5733 # We will build objects and dependencies in a subdirectory because
5734 # it helps to detect inapplicable dependency modes. For instance
5735 # both Tru64's cc and ICC support -MD to output dependencies as a
5736 # side effect of compilation, but ICC will put the dependencies in
5737 # the current directory while Tru64 will put them in the object
5738 # directory.
5739 mkdir sub
5741 am_cv_CC_dependencies_compiler_type=none
5742 if test "$am_compiler_list" = ""; then
5743 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5745 am__universal=false
5746 case " $depcc " in #(
5747 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5748 esac
5750 for depmode in $am_compiler_list; do
5751 # Setup a source with many dependencies, because some compilers
5752 # like to wrap large dependency lists on column 80 (with \), and
5753 # we should not choose a depcomp mode which is confused by this.
5755 # We need to recreate these files for each test, as the compiler may
5756 # overwrite some of them when testing with obscure command lines.
5757 # This happens at least with the AIX C compiler.
5758 : > sub/conftest.c
5759 for i in 1 2 3 4 5 6; do
5760 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5761 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5762 # Solaris 8's {/usr,}/bin/sh.
5763 touch sub/conftst$i.h
5764 done
5765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5768 # mode. It turns out that the SunPro C++ compiler does not properly
5769 # handle `-M -o', and we need to detect this. Also, some Intel
5770 # versions had trouble with output in subdirs
5771 am__obj=sub/conftest.${OBJEXT-o}
5772 am__minus_obj="-o $am__obj"
5773 case $depmode in
5774 gcc)
5775 # This depmode causes a compiler race in universal mode.
5776 test "$am__universal" = false || continue
5778 nosideeffect)
5779 # after this tag, mechanisms are not by side-effect, so they'll
5780 # only be used when explicitly requested
5781 if test "x$enable_dependency_tracking" = xyes; then
5782 continue
5783 else
5784 break
5787 msvisualcpp | msvcmsys)
5788 # This compiler won't grok `-c -o', but also, the minuso test has
5789 # not run yet. These depmodes are late enough in the game, and
5790 # so weak that their functioning should not be impacted.
5791 am__obj=conftest.${OBJEXT-o}
5792 am__minus_obj=
5794 none) break ;;
5795 esac
5796 if depmode=$depmode \
5797 source=sub/conftest.c object=$am__obj \
5798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5800 >/dev/null 2>conftest.err &&
5801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5805 # icc doesn't choke on unknown options, it will just issue warnings
5806 # or remarks (even with -Werror). So we grep stderr for any message
5807 # that says an option was ignored or not supported.
5808 # When given -MP, icc 7.0 and 7.1 complain thusly:
5809 # icc: Command line warning: ignoring option '-M'; no argument required
5810 # The diagnosis changed in icc 8.0:
5811 # icc: Command line remark: option '-MP' not supported
5812 if (grep 'ignoring option' conftest.err ||
5813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5814 am_cv_CC_dependencies_compiler_type=$depmode
5815 break
5818 done
5820 cd ..
5821 rm -rf conftest.dir
5822 else
5823 am_cv_CC_dependencies_compiler_type=none
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5828 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5829 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5832 test "x$enable_dependency_tracking" != xno \
5833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5834 am__fastdepCC_TRUE=
5835 am__fastdepCC_FALSE='#'
5836 else
5837 am__fastdepCC_TRUE='#'
5838 am__fastdepCC_FALSE=
5842 if test "x$CC" != xcc; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5844 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5847 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5849 set dummy $CC; ac_cc=`$as_echo "$2" |
5850 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5851 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5858 main ()
5862 return 0;
5864 _ACEOF
5865 # Make sure it works both with $CC and with simple cc.
5866 # We do the test twice because some compilers refuse to overwrite an
5867 # existing .o file with -o, though they will create one.
5868 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5869 rm -f conftest2.*
5870 if { { case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5875 $as_echo "$ac_try_echo"; } >&5
5876 (eval "$ac_try") 2>&5
5877 ac_status=$?
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; } &&
5880 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5885 $as_echo "$ac_try_echo"; } >&5
5886 (eval "$ac_try") 2>&5
5887 ac_status=$?
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; };
5890 then
5891 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5892 if test "x$CC" != xcc; then
5893 # Test first that cc exists at all.
5894 if { ac_try='cc -c conftest.$ac_ext >&5'
5895 { { case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898 esac
5899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5900 $as_echo "$ac_try_echo"; } >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5904 test $ac_status = 0; }; }; then
5905 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5906 rm -f conftest2.*
5907 if { { case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910 esac
5911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5912 $as_echo "$ac_try_echo"; } >&5
5913 (eval "$ac_try") 2>&5
5914 ac_status=$?
5915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916 test $ac_status = 0; } &&
5917 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5922 $as_echo "$ac_try_echo"; } >&5
5923 (eval "$ac_try") 2>&5
5924 ac_status=$?
5925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5926 test $ac_status = 0; };
5927 then
5928 # cc works too.
5930 else
5931 # cc exists but doesn't like -o.
5932 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5936 else
5937 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5939 rm -f core conftest*
5942 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5944 $as_echo "yes" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5949 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5953 # FIXME: we rely on the cache variable name because
5954 # there is no other way.
5955 set dummy $CC
5956 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5957 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5958 if test "$am_t" != yes; then
5959 # Losing compiler, so override with the script.
5960 # FIXME: It is wrong to rewrite CC.
5961 # But if we don't then we get into trouble of one sort or another.
5962 # A longer-term fix would be to have automake use am__CC in this case,
5963 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5964 CC="$am_aux_dir/compile $CC"
5969 if test x$GCC = xyes; then
5970 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5971 else
5972 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5975 if test "x$opsys" = "xmingw32"; then
5976 BUILDING_FOR_WINDOWSNT_TRUE=
5977 BUILDING_FOR_WINDOWSNT_FALSE='#'
5978 else
5979 BUILDING_FOR_WINDOWSNT_TRUE='#'
5980 BUILDING_FOR_WINDOWSNT_FALSE=
5984 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5985 # as we don't use them.
5987 # Avoid gnulib's threadlib module, as we do threads our own way.
5990 # Initialize gnulib right after choosing the compiler.
5992 ac_ext=c
5993 ac_cpp='$CPP $CPPFLAGS'
5994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5998 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5999 # On Suns, sometimes $CPP names a directory.
6000 if test -n "$CPP" && test -d "$CPP"; then
6001 CPP=
6003 if test -z "$CPP"; then
6004 if test "${ac_cv_prog_CPP+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 # Double quotes because CPP needs to be expanded
6008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6010 ac_preproc_ok=false
6011 for ac_c_preproc_warn_flag in '' yes
6013 # Use a header file that comes with gcc, so configuring glibc
6014 # with a fresh cross-compiler works.
6015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016 # <limits.h> exists even on freestanding compilers.
6017 # On the NeXT, cc -E runs the code through the compiler's parser,
6018 # not just through cpp. "Syntax error" is here to catch this case.
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #ifdef __STDC__
6022 # include <limits.h>
6023 #else
6024 # include <assert.h>
6025 #endif
6026 Syntax error
6027 _ACEOF
6028 if ac_fn_c_try_cpp "$LINENO"; then :
6030 else
6031 # Broken: fails on valid input.
6032 continue
6034 rm -f conftest.err conftest.$ac_ext
6036 # OK, works on sane cases. Now check whether nonexistent headers
6037 # can be detected and how.
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <ac_nonexistent.h>
6041 _ACEOF
6042 if ac_fn_c_try_cpp "$LINENO"; then :
6043 # Broken: success on invalid input.
6044 continue
6045 else
6046 # Passes both tests.
6047 ac_preproc_ok=:
6048 break
6050 rm -f conftest.err conftest.$ac_ext
6052 done
6053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6054 rm -f conftest.err conftest.$ac_ext
6055 if $ac_preproc_ok; then :
6056 break
6059 done
6060 ac_cv_prog_CPP=$CPP
6063 CPP=$ac_cv_prog_CPP
6064 else
6065 ac_cv_prog_CPP=$CPP
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6068 $as_echo "$CPP" >&6; }
6069 ac_preproc_ok=false
6070 for ac_c_preproc_warn_flag in '' yes
6072 # Use a header file that comes with gcc, so configuring glibc
6073 # with a fresh cross-compiler works.
6074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6075 # <limits.h> exists even on freestanding compilers.
6076 # On the NeXT, cc -E runs the code through the compiler's parser,
6077 # not just through cpp. "Syntax error" is here to catch this case.
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #ifdef __STDC__
6081 # include <limits.h>
6082 #else
6083 # include <assert.h>
6084 #endif
6085 Syntax error
6086 _ACEOF
6087 if ac_fn_c_try_cpp "$LINENO"; then :
6089 else
6090 # Broken: fails on valid input.
6091 continue
6093 rm -f conftest.err conftest.$ac_ext
6095 # OK, works on sane cases. Now check whether nonexistent headers
6096 # can be detected and how.
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6099 #include <ac_nonexistent.h>
6100 _ACEOF
6101 if ac_fn_c_try_cpp "$LINENO"; then :
6102 # Broken: success on invalid input.
6103 continue
6104 else
6105 # Passes both tests.
6106 ac_preproc_ok=:
6107 break
6109 rm -f conftest.err conftest.$ac_ext
6111 done
6112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6113 rm -f conftest.err conftest.$ac_ext
6114 if $ac_preproc_ok; then :
6116 else
6117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6119 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6120 See \`config.log' for more details." "$LINENO" 5; }
6123 ac_ext=c
6124 ac_cpp='$CPP $CPPFLAGS'
6125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6131 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6132 if test "${ac_cv_path_GREP+set}" = set; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 if test -z "$GREP"; then
6136 ac_path_GREP_found=false
6137 # Loop through the user's path and test for each of PROGNAME-LIST
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_prog in grep ggrep; do
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6146 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6147 # Check for GNU ac_path_GREP and select it if it is found.
6148 # Check for GNU $ac_path_GREP
6149 case `"$ac_path_GREP" --version 2>&1` in
6150 *GNU*)
6151 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6153 ac_count=0
6154 $as_echo_n 0123456789 >"conftest.in"
6155 while :
6157 cat "conftest.in" "conftest.in" >"conftest.tmp"
6158 mv "conftest.tmp" "conftest.in"
6159 cp "conftest.in" "conftest.nl"
6160 $as_echo 'GREP' >> "conftest.nl"
6161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6163 as_fn_arith $ac_count + 1 && ac_count=$as_val
6164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6165 # Best one so far, save it but keep looking for a better one
6166 ac_cv_path_GREP="$ac_path_GREP"
6167 ac_path_GREP_max=$ac_count
6169 # 10*(2^10) chars as input seems more than enough
6170 test $ac_count -gt 10 && break
6171 done
6172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6173 esac
6175 $ac_path_GREP_found && break 3
6176 done
6177 done
6178 done
6179 IFS=$as_save_IFS
6180 if test -z "$ac_cv_path_GREP"; then
6181 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6183 else
6184 ac_cv_path_GREP=$GREP
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6189 $as_echo "$ac_cv_path_GREP" >&6; }
6190 GREP="$ac_cv_path_GREP"
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6194 $as_echo_n "checking for egrep... " >&6; }
6195 if test "${ac_cv_path_EGREP+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6199 then ac_cv_path_EGREP="$GREP -E"
6200 else
6201 if test -z "$EGREP"; then
6202 ac_path_EGREP_found=false
6203 # Loop through the user's path and test for each of PROGNAME-LIST
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_prog in egrep; do
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6212 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6213 # Check for GNU ac_path_EGREP and select it if it is found.
6214 # Check for GNU $ac_path_EGREP
6215 case `"$ac_path_EGREP" --version 2>&1` in
6216 *GNU*)
6217 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6219 ac_count=0
6220 $as_echo_n 0123456789 >"conftest.in"
6221 while :
6223 cat "conftest.in" "conftest.in" >"conftest.tmp"
6224 mv "conftest.tmp" "conftest.in"
6225 cp "conftest.in" "conftest.nl"
6226 $as_echo 'EGREP' >> "conftest.nl"
6227 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6229 as_fn_arith $ac_count + 1 && ac_count=$as_val
6230 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6231 # Best one so far, save it but keep looking for a better one
6232 ac_cv_path_EGREP="$ac_path_EGREP"
6233 ac_path_EGREP_max=$ac_count
6235 # 10*(2^10) chars as input seems more than enough
6236 test $ac_count -gt 10 && break
6237 done
6238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6239 esac
6241 $ac_path_EGREP_found && break 3
6242 done
6243 done
6244 done
6245 IFS=$as_save_IFS
6246 if test -z "$ac_cv_path_EGREP"; then
6247 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6249 else
6250 ac_cv_path_EGREP=$EGREP
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6256 $as_echo "$ac_cv_path_EGREP" >&6; }
6257 EGREP="$ac_cv_path_EGREP"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6263 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6264 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6271 #ifdef __ACK__
6272 Amsterdam
6273 #endif
6275 _ACEOF
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6278 gl_cv_c_amsterdam_compiler=yes
6279 else
6280 gl_cv_c_amsterdam_compiler=no
6282 rm -f conftest*
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6287 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6288 if test -z "$AR"; then
6289 if test $gl_cv_c_amsterdam_compiler = yes; then
6290 AR='cc -c.a'
6291 if test -z "$ARFLAGS"; then
6292 ARFLAGS='-o'
6294 else
6295 if test -n "$ac_tool_prefix"; then
6296 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}ar; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if test "${ac_cv_prog_AR+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 if test -n "$AR"; then
6304 ac_cv_prog_AR="$AR" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6309 IFS=$as_save_IFS
6310 test -z "$as_dir" && as_dir=.
6311 for ac_exec_ext in '' $ac_executable_extensions; do
6312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313 ac_cv_prog_AR="${ac_tool_prefix}ar"
6314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 break 2
6317 done
6318 done
6319 IFS=$as_save_IFS
6323 AR=$ac_cv_prog_AR
6324 if test -n "$AR"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6326 $as_echo "$AR" >&6; }
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6334 if test -z "$ac_cv_prog_AR"; then
6335 ac_ct_AR=$AR
6336 # Extract the first word of "ar", so it can be a program name with args.
6337 set dummy ar; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$ac_ct_AR"; then
6344 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_ac_ct_AR="ar"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6357 done
6358 done
6359 IFS=$as_save_IFS
6363 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6364 if test -n "$ac_ct_AR"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6366 $as_echo "$ac_ct_AR" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6372 if test "x$ac_ct_AR" = x; then
6373 AR="ar"
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381 AR=$ac_ct_AR
6383 else
6384 AR="$ac_cv_prog_AR"
6387 if test -z "$ARFLAGS"; then
6388 ARFLAGS='cru'
6391 else
6392 if test -z "$ARFLAGS"; then
6393 ARFLAGS='cru'
6398 if test -z "$RANLIB"; then
6399 if test $gl_cv_c_amsterdam_compiler = yes; then
6400 RANLIB=':'
6401 else
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 if test -n "$RANLIB"; then
6411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6424 done
6425 done
6426 IFS=$as_save_IFS
6430 RANLIB=$ac_cv_prog_RANLIB
6431 if test -n "$RANLIB"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6433 $as_echo "$RANLIB" >&6; }
6434 else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6441 if test -z "$ac_cv_prog_RANLIB"; then
6442 ac_ct_RANLIB=$RANLIB
6443 # Extract the first word of "ranlib", so it can be a program name with args.
6444 set dummy ranlib; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$ac_ct_RANLIB"; then
6451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_ac_ct_RANLIB="ranlib"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6471 if test -n "$ac_ct_RANLIB"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6473 $as_echo "$ac_ct_RANLIB" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6479 if test "x$ac_ct_RANLIB" = x; then
6480 RANLIB=":"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488 RANLIB=$ac_ct_RANLIB
6490 else
6491 RANLIB="$ac_cv_prog_RANLIB"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6499 $as_echo_n "checking for ANSI C header files... " >&6; }
6500 if test "${ac_cv_header_stdc+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <stdlib.h>
6506 #include <stdarg.h>
6507 #include <string.h>
6508 #include <float.h>
6511 main ()
6515 return 0;
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 ac_cv_header_stdc=yes
6520 else
6521 ac_cv_header_stdc=no
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 if test $ac_cv_header_stdc = yes; then
6526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 #include <string.h>
6531 _ACEOF
6532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 $EGREP "memchr" >/dev/null 2>&1; then :
6535 else
6536 ac_cv_header_stdc=no
6538 rm -f conftest*
6542 if test $ac_cv_header_stdc = yes; then
6543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 #include <stdlib.h>
6548 _ACEOF
6549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6550 $EGREP "free" >/dev/null 2>&1; then :
6552 else
6553 ac_cv_header_stdc=no
6555 rm -f conftest*
6559 if test $ac_cv_header_stdc = yes; then
6560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6561 if test "$cross_compiling" = yes; then :
6563 else
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6566 #include <ctype.h>
6567 #include <stdlib.h>
6568 #if ((' ' & 0x0FF) == 0x020)
6569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6571 #else
6572 # define ISLOWER(c) \
6573 (('a' <= (c) && (c) <= 'i') \
6574 || ('j' <= (c) && (c) <= 'r') \
6575 || ('s' <= (c) && (c) <= 'z'))
6576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6577 #endif
6579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6581 main ()
6583 int i;
6584 for (i = 0; i < 256; i++)
6585 if (XOR (islower (i), ISLOWER (i))
6586 || toupper (i) != TOUPPER (i))
6587 return 2;
6588 return 0;
6590 _ACEOF
6591 if ac_fn_c_try_run "$LINENO"; then :
6593 else
6594 ac_cv_header_stdc=no
6596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6597 conftest.$ac_objext conftest.beam conftest.$ac_ext
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6603 $as_echo "$ac_cv_header_stdc" >&6; }
6604 if test $ac_cv_header_stdc = yes; then
6606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6611 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6612 inttypes.h stdint.h unistd.h
6613 do :
6614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6615 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6617 eval as_val=\$$as_ac_Header
6618 if test "x$as_val" = x""yes; then :
6619 cat >>confdefs.h <<_ACEOF
6620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6621 _ACEOF
6625 done
6629 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6630 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6631 MINIX=yes
6632 else
6633 MINIX=
6637 if test "$MINIX" = yes; then
6639 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6642 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6645 $as_echo "#define _MINIX 1" >>confdefs.h
6648 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6654 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6655 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6661 # define __EXTENSIONS__ 1
6662 $ac_includes_default
6664 main ()
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672 ac_cv_safe_to_define___extensions__=yes
6673 else
6674 ac_cv_safe_to_define___extensions__=no
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6679 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6680 test $ac_cv_safe_to_define___extensions__ = yes &&
6681 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6683 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6685 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6687 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6689 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6691 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6694 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6695 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 ac_cv_should_define__xopen_source=no
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6702 #include <wchar.h>
6703 mbstate_t x;
6705 main ()
6709 return 0;
6711 _ACEOF
6712 if ac_fn_c_try_compile "$LINENO"; then :
6714 else
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6718 #define _XOPEN_SOURCE 500
6719 #include <wchar.h>
6720 mbstate_t x;
6722 main ()
6726 return 0;
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"; then :
6730 ac_cv_should_define__xopen_source=yes
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6737 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6738 test $ac_cv_should_define__xopen_source = yes &&
6739 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6748 # Check whether --enable-largefile was given.
6749 if test "${enable_largefile+set}" = set; then :
6750 enableval=$enable_largefile;
6753 if test "$enable_largefile" != no; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6756 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6757 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 ac_cv_sys_largefile_CC=no
6761 if test "$GCC" != yes; then
6762 ac_save_CC=$CC
6763 while :; do
6764 # IRIX 6.2 and later do not support large files by default,
6765 # so use the C compiler's -n32 option if that helps.
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 #include <sys/types.h>
6769 /* Check that off_t can represent 2**63 - 1 correctly.
6770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6771 since some C++ compilers masquerading as C compilers
6772 incorrectly reject 9223372036854775807. */
6773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6775 && LARGE_OFF_T % 2147483647 == 1)
6776 ? 1 : -1];
6778 main ()
6782 return 0;
6784 _ACEOF
6785 if ac_fn_c_try_compile "$LINENO"; then :
6786 break
6788 rm -f core conftest.err conftest.$ac_objext
6789 CC="$CC -n32"
6790 if ac_fn_c_try_compile "$LINENO"; then :
6791 ac_cv_sys_largefile_CC=' -n32'; break
6793 rm -f core conftest.err conftest.$ac_objext
6794 break
6795 done
6796 CC=$ac_save_CC
6797 rm -f conftest.$ac_ext
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6801 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6802 if test "$ac_cv_sys_largefile_CC" != no; then
6803 CC=$CC$ac_cv_sys_largefile_CC
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6807 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6808 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 while :; do
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #include <sys/types.h>
6815 /* Check that off_t can represent 2**63 - 1 correctly.
6816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6817 since some C++ compilers masquerading as C compilers
6818 incorrectly reject 9223372036854775807. */
6819 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6821 && LARGE_OFF_T % 2147483647 == 1)
6822 ? 1 : -1];
6824 main ()
6828 return 0;
6830 _ACEOF
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832 ac_cv_sys_file_offset_bits=no; break
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837 #define _FILE_OFFSET_BITS 64
6838 #include <sys/types.h>
6839 /* Check that off_t can represent 2**63 - 1 correctly.
6840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6841 since some C++ compilers masquerading as C compilers
6842 incorrectly reject 9223372036854775807. */
6843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6845 && LARGE_OFF_T % 2147483647 == 1)
6846 ? 1 : -1];
6848 main ()
6852 return 0;
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 ac_cv_sys_file_offset_bits=64; break
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 ac_cv_sys_file_offset_bits=unknown
6860 break
6861 done
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6864 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6865 case $ac_cv_sys_file_offset_bits in #(
6866 no | unknown) ;;
6868 cat >>confdefs.h <<_ACEOF
6869 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6870 _ACEOF
6872 esac
6873 rm -rf conftest*
6874 if test $ac_cv_sys_file_offset_bits = unknown; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6876 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6877 if test "${ac_cv_sys_large_files+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 while :; do
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #include <sys/types.h>
6884 /* Check that off_t can represent 2**63 - 1 correctly.
6885 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6886 since some C++ compilers masquerading as C compilers
6887 incorrectly reject 9223372036854775807. */
6888 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6889 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6890 && LARGE_OFF_T % 2147483647 == 1)
6891 ? 1 : -1];
6893 main ()
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 ac_cv_sys_large_files=no; break
6903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 #define _LARGE_FILES 1
6907 #include <sys/types.h>
6908 /* Check that off_t can represent 2**63 - 1 correctly.
6909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6910 since some C++ compilers masquerading as C compilers
6911 incorrectly reject 9223372036854775807. */
6912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6914 && LARGE_OFF_T % 2147483647 == 1)
6915 ? 1 : -1];
6917 main ()
6921 return 0;
6923 _ACEOF
6924 if ac_fn_c_try_compile "$LINENO"; then :
6925 ac_cv_sys_large_files=1; break
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928 ac_cv_sys_large_files=unknown
6929 break
6930 done
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6933 $as_echo "$ac_cv_sys_large_files" >&6; }
6934 case $ac_cv_sys_large_files in #(
6935 no | unknown) ;;
6937 cat >>confdefs.h <<_ACEOF
6938 #define _LARGE_FILES $ac_cv_sys_large_files
6939 _ACEOF
6941 esac
6942 rm -rf conftest*
6946 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6950 case $ac_cv_prog_cc_stdc in #(
6951 no) :
6952 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6953 *) :
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6955 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6956 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6957 $as_echo_n "(cached) " >&6
6958 else
6959 ac_cv_prog_cc_c99=no
6960 ac_save_CC=$CC
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 #include <stdarg.h>
6964 #include <stdbool.h>
6965 #include <stdlib.h>
6966 #include <wchar.h>
6967 #include <stdio.h>
6969 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6970 #define debug(...) fprintf (stderr, __VA_ARGS__)
6971 #define showlist(...) puts (#__VA_ARGS__)
6972 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6973 static void
6974 test_varargs_macros (void)
6976 int x = 1234;
6977 int y = 5678;
6978 debug ("Flag");
6979 debug ("X = %d\n", x);
6980 showlist (The first, second, and third items.);
6981 report (x>y, "x is %d but y is %d", x, y);
6984 // Check long long types.
6985 #define BIG64 18446744073709551615ull
6986 #define BIG32 4294967295ul
6987 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6988 #if !BIG_OK
6989 your preprocessor is broken;
6990 #endif
6991 #if BIG_OK
6992 #else
6993 your preprocessor is broken;
6994 #endif
6995 static long long int bignum = -9223372036854775807LL;
6996 static unsigned long long int ubignum = BIG64;
6998 struct incomplete_array
7000 int datasize;
7001 double data[];
7004 struct named_init {
7005 int number;
7006 const wchar_t *name;
7007 double average;
7010 typedef const char *ccp;
7012 static inline int
7013 test_restrict (ccp restrict text)
7015 // See if C++-style comments work.
7016 // Iterate through items via the restricted pointer.
7017 // Also check for declarations in for loops.
7018 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7019 continue;
7020 return 0;
7023 // Check varargs and va_copy.
7024 static void
7025 test_varargs (const char *format, ...)
7027 va_list args;
7028 va_start (args, format);
7029 va_list args_copy;
7030 va_copy (args_copy, args);
7032 const char *str;
7033 int number;
7034 float fnumber;
7036 while (*format)
7038 switch (*format++)
7040 case 's': // string
7041 str = va_arg (args_copy, const char *);
7042 break;
7043 case 'd': // int
7044 number = va_arg (args_copy, int);
7045 break;
7046 case 'f': // float
7047 fnumber = va_arg (args_copy, double);
7048 break;
7049 default:
7050 break;
7053 va_end (args_copy);
7054 va_end (args);
7058 main ()
7061 // Check bool.
7062 _Bool success = false;
7064 // Check restrict.
7065 if (test_restrict ("String literal") == 0)
7066 success = true;
7067 char *restrict newvar = "Another string";
7069 // Check varargs.
7070 test_varargs ("s, d' f .", "string", 65, 34.234);
7071 test_varargs_macros ();
7073 // Check flexible array members.
7074 struct incomplete_array *ia =
7075 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7076 ia->datasize = 10;
7077 for (int i = 0; i < ia->datasize; ++i)
7078 ia->data[i] = i * 1.234;
7080 // Check named initializers.
7081 struct named_init ni = {
7082 .number = 34,
7083 .name = L"Test wide string",
7084 .average = 543.34343,
7087 ni.number = 58;
7089 int dynamic_array[ni.number];
7090 dynamic_array[ni.number - 1] = 543;
7092 // work around unused variable warnings
7093 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7094 || dynamic_array[ni.number - 1] != 543);
7097 return 0;
7099 _ACEOF
7100 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7102 CC="$ac_save_CC $ac_arg"
7103 if ac_fn_c_try_compile "$LINENO"; then :
7104 ac_cv_prog_cc_c99=$ac_arg
7106 rm -f core conftest.err conftest.$ac_objext
7107 test "x$ac_cv_prog_cc_c99" != "xno" && break
7108 done
7109 rm -f conftest.$ac_ext
7110 CC=$ac_save_CC
7113 # AC_CACHE_VAL
7114 case "x$ac_cv_prog_cc_c99" in
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7117 $as_echo "none needed" >&6; } ;;
7118 xno)
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7120 $as_echo "unsupported" >&6; } ;;
7122 CC="$CC $ac_cv_prog_cc_c99"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7124 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7125 esac
7126 if test "x$ac_cv_prog_cc_c99" != xno; then :
7127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7130 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7131 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 ac_cv_prog_cc_c89=no
7135 ac_save_CC=$CC
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 #include <stdarg.h>
7139 #include <stdio.h>
7140 #include <sys/types.h>
7141 #include <sys/stat.h>
7142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7143 struct buf { int x; };
7144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7145 static char *e (p, i)
7146 char **p;
7147 int i;
7149 return p[i];
7151 static char *f (char * (*g) (char **, int), char **p, ...)
7153 char *s;
7154 va_list v;
7155 va_start (v,p);
7156 s = g (p, va_arg (v,int));
7157 va_end (v);
7158 return s;
7161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7162 function prototypes and stuff, but not '\xHH' hex character constants.
7163 These don't provoke an error unfortunately, instead are silently treated
7164 as 'x'. The following induces an error, until -std is added to get
7165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7166 array size at least. It's necessary to write '\x00'==0 to get something
7167 that's true only with -std. */
7168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7171 inside strings and character constants. */
7172 #define FOO(x) 'x'
7173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7175 int test (int i, double x);
7176 struct s1 {int (*f) (int a);};
7177 struct s2 {int (*f) (double a);};
7178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7179 int argc;
7180 char **argv;
7182 main ()
7184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7186 return 0;
7188 _ACEOF
7189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7192 CC="$ac_save_CC $ac_arg"
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 ac_cv_prog_cc_c89=$ac_arg
7196 rm -f core conftest.err conftest.$ac_objext
7197 test "x$ac_cv_prog_cc_c89" != "xno" && break
7198 done
7199 rm -f conftest.$ac_ext
7200 CC=$ac_save_CC
7203 # AC_CACHE_VAL
7204 case "x$ac_cv_prog_cc_c89" in
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7207 $as_echo "none needed" >&6; } ;;
7208 xno)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7210 $as_echo "unsupported" >&6; } ;;
7212 CC="$CC $ac_cv_prog_cc_c89"
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7214 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7215 esac
7216 if test "x$ac_cv_prog_cc_c89" != xno; then :
7217 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7218 else
7219 ac_cv_prog_cc_stdc=no
7224 esac
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7226 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7227 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
7231 case $ac_cv_prog_cc_stdc in #(
7232 no) :
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7234 $as_echo "unsupported" >&6; } ;; #(
7235 '') :
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7237 $as_echo "none needed" >&6; } ;; #(
7238 *) :
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7240 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7241 esac
7245 # Code from module alloca-opt:
7246 # Code from module allocator:
7247 # Code from module at-internal:
7248 # Code from module binary-io:
7249 # Code from module c-ctype:
7250 # Code from module c-strcase:
7251 # Code from module careadlinkat:
7252 # Code from module clock-time:
7253 # Code from module close-stream:
7254 # Code from module crypto/md5:
7255 # Code from module crypto/sha1:
7256 # Code from module crypto/sha256:
7257 # Code from module crypto/sha512:
7258 # Code from module dirent:
7259 # Code from module dosname:
7260 # Code from module dtoastr:
7261 # Code from module dtotimespec:
7262 # Code from module dup2:
7263 # Code from module environ:
7264 # Code from module errno:
7265 # Code from module euidaccess:
7266 # Code from module execinfo:
7267 # Code from module extensions:
7269 # Code from module extern-inline:
7270 # Code from module faccessat:
7271 # Code from module fcntl:
7272 # Code from module fcntl-h:
7273 # Code from module fdatasync:
7274 # Code from module fdopendir:
7275 # Code from module filemode:
7276 # Code from module fpending:
7277 # Code from module fstatat:
7278 # Code from module fsync:
7279 # Code from module getdtablesize:
7280 # Code from module getgroups:
7281 # Code from module getloadavg:
7282 # Code from module getopt-gnu:
7283 # Code from module getopt-posix:
7284 # Code from module gettext-h:
7285 # Code from module gettime:
7286 # Code from module gettimeofday:
7287 # Code from module group-member:
7288 # Code from module include_next:
7289 # Code from module intprops:
7290 # Code from module inttypes-incomplete:
7291 # Code from module largefile:
7293 # Code from module lstat:
7294 # Code from module manywarnings:
7295 # Code from module memrchr:
7296 # Code from module mkostemp:
7297 # Code from module mktime:
7298 # Code from module multiarch:
7299 # Code from module nocrash:
7300 # Code from module openat-h:
7301 # Code from module pathmax:
7302 # Code from module pipe2:
7303 # Code from module pselect:
7304 # Code from module pthread_sigmask:
7305 # Code from module putenv:
7306 # Code from module qacl:
7307 # Code from module readlink:
7308 # Code from module readlinkat:
7309 # Code from module root-uid:
7310 # Code from module secure_getenv:
7311 # Code from module sig2str:
7312 # Code from module signal-h:
7313 # Code from module snippet/_Noreturn:
7314 # Code from module snippet/arg-nonnull:
7315 # Code from module snippet/c++defs:
7316 # Code from module snippet/warn-on-use:
7317 # Code from module socklen:
7318 # Code from module ssize_t:
7319 # Code from module stat:
7320 # Code from module stat-time:
7321 # Code from module stdalign:
7322 # Code from module stdarg:
7326 # Code from module stdbool:
7327 # Code from module stddef:
7328 # Code from module stdint:
7329 # Code from module stdio:
7330 # Code from module stdlib:
7331 # Code from module strftime:
7332 # Code from module string:
7333 # Code from module strtoimax:
7334 # Code from module strtoll:
7335 # Code from module strtoull:
7336 # Code from module strtoumax:
7337 # Code from module symlink:
7338 # Code from module sys_select:
7339 # Code from module sys_stat:
7340 # Code from module sys_time:
7341 # Code from module tempname:
7342 # Code from module time:
7343 # Code from module time_r:
7344 # Code from module timer-time:
7345 # Code from module timespec:
7346 # Code from module timespec-add:
7347 # Code from module timespec-sub:
7348 # Code from module u64:
7349 # Code from module unistd:
7350 # Code from module unsetenv:
7351 # Code from module utimens:
7352 # Code from module verify:
7353 # Code from module warnings:
7354 # Code from module xalloc-oversized:
7357 if test "$ac_test_CFLAGS" != set; then
7358 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7359 # if -g3 works and the user does not specify CFLAGS.
7360 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7361 case $CFLAGS in
7362 '-g')
7363 emacs_g3_CFLAGS='-g3';;
7364 '-g -O2')
7365 emacs_g3_CFLAGS='-g3 -O2';;
7367 emacs_g3_CFLAGS='';;
7368 esac
7369 if test -n "$emacs_g3_CFLAGS"; then
7370 emacs_save_CFLAGS=$CFLAGS
7371 CFLAGS=$emacs_g3_CFLAGS
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7373 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7374 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7381 main ()
7385 return 0;
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389 emacs_cv_prog_cc_g3=yes
7390 else
7391 emacs_cv_prog_cc_g3=no
7393 rm -f core conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7397 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7398 if test $emacs_cv_prog_cc_g3 != yes; then
7399 CFLAGS=$emacs_save_CFLAGS
7401 if test $opsys = mingw32; then
7402 CFLAGS="$CFLAGS -gdwarf-2"
7406 case $CFLAGS in
7407 *-O*) ;;
7409 # No optimization flag was inferred for this non-GCC compiler.
7410 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7411 emacs_save_CFLAGS=$CFLAGS
7412 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7413 CFLAGS=${CFLAGS}-O
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7415 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7416 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7423 main ()
7427 return 0;
7429 _ACEOF
7430 if ac_fn_c_try_link "$LINENO"; then :
7431 emacs_cv_prog_cc_o=yes
7432 else
7433 emacs_cv_prog_cc_o=no
7435 rm -f core conftest.err conftest.$ac_objext \
7436 conftest$ac_exeext conftest.$ac_ext
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7439 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7440 if test $emacs_cv_prog_cc_o != yes; then
7441 CFLAGS=$emacs_save_CFLAGS
7442 fi ;;
7443 esac
7446 # Check whether --enable-gcc-warnings was given.
7447 if test "${enable_gcc_warnings+set}" = set; then :
7448 enableval=$enable_gcc_warnings; case $enableval in
7449 yes|no) ;;
7450 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7451 esac
7452 gl_gcc_warnings=$enableval
7453 else
7454 gl_gcc_warnings=no
7459 # Check whether --enable-link-time-optimization was given.
7460 if test "${enable_link_time_optimization+set}" = set; then :
7461 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7463 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7464 ac_lto_supported=no
7465 if test x$GCC = xyes; then
7466 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7467 if test x$CPUS != x; then
7468 LTO="-flto=$CPUS"
7469 else
7470 LTO="-flto"
7472 old_CFLAGS=$CFLAGS
7473 CFLAGS="$CFLAGS $LTO"
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7478 main ()
7482 return 0;
7484 _ACEOF
7485 if ac_fn_c_try_compile "$LINENO"; then :
7486 ac_lto_supported=yes
7487 else
7488 ac_lto_supported=no
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 CFLAGS="$old_CFLAGS"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7494 $as_echo "$ac_lto_supported" >&6; }
7495 if test "$ac_lto_supported" = "yes"; then
7496 CFLAGS="$CFLAGS $LTO"
7502 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7503 # ------------------------------------------------
7504 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7505 # Otherwise, run RUN-IF-NOT-FOUND.
7508 # When compiling with GCC, prefer -isystem to -I when including system
7509 # include files, to avoid generating useless diagnostics for the files.
7510 if test "$gl_gcc_warnings" != yes; then
7511 isystem='-I'
7512 else
7513 isystem='-isystem '
7515 # This, $nw, is the list of warnings we disable.
7518 case $with_x_toolkit in
7519 lucid | athena | motif)
7520 # Old toolkits mishandle 'const'.
7521 nw="$nw -Wwrite-strings"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7525 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7526 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7530 gl_save_compiler_FLAGS="$CFLAGS"
7531 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7536 main ()
7540 return 0;
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"; then :
7544 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7545 else
7546 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 CFLAGS="$gl_save_compiler_FLAGS"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7553 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7554 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7555 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7556 else
7557 gl_unknown_warnings_are_errors=
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7562 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7563 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7564 $as_echo_n "(cached) " >&6
7565 else
7567 gl_save_compiler_FLAGS="$CFLAGS"
7568 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7573 main ()
7577 return 0;
7579 _ACEOF
7580 if ac_fn_c_try_compile "$LINENO"; then :
7581 gl_cv_warn_c__Werror=yes
7582 else
7583 gl_cv_warn_c__Werror=no
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 CFLAGS="$gl_save_compiler_FLAGS"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7590 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7591 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7592 as_fn_append WERROR_CFLAGS " -Werror"
7597 esac
7600 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7601 nw="$nw -Woverlength-strings" # Not a problem these days
7602 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7603 nw="$nw -Wformat-nonliteral" # we do this a lot
7604 nw="$nw -Wvla" # warnings in gettext.h
7605 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7606 nw="$nw -Wswitch-default" # Too many warnings for now
7607 nw="$nw -Winline" # OK to ignore 'inline'
7608 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7609 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7610 # signed overflow has undefined behavior
7611 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7612 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7613 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7615 # Emacs doesn't care about shadowing; see
7616 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7617 nw="$nw -Wshadow"
7619 # Emacs's use of alloca inhibits protecting the stack.
7620 nw="$nw -Wstack-protector"
7622 # The following line should be removable at some point.
7623 nw="$nw -Wsuggest-attribute=pure"
7625 # clang is unduly picky about some things.
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7627 $as_echo_n "checking whether the compiler is clang... " >&6; }
7628 if test "${emacs_cv_clang+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7634 #ifndef __clang__
7635 #error "not clang"
7636 #endif
7639 main ()
7643 return 0;
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647 emacs_cv_clang=yes
7648 else
7649 emacs_cv_clang=no
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7654 $as_echo "$emacs_cv_clang" >&6; }
7655 if test $emacs_cv_clang = yes; then
7656 nw="$nw -Wcast-align"
7661 if test -n "$GCC"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7664 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7665 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7669 gl_save_CFLAGS="$CFLAGS"
7670 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7675 main ()
7679 return 0;
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"; then :
7683 gl_cv_cc_nomfi_supported=yes
7684 else
7685 gl_cv_cc_nomfi_supported=no
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688 CFLAGS="$gl_save_CFLAGS"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7692 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7694 if test "$gl_cv_cc_nomfi_supported" = yes; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7696 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7697 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7699 else
7701 gl_save_CFLAGS="$CFLAGS"
7702 CFLAGS="$CFLAGS -W -Werror"
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705 void f (void)
7707 typedef struct { int a; int b; } s_t;
7708 s_t s1 = { 0, };
7712 main ()
7716 return 0;
7718 _ACEOF
7719 if ac_fn_c_try_compile "$LINENO"; then :
7720 gl_cv_cc_nomfi_needed=no
7721 else
7722 gl_cv_cc_nomfi_needed=yes
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 CFLAGS="$gl_save_CFLAGS"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7730 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7734 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7735 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7739 gl_save_CFLAGS="$CFLAGS"
7740 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7745 main ()
7749 return 0;
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 gl_cv_cc_uninitialized_supported=yes
7754 else
7755 gl_cv_cc_uninitialized_supported=no
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 CFLAGS="$gl_save_CFLAGS"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7762 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7766 # List all gcc warning categories.
7767 gl_manywarn_set=
7768 for gl_manywarn_item in \
7769 -W \
7770 -Wabi \
7771 -Waddress \
7772 -Waggressive-loop-optimizations \
7773 -Wall \
7774 -Warray-bounds \
7775 -Wattributes \
7776 -Wbad-function-cast \
7777 -Wbuiltin-macro-redefined \
7778 -Wcast-align \
7779 -Wchar-subscripts \
7780 -Wclobbered \
7781 -Wcomment \
7782 -Wcomments \
7783 -Wcoverage-mismatch \
7784 -Wcpp \
7785 -Wdeprecated \
7786 -Wdeprecated-declarations \
7787 -Wdisabled-optimization \
7788 -Wdiv-by-zero \
7789 -Wdouble-promotion \
7790 -Wempty-body \
7791 -Wendif-labels \
7792 -Wenum-compare \
7793 -Wextra \
7794 -Wformat-contains-nul \
7795 -Wformat-extra-args \
7796 -Wformat-nonliteral \
7797 -Wformat-security \
7798 -Wformat-y2k \
7799 -Wformat-zero-length \
7800 -Wfree-nonheap-object \
7801 -Wignored-qualifiers \
7802 -Wimplicit \
7803 -Wimplicit-function-declaration \
7804 -Wimplicit-int \
7805 -Winit-self \
7806 -Winline \
7807 -Wint-to-pointer-cast \
7808 -Winvalid-memory-model \
7809 -Winvalid-pch \
7810 -Wjump-misses-init \
7811 -Wlogical-op \
7812 -Wmain \
7813 -Wmaybe-uninitialized \
7814 -Wmissing-braces \
7815 -Wmissing-declarations \
7816 -Wmissing-field-initializers \
7817 -Wmissing-include-dirs \
7818 -Wmissing-parameter-type \
7819 -Wmissing-prototypes \
7820 -Wmudflap \
7821 -Wmultichar \
7822 -Wnarrowing \
7823 -Wnested-externs \
7824 -Wnonnull \
7825 -Wnormalized=nfc \
7826 -Wold-style-declaration \
7827 -Wold-style-definition \
7828 -Woverflow \
7829 -Woverlength-strings \
7830 -Woverride-init \
7831 -Wpacked \
7832 -Wpacked-bitfield-compat \
7833 -Wparentheses \
7834 -Wpointer-arith \
7835 -Wpointer-sign \
7836 -Wpointer-to-int-cast \
7837 -Wpragmas \
7838 -Wreturn-local-addr \
7839 -Wreturn-type \
7840 -Wsequence-point \
7841 -Wshadow \
7842 -Wsizeof-pointer-memaccess \
7843 -Wstack-protector \
7844 -Wstrict-aliasing \
7845 -Wstrict-overflow \
7846 -Wstrict-prototypes \
7847 -Wsuggest-attribute=const \
7848 -Wsuggest-attribute=format \
7849 -Wsuggest-attribute=noreturn \
7850 -Wsuggest-attribute=pure \
7851 -Wswitch \
7852 -Wswitch-default \
7853 -Wsync-nand \
7854 -Wsystem-headers \
7855 -Wtrampolines \
7856 -Wtrigraphs \
7857 -Wtype-limits \
7858 -Wuninitialized \
7859 -Wunknown-pragmas \
7860 -Wunsafe-loop-optimizations \
7861 -Wunused \
7862 -Wunused-but-set-parameter \
7863 -Wunused-but-set-variable \
7864 -Wunused-function \
7865 -Wunused-label \
7866 -Wunused-local-typedefs \
7867 -Wunused-macros \
7868 -Wunused-parameter \
7869 -Wunused-result \
7870 -Wunused-value \
7871 -Wunused-variable \
7872 -Wvarargs \
7873 -Wvariadic-macros \
7874 -Wvector-operation-performance \
7875 -Wvla \
7876 -Wvolatile-register-var \
7877 -Wwrite-strings \
7879 ; do
7880 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7881 done
7883 # Disable specific options as needed.
7884 if test "$gl_cv_cc_nomfi_needed" = yes; then
7885 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7888 if test "$gl_cv_cc_uninitialized_supported" = no; then
7889 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7892 ws=$gl_manywarn_set
7895 gl_warn_set=
7896 set x $ws; shift
7897 for gl_warn_item
7899 case " $nw " in
7900 *" $gl_warn_item "*)
7903 gl_warn_set="$gl_warn_set $gl_warn_item"
7905 esac
7906 done
7907 ws=$gl_warn_set
7909 for w in $ws; do
7911 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7913 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7914 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7918 gl_save_compiler_FLAGS="$CFLAGS"
7919 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $w"
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7924 main ()
7928 return 0;
7930 _ACEOF
7931 if ac_fn_c_try_compile "$LINENO"; then :
7932 eval "$as_gl_Warn=yes"
7933 else
7934 eval "$as_gl_Warn=no"
7936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 CFLAGS="$gl_save_compiler_FLAGS"
7940 eval ac_res=\$$as_gl_Warn
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7942 $as_echo "$ac_res" >&6; }
7943 eval as_val=\$$as_gl_Warn
7944 if test "x$as_val" = x""yes; then :
7945 as_fn_append WARN_CFLAGS " $w"
7949 done
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7952 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7953 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7957 gl_save_compiler_FLAGS="$CFLAGS"
7958 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7963 main ()
7967 return 0;
7969 _ACEOF
7970 if ac_fn_c_try_compile "$LINENO"; then :
7971 gl_cv_warn_c__Wno_missing_field_initializers=yes
7972 else
7973 gl_cv_warn_c__Wno_missing_field_initializers=no
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 CFLAGS="$gl_save_compiler_FLAGS"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7980 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7981 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7982 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7985 # We need this one
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7988 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7989 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7993 gl_save_compiler_FLAGS="$CFLAGS"
7994 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-sign-compare"
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7999 main ()
8003 return 0;
8005 _ACEOF
8006 if ac_fn_c_try_compile "$LINENO"; then :
8007 gl_cv_warn_c__Wno_sign_compare=yes
8008 else
8009 gl_cv_warn_c__Wno_sign_compare=no
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 CFLAGS="$gl_save_compiler_FLAGS"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8016 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8017 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
8018 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
8021 # Too many warnings for now
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8024 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8025 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8029 gl_save_compiler_FLAGS="$CFLAGS"
8030 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-type-limits"
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8035 main ()
8039 return 0;
8041 _ACEOF
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043 gl_cv_warn_c__Wno_type_limits=yes
8044 else
8045 gl_cv_warn_c__Wno_type_limits=no
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 CFLAGS="$gl_save_compiler_FLAGS"
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8052 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8053 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8054 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8057 # Too many warnings for now
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8060 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8061 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8065 gl_save_compiler_FLAGS="$CFLAGS"
8066 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-switch"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8071 main ()
8075 return 0;
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 gl_cv_warn_c__Wno_switch=yes
8080 else
8081 gl_cv_warn_c__Wno_switch=no
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 CFLAGS="$gl_save_compiler_FLAGS"
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8088 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8089 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8090 as_fn_append WARN_CFLAGS " -Wno-switch"
8093 # Too many warnings for now
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8096 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8097 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8101 gl_save_compiler_FLAGS="$CFLAGS"
8102 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-unused-parameter"
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8107 main ()
8111 return 0;
8113 _ACEOF
8114 if ac_fn_c_try_compile "$LINENO"; then :
8115 gl_cv_warn_c__Wno_unused_parameter=yes
8116 else
8117 gl_cv_warn_c__Wno_unused_parameter=no
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 CFLAGS="$gl_save_compiler_FLAGS"
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8124 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8125 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8126 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8129 # Too many warnings for now
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8132 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8133 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8137 gl_save_compiler_FLAGS="$CFLAGS"
8138 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-format-nonliteral"
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8143 main ()
8147 return 0;
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"; then :
8151 gl_cv_warn_c__Wno_format_nonliteral=yes
8152 else
8153 gl_cv_warn_c__Wno_format_nonliteral=no
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 CFLAGS="$gl_save_compiler_FLAGS"
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8160 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8161 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8162 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8167 # In spite of excluding -Wlogical-op above, it is enabled, as of
8168 # gcc 4.5.0 20090517.
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8171 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8172 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8176 gl_save_compiler_FLAGS="$CFLAGS"
8177 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-logical-op"
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8182 main ()
8186 return 0;
8188 _ACEOF
8189 if ac_fn_c_try_compile "$LINENO"; then :
8190 gl_cv_warn_c__Wno_logical_op=yes
8191 else
8192 gl_cv_warn_c__Wno_logical_op=no
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 CFLAGS="$gl_save_compiler_FLAGS"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8199 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8200 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8201 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8206 # More things that clang is unduly picky about.
8207 if test $emacs_cv_clang = yes; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8210 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8211 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8215 gl_save_compiler_FLAGS="$CFLAGS"
8216 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-format-extra-args"
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8221 main ()
8225 return 0;
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229 gl_cv_warn_c__Wno_format_extra_args=yes
8230 else
8231 gl_cv_warn_c__Wno_format_extra_args=no
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 CFLAGS="$gl_save_compiler_FLAGS"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8238 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8239 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8240 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8246 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8247 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8251 gl_save_compiler_FLAGS="$CFLAGS"
8252 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-tautological-constant-out-of-range-compare"
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8257 main ()
8261 return 0;
8263 _ACEOF
8264 if ac_fn_c_try_compile "$LINENO"; then :
8265 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8266 else
8267 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 CFLAGS="$gl_save_compiler_FLAGS"
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8274 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8275 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8276 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8282 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8283 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8287 gl_save_compiler_FLAGS="$CFLAGS"
8288 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-unused-command-line-argument"
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8293 main ()
8297 return 0;
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"; then :
8301 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8302 else
8303 gl_cv_warn_c__Wno_unused_command_line_argument=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 CFLAGS="$gl_save_compiler_FLAGS"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8310 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8311 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8312 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8318 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8319 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8323 gl_save_compiler_FLAGS="$CFLAGS"
8324 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-unused-value"
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8329 main ()
8333 return 0;
8335 _ACEOF
8336 if ac_fn_c_try_compile "$LINENO"; then :
8337 gl_cv_warn_c__Wno_unused_value=yes
8338 else
8339 gl_cv_warn_c__Wno_unused_value=no
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 CFLAGS="$gl_save_compiler_FLAGS"
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8346 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8347 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8348 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8356 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8357 if test "${gl_cv_warn_c__fdiagnostics_show_option+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 -fdiagnostics-show-option"
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__fdiagnostics_show_option=yes
8376 else
8377 gl_cv_warn_c__fdiagnostics_show_option=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__fdiagnostics_show_option" >&5
8384 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8385 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8386 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8392 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8393 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8397 gl_save_compiler_FLAGS="$CFLAGS"
8398 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time"
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8403 main ()
8407 return 0;
8409 _ACEOF
8410 if ac_fn_c_try_compile "$LINENO"; then :
8411 gl_cv_warn_c__funit_at_a_time=yes
8412 else
8413 gl_cv_warn_c__funit_at_a_time=no
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 CFLAGS="$gl_save_compiler_FLAGS"
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8420 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8421 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8422 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8428 $as_echo "#define lint 1" >>confdefs.h
8432 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8435 # We use a slightly smaller set of warning options for lib/.
8436 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8438 nw="$nw -Wunused-macros"
8441 gl_warn_set=
8442 set x $WARN_CFLAGS; shift
8443 for gl_warn_item
8445 case " $nw " in
8446 *" $gl_warn_item "*)
8449 gl_warn_set="$gl_warn_set $gl_warn_item"
8451 esac
8452 done
8453 GNULIB_WARN_CFLAGS=$gl_warn_set
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8464 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8465 rm -f conf$$ conf$$.file
8467 LN_S_FILEONLY='cp -p'
8469 if (echo >conf$$.file) 2>/dev/null; then
8470 if ln -s conf$$.file conf$$ 2>/dev/null; then
8471 LN_S_FILEONLY='ln -s'
8472 elif ln conf$$.file conf$$ 2>/dev/null; then
8473 LN_S_FILEONLY=ln
8477 rm -f conf$$ conf$$.file
8479 if test "$LN_S_FILEONLY" = "ln -s"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8481 $as_echo "yes" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8484 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8490 if test "$opsys" = "mingw32"; then
8491 LN_S="ln"
8494 # Extract the first word of "install-info", so it can be a program name with args.
8495 set dummy install-info; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
8500 else
8501 case $INSTALL_INFO in
8502 [\\/]* | ?:[\\/]*)
8503 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
8511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8513 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 break 2
8517 done
8518 done
8519 IFS=$as_save_IFS
8521 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8523 esac
8525 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8526 if test -n "$INSTALL_INFO"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8528 $as_echo "$INSTALL_INFO" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8535 # Extract the first word of "gzip", so it can be a program name with args.
8536 set dummy gzip; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 case $GZIP_PROG in
8543 [\\/]* | ?:[\\/]*)
8544 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556 break 2
8558 done
8559 done
8560 IFS=$as_save_IFS
8563 esac
8565 GZIP_PROG=$ac_cv_path_GZIP_PROG
8566 if test -n "$GZIP_PROG"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8568 $as_echo "$GZIP_PROG" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8576 if test $opsys = gnu-linux; then
8577 # Extract the first word of "paxctl", so it can be a program name with args.
8578 set dummy paxctl; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 case $PAXCTL in
8585 [\\/]* | ?:[\\/]*)
8586 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8596 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598 break 2
8600 done
8601 done
8602 IFS=$as_save_IFS
8605 esac
8607 PAXCTL=$ac_cv_path_PAXCTL
8608 if test -n "$PAXCTL"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8610 $as_echo "$PAXCTL" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8617 if test "X$PAXCTL" != X; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8619 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8624 main ()
8628 return 0;
8630 _ACEOF
8631 if ac_fn_c_try_link "$LINENO"; then :
8632 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8633 $as_echo "yes" >&6; }
8634 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }; PAXCTL=""; fi
8637 rm -f core conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
8642 ## Need makeinfo >= 4.7 (?) to build the manuals.
8643 # Extract the first word of "makeinfo", so it can be a program name with args.
8644 set dummy makeinfo; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 case $MAKEINFO in
8651 [\\/]* | ?:[\\/]*)
8652 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8658 IFS=$as_save_IFS
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8662 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 break 2
8666 done
8667 done
8668 IFS=$as_save_IFS
8670 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8672 esac
8674 MAKEINFO=$ac_cv_path_MAKEINFO
8675 if test -n "$MAKEINFO"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8677 $as_echo "$MAKEINFO" >&6; }
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8684 if test "$MAKEINFO" != "no"; then
8685 case `
8686 $MAKEINFO --version 2> /dev/null |
8687 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8688 ` in
8689 '') MAKEINFO=no;;
8690 esac
8693 ## Makeinfo is unusual. For a released Emacs, the manuals are
8694 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8695 ## therefore in the category of "special tools" not normally required, which
8696 ## configure does not have to check for (eg autoconf itself).
8697 ## In a Bazaar checkout on the other hand, the manuals are not included.
8698 ## So makeinfo is a requirement to build from Bazaar, and configure
8699 ## should test for it as it does for any other build requirement.
8700 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8701 ## with pre-built manuals, from a Bazaar checkout.
8702 HAVE_MAKEINFO=yes
8704 if test "$MAKEINFO" = "no"; then
8705 MAKEINFO=makeinfo
8706 if test "x${with_makeinfo}" = "xno"; then
8707 HAVE_MAKEINFO=no
8708 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8709 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8710 source tree does not seem to have pre-built manuals in the \`info' directory.
8711 Either install a suitable version of makeinfo, or re-run configure
8712 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8717 INFO_EXT=.info
8718 INFO_OPTS=--no-split
8723 if test x$GCC = xyes; then
8724 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8725 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8726 else
8727 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8728 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8732 late_LDFLAGS=$LDFLAGS
8733 if test x$GCC = xyes; then
8734 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8735 else
8736 LDFLAGS="$LDFLAGS -znocombreloc"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8740 $as_echo_n "checking for -znocombreloc... " >&6; }
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8745 main ()
8749 return 0;
8751 _ACEOF
8752 if ac_fn_c_try_link "$LINENO"; then :
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8754 $as_echo "yes" >&6; }
8755 else
8756 LDFLAGS=$late_LDFLAGS
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8760 rm -f core conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8764 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8765 case "$opsys" in
8766 your-opsys-here) CANNOT_DUMP=yes ;;
8767 esac
8769 test "$CANNOT_DUMP" = "yes" && \
8771 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8777 UNEXEC_OBJ=unexelf.o
8778 case "$opsys" in
8779 # MSDOS uses unexcoff.o
8780 aix4-2)
8781 UNEXEC_OBJ=unexaix.o
8783 cygwin)
8784 UNEXEC_OBJ=unexcw.o
8786 darwin)
8787 UNEXEC_OBJ=unexmacosx.o
8789 hpux10-20 | hpux11)
8790 UNEXEC_OBJ=unexhp9k800.o
8792 mingw32)
8793 UNEXEC_OBJ=unexw32.o
8795 sol2-10)
8796 # Use the Solaris dldump() function, called from unexsol.c, to dump
8797 # emacs, instead of the generic ELF dump code found in unexelf.c.
8798 # The resulting binary has a complete symbol table, and is better
8799 # for debugging and other observability tools (debuggers, pstack, etc).
8801 # If you encounter a problem using dldump(), please consider sending
8802 # a message to the OpenSolaris tools-linking mailing list:
8803 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8805 # It is likely that dldump() works with older Solaris too, but this has
8806 # not been tested, so for now this change is for Solaris 10 or newer.
8807 UNEXEC_OBJ=unexsol.o
8809 esac
8811 LD_SWITCH_SYSTEM=
8812 case "$opsys" in
8813 freebsd|dragonfly)
8814 ## Let `ld' find image libs and similar things in /usr/local/lib.
8815 ## The system compiler, GCC, has apparently been modified to not
8816 ## look there, contrary to what a stock GCC would do.
8817 ### It's not our place to do this. See bug#10313#17.
8818 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8822 gnu-linux)
8823 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8824 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8827 netbsd)
8828 ### It's not our place to do this. See bug#10313#17.
8829 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8833 openbsd)
8834 ## Han Boetes <han@boetes.org> says this is necessary,
8835 ## otherwise Emacs dumps core on elf systems.
8836 LD_SWITCH_SYSTEM="-Z"
8838 esac
8841 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8843 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8844 ## which has not been defined yet. When this was handled with cpp,
8845 ## it was expanded to null when configure sourced the s/*.h file.
8846 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8847 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8848 ## (or somesuch), but because it is supposed to go at the _front_
8849 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8850 ## Compare with the gnu-linux case below, which added to the end
8851 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8852 ## LD_SWITCH_SYSTEM_TEMACS.
8853 case "$opsys" in
8854 netbsd|openbsd)
8855 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8856 esac
8859 C_SWITCH_MACHINE=
8860 case $canonical in
8861 alpha*)
8862 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8863 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8867 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8868 ## With ELF, make sure that all common symbols get allocated to in the
8869 ## data section. Otherwise, the dump of temacs may miss variables in
8870 ## the shared library that have been initialized. For example, with
8871 ## GNU libc, __malloc_initialized would normally be resolved to the
8872 ## shared library's .bss section, which is fatal.
8873 if test "x$GCC" = "xyes"; then
8874 C_SWITCH_MACHINE="-fno-common"
8875 else
8876 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8878 else
8879 UNEXEC_OBJ=unexalpha.o
8882 esac
8887 C_SWITCH_SYSTEM=
8888 ## Some programs in src produce warnings saying certain subprograms
8889 ## are too complex and need a MAXMEM value greater than 2000 for
8890 ## additional optimization. --nils@exp-math.uni-essen.de
8891 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8892 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8893 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
8894 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8895 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8899 LIBS_SYSTEM=
8900 case "$opsys" in
8901 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8902 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8904 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
8906 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8908 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8910 ## Motif needs -lgen.
8911 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8912 esac
8916 ### Make sure subsequent tests use flags consistent with the build flags.
8918 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8919 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8920 else
8921 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8924 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8926 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8930 LIB_MATH=-lm
8931 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8933 case $opsys in
8934 cygwin )
8935 LIB_MATH=
8937 darwin )
8938 ## Adding -lm confuses the dynamic linker, so omit it.
8939 LIB_MATH=
8941 freebsd | dragonfly )
8942 SYSTEM_TYPE=berkeley-unix
8944 gnu-linux | gnu-kfreebsd )
8946 hpux10-20 | hpux11 )
8948 mingw32 )
8949 LIB_MATH=
8950 SYSTEM_TYPE=windows-nt
8952 netbsd | openbsd )
8953 SYSTEM_TYPE=berkeley-unix
8956 sol2* | unixware )
8957 SYSTEM_TYPE=usg-unix-v
8960 esac
8964 cat >>confdefs.h <<_ACEOF
8965 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8966 _ACEOF
8970 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8971 pre_PKG_CONFIG_LIBS=$LIBS
8973 # Extract the first word of "pkg-config", so it can be a program name with args.
8974 set dummy pkg-config; ac_word=$2
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
8979 else
8980 case $PKG_CONFIG in
8981 [\\/]* | ?:[\\/]*)
8982 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8996 done
8997 done
8998 IFS=$as_save_IFS
9000 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9002 esac
9004 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9005 if test -n "$PKG_CONFIG"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9007 $as_echo "$PKG_CONFIG" >&6; }
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9017 HAVE_SOUND=no
9018 if test "${with_sound}" != "no"; then
9019 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9020 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
9021 do :
9022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9023 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9024 #ifdef __MINGW32__
9025 #define WIN32_LEAN_AND_MEAN
9026 #include <windows.h>
9027 #endif
9030 eval as_val=\$$as_ac_Header
9031 if test "x$as_val" = x""yes; then :
9032 cat >>confdefs.h <<_ACEOF
9033 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9034 _ACEOF
9035 have_sound_header=yes
9038 done
9040 if test "${with_sound}" = "ossaudio" || test "${with_sound}" = "yes"; then
9041 # Emulation library used on NetBSD.
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9043 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9044 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 ac_check_lib_save_LIBS=$LIBS
9048 LIBS="-lossaudio $LIBS"
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9052 /* Override any GCC internal prototype to avoid an error.
9053 Use char because int might match the return type of a GCC
9054 builtin and then its argument prototype would still apply. */
9055 #ifdef __cplusplus
9056 extern "C"
9057 #endif
9058 char _oss_ioctl ();
9060 main ()
9062 return _oss_ioctl ();
9064 return 0;
9066 _ACEOF
9067 if ac_fn_c_try_link "$LINENO"; then :
9068 ac_cv_lib_ossaudio__oss_ioctl=yes
9069 else
9070 ac_cv_lib_ossaudio__oss_ioctl=no
9072 rm -f core conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9077 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9078 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9079 LIBSOUND=-lossaudio
9080 else
9081 LIBSOUND=
9084 test "${with_sound}" = "ossaudio" && test -z "$LIBSOUND" && \
9085 as_fn_error "ossaudio sound support requested but not found." "$LINENO" 5
9089 if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then
9090 ALSA_REQUIRED=1.0.0
9091 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9093 succeeded=no
9095 if test "$PKG_CONFIG" = "no" ; then
9096 HAVE_ALSA=no
9097 else
9098 PKG_CONFIG_MIN_VERSION=0.9.0
9099 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9101 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9103 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9104 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9105 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9106 edit_cflags="
9107 s,///*,/,g
9108 s/^/ /
9109 s/ -I/ $isystem/g
9110 s/^ //
9112 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9113 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9115 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9116 succeeded=yes
9117 else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9120 ALSA_CFLAGS=""
9121 ALSA_LIBS=""
9122 ## If we have a custom action on failure, don't print errors, but
9123 ## do set a variable so people can do so. Do it in a subshell
9124 ## to capture any diagnostics in invoking pkg-config.
9125 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9131 else
9132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9137 if test $succeeded = yes; then
9138 HAVE_ALSA=yes
9139 else
9140 HAVE_ALSA=no
9143 if test $HAVE_ALSA = yes; then
9144 SAVE_CFLAGS="$CFLAGS"
9145 SAVE_LIBS="$LIBS"
9146 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9147 LIBS="$ALSA_LIBS $LIBS"
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 #include <asoundlib.h>
9152 main ()
9154 snd_lib_error_set_handler (0);
9156 return 0;
9158 _ACEOF
9159 if ac_fn_c_try_compile "$LINENO"; then :
9160 emacs_alsa_normal=yes
9161 else
9162 emacs_alsa_normal=no
9164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 if test "$emacs_alsa_normal" != yes; then
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <alsa/asoundlib.h>
9170 main ()
9172 snd_lib_error_set_handler (0);
9174 return 0;
9176 _ACEOF
9177 if ac_fn_c_try_compile "$LINENO"; then :
9178 emacs_alsa_subdir=yes
9179 else
9180 emacs_alsa_subdir=no
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 if test "$emacs_alsa_subdir" != yes; then
9184 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9186 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9189 CFLAGS="$SAVE_CFLAGS"
9190 LIBS="$SAVE_LIBS"
9191 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9192 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9194 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9196 elif test "${with_sound}" = "alsa"; then
9197 as_fn_error "ALSA sound support requested but not found." "$LINENO" 5
9200 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9201 case "$opsys" in
9202 gnu-linux|freebsd|netbsd|mingw32)
9204 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9206 HAVE_SOUND=yes
9208 esac
9217 for ac_header in $ac_header_list
9218 do :
9219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9220 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9222 eval as_val=\$$as_ac_Header
9223 if test "x$as_val" = x""yes; then :
9224 cat >>confdefs.h <<_ACEOF
9225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9226 _ACEOF
9230 done
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9251 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 #include <sys/personality.h>
9256 main ()
9258 personality (PER_LINUX32)
9260 return 0;
9262 _ACEOF
9263 if ac_fn_c_try_compile "$LINENO"; then :
9264 emacs_cv_personality_linux32=yes
9265 else
9266 emacs_cv_personality_linux32=no
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9270 $as_echo "$emacs_cv_personality_linux32" >&6; }
9272 if test $emacs_cv_personality_linux32 = yes; then
9274 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9278 for ac_header in term.h
9279 do :
9280 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9281 if test "x$ac_cv_header_term_h" = x""yes; then :
9282 cat >>confdefs.h <<_ACEOF
9283 #define HAVE_TERM_H 1
9284 _ACEOF
9288 done
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9291 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9292 if test "${ac_cv_header_time+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297 #include <sys/types.h>
9298 #include <sys/time.h>
9299 #include <time.h>
9302 main ()
9304 if ((struct tm *) 0)
9305 return 0;
9307 return 0;
9309 _ACEOF
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 ac_cv_header_time=yes
9312 else
9313 ac_cv_header_time=no
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9318 $as_echo "$ac_cv_header_time" >&6; }
9319 if test $ac_cv_header_time = yes; then
9321 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9325 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9328 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9329 ac_have_decl=1
9330 else
9331 ac_have_decl=0
9334 cat >>confdefs.h <<_ACEOF
9335 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9336 _ACEOF
9338 if test $ac_cv_have_decl_sys_siglist != yes; then
9339 # For Tru64, at least:
9340 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9343 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9344 ac_have_decl=1
9345 else
9346 ac_have_decl=0
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9351 _ACEOF
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9355 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9356 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9361 #include <sys/types.h>
9362 #include <sys/wait.h>
9363 #ifndef WEXITSTATUS
9364 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9365 #endif
9366 #ifndef WIFEXITED
9367 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9368 #endif
9371 main ()
9373 int s;
9374 wait (&s);
9375 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9377 return 0;
9379 _ACEOF
9380 if ac_fn_c_try_compile "$LINENO"; then :
9381 ac_cv_header_sys_wait_h=yes
9382 else
9383 ac_cv_header_sys_wait_h=no
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9388 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9389 if test $ac_cv_header_sys_wait_h = yes; then
9391 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9399 for ac_header in net/if.h
9400 do :
9401 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9402 #if HAVE_SYS_SOCKET_H
9403 #include <sys/socket.h>
9404 #endif
9406 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9407 cat >>confdefs.h <<_ACEOF
9408 #define HAVE_NET_IF_H 1
9409 _ACEOF
9413 done
9415 for ac_header in ifaddrs.h
9416 do :
9417 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9418 #if HAVE_SYS_SOCKET_H
9419 #include <sys/socket.h>
9420 #endif
9422 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9423 cat >>confdefs.h <<_ACEOF
9424 #define HAVE_IFADDRS_H 1
9425 _ACEOF
9429 done
9431 for ac_header in net/if_dl.h
9432 do :
9433 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9434 #if HAVE_SYS_SOCKET_H
9435 #include <sys/socket.h>
9436 #endif
9438 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9439 cat >>confdefs.h <<_ACEOF
9440 #define HAVE_NET_IF_DL_H 1
9441 _ACEOF
9445 done
9448 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9449 #if HAVE_SYS_SOCKET_H
9450 #include <sys/socket.h>
9451 #endif
9452 #if HAVE_NET_IF_H
9453 #include <net/if.h>
9454 #endif
9456 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9460 _ACEOF
9464 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9465 #if HAVE_SYS_SOCKET_H
9466 #include <sys/socket.h>
9467 #endif
9468 #if HAVE_NET_IF_H
9469 #include <net/if.h>
9470 #endif
9472 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9474 cat >>confdefs.h <<_ACEOF
9475 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9476 _ACEOF
9480 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9481 #if HAVE_SYS_SOCKET_H
9482 #include <sys/socket.h>
9483 #endif
9484 #if HAVE_NET_IF_H
9485 #include <net/if.h>
9486 #endif
9488 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9490 cat >>confdefs.h <<_ACEOF
9491 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9492 _ACEOF
9496 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$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_broadaddr" = x""yes; then :
9506 cat >>confdefs.h <<_ACEOF
9507 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9508 _ACEOF
9512 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$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_addr" = x""yes; then :
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9524 _ACEOF
9528 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$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_addr_sa_len" = x""yes; then :
9538 cat >>confdefs.h <<_ACEOF
9539 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9540 _ACEOF
9548 DEPFLAGS=
9549 MKDEPDIR=":"
9550 deps_frag=deps.mk
9551 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9553 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9554 HAVE_GNU_MAKE=no
9555 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9556 if test "x$testval" != x; then
9557 HAVE_GNU_MAKE=yes
9558 else
9559 ac_enable_autodepend=no
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9562 $as_echo "$HAVE_GNU_MAKE" >&6; }
9563 if test $HAVE_GNU_MAKE = yes; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9565 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9566 SAVE_CFLAGS="$CFLAGS"
9567 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9572 main ()
9576 return 0;
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"; then :
9581 else
9582 ac_enable_autodepend=no
9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 CFLAGS="$SAVE_CFLAGS"
9586 test -f deps.d || ac_enable_autodepend=no
9587 rm -rf deps.d
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9589 $as_echo "$ac_enable_autodepend" >&6; }
9591 if test $ac_enable_autodepend = yes; then
9592 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9593 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9594 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9595 deps_frag=autodeps.mk
9598 deps_frag=$srcdir/src/$deps_frag
9604 lisp_frag=$srcdir/src/lisp.mk
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9609 $as_echo_n "checking for long file names... " >&6; }
9610 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9611 $as_echo_n "(cached) " >&6
9612 else
9613 ac_cv_sys_long_file_names=yes
9614 # Test for long file names in all the places we know might matter:
9615 # . the current directory, where building will happen
9616 # $prefix/lib where we will be installing things
9617 # $exec_prefix/lib likewise
9618 # $TMPDIR if set, where it might want to write temporary files
9619 # /tmp where it might want to write temporary files
9620 # /var/tmp likewise
9621 # /usr/tmp likewise
9622 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9623 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9624 # in the usual case where exec_prefix is '${prefix}'.
9625 case $ac_dir in #(
9626 . | /* | ?:[\\/]*) ;; #(
9627 *) continue;;
9628 esac
9629 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9630 ac_xdir=$ac_dir/cf$$
9631 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9632 ac_tf1=$ac_xdir/conftest9012345
9633 ac_tf2=$ac_xdir/conftest9012346
9634 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9635 ac_cv_sys_long_file_names=no
9636 rm -f -r "$ac_xdir" 2>/dev/null
9637 test $ac_cv_sys_long_file_names = no && break
9638 done
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9641 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9642 if test $ac_cv_sys_long_file_names = yes; then
9644 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9649 #### Choose a window system.
9651 ## We leave window_system equal to none if
9652 ## we end up building without one. Any new window system should
9653 ## set window_system to an appropriate value and add objects to
9654 ## window-system-specific substs.
9656 window_system=none
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9658 $as_echo_n "checking for X... " >&6; }
9661 # Check whether --with-x was given.
9662 if test "${with_x+set}" = set; then :
9663 withval=$with_x;
9666 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9667 if test "x$with_x" = xno; then
9668 # The user explicitly disabled X.
9669 have_x=disabled
9670 else
9671 case $x_includes,$x_libraries in #(
9672 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9673 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 # One or both of the vars are not set, and there is no cached value.
9677 ac_x_includes=no ac_x_libraries=no
9678 rm -f -r conftest.dir
9679 if mkdir conftest.dir; then
9680 cd conftest.dir
9681 cat >Imakefile <<'_ACEOF'
9682 incroot:
9683 @echo incroot='${INCROOT}'
9684 usrlibdir:
9685 @echo usrlibdir='${USRLIBDIR}'
9686 libdir:
9687 @echo libdir='${LIBDIR}'
9688 _ACEOF
9689 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9691 for ac_var in incroot usrlibdir libdir; do
9692 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9693 done
9694 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9695 for ac_extension in a so sl dylib la dll; do
9696 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9697 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9698 ac_im_usrlibdir=$ac_im_libdir; break
9700 done
9701 # Screen out bogus values from the imake configuration. They are
9702 # bogus both because they are the default anyway, and because
9703 # using them would break gcc on systems where it needs fixed includes.
9704 case $ac_im_incroot in
9705 /usr/include) ac_x_includes= ;;
9706 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9707 esac
9708 case $ac_im_usrlibdir in
9709 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9710 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9711 esac
9713 cd ..
9714 rm -f -r conftest.dir
9717 # Standard set of common directories for X headers.
9718 # Check X11 before X11Rn because it is often a symlink to the current release.
9719 ac_x_header_dirs='
9720 /usr/X11/include
9721 /usr/X11R7/include
9722 /usr/X11R6/include
9723 /usr/X11R5/include
9724 /usr/X11R4/include
9726 /usr/include/X11
9727 /usr/include/X11R7
9728 /usr/include/X11R6
9729 /usr/include/X11R5
9730 /usr/include/X11R4
9732 /usr/local/X11/include
9733 /usr/local/X11R7/include
9734 /usr/local/X11R6/include
9735 /usr/local/X11R5/include
9736 /usr/local/X11R4/include
9738 /usr/local/include/X11
9739 /usr/local/include/X11R7
9740 /usr/local/include/X11R6
9741 /usr/local/include/X11R5
9742 /usr/local/include/X11R4
9744 /usr/X386/include
9745 /usr/x386/include
9746 /usr/XFree86/include/X11
9748 /usr/include
9749 /usr/local/include
9750 /usr/unsupported/include
9751 /usr/athena/include
9752 /usr/local/x11r5/include
9753 /usr/lpp/Xamples/include
9755 /usr/openwin/include
9756 /usr/openwin/share/include'
9758 if test "$ac_x_includes" = no; then
9759 # Guess where to find include files, by looking for Xlib.h.
9760 # First, try using that file with no special directory specified.
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 #include <X11/Xlib.h>
9764 _ACEOF
9765 if ac_fn_c_try_cpp "$LINENO"; then :
9766 # We can compile using X headers with no special include directory.
9767 ac_x_includes=
9768 else
9769 for ac_dir in $ac_x_header_dirs; do
9770 if test -r "$ac_dir/X11/Xlib.h"; then
9771 ac_x_includes=$ac_dir
9772 break
9774 done
9776 rm -f conftest.err conftest.$ac_ext
9777 fi # $ac_x_includes = no
9779 if test "$ac_x_libraries" = no; then
9780 # Check for the libraries.
9781 # See if we find them without any special options.
9782 # Don't add to $LIBS permanently.
9783 ac_save_LIBS=$LIBS
9784 LIBS="-lX11 $LIBS"
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9787 #include <X11/Xlib.h>
9789 main ()
9791 XrmInitialize ()
9793 return 0;
9795 _ACEOF
9796 if ac_fn_c_try_link "$LINENO"; then :
9797 LIBS=$ac_save_LIBS
9798 # We can link X programs with no special library path.
9799 ac_x_libraries=
9800 else
9801 LIBS=$ac_save_LIBS
9802 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9804 # Don't even attempt the hair of trying to link an X program!
9805 for ac_extension in a so sl dylib la dll; do
9806 if test -r "$ac_dir/libX11.$ac_extension"; then
9807 ac_x_libraries=$ac_dir
9808 break 2
9810 done
9811 done
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 fi # $ac_x_libraries = no
9817 case $ac_x_includes,$ac_x_libraries in #(
9818 no,* | *,no | *\'*)
9819 # Didn't find X, or a directory has "'" in its name.
9820 ac_cv_have_x="have_x=no";; #(
9822 # Record where we found X for the cache.
9823 ac_cv_have_x="have_x=yes\
9824 ac_x_includes='$ac_x_includes'\
9825 ac_x_libraries='$ac_x_libraries'"
9826 esac
9828 ;; #(
9829 *) have_x=yes;;
9830 esac
9831 eval "$ac_cv_have_x"
9832 fi # $with_x != no
9834 if test "$have_x" != yes; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9836 $as_echo "$have_x" >&6; }
9837 no_x=yes
9838 else
9839 # If each of the values was on the command line, it overrides each guess.
9840 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9841 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9842 # Update the cache value to reflect the command line values.
9843 ac_cv_have_x="have_x=yes\
9844 ac_x_includes='$x_includes'\
9845 ac_x_libraries='$x_libraries'"
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9847 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9850 if test "$no_x" != yes; then
9851 window_system=x11
9854 LD_SWITCH_X_SITE_RPATH=
9855 if test "${x_libraries}" != NONE; then
9856 if test -n "${x_libraries}"; then
9857 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9858 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9860 x_default_search_path=""
9861 x_search_path=${x_libraries}
9862 if test -z "${x_search_path}"; then
9863 x_search_path=/usr/lib
9865 for x_library in `echo ${x_search_path}: | \
9866 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9867 x_search_path="\
9868 ${x_library}/X11/%L/%T/%N%C%S:\
9869 ${x_library}/X11/%l/%T/%N%C%S:\
9870 ${x_library}/X11/%T/%N%C%S:\
9871 ${x_library}/X11/%L/%T/%N%S:\
9872 ${x_library}/X11/%l/%T/%N%S:\
9873 ${x_library}/X11/%T/%N%S"
9874 if test x"${x_default_search_path}" = x; then
9875 x_default_search_path=${x_search_path}
9876 else
9877 x_default_search_path="${x_search_path}:${x_default_search_path}"
9879 done
9883 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9884 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9887 if test x"${x_includes}" = x; then
9888 bitmapdir=/usr/include/X11/bitmaps
9889 else
9890 # accumulate include directories that have X11 bitmap subdirectories
9891 bmd_acc="dummyval"
9892 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9893 if test -d "${bmd}/X11/bitmaps"; then
9894 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9896 if test -d "${bmd}/bitmaps"; then
9897 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9899 done
9900 if test ${bmd_acc} != "dummyval"; then
9901 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9905 HAVE_NS=no
9906 NS_IMPL_COCOA=no
9907 NS_IMPL_GNUSTEP=no
9908 tmp_CPPFLAGS="$CPPFLAGS"
9909 tmp_CFLAGS="$CFLAGS"
9910 CPPFLAGS="$CPPFLAGS -x objective-c"
9911 CFLAGS="$CFLAGS -x objective-c"
9912 GNU_OBJC_CFLAGS=
9913 LIBS_GNUSTEP=
9914 if test "${with_ns}" != no; then
9915 if test "${opsys}" = darwin; then
9916 NS_IMPL_COCOA=yes
9917 ns_appdir=`pwd`/nextstep/Emacs.app
9918 ns_appbindir=${ns_appdir}/Contents/MacOS
9919 ns_appresdir=${ns_appdir}/Contents/Resources
9920 ns_appsrc=Cocoa/Emacs.base
9921 elif test -f $GNUSTEP_CONFIG_FILE; then
9922 NS_IMPL_GNUSTEP=yes
9923 ns_appdir=`pwd`/nextstep/Emacs.app
9924 ns_appbindir=${ns_appdir}
9925 ns_appresdir=${ns_appdir}/Resources
9926 ns_appsrc=GNUstep/Emacs.base
9927 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9928 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9929 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9930 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9931 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9932 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9933 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9934 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9935 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9936 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9937 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9938 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9940 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9941 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 #include <GNUstepBase/GSConfig.h>
9948 main ()
9950 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9952 #else
9953 fail;
9954 #endif
9956 return 0;
9958 _ACEOF
9959 if ac_fn_c_try_compile "$LINENO"; then :
9960 emacs_cv_objc_exceptions=yes
9961 else
9962 emacs_cv_objc_exceptions=no
9964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9967 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9968 if test $emacs_cv_objc_exceptions = yes; then
9970 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9972 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9976 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9978 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9979 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9980 HAVE_NS=yes
9981 else
9982 as_fn_error "\`--with-ns' was specified, but the include
9983 files are missing or cannot be compiled." "$LINENO" 5
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 #include <AppKit/AppKit.h>
9992 main ()
9995 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9996 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9997 ; /* OK */
9998 #else
9999 #error "OSX 10.4 or newer required"
10000 #endif
10001 #endif
10004 return 0;
10006 _ACEOF
10007 if ac_fn_c_try_compile "$LINENO"; then :
10008 ns_osx_have_104=yes
10009 else
10010 ns_osx_have_104=no
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 #include <Foundation/NSObjCRuntime.h>
10017 main ()
10019 NSInteger i;
10021 return 0;
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025 ns_have_nsinteger=yes
10026 else
10027 ns_have_nsinteger=no
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 if test $ns_osx_have_104 = no; then
10031 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10033 if test $ns_have_nsinteger = yes; then
10035 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10042 INSTALL_ARCH_INDEP_EXTRA=install-etc
10043 ns_self_contained=no
10044 NS_OBJ=
10045 NS_OBJC_OBJ=
10046 if test "${HAVE_NS}" = yes; then
10047 if test "$with_toolkit_scroll_bars" = "no"; then
10048 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10051 window_system=nextstep
10052 # set up packaging dirs
10053 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10054 ns_self_contained=yes
10055 prefix=${ns_appresdir}
10056 exec_prefix=${ns_appbindir}
10057 libexecdir="\${ns_appbindir}/libexec"
10058 archlibdir="\${ns_appbindir}/libexec"
10059 docdir="\${ns_appresdir}/etc"
10060 etcdir="\${ns_appresdir}/etc"
10061 infodir="\${ns_appresdir}/info"
10062 mandir="\${ns_appresdir}/man"
10063 lispdir="\${ns_appresdir}/lisp"
10064 leimdir="\${ns_appresdir}/leim"
10065 INSTALL_ARCH_INDEP_EXTRA=
10067 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10069 CFLAGS="$tmp_CFLAGS"
10070 CPPFLAGS="$tmp_CPPFLAGS"
10076 HAVE_W32=no
10077 W32_OBJ=
10078 W32_LIBS=
10079 EMACSRES=
10080 CLIENTRES=
10081 CLIENTW=
10082 W32_RES_LINK=
10083 EMACS_MANIFEST=
10084 UPDATE_MANIFEST=
10085 if test "${with_w32}" != no; then
10086 case "${opsys}" in
10087 cygwin)
10088 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10089 if test "x$ac_cv_header_windows_h" = x""yes; then :
10090 HAVE_W32=yes
10091 else
10092 as_fn_error "\`--with-w32' was specified, but windows.h
10093 cannot be found." "$LINENO" 5
10098 mingw32)
10099 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10102 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10104 esac
10107 if test "${opsys}" = "mingw32"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10109 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10113 #include <windows.h>
10114 #include <usp10.h>
10116 main ()
10118 PIMAGE_NT_HEADERS pHeader;
10119 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10121 return 0;
10123 _ACEOF
10124 if ac_fn_c_try_compile "$LINENO"; then :
10125 emacs_cv_w32api=yes
10126 HAVE_W32=yes
10127 else
10128 emacs_cv_w32api=no
10130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10132 $as_echo "$emacs_cv_w32api" >&6; }
10133 if test "${emacs_cv_w32api}" = "no"; then
10134 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10138 FIRSTFILE_OBJ=
10139 NTDIR=
10140 LIBS_ECLIENT=
10141 LIB_WSOCK32=
10142 NTLIB=
10143 CM_OBJ="cm.o"
10144 XARGS_LIMIT=
10145 if test "${HAVE_W32}" = "yes"; then
10147 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10149 if test -n "$ac_tool_prefix"; then
10150 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10151 set dummy ${ac_tool_prefix}windres; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
10156 else
10157 if test -n "$WINDRES"; then
10158 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10159 else
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10167 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 break 2
10171 done
10172 done
10173 IFS=$as_save_IFS
10177 WINDRES=$ac_cv_prog_WINDRES
10178 if test -n "$WINDRES"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10180 $as_echo "$WINDRES" >&6; }
10181 else
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10188 if test -z "$ac_cv_prog_WINDRES"; then
10189 ac_ct_WINDRES=$WINDRES
10190 # Extract the first word of "windres", so it can be a program name with args.
10191 set dummy windres; ac_word=$2
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193 $as_echo_n "checking for $ac_word... " >&6; }
10194 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 if test -n "$ac_ct_WINDRES"; then
10198 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10199 else
10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201 for as_dir in $PATH
10203 IFS=$as_save_IFS
10204 test -z "$as_dir" && as_dir=.
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10207 ac_cv_prog_ac_ct_WINDRES="windres"
10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10209 break 2
10211 done
10212 done
10213 IFS=$as_save_IFS
10217 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10218 if test -n "$ac_ct_WINDRES"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10220 $as_echo "$ac_ct_WINDRES" >&6; }
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10226 if test "x$ac_ct_WINDRES" = x; then
10227 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10228 else
10229 case $cross_compiling:$ac_tool_warned in
10230 yes:)
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10233 ac_tool_warned=yes ;;
10234 esac
10235 WINDRES=$ac_ct_WINDRES
10237 else
10238 WINDRES="$ac_cv_prog_WINDRES"
10241 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10242 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10243 EMACSRES="emacs.res"
10244 case "$canonical" in
10245 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10246 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10247 esac
10248 UPDATE_MANIFEST=update-game-score.exe.manifest
10249 if test "${opsys}" = "cygwin"; then
10250 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10251 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10252 # Tell the linker that emacs.res is an object (which we compile from
10253 # the rc file), not a linker script.
10254 W32_RES_LINK="-Wl,emacs.res"
10255 else
10256 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10257 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10258 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10259 W32_RES_LINK="\$(EMACSRES)"
10260 CLIENTRES="emacsclient.res"
10261 CLIENTW="emacsclientw\$(EXEEXT)"
10262 FIRSTFILE_OBJ=firstfile.o
10263 NTDIR=nt
10264 CM_OBJ=
10265 LIBS_ECLIENT="-lcomctl32"
10266 LIB_WSOCK32="-lwsock32"
10267 NTLIB="ntlib.$ac_objext"
10268 XARGS_LIMIT="-s 10000"
10287 if test "${HAVE_W32}" = "yes"; then
10288 window_system=w32
10289 with_xft=no
10292 ## $window_system is now set to the window system we will
10293 ## ultimately use.
10295 term_header=
10296 HAVE_X_WINDOWS=no
10297 HAVE_X11=no
10298 USE_X_TOOLKIT=none
10300 case "${window_system}" in
10301 x11 )
10302 HAVE_X_WINDOWS=yes
10303 HAVE_X11=yes
10304 term_header=xterm.h
10305 case "${with_x_toolkit}" in
10306 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10307 motif ) USE_X_TOOLKIT=MOTIF ;;
10308 gtk ) with_gtk=yes
10309 term_header=gtkutil.h
10310 USE_X_TOOLKIT=none ;;
10311 gtk2 ) with_gtk2=yes
10312 term_header=gtkutil.h
10313 USE_X_TOOLKIT=none ;;
10314 gtk3 ) with_gtk3=yes
10315 term_header=gtkutil.h
10316 USE_X_TOOLKIT=none ;;
10317 no ) USE_X_TOOLKIT=none ;;
10318 * ) USE_X_TOOLKIT=maybe ;;
10319 esac
10321 nextstep )
10322 term_header=nsterm.h
10324 w32 )
10325 term_header=w32term.h
10327 esac
10329 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10330 # Extract the first word of "X", so it can be a program name with args.
10331 set dummy X; ac_word=$2
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10333 $as_echo_n "checking for $ac_word... " >&6; }
10334 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 if test -n "$HAVE_XSERVER"; then
10338 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10339 else
10340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10341 for as_dir in $PATH
10343 IFS=$as_save_IFS
10344 test -z "$as_dir" && as_dir=.
10345 for ac_exec_ext in '' $ac_executable_extensions; do
10346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10347 ac_cv_prog_HAVE_XSERVER="true"
10348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 break 2
10351 done
10352 done
10353 IFS=$as_save_IFS
10355 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10358 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10359 if test -n "$HAVE_XSERVER"; then
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10361 $as_echo "$HAVE_XSERVER" >&6; }
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; }
10368 if test "$HAVE_XSERVER" = true ||
10369 test -n "$DISPLAY" ||
10370 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10371 as_fn_error "You seem to be running X, but no X development libraries
10372 were found. You should install the relevant development files for X
10373 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10374 sure you have development files for image handling, i.e.
10375 tiff, gif, jpeg, png and xpm.
10376 If you are sure you want Emacs compiled without X window support, pass
10377 --without-x
10378 to configure." "$LINENO" 5
10382 ### If we're using X11, we should use the X menu package.
10383 HAVE_MENUS=no
10384 case ${HAVE_X11} in
10385 yes ) HAVE_MENUS=yes ;;
10386 esac
10388 # Does the opsystem file prohibit the use of the GNU malloc?
10389 # Assume not, until told otherwise.
10390 GNU_MALLOC=yes
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10393 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10394 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 #include <malloc.h>
10400 static void hook (void) {}
10402 main ()
10404 malloc_set_state (malloc_get_state ());
10405 __after_morecore_hook = hook;
10406 __malloc_initialize_hook = hook;
10408 return 0;
10410 _ACEOF
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 emacs_cv_var_doug_lea_malloc=yes
10413 else
10414 emacs_cv_var_doug_lea_malloc=no
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10420 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10421 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10424 system_malloc=no
10425 case "$opsys" in
10426 ## darwin ld insists on the use of malloc routines in the System framework.
10427 darwin|sol2-10) system_malloc=yes ;;
10428 esac
10430 if test "${system_malloc}" = "yes"; then
10432 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10434 GNU_MALLOC=no
10435 GNU_MALLOC_reason="
10436 (The GNU allocators don't work with this system configuration.)"
10437 GMALLOC_OBJ=
10438 VMLIMIT_OBJ=
10439 else
10440 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10441 VMLIMIT_OBJ=vm-limit.o
10443 for ac_header in sys/vlimit.h
10444 do :
10445 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10446 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10447 cat >>confdefs.h <<_ACEOF
10448 #define HAVE_SYS_VLIMIT_H 1
10449 _ACEOF
10453 done
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10456 $as_echo_n "checking for data_start... " >&6; }
10457 if test "${emacs_cv_data_start+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 extern char data_start[]; char ch;
10464 main ()
10466 return data_start < &ch;
10468 return 0;
10470 _ACEOF
10471 if ac_fn_c_try_link "$LINENO"; then :
10472 emacs_cv_data_start=yes
10473 else
10474 emacs_cv_data_start=no
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10480 $as_echo "$emacs_cv_data_start" >&6; }
10481 if test $emacs_cv_data_start = yes; then
10483 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10490 if test "$doug_lea_malloc" = "yes" ; then
10491 if test "$GNU_MALLOC" = yes ; then
10492 GNU_MALLOC_reason="
10493 (Using Doug Lea's new malloc from the GNU C Library.)"
10496 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10499 ## Use mmap directly for allocating larger buffers.
10500 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10501 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10502 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10503 case "$opsys" in
10504 gnu*) REL_ALLOC=no ;;
10505 esac
10508 if test x"${REL_ALLOC}" = x; then
10509 REL_ALLOC=${GNU_MALLOC}
10512 use_mmap_for_buffers=no
10513 case "$opsys" in
10514 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10515 esac
10524 for ac_func in getpagesize
10525 do :
10526 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10527 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_GETPAGESIZE 1
10530 _ACEOF
10533 done
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10536 $as_echo_n "checking for working mmap... " >&6; }
10537 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test "$cross_compiling" = yes; then :
10541 ac_cv_func_mmap_fixed_mapped=no
10542 else
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 $ac_includes_default
10546 /* malloc might have been renamed as rpl_malloc. */
10547 #undef malloc
10549 /* Thanks to Mike Haertel and Jim Avera for this test.
10550 Here is a matrix of mmap possibilities:
10551 mmap private not fixed
10552 mmap private fixed at somewhere currently unmapped
10553 mmap private fixed at somewhere already mapped
10554 mmap shared not fixed
10555 mmap shared fixed at somewhere currently unmapped
10556 mmap shared fixed at somewhere already mapped
10557 For private mappings, we should verify that changes cannot be read()
10558 back from the file, nor mmap's back from the file at a different
10559 address. (There have been systems where private was not correctly
10560 implemented like the infamous i386 svr4.0, and systems where the
10561 VM page cache was not coherent with the file system buffer cache
10562 like early versions of FreeBSD and possibly contemporary NetBSD.)
10563 For shared mappings, we should conversely verify that changes get
10564 propagated back to all the places they're supposed to be.
10566 Grep wants private fixed already mapped.
10567 The main things grep needs to know about mmap are:
10568 * does it exist and is it safe to write into the mmap'd area
10569 * how to use it (BSD variants) */
10571 #include <fcntl.h>
10572 #include <sys/mman.h>
10574 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10575 char *malloc ();
10576 #endif
10578 /* This mess was copied from the GNU getpagesize.h. */
10579 #ifndef HAVE_GETPAGESIZE
10580 # ifdef _SC_PAGESIZE
10581 # define getpagesize() sysconf(_SC_PAGESIZE)
10582 # else /* no _SC_PAGESIZE */
10583 # ifdef HAVE_SYS_PARAM_H
10584 # include <sys/param.h>
10585 # ifdef EXEC_PAGESIZE
10586 # define getpagesize() EXEC_PAGESIZE
10587 # else /* no EXEC_PAGESIZE */
10588 # ifdef NBPG
10589 # define getpagesize() NBPG * CLSIZE
10590 # ifndef CLSIZE
10591 # define CLSIZE 1
10592 # endif /* no CLSIZE */
10593 # else /* no NBPG */
10594 # ifdef NBPC
10595 # define getpagesize() NBPC
10596 # else /* no NBPC */
10597 # ifdef PAGESIZE
10598 # define getpagesize() PAGESIZE
10599 # endif /* PAGESIZE */
10600 # endif /* no NBPC */
10601 # endif /* no NBPG */
10602 # endif /* no EXEC_PAGESIZE */
10603 # else /* no HAVE_SYS_PARAM_H */
10604 # define getpagesize() 8192 /* punt totally */
10605 # endif /* no HAVE_SYS_PARAM_H */
10606 # endif /* no _SC_PAGESIZE */
10608 #endif /* no HAVE_GETPAGESIZE */
10611 main ()
10613 char *data, *data2, *data3;
10614 const char *cdata2;
10615 int i, pagesize;
10616 int fd, fd2;
10618 pagesize = getpagesize ();
10620 /* First, make a file with some known garbage in it. */
10621 data = (char *) malloc (pagesize);
10622 if (!data)
10623 return 1;
10624 for (i = 0; i < pagesize; ++i)
10625 *(data + i) = rand ();
10626 umask (0);
10627 fd = creat ("conftest.mmap", 0600);
10628 if (fd < 0)
10629 return 2;
10630 if (write (fd, data, pagesize) != pagesize)
10631 return 3;
10632 close (fd);
10634 /* Next, check that the tail of a page is zero-filled. File must have
10635 non-zero length, otherwise we risk SIGBUS for entire page. */
10636 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10637 if (fd2 < 0)
10638 return 4;
10639 cdata2 = "";
10640 if (write (fd2, cdata2, 1) != 1)
10641 return 5;
10642 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10643 if (data2 == MAP_FAILED)
10644 return 6;
10645 for (i = 0; i < pagesize; ++i)
10646 if (*(data2 + i))
10647 return 7;
10648 close (fd2);
10649 if (munmap (data2, pagesize))
10650 return 8;
10652 /* Next, try to mmap the file at a fixed address which already has
10653 something else allocated at it. If we can, also make sure that
10654 we see the same garbage. */
10655 fd = open ("conftest.mmap", O_RDWR);
10656 if (fd < 0)
10657 return 9;
10658 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10659 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10660 return 10;
10661 for (i = 0; i < pagesize; ++i)
10662 if (*(data + i) != *(data2 + i))
10663 return 11;
10665 /* Finally, make sure that changes to the mapped area do not
10666 percolate back to the file as seen by read(). (This is a bug on
10667 some variants of i386 svr4.0.) */
10668 for (i = 0; i < pagesize; ++i)
10669 *(data2 + i) = *(data2 + i) + 1;
10670 data3 = (char *) malloc (pagesize);
10671 if (!data3)
10672 return 12;
10673 if (read (fd, data3, pagesize) != pagesize)
10674 return 13;
10675 for (i = 0; i < pagesize; ++i)
10676 if (*(data + i) != *(data3 + i))
10677 return 14;
10678 close (fd);
10679 return 0;
10681 _ACEOF
10682 if ac_fn_c_try_run "$LINENO"; then :
10683 ac_cv_func_mmap_fixed_mapped=yes
10684 else
10685 ac_cv_func_mmap_fixed_mapped=no
10687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10688 conftest.$ac_objext conftest.beam conftest.$ac_ext
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10693 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10694 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10696 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10699 rm -f conftest.mmap conftest.txt
10701 if test $use_mmap_for_buffers = yes; then
10703 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10705 REL_ALLOC=no
10708 LIBS="$LIBS_SYSTEM $LIBS"
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10711 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10712 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10714 else
10715 ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-ldnet $LIBS"
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10720 /* Override any GCC internal prototype to avoid an error.
10721 Use char because int might match the return type of a GCC
10722 builtin and then its argument prototype would still apply. */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char dnet_ntoa ();
10728 main ()
10730 return dnet_ntoa ();
10732 return 0;
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 ac_cv_lib_dnet_dnet_ntoa=yes
10737 else
10738 ac_cv_lib_dnet_dnet_ntoa=no
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10745 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10746 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10747 cat >>confdefs.h <<_ACEOF
10748 #define HAVE_LIBDNET 1
10749 _ACEOF
10751 LIBS="-ldnet $LIBS"
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10757 $as_echo_n "checking for main in -lXbsd... " >&6; }
10758 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-lXbsd $LIBS"
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10768 main ()
10770 return main ();
10772 return 0;
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10776 ac_cv_lib_Xbsd_main=yes
10777 else
10778 ac_cv_lib_Xbsd_main=no
10780 rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10785 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10786 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10787 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10791 LIB_PTHREAD=
10795 if test "$ac_cv_header_pthread_h"; then
10796 if test "$GMALLOC_OBJ" = gmalloc.o; then
10797 emacs_pthread_function=pthread_atfork
10798 else
10799 emacs_pthread_function=pthread_self
10801 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10803 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10804 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10805 $as_echo_n "(cached) " >&6
10806 else
10807 ac_check_lib_save_LIBS=$LIBS
10808 LIBS="-lpthread $LIBS"
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10812 /* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10815 #ifdef __cplusplus
10816 extern "C"
10817 #endif
10818 char $emacs_pthread_function ();
10820 main ()
10822 return $emacs_pthread_function ();
10824 return 0;
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828 eval "$as_ac_Lib=yes"
10829 else
10830 eval "$as_ac_Lib=no"
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10836 eval ac_res=\$$as_ac_Lib
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10838 $as_echo "$ac_res" >&6; }
10839 eval as_val=\$$as_ac_Lib
10840 if test "x$as_val" = x""yes; then :
10841 HAVE_PTHREAD=yes
10845 if test "$HAVE_PTHREAD" = yes; then
10846 case "${canonical}" in
10847 *-hpux*) ;;
10848 *) LIB_PTHREAD="-lpthread"
10849 LIBS="$LIB_PTHREAD $LIBS" ;;
10850 esac
10852 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10858 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10859 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lpthreads $LIBS"
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char cma_open ();
10875 main ()
10877 return cma_open ();
10879 return 0;
10881 _ACEOF
10882 if ac_fn_c_try_link "$LINENO"; then :
10883 ac_cv_lib_pthreads_cma_open=yes
10884 else
10885 ac_cv_lib_pthreads_cma_open=no
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10892 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10893 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_LIBPTHREADS 1
10896 _ACEOF
10898 LIBS="-lpthreads $LIBS"
10903 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10904 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10905 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10906 ## added to LIBS in configure would never contain the pthreads part,
10907 ## but the value used in Makefiles might. FIXME?
10909 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10910 ## be harmless on older versions of X where it happens to exist.
10911 test "$opsys" = "aix4-2" && \
10912 test $ac_cv_lib_pthreads_cma_open = yes && \
10913 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10916 case ${host_os} in
10917 aix*)
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10919 $as_echo_n "checking for -bbigtoc option... " >&6; }
10920 if test "${gdb_cv_bigtoc+set}" = set; then :
10921 $as_echo_n "(cached) " >&6
10922 else
10924 case $GCC in
10925 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10926 *) gdb_cv_bigtoc=-bbigtoc ;;
10927 esac
10929 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10931 /* end confdefs.h. */
10934 main ()
10936 int i;
10938 return 0;
10940 _ACEOF
10941 if ac_fn_c_try_link "$LINENO"; then :
10943 else
10944 gdb_cv_bigtoc=
10946 rm -f core conftest.err conftest.$ac_objext \
10947 conftest$ac_exeext conftest.$ac_ext
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10951 $as_echo "$gdb_cv_bigtoc" >&6; }
10953 esac
10955 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10956 # used for the tests that follow. We set them back to REAL_CFLAGS and
10957 # REAL_CPPFLAGS later on.
10959 REAL_CFLAGS="$CFLAGS"
10960 REAL_CPPFLAGS="$CPPFLAGS"
10962 if test "${HAVE_X11}" = "yes"; then
10963 DEFS="$C_SWITCH_X_SITE $DEFS"
10964 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10965 LIBS="-lX11 $LIBS"
10966 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10967 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10969 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10970 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10971 # but it's more convenient here to set LD_RUN_PATH since this
10972 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10973 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10974 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10975 export LD_RUN_PATH
10978 if test "${opsys}" = "gnu-linux"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10980 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10985 main ()
10987 XOpenDisplay ("foo");
10989 return 0;
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"; then :
10993 xgnu_linux_first_failure=no
10994 else
10995 xgnu_linux_first_failure=yes
10997 rm -f core conftest.err conftest.$ac_objext \
10998 conftest$ac_exeext conftest.$ac_ext
10999 if test "${xgnu_linux_first_failure}" = "yes"; then
11000 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11001 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11002 OLD_CPPFLAGS="$CPPFLAGS"
11003 OLD_LIBS="$LIBS"
11004 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11005 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11006 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11007 LIBS="$LIBS -b i486-linuxaout"
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11012 main ()
11014 XOpenDisplay ("foo");
11016 return 0;
11018 _ACEOF
11019 if ac_fn_c_try_link "$LINENO"; then :
11020 xgnu_linux_second_failure=no
11021 else
11022 xgnu_linux_second_failure=yes
11024 rm -f core conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 if test "${xgnu_linux_second_failure}" = "yes"; then
11027 # If we get the same failure with -b, there is no use adding -b.
11028 # So take it out. This plays safe.
11029 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11030 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11031 CPPFLAGS="$OLD_CPPFLAGS"
11032 LIBS="$OLD_LIBS"
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11035 else
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037 $as_echo "yes" >&6; }
11039 else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041 $as_echo "no" >&6; }
11045 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11046 # header files included from there.
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11048 $as_echo_n "checking for Xkb... " >&6; }
11049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11051 #include <X11/Xlib.h>
11052 #include <X11/XKBlib.h>
11054 main ()
11056 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11058 return 0;
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 emacs_xkb=yes
11063 else
11064 emacs_xkb=no
11066 rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11069 $as_echo "$emacs_xkb" >&6; }
11070 if test $emacs_xkb = yes; then
11072 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11076 for ac_func in XrmSetDatabase XScreenResourceString \
11077 XScreenNumberOfScreen
11078 do :
11079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11081 eval as_val=\$$as_ac_var
11082 if test "x$as_val" = x""yes; then :
11083 cat >>confdefs.h <<_ACEOF
11084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11085 _ACEOF
11088 done
11092 if test "${window_system}" = "x11"; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11094 $as_echo_n "checking X11 version 6... " >&6; }
11095 if test "${emacs_cv_x11_version_6+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11100 #include <X11/Xlib.h>
11102 main ()
11104 #if XlibSpecificationRelease < 6
11105 fail;
11106 #endif
11109 return 0;
11111 _ACEOF
11112 if ac_fn_c_try_link "$LINENO"; then :
11113 emacs_cv_x11_version_6=yes
11114 else
11115 emacs_cv_x11_version_6=no
11117 rm -f core conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
11121 if test $emacs_cv_x11_version_6 = yes; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11123 $as_echo "6 or newer" >&6; }
11125 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11128 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11130 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11131 ## XIM support.
11132 case "$opsys" in
11133 sol2-*) : ;;
11135 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11138 esac
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11141 $as_echo "before 6" >&6; }
11146 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11147 HAVE_RSVG=no
11148 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11149 if test "${with_rsvg}" != "no"; then
11150 RSVG_REQUIRED=2.11.0
11151 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11154 succeeded=no
11156 if test "$PKG_CONFIG" = "no" ; then
11158 else
11159 PKG_CONFIG_MIN_VERSION=0.9.0
11160 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11162 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11164 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11165 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11166 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11167 edit_cflags="
11168 s,///*,/,g
11169 s/^/ /
11170 s/ -I/ $isystem/g
11171 s/^ //
11173 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11174 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11176 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11177 succeeded=yes
11178 else
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11181 RSVG_CFLAGS=""
11182 RSVG_LIBS=""
11183 ## If we have a custom action on failure, don't print errors, but
11184 ## do set a variable so people can do so. Do it in a subshell
11185 ## to capture any diagnostics in invoking pkg-config.
11186 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11192 else
11193 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11194 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11198 if test $succeeded = yes; then
11199 HAVE_RSVG=yes
11200 else
11207 if test $HAVE_RSVG = yes; then
11209 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11211 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11212 LIBS="$RSVG_LIBS $LIBS"
11217 HAVE_IMAGEMAGICK=no
11218 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11219 if test "${with_imagemagick}" != "no"; then
11220 ## 6.2.8 is the earliest version known to work, but earlier versions
11221 ## might work - let us know if you find one.
11222 ## 6.0.7 does not work. See bug#7955.
11223 ## 6.8.2 makes Emacs crash; see Bug#13867.
11224 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11226 succeeded=no
11228 if test "$PKG_CONFIG" = "no" ; then
11230 else
11231 PKG_CONFIG_MIN_VERSION=0.9.0
11232 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11234 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11236 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11237 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11238 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11239 edit_cflags="
11240 s,///*,/,g
11241 s/^/ /
11242 s/ -I/ $isystem/g
11243 s/^ //
11245 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11246 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11248 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11249 succeeded=yes
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 IMAGEMAGICK_CFLAGS=""
11254 IMAGEMAGICK_LIBS=""
11255 ## If we have a custom action on failure, don't print errors, but
11256 ## do set a variable so people can do so. Do it in a subshell
11257 ## to capture any diagnostics in invoking pkg-config.
11258 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11264 else
11265 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11266 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11270 if test $succeeded = yes; then
11271 HAVE_IMAGEMAGICK=yes
11272 else
11279 if test $HAVE_IMAGEMAGICK = yes; then
11281 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11283 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11284 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11285 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11286 do :
11287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11288 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11289 eval as_val=\$$as_ac_var
11290 if test "x$as_val" = x""yes; then :
11291 cat >>confdefs.h <<_ACEOF
11292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11293 _ACEOF
11296 done
11303 HAVE_GTK=no
11304 GTK_OBJ=
11305 gtk_term_header=$term_header
11306 check_gtk2=no
11307 gtk3_pkg_errors=
11308 if test "${opsys}" != "mingw32"; then
11309 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11310 GLIB_REQUIRED=2.28
11311 GTK_REQUIRED=3.0
11312 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11315 succeeded=no
11317 if test "$PKG_CONFIG" = "no" ; then
11318 pkg_check_gtk=no
11319 else
11320 PKG_CONFIG_MIN_VERSION=0.9.0
11321 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11323 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11325 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11326 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11327 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11328 edit_cflags="
11329 s,///*,/,g
11330 s/^/ /
11331 s/ -I/ $isystem/g
11332 s/^ //
11334 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11335 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11337 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11338 succeeded=yes
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341 $as_echo "no" >&6; }
11342 GTK_CFLAGS=""
11343 GTK_LIBS=""
11344 ## If we have a custom action on failure, don't print errors, but
11345 ## do set a variable so people can do so. Do it in a subshell
11346 ## to capture any diagnostics in invoking pkg-config.
11347 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11353 else
11354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11359 if test $succeeded = yes; then
11360 pkg_check_gtk=yes
11361 else
11362 pkg_check_gtk=no
11365 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11366 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11368 if test "$pkg_check_gtk" = "yes"; then
11370 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11372 GTK_OBJ=emacsgtkfixed.o
11373 gtk_term_header=gtkutil.h
11374 USE_GTK_TOOLKIT="GTK3"
11375 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11376 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11377 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11379 else
11380 check_gtk2=yes
11381 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11385 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11386 GLIB_REQUIRED=2.10
11387 GTK_REQUIRED=2.10
11388 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11391 succeeded=no
11393 if test "$PKG_CONFIG" = "no" ; then
11394 pkg_check_gtk=no
11395 else
11396 PKG_CONFIG_MIN_VERSION=0.9.0
11397 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11399 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11401 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11402 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11403 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11404 edit_cflags="
11405 s,///*,/,g
11406 s/^/ /
11407 s/ -I/ $isystem/g
11408 s/^ //
11410 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11411 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11413 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11414 succeeded=yes
11415 else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417 $as_echo "no" >&6; }
11418 GTK_CFLAGS=""
11419 GTK_LIBS=""
11420 ## If we have a custom action on failure, don't print errors, but
11421 ## do set a variable so people can do so. Do it in a subshell
11422 ## to capture any diagnostics in invoking pkg-config.
11423 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11429 else
11430 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11431 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11435 if test $succeeded = yes; then
11436 pkg_check_gtk=yes
11437 else
11438 pkg_check_gtk=no
11441 if test "$pkg_check_gtk" = "no" &&
11442 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11443 then
11444 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11446 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11450 if test x"$pkg_check_gtk" = xyes; then
11454 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11455 CFLAGS="$CFLAGS $GTK_CFLAGS"
11456 LIBS="$GTK_LIBS $LIBS"
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11458 $as_echo_n "checking whether GTK compiles... " >&6; }
11459 GTK_COMPILES=no
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462 /* Check the Gtk and Glib APIs. */
11463 #include <gtk/gtk.h>
11464 #include <glib-object.h>
11465 static void
11466 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11470 main ()
11473 GtkSettings *gs = 0;
11474 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11475 strict C prohibits this. Use gtk_main_iteration to test that the
11476 libraries are there. */
11477 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11478 0, 0, 0, G_CALLBACK (callback), 0))
11479 gtk_main_iteration ();
11482 return 0;
11484 _ACEOF
11485 if ac_fn_c_try_link "$LINENO"; then :
11486 GTK_COMPILES=yes
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11491 $as_echo "$GTK_COMPILES" >&6; }
11492 if test "${GTK_COMPILES}" != "yes"; then
11493 GTK_OBJ=
11494 if test "$USE_X_TOOLKIT" != "maybe"; then
11495 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11497 else
11498 HAVE_GTK=yes
11500 $as_echo "#define USE_GTK 1" >>confdefs.h
11502 GTK_OBJ="gtkutil.o $GTK_OBJ"
11503 term_header=$gtk_term_header
11504 USE_X_TOOLKIT=none
11505 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11509 closing open displays. This is no problem if you just use
11510 one display, but if you use more than one and close one of them
11511 Emacs may crash." >&5
11512 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11513 closing open displays. This is no problem if you just use
11514 one display, but if you use more than one and close one of them
11515 Emacs may crash." >&2;}
11516 sleep 3
11524 if test "${HAVE_GTK}" = "yes"; then
11526 if test "$with_toolkit_scroll_bars" != no; then
11527 with_toolkit_scroll_bars=yes
11530 HAVE_GTK_FILE_SELECTION=no
11531 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11532 #include <gtk/gtk.h>
11534 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11535 HAVE_GTK_FILE_SELECTION=yes
11536 else
11537 HAVE_GTK_FILE_SELECTION=no
11540 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11541 for ac_func in gtk_file_selection_new
11542 do :
11543 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11544 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11545 cat >>confdefs.h <<_ACEOF
11546 #define HAVE_GTK_FILE_SELECTION_NEW 1
11547 _ACEOF
11550 done
11554 HAVE_GTK_HANDLE_BOX=no
11555 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11556 #include <gtk/gtk.h>
11558 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11559 HAVE_GTK_HANDLE_BOX=yes
11560 else
11561 HAVE_GTK_HANDLE_BOX=no
11564 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11565 for ac_func in gtk_handle_box_new
11566 do :
11567 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11568 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11569 cat >>confdefs.h <<_ACEOF
11570 #define HAVE_GTK_HANDLE_BOX_NEW 1
11571 _ACEOF
11574 done
11578 HAVE_GTK_TEAROFF_MENU_ITEM=no
11579 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11580 #include <gtk/gtk.h>
11582 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11583 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11584 else
11585 HAVE_GTK_TEAROFF_MENU_ITEM=no
11588 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11589 for ac_func in gtk_tearoff_menu_item_new
11590 do :
11591 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11592 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11593 cat >>confdefs.h <<_ACEOF
11594 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11595 _ACEOF
11598 done
11602 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11603 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11604 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11605 gtk_orientable_set_orientation \
11606 gtk_window_set_has_resize_grip
11607 do :
11608 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11609 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11610 eval as_val=\$$as_ac_var
11611 if test "x$as_val" = x""yes; then :
11612 cat >>confdefs.h <<_ACEOF
11613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11614 _ACEOF
11617 done
11620 term_header=gtkutil.h
11623 HAVE_DBUS=no
11624 DBUS_OBJ=
11625 if test "${with_dbus}" = "yes"; then
11627 succeeded=no
11629 if test "$PKG_CONFIG" = "no" ; then
11630 HAVE_DBUS=no
11631 else
11632 PKG_CONFIG_MIN_VERSION=0.9.0
11633 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11635 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11637 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11638 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11639 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11640 edit_cflags="
11641 s,///*,/,g
11642 s/^/ /
11643 s/ -I/ $isystem/g
11644 s/^ //
11646 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11647 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11649 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11650 succeeded=yes
11651 else
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 DBUS_CFLAGS=""
11655 DBUS_LIBS=""
11656 ## If we have a custom action on failure, don't print errors, but
11657 ## do set a variable so people can do so. Do it in a subshell
11658 ## to capture any diagnostics in invoking pkg-config.
11659 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11665 else
11666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11671 if test $succeeded = yes; then
11672 HAVE_DBUS=yes
11673 else
11674 HAVE_DBUS=no
11677 if test "$HAVE_DBUS" = yes; then
11678 LIBS="$LIBS $DBUS_LIBS"
11680 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11682 for ac_func in dbus_watch_get_unix_fd \
11683 dbus_type_is_valid \
11684 dbus_validate_bus_name \
11685 dbus_validate_path \
11686 dbus_validate_interface \
11687 dbus_validate_member
11688 do :
11689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11690 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11691 eval as_val=\$$as_ac_var
11692 if test "x$as_val" = x""yes; then :
11693 cat >>confdefs.h <<_ACEOF
11694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11695 _ACEOF
11698 done
11700 DBUS_OBJ=dbusbind.o
11705 HAVE_GSETTINGS=no
11706 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11708 succeeded=no
11710 if test "$PKG_CONFIG" = "no" ; then
11711 HAVE_GSETTINGS=no
11712 else
11713 PKG_CONFIG_MIN_VERSION=0.9.0
11714 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11716 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11718 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11719 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11720 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11721 edit_cflags="
11722 s,///*,/,g
11723 s/^/ /
11724 s/ -I/ $isystem/g
11725 s/^ //
11727 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11728 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11730 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11731 succeeded=yes
11732 else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 GSETTINGS_CFLAGS=""
11736 GSETTINGS_LIBS=""
11737 ## If we have a custom action on failure, don't print errors, but
11738 ## do set a variable so people can do so. Do it in a subshell
11739 ## to capture any diagnostics in invoking pkg-config.
11740 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11746 else
11747 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11748 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11752 if test $succeeded = yes; then
11753 HAVE_GSETTINGS=yes
11754 else
11755 HAVE_GSETTINGS=no
11758 if test "$HAVE_GSETTINGS" = "yes"; then
11760 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11762 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11763 SETTINGS_LIBS="$GSETTINGS_LIBS"
11767 HAVE_GCONF=no
11768 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11770 succeeded=no
11772 if test "$PKG_CONFIG" = "no" ; then
11773 HAVE_GCONF=no
11774 else
11775 PKG_CONFIG_MIN_VERSION=0.9.0
11776 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11778 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11780 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11781 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11782 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11783 edit_cflags="
11784 s,///*,/,g
11785 s/^/ /
11786 s/ -I/ $isystem/g
11787 s/^ //
11789 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11790 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11792 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11793 succeeded=yes
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11797 GCONF_CFLAGS=""
11798 GCONF_LIBS=""
11799 ## If we have a custom action on failure, don't print errors, but
11800 ## do set a variable so people can do so. Do it in a subshell
11801 ## to capture any diagnostics in invoking pkg-config.
11802 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11808 else
11809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11814 if test $succeeded = yes; then
11815 HAVE_GCONF=yes
11816 else
11817 HAVE_GCONF=no
11820 if test "$HAVE_GCONF" = yes; then
11822 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11824 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11825 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11829 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11831 succeeded=no
11833 if test "$PKG_CONFIG" = "no" ; then
11834 HAVE_GOBJECT=no
11835 else
11836 PKG_CONFIG_MIN_VERSION=0.9.0
11837 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11839 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11841 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11842 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11843 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11844 edit_cflags="
11845 s,///*,/,g
11846 s/^/ /
11847 s/ -I/ $isystem/g
11848 s/^ //
11850 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11851 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11853 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11854 succeeded=yes
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11858 GOBJECT_CFLAGS=""
11859 GOBJECT_LIBS=""
11860 ## If we have a custom action on failure, don't print errors, but
11861 ## do set a variable so people can do so. Do it in a subshell
11862 ## to capture any diagnostics in invoking pkg-config.
11863 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11869 else
11870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11875 if test $succeeded = yes; then
11876 HAVE_GOBJECT=yes
11877 else
11878 HAVE_GOBJECT=no
11881 if test "$HAVE_GOBJECT" = "yes"; then
11882 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11883 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11885 SAVE_CFLAGS="$CFLAGS"
11886 SAVE_LIBS="$LIBS"
11887 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11888 LIBS="$SETTINGS_LIBS $LIBS"
11889 for ac_func in g_type_init
11890 do :
11891 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11892 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11893 cat >>confdefs.h <<_ACEOF
11894 #define HAVE_G_TYPE_INIT 1
11895 _ACEOF
11898 done
11900 CFLAGS="$SAVE_CFLAGS"
11901 LIBS="$SAVE_LIBS"
11907 HAVE_LIBSELINUX=no
11908 LIBSELINUX_LIBS=
11909 if test "${with_selinux}" = "yes"; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11911 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11912 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-lselinux $LIBS"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11923 #ifdef __cplusplus
11924 extern "C"
11925 #endif
11926 char lgetfilecon ();
11928 main ()
11930 return lgetfilecon ();
11932 return 0;
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 ac_cv_lib_selinux_lgetfilecon=yes
11937 else
11938 ac_cv_lib_selinux_lgetfilecon=no
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11945 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11946 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11947 HAVE_LIBSELINUX=yes
11948 else
11949 HAVE_LIBSELINUX=no
11952 if test "$HAVE_LIBSELINUX" = yes; then
11954 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11956 LIBSELINUX_LIBS=-lselinux
11961 HAVE_GNUTLS=no
11962 if test "${with_gnutls}" = "yes" ; then
11964 succeeded=no
11966 if test "$PKG_CONFIG" = "no" ; then
11967 HAVE_GNUTLS=no
11968 else
11969 PKG_CONFIG_MIN_VERSION=0.9.0
11970 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11972 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11974 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11975 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11976 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11977 edit_cflags="
11978 s,///*,/,g
11979 s/^/ /
11980 s/ -I/ $isystem/g
11981 s/^ //
11983 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11984 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11986 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11987 succeeded=yes
11988 else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 LIBGNUTLS_CFLAGS=""
11992 LIBGNUTLS_LIBS=""
11993 ## If we have a custom action on failure, don't print errors, but
11994 ## do set a variable so people can do so. Do it in a subshell
11995 ## to capture any diagnostics in invoking pkg-config.
11996 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12002 else
12003 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12004 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12008 if test $succeeded = yes; then
12009 HAVE_GNUTLS=yes
12010 else
12011 HAVE_GNUTLS=no
12014 if test "${HAVE_GNUTLS}" = "yes"; then
12016 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12020 # Windows loads GnuTLS dynamically
12021 if test "${opsys}" = "mingw32"; then
12022 LIBGNUTLS_LIBS=
12023 else
12024 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12025 LIBS="$LIBGNUTLS_LIBS $LIBS"
12032 NOTIFY_OBJ=
12033 NOTIFY_SUMMARY=no
12035 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12036 with_file_notification=no
12039 case $with_file_notification,$opsys in
12040 w32,* | yes,mingw32)
12041 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12042 if test "x$ac_cv_header_windows_h" = x""yes; then :
12047 if test "$ac_cv_header_windows_h" = yes ; then
12049 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12051 NOTIFY_OBJ=w32notify.o
12052 NOTIFY_SUMMARY="yes (w32)"
12053 fi ;;
12054 esac
12056 case $with_file_notification,$NOTIFY_OBJ in
12057 gfile, | yes,)
12059 succeeded=no
12061 if test "$PKG_CONFIG" = "no" ; then
12062 HAVE_GFILENOTIFY=no
12063 else
12064 PKG_CONFIG_MIN_VERSION=0.9.0
12065 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12067 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12069 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12070 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12071 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12072 edit_cflags="
12073 s,///*,/,g
12074 s/^/ /
12075 s/ -I/ $isystem/g
12076 s/^ //
12078 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12079 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12081 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12082 succeeded=yes
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12086 GFILENOTIFY_CFLAGS=""
12087 GFILENOTIFY_LIBS=""
12088 ## If we have a custom action on failure, don't print errors, but
12089 ## do set a variable so people can do so. Do it in a subshell
12090 ## to capture any diagnostics in invoking pkg-config.
12091 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12097 else
12098 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12099 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12103 if test $succeeded = yes; then
12104 HAVE_GFILENOTIFY=yes
12105 else
12106 HAVE_GFILENOTIFY=no
12109 if test "$HAVE_GFILENOTIFY" = "yes"; then
12111 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12113 NOTIFY_OBJ=gfilenotify.o
12114 NOTIFY_SUMMARY="yes -lgio (gfile)"
12115 fi ;;
12116 esac
12118 case $with_file_notification,$NOTIFY_OBJ in
12119 inotify, | yes,)
12120 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12121 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12126 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12127 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12128 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12132 if test "$ac_cv_func_inotify_init1" = yes; then
12134 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12136 NOTIFY_OBJ=inotify.o
12137 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12139 fi ;;
12140 esac
12142 case $with_file_notification,$NOTIFY_OBJ in
12143 yes,* | no,* | *,?*) ;;
12144 *) as_fn_error "File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12145 esac
12147 if test -n "$NOTIFY_OBJ"; then
12149 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12156 HAVE_XAW3D=no
12157 LUCID_LIBW=
12158 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12159 if test "$with_xaw3d" != no; then
12160 if test "${emacs_cv_xaw3d+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 #include <X11/Intrinsic.h>
12167 #include <X11/Xaw3d/Simple.h>
12169 main ()
12173 return 0;
12175 _ACEOF
12176 if ac_fn_c_try_link "$LINENO"; then :
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12178 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12179 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lXaw3d $LIBS"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char XawScrollbarSetThumb ();
12195 main ()
12197 return XawScrollbarSetThumb ();
12199 return 0;
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12204 else
12205 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12212 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12213 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12214 emacs_cv_xaw3d=yes
12215 else
12216 emacs_cv_xaw3d=no
12219 else
12220 emacs_cv_xaw3d=no
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12226 else
12227 emacs_cv_xaw3d=no
12229 if test $emacs_cv_xaw3d = yes; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12231 $as_echo_n "checking for xaw3d... " >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12233 $as_echo "yes; using Lucid toolkit" >&6; }
12234 USE_X_TOOLKIT=LUCID
12235 HAVE_XAW3D=yes
12236 LUCID_LIBW=-lXaw3d
12238 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12240 else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12242 $as_echo_n "checking for xaw3d... " >&6; }
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12246 $as_echo_n "checking for libXaw... " >&6; }
12247 if test "${emacs_cv_xaw+set}" = set; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12253 #include <X11/Intrinsic.h>
12254 #include <X11/Xaw/Simple.h>
12256 main ()
12260 return 0;
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"; then :
12264 emacs_cv_xaw=yes
12265 else
12266 emacs_cv_xaw=no
12268 rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12272 if test $emacs_cv_xaw = yes; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12274 $as_echo "yes; using Lucid toolkit" >&6; }
12275 USE_X_TOOLKIT=LUCID
12276 LUCID_LIBW=-lXaw
12277 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12278 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12279 else
12280 as_fn_error "No X toolkit could be found.
12281 If you are sure you want Emacs compiled without an X toolkit, pass
12282 --with-x-toolkit=no
12283 to configure. Otherwise, install the development libraries for the toolkit
12284 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12289 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12291 LIBXTR6=
12292 if test "${USE_X_TOOLKIT}" != "none"; then
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12294 $as_echo_n "checking X11 toolkit version... " >&6; }
12295 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297 else
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include <X11/Intrinsic.h>
12302 main ()
12304 #if XtSpecificationRelease < 6
12305 fail;
12306 #endif
12309 return 0;
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"; then :
12313 emacs_cv_x11_toolkit_version_6=yes
12314 else
12315 emacs_cv_x11_toolkit_version_6=no
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12321 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12322 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12324 $as_echo "6 or newer" >&6; }
12326 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12328 LIBXTR6="-lSM -lICE"
12329 case "$opsys" in
12330 ## Use libw.a along with X11R6 Xt.
12331 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12332 esac
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12335 $as_echo "before 6" >&6; }
12338 OLDLIBS="$LIBS"
12339 if test x$HAVE_X11XTR6 = xyes; then
12340 LIBS="-lXt -lSM -lICE $LIBS"
12341 else
12342 LIBS="-lXt $LIBS"
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12345 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12346 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-lXmu $LIBS"
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12357 #ifdef __cplusplus
12358 extern "C"
12359 #endif
12360 char XmuConvertStandardSelection ();
12362 main ()
12364 return XmuConvertStandardSelection ();
12366 return 0;
12368 _ACEOF
12369 if ac_fn_c_try_link "$LINENO"; then :
12370 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12371 else
12372 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12374 rm -f core conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12379 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12380 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12381 cat >>confdefs.h <<_ACEOF
12382 #define HAVE_LIBXMU 1
12383 _ACEOF
12385 LIBS="-lXmu $LIBS"
12389 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12393 LIBXMU=-lXmu
12394 case $opsys in
12395 ## These systems don't supply Xmu.
12396 hpux* | aix4-2 )
12397 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12399 mingw32 )
12400 LIBXMU=
12402 esac
12405 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12406 if test "${HAVE_X11}" = "yes"; then
12407 if test "${USE_X_TOOLKIT}" != "none"; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12409 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12410 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-lXext $LIBS"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char XShapeQueryExtension ();
12426 main ()
12428 return XShapeQueryExtension ();
12430 return 0;
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 ac_cv_lib_Xext_XShapeQueryExtension=yes
12435 else
12436 ac_cv_lib_Xext_XShapeQueryExtension=no
12438 rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12443 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12444 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12445 cat >>confdefs.h <<_ACEOF
12446 #define HAVE_LIBXEXT 1
12447 _ACEOF
12449 LIBS="-lXext $LIBS"
12456 LIBXP=
12457 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12458 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12459 if test -d /usr/include/openmotif; then
12460 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12461 emacs_cv_openmotif=yes
12462 case "$canonical" in
12463 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12464 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12467 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12468 esac
12469 else
12470 emacs_cv_openmotif=no
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12473 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12474 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 #include <Xm/Xm.h>
12481 main ()
12483 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12484 int x = 5;
12485 #else
12486 Motif version prior to 2.1.
12487 #endif
12489 return 0;
12491 _ACEOF
12492 if ac_fn_c_try_compile "$LINENO"; then :
12493 emacs_cv_motif_version_2_1=yes
12494 else
12495 emacs_cv_motif_version_2_1=no
12497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12500 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12501 if test $emacs_cv_motif_version_2_1 = yes; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12503 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12504 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507 ac_check_lib_save_LIBS=$LIBS
12508 LIBS="-lXp $LIBS"
12509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12512 /* Override any GCC internal prototype to avoid an error.
12513 Use char because int might match the return type of a GCC
12514 builtin and then its argument prototype would still apply. */
12515 #ifdef __cplusplus
12516 extern "C"
12517 #endif
12518 char XpCreateContext ();
12520 main ()
12522 return XpCreateContext ();
12524 return 0;
12526 _ACEOF
12527 if ac_fn_c_try_link "$LINENO"; then :
12528 ac_cv_lib_Xp_XpCreateContext=yes
12529 else
12530 ac_cv_lib_Xp_XpCreateContext=no
12532 rm -f core conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534 LIBS=$ac_check_lib_save_LIBS
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12537 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12538 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12539 LIBXP=-lXp
12542 if test x$emacs_cv_openmotif = xyes; then
12543 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12545 else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12547 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12548 if test "${emacs_cv_lesstif+set}" = set; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 # We put this in CFLAGS temporarily to precede other -I options
12552 # that might be in CFLAGS temporarily.
12553 # We put this in CPPFLAGS where it precedes the other -I options.
12554 OLD_CPPFLAGS=$CPPFLAGS
12555 OLD_CFLAGS=$CFLAGS
12556 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12557 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12562 main ()
12564 int x = 5;
12566 return 0;
12568 _ACEOF
12569 if ac_fn_c_try_compile "$LINENO"; then :
12570 emacs_cv_lesstif=yes
12571 else
12572 emacs_cv_lesstif=no
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12577 $as_echo "$emacs_cv_lesstif" >&6; }
12578 if test $emacs_cv_lesstif = yes; then
12579 # Make sure this -I option remains in CPPFLAGS after it is set
12580 # back to REAL_CPPFLAGS.
12581 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12582 # have those other -I options anyway. Ultimately, having this
12583 # directory ultimately in CPPFLAGS will be enough.
12584 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12585 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12586 else
12587 CFLAGS=$OLD_CFLAGS
12588 CPPFLAGS=$OLD_CPPFLAGS
12591 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12592 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12594 else
12595 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12602 USE_TOOLKIT_SCROLL_BARS=no
12603 if test "${with_toolkit_scroll_bars}" != "no"; then
12604 if test "${USE_X_TOOLKIT}" != "none"; then
12605 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12606 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12608 HAVE_XAW3D=no
12609 USE_TOOLKIT_SCROLL_BARS=yes
12610 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12611 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12613 USE_TOOLKIT_SCROLL_BARS=yes
12615 elif test "${HAVE_GTK}" = "yes"; then
12616 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12618 USE_TOOLKIT_SCROLL_BARS=yes
12619 elif test "${HAVE_NS}" = "yes"; then
12620 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12622 USE_TOOLKIT_SCROLL_BARS=yes
12623 elif test "${HAVE_W32}" = "yes"; then
12624 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12626 USE_TOOLKIT_SCROLL_BARS=yes
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12633 #include <X11/Xlib.h>
12634 #include <X11/Xresource.h>
12636 main ()
12638 XIMProc callback;
12640 return 0;
12642 _ACEOF
12643 if ac_fn_c_try_compile "$LINENO"; then :
12644 HAVE_XIM=yes
12646 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12648 else
12649 HAVE_XIM=no
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 if test "${with_xim}" != "no"; then
12656 $as_echo "#define USE_XIM 1" >>confdefs.h
12661 if test "${HAVE_XIM}" != "no"; then
12662 late_CFLAGS=$CFLAGS
12663 if test "$GCC" = yes; then
12664 CFLAGS="$CFLAGS --pedantic-errors"
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12669 #include <X11/Xlib.h>
12670 #include <X11/Xresource.h>
12672 main ()
12674 Display *display;
12675 XrmDatabase db;
12676 char *res_name;
12677 char *res_class;
12678 XIMProc callback;
12679 XPointer *client_data;
12680 #ifndef __GNUC__
12681 /* If we're not using GCC, it's probably not XFree86, and this is
12682 probably right, but we can't use something like --pedantic-errors. */
12683 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12684 char*, XIMProc, XPointer*);
12685 #endif
12686 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12687 client_data);
12689 return 0;
12691 _ACEOF
12692 if ac_fn_c_try_compile "$LINENO"; then :
12693 emacs_cv_arg6_star=yes
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 if test "$emacs_cv_arg6_star" = yes; then
12697 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12699 else
12700 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12703 CFLAGS=$late_CFLAGS
12706 ### Start of font-backend (under any platform) section.
12707 # (nothing here yet -- this is a placeholder)
12708 ### End of font-backend (under any platform) section.
12710 ### Start of font-backend (under X11) section.
12711 if test "${HAVE_X11}" = "yes"; then
12713 succeeded=no
12715 if test "$PKG_CONFIG" = "no" ; then
12716 HAVE_FC=no
12717 else
12718 PKG_CONFIG_MIN_VERSION=0.9.0
12719 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12721 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12723 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12724 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12725 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12726 edit_cflags="
12727 s,///*,/,g
12728 s/^/ /
12729 s/ -I/ $isystem/g
12730 s/^ //
12732 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12733 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12735 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12736 succeeded=yes
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12740 FONTCONFIG_CFLAGS=""
12741 FONTCONFIG_LIBS=""
12742 ## If we have a custom action on failure, don't print errors, but
12743 ## do set a variable so people can do so. Do it in a subshell
12744 ## to capture any diagnostics in invoking pkg-config.
12745 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12751 else
12752 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12753 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12757 if test $succeeded = yes; then
12758 HAVE_FC=yes
12759 else
12760 HAVE_FC=no
12764 ## Use -lXft if available, unless `--with-xft=no'.
12765 HAVE_XFT=maybe
12766 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12767 with_xft="no";
12769 if test "x${with_xft}" != "xno"; then
12772 succeeded=no
12774 if test "$PKG_CONFIG" = "no" ; then
12775 HAVE_XFT=no
12776 else
12777 PKG_CONFIG_MIN_VERSION=0.9.0
12778 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12780 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12782 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12783 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12784 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12785 edit_cflags="
12786 s,///*,/,g
12787 s/^/ /
12788 s/ -I/ $isystem/g
12789 s/^ //
12791 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12792 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12794 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12795 succeeded=yes
12796 else
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12799 XFT_CFLAGS=""
12800 XFT_LIBS=""
12801 ## If we have a custom action on failure, don't print errors, but
12802 ## do set a variable so people can do so. Do it in a subshell
12803 ## to capture any diagnostics in invoking pkg-config.
12804 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12810 else
12811 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12812 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12816 if test $succeeded = yes; then
12818 else
12819 HAVE_XFT=no
12822 ## Because xftfont.c uses XRenderQueryExtension, we also
12823 ## need to link to -lXrender.
12824 HAVE_XRENDER=no
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12826 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12827 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 ac_check_lib_save_LIBS=$LIBS
12831 LIBS="-lXrender $LIBS"
12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12835 /* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
12838 #ifdef __cplusplus
12839 extern "C"
12840 #endif
12841 char XRenderQueryExtension ();
12843 main ()
12845 return XRenderQueryExtension ();
12847 return 0;
12849 _ACEOF
12850 if ac_fn_c_try_link "$LINENO"; then :
12851 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12852 else
12853 ac_cv_lib_Xrender_XRenderQueryExtension=no
12855 rm -f core conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12857 LIBS=$ac_check_lib_save_LIBS
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12860 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12861 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12862 HAVE_XRENDER=yes
12865 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12866 OLD_CPPFLAGS="$CPPFLAGS"
12867 OLD_CFLAGS="$CFLAGS"
12868 OLD_LIBS="$LIBS"
12869 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12870 CFLAGS="$CFLAGS $XFT_CFLAGS"
12871 XFT_LIBS="-lXrender $XFT_LIBS"
12872 LIBS="$XFT_LIBS $LIBS"
12873 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12875 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12877 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12878 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12879 $as_echo_n "(cached) " >&6
12880 else
12881 ac_check_lib_save_LIBS=$LIBS
12882 LIBS="-lXft $XFT_LIBS $LIBS"
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884 /* end confdefs.h. */
12886 /* Override any GCC internal prototype to avoid an error.
12887 Use char because int might match the return type of a GCC
12888 builtin and then its argument prototype would still apply. */
12889 #ifdef __cplusplus
12890 extern "C"
12891 #endif
12892 char XftFontOpen ();
12894 main ()
12896 return XftFontOpen ();
12898 return 0;
12900 _ACEOF
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 ac_cv_lib_Xft_XftFontOpen=yes
12903 else
12904 ac_cv_lib_Xft_XftFontOpen=no
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 LIBS=$ac_check_lib_save_LIBS
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12911 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12912 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12913 HAVE_XFT=yes
12920 if test "${HAVE_XFT}" = "yes"; then
12922 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12925 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12926 else
12927 CPPFLAGS="$OLD_CPPFLAGS"
12928 CFLAGS="$OLD_CFLAGS"
12929 LIBS="$OLD_LIBS"
12930 fi # "${HAVE_XFT}" = "yes"
12931 fi # "$HAVE_XFT" != no
12932 fi # "x${with_xft}" != "xno"
12934 ## We used to allow building with FreeType and without Xft.
12935 ## However, the ftx font backend driver is not in good shape.
12936 if test "$HAVE_XFT" != "yes"; then
12937 HAVE_XFT=no
12938 HAVE_FREETYPE=no
12939 else
12941 succeeded=no
12943 if test "$PKG_CONFIG" = "no" ; then
12944 HAVE_FREETYPE=no
12945 else
12946 PKG_CONFIG_MIN_VERSION=0.9.0
12947 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12949 $as_echo_n "checking for freetype2... " >&6; }
12951 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12952 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12953 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12954 edit_cflags="
12955 s,///*,/,g
12956 s/^/ /
12957 s/ -I/ $isystem/g
12958 s/^ //
12960 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12961 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12963 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12964 succeeded=yes
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12968 FREETYPE_CFLAGS=""
12969 FREETYPE_LIBS=""
12970 ## If we have a custom action on failure, don't print errors, but
12971 ## do set a variable so people can do so. Do it in a subshell
12972 ## to capture any diagnostics in invoking pkg-config.
12973 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12979 else
12980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12985 if test $succeeded = yes; then
12986 HAVE_FREETYPE=yes
12987 else
12988 HAVE_FREETYPE=no
12992 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12995 HAVE_LIBOTF=no
12996 if test "${HAVE_FREETYPE}" = "yes"; then
12998 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13000 if test "${with_libotf}" != "no"; then
13002 succeeded=no
13004 if test "$PKG_CONFIG" = "no" ; then
13005 HAVE_LIBOTF=no
13006 else
13007 PKG_CONFIG_MIN_VERSION=0.9.0
13008 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13010 $as_echo_n "checking for libotf... " >&6; }
13012 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13013 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13014 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13015 edit_cflags="
13016 s,///*,/,g
13017 s/^/ /
13018 s/ -I/ $isystem/g
13019 s/^ //
13021 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13022 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13024 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13025 succeeded=yes
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13029 LIBOTF_CFLAGS=""
13030 LIBOTF_LIBS=""
13031 ## If we have a custom action on failure, don't print errors, but
13032 ## do set a variable so people can do so. Do it in a subshell
13033 ## to capture any diagnostics in invoking pkg-config.
13034 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13040 else
13041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13046 if test $succeeded = yes; then
13047 HAVE_LIBOTF=yes
13048 else
13049 HAVE_LIBOTF=no
13052 if test "$HAVE_LIBOTF" = "yes"; then
13054 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13057 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13058 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
13060 else
13061 ac_check_lib_save_LIBS=$LIBS
13062 LIBS="-lotf $LIBS"
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13069 #ifdef __cplusplus
13070 extern "C"
13071 #endif
13072 char OTF_get_variation_glyphs ();
13074 main ()
13076 return OTF_get_variation_glyphs ();
13078 return 0;
13080 _ACEOF
13081 if ac_fn_c_try_link "$LINENO"; then :
13082 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13083 else
13084 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13086 rm -f core conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LIBS=$ac_check_lib_save_LIBS
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13091 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13092 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13093 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13094 else
13095 HAVE_OTF_GET_VARIATION_GLYPHS=no
13098 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13100 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13107 HAVE_M17N_FLT=no
13108 if test "${HAVE_LIBOTF}" = yes; then
13109 if test "${with_m17n_flt}" != "no"; then
13111 succeeded=no
13113 if test "$PKG_CONFIG" = "no" ; then
13114 HAVE_M17N_FLT=no
13115 else
13116 PKG_CONFIG_MIN_VERSION=0.9.0
13117 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13119 $as_echo_n "checking for m17n-flt... " >&6; }
13121 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13122 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13123 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13124 edit_cflags="
13125 s,///*,/,g
13126 s/^/ /
13127 s/ -I/ $isystem/g
13128 s/^ //
13130 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13131 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13133 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13134 succeeded=yes
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138 M17N_FLT_CFLAGS=""
13139 M17N_FLT_LIBS=""
13140 ## If we have a custom action on failure, don't print errors, but
13141 ## do set a variable so people can do so. Do it in a subshell
13142 ## to capture any diagnostics in invoking pkg-config.
13143 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13149 else
13150 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13151 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13155 if test $succeeded = yes; then
13156 HAVE_M17N_FLT=yes
13157 else
13158 HAVE_M17N_FLT=no
13161 if test "$HAVE_M17N_FLT" = "yes"; then
13163 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13168 else
13169 HAVE_XFT=no
13170 HAVE_FREETYPE=no
13171 HAVE_LIBOTF=no
13172 HAVE_M17N_FLT=no
13175 ### End of font-backend (under X11) section.
13186 ### Use -lXpm if available, unless `--with-xpm=no'.
13187 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13188 HAVE_XPM=no
13189 LIBXPM=
13190 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13191 if test "${with_xpm}" != "no"; then
13192 SAVE_CPPFLAGS="$CPPFLAGS"
13193 SAVE_LDFLAGS="$LDFLAGS"
13194 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13195 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13196 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13197 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13199 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13200 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lXpm $LIBS"
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13211 #ifdef __cplusplus
13212 extern "C"
13213 #endif
13214 char XpmReadFileToImage ();
13216 main ()
13218 return XpmReadFileToImage ();
13220 return 0;
13222 _ACEOF
13223 if ac_fn_c_try_link "$LINENO"; then :
13224 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13225 else
13226 ac_cv_lib_Xpm_XpmReadFileToImage=no
13228 rm -f core conftest.err conftest.$ac_objext \
13229 conftest$ac_exeext conftest.$ac_ext
13230 LIBS=$ac_check_lib_save_LIBS
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13233 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13234 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13235 HAVE_XPM=yes
13241 if test "${HAVE_XPM}" = "yes"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13243 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13246 #include "X11/xpm.h"
13247 #ifndef XpmReturnAllocPixels
13248 no_return_alloc_pixels
13249 #endif
13251 _ACEOF
13252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13253 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13254 HAVE_XPM=no
13255 else
13256 HAVE_XPM=yes
13258 rm -f conftest*
13261 if test "${HAVE_XPM}" = "yes"; then
13262 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13264 $as_echo "yes" >&6; }
13265 else
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13268 CPPFLAGS="$SAVE_CPPFLAGS"
13269 LDFLAGS="$SAVE_LDFLAGS"
13274 if test "${HAVE_XPM}" = "yes"; then
13276 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13278 LIBXPM=-lXpm
13282 if test "${HAVE_X11}" = "yes"; then
13283 if test "${with_xpm}" != "no"; then
13284 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13285 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13287 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13288 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lXpm -lX11 $LIBS"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char XpmReadFileToPixmap ();
13304 main ()
13306 return XpmReadFileToPixmap ();
13308 return 0;
13310 _ACEOF
13311 if ac_fn_c_try_link "$LINENO"; then :
13312 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13313 else
13314 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_lib_save_LIBS
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13321 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13322 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13323 HAVE_XPM=yes
13329 if test "${HAVE_XPM}" = "yes"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13331 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334 #include "X11/xpm.h"
13335 #ifndef XpmReturnAllocPixels
13336 no_return_alloc_pixels
13337 #endif
13339 _ACEOF
13340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13341 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13342 HAVE_XPM=no
13343 else
13344 HAVE_XPM=yes
13346 rm -f conftest*
13349 if test "${HAVE_XPM}" = "yes"; then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13351 $as_echo "yes" >&6; }
13352 else
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13359 if test "${HAVE_XPM}" = "yes"; then
13361 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13363 LIBXPM=-lXpm
13367 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13368 ### slightly different requirements wrt image libraries (it doesn't
13369 ### use -lXpm because it loads the xpm shared library dynamically at
13370 ### run time).
13371 if test "${opsys}" = "mingw32"; then
13372 if test "${with_xpm}" != "no"; then
13373 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13374 #define FOR_MSW 1
13376 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13377 HAVE_XPM=yes
13378 else
13379 HAVE_XPM=no
13385 if test "${HAVE_XPM}" = "yes"; then
13387 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13394 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13395 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13396 HAVE_JPEG=no
13397 LIBJPEG=
13398 if test "${opsys}" = "mingw32"; then
13399 if test "${with_jpeg}" != "no"; then
13400 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13401 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13402 HAVE_JPEG=yes
13403 else
13404 HAVE_JPEG=no
13409 if test "${HAVE_JPEG}" = "yes"; then
13410 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <jpeglib.h>
13415 version=JPEG_LIB_VERSION
13417 _ACEOF
13418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13419 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13420 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13422 else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13424 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13425 HAVE_JPEG=no
13427 rm -f conftest*
13430 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13431 if test "${with_jpeg}" != "no"; then
13432 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13433 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13435 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13436 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 ac_check_lib_save_LIBS=$LIBS
13440 LIBS="-ljpeg $LIBS"
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13444 /* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13447 #ifdef __cplusplus
13448 extern "C"
13449 #endif
13450 char jpeg_destroy_compress ();
13452 main ()
13454 return jpeg_destroy_compress ();
13456 return 0;
13458 _ACEOF
13459 if ac_fn_c_try_link "$LINENO"; then :
13460 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13461 else
13462 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13464 rm -f core conftest.err conftest.$ac_objext \
13465 conftest$ac_exeext conftest.$ac_ext
13466 LIBS=$ac_check_lib_save_LIBS
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13469 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13470 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13471 HAVE_JPEG=yes
13479 if test "${HAVE_JPEG}" = "yes"; then
13480 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13484 #include <jpeglib.h>
13485 version=JPEG_LIB_VERSION
13487 _ACEOF
13488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13489 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13490 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13494 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13495 HAVE_JPEG=no
13497 rm -f conftest*
13500 if test "${HAVE_JPEG}" = "yes"; then
13501 LIBJPEG=-ljpeg
13506 ### Use -lpng if available, unless `--with-png=no'.
13507 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13508 HAVE_PNG=no
13509 LIBPNG=
13510 if test "${opsys}" = "mingw32"; then
13511 if test "${with_png}" != "no"; then
13512 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13513 if test "x$ac_cv_header_png_h" = x""yes; then :
13514 HAVE_PNG=yes
13515 else
13516 HAVE_PNG=no
13521 if test "${HAVE_PNG}" = "yes"; then
13523 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13526 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13527 # include <libpng/png.h>
13528 #else
13529 # include <png.h>
13530 #endif
13533 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13535 else
13537 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13542 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13543 if test "${with_png}" != "no"; then
13544 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13545 # in /usr/include/libpng.
13546 for ac_header in png.h libpng/png.h
13547 do :
13548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13549 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13550 eval as_val=\$$as_ac_Header
13551 if test "x$as_val" = x""yes; then :
13552 cat >>confdefs.h <<_ACEOF
13553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13554 _ACEOF
13555 break
13558 done
13560 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13562 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13563 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 ac_check_lib_save_LIBS=$LIBS
13567 LIBS="-lpng -lz -lm $LIBS"
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13571 /* Override any GCC internal prototype to avoid an error.
13572 Use char because int might match the return type of a GCC
13573 builtin and then its argument prototype would still apply. */
13574 #ifdef __cplusplus
13575 extern "C"
13576 #endif
13577 char png_get_channels ();
13579 main ()
13581 return png_get_channels ();
13583 return 0;
13585 _ACEOF
13586 if ac_fn_c_try_link "$LINENO"; then :
13587 ac_cv_lib_png_png_get_channels=yes
13588 else
13589 ac_cv_lib_png_png_get_channels=no
13591 rm -f core conftest.err conftest.$ac_objext \
13592 conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13596 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13597 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13598 HAVE_PNG=yes
13604 if test "${HAVE_PNG}" = "yes"; then
13606 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13608 LIBPNG="-lpng -lz -lm"
13610 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13611 # include <libpng/png.h>
13612 #else
13613 # include <png.h>
13614 #endif
13617 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13619 else
13621 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13629 ### Use -ltiff if available, unless `--with-tiff=no'.
13630 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13631 HAVE_TIFF=no
13632 LIBTIFF=
13633 if test "${opsys}" = "mingw32"; then
13634 if test "${with_tiff}" != "no"; then
13635 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13636 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13637 HAVE_TIFF=yes
13638 else
13639 HAVE_TIFF=no
13644 if test "${HAVE_TIFF}" = "yes"; then
13646 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13649 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13650 if test "${with_tiff}" != "no"; then
13651 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13652 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13653 tifflibs="-lz -lm"
13654 # At least one tiff package requires the jpeg library.
13655 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13657 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13658 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 ac_check_lib_save_LIBS=$LIBS
13662 LIBS="-ltiff $tifflibs $LIBS"
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13669 #ifdef __cplusplus
13670 extern "C"
13671 #endif
13672 char TIFFGetVersion ();
13674 main ()
13676 return TIFFGetVersion ();
13678 return 0;
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13682 ac_cv_lib_tiff_TIFFGetVersion=yes
13683 else
13684 ac_cv_lib_tiff_TIFFGetVersion=no
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 LIBS=$ac_check_lib_save_LIBS
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13691 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13692 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13693 HAVE_TIFF=yes
13701 if test "${HAVE_TIFF}" = "yes"; then
13703 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13705 LIBTIFF=-ltiff
13710 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13711 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13712 HAVE_GIF=no
13713 LIBGIF=
13714 if test "${opsys}" = "mingw32"; then
13715 if test "${with_gif}" != "no"; then
13716 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13717 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13718 HAVE_GIF=yes
13719 else
13720 HAVE_GIF=no
13725 if test "${HAVE_GIF}" = "yes"; then
13727 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13730 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13731 || test "${HAVE_W32}" = "yes"; then
13732 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13733 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13734 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13735 # Earlier versions can crash Emacs.
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13737 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13738 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741 ac_check_lib_save_LIBS=$LIBS
13742 LIBS="-lgif $LIBS"
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13746 /* Override any GCC internal prototype to avoid an error.
13747 Use char because int might match the return type of a GCC
13748 builtin and then its argument prototype would still apply. */
13749 #ifdef __cplusplus
13750 extern "C"
13751 #endif
13752 char EGifPutExtensionLast ();
13754 main ()
13756 return EGifPutExtensionLast ();
13758 return 0;
13760 _ACEOF
13761 if ac_fn_c_try_link "$LINENO"; then :
13762 ac_cv_lib_gif_EGifPutExtensionLast=yes
13763 else
13764 ac_cv_lib_gif_EGifPutExtensionLast=no
13766 rm -f core conftest.err conftest.$ac_objext \
13767 conftest$ac_exeext conftest.$ac_ext
13768 LIBS=$ac_check_lib_save_LIBS
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13771 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13772 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13773 HAVE_GIF=yes
13774 else
13775 HAVE_GIF=maybe
13782 if test "$HAVE_GIF" = yes; then
13783 LIBGIF=-lgif
13784 elif test "$HAVE_GIF" = maybe; then
13785 # If gif_lib.h but no libgif, try libungif.
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13787 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13788 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 ac_check_lib_save_LIBS=$LIBS
13792 LIBS="-lungif $LIBS"
13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794 /* end confdefs.h. */
13796 /* Override any GCC internal prototype to avoid an error.
13797 Use char because int might match the return type of a GCC
13798 builtin and then its argument prototype would still apply. */
13799 #ifdef __cplusplus
13800 extern "C"
13801 #endif
13802 char EGifPutExtensionLast ();
13804 main ()
13806 return EGifPutExtensionLast ();
13808 return 0;
13810 _ACEOF
13811 if ac_fn_c_try_link "$LINENO"; then :
13812 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13813 else
13814 ac_cv_lib_ungif_EGifPutExtensionLast=no
13816 rm -f core conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818 LIBS=$ac_check_lib_save_LIBS
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13821 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13822 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13823 HAVE_GIF=yes
13824 else
13825 HAVE_GIF=no
13828 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13831 if test "${HAVE_GIF}" = "yes"; then
13833 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13839 if test "${HAVE_X11}" = "yes"; then
13840 MISSING=""
13841 WITH_NO=""
13842 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13843 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13844 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13845 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13846 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13847 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13848 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13849 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13850 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13851 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13853 if test "X${MISSING}" != X; then
13854 as_fn_error "The following required libraries were not found:
13855 $MISSING
13856 Maybe some development libraries/packages are missing?
13857 If you don't want to link with them give
13858 $WITH_NO
13859 as options to configure" "$LINENO" 5
13863 ### Use -lgpm if available, unless `--with-gpm=no'.
13864 HAVE_GPM=no
13865 LIBGPM=
13866 if test "${with_gpm}" != "no"; then
13867 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13868 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13870 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13871 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-lgpm $LIBS"
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13879 /* Override any GCC internal prototype to avoid an error.
13880 Use char because int might match the return type of a GCC
13881 builtin and then its argument prototype would still apply. */
13882 #ifdef __cplusplus
13883 extern "C"
13884 #endif
13885 char Gpm_Open ();
13887 main ()
13889 return Gpm_Open ();
13891 return 0;
13893 _ACEOF
13894 if ac_fn_c_try_link "$LINENO"; then :
13895 ac_cv_lib_gpm_Gpm_Open=yes
13896 else
13897 ac_cv_lib_gpm_Gpm_Open=no
13899 rm -f core conftest.err conftest.$ac_objext \
13900 conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13904 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13905 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13906 HAVE_GPM=yes
13913 if test "${HAVE_GPM}" = "yes"; then
13915 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13917 LIBGPM=-lgpm
13926 GNUSTEP_CFLAGS=
13927 ### Use NeXTstep API to implement GUI.
13928 if test "${HAVE_NS}" = "yes"; then
13930 $as_echo "#define HAVE_NS 1" >>confdefs.h
13932 if test "${NS_IMPL_COCOA}" = "yes"; then
13934 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13937 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13939 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13941 # See also .m.o rule in Makefile.in */
13942 # FIXME: are all these flags really needed? Document here why. */
13943 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13944 ## Extra CFLAGS applied to src/*.m files.
13945 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"
13947 # We also have mouse menus.
13948 HAVE_MENUS=yes
13949 OTHER_FILES=ns-app
13952 if test "${HAVE_W32}" = "yes"; then
13953 HAVE_MENUS=yes
13956 ### Use session management (-lSM -lICE) if available
13957 HAVE_X_SM=no
13958 LIBXSM=
13959 if test "${HAVE_X11}" = "yes"; then
13960 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13961 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13963 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13964 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 ac_check_lib_save_LIBS=$LIBS
13968 LIBS="-lSM -lICE $LIBS"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13972 /* Override any GCC internal prototype to avoid an error.
13973 Use char because int might match the return type of a GCC
13974 builtin and then its argument prototype would still apply. */
13975 #ifdef __cplusplus
13976 extern "C"
13977 #endif
13978 char SmcOpenConnection ();
13980 main ()
13982 return SmcOpenConnection ();
13984 return 0;
13986 _ACEOF
13987 if ac_fn_c_try_link "$LINENO"; then :
13988 ac_cv_lib_SM_SmcOpenConnection=yes
13989 else
13990 ac_cv_lib_SM_SmcOpenConnection=no
13992 rm -f core conftest.err conftest.$ac_objext \
13993 conftest$ac_exeext conftest.$ac_ext
13994 LIBS=$ac_check_lib_save_LIBS
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13997 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13998 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13999 HAVE_X_SM=yes
14006 if test "${HAVE_X_SM}" = "yes"; then
14008 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14010 LIBXSM="-lSM -lICE"
14011 case "$LIBS" in
14012 *-lSM*) ;;
14013 *) LIBS="$LIBXSM $LIBS" ;;
14014 esac
14019 ### Use XRandr (-lXrandr) if available
14020 HAVE_XRANDR=no
14021 if test "${HAVE_X11}" = "yes"; then
14022 XRANDR_REQUIRED=1.2.2
14023 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14025 succeeded=no
14027 if test "$PKG_CONFIG" = "no" ; then
14028 HAVE_XRANDR=no
14029 else
14030 PKG_CONFIG_MIN_VERSION=0.9.0
14031 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14033 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14035 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14036 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14037 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14038 edit_cflags="
14039 s,///*,/,g
14040 s/^/ /
14041 s/ -I/ $isystem/g
14042 s/^ //
14044 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14045 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14047 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14048 succeeded=yes
14049 else
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051 $as_echo "no" >&6; }
14052 XRANDR_CFLAGS=""
14053 XRANDR_LIBS=""
14054 ## If we have a custom action on failure, don't print errors, but
14055 ## do set a variable so people can do so. Do it in a subshell
14056 ## to capture any diagnostics in invoking pkg-config.
14057 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14063 else
14064 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14065 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14069 if test $succeeded = yes; then
14070 HAVE_XRANDR=yes
14071 else
14072 HAVE_XRANDR=no
14075 if test $HAVE_XRANDR = no; then
14076 # Test old way in case pkg-config doesn't have it (older machines).
14077 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14078 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14080 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14081 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 ac_check_lib_save_LIBS=$LIBS
14085 LIBS="-lXrandr $LIBS"
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14089 /* Override any GCC internal prototype to avoid an error.
14090 Use char because int might match the return type of a GCC
14091 builtin and then its argument prototype would still apply. */
14092 #ifdef __cplusplus
14093 extern "C"
14094 #endif
14095 char XRRGetScreenResources ();
14097 main ()
14099 return XRRGetScreenResources ();
14101 return 0;
14103 _ACEOF
14104 if ac_fn_c_try_link "$LINENO"; then :
14105 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14106 else
14107 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14109 rm -f core conftest.err conftest.$ac_objext \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14114 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14115 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14116 HAVE_XRANDR=yes
14122 if test $HAVE_XRANDR = yes; then
14123 XRANDR_LIBS=-lXrandr
14127 if test $HAVE_XRANDR = yes; then
14128 SAVE_CFLAGS="$CFLAGS"
14129 SAVE_LIBS="$LIBS"
14130 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14131 LIBS="$XRANDR_LIBS $LIBS"
14132 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14133 do :
14134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14136 eval as_val=\$$as_ac_var
14137 if test "x$as_val" = x""yes; then :
14138 cat >>confdefs.h <<_ACEOF
14139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14140 _ACEOF
14143 done
14145 CFLAGS="$SAVE_CFLAGS"
14146 LIBS="$SAVE_LIBS"
14149 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14154 ### Use Xinerama (-lXinerama) if available
14155 HAVE_XINERAMA=no
14156 if test "${HAVE_X11}" = "yes"; then
14157 XINERAMA_REQUIRED=1.0.2
14158 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14160 succeeded=no
14162 if test "$PKG_CONFIG" = "no" ; then
14163 HAVE_XINERAMA=no
14164 else
14165 PKG_CONFIG_MIN_VERSION=0.9.0
14166 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14168 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14170 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14171 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14172 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14173 edit_cflags="
14174 s,///*,/,g
14175 s/^/ /
14176 s/ -I/ $isystem/g
14177 s/^ //
14179 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14180 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14182 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14183 succeeded=yes
14184 else
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14186 $as_echo "no" >&6; }
14187 XINERAMA_CFLAGS=""
14188 XINERAMA_LIBS=""
14189 ## If we have a custom action on failure, don't print errors, but
14190 ## do set a variable so people can do so. Do it in a subshell
14191 ## to capture any diagnostics in invoking pkg-config.
14192 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14198 else
14199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14204 if test $succeeded = yes; then
14205 HAVE_XINERAMA=yes
14206 else
14207 HAVE_XINERAMA=no
14210 if test $HAVE_XINERAMA = no; then
14211 # Test old way in case pkg-config doesn't have it (older machines).
14212 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14213 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14215 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14216 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 ac_check_lib_save_LIBS=$LIBS
14220 LIBS="-lXinerama $LIBS"
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14227 #ifdef __cplusplus
14228 extern "C"
14229 #endif
14230 char XineramaQueryExtension ();
14232 main ()
14234 return XineramaQueryExtension ();
14236 return 0;
14238 _ACEOF
14239 if ac_fn_c_try_link "$LINENO"; then :
14240 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14241 else
14242 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14246 LIBS=$ac_check_lib_save_LIBS
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14249 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14250 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14251 HAVE_XINERAMA=yes
14257 if test $HAVE_XINERAMA = yes; then
14258 XINERAMA_LIBS=-lXinerama
14262 if test $HAVE_XINERAMA = yes; then
14264 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14270 ### Use libxml (-lxml2) if available
14271 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14272 HAVE_LIBXML2=no
14273 if test "${with_xml2}" != "no"; then
14274 ### I'm not sure what the version number should be, so I just guessed.
14276 succeeded=no
14278 if test "$PKG_CONFIG" = "no" ; then
14279 HAVE_LIBXML2=no
14280 else
14281 PKG_CONFIG_MIN_VERSION=0.9.0
14282 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14284 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14286 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14287 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14288 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14289 edit_cflags="
14290 s,///*,/,g
14291 s/^/ /
14292 s/ -I/ $isystem/g
14293 s/^ //
14295 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14296 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14298 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14299 succeeded=yes
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14302 $as_echo "no" >&6; }
14303 LIBXML2_CFLAGS=""
14304 LIBXML2_LIBS=""
14305 ## If we have a custom action on failure, don't print errors, but
14306 ## do set a variable so people can do so. Do it in a subshell
14307 ## to capture any diagnostics in invoking pkg-config.
14308 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14314 else
14315 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14316 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14320 if test $succeeded = yes; then
14321 HAVE_LIBXML2=yes
14322 else
14323 HAVE_LIBXML2=no
14326 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14327 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14328 SAVE_CPPFLAGS="$CPPFLAGS"
14329 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14330 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14331 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14332 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14334 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14335 HAVE_LIBXML2=yes
14341 CPPFLAGS="$SAVE_CPPFLAGS"
14342 if test "${HAVE_LIBXML2}" = "yes"; then
14343 LIBXML2_LIBS="-lxml2"
14344 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14347 if test "${HAVE_LIBXML2}" = "yes"; then
14348 if test "${opsys}" != "mingw32"; then
14349 LIBS="$LIBXML2_LIBS $LIBS"
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14351 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14352 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 ac_check_lib_save_LIBS=$LIBS
14356 LIBS="-lxml2 $LIBS"
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14360 /* Override any GCC internal prototype to avoid an error.
14361 Use char because int might match the return type of a GCC
14362 builtin and then its argument prototype would still apply. */
14363 #ifdef __cplusplus
14364 extern "C"
14365 #endif
14366 char htmlReadMemory ();
14368 main ()
14370 return htmlReadMemory ();
14372 return 0;
14374 _ACEOF
14375 if ac_fn_c_try_link "$LINENO"; then :
14376 ac_cv_lib_xml2_htmlReadMemory=yes
14377 else
14378 ac_cv_lib_xml2_htmlReadMemory=no
14380 rm -f core conftest.err conftest.$ac_objext \
14381 conftest$ac_exeext conftest.$ac_ext
14382 LIBS=$ac_check_lib_save_LIBS
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14385 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14386 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14387 HAVE_LIBXML2=yes
14388 else
14389 HAVE_LIBXML2=no
14392 else
14393 LIBXML2_LIBS=""
14395 if test "${HAVE_LIBXML2}" = "yes"; then
14397 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14399 else
14400 LIBXML2_LIBS=""
14401 LIBXML2_CFLAGS=""
14408 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14409 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14410 if test "${opsys}" = "mingw32"; then
14411 emacs_cv_netdb_declares_h_errno=yes
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14414 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14415 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14416 $as_echo_n "(cached) " >&6
14417 else
14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14420 #include <netdb.h>
14422 main ()
14424 return h_errno;
14426 return 0;
14428 _ACEOF
14429 if ac_fn_c_try_link "$LINENO"; then :
14430 emacs_cv_netdb_declares_h_errno=yes
14431 else
14432 emacs_cv_netdb_declares_h_errno=no
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14438 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14439 if test $emacs_cv_netdb_declares_h_errno = yes; then
14441 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14445 # sqrt and other floating-point functions such as fmod and frexp
14446 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14447 if test "${opsys}" != "mingw32"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14449 $as_echo_n "checking for sqrt in -lm... " >&6; }
14450 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14452 else
14453 ac_check_lib_save_LIBS=$LIBS
14454 LIBS="-lm $LIBS"
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14458 /* Override any GCC internal prototype to avoid an error.
14459 Use char because int might match the return type of a GCC
14460 builtin and then its argument prototype would still apply. */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 char sqrt ();
14466 main ()
14468 return sqrt ();
14470 return 0;
14472 _ACEOF
14473 if ac_fn_c_try_link "$LINENO"; then :
14474 ac_cv_lib_m_sqrt=yes
14475 else
14476 ac_cv_lib_m_sqrt=no
14478 rm -f core conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14480 LIBS=$ac_check_lib_save_LIBS
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14483 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14484 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14485 cat >>confdefs.h <<_ACEOF
14486 #define HAVE_LIBM 1
14487 _ACEOF
14489 LIBS="-lm $LIBS"
14495 # Check for mail-locking functions in a "mail" library. Probably this should
14496 # have the same check as for liblockfile below.
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14498 $as_echo_n "checking for maillock in -lmail... " >&6; }
14499 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14502 ac_check_lib_save_LIBS=$LIBS
14503 LIBS="-lmail $LIBS"
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14510 #ifdef __cplusplus
14511 extern "C"
14512 #endif
14513 char maillock ();
14515 main ()
14517 return maillock ();
14519 return 0;
14521 _ACEOF
14522 if ac_fn_c_try_link "$LINENO"; then :
14523 ac_cv_lib_mail_maillock=yes
14524 else
14525 ac_cv_lib_mail_maillock=no
14527 rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529 LIBS=$ac_check_lib_save_LIBS
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14532 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14533 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14534 have_mail=yes
14535 else
14536 have_mail=no
14539 if test $have_mail = yes; then
14540 LIBS_MAIL=-lmail
14541 LIBS="$LIBS_MAIL $LIBS"
14543 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14545 else
14546 LIBS_MAIL=
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14549 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14550 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14552 else
14553 ac_check_lib_save_LIBS=$LIBS
14554 LIBS="-llockfile $LIBS"
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14558 /* Override any GCC internal prototype to avoid an error.
14559 Use char because int might match the return type of a GCC
14560 builtin and then its argument prototype would still apply. */
14561 #ifdef __cplusplus
14562 extern "C"
14563 #endif
14564 char maillock ();
14566 main ()
14568 return maillock ();
14570 return 0;
14572 _ACEOF
14573 if ac_fn_c_try_link "$LINENO"; then :
14574 ac_cv_lib_lockfile_maillock=yes
14575 else
14576 ac_cv_lib_lockfile_maillock=no
14578 rm -f core conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14583 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14584 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14585 have_lockfile=yes
14586 else
14587 have_lockfile=no
14590 if test $have_lockfile = yes; then
14591 LIBS_MAIL=-llockfile
14592 LIBS="$LIBS_MAIL $LIBS"
14594 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14596 else
14597 # If we have the shared liblockfile, assume we must use it for mail
14598 # locking (e.g. Debian). If we couldn't link against liblockfile
14599 # (no liblockfile.a installed), ensure that we don't need to.
14600 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14601 set dummy liblockfile.so; ac_word=$2
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14603 $as_echo_n "checking for $ac_word... " >&6; }
14604 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 if test -n "$liblockfile"; then
14608 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14609 else
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14612 for as_dir in $as_dummy
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14618 ac_cv_prog_liblockfile="yes"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14622 done
14623 done
14624 IFS=$as_save_IFS
14626 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14629 liblockfile=$ac_cv_prog_liblockfile
14630 if test -n "$liblockfile"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14632 $as_echo "$liblockfile" >&6; }
14633 else
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14639 if test $ac_cv_prog_liblockfile = yes; then
14640 as_fn_error "Shared liblockfile found but can't link against it.
14641 This probably means that movemail could lose mail.
14642 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14650 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14651 ## interlock access to the mail spool. The alternative is a lock file named
14652 ## /usr/spool/mail/$USER.lock.
14653 mail_lock=no
14654 case "$opsys" in
14655 aix4-2) mail_lock="lockf" ;;
14657 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14659 ## On GNU/Linux systems, both methods are used by various mail programs.
14660 ## I assume most people are using newer mailers that have heard of flock.
14661 ## Change this if you need to.
14662 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14663 ## configure gets the right answers, and that means *NOT* using flock.
14664 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14665 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14666 ## Debian maintainer hasn't provided a clean fix for Emacs.
14667 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14668 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14669 ## correct logic. -- fx
14670 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14671 ## liblockfile is a Free Software replacement for libmail, used on
14672 ## Debian systems and elsewhere. -rfr.
14673 gnu-*)
14674 mail_lock="flock"
14675 if test $have_mail = yes || test $have_lockfile = yes; then
14676 test $ac_cv_header_maillock_h = yes && mail_lock=no
14680 mingw32)
14681 mail_lock="none-needed" ;;
14682 esac
14684 BLESSMAIL_TARGET=
14685 case "$mail_lock" in
14686 flock)
14687 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14690 lockf)
14691 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14694 none-needed) ;;
14696 *) BLESSMAIL_TARGET="need-blessmail" ;;
14697 esac
14701 for ac_func in accept4 gethostname \
14702 getrusage get_current_dir_name \
14703 lrand48 \
14704 select getpagesize setlocale \
14705 getrlimit setrlimit shutdown getaddrinfo \
14706 strsignal setitimer \
14707 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14708 gai_strerror getline getdelim sync \
14709 difftime posix_memalign \
14710 getpwent endpwent getgrent endgrent \
14711 touchlock \
14712 cfmakeraw cfsetspeed copysign __executable_start log2
14713 do :
14714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14715 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14716 eval as_val=\$$as_ac_var
14717 if test "x$as_val" = x""yes; then :
14718 cat >>confdefs.h <<_ACEOF
14719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14720 _ACEOF
14723 done
14726 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14727 ## has a broken `rint' in some library versions including math library
14728 ## version number A.09.05.
14729 ## You can fix the math library by installing patch number PHSS_4630.
14730 ## But we can fix it more reliably for Emacs by just not using rint.
14731 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14732 case $opsys in
14733 hpux*) : ;;
14734 *) for ac_func in random rint
14735 do :
14736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14737 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14738 eval as_val=\$$as_ac_var
14739 if test "x$as_val" = x""yes; then :
14740 cat >>confdefs.h <<_ACEOF
14741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14742 _ACEOF
14745 done
14747 esac
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14750 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14751 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14758 main ()
14760 __builtin_unwind_init ();
14762 return 0;
14764 _ACEOF
14765 if ac_fn_c_try_link "$LINENO"; then :
14766 emacs_cv_func___builtin_unwind_init=yes
14767 else
14768 emacs_cv_func___builtin_unwind_init=no
14770 rm -f core conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14774 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14775 if test $emacs_cv_func___builtin_unwind_init = yes; then
14777 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14786 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14787 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14790 while :; do
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <sys/types.h> /* for off_t */
14794 #include <stdio.h>
14796 main ()
14798 int (*fp) (FILE *, off_t, int) = fseeko;
14799 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14801 return 0;
14803 _ACEOF
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 ac_cv_sys_largefile_source=no; break
14807 rm -f core conftest.err conftest.$ac_objext \
14808 conftest$ac_exeext conftest.$ac_ext
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811 #define _LARGEFILE_SOURCE 1
14812 #include <sys/types.h> /* for off_t */
14813 #include <stdio.h>
14815 main ()
14817 int (*fp) (FILE *, off_t, int) = fseeko;
14818 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14820 return 0;
14822 _ACEOF
14823 if ac_fn_c_try_link "$LINENO"; then :
14824 ac_cv_sys_largefile_source=1; break
14826 rm -f core conftest.err conftest.$ac_objext \
14827 conftest$ac_exeext conftest.$ac_ext
14828 ac_cv_sys_largefile_source=unknown
14829 break
14830 done
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14833 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14834 case $ac_cv_sys_largefile_source in #(
14835 no | unknown) ;;
14837 cat >>confdefs.h <<_ACEOF
14838 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14839 _ACEOF
14841 esac
14842 rm -rf conftest*
14844 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14845 # in glibc 2.1.3, but that breaks too many other things.
14846 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14847 if test $ac_cv_sys_largefile_source != unknown; then
14849 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14854 # UNIX98 PTYs.
14855 for ac_func in grantpt
14856 do :
14857 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14858 if test "x$ac_cv_func_grantpt" = x""yes; then :
14859 cat >>confdefs.h <<_ACEOF
14860 #define HAVE_GRANTPT 1
14861 _ACEOF
14864 done
14867 # PTY-related GNU extensions.
14868 for ac_func in getpt posix_openpt
14869 do :
14870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14872 eval as_val=\$$as_ac_var
14873 if test "x$as_val" = x""yes; then :
14874 cat >>confdefs.h <<_ACEOF
14875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14876 _ACEOF
14879 done
14882 # Check this now, so that we will NOT find the above functions in ncurses.
14883 # That is because we have not set up to link ncurses in lib-src.
14884 # It's better to believe a function is not available
14885 # than to expect to find it in ncurses.
14886 # Also we need tputs and friends to be able to build at all.
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14888 $as_echo_n "checking for library containing tputs... " >&6; }
14889 # Run a test program that contains a call to tputs, a call that is
14890 # never executed. This tests whether a pre-'main' dynamic linker
14891 # works with the library. It's too much trouble to actually call
14892 # tputs in the test program, due to portability hassles. When
14893 # cross-compiling, assume the test program will run if it links.
14895 if test "${opsys}" = "mingw32"; then
14896 msg='none required'
14897 else
14898 # Maybe curses should be tried earlier?
14899 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14900 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14901 OLIBS=$LIBS
14902 if test -z "$tputs_library"; then
14903 LIBS_TERMCAP=
14904 msg='none required'
14905 else
14906 LIBS_TERMCAP=-l$tputs_library
14907 msg=$LIBS_TERMCAP
14908 LIBS="$LIBS_TERMCAP $LIBS"
14910 if test "$cross_compiling" = yes; then :
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14914 extern void tputs (const char *, int, int (*)(int));
14915 int main (int argc, char **argv)
14917 if (argc == 10000)
14918 tputs (argv[0], 0, 0);
14919 return 0;
14922 _ACEOF
14923 if ac_fn_c_try_link "$LINENO"; then :
14925 else
14926 msg=no
14928 rm -f core conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext conftest.$ac_ext
14930 else
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14934 extern void tputs (const char *, int, int (*)(int));
14935 int main (int argc, char **argv)
14937 if (argc == 10000)
14938 tputs (argv[0], 0, 0);
14939 return 0;
14942 _ACEOF
14943 if ac_fn_c_try_run "$LINENO"; then :
14945 else
14946 msg=no
14948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14949 conftest.$ac_objext conftest.beam conftest.$ac_ext
14952 LIBS=$OLIBS
14953 if test "X$msg" != Xno; then
14954 break
14956 done
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14959 $as_echo "$msg" >&6; }
14960 if test "X$msg" = Xno; then
14961 as_fn_error "The required function \`tputs' was not found in any library.
14962 The following libraries were tried (in order):
14963 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14964 Please try installing whichever of these libraries is most appropriate
14965 for your system, together with its header files.
14966 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14969 ## Use termcap instead of terminfo?
14970 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14971 TERMINFO=yes
14972 ## FIXME? In the cases below where we unconditionally set
14973 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14974 ## if that was found above to have tputs.
14975 ## Should we use the gnu* logic everywhere?
14976 case "$opsys" in
14977 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14978 ## The ncurses library has been moved out of the System framework in
14979 ## Mac OS X 10.2. So if configure detects it, set the command-line
14980 ## option to use it.
14981 darwin) LIBS_TERMCAP="-lncurses" ;;
14983 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14985 freebsd)
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14987 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14988 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14989 $as_echo_n "(cached) " >&6
14990 else
14991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993 #include <osreldate.h>
14995 main ()
14997 #if __FreeBSD_version < 400000
14998 fail;
14999 #endif
15002 return 0;
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 emacs_cv_freebsd_terminfo=yes
15007 else
15008 emacs_cv_freebsd_terminfo=no
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15016 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15018 if test $emacs_cv_freebsd_terminfo = yes; then
15019 LIBS_TERMCAP="-lncurses"
15020 else
15021 TERMINFO=no
15022 LIBS_TERMCAP="-ltermcap"
15026 mingw32)
15027 TERMINFO=no
15028 LIBS_TERMCAP=
15031 netbsd)
15032 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15033 TERMINFO=no
15034 LIBS_TERMCAP="-ltermcap"
15038 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15040 ## hpux: Make sure we get select from libc rather than from libcurses
15041 ## because libcurses on HPUX 10.10 has a broken version of select.
15042 ## We used to use -lc -lcurses, but this may be cleaner.
15043 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15044 # set that way, now it uses the default). Isn't this a contradiction?
15045 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15047 esac
15049 TERMCAP_OBJ=tparam.o
15050 if test $TERMINFO = yes; then
15052 $as_echo "#define TERMINFO 1" >>confdefs.h
15054 TERMCAP_OBJ=terminfo.o
15056 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15058 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15065 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15066 # On Darwin, res_init appears not to be useful: see bug#562 and
15067 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15068 resolv=no
15070 if test $opsys != darwin; then
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 #include <netinet/in.h>
15075 #include <arpa/nameser.h>
15076 #include <resolv.h>
15078 main ()
15080 return res_init();
15082 return 0;
15084 _ACEOF
15085 if ac_fn_c_try_link "$LINENO"; then :
15086 have_res_init=yes
15087 else
15088 have_res_init=no
15090 rm -f core conftest.err conftest.$ac_objext \
15091 conftest$ac_exeext conftest.$ac_ext
15092 if test "$have_res_init" = no; then
15093 OLIBS="$LIBS"
15094 LIBS="$LIBS -lresolv"
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15096 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15098 /* end confdefs.h. */
15099 #include <netinet/in.h>
15100 #include <arpa/nameser.h>
15101 #include <resolv.h>
15103 main ()
15105 return res_init();
15107 return 0;
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"; then :
15111 have_res_init=yes
15112 else
15113 have_res_init=no
15115 rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15118 $as_echo "$have_res_init" >&6; }
15119 if test "$have_res_init" = yes ; then
15120 resolv=yes
15122 LIBS="$OLIBS"
15125 if test "$have_res_init" = yes; then
15127 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15131 # Do we need the Hesiod library to provide the support routines?
15132 LIBHESIOD=
15133 if test "$with_hesiod" != no ; then
15134 # Don't set $LIBS here -- see comments above. FIXME which comments?
15135 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15136 if test "x$ac_cv_func_res_send" = x""yes; then :
15138 else
15139 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15140 if test "x$ac_cv_func___res_send" = x""yes; then :
15142 else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15144 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15145 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 ac_check_lib_save_LIBS=$LIBS
15149 LIBS="-lresolv $LIBS"
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15153 /* Override any GCC internal prototype to avoid an error.
15154 Use char because int might match the return type of a GCC
15155 builtin and then its argument prototype would still apply. */
15156 #ifdef __cplusplus
15157 extern "C"
15158 #endif
15159 char res_send ();
15161 main ()
15163 return res_send ();
15165 return 0;
15167 _ACEOF
15168 if ac_fn_c_try_link "$LINENO"; then :
15169 ac_cv_lib_resolv_res_send=yes
15170 else
15171 ac_cv_lib_resolv_res_send=no
15173 rm -f core conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15178 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15179 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15180 resolv=yes
15181 else
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15183 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15184 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15185 $as_echo_n "(cached) " >&6
15186 else
15187 ac_check_lib_save_LIBS=$LIBS
15188 LIBS="-lresolv $LIBS"
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15192 /* Override any GCC internal prototype to avoid an error.
15193 Use char because int might match the return type of a GCC
15194 builtin and then its argument prototype would still apply. */
15195 #ifdef __cplusplus
15196 extern "C"
15197 #endif
15198 char __res_send ();
15200 main ()
15202 return __res_send ();
15204 return 0;
15206 _ACEOF
15207 if ac_fn_c_try_link "$LINENO"; then :
15208 ac_cv_lib_resolv___res_send=yes
15209 else
15210 ac_cv_lib_resolv___res_send=no
15212 rm -f core conftest.err conftest.$ac_objext \
15213 conftest$ac_exeext conftest.$ac_ext
15214 LIBS=$ac_check_lib_save_LIBS
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15217 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15218 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15219 resolv=yes
15228 if test "$resolv" = yes ; then
15229 RESOLVLIB=-lresolv
15230 else
15231 RESOLVLIB=
15233 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15234 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15236 else
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15238 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15239 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15240 $as_echo_n "(cached) " >&6
15241 else
15242 ac_check_lib_save_LIBS=$LIBS
15243 LIBS="-lhesiod $RESOLVLIB $LIBS"
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15247 /* Override any GCC internal prototype to avoid an error.
15248 Use char because int might match the return type of a GCC
15249 builtin and then its argument prototype would still apply. */
15250 #ifdef __cplusplus
15251 extern "C"
15252 #endif
15253 char hes_getmailhost ();
15255 main ()
15257 return hes_getmailhost ();
15259 return 0;
15261 _ACEOF
15262 if ac_fn_c_try_link "$LINENO"; then :
15263 ac_cv_lib_hesiod_hes_getmailhost=yes
15264 else
15265 ac_cv_lib_hesiod_hes_getmailhost=no
15267 rm -f core conftest.err conftest.$ac_objext \
15268 conftest$ac_exeext conftest.$ac_ext
15269 LIBS=$ac_check_lib_save_LIBS
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15272 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15273 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15274 hesiod=yes
15275 else
15282 if test x"$hesiod" = xyes; then
15283 LIBHESIOD=-lhesiod
15288 # Do we need libresolv (due to res_init or Hesiod)?
15289 if test "$resolv" = yes && test $opsys != darwin; then
15290 LIBRESOLV=-lresolv
15291 else
15292 LIBRESOLV=
15296 # These tell us which Kerberos-related libraries to use.
15297 COM_ERRLIB=
15298 CRYPTOLIB=
15299 KRB5LIB=
15300 DESLIB=
15301 KRB4LIB=
15303 if test "${with_kerberos}" != no; then
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15305 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15306 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 ac_check_lib_save_LIBS=$LIBS
15310 LIBS="-lcom_err $LIBS"
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15317 #ifdef __cplusplus
15318 extern "C"
15319 #endif
15320 char com_err ();
15322 main ()
15324 return com_err ();
15326 return 0;
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"; then :
15330 ac_cv_lib_com_err_com_err=yes
15331 else
15332 ac_cv_lib_com_err_com_err=no
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15339 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15340 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15341 have_com_err=yes
15342 else
15343 have_com_err=no
15346 if test $have_com_err = yes; then
15347 COM_ERRLIB=-lcom_err
15348 LIBS="$COM_ERRLIB $LIBS"
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15351 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15352 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15353 $as_echo_n "(cached) " >&6
15354 else
15355 ac_check_lib_save_LIBS=$LIBS
15356 LIBS="-lcrypto $LIBS"
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15360 /* Override any GCC internal prototype to avoid an error.
15361 Use char because int might match the return type of a GCC
15362 builtin and then its argument prototype would still apply. */
15363 #ifdef __cplusplus
15364 extern "C"
15365 #endif
15366 char mit_des_cbc_encrypt ();
15368 main ()
15370 return mit_des_cbc_encrypt ();
15372 return 0;
15374 _ACEOF
15375 if ac_fn_c_try_link "$LINENO"; then :
15376 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15377 else
15378 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15380 rm -f core conftest.err conftest.$ac_objext \
15381 conftest$ac_exeext conftest.$ac_ext
15382 LIBS=$ac_check_lib_save_LIBS
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15385 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15386 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15387 have_crypto=yes
15388 else
15389 have_crypto=no
15392 if test $have_crypto = yes; then
15393 CRYPTOLIB=-lcrypto
15394 LIBS="$CRYPTOLIB $LIBS"
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15397 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15398 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15399 $as_echo_n "(cached) " >&6
15400 else
15401 ac_check_lib_save_LIBS=$LIBS
15402 LIBS="-lk5crypto $LIBS"
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15409 #ifdef __cplusplus
15410 extern "C"
15411 #endif
15412 char mit_des_cbc_encrypt ();
15414 main ()
15416 return mit_des_cbc_encrypt ();
15418 return 0;
15420 _ACEOF
15421 if ac_fn_c_try_link "$LINENO"; then :
15422 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15423 else
15424 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15426 rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 LIBS=$ac_check_lib_save_LIBS
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15431 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15432 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15433 have_k5crypto=yes
15434 else
15435 have_k5crypto=no
15438 if test $have_k5crypto = yes; then
15439 CRYPTOLIB=-lk5crypto
15440 LIBS="$CRYPTOLIB $LIBS"
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15443 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15444 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 ac_check_lib_save_LIBS=$LIBS
15448 LIBS="-lkrb5 $LIBS"
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15452 /* Override any GCC internal prototype to avoid an error.
15453 Use char because int might match the return type of a GCC
15454 builtin and then its argument prototype would still apply. */
15455 #ifdef __cplusplus
15456 extern "C"
15457 #endif
15458 char krb5_init_context ();
15460 main ()
15462 return krb5_init_context ();
15464 return 0;
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"; then :
15468 ac_cv_lib_krb5_krb5_init_context=yes
15469 else
15470 ac_cv_lib_krb5_krb5_init_context=no
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15474 LIBS=$ac_check_lib_save_LIBS
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15477 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15478 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15479 have_krb5=yes
15480 else
15481 have_krb5=no
15484 if test $have_krb5=yes; then
15485 KRB5LIB=-lkrb5
15486 LIBS="$KRB5LIB $LIBS"
15488 if test "${with_kerberos5}" = no; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15490 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15491 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 ac_check_lib_save_LIBS=$LIBS
15495 LIBS="-ldes425 $LIBS"
15496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15499 /* Override any GCC internal prototype to avoid an error.
15500 Use char because int might match the return type of a GCC
15501 builtin and then its argument prototype would still apply. */
15502 #ifdef __cplusplus
15503 extern "C"
15504 #endif
15505 char des_cbc_encrypt ();
15507 main ()
15509 return des_cbc_encrypt ();
15511 return 0;
15513 _ACEOF
15514 if ac_fn_c_try_link "$LINENO"; then :
15515 ac_cv_lib_des425_des_cbc_encrypt=yes
15516 else
15517 ac_cv_lib_des425_des_cbc_encrypt=no
15519 rm -f core conftest.err conftest.$ac_objext \
15520 conftest$ac_exeext conftest.$ac_ext
15521 LIBS=$ac_check_lib_save_LIBS
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15524 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15525 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15526 have_des425=yes
15527 else
15528 have_des425=no
15531 if test $have_des425 = yes; then
15532 DESLIB=-ldes425
15533 LIBS="$DESLIB $LIBS"
15534 else
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15536 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15537 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15538 $as_echo_n "(cached) " >&6
15539 else
15540 ac_check_lib_save_LIBS=$LIBS
15541 LIBS="-ldes $LIBS"
15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15545 /* Override any GCC internal prototype to avoid an error.
15546 Use char because int might match the return type of a GCC
15547 builtin and then its argument prototype would still apply. */
15548 #ifdef __cplusplus
15549 extern "C"
15550 #endif
15551 char des_cbc_encrypt ();
15553 main ()
15555 return des_cbc_encrypt ();
15557 return 0;
15559 _ACEOF
15560 if ac_fn_c_try_link "$LINENO"; then :
15561 ac_cv_lib_des_des_cbc_encrypt=yes
15562 else
15563 ac_cv_lib_des_des_cbc_encrypt=no
15565 rm -f core conftest.err conftest.$ac_objext \
15566 conftest$ac_exeext conftest.$ac_ext
15567 LIBS=$ac_check_lib_save_LIBS
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15570 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15571 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15572 have_des=yes
15573 else
15574 have_des=no
15577 if test $have_des = yes; then
15578 DESLIB=-ldes
15579 LIBS="$DESLIB $LIBS"
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15583 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15584 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15585 $as_echo_n "(cached) " >&6
15586 else
15587 ac_check_lib_save_LIBS=$LIBS
15588 LIBS="-lkrb4 $LIBS"
15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15592 /* Override any GCC internal prototype to avoid an error.
15593 Use char because int might match the return type of a GCC
15594 builtin and then its argument prototype would still apply. */
15595 #ifdef __cplusplus
15596 extern "C"
15597 #endif
15598 char krb_get_cred ();
15600 main ()
15602 return krb_get_cred ();
15604 return 0;
15606 _ACEOF
15607 if ac_fn_c_try_link "$LINENO"; then :
15608 ac_cv_lib_krb4_krb_get_cred=yes
15609 else
15610 ac_cv_lib_krb4_krb_get_cred=no
15612 rm -f core conftest.err conftest.$ac_objext \
15613 conftest$ac_exeext conftest.$ac_ext
15614 LIBS=$ac_check_lib_save_LIBS
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15617 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15618 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15619 have_krb4=yes
15620 else
15621 have_krb4=no
15624 if test $have_krb4 = yes; then
15625 KRB4LIB=-lkrb4
15626 LIBS="$KRB4LIB $LIBS"
15627 else
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15629 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15630 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15631 $as_echo_n "(cached) " >&6
15632 else
15633 ac_check_lib_save_LIBS=$LIBS
15634 LIBS="-lkrb $LIBS"
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15638 /* Override any GCC internal prototype to avoid an error.
15639 Use char because int might match the return type of a GCC
15640 builtin and then its argument prototype would still apply. */
15641 #ifdef __cplusplus
15642 extern "C"
15643 #endif
15644 char krb_get_cred ();
15646 main ()
15648 return krb_get_cred ();
15650 return 0;
15652 _ACEOF
15653 if ac_fn_c_try_link "$LINENO"; then :
15654 ac_cv_lib_krb_krb_get_cred=yes
15655 else
15656 ac_cv_lib_krb_krb_get_cred=no
15658 rm -f core conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15660 LIBS=$ac_check_lib_save_LIBS
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15663 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15664 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15665 have_krb=yes
15666 else
15667 have_krb=no
15670 if test $have_krb = yes; then
15671 KRB4LIB=-lkrb
15672 LIBS="$KRB4LIB $LIBS"
15677 if test "${with_kerberos5}" != no; then
15678 for ac_header in krb5.h
15679 do :
15680 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15681 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_KRB5_H 1
15684 _ACEOF
15685 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15687 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15689 cat >>confdefs.h <<_ACEOF
15690 #define HAVE_KRB5_ERROR_TEXT 1
15691 _ACEOF
15695 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15697 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15699 cat >>confdefs.h <<_ACEOF
15700 #define HAVE_KRB5_ERROR_E_TEXT 1
15701 _ACEOF
15708 done
15710 else
15711 for ac_header in krb.h
15712 do :
15713 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15714 if test "x$ac_cv_header_krb_h" = x""yes; then :
15715 cat >>confdefs.h <<_ACEOF
15716 #define HAVE_KRB_H 1
15717 _ACEOF
15719 else
15720 for ac_header in kerberosIV/krb.h
15721 do :
15722 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15723 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15724 cat >>confdefs.h <<_ACEOF
15725 #define HAVE_KERBEROSIV_KRB_H 1
15726 _ACEOF
15728 else
15729 for ac_header in kerberos/krb.h
15730 do :
15731 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15732 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15733 cat >>confdefs.h <<_ACEOF
15734 #define HAVE_KERBEROS_KRB_H 1
15735 _ACEOF
15739 done
15743 done
15747 done
15750 for ac_header in com_err.h
15751 do :
15752 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15753 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15754 cat >>confdefs.h <<_ACEOF
15755 #define HAVE_COM_ERR_H 1
15756 _ACEOF
15760 done
15773 for ac_func in $ac_func_list
15774 do :
15775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15777 eval as_val=\$$as_ac_var
15778 if test "x$as_val" = x""yes; then :
15779 cat >>confdefs.h <<_ACEOF
15780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15781 _ACEOF
15784 done
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15790 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15791 if test "${emacs_cv_localtime_cache+set}" = set; then :
15792 $as_echo_n "(cached) " >&6
15793 else
15794 if test x$ac_cv_func_tzset = xyes; then
15795 if test "$cross_compiling" = yes; then :
15796 # If we have tzset, assume the worst when cross-compiling.
15797 emacs_cv_localtime_cache=yes
15798 else
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801 #include <time.h>
15802 char TZ_GMT0[] = "TZ=GMT0";
15803 char TZ_PST8[] = "TZ=PST8";
15804 main()
15806 time_t now = time ((time_t *) 0);
15807 int hour_GMT0, hour_unset;
15808 if (putenv (TZ_GMT0) != 0)
15809 exit (1);
15810 hour_GMT0 = localtime (&now)->tm_hour;
15811 unsetenv("TZ");
15812 hour_unset = localtime (&now)->tm_hour;
15813 if (putenv (TZ_PST8) != 0)
15814 exit (1);
15815 if (localtime (&now)->tm_hour == hour_GMT0)
15816 exit (1);
15817 unsetenv("TZ");
15818 if (localtime (&now)->tm_hour != hour_unset)
15819 exit (1);
15820 exit (0);
15822 _ACEOF
15823 if ac_fn_c_try_run "$LINENO"; then :
15824 emacs_cv_localtime_cache=no
15825 else
15826 emacs_cv_localtime_cache=yes
15828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15829 conftest.$ac_objext conftest.beam conftest.$ac_ext
15832 else
15833 # If we lack tzset, report that localtime does not cache TZ,
15834 # since we can't invalidate the cache if we don't have tzset.
15835 emacs_cv_localtime_cache=no
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15839 $as_echo "$emacs_cv_localtime_cache" >&6; }
15840 if test $emacs_cv_localtime_cache = yes; then
15842 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15846 ok_so_far=yes
15847 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15848 if test "x$ac_cv_func_socket" = x""yes; then :
15850 else
15851 ok_so_far=no
15854 if test $ok_so_far = yes; then
15855 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15856 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15858 else
15859 ok_so_far=no
15864 if test $ok_so_far = yes; then
15865 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15866 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15868 else
15869 ok_so_far=no
15874 if test $ok_so_far = yes; then
15876 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15880 case $canonical in
15881 *-solaris2.4 | *-solaris2.4.*)
15882 : ${ac_cv_func_vfork_works=no};;
15883 esac
15885 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15886 if test "x$ac_cv_type_pid_t" = x""yes; then :
15888 else
15890 cat >>confdefs.h <<_ACEOF
15891 #define pid_t int
15892 _ACEOF
15896 for ac_header in vfork.h
15897 do :
15898 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15899 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15900 cat >>confdefs.h <<_ACEOF
15901 #define HAVE_VFORK_H 1
15902 _ACEOF
15906 done
15908 for ac_func in fork vfork
15909 do :
15910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15912 eval as_val=\$$as_ac_var
15913 if test "x$as_val" = x""yes; then :
15914 cat >>confdefs.h <<_ACEOF
15915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15916 _ACEOF
15919 done
15921 if test "x$ac_cv_func_fork" = xyes; then
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15923 $as_echo_n "checking for working fork... " >&6; }
15924 if test "${ac_cv_func_fork_works+set}" = set; then :
15925 $as_echo_n "(cached) " >&6
15926 else
15927 if test "$cross_compiling" = yes; then :
15928 ac_cv_func_fork_works=cross
15929 else
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 $ac_includes_default
15934 main ()
15937 /* By Ruediger Kuhlmann. */
15938 return fork () < 0;
15941 return 0;
15943 _ACEOF
15944 if ac_fn_c_try_run "$LINENO"; then :
15945 ac_cv_func_fork_works=yes
15946 else
15947 ac_cv_func_fork_works=no
15949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15950 conftest.$ac_objext conftest.beam conftest.$ac_ext
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15955 $as_echo "$ac_cv_func_fork_works" >&6; }
15957 else
15958 ac_cv_func_fork_works=$ac_cv_func_fork
15960 if test "x$ac_cv_func_fork_works" = xcross; then
15961 case $host in
15962 *-*-amigaos* | *-*-msdosdjgpp*)
15963 # Override, as these systems have only a dummy fork() stub
15964 ac_cv_func_fork_works=no
15967 ac_cv_func_fork_works=yes
15969 esac
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15971 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15973 ac_cv_func_vfork_works=$ac_cv_func_vfork
15974 if test "x$ac_cv_func_vfork" = xyes; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15976 $as_echo_n "checking for working vfork... " >&6; }
15977 if test "${ac_cv_func_vfork_works+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15979 else
15980 if test "$cross_compiling" = yes; then :
15981 ac_cv_func_vfork_works=cross
15982 else
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 /* Thanks to Paul Eggert for this test. */
15986 $ac_includes_default
15987 #include <sys/wait.h>
15988 #ifdef HAVE_VFORK_H
15989 # include <vfork.h>
15990 #endif
15991 /* On some sparc systems, changes by the child to local and incoming
15992 argument registers are propagated back to the parent. The compiler
15993 is told about this with #include <vfork.h>, but some compilers
15994 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15995 static variable whose address is put into a register that is
15996 clobbered by the vfork. */
15997 static void
15998 #ifdef __cplusplus
15999 sparc_address_test (int arg)
16000 # else
16001 sparc_address_test (arg) int arg;
16002 #endif
16004 static pid_t child;
16005 if (!child) {
16006 child = vfork ();
16007 if (child < 0) {
16008 perror ("vfork");
16009 _exit(2);
16011 if (!child) {
16012 arg = getpid();
16013 write(-1, "", 0);
16014 _exit (arg);
16020 main ()
16022 pid_t parent = getpid ();
16023 pid_t child;
16025 sparc_address_test (0);
16027 child = vfork ();
16029 if (child == 0) {
16030 /* Here is another test for sparc vfork register problems. This
16031 test uses lots of local variables, at least as many local
16032 variables as main has allocated so far including compiler
16033 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16034 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16035 reuse the register of parent for one of the local variables,
16036 since it will think that parent can't possibly be used any more
16037 in this routine. Assigning to the local variable will thus
16038 munge parent in the parent process. */
16039 pid_t
16040 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16041 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16042 /* Convince the compiler that p..p7 are live; otherwise, it might
16043 use the same hardware register for all 8 local variables. */
16044 if (p != p1 || p != p2 || p != p3 || p != p4
16045 || p != p5 || p != p6 || p != p7)
16046 _exit(1);
16048 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16049 from child file descriptors. If the child closes a descriptor
16050 before it execs or exits, this munges the parent's descriptor
16051 as well. Test for this by closing stdout in the child. */
16052 _exit(close(fileno(stdout)) != 0);
16053 } else {
16054 int status;
16055 struct stat st;
16057 while (wait(&status) != child)
16059 return (
16060 /* Was there some problem with vforking? */
16061 child < 0
16063 /* Did the child fail? (This shouldn't happen.) */
16064 || status
16066 /* Did the vfork/compiler bug occur? */
16067 || parent != getpid()
16069 /* Did the file descriptor bug occur? */
16070 || fstat(fileno(stdout), &st) != 0
16074 _ACEOF
16075 if ac_fn_c_try_run "$LINENO"; then :
16076 ac_cv_func_vfork_works=yes
16077 else
16078 ac_cv_func_vfork_works=no
16080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16081 conftest.$ac_objext conftest.beam conftest.$ac_ext
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16086 $as_echo "$ac_cv_func_vfork_works" >&6; }
16089 if test "x$ac_cv_func_fork_works" = xcross; then
16090 ac_cv_func_vfork_works=$ac_cv_func_vfork
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16092 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16095 if test "x$ac_cv_func_vfork_works" = xyes; then
16097 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16099 else
16101 $as_echo "#define vfork fork" >>confdefs.h
16104 if test "x$ac_cv_func_fork_works" = xyes; then
16106 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16111 for ac_func in snprintf
16112 do :
16113 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16114 if test "x$ac_cv_func_snprintf" = x""yes; then :
16115 cat >>confdefs.h <<_ACEOF
16116 #define HAVE_SNPRINTF 1
16117 _ACEOF
16120 done
16123 XGSELOBJ=
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16125 $as_echo_n "checking whether GLib is linked in... " >&6; }
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16128 #include <glib.h>
16131 main ()
16133 g_print ("Hello world");
16135 return 0;
16137 _ACEOF
16138 if ac_fn_c_try_link "$LINENO"; then :
16139 links_glib=yes
16140 else
16141 links_glib=no
16143 rm -f core conftest.err conftest.$ac_objext \
16144 conftest$ac_exeext conftest.$ac_ext
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16146 $as_echo "$links_glib" >&6; }
16147 if test "${links_glib}" = "yes"; then
16149 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16151 if test "$HAVE_NS" = no;then
16152 XGSELOBJ=xgselect.o
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16158 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16159 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16160 $as_echo_n "(cached) " >&6
16161 else
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16164 #include <langinfo.h>
16166 main ()
16168 char* cs = nl_langinfo(CODESET);
16170 return 0;
16172 _ACEOF
16173 if ac_fn_c_try_link "$LINENO"; then :
16174 emacs_cv_langinfo_codeset=yes
16175 else
16176 emacs_cv_langinfo_codeset=no
16178 rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16183 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16184 if test $emacs_cv_langinfo_codeset = yes; then
16186 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16191 $as_echo_n "checking for mbstate_t... " >&6; }
16192 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16193 $as_echo_n "(cached) " >&6
16194 else
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197 $ac_includes_default
16198 # include <wchar.h>
16200 main ()
16202 mbstate_t x; return sizeof x;
16204 return 0;
16206 _ACEOF
16207 if ac_fn_c_try_compile "$LINENO"; then :
16208 ac_cv_type_mbstate_t=yes
16209 else
16210 ac_cv_type_mbstate_t=no
16212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16215 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16216 if test $ac_cv_type_mbstate_t = yes; then
16218 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16220 else
16222 $as_echo "#define mbstate_t int" >>confdefs.h
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16227 $as_echo_n "checking for C restricted array declarations... " >&6; }
16228 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 void fred (int x[__restrict]);
16235 main ()
16239 return 0;
16241 _ACEOF
16242 if ac_fn_c_try_compile "$LINENO"; then :
16243 emacs_cv_c_restrict_arr=yes
16244 else
16245 emacs_cv_c_restrict_arr=no
16247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16250 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16251 if test "$emacs_cv_c_restrict_arr" = yes; then
16253 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16258 if test "${opsys}" != "mingw32"; then
16260 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16265 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16268 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16269 if test "${opsys}" != "mingw32"; then
16271 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16276 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16282 if test "${opsys}" = "mingw32"; then
16283 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16285 else
16286 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16291 if test "${opsys}" = "mingw32"; then
16292 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16294 else
16295 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16300 $as_echo "#define subprocesses 1" >>confdefs.h
16304 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16309 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16312 if test "${opsys}" = "mingw32"; then
16314 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16318 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16322 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16324 else
16326 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16330 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16334 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16340 case $opsys in
16341 aix4-2)
16342 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16343 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16348 hpux*)
16349 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16352 esac
16355 case $opsys in
16356 irix6-5 | sol2* | unixware )
16358 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16361 esac
16363 emacs_broken_SIGIO=no
16365 case $opsys in
16366 hpux* | irix6-5 | openbsd | sol2* | unixware | gnu-kfreebsd )
16367 emacs_broken_SIGIO=yes
16370 aix4-2)
16372 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16376 freebsd)
16378 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16381 esac
16383 case $opsys in
16384 gnu-* | sol2-10 )
16386 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16389 esac
16391 case $opsys in
16392 darwin | dragonfly | freebsd | netbsd | openbsd )
16394 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16397 esac
16399 case $opsys in
16400 netbsd | openbsd) sound_device="/dev/audio" ;;
16401 *) sound_device="/dev/dsp" ;;
16402 esac
16405 cat >>confdefs.h <<_ACEOF
16406 #define DEFAULT_SOUND_DEVICE "$sound_device"
16407 _ACEOF
16411 case $opsys in
16412 darwin | gnu-linux | gnu-kfreebsd )
16414 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16417 esac
16420 case $opsys in
16421 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16423 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16426 esac
16435 case $opsys in
16436 aix4-2 )
16437 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16439 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16441 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16445 cygwin )
16446 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16448 $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
16450 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16452 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16456 darwin )
16457 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16459 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16461 $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
16463 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16465 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16469 gnu | openbsd )
16470 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16474 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16475 if test "x$ac_cv_func_grantpt" = xyes; then
16477 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16479 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16481 $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
16483 if test "x$ac_cv_func_posix_openpt" = xyes; then
16484 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY)" >>confdefs.h
16486 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16488 elif test "x$ac_cv_func_getpt" = xyes; then
16489 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16491 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16493 else
16494 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16497 else
16498 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16503 hpux*)
16504 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16506 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16508 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16512 irix6-5 )
16513 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16515 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16517 $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
16519 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16521 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16525 sol2* )
16526 $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
16530 unixware )
16531 $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
16534 esac
16537 case $opsys in
16538 sol2* | unixware )
16539 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16541 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16544 $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
16547 esac
16552 case $opsys in
16553 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
16554 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16558 gnu-linux | gnu-kfreebsd )
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16561 $as_echo_n "checking for signals via characters... " >&6; }
16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16565 #include <linux/version.h>
16566 #if LINUX_VERSION_CODE < 0x20400
16567 # error "Linux version too old"
16568 #endif
16571 main ()
16575 return 0;
16577 _ACEOF
16578 if ac_fn_c_try_cpp "$LINENO"; then :
16579 emacs_signals_via_chars=yes
16580 else
16581 emacs_signals_via_chars=no
16583 rm -f conftest.err conftest.$ac_ext
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16586 $as_echo "$emacs_signals_via_chars" >&6; }
16587 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16590 esac
16595 case $opsys in
16596 aix*)
16597 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16600 hpux*)
16601 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16604 irix6-5)
16605 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16608 esac
16613 case $opsys in
16614 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16617 gnu | dragonfly | freebsd | netbsd | openbsd )
16619 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16621 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16625 gnu-linux | gnu-kfreebsd )
16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627 /* end confdefs.h. */
16629 #ifndef __ia64__
16630 # error "not ia64"
16631 #endif
16634 main ()
16638 return 0;
16640 _ACEOF
16641 if ac_fn_c_try_cpp "$LINENO"; then :
16643 $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
16646 rm -f conftest.err conftest.$ac_ext
16649 hpux*)
16651 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16654 esac
16660 case $opsys in
16661 gnu-linux | gnu-kfreebsd )
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16665 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16666 || defined __alpha__ || defined __mips__ || defined __s390__ \
16667 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16668 || defined __ia64__ || defined __sh__
16669 /* ok */
16670 #else
16671 # error "setjmp not known to work on this arch"
16672 #endif
16675 main ()
16679 return 0;
16681 _ACEOF
16682 if ac_fn_c_try_cpp "$LINENO"; then :
16683 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16686 rm -f conftest.err conftest.$ac_ext
16688 esac
16691 if test x$GCC = xyes; then
16692 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16694 else
16695 case $opsys in
16696 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
16697 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16700 esac
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16703 $as_echo_n "checking for _setjmp... " >&6; }
16704 if test "${emacs_cv_func__setjmp+set}" = set; then :
16705 $as_echo_n "(cached) " >&6
16706 else
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16709 #include <setjmp.h>
16710 #ifdef __MINGW32__
16711 # define _longjmp longjmp
16712 #endif
16715 main ()
16717 jmp_buf j;
16718 if (! _setjmp (j))
16719 _longjmp (j, 1);
16721 return 0;
16723 _ACEOF
16724 if ac_fn_c_try_link "$LINENO"; then :
16725 emacs_cv_func__setjmp=yes
16726 else
16727 emacs_cv_func__setjmp=no
16729 rm -f core conftest.err conftest.$ac_objext \
16730 conftest$ac_exeext conftest.$ac_ext
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16733 $as_echo "$emacs_cv_func__setjmp" >&6; }
16734 if test $emacs_cv_func__setjmp = yes; then
16736 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16738 else
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16740 $as_echo_n "checking for sigsetjmp... " >&6; }
16741 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16742 $as_echo_n "(cached) " >&6
16743 else
16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16746 #include <setjmp.h>
16749 main ()
16751 sigjmp_buf j;
16752 if (! sigsetjmp (j, 1))
16753 siglongjmp (j, 1);
16755 return 0;
16757 _ACEOF
16758 if ac_fn_c_try_link "$LINENO"; then :
16759 emacs_cv_func_sigsetjmp=yes
16760 else
16761 emacs_cv_func_sigsetjmp=no
16763 rm -f core conftest.err conftest.$ac_objext \
16764 conftest$ac_exeext conftest.$ac_ext
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16767 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16768 if test $emacs_cv_func_sigsetjmp = yes; then
16770 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16775 case $opsys in
16776 sol2* | unixware )
16778 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16781 esac
16784 case $opsys in
16785 hpux* | sol2* )
16787 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16790 esac
16798 case $opsys in
16799 aix4-2)
16800 $as_echo "#define USG /**/" >>confdefs.h
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16805 #ifndef _AIX
16806 # error "_AIX not defined"
16807 #endif
16810 main ()
16814 return 0;
16816 _ACEOF
16817 if ac_fn_c_try_cpp "$LINENO"; then :
16819 else
16821 $as_echo "#define _AIX /**/" >>confdefs.h
16824 rm -f conftest.err conftest.$ac_ext
16827 cygwin)
16829 $as_echo "#define CYGWIN 1" >>confdefs.h
16833 darwin)
16835 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16839 gnu-linux | gnu-kfreebsd )
16840 $as_echo "#define USG /**/" >>confdefs.h
16843 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16847 hpux*)
16848 $as_echo "#define USG /**/" >>confdefs.h
16851 $as_echo "#define HPUX /**/" >>confdefs.h
16855 irix6-5)
16856 $as_echo "#define USG /**/" >>confdefs.h
16858 $as_echo "#define USG5_4 /**/" >>confdefs.h
16861 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16865 mingw32)
16866 $as_echo "#define DOS_NT /**/" >>confdefs.h
16869 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16871 if test "x$ac_enable_checking" != "x" ; then
16873 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
16878 sol2*)
16879 $as_echo "#define USG /**/" >>confdefs.h
16881 $as_echo "#define USG5_4 /**/" >>confdefs.h
16884 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16888 unixware)
16889 $as_echo "#define USG /**/" >>confdefs.h
16891 $as_echo "#define USG5_4 /**/" >>confdefs.h
16894 esac
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16897 $as_echo_n "checking for usable FIONREAD... " >&6; }
16898 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 case $opsys in
16902 aix4-2)
16903 emacs_cv_usable_FIONREAD=no
16906 mingw32)
16907 emacs_cv_usable_FIONREAD=yes
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16913 #include <sys/types.h>
16914 #include <sys/ioctl.h>
16915 #ifdef USG5_4
16916 # include <sys/filio.h>
16917 #endif
16920 main ()
16922 int foo = ioctl (0, FIONREAD, &foo);
16924 return 0;
16926 _ACEOF
16927 if ac_fn_c_try_compile "$LINENO"; then :
16928 emacs_cv_usable_FIONREAD=yes
16929 else
16930 emacs_cv_usable_FIONREAD=no
16932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16934 esac
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16937 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16938 if test $emacs_cv_usable_FIONREAD = yes; then
16940 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16943 if test $emacs_broken_SIGIO = no; then
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16945 $as_echo_n "checking for usable SIGIO... " >&6; }
16946 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16947 $as_echo_n "(cached) " >&6
16948 else
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16951 #include <fcntl.h>
16952 #include <signal.h>
16955 main ()
16957 int foo = SIGIO | F_SETFL | FASYNC;
16959 return 0;
16961 _ACEOF
16962 if ac_fn_c_try_compile "$LINENO"; then :
16963 emacs_cv_usable_SIGIO=yes
16964 else
16965 emacs_cv_usable_SIGIO=no
16967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16970 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16971 if test $emacs_cv_usable_SIGIO = yes; then
16973 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16980 case $opsys in
16981 cygwin)
16983 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16987 hpux11)
16989 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16993 irix6-5)
16995 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16999 sol2-10)
17001 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17004 esac
17006 # Set up the CFLAGS for real compilation, so we can substitute it.
17007 CFLAGS="$REAL_CFLAGS"
17008 CPPFLAGS="$REAL_CPPFLAGS"
17010 ## Hack to detect a buggy GCC version.
17011 if test "x$GCC" = xyes \
17012 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17013 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17014 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17015 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17018 version=$PACKAGE_VERSION
17020 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17022 cat >>confdefs.h <<_ACEOF
17023 #define COPYRIGHT "$copyright"
17024 _ACEOF
17028 ### Specify what sort of things we'll be editing into Makefile and config.h.
17029 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17032 ## Unused?
17055 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17056 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17057 ## end of LIBX_BASE, but nothing ever set it.
17062 ## Used in lwlib/Makefile.in.
17071 if test -n "${term_header}"; then
17073 cat >>confdefs.h <<_ACEOF
17074 #define TERM_HEADER "${term_header}"
17075 _ACEOF
17080 cat >>confdefs.h <<_ACEOF
17081 #define EMACS_CONFIGURATION "${canonical}"
17082 _ACEOF
17084 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
17086 cat >>confdefs.h <<_ACEOF
17087 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17088 _ACEOF
17092 case $opsys in
17093 mingw32)
17094 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17097 esac
17099 XMENU_OBJ=
17100 XOBJ=
17101 FONT_OBJ=
17102 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17104 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17106 XMENU_OBJ=xmenu.o
17107 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17108 FONT_OBJ=xfont.o
17109 if test "$HAVE_XFT" = "yes"; then
17110 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17111 elif test "$HAVE_FREETYPE" = "yes"; then
17112 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17120 WIDGET_OBJ=
17121 MOTIF_LIBW=
17122 if test "${USE_X_TOOLKIT}" != "none" ; then
17123 WIDGET_OBJ=widget.o
17125 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17127 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17129 $as_echo "#define USE_LUCID 1" >>confdefs.h
17131 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17133 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17135 MOTIF_LIBW=-lXm
17136 case "$opsys" in
17137 gnu-linux)
17138 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17139 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17142 unixware)
17143 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17144 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17145 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17148 aix4-2)
17149 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17150 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17152 esac
17153 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17158 TOOLKIT_LIBW=
17159 case "$USE_X_TOOLKIT" in
17160 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17161 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17162 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17163 esac
17166 if test "${opsys}" != "mingw32"; then
17167 if test "$USE_X_TOOLKIT" = "none"; then
17168 LIBXT_OTHER="\$(LIBXSM)"
17169 OLDXMENU_TARGET="really-oldXMenu"
17170 else
17171 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17172 OLDXMENU_TARGET="really-lwlib"
17177 ## The X Menu stuff is present in the X10 distribution, but missing
17178 ## from X11. If we have X10, just use the installed library;
17179 ## otherwise, use our own copy.
17180 if test "${HAVE_X11}" = "yes" ; then
17182 $as_echo "#define HAVE_X11 1" >>confdefs.h
17185 if test "$USE_X_TOOLKIT" = "none"; then
17186 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17187 else
17188 OLDXMENU="\${lwlibdir}/liblw.a"
17190 LIBXMENU="\$(OLDXMENU)"
17191 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17192 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17193 else
17194 ## For a syntactically valid Makefile; not actually used for anything.
17195 ## See comments in src/Makefile.in.
17196 OLDXMENU=nothing
17197 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17198 if test "${HAVE_X_WINDOWS}" = "yes"; then
17199 LIBXMENU="-lXMenu"
17200 else
17201 LIBXMENU=
17203 LIBX_OTHER=
17204 OLDXMENU_DEPS=
17207 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17208 OLDXMENU_TARGET=
17209 OLDXMENU=nothing
17210 LIBXMENU=
17211 OLDXMENU_DEPS=
17220 if test "${HAVE_MENUS}" = "yes" ; then
17222 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17226 if test "${GNU_MALLOC}" = "yes" ; then
17228 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17232 RALLOC_OBJ=
17233 if test "${REL_ALLOC}" = "yes" ; then
17235 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17238 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17242 if test "$opsys" = "cygwin"; then
17243 CYGWIN_OBJ="sheap.o cygw32.o"
17244 ## Cygwin differs because of its unexec().
17245 PRE_ALLOC_OBJ=
17246 POST_ALLOC_OBJ=lastfile.o
17247 elif test "$opsys" = "mingw32"; then
17248 CYGWIN_OBJ=
17249 PRE_ALLOC_OBJ=
17250 POST_ALLOC_OBJ=lastfile.o
17251 else
17252 CYGWIN_OBJ=
17253 PRE_ALLOC_OBJ=lastfile.o
17254 POST_ALLOC_OBJ=
17260 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17261 # it temporarily reverts them to their pre-pkg-config values,
17262 # because gnulib needs to work with both src (which uses the
17263 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17264 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17265 # and it therefore needs to run in an environment where LIBS does not
17266 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17267 # for some package unrelated to lib-src.
17268 SAVE_CFLAGS=$CFLAGS
17269 SAVE_LIBS=$LIBS
17270 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17271 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17283 LIBC_FATAL_STDERR_=1
17284 export LIBC_FATAL_STDERR_
17286 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17287 # for constant arguments. Useless!
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17289 $as_echo_n "checking for working alloca.h... " >&6; }
17290 if test "${ac_cv_working_alloca_h+set}" = set; then :
17291 $as_echo_n "(cached) " >&6
17292 else
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17295 #include <alloca.h>
17297 main ()
17299 char *p = (char *) alloca (2 * sizeof (int));
17300 if (p) return 0;
17302 return 0;
17304 _ACEOF
17305 if ac_fn_c_try_link "$LINENO"; then :
17306 ac_cv_working_alloca_h=yes
17307 else
17308 ac_cv_working_alloca_h=no
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17314 $as_echo "$ac_cv_working_alloca_h" >&6; }
17315 if test $ac_cv_working_alloca_h = yes; then
17317 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17322 $as_echo_n "checking for alloca... " >&6; }
17323 if test "${ac_cv_func_alloca_works+set}" = set; then :
17324 $as_echo_n "(cached) " >&6
17325 else
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 #ifdef __GNUC__
17329 # define alloca __builtin_alloca
17330 #else
17331 # ifdef _MSC_VER
17332 # include <malloc.h>
17333 # define alloca _alloca
17334 # else
17335 # ifdef HAVE_ALLOCA_H
17336 # include <alloca.h>
17337 # else
17338 # ifdef _AIX
17339 #pragma alloca
17340 # else
17341 # ifndef alloca /* predefined by HP cc +Olibcalls */
17342 char *alloca ();
17343 # endif
17344 # endif
17345 # endif
17346 # endif
17347 #endif
17350 main ()
17352 char *p = (char *) alloca (1);
17353 if (p) return 0;
17355 return 0;
17357 _ACEOF
17358 if ac_fn_c_try_link "$LINENO"; then :
17359 ac_cv_func_alloca_works=yes
17360 else
17361 ac_cv_func_alloca_works=no
17363 rm -f core conftest.err conftest.$ac_objext \
17364 conftest$ac_exeext conftest.$ac_ext
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17367 $as_echo "$ac_cv_func_alloca_works" >&6; }
17369 if test $ac_cv_func_alloca_works = yes; then
17371 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17373 else
17374 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17375 # that cause trouble. Some versions do not even contain alloca or
17376 # contain a buggy version. If you still want to use their alloca,
17377 # use ar to extract alloca.o from them instead of compiling alloca.c.
17383 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17385 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17389 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17390 if test "${ac_cv_os_cray+set}" = set; then :
17391 $as_echo_n "(cached) " >&6
17392 else
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17395 #if defined CRAY && ! defined CRAY2
17396 webecray
17397 #else
17398 wenotbecray
17399 #endif
17401 _ACEOF
17402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17403 $EGREP "webecray" >/dev/null 2>&1; then :
17404 ac_cv_os_cray=yes
17405 else
17406 ac_cv_os_cray=no
17408 rm -f conftest*
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17412 $as_echo "$ac_cv_os_cray" >&6; }
17413 if test $ac_cv_os_cray = yes; then
17414 for ac_func in _getb67 GETB67 getb67; do
17415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17416 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17417 eval as_val=\$$as_ac_var
17418 if test "x$as_val" = x""yes; then :
17420 cat >>confdefs.h <<_ACEOF
17421 #define CRAY_STACKSEG_END $ac_func
17422 _ACEOF
17424 break
17427 done
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17431 $as_echo_n "checking stack direction for C alloca... " >&6; }
17432 if test "${ac_cv_c_stack_direction+set}" = set; then :
17433 $as_echo_n "(cached) " >&6
17434 else
17435 if test "$cross_compiling" = yes; then :
17436 ac_cv_c_stack_direction=0
17437 else
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17440 $ac_includes_default
17442 find_stack_direction (int *addr, int depth)
17444 int dir, dummy = 0;
17445 if (! addr)
17446 addr = &dummy;
17447 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17448 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17449 return dir + dummy;
17453 main (int argc, char **argv)
17455 return find_stack_direction (0, argc + !argv + 20) < 0;
17457 _ACEOF
17458 if ac_fn_c_try_run "$LINENO"; then :
17459 ac_cv_c_stack_direction=1
17460 else
17461 ac_cv_c_stack_direction=-1
17463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17464 conftest.$ac_objext conftest.beam conftest.$ac_ext
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17469 $as_echo "$ac_cv_c_stack_direction" >&6; }
17470 cat >>confdefs.h <<_ACEOF
17471 #define STACK_DIRECTION $ac_cv_c_stack_direction
17472 _ACEOF
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17481 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17482 if test "${ac_cv_c_bigendian+set}" = set; then :
17483 $as_echo_n "(cached) " >&6
17484 else
17485 ac_cv_c_bigendian=unknown
17486 # See if we're dealing with a universal compiler.
17487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488 /* end confdefs.h. */
17489 #ifndef __APPLE_CC__
17490 not a universal capable compiler
17491 #endif
17492 typedef int dummy;
17494 _ACEOF
17495 if ac_fn_c_try_compile "$LINENO"; then :
17497 # Check for potential -arch flags. It is not universal unless
17498 # there are at least two -arch flags with different values.
17499 ac_arch=
17500 ac_prev=
17501 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17502 if test -n "$ac_prev"; then
17503 case $ac_word in
17504 i?86 | x86_64 | ppc | ppc64)
17505 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17506 ac_arch=$ac_word
17507 else
17508 ac_cv_c_bigendian=universal
17509 break
17512 esac
17513 ac_prev=
17514 elif test "x$ac_word" = "x-arch"; then
17515 ac_prev=arch
17517 done
17519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 if test $ac_cv_c_bigendian = unknown; then
17521 # See if sys/param.h defines the BYTE_ORDER macro.
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524 #include <sys/types.h>
17525 #include <sys/param.h>
17528 main ()
17530 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17531 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17532 && LITTLE_ENDIAN)
17533 bogus endian macros
17534 #endif
17537 return 0;
17539 _ACEOF
17540 if ac_fn_c_try_compile "$LINENO"; then :
17541 # It does; now see whether it defined to BIG_ENDIAN or not.
17542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543 /* end confdefs.h. */
17544 #include <sys/types.h>
17545 #include <sys/param.h>
17548 main ()
17550 #if BYTE_ORDER != BIG_ENDIAN
17551 not big endian
17552 #endif
17555 return 0;
17557 _ACEOF
17558 if ac_fn_c_try_compile "$LINENO"; then :
17559 ac_cv_c_bigendian=yes
17560 else
17561 ac_cv_c_bigendian=no
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 if test $ac_cv_c_bigendian = unknown; then
17568 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571 #include <limits.h>
17574 main ()
17576 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17577 bogus endian macros
17578 #endif
17581 return 0;
17583 _ACEOF
17584 if ac_fn_c_try_compile "$LINENO"; then :
17585 # It does; now see whether it defined to _BIG_ENDIAN or not.
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588 #include <limits.h>
17591 main ()
17593 #ifndef _BIG_ENDIAN
17594 not big endian
17595 #endif
17598 return 0;
17600 _ACEOF
17601 if ac_fn_c_try_compile "$LINENO"; then :
17602 ac_cv_c_bigendian=yes
17603 else
17604 ac_cv_c_bigendian=no
17606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610 if test $ac_cv_c_bigendian = unknown; then
17611 # Compile a test program.
17612 if test "$cross_compiling" = yes; then :
17613 # Try to guess by grepping values from an object file.
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616 short int ascii_mm[] =
17617 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17618 short int ascii_ii[] =
17619 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17620 int use_ascii (int i) {
17621 return ascii_mm[i] + ascii_ii[i];
17623 short int ebcdic_ii[] =
17624 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17625 short int ebcdic_mm[] =
17626 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17627 int use_ebcdic (int i) {
17628 return ebcdic_mm[i] + ebcdic_ii[i];
17630 extern int foo;
17633 main ()
17635 return use_ascii (foo) == use_ebcdic (foo);
17637 return 0;
17639 _ACEOF
17640 if ac_fn_c_try_compile "$LINENO"; then :
17641 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17642 ac_cv_c_bigendian=yes
17644 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17645 if test "$ac_cv_c_bigendian" = unknown; then
17646 ac_cv_c_bigendian=no
17647 else
17648 # finding both strings is unlikely to happen, but who knows?
17649 ac_cv_c_bigendian=unknown
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654 else
17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656 /* end confdefs.h. */
17657 $ac_includes_default
17659 main ()
17662 /* Are we little or big endian? From Harbison&Steele. */
17663 union
17665 long int l;
17666 char c[sizeof (long int)];
17667 } u;
17668 u.l = 1;
17669 return u.c[sizeof (long int) - 1] == 1;
17672 return 0;
17674 _ACEOF
17675 if ac_fn_c_try_run "$LINENO"; then :
17676 ac_cv_c_bigendian=no
17677 else
17678 ac_cv_c_bigendian=yes
17680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17681 conftest.$ac_objext conftest.beam conftest.$ac_ext
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17687 $as_echo "$ac_cv_c_bigendian" >&6; }
17688 case $ac_cv_c_bigendian in #(
17689 yes)
17690 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17691 ;; #(
17693 ;; #(
17694 universal)
17696 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17698 ;; #(
17700 as_fn_error "unknown endianness
17701 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17702 esac
17706 GNULIB_CHDIR=0;
17707 GNULIB_CHOWN=0;
17708 GNULIB_CLOSE=0;
17709 GNULIB_DUP=0;
17710 GNULIB_DUP2=0;
17711 GNULIB_DUP3=0;
17712 GNULIB_ENVIRON=0;
17713 GNULIB_EUIDACCESS=0;
17714 GNULIB_FACCESSAT=0;
17715 GNULIB_FCHDIR=0;
17716 GNULIB_FCHOWNAT=0;
17717 GNULIB_FDATASYNC=0;
17718 GNULIB_FSYNC=0;
17719 GNULIB_FTRUNCATE=0;
17720 GNULIB_GETCWD=0;
17721 GNULIB_GETDOMAINNAME=0;
17722 GNULIB_GETDTABLESIZE=0;
17723 GNULIB_GETGROUPS=0;
17724 GNULIB_GETHOSTNAME=0;
17725 GNULIB_GETLOGIN=0;
17726 GNULIB_GETLOGIN_R=0;
17727 GNULIB_GETPAGESIZE=0;
17728 GNULIB_GETUSERSHELL=0;
17729 GNULIB_GROUP_MEMBER=0;
17730 GNULIB_ISATTY=0;
17731 GNULIB_LCHOWN=0;
17732 GNULIB_LINK=0;
17733 GNULIB_LINKAT=0;
17734 GNULIB_LSEEK=0;
17735 GNULIB_PIPE=0;
17736 GNULIB_PIPE2=0;
17737 GNULIB_PREAD=0;
17738 GNULIB_PWRITE=0;
17739 GNULIB_READ=0;
17740 GNULIB_READLINK=0;
17741 GNULIB_READLINKAT=0;
17742 GNULIB_RMDIR=0;
17743 GNULIB_SETHOSTNAME=0;
17744 GNULIB_SLEEP=0;
17745 GNULIB_SYMLINK=0;
17746 GNULIB_SYMLINKAT=0;
17747 GNULIB_TTYNAME_R=0;
17748 GNULIB_UNISTD_H_NONBLOCKING=0;
17749 GNULIB_UNISTD_H_SIGPIPE=0;
17750 GNULIB_UNLINK=0;
17751 GNULIB_UNLINKAT=0;
17752 GNULIB_USLEEP=0;
17753 GNULIB_WRITE=0;
17754 HAVE_CHOWN=1;
17755 HAVE_DUP2=1;
17756 HAVE_DUP3=1;
17757 HAVE_EUIDACCESS=1;
17758 HAVE_FACCESSAT=1;
17759 HAVE_FCHDIR=1;
17760 HAVE_FCHOWNAT=1;
17761 HAVE_FDATASYNC=1;
17762 HAVE_FSYNC=1;
17763 HAVE_FTRUNCATE=1;
17764 HAVE_GETDTABLESIZE=1;
17765 HAVE_GETGROUPS=1;
17766 HAVE_GETHOSTNAME=1;
17767 HAVE_GETLOGIN=1;
17768 HAVE_GETPAGESIZE=1;
17769 HAVE_GROUP_MEMBER=1;
17770 HAVE_LCHOWN=1;
17771 HAVE_LINK=1;
17772 HAVE_LINKAT=1;
17773 HAVE_PIPE=1;
17774 HAVE_PIPE2=1;
17775 HAVE_PREAD=1;
17776 HAVE_PWRITE=1;
17777 HAVE_READLINK=1;
17778 HAVE_READLINKAT=1;
17779 HAVE_SETHOSTNAME=1;
17780 HAVE_SLEEP=1;
17781 HAVE_SYMLINK=1;
17782 HAVE_SYMLINKAT=1;
17783 HAVE_UNLINKAT=1;
17784 HAVE_USLEEP=1;
17785 HAVE_DECL_ENVIRON=1;
17786 HAVE_DECL_FCHDIR=1;
17787 HAVE_DECL_FDATASYNC=1;
17788 HAVE_DECL_GETDOMAINNAME=1;
17789 HAVE_DECL_GETLOGIN_R=1;
17790 HAVE_DECL_GETPAGESIZE=1;
17791 HAVE_DECL_GETUSERSHELL=1;
17792 HAVE_DECL_SETHOSTNAME=1;
17793 HAVE_DECL_TTYNAME_R=1;
17794 HAVE_OS_H=0;
17795 HAVE_SYS_PARAM_H=0;
17796 REPLACE_CHOWN=0;
17797 REPLACE_CLOSE=0;
17798 REPLACE_DUP=0;
17799 REPLACE_DUP2=0;
17800 REPLACE_FCHOWNAT=0;
17801 REPLACE_FTRUNCATE=0;
17802 REPLACE_GETCWD=0;
17803 REPLACE_GETDOMAINNAME=0;
17804 REPLACE_GETLOGIN_R=0;
17805 REPLACE_GETGROUPS=0;
17806 REPLACE_GETPAGESIZE=0;
17807 REPLACE_ISATTY=0;
17808 REPLACE_LCHOWN=0;
17809 REPLACE_LINK=0;
17810 REPLACE_LINKAT=0;
17811 REPLACE_LSEEK=0;
17812 REPLACE_PREAD=0;
17813 REPLACE_PWRITE=0;
17814 REPLACE_READ=0;
17815 REPLACE_READLINK=0;
17816 REPLACE_RMDIR=0;
17817 REPLACE_SLEEP=0;
17818 REPLACE_SYMLINK=0;
17819 REPLACE_TTYNAME_R=0;
17820 REPLACE_UNLINK=0;
17821 REPLACE_UNLINKAT=0;
17822 REPLACE_USLEEP=0;
17823 REPLACE_WRITE=0;
17824 UNISTD_H_HAVE_WINSOCK2_H=0;
17825 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17829 GNULIB_OPENDIR=0;
17830 GNULIB_READDIR=0;
17831 GNULIB_REWINDDIR=0;
17832 GNULIB_CLOSEDIR=0;
17833 GNULIB_DIRFD=0;
17834 GNULIB_FDOPENDIR=0;
17835 GNULIB_SCANDIR=0;
17836 GNULIB_ALPHASORT=0;
17837 HAVE_OPENDIR=1;
17838 HAVE_READDIR=1;
17839 HAVE_REWINDDIR=1;
17840 HAVE_CLOSEDIR=1;
17841 HAVE_DECL_DIRFD=1;
17842 HAVE_DECL_FDOPENDIR=1;
17843 HAVE_FDOPENDIR=1;
17844 HAVE_SCANDIR=1;
17845 HAVE_ALPHASORT=1;
17846 REPLACE_OPENDIR=0;
17847 REPLACE_CLOSEDIR=0;
17848 REPLACE_DIRFD=0;
17849 REPLACE_FDOPENDIR=0;
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17854 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17855 if test "${gl_cv_have_include_next+set}" = set; then :
17856 $as_echo_n "(cached) " >&6
17857 else
17858 rm -rf conftestd1a conftestd1b conftestd2
17859 mkdir conftestd1a conftestd1b conftestd2
17860 cat <<EOF > conftestd1a/conftest.h
17861 #define DEFINED_IN_CONFTESTD1
17862 #include_next <conftest.h>
17863 #ifdef DEFINED_IN_CONFTESTD2
17864 int foo;
17865 #else
17866 #error "include_next doesn't work"
17867 #endif
17869 cat <<EOF > conftestd1b/conftest.h
17870 #define DEFINED_IN_CONFTESTD1
17871 #include <stdio.h>
17872 #include_next <conftest.h>
17873 #ifdef DEFINED_IN_CONFTESTD2
17874 int foo;
17875 #else
17876 #error "include_next doesn't work"
17877 #endif
17879 cat <<EOF > conftestd2/conftest.h
17880 #ifndef DEFINED_IN_CONFTESTD1
17881 #error "include_next test doesn't work"
17882 #endif
17883 #define DEFINED_IN_CONFTESTD2
17885 gl_save_CPPFLAGS="$CPPFLAGS"
17886 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17888 /* end confdefs.h. */
17889 #include <conftest.h>
17890 _ACEOF
17891 if ac_fn_c_try_compile "$LINENO"; then :
17892 gl_cv_have_include_next=yes
17893 else
17894 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17897 #include <conftest.h>
17898 _ACEOF
17899 if ac_fn_c_try_compile "$LINENO"; then :
17900 gl_cv_have_include_next=buggy
17901 else
17902 gl_cv_have_include_next=no
17904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 CPPFLAGS="$gl_save_CPPFLAGS"
17909 rm -rf conftestd1a conftestd1b conftestd2
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17913 $as_echo "$gl_cv_have_include_next" >&6; }
17914 PRAGMA_SYSTEM_HEADER=
17915 if test $gl_cv_have_include_next = yes; then
17916 INCLUDE_NEXT=include_next
17917 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17918 if test -n "$GCC"; then
17919 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17921 else
17922 if test $gl_cv_have_include_next = buggy; then
17923 INCLUDE_NEXT=include
17924 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17925 else
17926 INCLUDE_NEXT=include
17927 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17934 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17935 if test "${gl_cv_pragma_columns+set}" = set; then :
17936 $as_echo_n "(cached) " >&6
17937 else
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 #ifdef __TANDEM
17942 choke me
17943 #endif
17945 _ACEOF
17946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17947 $EGREP "choke me" >/dev/null 2>&1; then :
17948 gl_cv_pragma_columns=yes
17949 else
17950 gl_cv_pragma_columns=no
17952 rm -f conftest*
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17957 $as_echo "$gl_cv_pragma_columns" >&6; }
17958 if test $gl_cv_pragma_columns = yes; then
17959 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17960 else
17961 PRAGMA_COLUMNS=
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17969 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17970 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17971 $as_echo_n "(cached) " >&6
17972 else
17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974 /* end confdefs.h. */
17975 /* On HP-UX before 11.23, strtold returns a struct instead of
17976 long double. Reject implementations like that, by requiring
17977 compatibility with the C99 prototype. */
17978 #include <stdlib.h>
17979 static long double (*p) (char const *, char **) = strtold;
17980 static long double
17981 test (char const *nptr, char **endptr)
17983 long double r;
17984 r = strtold (nptr, endptr);
17985 return r;
17988 main ()
17990 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17992 return 0;
17994 _ACEOF
17995 if ac_fn_c_try_link "$LINENO"; then :
17996 gl_cv_func_c99_strtold=yes
17997 else
17998 gl_cv_func_c99_strtold=no
18000 rm -f core conftest.err conftest.$ac_objext \
18001 conftest$ac_exeext conftest.$ac_ext
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18004 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18005 if test $gl_cv_func_c99_strtold = yes; then
18007 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18019 $as_echo_n "checking if environ is properly declared... " >&6; }
18020 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18021 $as_echo_n "(cached) " >&6
18022 else
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18026 #if HAVE_UNISTD_H
18027 #include <unistd.h>
18028 #endif
18029 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18030 #include <stdlib.h>
18032 extern struct { int foo; } environ;
18034 main ()
18036 environ.foo = 1;
18038 return 0;
18040 _ACEOF
18041 if ac_fn_c_try_compile "$LINENO"; then :
18042 gt_cv_var_environ_declaration=no
18043 else
18044 gt_cv_var_environ_declaration=yes
18046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18050 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18051 if test $gt_cv_var_environ_declaration = yes; then
18053 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18058 if test $gt_cv_var_environ_declaration != yes; then
18059 HAVE_DECL_ENVIRON=0
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18065 $as_echo_n "checking for complete errno.h... " >&6; }
18066 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18067 $as_echo_n "(cached) " >&6
18068 else
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18073 #include <errno.h>
18074 #if !defined ETXTBSY
18075 booboo
18076 #endif
18077 #if !defined ENOMSG
18078 booboo
18079 #endif
18080 #if !defined EIDRM
18081 booboo
18082 #endif
18083 #if !defined ENOLINK
18084 booboo
18085 #endif
18086 #if !defined EPROTO
18087 booboo
18088 #endif
18089 #if !defined EMULTIHOP
18090 booboo
18091 #endif
18092 #if !defined EBADMSG
18093 booboo
18094 #endif
18095 #if !defined EOVERFLOW
18096 booboo
18097 #endif
18098 #if !defined ENOTSUP
18099 booboo
18100 #endif
18101 #if !defined ENETRESET
18102 booboo
18103 #endif
18104 #if !defined ECONNABORTED
18105 booboo
18106 #endif
18107 #if !defined ESTALE
18108 booboo
18109 #endif
18110 #if !defined EDQUOT
18111 booboo
18112 #endif
18113 #if !defined ECANCELED
18114 booboo
18115 #endif
18116 #if !defined EOWNERDEAD
18117 booboo
18118 #endif
18119 #if !defined ENOTRECOVERABLE
18120 booboo
18121 #endif
18122 #if !defined EILSEQ
18123 booboo
18124 #endif
18126 _ACEOF
18127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18128 $EGREP "booboo" >/dev/null 2>&1; then :
18129 gl_cv_header_errno_h_complete=no
18130 else
18131 gl_cv_header_errno_h_complete=yes
18133 rm -f conftest*
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18138 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18139 if test $gl_cv_header_errno_h_complete = yes; then
18140 ERRNO_H=''
18141 else
18150 if test $gl_cv_have_include_next = yes; then
18151 gl_cv_next_errno_h='<'errno.h'>'
18152 else
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18154 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18155 if test "${gl_cv_next_errno_h+set}" = set; then :
18156 $as_echo_n "(cached) " >&6
18157 else
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161 #include <errno.h>
18163 _ACEOF
18164 case "$host_os" in
18165 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18166 *) gl_absname_cpp="$ac_cpp" ;;
18167 esac
18169 case "$host_os" in
18170 mingw*)
18171 gl_dirsep_regex='[/\\]'
18174 gl_dirsep_regex='\/'
18176 esac
18177 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18179 gl_header_literal_regex=`echo 'errno.h' \
18180 | sed -e "$gl_make_literal_regex_sed"`
18181 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18182 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18183 s|^/[^/]|//&|
18187 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18188 sed -n "$gl_absolute_header_sed"`'"'
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18193 $as_echo "$gl_cv_next_errno_h" >&6; }
18195 NEXT_ERRNO_H=$gl_cv_next_errno_h
18197 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18199 gl_next_as_first_directive='<'errno.h'>'
18200 else
18201 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18202 gl_next_as_first_directive=$gl_cv_next_errno_h
18204 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18209 ERRNO_H='errno.h'
18212 if test -n "$ERRNO_H"; then
18213 GL_GENERATE_ERRNO_H_TRUE=
18214 GL_GENERATE_ERRNO_H_FALSE='#'
18215 else
18216 GL_GENERATE_ERRNO_H_TRUE='#'
18217 GL_GENERATE_ERRNO_H_FALSE=
18221 if test -n "$ERRNO_H"; then
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18223 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18224 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18225 $as_echo_n "(cached) " >&6
18226 else
18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h. */
18231 #include <errno.h>
18232 #ifdef EMULTIHOP
18234 #endif
18236 _ACEOF
18237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18238 $EGREP "yes" >/dev/null 2>&1; then :
18239 gl_cv_header_errno_h_EMULTIHOP=yes
18240 else
18241 gl_cv_header_errno_h_EMULTIHOP=no
18243 rm -f conftest*
18245 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18249 #define _XOPEN_SOURCE_EXTENDED 1
18250 #include <errno.h>
18251 #ifdef EMULTIHOP
18253 #endif
18255 _ACEOF
18256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18257 $EGREP "yes" >/dev/null 2>&1; then :
18258 gl_cv_header_errno_h_EMULTIHOP=hidden
18260 rm -f conftest*
18262 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18263 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18264 #define _XOPEN_SOURCE_EXTENDED 1
18265 #include <errno.h>
18266 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18267 #include <stdio.h>
18268 #include <stdlib.h>
18269 "; then :
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18278 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18279 case $gl_cv_header_errno_h_EMULTIHOP in
18280 yes | no)
18281 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18284 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18286 esac
18292 if test -n "$ERRNO_H"; then
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18294 $as_echo_n "checking for ENOLINK value... " >&6; }
18295 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18296 $as_echo_n "(cached) " >&6
18297 else
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18302 #include <errno.h>
18303 #ifdef ENOLINK
18305 #endif
18307 _ACEOF
18308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18309 $EGREP "yes" >/dev/null 2>&1; then :
18310 gl_cv_header_errno_h_ENOLINK=yes
18311 else
18312 gl_cv_header_errno_h_ENOLINK=no
18314 rm -f conftest*
18316 if test $gl_cv_header_errno_h_ENOLINK = no; then
18317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h. */
18320 #define _XOPEN_SOURCE_EXTENDED 1
18321 #include <errno.h>
18322 #ifdef ENOLINK
18324 #endif
18326 _ACEOF
18327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18328 $EGREP "yes" >/dev/null 2>&1; then :
18329 gl_cv_header_errno_h_ENOLINK=hidden
18331 rm -f conftest*
18333 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18334 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18335 #define _XOPEN_SOURCE_EXTENDED 1
18336 #include <errno.h>
18337 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18338 #include <stdio.h>
18339 #include <stdlib.h>
18340 "; then :
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18349 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18350 case $gl_cv_header_errno_h_ENOLINK in
18351 yes | no)
18352 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18355 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18357 esac
18363 if test -n "$ERRNO_H"; then
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18365 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18366 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18367 $as_echo_n "(cached) " >&6
18368 else
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18373 #include <errno.h>
18374 #ifdef EOVERFLOW
18376 #endif
18378 _ACEOF
18379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18380 $EGREP "yes" >/dev/null 2>&1; then :
18381 gl_cv_header_errno_h_EOVERFLOW=yes
18382 else
18383 gl_cv_header_errno_h_EOVERFLOW=no
18385 rm -f conftest*
18387 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18391 #define _XOPEN_SOURCE_EXTENDED 1
18392 #include <errno.h>
18393 #ifdef EOVERFLOW
18395 #endif
18397 _ACEOF
18398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18399 $EGREP "yes" >/dev/null 2>&1; then :
18400 gl_cv_header_errno_h_EOVERFLOW=hidden
18402 rm -f conftest*
18404 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18405 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18406 #define _XOPEN_SOURCE_EXTENDED 1
18407 #include <errno.h>
18408 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18409 #include <stdio.h>
18410 #include <stdlib.h>
18411 "; then :
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18420 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18421 case $gl_cv_header_errno_h_EOVERFLOW in
18422 yes | no)
18423 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18426 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18428 esac
18442 GNULIB_FCNTL=0;
18443 GNULIB_NONBLOCKING=0;
18444 GNULIB_OPEN=0;
18445 GNULIB_OPENAT=0;
18446 HAVE_FCNTL=1;
18447 HAVE_OPENAT=1;
18448 REPLACE_FCNTL=0;
18449 REPLACE_OPEN=0;
18450 REPLACE_OPENAT=0;
18455 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18456 if test "x$ac_cv_type_mode_t" = x""yes; then :
18458 else
18460 cat >>confdefs.h <<_ACEOF
18461 #define mode_t int
18462 _ACEOF
18466 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18467 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
18468 ac_have_decl=1
18469 else
18470 ac_have_decl=0
18473 cat >>confdefs.h <<_ACEOF
18474 #define HAVE_DECL_FDATASYNC $ac_have_decl
18475 _ACEOF
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18480 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18481 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18482 $as_echo_n "(cached) " >&6
18483 else
18484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485 /* end confdefs.h. */
18487 #include <sys/types.h>
18488 #include <sys/stat.h>
18490 main ()
18492 struct stat s; s.st_dm_mode;
18494 return 0;
18496 _ACEOF
18497 if ac_fn_c_try_compile "$LINENO"; then :
18498 ac_cv_struct_st_dm_mode=yes
18499 else
18500 ac_cv_struct_st_dm_mode=no
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18505 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18507 if test $ac_cv_struct_st_dm_mode = yes; then
18509 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18514 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18515 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
18516 ac_have_decl=1
18517 else
18518 ac_have_decl=0
18521 cat >>confdefs.h <<_ACEOF
18522 #define HAVE_DECL_STRMODE $ac_have_decl
18523 _ACEOF
18530 GNULIB_FCHMODAT=0;
18531 GNULIB_FSTAT=0;
18532 GNULIB_FSTATAT=0;
18533 GNULIB_FUTIMENS=0;
18534 GNULIB_LCHMOD=0;
18535 GNULIB_LSTAT=0;
18536 GNULIB_MKDIRAT=0;
18537 GNULIB_MKFIFO=0;
18538 GNULIB_MKFIFOAT=0;
18539 GNULIB_MKNOD=0;
18540 GNULIB_MKNODAT=0;
18541 GNULIB_STAT=0;
18542 GNULIB_UTIMENSAT=0;
18543 HAVE_FCHMODAT=1;
18544 HAVE_FSTATAT=1;
18545 HAVE_FUTIMENS=1;
18546 HAVE_LCHMOD=1;
18547 HAVE_LSTAT=1;
18548 HAVE_MKDIRAT=1;
18549 HAVE_MKFIFO=1;
18550 HAVE_MKFIFOAT=1;
18551 HAVE_MKNOD=1;
18552 HAVE_MKNODAT=1;
18553 HAVE_UTIMENSAT=1;
18554 REPLACE_FSTAT=0;
18555 REPLACE_FSTATAT=0;
18556 REPLACE_FUTIMENS=0;
18557 REPLACE_LSTAT=0;
18558 REPLACE_MKDIR=0;
18559 REPLACE_MKFIFO=0;
18560 REPLACE_MKNOD=0;
18561 REPLACE_STAT=0;
18562 REPLACE_UTIMENSAT=0;
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18566 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18567 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18568 $as_echo_n "(cached) " >&6
18569 else
18570 rm -f conftest.sym conftest.file
18571 echo >conftest.file
18572 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18573 if test "$cross_compiling" = yes; then :
18574 case "$host_os" in
18575 # Guess yes on glibc systems.
18576 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18577 # If we don't know, assume the worst.
18578 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18579 esac
18581 else
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18584 $ac_includes_default
18586 main ()
18588 struct stat sbuf;
18589 /* Linux will dereference the symlink and fail, as required by
18590 POSIX. That is better in the sense that it means we will not
18591 have to compile and use the lstat wrapper. */
18592 return lstat ("conftest.sym/", &sbuf) == 0;
18595 return 0;
18597 _ACEOF
18598 if ac_fn_c_try_run "$LINENO"; then :
18599 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18600 else
18601 gl_cv_func_lstat_dereferences_slashed_symlink=no
18603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18604 conftest.$ac_objext conftest.beam conftest.$ac_ext
18607 else
18608 # If the 'ln -s' command failed, then we probably don't even
18609 # have an lstat function.
18610 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18612 rm -f conftest.sym conftest.file
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18616 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18617 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18618 *yes)
18620 cat >>confdefs.h <<_ACEOF
18621 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18622 _ACEOF
18625 esac
18632 GNULIB__EXIT=0;
18633 GNULIB_ATOLL=0;
18634 GNULIB_CALLOC_POSIX=0;
18635 GNULIB_CANONICALIZE_FILE_NAME=0;
18636 GNULIB_GETLOADAVG=0;
18637 GNULIB_GETSUBOPT=0;
18638 GNULIB_GRANTPT=0;
18639 GNULIB_MALLOC_POSIX=0;
18640 GNULIB_MBTOWC=0;
18641 GNULIB_MKDTEMP=0;
18642 GNULIB_MKOSTEMP=0;
18643 GNULIB_MKOSTEMPS=0;
18644 GNULIB_MKSTEMP=0;
18645 GNULIB_MKSTEMPS=0;
18646 GNULIB_POSIX_OPENPT=0;
18647 GNULIB_PTSNAME=0;
18648 GNULIB_PTSNAME_R=0;
18649 GNULIB_PUTENV=0;
18650 GNULIB_RANDOM=0;
18651 GNULIB_RANDOM_R=0;
18652 GNULIB_REALLOC_POSIX=0;
18653 GNULIB_REALPATH=0;
18654 GNULIB_RPMATCH=0;
18655 GNULIB_SECURE_GETENV=0;
18656 GNULIB_SETENV=0;
18657 GNULIB_STRTOD=0;
18658 GNULIB_STRTOLL=0;
18659 GNULIB_STRTOULL=0;
18660 GNULIB_SYSTEM_POSIX=0;
18661 GNULIB_UNLOCKPT=0;
18662 GNULIB_UNSETENV=0;
18663 GNULIB_WCTOMB=0;
18664 HAVE__EXIT=1;
18665 HAVE_ATOLL=1;
18666 HAVE_CANONICALIZE_FILE_NAME=1;
18667 HAVE_DECL_GETLOADAVG=1;
18668 HAVE_GETSUBOPT=1;
18669 HAVE_GRANTPT=1;
18670 HAVE_MKDTEMP=1;
18671 HAVE_MKOSTEMP=1;
18672 HAVE_MKOSTEMPS=1;
18673 HAVE_MKSTEMP=1;
18674 HAVE_MKSTEMPS=1;
18675 HAVE_POSIX_OPENPT=1;
18676 HAVE_PTSNAME=1;
18677 HAVE_PTSNAME_R=1;
18678 HAVE_RANDOM=1;
18679 HAVE_RANDOM_H=1;
18680 HAVE_RANDOM_R=1;
18681 HAVE_REALPATH=1;
18682 HAVE_RPMATCH=1;
18683 HAVE_SECURE_GETENV=1;
18684 HAVE_SETENV=1;
18685 HAVE_DECL_SETENV=1;
18686 HAVE_STRTOD=1;
18687 HAVE_STRTOLL=1;
18688 HAVE_STRTOULL=1;
18689 HAVE_STRUCT_RANDOM_DATA=1;
18690 HAVE_SYS_LOADAVG_H=0;
18691 HAVE_UNLOCKPT=1;
18692 HAVE_DECL_UNSETENV=1;
18693 REPLACE_CALLOC=0;
18694 REPLACE_CANONICALIZE_FILE_NAME=0;
18695 REPLACE_MALLOC=0;
18696 REPLACE_MBTOWC=0;
18697 REPLACE_MKSTEMP=0;
18698 REPLACE_PTSNAME=0;
18699 REPLACE_PTSNAME_R=0;
18700 REPLACE_PUTENV=0;
18701 REPLACE_RANDOM_R=0;
18702 REPLACE_REALLOC=0;
18703 REPLACE_REALPATH=0;
18704 REPLACE_SETENV=0;
18705 REPLACE_STRTOD=0;
18706 REPLACE_UNSETENV=0;
18707 REPLACE_WCTOMB=0;
18724 if test $gl_cv_have_include_next = yes; then
18725 gl_cv_next_getopt_h='<'getopt.h'>'
18726 else
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18728 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18729 if test "${gl_cv_next_getopt_h+set}" = set; then :
18730 $as_echo_n "(cached) " >&6
18731 else
18733 if test $ac_cv_header_getopt_h = yes; then
18736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737 /* end confdefs.h. */
18738 #include <getopt.h>
18740 _ACEOF
18741 case "$host_os" in
18742 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18743 *) gl_absname_cpp="$ac_cpp" ;;
18744 esac
18746 case "$host_os" in
18747 mingw*)
18748 gl_dirsep_regex='[/\\]'
18751 gl_dirsep_regex='\/'
18753 esac
18754 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18756 gl_header_literal_regex=`echo 'getopt.h' \
18757 | sed -e "$gl_make_literal_regex_sed"`
18758 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18759 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18760 s|^/[^/]|//&|
18764 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18765 sed -n "$gl_absolute_header_sed"`'"'
18766 else
18767 gl_cv_next_getopt_h='<'getopt.h'>'
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18773 $as_echo "$gl_cv_next_getopt_h" >&6; }
18775 NEXT_GETOPT_H=$gl_cv_next_getopt_h
18777 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18778 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18779 gl_next_as_first_directive='<'getopt.h'>'
18780 else
18781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18782 gl_next_as_first_directive=$gl_cv_next_getopt_h
18784 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
18789 if test $ac_cv_header_getopt_h = yes; then
18790 HAVE_GETOPT_H=1
18791 else
18792 HAVE_GETOPT_H=0
18796 gl_replace_getopt=
18798 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18799 for ac_header in getopt.h
18800 do :
18801 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18802 if test "x$ac_cv_header_getopt_h" = x""yes; then :
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_GETOPT_H 1
18805 _ACEOF
18807 else
18808 gl_replace_getopt=yes
18811 done
18815 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18816 for ac_func in getopt_long_only
18817 do :
18818 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18819 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
18820 cat >>confdefs.h <<_ACEOF
18821 #define HAVE_GETOPT_LONG_ONLY 1
18822 _ACEOF
18824 else
18825 gl_replace_getopt=yes
18827 done
18831 if test -z "$gl_replace_getopt"; then
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18833 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18834 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18835 $as_echo_n "(cached) " >&6
18836 else
18838 if test $cross_compiling = no; then
18839 if test "$cross_compiling" = yes; then :
18840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18842 as_fn_error "cannot run test program while cross compiling
18843 See \`config.log' for more details." "$LINENO" 5; }
18844 else
18845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846 /* end confdefs.h. */
18848 #include <unistd.h>
18849 #include <stdlib.h>
18850 #include <string.h>
18853 main ()
18855 static char program[] = "program";
18856 static char a[] = "-a";
18857 static char foo[] = "foo";
18858 static char bar[] = "bar";
18859 char *argv[] = { program, a, foo, bar, NULL };
18860 int c;
18862 c = getopt (4, argv, "ab");
18863 if (!(c == 'a'))
18864 return 1;
18865 c = getopt (4, argv, "ab");
18866 if (!(c == -1))
18867 return 2;
18868 if (!(optind == 2))
18869 return 3;
18870 return 0;
18873 _ACEOF
18874 if ac_fn_c_try_run "$LINENO"; then :
18875 gl_cv_func_getopt_posix=maybe
18876 else
18877 gl_cv_func_getopt_posix=no
18879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18880 conftest.$ac_objext conftest.beam conftest.$ac_ext
18883 if test $gl_cv_func_getopt_posix = maybe; then
18884 if test "$cross_compiling" = yes; then :
18885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18887 as_fn_error "cannot run test program while cross compiling
18888 See \`config.log' for more details." "$LINENO" 5; }
18889 else
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18893 #include <unistd.h>
18894 #include <stdlib.h>
18895 #include <string.h>
18898 main ()
18900 static char program[] = "program";
18901 static char donald[] = "donald";
18902 static char p[] = "-p";
18903 static char billy[] = "billy";
18904 static char duck[] = "duck";
18905 static char a[] = "-a";
18906 static char bar[] = "bar";
18907 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
18908 int c;
18910 c = getopt (7, argv, "+abp:q:");
18911 if (!(c == -1))
18912 return 4;
18913 if (!(strcmp (argv[0], "program") == 0))
18914 return 5;
18915 if (!(strcmp (argv[1], "donald") == 0))
18916 return 6;
18917 if (!(strcmp (argv[2], "-p") == 0))
18918 return 7;
18919 if (!(strcmp (argv[3], "billy") == 0))
18920 return 8;
18921 if (!(strcmp (argv[4], "duck") == 0))
18922 return 9;
18923 if (!(strcmp (argv[5], "-a") == 0))
18924 return 10;
18925 if (!(strcmp (argv[6], "bar") == 0))
18926 return 11;
18927 if (!(optind == 1))
18928 return 12;
18929 return 0;
18932 _ACEOF
18933 if ac_fn_c_try_run "$LINENO"; then :
18934 gl_cv_func_getopt_posix=maybe
18935 else
18936 gl_cv_func_getopt_posix=no
18938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18939 conftest.$ac_objext conftest.beam conftest.$ac_ext
18943 if test $gl_cv_func_getopt_posix = maybe; then
18944 if test "$cross_compiling" = yes; then :
18945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18947 as_fn_error "cannot run test program while cross compiling
18948 See \`config.log' for more details." "$LINENO" 5; }
18949 else
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18953 #include <unistd.h>
18954 #include <stdlib.h>
18955 #include <string.h>
18958 main ()
18960 static char program[] = "program";
18961 static char ab[] = "-ab";
18962 char *argv[3] = { program, ab, NULL };
18963 if (getopt (2, argv, "ab:") != 'a')
18964 return 13;
18965 if (getopt (2, argv, "ab:") != '?')
18966 return 14;
18967 if (optopt != 'b')
18968 return 15;
18969 if (optind != 2)
18970 return 16;
18971 return 0;
18974 _ACEOF
18975 if ac_fn_c_try_run "$LINENO"; then :
18976 gl_cv_func_getopt_posix=yes
18977 else
18978 gl_cv_func_getopt_posix=no
18980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18981 conftest.$ac_objext conftest.beam conftest.$ac_ext
18985 else
18986 case "$host_os" in
18987 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
18988 *) gl_cv_func_getopt_posix="guessing yes";;
18989 esac
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
18994 $as_echo "$gl_cv_func_getopt_posix" >&6; }
18995 case "$gl_cv_func_getopt_posix" in
18996 *no) gl_replace_getopt=yes ;;
18997 esac
19000 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19002 $as_echo_n "checking for working GNU getopt function... " >&6; }
19003 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19004 $as_echo_n "(cached) " >&6
19005 else
19006 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19007 # optstring is necessary for programs like m4 that have POSIX-mandated
19008 # semantics for supporting options interspersed with files.
19009 # Also, since getopt_long is a GNU extension, we require optind=0.
19010 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19011 # so take care to revert to the correct (non-)export state.
19012 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19013 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19014 xx) gl_had_POSIXLY_CORRECT=exported ;;
19015 x) gl_had_POSIXLY_CORRECT=yes ;;
19016 *) gl_had_POSIXLY_CORRECT= ;;
19017 esac
19018 POSIXLY_CORRECT=1
19019 export POSIXLY_CORRECT
19020 if test "$cross_compiling" = yes; then :
19021 gl_cv_func_getopt_gnu="guessing no"
19023 else
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026 #include <getopt.h>
19027 #include <stddef.h>
19028 #include <string.h>
19030 #include <stdlib.h>
19031 #if defined __MACH__ && defined __APPLE__
19032 /* Avoid a crash on Mac OS X. */
19033 #include <mach/mach.h>
19034 #include <mach/mach_error.h>
19035 #include <mach/thread_status.h>
19036 #include <mach/exception.h>
19037 #include <mach/task.h>
19038 #include <pthread.h>
19039 /* The exception port on which our thread listens. */
19040 static mach_port_t our_exception_port;
19041 /* The main function of the thread listening for exceptions of type
19042 EXC_BAD_ACCESS. */
19043 static void *
19044 mach_exception_thread (void *arg)
19046 /* Buffer for a message to be received. */
19047 struct {
19048 mach_msg_header_t head;
19049 mach_msg_body_t msgh_body;
19050 char data[1024];
19051 } msg;
19052 mach_msg_return_t retval;
19053 /* Wait for a message on the exception port. */
19054 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19055 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19056 if (retval != MACH_MSG_SUCCESS)
19057 abort ();
19058 exit (1);
19060 static void
19061 nocrash_init (void)
19063 mach_port_t self = mach_task_self ();
19064 /* Allocate a port on which the thread shall listen for exceptions. */
19065 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19066 == KERN_SUCCESS) {
19067 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19068 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19069 MACH_MSG_TYPE_MAKE_SEND)
19070 == KERN_SUCCESS) {
19071 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19072 for us. */
19073 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19074 /* Create the thread listening on the exception port. */
19075 pthread_attr_t attr;
19076 pthread_t thread;
19077 if (pthread_attr_init (&attr) == 0
19078 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19079 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19080 pthread_attr_destroy (&attr);
19081 /* Replace the exception port info for these exceptions with our own.
19082 Note that we replace the exception port for the entire task, not only
19083 for a particular thread. This has the effect that when our exception
19084 port gets the message, the thread specific exception port has already
19085 been asked, and we don't need to bother about it.
19086 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19087 task_set_exception_ports (self, mask, our_exception_port,
19088 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19093 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19094 /* Avoid a crash on native Windows. */
19095 #define WIN32_LEAN_AND_MEAN
19096 #include <windows.h>
19097 #include <winerror.h>
19098 static LONG WINAPI
19099 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19101 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19103 case EXCEPTION_ACCESS_VIOLATION:
19104 case EXCEPTION_IN_PAGE_ERROR:
19105 case EXCEPTION_STACK_OVERFLOW:
19106 case EXCEPTION_GUARD_PAGE:
19107 case EXCEPTION_PRIV_INSTRUCTION:
19108 case EXCEPTION_ILLEGAL_INSTRUCTION:
19109 case EXCEPTION_DATATYPE_MISALIGNMENT:
19110 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19111 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19112 exit (1);
19114 return EXCEPTION_CONTINUE_SEARCH;
19116 static void
19117 nocrash_init (void)
19119 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19121 #else
19122 /* Avoid a crash on POSIX systems. */
19123 #include <signal.h>
19124 /* A POSIX signal handler. */
19125 static void
19126 exception_handler (int sig)
19128 exit (1);
19130 static void
19131 nocrash_init (void)
19133 #ifdef SIGSEGV
19134 signal (SIGSEGV, exception_handler);
19135 #endif
19136 #ifdef SIGBUS
19137 signal (SIGBUS, exception_handler);
19138 #endif
19140 #endif
19144 main ()
19147 int result = 0;
19149 nocrash_init();
19151 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19152 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19153 OSF/1 5.1, Solaris 10. */
19155 static char conftest[] = "conftest";
19156 static char plus[] = "-+";
19157 char *argv[3] = { conftest, plus, NULL };
19158 opterr = 0;
19159 if (getopt (2, argv, "+a") != '?')
19160 result |= 1;
19162 /* This code succeeds on glibc 2.8, mingw,
19163 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19164 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19166 static char program[] = "program";
19167 static char p[] = "-p";
19168 static char foo[] = "foo";
19169 static char bar[] = "bar";
19170 char *argv[] = { program, p, foo, bar, NULL };
19172 optind = 1;
19173 if (getopt (4, argv, "p::") != 'p')
19174 result |= 2;
19175 else if (optarg != NULL)
19176 result |= 4;
19177 else if (getopt (4, argv, "p::") != -1)
19178 result |= 6;
19179 else if (optind != 2)
19180 result |= 8;
19182 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19184 static char program[] = "program";
19185 static char foo[] = "foo";
19186 static char p[] = "-p";
19187 char *argv[] = { program, foo, p, NULL };
19188 optind = 0;
19189 if (getopt (3, argv, "-p") != 1)
19190 result |= 16;
19191 else if (getopt (3, argv, "-p") != 'p')
19192 result |= 16;
19194 /* This code fails on glibc 2.11. */
19196 static char program[] = "program";
19197 static char b[] = "-b";
19198 static char a[] = "-a";
19199 char *argv[] = { program, b, a, NULL };
19200 optind = opterr = 0;
19201 if (getopt (3, argv, "+:a:b") != 'b')
19202 result |= 32;
19203 else if (getopt (3, argv, "+:a:b") != ':')
19204 result |= 32;
19206 /* This code dumps core on glibc 2.14. */
19208 static char program[] = "program";
19209 static char w[] = "-W";
19210 static char dummy[] = "dummy";
19211 char *argv[] = { program, w, dummy, NULL };
19212 optind = opterr = 1;
19213 if (getopt (3, argv, "W;") != 'W')
19214 result |= 64;
19216 return result;
19219 return 0;
19221 _ACEOF
19222 if ac_fn_c_try_run "$LINENO"; then :
19223 gl_cv_func_getopt_gnu=yes
19224 else
19225 gl_cv_func_getopt_gnu=no
19227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19228 conftest.$ac_objext conftest.beam conftest.$ac_ext
19231 case $gl_had_POSIXLY_CORRECT in
19232 exported) ;;
19233 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19234 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19235 esac
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19239 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19240 if test "$gl_cv_func_getopt_gnu" != yes; then
19241 gl_replace_getopt=yes
19242 else
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19244 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19245 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19246 $as_echo_n "(cached) " >&6
19247 else
19248 if test "$cross_compiling" = yes; then :
19249 case "$host_os" in
19250 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19251 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19252 esac
19254 else
19255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h. */
19257 #include <getopt.h>
19258 #include <stddef.h>
19259 #include <string.h>
19262 main ()
19264 static const struct option long_options[] =
19266 { "xtremely-",no_argument, NULL, 1003 },
19267 { "xtra", no_argument, NULL, 1001 },
19268 { "xtreme", no_argument, NULL, 1002 },
19269 { "xtremely", no_argument, NULL, 1003 },
19270 { NULL, 0, NULL, 0 }
19272 /* This code fails on OpenBSD 5.0. */
19274 static char program[] = "program";
19275 static char xtremel[] = "--xtremel";
19276 char *argv[] = { program, xtremel, NULL };
19277 int option_index;
19278 optind = 1; opterr = 0;
19279 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19280 return 1;
19282 return 0;
19285 return 0;
19287 _ACEOF
19288 if ac_fn_c_try_run "$LINENO"; then :
19289 gl_cv_func_getopt_long_gnu=yes
19290 else
19291 gl_cv_func_getopt_long_gnu=no
19293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19294 conftest.$ac_objext conftest.beam conftest.$ac_ext
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19300 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19301 case "$gl_cv_func_getopt_long_gnu" in
19302 *yes) ;;
19303 *) gl_replace_getopt=yes ;;
19304 esac
19313 REPLACE_GETOPT=0
19314 if test -n "$gl_replace_getopt"; then
19315 REPLACE_GETOPT=1
19318 if test $REPLACE_GETOPT = 1; then
19320 GETOPT_H=getopt.h
19322 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19328 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19329 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19330 ac_have_decl=1
19331 else
19332 ac_have_decl=0
19335 cat >>confdefs.h <<_ACEOF
19336 #define HAVE_DECL_GETENV $ac_have_decl
19337 _ACEOF
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19345 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19346 if test "${ac_cv_c_restrict+set}" = set; then :
19347 $as_echo_n "(cached) " >&6
19348 else
19349 ac_cv_c_restrict=no
19350 # The order here caters to the fact that C++ does not require restrict.
19351 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19354 typedef int * int_ptr;
19355 int foo (int_ptr $ac_kw ip) {
19356 return ip[0];
19359 main ()
19361 int s[1];
19362 int * $ac_kw t = s;
19363 t[0] = 0;
19364 return foo(t)
19366 return 0;
19368 _ACEOF
19369 if ac_fn_c_try_compile "$LINENO"; then :
19370 ac_cv_c_restrict=$ac_kw
19372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19373 test "$ac_cv_c_restrict" != no && break
19374 done
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19378 $as_echo "$ac_cv_c_restrict" >&6; }
19380 case $ac_cv_c_restrict in
19381 restrict) ;;
19382 no) $as_echo "#define restrict /**/" >>confdefs.h
19384 *) cat >>confdefs.h <<_ACEOF
19385 #define restrict $ac_cv_c_restrict
19386 _ACEOF
19388 esac
19391 GNULIB_GETTIMEOFDAY=0;
19392 HAVE_GETTIMEOFDAY=1;
19393 HAVE_STRUCT_TIMEVAL=1;
19394 HAVE_SYS_TIME_H=1;
19395 REPLACE_GETTIMEOFDAY=0;
19396 REPLACE_STRUCT_TIMEVAL=0;
19413 if test $gl_cv_have_include_next = yes; then
19414 gl_cv_next_sys_time_h='<'sys/time.h'>'
19415 else
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19417 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19418 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19419 $as_echo_n "(cached) " >&6
19420 else
19422 if test $ac_cv_header_sys_time_h = yes; then
19425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19426 /* end confdefs.h. */
19427 #include <sys/time.h>
19429 _ACEOF
19430 case "$host_os" in
19431 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19432 *) gl_absname_cpp="$ac_cpp" ;;
19433 esac
19435 case "$host_os" in
19436 mingw*)
19437 gl_dirsep_regex='[/\\]'
19440 gl_dirsep_regex='\/'
19442 esac
19443 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19445 gl_header_literal_regex=`echo 'sys/time.h' \
19446 | sed -e "$gl_make_literal_regex_sed"`
19447 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19448 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19449 s|^/[^/]|//&|
19453 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19454 sed -n "$gl_absolute_header_sed"`'"'
19455 else
19456 gl_cv_next_sys_time_h='<'sys/time.h'>'
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19462 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19464 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19466 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19467 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19468 gl_next_as_first_directive='<'sys/time.h'>'
19469 else
19470 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19471 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19473 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19479 if test $ac_cv_header_sys_time_h != yes; then
19480 HAVE_SYS_TIME_H=0
19487 if test $ac_cv_header_sys_socket_h != yes; then
19488 for ac_header in winsock2.h
19489 do :
19490 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19491 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19492 cat >>confdefs.h <<_ACEOF
19493 #define HAVE_WINSOCK2_H 1
19494 _ACEOF
19498 done
19501 if test "$ac_cv_header_winsock2_h" = yes; then
19502 HAVE_WINSOCK2_H=1
19503 UNISTD_H_HAVE_WINSOCK2_H=1
19504 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19505 else
19506 HAVE_WINSOCK2_H=0
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19511 $as_echo_n "checking for struct timeval... " >&6; }
19512 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19513 $as_echo_n "(cached) " >&6
19514 else
19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19517 #if HAVE_SYS_TIME_H
19518 #include <sys/time.h>
19519 #endif
19520 #include <time.h>
19521 #if HAVE_WINSOCK2_H
19522 # include <winsock2.h>
19523 #endif
19526 main ()
19528 static struct timeval x; x.tv_sec = x.tv_usec;
19530 return 0;
19532 _ACEOF
19533 if ac_fn_c_try_compile "$LINENO"; then :
19534 gl_cv_sys_struct_timeval=yes
19535 else
19536 gl_cv_sys_struct_timeval=no
19538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19542 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19543 if test $gl_cv_sys_struct_timeval != yes; then
19544 HAVE_STRUCT_TIMEVAL=0
19545 else
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19547 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19548 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19549 $as_echo_n "(cached) " >&6
19550 else
19551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19552 /* end confdefs.h. */
19553 #if HAVE_SYS_TIME_H
19554 #include <sys/time.h>
19555 #endif
19556 #include <time.h>
19557 #if HAVE_WINSOCK2_H
19558 # include <winsock2.h>
19559 #endif
19562 main ()
19564 static struct timeval x;
19565 typedef int verify_tv_sec_type[
19566 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19570 return 0;
19572 _ACEOF
19573 if ac_fn_c_try_compile "$LINENO"; then :
19574 gl_cv_sys_struct_timeval_tv_sec=yes
19575 else
19576 gl_cv_sys_struct_timeval_tv_sec=no
19578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19582 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19583 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19584 REPLACE_STRUCT_TIMEVAL=1
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19595 $as_echo_n "checking for unsigned long long int... " >&6; }
19596 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19597 $as_echo_n "(cached) " >&6
19598 else
19599 ac_cv_type_unsigned_long_long_int=yes
19600 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h. */
19604 /* For now, do not test the preprocessor; as of 2007 there are too many
19605 implementations with broken preprocessors. Perhaps this can
19606 be revisited in 2012. In the meantime, code should not expect
19607 #if to work with literals wider than 32 bits. */
19608 /* Test literals. */
19609 long long int ll = 9223372036854775807ll;
19610 long long int nll = -9223372036854775807LL;
19611 unsigned long long int ull = 18446744073709551615ULL;
19612 /* Test constant expressions. */
19613 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19614 ? 1 : -1)];
19615 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19616 ? 1 : -1)];
19617 int i = 63;
19619 main ()
19621 /* Test availability of runtime routines for shift and division. */
19622 long long int llmax = 9223372036854775807ll;
19623 unsigned long long int ullmax = 18446744073709551615ull;
19624 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19625 | (llmax / ll) | (llmax % ll)
19626 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19627 | (ullmax / ull) | (ullmax % ull));
19629 return 0;
19632 _ACEOF
19633 if ac_fn_c_try_link "$LINENO"; then :
19635 else
19636 ac_cv_type_unsigned_long_long_int=no
19638 rm -f core conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext conftest.$ac_ext
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19643 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19644 if test $ac_cv_type_unsigned_long_long_int = yes; then
19646 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19653 $as_echo_n "checking for long long int... " >&6; }
19654 if test "${ac_cv_type_long_long_int+set}" = set; then :
19655 $as_echo_n "(cached) " >&6
19656 else
19657 ac_cv_type_long_long_int=yes
19658 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19659 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19660 if test $ac_cv_type_long_long_int = yes; then
19661 if test "$cross_compiling" = yes; then :
19663 else
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <limits.h>
19667 #ifndef LLONG_MAX
19668 # define HALF \
19669 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19670 # define LLONG_MAX (HALF - 1 + HALF)
19671 #endif
19673 main ()
19675 long long int n = 1;
19676 int i;
19677 for (i = 0; ; i++)
19679 long long int m = n << i;
19680 if (m >> i != n)
19681 return 1;
19682 if (LLONG_MAX / 2 < m)
19683 break;
19685 return 0;
19687 return 0;
19689 _ACEOF
19690 if ac_fn_c_try_run "$LINENO"; then :
19692 else
19693 ac_cv_type_long_long_int=no
19695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19696 conftest.$ac_objext conftest.beam conftest.$ac_ext
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19703 $as_echo "$ac_cv_type_long_long_int" >&6; }
19704 if test $ac_cv_type_long_long_int = yes; then
19706 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19715 gl_cv_c_multiarch=no
19716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19717 /* end confdefs.h. */
19718 #ifndef __APPLE_CC__
19719 not a universal capable compiler
19720 #endif
19721 typedef int dummy;
19723 _ACEOF
19724 if ac_fn_c_try_compile "$LINENO"; then :
19726 arch=
19727 prev=
19728 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19729 if test -n "$prev"; then
19730 case $word in
19731 i?86 | x86_64 | ppc | ppc64)
19732 if test -z "$arch" || test "$arch" = "$word"; then
19733 arch="$word"
19734 else
19735 gl_cv_c_multiarch=yes
19738 esac
19739 prev=
19740 else
19741 if test "x$word" = "x-arch"; then
19742 prev=arch
19745 done
19748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19749 if test $gl_cv_c_multiarch = yes; then
19750 APPLE_UNIVERSAL_BUILD=1
19751 else
19752 APPLE_UNIVERSAL_BUILD=0
19759 if test $ac_cv_type_long_long_int = yes; then
19760 HAVE_LONG_LONG_INT=1
19761 else
19762 HAVE_LONG_LONG_INT=0
19766 if test $ac_cv_type_unsigned_long_long_int = yes; then
19767 HAVE_UNSIGNED_LONG_LONG_INT=1
19768 else
19769 HAVE_UNSIGNED_LONG_LONG_INT=0
19774 if test $ac_cv_header_wchar_h = yes; then
19775 HAVE_WCHAR_H=1
19776 else
19777 HAVE_WCHAR_H=0
19781 if test $ac_cv_header_inttypes_h = yes; then
19782 HAVE_INTTYPES_H=1
19783 else
19784 HAVE_INTTYPES_H=0
19788 if test $ac_cv_header_sys_types_h = yes; then
19789 HAVE_SYS_TYPES_H=1
19790 else
19791 HAVE_SYS_TYPES_H=0
19804 if test $gl_cv_have_include_next = yes; then
19805 gl_cv_next_stdint_h='<'stdint.h'>'
19806 else
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19808 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19809 if test "${gl_cv_next_stdint_h+set}" = set; then :
19810 $as_echo_n "(cached) " >&6
19811 else
19813 if test $ac_cv_header_stdint_h = yes; then
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19818 #include <stdint.h>
19820 _ACEOF
19821 case "$host_os" in
19822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19823 *) gl_absname_cpp="$ac_cpp" ;;
19824 esac
19826 case "$host_os" in
19827 mingw*)
19828 gl_dirsep_regex='[/\\]'
19831 gl_dirsep_regex='\/'
19833 esac
19834 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19836 gl_header_literal_regex=`echo 'stdint.h' \
19837 | sed -e "$gl_make_literal_regex_sed"`
19838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19840 s|^/[^/]|//&|
19844 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19845 sed -n "$gl_absolute_header_sed"`'"'
19846 else
19847 gl_cv_next_stdint_h='<'stdint.h'>'
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19853 $as_echo "$gl_cv_next_stdint_h" >&6; }
19855 NEXT_STDINT_H=$gl_cv_next_stdint_h
19857 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19859 gl_next_as_first_directive='<'stdint.h'>'
19860 else
19861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19862 gl_next_as_first_directive=$gl_cv_next_stdint_h
19864 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19869 if test $ac_cv_header_stdint_h = yes; then
19870 HAVE_STDINT_H=1
19871 else
19872 HAVE_STDINT_H=0
19876 if test $ac_cv_header_stdint_h = yes; then
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19878 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19879 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19880 $as_echo_n "(cached) " >&6
19881 else
19882 gl_cv_header_working_stdint_h=no
19883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h. */
19887 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19888 #include <stdint.h>
19889 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19890 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19891 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19892 #endif
19895 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19896 included before <wchar.h>. */
19897 #include <stddef.h>
19898 #include <signal.h>
19899 #if HAVE_WCHAR_H
19900 # include <stdio.h>
19901 # include <time.h>
19902 # include <wchar.h>
19903 #endif
19906 #ifdef INT8_MAX
19907 int8_t a1 = INT8_MAX;
19908 int8_t a1min = INT8_MIN;
19909 #endif
19910 #ifdef INT16_MAX
19911 int16_t a2 = INT16_MAX;
19912 int16_t a2min = INT16_MIN;
19913 #endif
19914 #ifdef INT32_MAX
19915 int32_t a3 = INT32_MAX;
19916 int32_t a3min = INT32_MIN;
19917 #endif
19918 #ifdef INT64_MAX
19919 int64_t a4 = INT64_MAX;
19920 int64_t a4min = INT64_MIN;
19921 #endif
19922 #ifdef UINT8_MAX
19923 uint8_t b1 = UINT8_MAX;
19924 #else
19925 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19926 #endif
19927 #ifdef UINT16_MAX
19928 uint16_t b2 = UINT16_MAX;
19929 #endif
19930 #ifdef UINT32_MAX
19931 uint32_t b3 = UINT32_MAX;
19932 #endif
19933 #ifdef UINT64_MAX
19934 uint64_t b4 = UINT64_MAX;
19935 #endif
19936 int_least8_t c1 = INT8_C (0x7f);
19937 int_least8_t c1max = INT_LEAST8_MAX;
19938 int_least8_t c1min = INT_LEAST8_MIN;
19939 int_least16_t c2 = INT16_C (0x7fff);
19940 int_least16_t c2max = INT_LEAST16_MAX;
19941 int_least16_t c2min = INT_LEAST16_MIN;
19942 int_least32_t c3 = INT32_C (0x7fffffff);
19943 int_least32_t c3max = INT_LEAST32_MAX;
19944 int_least32_t c3min = INT_LEAST32_MIN;
19945 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19946 int_least64_t c4max = INT_LEAST64_MAX;
19947 int_least64_t c4min = INT_LEAST64_MIN;
19948 uint_least8_t d1 = UINT8_C (0xff);
19949 uint_least8_t d1max = UINT_LEAST8_MAX;
19950 uint_least16_t d2 = UINT16_C (0xffff);
19951 uint_least16_t d2max = UINT_LEAST16_MAX;
19952 uint_least32_t d3 = UINT32_C (0xffffffff);
19953 uint_least32_t d3max = UINT_LEAST32_MAX;
19954 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19955 uint_least64_t d4max = UINT_LEAST64_MAX;
19956 int_fast8_t e1 = INT_FAST8_MAX;
19957 int_fast8_t e1min = INT_FAST8_MIN;
19958 int_fast16_t e2 = INT_FAST16_MAX;
19959 int_fast16_t e2min = INT_FAST16_MIN;
19960 int_fast32_t e3 = INT_FAST32_MAX;
19961 int_fast32_t e3min = INT_FAST32_MIN;
19962 int_fast64_t e4 = INT_FAST64_MAX;
19963 int_fast64_t e4min = INT_FAST64_MIN;
19964 uint_fast8_t f1 = UINT_FAST8_MAX;
19965 uint_fast16_t f2 = UINT_FAST16_MAX;
19966 uint_fast32_t f3 = UINT_FAST32_MAX;
19967 uint_fast64_t f4 = UINT_FAST64_MAX;
19968 #ifdef INTPTR_MAX
19969 intptr_t g = INTPTR_MAX;
19970 intptr_t gmin = INTPTR_MIN;
19971 #endif
19972 #ifdef UINTPTR_MAX
19973 uintptr_t h = UINTPTR_MAX;
19974 #endif
19975 intmax_t i = INTMAX_MAX;
19976 uintmax_t j = UINTMAX_MAX;
19978 #include <limits.h> /* for CHAR_BIT */
19979 #define TYPE_MINIMUM(t) \
19980 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19981 #define TYPE_MAXIMUM(t) \
19982 ((t) ((t) 0 < (t) -1 \
19983 ? (t) -1 \
19984 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19985 struct s {
19986 int check_PTRDIFF:
19987 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19988 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19989 ? 1 : -1;
19990 /* Detect bug in FreeBSD 6.0 / ia64. */
19991 int check_SIG_ATOMIC:
19992 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19993 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19994 ? 1 : -1;
19995 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19996 int check_WCHAR:
19997 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19998 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19999 ? 1 : -1;
20000 /* Detect bug in mingw. */
20001 int check_WINT:
20002 WINT_MIN == TYPE_MINIMUM (wint_t)
20003 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20004 ? 1 : -1;
20006 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20007 int check_UINT8_C:
20008 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20009 int check_UINT16_C:
20010 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20012 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20013 #ifdef UINT8_MAX
20014 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20015 #endif
20016 #ifdef UINT16_MAX
20017 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20018 #endif
20019 #ifdef UINT32_MAX
20020 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20021 #endif
20022 #ifdef UINT64_MAX
20023 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20024 #endif
20025 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20026 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20027 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20028 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20029 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20030 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20031 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20032 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20033 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20034 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20035 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20039 main ()
20043 return 0;
20045 _ACEOF
20046 if ac_fn_c_try_compile "$LINENO"; then :
20047 if test "$cross_compiling" = yes; then :
20048 gl_cv_header_working_stdint_h=yes
20050 else
20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h. */
20055 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20056 #include <stdint.h>
20059 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20060 included before <wchar.h>. */
20061 #include <stddef.h>
20062 #include <signal.h>
20063 #if HAVE_WCHAR_H
20064 # include <stdio.h>
20065 # include <time.h>
20066 # include <wchar.h>
20067 #endif
20070 #include <stdio.h>
20071 #include <string.h>
20072 #define MVAL(macro) MVAL1(macro)
20073 #define MVAL1(expression) #expression
20074 static const char *macro_values[] =
20076 #ifdef INT8_MAX
20077 MVAL (INT8_MAX),
20078 #endif
20079 #ifdef INT16_MAX
20080 MVAL (INT16_MAX),
20081 #endif
20082 #ifdef INT32_MAX
20083 MVAL (INT32_MAX),
20084 #endif
20085 #ifdef INT64_MAX
20086 MVAL (INT64_MAX),
20087 #endif
20088 #ifdef UINT8_MAX
20089 MVAL (UINT8_MAX),
20090 #endif
20091 #ifdef UINT16_MAX
20092 MVAL (UINT16_MAX),
20093 #endif
20094 #ifdef UINT32_MAX
20095 MVAL (UINT32_MAX),
20096 #endif
20097 #ifdef UINT64_MAX
20098 MVAL (UINT64_MAX),
20099 #endif
20100 NULL
20104 main ()
20107 const char **mv;
20108 for (mv = macro_values; *mv != NULL; mv++)
20110 const char *value = *mv;
20111 /* Test whether it looks like a cast expression. */
20112 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20113 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20114 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20115 || strncmp (value, "((int)"/*)*/, 6) == 0
20116 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20117 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20118 return mv - macro_values + 1;
20120 return 0;
20123 return 0;
20125 _ACEOF
20126 if ac_fn_c_try_run "$LINENO"; then :
20127 gl_cv_header_working_stdint_h=yes
20129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20130 conftest.$ac_objext conftest.beam conftest.$ac_ext
20135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20139 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20141 if test "$gl_cv_header_working_stdint_h" = yes; then
20142 STDINT_H=
20143 else
20144 for ac_header in sys/inttypes.h sys/bitypes.h
20145 do :
20146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20147 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20148 eval as_val=\$$as_ac_Header
20149 if test "x$as_val" = x""yes; then :
20150 cat >>confdefs.h <<_ACEOF
20151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20152 _ACEOF
20156 done
20158 if test $ac_cv_header_sys_inttypes_h = yes; then
20159 HAVE_SYS_INTTYPES_H=1
20160 else
20161 HAVE_SYS_INTTYPES_H=0
20164 if test $ac_cv_header_sys_bitypes_h = yes; then
20165 HAVE_SYS_BITYPES_H=1
20166 else
20167 HAVE_SYS_BITYPES_H=0
20173 if test $APPLE_UNIVERSAL_BUILD = 0; then
20176 for gltype in ptrdiff_t size_t ; do
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20178 $as_echo_n "checking for bit size of $gltype... " >&6; }
20179 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20180 $as_echo_n "(cached) " >&6
20181 else
20182 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20183 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20184 included before <wchar.h>. */
20185 #include <stddef.h>
20186 #include <signal.h>
20187 #if HAVE_WCHAR_H
20188 # include <stdio.h>
20189 # include <time.h>
20190 # include <wchar.h>
20191 #endif
20193 #include <limits.h>"; then :
20195 else
20196 result=unknown
20199 eval gl_cv_bitsizeof_${gltype}=\$result
20202 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20204 $as_echo "$ac_res" >&6; }
20205 eval result=\$gl_cv_bitsizeof_${gltype}
20206 if test $result = unknown; then
20207 result=0
20209 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20210 cat >>confdefs.h <<_ACEOF
20211 #define BITSIZEOF_${GLTYPE} $result
20212 _ACEOF
20214 eval BITSIZEOF_${GLTYPE}=\$result
20215 done
20221 for gltype in sig_atomic_t wchar_t wint_t ; do
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20223 $as_echo_n "checking for bit size of $gltype... " >&6; }
20224 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20225 $as_echo_n "(cached) " >&6
20226 else
20227 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20228 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20229 included before <wchar.h>. */
20230 #include <stddef.h>
20231 #include <signal.h>
20232 #if HAVE_WCHAR_H
20233 # include <stdio.h>
20234 # include <time.h>
20235 # include <wchar.h>
20236 #endif
20238 #include <limits.h>"; then :
20240 else
20241 result=unknown
20244 eval gl_cv_bitsizeof_${gltype}=\$result
20247 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20249 $as_echo "$ac_res" >&6; }
20250 eval result=\$gl_cv_bitsizeof_${gltype}
20251 if test $result = unknown; then
20252 result=0
20254 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20255 cat >>confdefs.h <<_ACEOF
20256 #define BITSIZEOF_${GLTYPE} $result
20257 _ACEOF
20259 eval BITSIZEOF_${GLTYPE}=\$result
20260 done
20265 for gltype in sig_atomic_t wchar_t wint_t ; do
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20267 $as_echo_n "checking whether $gltype is signed... " >&6; }
20268 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20269 $as_echo_n "(cached) " >&6
20270 else
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272 /* end confdefs.h. */
20274 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20275 included before <wchar.h>. */
20276 #include <stddef.h>
20277 #include <signal.h>
20278 #if HAVE_WCHAR_H
20279 # include <stdio.h>
20280 # include <time.h>
20281 # include <wchar.h>
20282 #endif
20284 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20286 main ()
20290 return 0;
20292 _ACEOF
20293 if ac_fn_c_try_compile "$LINENO"; then :
20294 result=yes
20295 else
20296 result=no
20298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20299 eval gl_cv_type_${gltype}_signed=\$result
20302 eval ac_res=\$gl_cv_type_${gltype}_signed
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20304 $as_echo "$ac_res" >&6; }
20305 eval result=\$gl_cv_type_${gltype}_signed
20306 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20307 if test "$result" = yes; then
20308 cat >>confdefs.h <<_ACEOF
20309 #define HAVE_SIGNED_${GLTYPE} 1
20310 _ACEOF
20312 eval HAVE_SIGNED_${GLTYPE}=1
20313 else
20314 eval HAVE_SIGNED_${GLTYPE}=0
20316 done
20319 gl_cv_type_ptrdiff_t_signed=yes
20320 gl_cv_type_size_t_signed=no
20321 if test $APPLE_UNIVERSAL_BUILD = 0; then
20324 for gltype in ptrdiff_t size_t ; do
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20326 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20327 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20328 $as_echo_n "(cached) " >&6
20329 else
20330 eval gl_cv_type_${gltype}_suffix=no
20331 eval result=\$gl_cv_type_${gltype}_signed
20332 if test "$result" = yes; then
20333 glsufu=
20334 else
20335 glsufu=u
20337 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20338 case $glsuf in
20339 '') gltype1='int';;
20340 l) gltype1='long int';;
20341 ll) gltype1='long long int';;
20342 i64) gltype1='__int64';;
20343 u) gltype1='unsigned int';;
20344 ul) gltype1='unsigned long int';;
20345 ull) gltype1='unsigned long long int';;
20346 ui64)gltype1='unsigned __int64';;
20347 esac
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20351 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20352 included before <wchar.h>. */
20353 #include <stddef.h>
20354 #include <signal.h>
20355 #if HAVE_WCHAR_H
20356 # include <stdio.h>
20357 # include <time.h>
20358 # include <wchar.h>
20359 #endif
20361 extern $gltype foo;
20362 extern $gltype1 foo;
20364 main ()
20368 return 0;
20370 _ACEOF
20371 if ac_fn_c_try_compile "$LINENO"; then :
20372 eval gl_cv_type_${gltype}_suffix=\$glsuf
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375 eval result=\$gl_cv_type_${gltype}_suffix
20376 test "$result" != no && break
20377 done
20379 eval ac_res=\$gl_cv_type_${gltype}_suffix
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20381 $as_echo "$ac_res" >&6; }
20382 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20383 eval result=\$gl_cv_type_${gltype}_suffix
20384 test "$result" = no && result=
20385 eval ${GLTYPE}_SUFFIX=\$result
20386 cat >>confdefs.h <<_ACEOF
20387 #define ${GLTYPE}_SUFFIX $result
20388 _ACEOF
20390 done
20396 for gltype in sig_atomic_t wchar_t wint_t ; do
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20398 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20399 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20400 $as_echo_n "(cached) " >&6
20401 else
20402 eval gl_cv_type_${gltype}_suffix=no
20403 eval result=\$gl_cv_type_${gltype}_signed
20404 if test "$result" = yes; then
20405 glsufu=
20406 else
20407 glsufu=u
20409 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20410 case $glsuf in
20411 '') gltype1='int';;
20412 l) gltype1='long int';;
20413 ll) gltype1='long long int';;
20414 i64) gltype1='__int64';;
20415 u) gltype1='unsigned int';;
20416 ul) gltype1='unsigned long int';;
20417 ull) gltype1='unsigned long long int';;
20418 ui64)gltype1='unsigned __int64';;
20419 esac
20420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20421 /* end confdefs.h. */
20423 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20424 included before <wchar.h>. */
20425 #include <stddef.h>
20426 #include <signal.h>
20427 #if HAVE_WCHAR_H
20428 # include <stdio.h>
20429 # include <time.h>
20430 # include <wchar.h>
20431 #endif
20433 extern $gltype foo;
20434 extern $gltype1 foo;
20436 main ()
20440 return 0;
20442 _ACEOF
20443 if ac_fn_c_try_compile "$LINENO"; then :
20444 eval gl_cv_type_${gltype}_suffix=\$glsuf
20446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20447 eval result=\$gl_cv_type_${gltype}_suffix
20448 test "$result" != no && break
20449 done
20451 eval ac_res=\$gl_cv_type_${gltype}_suffix
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20453 $as_echo "$ac_res" >&6; }
20454 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20455 eval result=\$gl_cv_type_${gltype}_suffix
20456 test "$result" = no && result=
20457 eval ${GLTYPE}_SUFFIX=\$result
20458 cat >>confdefs.h <<_ACEOF
20459 #define ${GLTYPE}_SUFFIX $result
20460 _ACEOF
20462 done
20466 if test $BITSIZEOF_WINT_T -lt 32; then
20467 BITSIZEOF_WINT_T=32
20470 STDINT_H=stdint.h
20473 if test -n "$STDINT_H"; then
20474 GL_GENERATE_STDINT_H_TRUE=
20475 GL_GENERATE_STDINT_H_FALSE='#'
20476 else
20477 GL_GENERATE_STDINT_H_TRUE='#'
20478 GL_GENERATE_STDINT_H_FALSE=
20485 GNULIB_IMAXABS=0;
20486 GNULIB_IMAXDIV=0;
20487 GNULIB_STRTOIMAX=0;
20488 GNULIB_STRTOUMAX=0;
20489 HAVE_DECL_IMAXABS=1;
20490 HAVE_DECL_IMAXDIV=1;
20491 HAVE_DECL_STRTOIMAX=1;
20492 HAVE_DECL_STRTOUMAX=1;
20493 REPLACE_STRTOIMAX=0;
20494 INT32_MAX_LT_INTMAX_MAX=1;
20495 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20496 PRI_MACROS_BROKEN=0;
20497 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20498 UINT32_MAX_LT_UINTMAX_MAX=1;
20499 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20515 if test $gl_cv_have_include_next = yes; then
20516 gl_cv_next_inttypes_h='<'inttypes.h'>'
20517 else
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20519 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20520 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20521 $as_echo_n "(cached) " >&6
20522 else
20524 if test $ac_cv_header_inttypes_h = yes; then
20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h. */
20529 #include <inttypes.h>
20531 _ACEOF
20532 case "$host_os" in
20533 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20534 *) gl_absname_cpp="$ac_cpp" ;;
20535 esac
20537 case "$host_os" in
20538 mingw*)
20539 gl_dirsep_regex='[/\\]'
20542 gl_dirsep_regex='\/'
20544 esac
20545 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20547 gl_header_literal_regex=`echo 'inttypes.h' \
20548 | sed -e "$gl_make_literal_regex_sed"`
20549 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20550 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20551 s|^/[^/]|//&|
20555 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20556 sed -n "$gl_absolute_header_sed"`'"'
20557 else
20558 gl_cv_next_inttypes_h='<'inttypes.h'>'
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20564 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20566 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
20568 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20569 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20570 gl_next_as_first_directive='<'inttypes.h'>'
20571 else
20572 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20573 gl_next_as_first_directive=$gl_cv_next_inttypes_h
20575 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
20587 case "$host_os" in
20588 mingw*)
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20590 $as_echo_n "checking for 64-bit off_t... " >&6; }
20591 if test "${gl_cv_type_off_t_64+set}" = set; then :
20592 $as_echo_n "(cached) " >&6
20593 else
20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h. */
20596 #include <sys/types.h>
20597 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20600 main ()
20604 return 0;
20606 _ACEOF
20607 if ac_fn_c_try_compile "$LINENO"; then :
20608 gl_cv_type_off_t_64=yes
20609 else
20610 gl_cv_type_off_t_64=no
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20616 $as_echo "$gl_cv_type_off_t_64" >&6; }
20617 if test $gl_cv_type_off_t_64 = no; then
20618 WINDOWS_64_BIT_OFF_T=1
20619 else
20620 WINDOWS_64_BIT_OFF_T=0
20622 WINDOWS_64_BIT_ST_SIZE=1
20625 WINDOWS_64_BIT_OFF_T=0
20626 WINDOWS_64_BIT_ST_SIZE=0
20628 esac
20633 GNULIB_FFSL=0;
20634 GNULIB_FFSLL=0;
20635 GNULIB_MEMCHR=0;
20636 GNULIB_MEMMEM=0;
20637 GNULIB_MEMPCPY=0;
20638 GNULIB_MEMRCHR=0;
20639 GNULIB_RAWMEMCHR=0;
20640 GNULIB_STPCPY=0;
20641 GNULIB_STPNCPY=0;
20642 GNULIB_STRCHRNUL=0;
20643 GNULIB_STRDUP=0;
20644 GNULIB_STRNCAT=0;
20645 GNULIB_STRNDUP=0;
20646 GNULIB_STRNLEN=0;
20647 GNULIB_STRPBRK=0;
20648 GNULIB_STRSEP=0;
20649 GNULIB_STRSTR=0;
20650 GNULIB_STRCASESTR=0;
20651 GNULIB_STRTOK_R=0;
20652 GNULIB_MBSLEN=0;
20653 GNULIB_MBSNLEN=0;
20654 GNULIB_MBSCHR=0;
20655 GNULIB_MBSRCHR=0;
20656 GNULIB_MBSSTR=0;
20657 GNULIB_MBSCASECMP=0;
20658 GNULIB_MBSNCASECMP=0;
20659 GNULIB_MBSPCASECMP=0;
20660 GNULIB_MBSCASESTR=0;
20661 GNULIB_MBSCSPN=0;
20662 GNULIB_MBSPBRK=0;
20663 GNULIB_MBSSPN=0;
20664 GNULIB_MBSSEP=0;
20665 GNULIB_MBSTOK_R=0;
20666 GNULIB_STRERROR=0;
20667 GNULIB_STRERROR_R=0;
20668 GNULIB_STRSIGNAL=0;
20669 GNULIB_STRVERSCMP=0;
20670 HAVE_MBSLEN=0;
20671 HAVE_FFSL=1;
20672 HAVE_FFSLL=1;
20673 HAVE_MEMCHR=1;
20674 HAVE_DECL_MEMMEM=1;
20675 HAVE_MEMPCPY=1;
20676 HAVE_DECL_MEMRCHR=1;
20677 HAVE_RAWMEMCHR=1;
20678 HAVE_STPCPY=1;
20679 HAVE_STPNCPY=1;
20680 HAVE_STRCHRNUL=1;
20681 HAVE_DECL_STRDUP=1;
20682 HAVE_DECL_STRNDUP=1;
20683 HAVE_DECL_STRNLEN=1;
20684 HAVE_STRPBRK=1;
20685 HAVE_STRSEP=1;
20686 HAVE_STRCASESTR=1;
20687 HAVE_DECL_STRTOK_R=1;
20688 HAVE_DECL_STRERROR_R=1;
20689 HAVE_DECL_STRSIGNAL=1;
20690 HAVE_STRVERSCMP=1;
20691 REPLACE_MEMCHR=0;
20692 REPLACE_MEMMEM=0;
20693 REPLACE_STPNCPY=0;
20694 REPLACE_STRDUP=0;
20695 REPLACE_STRSTR=0;
20696 REPLACE_STRCASESTR=0;
20697 REPLACE_STRCHRNUL=0;
20698 REPLACE_STRERROR=0;
20699 REPLACE_STRERROR_R=0;
20700 REPLACE_STRNCAT=0;
20701 REPLACE_STRNDUP=0;
20702 REPLACE_STRNLEN=0;
20703 REPLACE_STRSIGNAL=0;
20704 REPLACE_STRTOK_R=0;
20705 UNDEFINE_STRTOK_R=0;
20707 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20708 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
20709 ac_have_decl=1
20710 else
20711 ac_have_decl=0
20714 cat >>confdefs.h <<_ACEOF
20715 #define HAVE_DECL_MEMRCHR $ac_have_decl
20716 _ACEOF
20721 GNULIB_MKTIME=0;
20722 GNULIB_NANOSLEEP=0;
20723 GNULIB_STRPTIME=0;
20724 GNULIB_TIMEGM=0;
20725 GNULIB_TIME_R=0;
20726 HAVE_DECL_LOCALTIME_R=1;
20727 HAVE_NANOSLEEP=1;
20728 HAVE_STRPTIME=1;
20729 HAVE_TIMEGM=1;
20730 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20731 REPLACE_MKTIME=GNULIB_PORTCHECK;
20732 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20733 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20735 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20736 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
20737 ac_have_decl=1
20738 else
20739 ac_have_decl=0
20742 cat >>confdefs.h <<_ACEOF
20743 #define HAVE_DECL_ALARM $ac_have_decl
20744 _ACEOF
20749 GNULIB_PSELECT=0;
20750 GNULIB_SELECT=0;
20751 HAVE_PSELECT=1;
20752 REPLACE_PSELECT=0;
20753 REPLACE_SELECT=0;
20760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20761 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20762 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20763 $as_echo_n "(cached) " >&6
20764 else
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20768 #include <sys/select.h>
20770 main ()
20772 struct timeval b;
20774 return 0;
20776 _ACEOF
20777 if ac_fn_c_try_compile "$LINENO"; then :
20778 gl_cv_header_sys_select_h_selfcontained=yes
20779 else
20780 gl_cv_header_sys_select_h_selfcontained=no
20782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20783 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20786 #include <sys/select.h>
20788 main ()
20790 int memset; int bzero;
20792 return 0;
20795 _ACEOF
20796 if ac_fn_c_try_compile "$LINENO"; then :
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20799 #include <sys/select.h>
20801 main ()
20804 #undef memset
20805 #define memset nonexistent_memset
20806 extern
20807 #ifdef __cplusplus
20809 #endif
20810 void *memset (void *, int, unsigned long);
20811 #undef bzero
20812 #define bzero nonexistent_bzero
20813 extern
20814 #ifdef __cplusplus
20816 #endif
20817 void bzero (void *, unsigned long);
20818 fd_set fds;
20819 FD_ZERO (&fds);
20822 return 0;
20825 _ACEOF
20826 if ac_fn_c_try_link "$LINENO"; then :
20828 else
20829 gl_cv_header_sys_select_h_selfcontained=no
20831 rm -f core conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext conftest.$ac_ext
20835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20840 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20850 if test $gl_cv_have_include_next = yes; then
20851 gl_cv_next_sys_select_h='<'sys/select.h'>'
20852 else
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20854 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20855 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20856 $as_echo_n "(cached) " >&6
20857 else
20859 if test $ac_cv_header_sys_select_h = yes; then
20862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20863 /* end confdefs.h. */
20864 #include <sys/select.h>
20866 _ACEOF
20867 case "$host_os" in
20868 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20869 *) gl_absname_cpp="$ac_cpp" ;;
20870 esac
20872 case "$host_os" in
20873 mingw*)
20874 gl_dirsep_regex='[/\\]'
20877 gl_dirsep_regex='\/'
20879 esac
20880 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20882 gl_header_literal_regex=`echo 'sys/select.h' \
20883 | sed -e "$gl_make_literal_regex_sed"`
20884 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20885 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20886 s|^/[^/]|//&|
20890 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20891 sed -n "$gl_absolute_header_sed"`'"'
20892 else
20893 gl_cv_next_sys_select_h='<'sys/select.h'>'
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
20899 $as_echo "$gl_cv_next_sys_select_h" >&6; }
20901 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
20903 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20904 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20905 gl_next_as_first_directive='<'sys/select.h'>'
20906 else
20907 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20908 gl_next_as_first_directive=$gl_cv_next_sys_select_h
20910 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
20915 if test $ac_cv_header_sys_select_h = yes; then
20916 HAVE_SYS_SELECT_H=1
20917 else
20918 HAVE_SYS_SELECT_H=0
20925 if test $ac_cv_header_sys_socket_h != yes; then
20926 for ac_header in winsock2.h
20927 do :
20928 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20929 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
20930 cat >>confdefs.h <<_ACEOF
20931 #define HAVE_WINSOCK2_H 1
20932 _ACEOF
20936 done
20939 if test "$ac_cv_header_winsock2_h" = yes; then
20940 HAVE_WINSOCK2_H=1
20941 UNISTD_H_HAVE_WINSOCK2_H=1
20942 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
20943 else
20944 HAVE_WINSOCK2_H=0
20954 GNULIB_PTHREAD_SIGMASK=0;
20955 GNULIB_RAISE=0;
20956 GNULIB_SIGNAL_H_SIGPIPE=0;
20957 GNULIB_SIGPROCMASK=0;
20958 GNULIB_SIGACTION=0;
20959 HAVE_POSIX_SIGNALBLOCKING=1;
20960 HAVE_PTHREAD_SIGMASK=1;
20961 HAVE_RAISE=1;
20962 HAVE_SIGSET_T=1;
20963 HAVE_SIGINFO_T=1;
20964 HAVE_SIGACTION=1;
20965 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20967 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20969 HAVE_SIGHANDLER_T=1;
20970 REPLACE_PTHREAD_SIGMASK=0;
20971 REPLACE_RAISE=0;
20979 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20980 #include <signal.h>
20981 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20982 #include <sys/types.h>
20985 if test "x$ac_cv_type_sigset_t" = x""yes; then :
20987 cat >>confdefs.h <<_ACEOF
20988 #define HAVE_SIGSET_T 1
20989 _ACEOF
20991 gl_cv_type_sigset_t=yes
20992 else
20993 gl_cv_type_sigset_t=no
20996 if test $gl_cv_type_sigset_t != yes; then
20997 HAVE_SIGSET_T=0
21002 if test $ac_cv_header_sys_socket_h = no; then
21003 for ac_header in ws2tcpip.h
21004 do :
21005 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21006 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21007 cat >>confdefs.h <<_ACEOF
21008 #define HAVE_WS2TCPIP_H 1
21009 _ACEOF
21013 done
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21018 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21019 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21020 $as_echo_n "(cached) " >&6
21021 else
21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21023 /* end confdefs.h. */
21025 #include <stdbool.h>
21026 #ifndef bool
21027 "error: bool is not defined"
21028 #endif
21029 #ifndef false
21030 "error: false is not defined"
21031 #endif
21032 #if false
21033 "error: false is not 0"
21034 #endif
21035 #ifndef true
21036 "error: true is not defined"
21037 #endif
21038 #if true != 1
21039 "error: true is not 1"
21040 #endif
21041 #ifndef __bool_true_false_are_defined
21042 "error: __bool_true_false_are_defined is not defined"
21043 #endif
21045 struct s { _Bool s: 1; _Bool t; } s;
21047 char a[true == 1 ? 1 : -1];
21048 char b[false == 0 ? 1 : -1];
21049 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21050 char d[(bool) 0.5 == true ? 1 : -1];
21051 /* See body of main program for 'e'. */
21052 char f[(_Bool) 0.0 == false ? 1 : -1];
21053 char g[true];
21054 char h[sizeof (_Bool)];
21055 char i[sizeof s.t];
21056 enum { j = false, k = true, l = false * true, m = true * 256 };
21057 /* The following fails for
21058 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21059 _Bool n[m];
21060 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21061 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21062 /* Catch a bug in an HP-UX C compiler. See
21063 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21064 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21066 _Bool q = true;
21067 _Bool *pq = &q;
21070 main ()
21073 bool e = &s;
21074 *pq |= q;
21075 *pq |= ! q;
21076 /* Refer to every declared value, to avoid compiler optimizations. */
21077 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21078 + !m + !n + !o + !p + !q + !pq);
21081 return 0;
21083 _ACEOF
21084 if ac_fn_c_try_compile "$LINENO"; then :
21085 ac_cv_header_stdbool_h=yes
21086 else
21087 ac_cv_header_stdbool_h=no
21089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21092 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21093 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21094 if test "x$ac_cv_type__Bool" = x""yes; then :
21096 cat >>confdefs.h <<_ACEOF
21097 #define HAVE__BOOL 1
21098 _ACEOF
21105 REPLACE_NULL=0;
21106 HAVE_WCHAR_T=1;
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21110 $as_echo_n "checking for wchar_t... " >&6; }
21111 if test "${gt_cv_c_wchar_t+set}" = set; then :
21112 $as_echo_n "(cached) " >&6
21113 else
21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21116 #include <stddef.h>
21117 wchar_t foo = (wchar_t)'\0';
21119 main ()
21123 return 0;
21125 _ACEOF
21126 if ac_fn_c_try_compile "$LINENO"; then :
21127 gt_cv_c_wchar_t=yes
21128 else
21129 gt_cv_c_wchar_t=no
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21134 $as_echo "$gt_cv_c_wchar_t" >&6; }
21135 if test $gt_cv_c_wchar_t = yes; then
21137 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21142 GNULIB_DPRINTF=0;
21143 GNULIB_FCLOSE=0;
21144 GNULIB_FDOPEN=0;
21145 GNULIB_FFLUSH=0;
21146 GNULIB_FGETC=0;
21147 GNULIB_FGETS=0;
21148 GNULIB_FOPEN=0;
21149 GNULIB_FPRINTF=0;
21150 GNULIB_FPRINTF_POSIX=0;
21151 GNULIB_FPURGE=0;
21152 GNULIB_FPUTC=0;
21153 GNULIB_FPUTS=0;
21154 GNULIB_FREAD=0;
21155 GNULIB_FREOPEN=0;
21156 GNULIB_FSCANF=0;
21157 GNULIB_FSEEK=0;
21158 GNULIB_FSEEKO=0;
21159 GNULIB_FTELL=0;
21160 GNULIB_FTELLO=0;
21161 GNULIB_FWRITE=0;
21162 GNULIB_GETC=0;
21163 GNULIB_GETCHAR=0;
21164 GNULIB_GETDELIM=0;
21165 GNULIB_GETLINE=0;
21166 GNULIB_OBSTACK_PRINTF=0;
21167 GNULIB_OBSTACK_PRINTF_POSIX=0;
21168 GNULIB_PCLOSE=0;
21169 GNULIB_PERROR=0;
21170 GNULIB_POPEN=0;
21171 GNULIB_PRINTF=0;
21172 GNULIB_PRINTF_POSIX=0;
21173 GNULIB_PUTC=0;
21174 GNULIB_PUTCHAR=0;
21175 GNULIB_PUTS=0;
21176 GNULIB_REMOVE=0;
21177 GNULIB_RENAME=0;
21178 GNULIB_RENAMEAT=0;
21179 GNULIB_SCANF=0;
21180 GNULIB_SNPRINTF=0;
21181 GNULIB_SPRINTF_POSIX=0;
21182 GNULIB_STDIO_H_NONBLOCKING=0;
21183 GNULIB_STDIO_H_SIGPIPE=0;
21184 GNULIB_TMPFILE=0;
21185 GNULIB_VASPRINTF=0;
21186 GNULIB_VFSCANF=0;
21187 GNULIB_VSCANF=0;
21188 GNULIB_VDPRINTF=0;
21189 GNULIB_VFPRINTF=0;
21190 GNULIB_VFPRINTF_POSIX=0;
21191 GNULIB_VPRINTF=0;
21192 GNULIB_VPRINTF_POSIX=0;
21193 GNULIB_VSNPRINTF=0;
21194 GNULIB_VSPRINTF_POSIX=0;
21195 HAVE_DECL_FPURGE=1;
21196 HAVE_DECL_FSEEKO=1;
21197 HAVE_DECL_FTELLO=1;
21198 HAVE_DECL_GETDELIM=1;
21199 HAVE_DECL_GETLINE=1;
21200 HAVE_DECL_OBSTACK_PRINTF=1;
21201 HAVE_DECL_SNPRINTF=1;
21202 HAVE_DECL_VSNPRINTF=1;
21203 HAVE_DPRINTF=1;
21204 HAVE_FSEEKO=1;
21205 HAVE_FTELLO=1;
21206 HAVE_PCLOSE=1;
21207 HAVE_POPEN=1;
21208 HAVE_RENAMEAT=1;
21209 HAVE_VASPRINTF=1;
21210 HAVE_VDPRINTF=1;
21211 REPLACE_DPRINTF=0;
21212 REPLACE_FCLOSE=0;
21213 REPLACE_FDOPEN=0;
21214 REPLACE_FFLUSH=0;
21215 REPLACE_FOPEN=0;
21216 REPLACE_FPRINTF=0;
21217 REPLACE_FPURGE=0;
21218 REPLACE_FREOPEN=0;
21219 REPLACE_FSEEK=0;
21220 REPLACE_FSEEKO=0;
21221 REPLACE_FTELL=0;
21222 REPLACE_FTELLO=0;
21223 REPLACE_GETDELIM=0;
21224 REPLACE_GETLINE=0;
21225 REPLACE_OBSTACK_PRINTF=0;
21226 REPLACE_PERROR=0;
21227 REPLACE_POPEN=0;
21228 REPLACE_PRINTF=0;
21229 REPLACE_REMOVE=0;
21230 REPLACE_RENAME=0;
21231 REPLACE_RENAMEAT=0;
21232 REPLACE_SNPRINTF=0;
21233 REPLACE_SPRINTF=0;
21234 REPLACE_STDIO_READ_FUNCS=0;
21235 REPLACE_STDIO_WRITE_FUNCS=0;
21236 REPLACE_TMPFILE=0;
21237 REPLACE_VASPRINTF=0;
21238 REPLACE_VDPRINTF=0;
21239 REPLACE_VFPRINTF=0;
21240 REPLACE_VPRINTF=0;
21241 REPLACE_VSNPRINTF=0;
21242 REPLACE_VSPRINTF=0;
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21245 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21246 if test "${ac_cv_struct_tm+set}" = set; then :
21247 $as_echo_n "(cached) " >&6
21248 else
21249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21250 /* end confdefs.h. */
21251 #include <sys/types.h>
21252 #include <time.h>
21255 main ()
21257 struct tm tm;
21258 int *p = &tm.tm_sec;
21259 return !p;
21261 return 0;
21263 _ACEOF
21264 if ac_fn_c_try_compile "$LINENO"; then :
21265 ac_cv_struct_tm=time.h
21266 else
21267 ac_cv_struct_tm=sys/time.h
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21272 $as_echo "$ac_cv_struct_tm" >&6; }
21273 if test $ac_cv_struct_tm = sys/time.h; then
21275 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21279 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21280 #include <$ac_cv_struct_tm>
21283 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21285 cat >>confdefs.h <<_ACEOF
21286 #define HAVE_STRUCT_TM_TM_ZONE 1
21287 _ACEOF
21292 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21294 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21296 else
21297 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21299 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21300 ac_have_decl=1
21301 else
21302 ac_have_decl=0
21305 cat >>confdefs.h <<_ACEOF
21306 #define HAVE_DECL_TZNAME $ac_have_decl
21307 _ACEOF
21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21310 $as_echo_n "checking for tzname... " >&6; }
21311 if test "${ac_cv_var_tzname+set}" = set; then :
21312 $as_echo_n "(cached) " >&6
21313 else
21314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21315 /* end confdefs.h. */
21316 #include <time.h>
21317 #if !HAVE_DECL_TZNAME
21318 extern char *tzname[];
21319 #endif
21322 main ()
21324 return tzname[0][0];
21326 return 0;
21328 _ACEOF
21329 if ac_fn_c_try_link "$LINENO"; then :
21330 ac_cv_var_tzname=yes
21331 else
21332 ac_cv_var_tzname=no
21334 rm -f core conftest.err conftest.$ac_objext \
21335 conftest$ac_exeext conftest.$ac_ext
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21338 $as_echo "$ac_cv_var_tzname" >&6; }
21339 if test $ac_cv_var_tzname = yes; then
21341 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21347 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21349 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21351 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21367 if test $gl_cv_have_include_next = yes; then
21368 gl_cv_next_string_h='<'string.h'>'
21369 else
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21371 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21372 if test "${gl_cv_next_string_h+set}" = set; then :
21373 $as_echo_n "(cached) " >&6
21374 else
21376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21377 /* end confdefs.h. */
21378 #include <string.h>
21380 _ACEOF
21381 case "$host_os" in
21382 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21383 *) gl_absname_cpp="$ac_cpp" ;;
21384 esac
21386 case "$host_os" in
21387 mingw*)
21388 gl_dirsep_regex='[/\\]'
21391 gl_dirsep_regex='\/'
21393 esac
21394 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21396 gl_header_literal_regex=`echo 'string.h' \
21397 | sed -e "$gl_make_literal_regex_sed"`
21398 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21399 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21400 s|^/[^/]|//&|
21404 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21405 sed -n "$gl_absolute_header_sed"`'"'
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21410 $as_echo "$gl_cv_next_string_h" >&6; }
21412 NEXT_STRING_H=$gl_cv_next_string_h
21414 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21415 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21416 gl_next_as_first_directive='<'string.h'>'
21417 else
21418 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21419 gl_next_as_first_directive=$gl_cv_next_string_h
21421 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21431 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21432 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21433 ac_have_decl=1
21434 else
21435 ac_have_decl=0
21438 cat >>confdefs.h <<_ACEOF
21439 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21440 _ACEOF
21444 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21445 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21446 ac_have_decl=1
21447 else
21448 ac_have_decl=0
21451 cat >>confdefs.h <<_ACEOF
21452 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21453 _ACEOF
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21458 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21459 if test "${ac_cv_header_stat_broken+set}" = set; then :
21460 $as_echo_n "(cached) " >&6
21461 else
21462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21464 #include <sys/types.h>
21465 #include <sys/stat.h>
21467 #if defined S_ISBLK && defined S_IFDIR
21468 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21469 #endif
21471 #if defined S_ISBLK && defined S_IFCHR
21472 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21473 #endif
21475 #if defined S_ISLNK && defined S_IFREG
21476 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21477 #endif
21479 #if defined S_ISSOCK && defined S_IFREG
21480 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21481 #endif
21483 _ACEOF
21484 if ac_fn_c_try_compile "$LINENO"; then :
21485 ac_cv_header_stat_broken=no
21486 else
21487 ac_cv_header_stat_broken=yes
21489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21492 $as_echo "$ac_cv_header_stat_broken" >&6; }
21493 if test $ac_cv_header_stat_broken = yes; then
21495 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21504 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21505 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21506 $as_echo_n "(cached) " >&6
21507 else
21508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h. */
21510 #include <time.h>
21513 main ()
21515 static struct timespec x; x.tv_sec = x.tv_nsec;
21517 return 0;
21519 _ACEOF
21520 if ac_fn_c_try_compile "$LINENO"; then :
21521 gl_cv_sys_struct_timespec_in_time_h=yes
21522 else
21523 gl_cv_sys_struct_timespec_in_time_h=no
21525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21528 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21530 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21531 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21532 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21533 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21534 TIME_H_DEFINES_STRUCT_TIMESPEC=1
21535 else
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21537 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21538 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21539 $as_echo_n "(cached) " >&6
21540 else
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h. */
21543 #include <sys/time.h>
21546 main ()
21548 static struct timespec x; x.tv_sec = x.tv_nsec;
21550 return 0;
21552 _ACEOF
21553 if ac_fn_c_try_compile "$LINENO"; then :
21554 gl_cv_sys_struct_timespec_in_sys_time_h=yes
21555 else
21556 gl_cv_sys_struct_timespec_in_sys_time_h=no
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21561 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21562 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21563 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21564 else
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21566 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21567 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21568 $as_echo_n "(cached) " >&6
21569 else
21570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21572 #include <pthread.h>
21575 main ()
21577 static struct timespec x; x.tv_sec = x.tv_nsec;
21579 return 0;
21581 _ACEOF
21582 if ac_fn_c_try_compile "$LINENO"; then :
21583 gl_cv_sys_struct_timespec_in_pthread_h=yes
21584 else
21585 gl_cv_sys_struct_timespec_in_pthread_h=no
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21590 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21591 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21592 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21611 if test $gl_cv_have_include_next = yes; then
21612 gl_cv_next_time_h='<'time.h'>'
21613 else
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21615 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21616 if test "${gl_cv_next_time_h+set}" = set; then :
21617 $as_echo_n "(cached) " >&6
21618 else
21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h. */
21622 #include <time.h>
21624 _ACEOF
21625 case "$host_os" in
21626 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21627 *) gl_absname_cpp="$ac_cpp" ;;
21628 esac
21630 case "$host_os" in
21631 mingw*)
21632 gl_dirsep_regex='[/\\]'
21635 gl_dirsep_regex='\/'
21637 esac
21638 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21640 gl_header_literal_regex=`echo 'time.h' \
21641 | sed -e "$gl_make_literal_regex_sed"`
21642 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21643 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21644 s|^/[^/]|//&|
21648 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21649 sed -n "$gl_absolute_header_sed"`'"'
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21654 $as_echo "$gl_cv_next_time_h" >&6; }
21656 NEXT_TIME_H=$gl_cv_next_time_h
21658 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21659 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21660 gl_next_as_first_directive='<'time.h'>'
21661 else
21662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21663 gl_next_as_first_directive=$gl_cv_next_time_h
21665 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21680 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21681 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
21682 ac_have_decl=1
21683 else
21684 ac_have_decl=0
21687 cat >>confdefs.h <<_ACEOF
21688 #define HAVE_DECL_UNSETENV $ac_have_decl
21689 _ACEOF
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21693 $as_echo_n "checking whether the utimes function works... " >&6; }
21694 if test "${gl_cv_func_working_utimes+set}" = set; then :
21695 $as_echo_n "(cached) " >&6
21696 else
21698 if test "$cross_compiling" = yes; then :
21699 gl_cv_func_working_utimes=no
21700 else
21701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21702 /* end confdefs.h. */
21704 #include <sys/types.h>
21705 #include <sys/stat.h>
21706 #include <fcntl.h>
21707 #include <sys/time.h>
21708 #include <time.h>
21709 #include <unistd.h>
21710 #include <stdlib.h>
21711 #include <stdio.h>
21712 #include <utime.h>
21714 static int
21715 inorder (time_t a, time_t b, time_t c)
21717 return a <= b && b <= c;
21721 main ()
21723 int result = 0;
21724 char const *file = "conftest.utimes";
21725 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21727 /* Test whether utimes() essentially works. */
21729 struct stat sbuf;
21730 FILE *f = fopen (file, "w");
21731 if (f == NULL)
21732 result |= 1;
21733 else if (fclose (f) != 0)
21734 result |= 1;
21735 else if (utimes (file, timeval) != 0)
21736 result |= 2;
21737 else if (lstat (file, &sbuf) != 0)
21738 result |= 1;
21739 else if (!(sbuf.st_atime == timeval[0].tv_sec
21740 && sbuf.st_mtime == timeval[1].tv_sec))
21741 result |= 4;
21742 if (unlink (file) != 0)
21743 result |= 1;
21746 /* Test whether utimes() with a NULL argument sets the file's timestamp
21747 to the current time. Use 'fstat' as well as 'time' to
21748 determine the "current" time, to accommodate NFS file systems
21749 if there is a time skew between the host and the NFS server. */
21751 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21752 if (fd < 0)
21753 result |= 1;
21754 else
21756 time_t t0, t2;
21757 struct stat st0, st1, st2;
21758 if (time (&t0) == (time_t) -1)
21759 result |= 1;
21760 else if (fstat (fd, &st0) != 0)
21761 result |= 1;
21762 else if (utimes (file, timeval) != 0)
21763 result |= 2;
21764 else if (utimes (file, NULL) != 0)
21765 result |= 8;
21766 else if (fstat (fd, &st1) != 0)
21767 result |= 1;
21768 else if (write (fd, "\n", 1) != 1)
21769 result |= 1;
21770 else if (fstat (fd, &st2) != 0)
21771 result |= 1;
21772 else if (time (&t2) == (time_t) -1)
21773 result |= 1;
21774 else
21776 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21777 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21778 if (! (st1.st_atime == st1.st_mtime))
21779 result |= 16;
21780 if (! (m_ok_POSIX || m_ok_NFS))
21781 result |= 32;
21783 if (close (fd) != 0)
21784 result |= 1;
21786 if (unlink (file) != 0)
21787 result |= 1;
21790 /* Test whether utimes() with a NULL argument works on read-only files. */
21792 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21793 if (fd < 0)
21794 result |= 1;
21795 else if (close (fd) != 0)
21796 result |= 1;
21797 else if (utimes (file, NULL) != 0)
21798 result |= 64;
21799 if (unlink (file) != 0)
21800 result |= 1;
21803 return result;
21806 _ACEOF
21807 if ac_fn_c_try_run "$LINENO"; then :
21808 gl_cv_func_working_utimes=yes
21809 else
21810 gl_cv_func_working_utimes=no
21812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21813 conftest.$ac_objext conftest.beam conftest.$ac_ext
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21818 $as_echo "$gl_cv_func_working_utimes" >&6; }
21820 if test $gl_cv_func_working_utimes = yes; then
21822 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21831 $as_echo_n "checking for struct utimbuf... " >&6; }
21832 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21833 $as_echo_n "(cached) " >&6
21834 else
21835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21836 /* end confdefs.h. */
21837 #if HAVE_SYS_TIME_H
21838 #include <sys/time.h>
21839 #endif
21840 #include <time.h>
21841 #ifdef HAVE_UTIME_H
21842 #include <utime.h>
21843 #endif
21846 main ()
21848 static struct utimbuf x; x.actime = x.modtime;
21850 return 0;
21852 _ACEOF
21853 if ac_fn_c_try_compile "$LINENO"; then :
21854 gl_cv_sys_struct_utimbuf=yes
21855 else
21856 gl_cv_sys_struct_utimbuf=no
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21861 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21863 if test $gl_cv_sys_struct_utimbuf = yes; then
21865 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21880 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21881 if test "${ac_cv_type_getgroups+set}" = set; then :
21882 $as_echo_n "(cached) " >&6
21883 else
21884 if test "$cross_compiling" = yes; then :
21885 ac_cv_type_getgroups=cross
21886 else
21887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21888 /* end confdefs.h. */
21889 /* Thanks to Mike Rendell for this test. */
21890 $ac_includes_default
21891 #define NGID 256
21892 #undef MAX
21893 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21896 main ()
21898 gid_t gidset[NGID];
21899 int i, n;
21900 union { gid_t gval; long int lval; } val;
21902 val.lval = -1;
21903 for (i = 0; i < NGID; i++)
21904 gidset[i] = val.gval;
21905 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21906 gidset);
21907 /* Exit non-zero if getgroups seems to require an array of ints. This
21908 happens when gid_t is short int but getgroups modifies an array
21909 of ints. */
21910 return n > 0 && gidset[n] != val.gval;
21912 _ACEOF
21913 if ac_fn_c_try_run "$LINENO"; then :
21914 ac_cv_type_getgroups=gid_t
21915 else
21916 ac_cv_type_getgroups=int
21918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21919 conftest.$ac_objext conftest.beam conftest.$ac_ext
21922 if test $ac_cv_type_getgroups = cross; then
21923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21924 /* end confdefs.h. */
21925 #include <unistd.h>
21927 _ACEOF
21928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21929 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
21930 ac_cv_type_getgroups=gid_t
21931 else
21932 ac_cv_type_getgroups=int
21934 rm -f conftest*
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
21939 $as_echo "$ac_cv_type_getgroups" >&6; }
21941 cat >>confdefs.h <<_ACEOF
21942 #define GETGROUPS_T $ac_cv_type_getgroups
21943 _ACEOF
21952 if false; then
21953 GL_COND_LIBTOOL_TRUE=
21954 GL_COND_LIBTOOL_FALSE='#'
21955 else
21956 GL_COND_LIBTOOL_TRUE='#'
21957 GL_COND_LIBTOOL_FALSE=
21960 gl_cond_libtool=false
21961 gl_libdeps=
21962 gl_ltlibdeps=
21963 gl_m4_base='m4'
21973 gl_source_base='lib'
21976 if test $ac_cv_func_alloca_works = no; then
21980 # Define an additional variable used in the Makefile substitution.
21981 if test $ac_cv_working_alloca_h = yes; then
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21983 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21984 if test "${gl_cv_rpl_alloca+set}" = set; then :
21985 $as_echo_n "(cached) " >&6
21986 else
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21991 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21992 Need own alloca
21993 #endif
21995 _ACEOF
21996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21997 $EGREP "Need own alloca" >/dev/null 2>&1; then :
21998 gl_cv_rpl_alloca=yes
21999 else
22000 gl_cv_rpl_alloca=no
22002 rm -f conftest*
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22007 $as_echo "$gl_cv_rpl_alloca" >&6; }
22008 if test $gl_cv_rpl_alloca = yes; then
22010 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22012 ALLOCA_H=alloca.h
22013 else
22014 ALLOCA_H=
22016 else
22017 ALLOCA_H=alloca.h
22020 if test -n "$ALLOCA_H"; then
22021 GL_GENERATE_ALLOCA_H_TRUE=
22022 GL_GENERATE_ALLOCA_H_FALSE='#'
22023 else
22024 GL_GENERATE_ALLOCA_H_TRUE='#'
22025 GL_GENERATE_ALLOCA_H_FALSE=
22033 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22034 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22036 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22037 # programs in the package would end up linked with that potentially-shared
22038 # library, inducing unnecessary run-time overhead.
22039 LIB_CLOCK_GETTIME=
22041 gl_saved_libs=$LIBS
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22043 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22044 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22046 else
22047 ac_func_search_save_LIBS=$LIBS
22048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22049 /* end confdefs.h. */
22051 /* Override any GCC internal prototype to avoid an error.
22052 Use char because int might match the return type of a GCC
22053 builtin and then its argument prototype would still apply. */
22054 #ifdef __cplusplus
22055 extern "C"
22056 #endif
22057 char clock_gettime ();
22059 main ()
22061 return clock_gettime ();
22063 return 0;
22065 _ACEOF
22066 for ac_lib in '' rt posix4; do
22067 if test -z "$ac_lib"; then
22068 ac_res="none required"
22069 else
22070 ac_res=-l$ac_lib
22071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22073 if ac_fn_c_try_link "$LINENO"; then :
22074 ac_cv_search_clock_gettime=$ac_res
22076 rm -f core conftest.err conftest.$ac_objext \
22077 conftest$ac_exeext
22078 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22079 break
22081 done
22082 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22084 else
22085 ac_cv_search_clock_gettime=no
22087 rm conftest.$ac_ext
22088 LIBS=$ac_func_search_save_LIBS
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22091 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22092 ac_res=$ac_cv_search_clock_gettime
22093 if test "$ac_res" != no; then :
22094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22095 test "$ac_cv_search_clock_gettime" = "none required" ||
22096 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22099 for ac_func in clock_gettime clock_settime
22100 do :
22101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22102 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22103 eval as_val=\$$as_ac_var
22104 if test "x$as_val" = x""yes; then :
22105 cat >>confdefs.h <<_ACEOF
22106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22107 _ACEOF
22110 done
22112 LIBS=$gl_saved_libs
22119 cat >>confdefs.h <<_ACEOF
22120 #define GNULIB_CLOSE_STREAM 1
22121 _ACEOF
22150 if test $gl_cv_have_include_next = yes; then
22151 gl_cv_next_dirent_h='<'dirent.h'>'
22152 else
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22154 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22155 if test "${gl_cv_next_dirent_h+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22159 if test $ac_cv_header_dirent_h = yes; then
22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h. */
22164 #include <dirent.h>
22166 _ACEOF
22167 case "$host_os" in
22168 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22169 *) gl_absname_cpp="$ac_cpp" ;;
22170 esac
22172 case "$host_os" in
22173 mingw*)
22174 gl_dirsep_regex='[/\\]'
22177 gl_dirsep_regex='\/'
22179 esac
22180 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22182 gl_header_literal_regex=`echo 'dirent.h' \
22183 | sed -e "$gl_make_literal_regex_sed"`
22184 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22185 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22186 s|^/[^/]|//&|
22190 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22191 sed -n "$gl_absolute_header_sed"`'"'
22192 else
22193 gl_cv_next_dirent_h='<'dirent.h'>'
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22199 $as_echo "$gl_cv_next_dirent_h" >&6; }
22201 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22203 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22205 gl_next_as_first_directive='<'dirent.h'>'
22206 else
22207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22208 gl_next_as_first_directive=$gl_cv_next_dirent_h
22210 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22215 if test $ac_cv_header_dirent_h = yes; then
22216 HAVE_DIRENT_H=1
22217 else
22218 HAVE_DIRENT_H=0
22230 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22233 if test $HAVE_DUP2 = 1; then
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22235 $as_echo_n "checking whether dup2 works... " >&6; }
22236 if test "${gl_cv_func_dup2_works+set}" = set; then :
22237 $as_echo_n "(cached) " >&6
22238 else
22239 if test "$cross_compiling" = yes; then :
22240 case "$host_os" in
22241 mingw*) # on this platform, dup2 always returns 0 for success
22242 gl_cv_func_dup2_works="guessing no" ;;
22243 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22244 gl_cv_func_dup2_works="guessing no" ;;
22245 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22246 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22247 gl_cv_func_dup2_works="guessing no" ;;
22248 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22249 gl_cv_func_dup2_works="guessing no" ;;
22250 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22251 gl_cv_func_dup2_works="guessing no" ;;
22252 *) gl_cv_func_dup2_works="guessing yes" ;;
22253 esac
22254 else
22255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h. */
22258 #include <unistd.h>
22259 #include <fcntl.h>
22260 #include <errno.h>
22262 main ()
22264 int result = 0;
22265 #ifdef FD_CLOEXEC
22266 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22267 result |= 1;
22268 #endif
22269 if (dup2 (1, 1) == 0)
22270 result |= 2;
22271 #ifdef FD_CLOEXEC
22272 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22273 result |= 4;
22274 #endif
22275 close (0);
22276 if (dup2 (0, 0) != -1)
22277 result |= 8;
22278 /* Many gnulib modules require POSIX conformance of EBADF. */
22279 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22280 result |= 16;
22281 /* Flush out a cygwin core dump. */
22282 if (dup2 (2, -1) != -1 || errno != EBADF)
22283 result |= 32;
22284 return result;
22287 return 0;
22290 _ACEOF
22291 if ac_fn_c_try_run "$LINENO"; then :
22292 gl_cv_func_dup2_works=yes
22293 else
22294 gl_cv_func_dup2_works=no
22296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22297 conftest.$ac_objext conftest.beam conftest.$ac_ext
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22303 $as_echo "$gl_cv_func_dup2_works" >&6; }
22304 case "$gl_cv_func_dup2_works" in
22305 *yes) ;;
22307 REPLACE_DUP2=1
22309 esac
22313 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22322 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22331 GNULIB_DUP2=1
22343 GNULIB_ENVIRON=1
22353 LIB_EXECINFO=''
22354 EXECINFO_H='execinfo.h'
22356 if test $ac_cv_header_execinfo_h = yes; then
22357 gl_saved_libs=$LIBS
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22359 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22360 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22361 $as_echo_n "(cached) " >&6
22362 else
22363 ac_func_search_save_LIBS=$LIBS
22364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22365 /* end confdefs.h. */
22367 /* Override any GCC internal prototype to avoid an error.
22368 Use char because int might match the return type of a GCC
22369 builtin and then its argument prototype would still apply. */
22370 #ifdef __cplusplus
22371 extern "C"
22372 #endif
22373 char backtrace_symbols_fd ();
22375 main ()
22377 return backtrace_symbols_fd ();
22379 return 0;
22381 _ACEOF
22382 for ac_lib in '' execinfo; do
22383 if test -z "$ac_lib"; then
22384 ac_res="none required"
22385 else
22386 ac_res=-l$ac_lib
22387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22389 if ac_fn_c_try_link "$LINENO"; then :
22390 ac_cv_search_backtrace_symbols_fd=$ac_res
22392 rm -f core conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext
22394 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22395 break
22397 done
22398 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22400 else
22401 ac_cv_search_backtrace_symbols_fd=no
22403 rm conftest.$ac_ext
22404 LIBS=$ac_func_search_save_LIBS
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22407 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22408 ac_res=$ac_cv_search_backtrace_symbols_fd
22409 if test "$ac_res" != no; then :
22410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22411 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22412 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22415 LIBS=$gl_saved_libs
22416 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22419 if test -n "$EXECINFO_H"; then
22428 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22434 if test -n "$EXECINFO_H"; then
22435 GL_GENERATE_EXECINFO_H_TRUE=
22436 GL_GENERATE_EXECINFO_H_FALSE='#'
22437 else
22438 GL_GENERATE_EXECINFO_H_TRUE='#'
22439 GL_GENERATE_EXECINFO_H_FALSE=
22450 if test $ac_cv_func_faccessat = no; then
22451 HAVE_FACCESSAT=0
22454 if test $HAVE_FACCESSAT = 0; then
22463 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22466 for ac_func in access
22467 do :
22468 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22469 if test "x$ac_cv_func_access" = x""yes; then :
22470 cat >>confdefs.h <<_ACEOF
22471 #define HAVE_ACCESS 1
22472 _ACEOF
22475 done
22481 cat >>confdefs.h <<_ACEOF
22482 #define GNULIB_FACCESSAT 1
22483 _ACEOF
22491 GNULIB_FACCESSAT=1
22502 if test $ac_cv_func_fcntl = no; then
22506 if test $ac_cv_func_fcntl = no; then
22507 HAVE_FCNTL=0
22508 else
22509 REPLACE_FCNTL=1
22512 else
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22514 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22515 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22516 $as_echo_n "(cached) " >&6
22517 else
22518 if test "$cross_compiling" = yes; then :
22519 # Guess that it works on glibc systems
22520 case $host_os in #((
22521 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
22522 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
22523 esac
22524 else
22525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22526 /* end confdefs.h. */
22528 #include <fcntl.h>
22529 #include <errno.h>
22532 main ()
22534 int result = 0;
22535 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22536 if (errno != EINVAL) result |= 2;
22537 return result;
22540 return 0;
22542 _ACEOF
22543 if ac_fn_c_try_run "$LINENO"; then :
22544 gl_cv_func_fcntl_f_dupfd_works=yes
22545 else
22546 gl_cv_func_fcntl_f_dupfd_works=no
22548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22549 conftest.$ac_objext conftest.beam conftest.$ac_ext
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22554 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22555 case $gl_cv_func_fcntl_f_dupfd_works in
22556 *yes) ;;
22560 if test $ac_cv_func_fcntl = no; then
22561 HAVE_FCNTL=0
22562 else
22563 REPLACE_FCNTL=1
22567 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22569 esac
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22572 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22573 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22574 $as_echo_n "(cached) " >&6
22575 else
22576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22577 /* end confdefs.h. */
22579 #include <fcntl.h>
22580 #ifndef F_DUPFD_CLOEXEC
22581 choke me
22582 #endif
22585 main ()
22589 return 0;
22591 _ACEOF
22592 if ac_fn_c_try_compile "$LINENO"; then :
22593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22594 /* end confdefs.h. */
22596 #ifdef __linux__
22597 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22598 it to support the semantics on older kernels that failed with EINVAL. */
22599 choke me
22600 #endif
22603 main ()
22607 return 0;
22609 _ACEOF
22610 if ac_fn_c_try_compile "$LINENO"; then :
22611 gl_cv_func_fcntl_f_dupfd_cloexec=yes
22612 else
22613 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 else
22617 gl_cv_func_fcntl_f_dupfd_cloexec=no
22619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22622 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22623 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22627 if test $ac_cv_func_fcntl = no; then
22628 HAVE_FCNTL=0
22629 else
22630 REPLACE_FCNTL=1
22637 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
22646 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
22654 GNULIB_FCNTL=1
22671 if test $gl_cv_have_include_next = yes; then
22672 gl_cv_next_fcntl_h='<'fcntl.h'>'
22673 else
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22675 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22676 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
22678 else
22680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22681 /* end confdefs.h. */
22682 #include <fcntl.h>
22684 _ACEOF
22685 case "$host_os" in
22686 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22687 *) gl_absname_cpp="$ac_cpp" ;;
22688 esac
22690 case "$host_os" in
22691 mingw*)
22692 gl_dirsep_regex='[/\\]'
22695 gl_dirsep_regex='\/'
22697 esac
22698 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22700 gl_header_literal_regex=`echo 'fcntl.h' \
22701 | sed -e "$gl_make_literal_regex_sed"`
22702 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22703 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22704 s|^/[^/]|//&|
22708 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22709 sed -n "$gl_absolute_header_sed"`'"'
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22714 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22716 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22718 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22720 gl_next_as_first_directive='<'fcntl.h'>'
22721 else
22722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22723 gl_next_as_first_directive=$gl_cv_next_fcntl_h
22725 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22741 LIB_FDATASYNC=
22744 if test $ac_cv_have_decl_fdatasync = no; then
22745 HAVE_DECL_FDATASYNC=0
22746 for ac_func in fdatasync
22747 do :
22748 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22749 if test "x$ac_cv_func_fdatasync" = x""yes; then :
22750 cat >>confdefs.h <<_ACEOF
22751 #define HAVE_FDATASYNC 1
22752 _ACEOF
22755 done
22757 if test $ac_cv_func_fdatasync = no; then
22758 HAVE_FDATASYNC=0
22760 else
22761 gl_saved_libs=$LIBS
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22763 $as_echo_n "checking for library containing fdatasync... " >&6; }
22764 if test "${ac_cv_search_fdatasync+set}" = set; then :
22765 $as_echo_n "(cached) " >&6
22766 else
22767 ac_func_search_save_LIBS=$LIBS
22768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22769 /* end confdefs.h. */
22771 /* Override any GCC internal prototype to avoid an error.
22772 Use char because int might match the return type of a GCC
22773 builtin and then its argument prototype would still apply. */
22774 #ifdef __cplusplus
22775 extern "C"
22776 #endif
22777 char fdatasync ();
22779 main ()
22781 return fdatasync ();
22783 return 0;
22785 _ACEOF
22786 for ac_lib in '' rt posix4; do
22787 if test -z "$ac_lib"; then
22788 ac_res="none required"
22789 else
22790 ac_res=-l$ac_lib
22791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22793 if ac_fn_c_try_link "$LINENO"; then :
22794 ac_cv_search_fdatasync=$ac_res
22796 rm -f core conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext
22798 if test "${ac_cv_search_fdatasync+set}" = set; then :
22799 break
22801 done
22802 if test "${ac_cv_search_fdatasync+set}" = set; then :
22804 else
22805 ac_cv_search_fdatasync=no
22807 rm conftest.$ac_ext
22808 LIBS=$ac_func_search_save_LIBS
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22811 $as_echo "$ac_cv_search_fdatasync" >&6; }
22812 ac_res=$ac_cv_search_fdatasync
22813 if test "$ac_res" != no; then :
22814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22815 test "$ac_cv_search_fdatasync" = "none required" ||
22816 LIB_FDATASYNC=$ac_cv_search_fdatasync
22819 LIBS=$gl_saved_libs
22822 if test $HAVE_FDATASYNC = 0; then
22831 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
22839 GNULIB_FDATASYNC=1
22850 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22851 #include <dirent.h>
22854 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
22855 ac_have_decl=1
22856 else
22857 ac_have_decl=0
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22862 _ACEOF
22863 if test $ac_have_decl = 1; then :
22865 else
22866 HAVE_DECL_FDOPENDIR=0
22870 if test $ac_cv_func_fdopendir = no; then
22871 HAVE_FDOPENDIR=0
22872 else
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22874 $as_echo_n "checking whether fdopendir works... " >&6; }
22875 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 if test "$cross_compiling" = yes; then :
22879 case "$host_os" in
22880 # Guess yes on glibc systems.
22881 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
22882 # If we don't know, assume the worst.
22883 *) gl_cv_func_fdopendir_works="guessing no" ;;
22884 esac
22886 else
22887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22888 /* end confdefs.h. */
22890 #include <dirent.h>
22891 #include <fcntl.h>
22892 #include <unistd.h>
22893 #if !HAVE_DECL_FDOPENDIR
22894 extern
22895 # ifdef __cplusplus
22897 # endif
22898 DIR *fdopendir (int);
22899 #endif
22902 main ()
22904 int result = 0;
22905 int fd = open ("conftest.c", O_RDONLY);
22906 if (fd < 0) result |= 1;
22907 if (fdopendir (fd)) result |= 2;
22908 if (close (fd)) result |= 4;
22909 return result;
22911 return 0;
22913 _ACEOF
22914 if ac_fn_c_try_run "$LINENO"; then :
22915 gl_cv_func_fdopendir_works=yes
22916 else
22917 gl_cv_func_fdopendir_works=no
22919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22920 conftest.$ac_objext conftest.beam conftest.$ac_ext
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
22925 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
22926 case "$gl_cv_func_fdopendir_works" in
22927 *yes) ;;
22929 REPLACE_FDOPENDIR=1
22931 esac
22934 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
22943 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
22951 GNULIB_FDOPENDIR=1
22959 cat >>confdefs.h <<_ACEOF
22960 #define GNULIB_FDOPENDIR 1
22961 _ACEOF
22971 fp_headers='
22972 # include <stdio.h>
22973 # if HAVE_STDIO_EXT_H
22974 # include <stdio_ext.h>
22975 # endif
22977 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
22979 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
22980 ac_have_decl=1
22981 else
22982 ac_have_decl=0
22985 cat >>confdefs.h <<_ACEOF
22986 #define HAVE_DECL___FPENDING $ac_have_decl
22987 _ACEOF
22990 if test $ac_cv_func___fpending = no; then
22999 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23003 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23004 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23005 $as_echo_n "(cached) " >&6
23006 else
23008 for ac_expr in \
23010 '# glibc2' \
23011 'fp->_IO_write_ptr - fp->_IO_write_base' \
23013 '# traditional Unix' \
23014 'fp->_ptr - fp->_base' \
23016 '# BSD' \
23017 'fp->_p - fp->_bf._base' \
23019 '# SCO, Unixware' \
23020 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23022 '# QNX' \
23023 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23025 '# old glibc?' \
23026 'fp->__bufp - fp->__buffer' \
23028 '# old glibc iostream?' \
23029 'fp->_pptr - fp->_pbase' \
23031 '# emx+gcc' \
23032 'fp->_ptr - fp->_buffer' \
23034 '# Minix' \
23035 'fp->_ptr - fp->_buf' \
23037 '# Plan9' \
23038 'fp->wp - fp->buf' \
23040 '# VMS' \
23041 '(*fp)->_ptr - (*fp)->_base' \
23043 '# e.g., DGUX R4.11; the info is not available' \
23045 ; do
23047 # Skip each embedded comment.
23048 case "$ac_expr" in '#'*) continue;; esac
23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h. */
23052 #include <stdio.h>
23054 main ()
23056 FILE *fp = stdin; (void) ($ac_expr);
23058 return 0;
23060 _ACEOF
23061 if ac_fn_c_try_compile "$LINENO"; then :
23062 fp_done=yes
23065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23066 test "$fp_done" = yes && break
23067 done
23069 ac_cv_sys_pending_output_n_bytes=$ac_expr
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23074 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23076 cat >>confdefs.h <<_ACEOF
23077 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23078 _ACEOF
23088 if test $ac_cv_func_fstatat = no; then
23089 HAVE_FSTATAT=0
23090 else
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23092 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23093 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23094 $as_echo_n "(cached) " >&6
23095 else
23096 if test "$cross_compiling" = yes; then :
23097 case "$host_os" in
23098 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23099 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23100 esac
23102 else
23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h. */
23106 #include <fcntl.h>
23107 #include <sys/stat.h>
23109 main (void)
23111 struct stat a;
23112 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23115 _ACEOF
23116 if ac_fn_c_try_run "$LINENO"; then :
23117 gl_cv_func_fstatat_zero_flag=yes
23118 else
23119 gl_cv_func_fstatat_zero_flag=no
23121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23122 conftest.$ac_objext conftest.beam conftest.$ac_ext
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23128 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23130 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23131 *yes+*yes) ;;
23132 *) REPLACE_FSTATAT=1
23133 case $gl_cv_func_fstatat_zero_flag in
23134 *yes)
23136 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23139 esac
23141 esac
23144 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23153 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23161 GNULIB_FSTATAT=1
23170 if test $ac_cv_func_fsync = no; then
23171 HAVE_FSYNC=0
23174 if test $HAVE_FSYNC = 0; then
23183 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23192 GNULIB_FSYNC=1
23200 # Persuade glibc <stdlib.h> to declare getloadavg().
23203 gl_save_LIBS=$LIBS
23205 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23206 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23207 HAVE_GETLOADAVG=1
23208 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23209 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23211 else
23212 gl_func_getloadavg_done=no
23214 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23215 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23216 # to get the right answer into the cache.
23217 # For kstat on solaris, we need to test for libelf and libkvm to force the
23218 # definition of SVR4 below.
23219 if test $gl_func_getloadavg_done = no; then
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23221 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23222 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23223 $as_echo_n "(cached) " >&6
23224 else
23225 ac_check_lib_save_LIBS=$LIBS
23226 LIBS="-lelf $LIBS"
23227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23228 /* end confdefs.h. */
23230 /* Override any GCC internal prototype to avoid an error.
23231 Use char because int might match the return type of a GCC
23232 builtin and then its argument prototype would still apply. */
23233 #ifdef __cplusplus
23234 extern "C"
23235 #endif
23236 char elf_begin ();
23238 main ()
23240 return elf_begin ();
23242 return 0;
23244 _ACEOF
23245 if ac_fn_c_try_link "$LINENO"; then :
23246 ac_cv_lib_elf_elf_begin=yes
23247 else
23248 ac_cv_lib_elf_elf_begin=no
23250 rm -f core conftest.err conftest.$ac_objext \
23251 conftest$ac_exeext conftest.$ac_ext
23252 LIBS=$ac_check_lib_save_LIBS
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23255 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23256 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23257 LIBS="-lelf $LIBS"
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23261 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23262 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23263 $as_echo_n "(cached) " >&6
23264 else
23265 ac_check_lib_save_LIBS=$LIBS
23266 LIBS="-lkvm $LIBS"
23267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23268 /* end confdefs.h. */
23270 /* Override any GCC internal prototype to avoid an error.
23271 Use char because int might match the return type of a GCC
23272 builtin and then its argument prototype would still apply. */
23273 #ifdef __cplusplus
23274 extern "C"
23275 #endif
23276 char kvm_open ();
23278 main ()
23280 return kvm_open ();
23282 return 0;
23284 _ACEOF
23285 if ac_fn_c_try_link "$LINENO"; then :
23286 ac_cv_lib_kvm_kvm_open=yes
23287 else
23288 ac_cv_lib_kvm_kvm_open=no
23290 rm -f core conftest.err conftest.$ac_objext \
23291 conftest$ac_exeext conftest.$ac_ext
23292 LIBS=$ac_check_lib_save_LIBS
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23295 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23296 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23297 LIBS="-lkvm $LIBS"
23300 # Check for the 4.4BSD definition of getloadavg.
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23302 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23303 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23305 else
23306 ac_check_lib_save_LIBS=$LIBS
23307 LIBS="-lutil $LIBS"
23308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23309 /* end confdefs.h. */
23311 /* Override any GCC internal prototype to avoid an error.
23312 Use char because int might match the return type of a GCC
23313 builtin and then its argument prototype would still apply. */
23314 #ifdef __cplusplus
23315 extern "C"
23316 #endif
23317 char getloadavg ();
23319 main ()
23321 return getloadavg ();
23323 return 0;
23325 _ACEOF
23326 if ac_fn_c_try_link "$LINENO"; then :
23327 ac_cv_lib_util_getloadavg=yes
23328 else
23329 ac_cv_lib_util_getloadavg=no
23331 rm -f core conftest.err conftest.$ac_objext \
23332 conftest$ac_exeext conftest.$ac_ext
23333 LIBS=$ac_check_lib_save_LIBS
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23336 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23337 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23338 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23343 if test $gl_func_getloadavg_done = no; then
23344 # There is a commonly available library for RS/6000 AIX.
23345 # Since it is not a standard part of AIX, it might be installed locally.
23346 gl_getloadavg_LIBS=$LIBS
23347 LIBS="-L/usr/local/lib $LIBS"
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23349 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23350 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23351 $as_echo_n "(cached) " >&6
23352 else
23353 ac_check_lib_save_LIBS=$LIBS
23354 LIBS="-lgetloadavg $LIBS"
23355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356 /* end confdefs.h. */
23358 /* Override any GCC internal prototype to avoid an error.
23359 Use char because int might match the return type of a GCC
23360 builtin and then its argument prototype would still apply. */
23361 #ifdef __cplusplus
23362 extern "C"
23363 #endif
23364 char getloadavg ();
23366 main ()
23368 return getloadavg ();
23370 return 0;
23372 _ACEOF
23373 if ac_fn_c_try_link "$LINENO"; then :
23374 ac_cv_lib_getloadavg_getloadavg=yes
23375 else
23376 ac_cv_lib_getloadavg_getloadavg=no
23378 rm -f core conftest.err conftest.$ac_objext \
23379 conftest$ac_exeext conftest.$ac_ext
23380 LIBS=$ac_check_lib_save_LIBS
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23383 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23384 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23385 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23386 else
23387 LIBS=$gl_getloadavg_LIBS
23392 # Set up the replacement function if necessary.
23393 if test $gl_func_getloadavg_done = no; then
23394 HAVE_GETLOADAVG=0
23396 # Solaris has libkstat which does not require root.
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23398 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23399 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402 ac_check_lib_save_LIBS=$LIBS
23403 LIBS="-lkstat $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 kstat_open ();
23415 main ()
23417 return kstat_open ();
23419 return 0;
23421 _ACEOF
23422 if ac_fn_c_try_link "$LINENO"; then :
23423 ac_cv_lib_kstat_kstat_open=yes
23424 else
23425 ac_cv_lib_kstat_kstat_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_kstat_kstat_open" >&5
23432 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23433 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23434 cat >>confdefs.h <<_ACEOF
23435 #define HAVE_LIBKSTAT 1
23436 _ACEOF
23438 LIBS="-lkstat $LIBS"
23442 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23444 # AIX has libperfstat which does not require root
23445 if test $gl_func_getloadavg_done = no; then
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23447 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23448 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23449 $as_echo_n "(cached) " >&6
23450 else
23451 ac_check_lib_save_LIBS=$LIBS
23452 LIBS="-lperfstat $LIBS"
23453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23454 /* end confdefs.h. */
23456 /* Override any GCC internal prototype to avoid an error.
23457 Use char because int might match the return type of a GCC
23458 builtin and then its argument prototype would still apply. */
23459 #ifdef __cplusplus
23460 extern "C"
23461 #endif
23462 char perfstat_cpu_total ();
23464 main ()
23466 return perfstat_cpu_total ();
23468 return 0;
23470 _ACEOF
23471 if ac_fn_c_try_link "$LINENO"; then :
23472 ac_cv_lib_perfstat_perfstat_cpu_total=yes
23473 else
23474 ac_cv_lib_perfstat_perfstat_cpu_total=no
23476 rm -f core conftest.err conftest.$ac_objext \
23477 conftest$ac_exeext conftest.$ac_ext
23478 LIBS=$ac_check_lib_save_LIBS
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23481 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23482 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
23483 cat >>confdefs.h <<_ACEOF
23484 #define HAVE_LIBPERFSTAT 1
23485 _ACEOF
23487 LIBS="-lperfstat $LIBS"
23491 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
23494 if test $gl_func_getloadavg_done = no; then
23495 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23496 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
23497 gl_func_getloadavg_done=yes
23499 $as_echo "#define DGUX 1" >>confdefs.h
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23502 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23503 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23504 $as_echo_n "(cached) " >&6
23505 else
23506 ac_check_lib_save_LIBS=$LIBS
23507 LIBS="-ldgc $LIBS"
23508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23509 /* end confdefs.h. */
23511 /* Override any GCC internal prototype to avoid an error.
23512 Use char because int might match the return type of a GCC
23513 builtin and then its argument prototype would still apply. */
23514 #ifdef __cplusplus
23515 extern "C"
23516 #endif
23517 char dg_sys_info ();
23519 main ()
23521 return dg_sys_info ();
23523 return 0;
23525 _ACEOF
23526 if ac_fn_c_try_link "$LINENO"; then :
23527 ac_cv_lib_dgc_dg_sys_info=yes
23528 else
23529 ac_cv_lib_dgc_dg_sys_info=no
23531 rm -f core conftest.err conftest.$ac_objext \
23532 conftest$ac_exeext conftest.$ac_ext
23533 LIBS=$ac_check_lib_save_LIBS
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23536 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23537 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
23538 cat >>confdefs.h <<_ACEOF
23539 #define HAVE_LIBDGC 1
23540 _ACEOF
23542 LIBS="-ldgc $LIBS"
23554 if test "x$gl_save_LIBS" = x; then
23555 GETLOADAVG_LIBS=$LIBS
23556 else
23557 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23559 LIBS=$gl_save_LIBS
23562 # Test whether the system declares getloadavg. Solaris has the function
23563 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23564 for ac_header in sys/loadavg.h
23565 do :
23566 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23567 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
23568 cat >>confdefs.h <<_ACEOF
23569 #define HAVE_SYS_LOADAVG_H 1
23570 _ACEOF
23574 done
23576 if test $ac_cv_header_sys_loadavg_h = yes; then
23577 HAVE_SYS_LOADAVG_H=1
23578 else
23579 HAVE_SYS_LOADAVG_H=0
23581 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23582 # include <sys/loadavg.h>
23583 #endif
23584 #include <stdlib.h>
23586 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
23588 else
23589 HAVE_DECL_GETLOADAVG=0
23593 if test $HAVE_GETLOADAVG = 0; then
23602 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
23605 # Figure out what our getloadavg.c needs.
23609 # On HPUX9, an unprivileged user can get load averages this way.
23610 if test $gl_func_getloadavg_done = no; then
23611 for ac_func in pstat_getdynamic
23612 do :
23613 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23614 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
23615 cat >>confdefs.h <<_ACEOF
23616 #define HAVE_PSTAT_GETDYNAMIC 1
23617 _ACEOF
23618 gl_func_getloadavg_done=yes
23620 done
23624 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23625 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23626 # Irix 4.0.5F has the header but not the library.
23627 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
23628 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23629 gl_func_getloadavg_done=yes
23631 $as_echo "#define SVR4 1" >>confdefs.h
23635 if test $gl_func_getloadavg_done = no; then
23636 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23637 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
23638 gl_func_getloadavg_done=yes
23640 $as_echo "#define UMAX 1" >>confdefs.h
23643 $as_echo "#define UMAX4_3 1" >>confdefs.h
23650 if test $gl_func_getloadavg_done = no; then
23651 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23652 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
23653 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
23660 if test $gl_func_getloadavg_done = no; then
23661 for ac_header in mach/mach.h
23662 do :
23663 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23664 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
23665 cat >>confdefs.h <<_ACEOF
23666 #define HAVE_MACH_MACH_H 1
23667 _ACEOF
23671 done
23675 for ac_header in nlist.h
23676 do :
23677 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23678 if test "x$ac_cv_header_nlist_h" = x""yes; then :
23679 cat >>confdefs.h <<_ACEOF
23680 #define HAVE_NLIST_H 1
23681 _ACEOF
23682 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23684 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
23686 cat >>confdefs.h <<_ACEOF
23687 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23688 _ACEOF
23693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23694 /* end confdefs.h. */
23695 #include <nlist.h>
23697 main ()
23699 struct nlist x;
23700 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23701 x.n_un.n_name = "";
23702 #else
23703 x.n_name = "";
23704 #endif
23706 return 0;
23708 _ACEOF
23709 if ac_fn_c_try_link "$LINENO"; then :
23711 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23714 rm -f core conftest.err conftest.$ac_objext \
23715 conftest$ac_exeext conftest.$ac_ext
23719 done
23727 GNULIB_GETLOADAVG=1
23738 if test $REPLACE_GETOPT = 1; then
23747 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23757 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23762 GNULIB_GL_UNISTD_H_GETOPT=1
23771 REPLACE_GETOPT=0
23772 if test -n "$gl_replace_getopt"; then
23773 REPLACE_GETOPT=1
23776 if test $REPLACE_GETOPT = 1; then
23778 GETOPT_H=getopt.h
23780 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23786 if test $REPLACE_GETOPT = 1; then
23795 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23805 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23810 GNULIB_GL_UNISTD_H_GETOPT=1
23824 gl_gettimeofday_timezone=void
23825 if test $ac_cv_func_gettimeofday != yes; then
23826 HAVE_GETTIMEOFDAY=0
23827 else
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23832 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23833 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23834 $as_echo_n "(cached) " >&6
23835 else
23836 if test "$cross_compiling" = yes; then :
23837 # When cross-compiling:
23838 case "$host_os" in
23839 # Guess all is fine on glibc systems.
23840 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23841 # If we don't know, assume the worst.
23842 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23843 esac
23845 else
23846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23847 /* end confdefs.h. */
23848 #include <string.h>
23849 #include <sys/time.h>
23850 #include <time.h>
23851 #include <stdlib.h>
23854 main ()
23857 time_t t = 0;
23858 struct tm *lt;
23859 struct tm saved_lt;
23860 struct timeval tv;
23861 lt = localtime (&t);
23862 saved_lt = *lt;
23863 gettimeofday (&tv, NULL);
23864 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23867 return 0;
23869 _ACEOF
23870 if ac_fn_c_try_run "$LINENO"; then :
23871 gl_cv_func_gettimeofday_clobber=no
23872 else
23873 gl_cv_func_gettimeofday_clobber=yes
23875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23876 conftest.$ac_objext conftest.beam conftest.$ac_ext
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23881 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23883 case "$gl_cv_func_gettimeofday_clobber" in
23884 *yes)
23885 REPLACE_GETTIMEOFDAY=1
23888 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23891 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23895 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23898 esac
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23901 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23902 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
23903 $as_echo_n "(cached) " >&6
23904 else
23905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23906 /* end confdefs.h. */
23907 #include <sys/time.h>
23908 struct timeval c;
23909 int gettimeofday (struct timeval *restrict, void *restrict);
23912 main ()
23914 /* glibc uses struct timezone * rather than the POSIX void *
23915 if _GNU_SOURCE is defined. However, since the only portable
23916 use of gettimeofday uses NULL as the second parameter, and
23917 since the glibc definition is actually more typesafe, it is
23918 not worth wrapping this to get a compliant signature. */
23919 int (*f) (struct timeval *restrict, void *restrict)
23920 = gettimeofday;
23921 int x = f (&c, 0);
23922 return !(x | c.tv_sec | c.tv_usec);
23925 return 0;
23927 _ACEOF
23928 if ac_fn_c_try_compile "$LINENO"; then :
23929 gl_cv_func_gettimeofday_posix_signature=yes
23930 else
23931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h. */
23933 #include <sys/time.h>
23934 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23937 main ()
23941 return 0;
23943 _ACEOF
23944 if ac_fn_c_try_compile "$LINENO"; then :
23945 gl_cv_func_gettimeofday_posix_signature=almost
23946 else
23947 gl_cv_func_gettimeofday_posix_signature=no
23949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23954 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23955 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
23956 gl_gettimeofday_timezone='struct timezone'
23957 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23958 REPLACE_GETTIMEOFDAY=1
23960 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23961 REPLACE_GETTIMEOFDAY=1
23966 cat >>confdefs.h <<_ACEOF
23967 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23968 _ACEOF
23971 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
23980 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23983 for ac_header in sys/timeb.h
23984 do :
23985 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
23986 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
23987 cat >>confdefs.h <<_ACEOF
23988 #define HAVE_SYS_TIMEB_H 1
23989 _ACEOF
23993 done
23995 for ac_func in _ftime
23996 do :
23997 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
23998 if test "x$ac_cv_func__ftime" = x""yes; then :
23999 cat >>confdefs.h <<_ACEOF
24000 #define HAVE__FTIME 1
24001 _ACEOF
24004 done
24013 GNULIB_GETTIMEOFDAY=1
24024 if test $ac_cv_func_lstat = yes; then
24026 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24027 *no)
24028 REPLACE_LSTAT=1
24030 esac
24031 else
24032 HAVE_LSTAT=0
24035 if test $REPLACE_LSTAT = 1; then
24044 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24053 GNULIB_LSTAT=1
24064 if test $ac_cv_have_decl_memrchr = no; then
24065 HAVE_DECL_MEMRCHR=0
24068 for ac_func in memrchr
24069 do :
24070 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24071 if test "x$ac_cv_func_memrchr" = x""yes; then :
24072 cat >>confdefs.h <<_ACEOF
24073 #define HAVE_MEMRCHR 1
24074 _ACEOF
24077 done
24080 if test $ac_cv_func_memrchr = no; then
24089 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24098 GNULIB_MEMRCHR=1
24110 if test $ac_cv_func_mkostemp != yes; then
24111 HAVE_MKOSTEMP=0
24114 if test $HAVE_MKOSTEMP = 0; then
24123 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
24130 cat >>confdefs.h <<_ACEOF
24131 #define GNULIB_MKOSTEMP 1
24132 _ACEOF
24140 GNULIB_MKOSTEMP=1
24152 if test $APPLE_UNIVERSAL_BUILD = 1; then
24153 # A universal build on Apple Mac OS X platforms.
24154 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24155 # But we need a configuration result that is valid in both modes.
24156 gl_cv_func_working_mktime=no
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24159 $as_echo_n "checking for working mktime... " >&6; }
24160 if test "${gl_cv_func_working_mktime+set}" = set; then :
24161 $as_echo_n "(cached) " >&6
24162 else
24163 if test "$cross_compiling" = yes; then :
24164 gl_cv_func_working_mktime=no
24165 else
24166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h. */
24168 /* Test program from Paul Eggert and Tony Leneis. */
24169 #include <limits.h>
24170 #include <stdlib.h>
24171 #include <time.h>
24173 #ifdef HAVE_UNISTD_H
24174 # include <unistd.h>
24175 #endif
24177 #if HAVE_DECL_ALARM
24178 # include <signal.h>
24179 #endif
24181 /* Work around redefinition to rpl_putenv by other config tests. */
24182 #undef putenv
24184 static time_t time_t_max;
24185 static time_t time_t_min;
24187 /* Values we'll use to set the TZ environment variable. */
24188 static char *tz_strings[] = {
24189 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24190 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24192 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24194 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24195 Based on a problem report from Andreas Jaeger. */
24196 static int
24197 spring_forward_gap ()
24199 /* glibc (up to about 1998-10-07) failed this test. */
24200 struct tm tm;
24202 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24203 instead of "TZ=America/Vancouver" in order to detect the bug even
24204 on systems that don't support the Olson extension, or don't have the
24205 full zoneinfo tables installed. */
24206 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24208 tm.tm_year = 98;
24209 tm.tm_mon = 3;
24210 tm.tm_mday = 5;
24211 tm.tm_hour = 2;
24212 tm.tm_min = 0;
24213 tm.tm_sec = 0;
24214 tm.tm_isdst = -1;
24215 return mktime (&tm) != (time_t) -1;
24218 static int
24219 mktime_test1 (time_t now)
24221 struct tm *lt;
24222 return ! (lt = localtime (&now)) || mktime (lt) == now;
24225 static int
24226 mktime_test (time_t now)
24228 return (mktime_test1 (now)
24229 && mktime_test1 ((time_t) (time_t_max - now))
24230 && mktime_test1 ((time_t) (time_t_min + now)));
24233 static int
24234 irix_6_4_bug ()
24236 /* Based on code from Ariel Faigon. */
24237 struct tm tm;
24238 tm.tm_year = 96;
24239 tm.tm_mon = 3;
24240 tm.tm_mday = 0;
24241 tm.tm_hour = 0;
24242 tm.tm_min = 0;
24243 tm.tm_sec = 0;
24244 tm.tm_isdst = -1;
24245 mktime (&tm);
24246 return tm.tm_mon == 2 && tm.tm_mday == 31;
24249 static int
24250 bigtime_test (int j)
24252 struct tm tm;
24253 time_t now;
24254 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24255 now = mktime (&tm);
24256 if (now != (time_t) -1)
24258 struct tm *lt = localtime (&now);
24259 if (! (lt
24260 && lt->tm_year == tm.tm_year
24261 && lt->tm_mon == tm.tm_mon
24262 && lt->tm_mday == tm.tm_mday
24263 && lt->tm_hour == tm.tm_hour
24264 && lt->tm_min == tm.tm_min
24265 && lt->tm_sec == tm.tm_sec
24266 && lt->tm_yday == tm.tm_yday
24267 && lt->tm_wday == tm.tm_wday
24268 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24269 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24270 return 0;
24272 return 1;
24275 static int
24276 year_2050_test ()
24278 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24279 ignoring leap seconds. */
24280 unsigned long int answer = 2527315200UL;
24282 struct tm tm;
24283 time_t t;
24284 tm.tm_year = 2050 - 1900;
24285 tm.tm_mon = 2 - 1;
24286 tm.tm_mday = 1;
24287 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24288 tm.tm_isdst = -1;
24290 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24291 instead of "TZ=America/Vancouver" in order to detect the bug even
24292 on systems that don't support the Olson extension, or don't have the
24293 full zoneinfo tables installed. */
24294 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24296 t = mktime (&tm);
24298 /* Check that the result is either a failure, or close enough
24299 to the correct answer that we can assume the discrepancy is
24300 due to leap seconds. */
24301 return (t == (time_t) -1
24302 || (0 < t && answer - 120 <= t && t <= answer + 120));
24306 main ()
24308 int result = 0;
24309 time_t t, delta;
24310 int i, j;
24311 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24312 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24314 #if HAVE_DECL_ALARM
24315 /* This test makes some buggy mktime implementations loop.
24316 Give up after 60 seconds; a mktime slower than that
24317 isn't worth using anyway. */
24318 signal (SIGALRM, SIG_DFL);
24319 alarm (60);
24320 #endif
24322 time_t_max = (! time_t_signed
24323 ? (time_t) -1
24324 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24325 * 2 + 1));
24326 time_t_min = (! time_t_signed
24327 ? (time_t) 0
24328 : time_t_signed_magnitude
24329 ? ~ (time_t) 0
24330 : ~ time_t_max);
24332 delta = time_t_max / 997; /* a suitable prime number */
24333 for (i = 0; i < N_STRINGS; i++)
24335 if (tz_strings[i])
24336 putenv (tz_strings[i]);
24338 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24339 if (! mktime_test (t))
24340 result |= 1;
24341 if ((result & 2) == 0
24342 && ! (mktime_test ((time_t) 1)
24343 && mktime_test ((time_t) (60 * 60))
24344 && mktime_test ((time_t) (60 * 60 * 24))))
24345 result |= 2;
24347 for (j = 1; (result & 4) == 0; j <<= 1)
24349 if (! bigtime_test (j))
24350 result |= 4;
24351 if (INT_MAX / 2 < j)
24352 break;
24354 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24355 result |= 8;
24357 if (! irix_6_4_bug ())
24358 result |= 16;
24359 if (! spring_forward_gap ())
24360 result |= 32;
24361 if (! year_2050_test ())
24362 result |= 64;
24363 return result;
24365 _ACEOF
24366 if ac_fn_c_try_run "$LINENO"; then :
24367 gl_cv_func_working_mktime=yes
24368 else
24369 gl_cv_func_working_mktime=no
24371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24372 conftest.$ac_objext conftest.beam conftest.$ac_ext
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24378 $as_echo "$gl_cv_func_working_mktime" >&6; }
24380 if test $gl_cv_func_working_mktime = no; then
24381 REPLACE_MKTIME=1
24382 else
24383 REPLACE_MKTIME=0
24386 if test $REPLACE_MKTIME = 1; then
24395 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24404 GNULIB_MKTIME=1
24417 if test $ac_cv_func_pipe2 != yes; then
24418 HAVE_PIPE2=0
24426 GNULIB_PIPE2=1
24437 if test $ac_cv_func_pselect = yes; then
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24439 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24440 if test "${gl_cv_sig_pselect+set}" = set; then :
24441 $as_echo_n "(cached) " >&6
24442 else
24443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24444 /* end confdefs.h. */
24445 #include <sys/select.h>
24448 main ()
24450 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24451 struct timespec const *restrict,
24452 sigset_t const *restrict) = pselect;
24453 return !p;
24455 return 0;
24457 _ACEOF
24458 if ac_fn_c_try_link "$LINENO"; then :
24459 gl_cv_sig_pselect=yes
24460 else
24461 gl_cv_sig_pselect=no
24463 rm -f core conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24467 $as_echo "$gl_cv_sig_pselect" >&6; }
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24470 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24471 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24472 $as_echo_n "(cached) " >&6
24473 else
24475 if test "$cross_compiling" = yes; then :
24477 case "$host_os" in
24478 # Guess yes on glibc systems.
24479 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
24480 # If we don't know, assume the worst.
24481 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
24482 esac
24484 else
24485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24486 /* end confdefs.h. */
24488 #include <sys/types.h>
24489 #include <sys/time.h>
24490 #if HAVE_SYS_SELECT_H
24491 # include <sys/select.h>
24492 #endif
24493 #include <unistd.h>
24494 #include <errno.h>
24497 main ()
24500 fd_set set;
24501 dup2(0, 16);
24502 FD_ZERO(&set);
24503 FD_SET(16, &set);
24504 close(16);
24505 struct timespec timeout;
24506 timeout.tv_sec = 0;
24507 timeout.tv_nsec = 5000;
24508 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24511 return 0;
24513 _ACEOF
24514 if ac_fn_c_try_run "$LINENO"; then :
24515 gl_cv_func_pselect_detects_ebadf=yes
24516 else
24517 gl_cv_func_pselect_detects_ebadf=no
24519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24520 conftest.$ac_objext conftest.beam conftest.$ac_ext
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24526 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24527 case $gl_cv_func_pselect_detects_ebadf in
24528 *yes) ;;
24529 *) REPLACE_PSELECT=1 ;;
24530 esac
24533 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
24534 REPLACE_PSELECT=1
24537 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
24546 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
24554 GNULIB_PSELECT=1
24564 LIB_PTHREAD_SIGMASK=
24569 if test "$gl_threads_api" = posix; then
24570 if test $ac_cv_func_pthread_sigmask = yes; then
24572 else
24573 if test -n "$LIBMULTITHREAD"; then
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24575 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24576 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24577 $as_echo_n "(cached) " >&6
24578 else
24579 gl_save_LIBS="$LIBS"
24580 LIBS="$LIBS $LIBMULTITHREAD"
24581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24582 /* end confdefs.h. */
24583 #include <pthread.h>
24584 #include <signal.h>
24587 main ()
24589 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24591 return 0;
24594 _ACEOF
24595 if ac_fn_c_try_link "$LINENO"; then :
24596 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
24597 else
24598 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
24600 rm -f core conftest.err conftest.$ac_objext \
24601 conftest$ac_exeext conftest.$ac_ext
24602 LIBS="$gl_save_LIBS"
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24606 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24607 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24608 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
24609 else
24610 HAVE_PTHREAD_SIGMASK=0
24612 else
24613 HAVE_PTHREAD_SIGMASK=0
24616 else
24617 if test $ac_cv_func_pthread_sigmask = yes; then
24618 REPLACE_PTHREAD_SIGMASK=1
24619 else
24620 HAVE_PTHREAD_SIGMASK=0
24627 if test $HAVE_PTHREAD_SIGMASK = 1; then
24630 if test -z "$LIB_PTHREAD_SIGMASK"; then
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24632 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24633 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24634 $as_echo_n "(cached) " >&6
24635 else
24637 if test "$cross_compiling" = yes; then :
24639 case "$host_os" in
24640 freebsd* | hpux* | solaris | solaris2.[2-9]*)
24641 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
24643 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
24644 esac
24646 else
24647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h. */
24650 #include <pthread.h>
24651 #include <signal.h>
24652 #include <stddef.h>
24653 int main ()
24655 sigset_t set;
24656 sigemptyset (&set);
24657 return pthread_sigmask (1729, &set, NULL) != 0;
24659 _ACEOF
24660 if ac_fn_c_try_run "$LINENO"; then :
24661 gl_cv_func_pthread_sigmask_in_libc_works=no
24662 else
24663 gl_cv_func_pthread_sigmask_in_libc_works=yes
24665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24666 conftest.$ac_objext conftest.beam conftest.$ac_ext
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24672 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24673 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24674 *no)
24675 REPLACE_PTHREAD_SIGMASK=1
24677 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24680 esac
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24684 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24685 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24686 $as_echo_n "(cached) " >&6
24687 else
24689 gl_save_LIBS="$LIBS"
24690 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
24691 if test "$cross_compiling" = yes; then :
24692 case "$host_os" in
24693 cygwin*)
24694 gl_cv_func_pthread_sigmask_return_works="guessing no";;
24696 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
24697 esac
24699 else
24700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24701 /* end confdefs.h. */
24703 #include <pthread.h>
24704 #include <signal.h>
24705 #include <stddef.h>
24706 int main ()
24708 sigset_t set;
24709 sigemptyset (&set);
24710 if (pthread_sigmask (1729, &set, NULL) == -1)
24711 return 1;
24712 return 0;
24714 _ACEOF
24715 if ac_fn_c_try_run "$LINENO"; then :
24716 gl_cv_func_pthread_sigmask_return_works=yes
24717 else
24718 gl_cv_func_pthread_sigmask_return_works=no
24720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24721 conftest.$ac_objext conftest.beam conftest.$ac_ext
24724 LIBS="$gl_save_LIBS"
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24728 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24729 case "$gl_cv_func_pthread_sigmask_return_works" in
24730 *no)
24731 REPLACE_PTHREAD_SIGMASK=1
24733 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24736 esac
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24739 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24740 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24742 else
24744 case "$host_os" in
24745 irix*)
24746 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
24748 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
24749 esac
24750 gl_save_LIBS="$LIBS"
24751 LIBS="$LIBS $LIBMULTITHREAD"
24752 if test "$cross_compiling" = yes; then :
24754 else
24755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24756 /* end confdefs.h. */
24758 #include <pthread.h>
24759 #include <signal.h>
24760 #include <stdio.h>
24761 #include <stdlib.h>
24762 #include <unistd.h>
24763 static volatile int sigint_occurred;
24764 static void
24765 sigint_handler (int sig)
24767 sigint_occurred++;
24769 int main ()
24771 sigset_t set;
24772 int pid = getpid ();
24773 char command[80];
24774 signal (SIGINT, sigint_handler);
24775 sigemptyset (&set);
24776 sigaddset (&set, SIGINT);
24777 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24778 return 1;
24779 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24780 if (!(system (command) == 0))
24781 return 2;
24782 sleep (2);
24783 if (!(sigint_occurred == 0))
24784 return 3;
24785 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24786 return 4;
24787 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24788 return 5;
24789 return 0;
24791 _ACEOF
24792 if ac_fn_c_try_run "$LINENO"; then :
24794 else
24795 gl_cv_func_pthread_sigmask_unblock_works=no
24797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24798 conftest.$ac_objext conftest.beam conftest.$ac_ext
24801 LIBS="$gl_save_LIBS"
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24805 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24806 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24807 *no)
24808 REPLACE_PTHREAD_SIGMASK=1
24810 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24813 esac
24816 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
24825 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24828 if test $HAVE_PTHREAD_SIGMASK = 1; then
24830 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24840 GNULIB_PTHREAD_SIGMASK=1
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24849 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24850 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24851 $as_echo_n "(cached) " >&6
24852 else
24853 if test "$cross_compiling" = yes; then :
24854 case "$host_os" in
24855 # Guess yes on glibc systems.
24856 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
24857 # If we don't know, assume the worst.
24858 *) gl_cv_func_svid_putenv="guessing no" ;;
24859 esac
24861 else
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24864 $ac_includes_default
24866 main ()
24869 /* Put it in env. */
24870 if (putenv ("CONFTEST_putenv=val"))
24871 return 1;
24873 /* Try to remove it. */
24874 if (putenv ("CONFTEST_putenv"))
24875 return 2;
24877 /* Make sure it was deleted. */
24878 if (getenv ("CONFTEST_putenv") != 0)
24879 return 3;
24881 return 0;
24884 return 0;
24886 _ACEOF
24887 if ac_fn_c_try_run "$LINENO"; then :
24888 gl_cv_func_svid_putenv=yes
24889 else
24890 gl_cv_func_svid_putenv=no
24892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24893 conftest.$ac_objext conftest.beam conftest.$ac_ext
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
24899 $as_echo "$gl_cv_func_svid_putenv" >&6; }
24900 case "$gl_cv_func_svid_putenv" in
24901 *yes) ;;
24903 REPLACE_PUTENV=1
24905 esac
24907 if test $REPLACE_PUTENV = 1; then
24916 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
24919 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
24920 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
24921 ac_have_decl=1
24922 else
24923 ac_have_decl=0
24926 cat >>confdefs.h <<_ACEOF
24927 #define HAVE_DECL__PUTENV $ac_have_decl
24928 _ACEOF
24937 GNULIB_PUTENV=1
24944 # Check whether --enable-acl was given.
24945 if test "${enable_acl+set}" = set; then :
24946 enableval=$enable_acl;
24947 else
24948 enable_acl=auto
24952 LIB_ACL=
24953 use_acl=0
24954 if test "x$enable_acl" != "xno"; then
24955 for ac_header in sys/acl.h
24956 do :
24957 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
24958 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
24959 cat >>confdefs.h <<_ACEOF
24960 #define HAVE_SYS_ACL_H 1
24961 _ACEOF
24965 done
24967 if test $ac_cv_header_sys_acl_h = yes; then
24968 ac_save_LIBS=$LIBS
24970 if test $use_acl = 0; then
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
24972 $as_echo_n "checking for library containing acl_get_file... " >&6; }
24973 if test "${ac_cv_search_acl_get_file+set}" = set; then :
24974 $as_echo_n "(cached) " >&6
24975 else
24976 ac_func_search_save_LIBS=$LIBS
24977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24978 /* end confdefs.h. */
24980 /* Override any GCC internal prototype to avoid an error.
24981 Use char because int might match the return type of a GCC
24982 builtin and then its argument prototype would still apply. */
24983 #ifdef __cplusplus
24984 extern "C"
24985 #endif
24986 char acl_get_file ();
24988 main ()
24990 return acl_get_file ();
24992 return 0;
24994 _ACEOF
24995 for ac_lib in '' acl pacl; do
24996 if test -z "$ac_lib"; then
24997 ac_res="none required"
24998 else
24999 ac_res=-l$ac_lib
25000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25002 if ac_fn_c_try_link "$LINENO"; then :
25003 ac_cv_search_acl_get_file=$ac_res
25005 rm -f core conftest.err conftest.$ac_objext \
25006 conftest$ac_exeext
25007 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25008 break
25010 done
25011 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25013 else
25014 ac_cv_search_acl_get_file=no
25016 rm conftest.$ac_ext
25017 LIBS=$ac_func_search_save_LIBS
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25020 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25021 ac_res=$ac_cv_search_acl_get_file
25022 if test "$ac_res" != no; then :
25023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25024 if test "$ac_cv_search_acl_get_file" != "none required"; then
25025 LIB_ACL=$ac_cv_search_acl_get_file
25027 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25028 acl_free acl_from_mode acl_from_text \
25029 acl_delete_def_file acl_extended_file \
25030 acl_delete_fd_np acl_delete_file_np \
25031 acl_copy_ext_native acl_create_entry_np \
25032 acl_to_short_text acl_free_text
25033 do :
25034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25035 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25036 eval as_val=\$$as_ac_var
25037 if test "x$as_val" = x""yes; then :
25038 cat >>confdefs.h <<_ACEOF
25039 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25040 _ACEOF
25043 done
25045 # If the acl_get_file bug is detected, don't enable the ACL support.
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25048 $as_echo_n "checking for working acl_get_file... " >&6; }
25049 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25051 else
25052 if test "$cross_compiling" = yes; then :
25053 gl_cv_func_working_acl_get_file=cross-compiling
25054 else
25055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25056 /* end confdefs.h. */
25057 #include <sys/types.h>
25058 #include <sys/acl.h>
25059 #include <errno.h>
25062 main ()
25064 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25065 return 1;
25066 return 0;
25069 return 0;
25071 _ACEOF
25072 if ac_fn_c_try_run "$LINENO"; then :
25073 gl_cv_func_working_acl_get_file=yes
25074 else
25075 gl_cv_func_working_acl_get_file=no
25077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25078 conftest.$ac_objext conftest.beam conftest.$ac_ext
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25083 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25085 if test $gl_cv_func_working_acl_get_file = yes; then :
25086 use_acl=1
25089 if test $use_acl = 1; then
25090 for ac_header in acl/libacl.h
25091 do :
25092 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25093 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
25094 cat >>confdefs.h <<_ACEOF
25095 #define HAVE_ACL_LIBACL_H 1
25096 _ACEOF
25100 done
25110 for ac_func in acl_entries
25111 do :
25112 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25113 if test "x$ac_cv_func_acl_entries" = x""yes; then :
25114 cat >>confdefs.h <<_ACEOF
25115 #define HAVE_ACL_ENTRIES 1
25116 _ACEOF
25118 else
25120 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25123 done
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25127 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25128 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25129 $as_echo_n "(cached) " >&6
25130 else
25131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25132 /* end confdefs.h. */
25133 #include <sys/types.h>
25134 #include <sys/acl.h>
25135 int type = ACL_FIRST_ENTRY;
25137 main ()
25141 return 0;
25143 _ACEOF
25144 if ac_fn_c_try_compile "$LINENO"; then :
25145 gl_cv_acl_ACL_FIRST_ENTRY=yes
25146 else
25147 gl_cv_acl_ACL_FIRST_ENTRY=no
25149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25152 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25153 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25155 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25159 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25160 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25161 $as_echo_n "(cached) " >&6
25162 else
25163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h. */
25165 #include <sys/types.h>
25166 #include <sys/acl.h>
25167 int type = ACL_TYPE_EXTENDED;
25169 main ()
25173 return 0;
25175 _ACEOF
25176 if ac_fn_c_try_compile "$LINENO"; then :
25177 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25178 else
25179 gl_cv_acl_ACL_TYPE_EXTENDED=no
25181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25184 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25185 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25187 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25190 else
25191 LIB_ACL=
25198 if test $use_acl = 0; then
25199 for ac_func in facl
25200 do :
25201 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25202 if test "x$ac_cv_func_facl" = x""yes; then :
25203 cat >>confdefs.h <<_ACEOF
25204 #define HAVE_FACL 1
25205 _ACEOF
25208 done
25210 if test $ac_cv_func_facl = yes; then
25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25212 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25213 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25214 $as_echo_n "(cached) " >&6
25215 else
25216 ac_func_search_save_LIBS=$LIBS
25217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25218 /* end confdefs.h. */
25220 /* Override any GCC internal prototype to avoid an error.
25221 Use char because int might match the return type of a GCC
25222 builtin and then its argument prototype would still apply. */
25223 #ifdef __cplusplus
25224 extern "C"
25225 #endif
25226 char acl_trivial ();
25228 main ()
25230 return acl_trivial ();
25232 return 0;
25234 _ACEOF
25235 for ac_lib in '' sec; do
25236 if test -z "$ac_lib"; then
25237 ac_res="none required"
25238 else
25239 ac_res=-l$ac_lib
25240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25242 if ac_fn_c_try_link "$LINENO"; then :
25243 ac_cv_search_acl_trivial=$ac_res
25245 rm -f core conftest.err conftest.$ac_objext \
25246 conftest$ac_exeext
25247 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25248 break
25250 done
25251 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25253 else
25254 ac_cv_search_acl_trivial=no
25256 rm conftest.$ac_ext
25257 LIBS=$ac_func_search_save_LIBS
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25260 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25261 ac_res=$ac_cv_search_acl_trivial
25262 if test "$ac_res" != no; then :
25263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25264 if test "$ac_cv_search_acl_trivial" != "none required"; then
25265 LIB_ACL=$ac_cv_search_acl_trivial
25270 for ac_func in acl_trivial
25271 do :
25272 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25273 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25274 cat >>confdefs.h <<_ACEOF
25275 #define HAVE_ACL_TRIVIAL 1
25276 _ACEOF
25279 done
25281 use_acl=1
25285 if test $use_acl = 0; then
25286 for ac_func in getacl
25287 do :
25288 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25289 if test "x$ac_cv_func_getacl" = x""yes; then :
25290 cat >>confdefs.h <<_ACEOF
25291 #define HAVE_GETACL 1
25292 _ACEOF
25295 done
25297 if test $ac_cv_func_getacl = yes; then
25298 use_acl=1
25300 for ac_header in aclv.h
25301 do :
25302 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25304 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25305 cat >>confdefs.h <<_ACEOF
25306 #define HAVE_ACLV_H 1
25307 _ACEOF
25311 done
25315 if test $use_acl = 0; then
25316 for ac_func in aclx_get
25317 do :
25318 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25319 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25320 cat >>confdefs.h <<_ACEOF
25321 #define HAVE_ACLX_GET 1
25322 _ACEOF
25325 done
25327 if test $ac_cv_func_aclx_get = yes; then
25328 use_acl=1
25332 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25333 for ac_func in statacl
25334 do :
25335 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25336 if test "x$ac_cv_func_statacl" = x""yes; then :
25337 cat >>confdefs.h <<_ACEOF
25338 #define HAVE_STATACL 1
25339 _ACEOF
25342 done
25344 if test $ac_cv_func_statacl = yes; then
25345 use_acl=1
25349 if test $use_acl = 0; then
25350 for ac_func in aclsort
25351 do :
25352 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25353 if test "x$ac_cv_func_aclsort" = x""yes; then :
25354 cat >>confdefs.h <<_ACEOF
25355 #define HAVE_ACLSORT 1
25356 _ACEOF
25359 done
25361 if test $ac_cv_func_aclsort = yes; then
25362 use_acl=1
25366 LIBS=$ac_save_LIBS
25368 if test "x$enable_acl$use_acl" = "xyes0"; then
25369 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25370 elif test "x$enable_acl$use_acl" = "xauto0"; then
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25372 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25374 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25379 cat >>confdefs.h <<_ACEOF
25380 #define USE_ACL $use_acl
25381 _ACEOF
25383 USE_ACL=$use_acl
25389 if test $ac_cv_func_readlink = no; then
25390 HAVE_READLINK=0
25391 else
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25393 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25394 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25395 $as_echo_n "(cached) " >&6
25396 else
25397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25398 /* end confdefs.h. */
25399 #include <unistd.h>
25400 /* Cause compilation failure if original declaration has wrong type. */
25401 ssize_t readlink (const char *, char *, size_t);
25403 main ()
25407 return 0;
25409 _ACEOF
25410 if ac_fn_c_try_compile "$LINENO"; then :
25411 gl_cv_decl_readlink_works=yes
25412 else
25413 gl_cv_decl_readlink_works=no
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25418 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25420 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25421 if test "${gl_cv_func_readlink_works+set}" = set; then :
25422 $as_echo_n "(cached) " >&6
25423 else
25424 # We have readlink, so assume ln -s works.
25425 ln -s conftest.no-such conftest.link
25426 ln -s conftest.link conftest.lnk2
25427 if test "$cross_compiling" = yes; then :
25428 case "$host_os" in
25429 # Guess yes on glibc systems.
25430 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25431 # If we don't know, assume the worst.
25432 *) gl_cv_func_readlink_works="guessing no" ;;
25433 esac
25435 else
25436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25437 /* end confdefs.h. */
25438 #include <unistd.h>
25441 main ()
25443 char buf[20];
25444 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25446 return 0;
25448 _ACEOF
25449 if ac_fn_c_try_run "$LINENO"; then :
25450 gl_cv_func_readlink_works=yes
25451 else
25452 gl_cv_func_readlink_works=no
25454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25455 conftest.$ac_objext conftest.beam conftest.$ac_ext
25458 rm -f conftest.link conftest.lnk2
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25461 $as_echo "$gl_cv_func_readlink_works" >&6; }
25462 case "$gl_cv_func_readlink_works" in
25463 *yes)
25464 if test "$gl_cv_decl_readlink_works" != yes; then
25465 REPLACE_READLINK=1
25470 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25472 REPLACE_READLINK=1
25474 esac
25477 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25486 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25497 GNULIB_READLINK=1
25507 if test $ac_cv_func_readlinkat = no; then
25508 HAVE_READLINKAT=0
25511 if test $HAVE_READLINKAT = 0; then
25520 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
25528 GNULIB_READLINKAT=1
25535 for ac_func in sig2str
25536 do :
25537 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
25538 if test "x$ac_cv_func_sig2str" = x""yes; then :
25539 cat >>confdefs.h <<_ACEOF
25540 #define HAVE_SIG2STR 1
25541 _ACEOF
25544 done
25547 if test $ac_cv_func_sig2str = no; then
25556 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
25573 if test $gl_cv_have_include_next = yes; then
25574 gl_cv_next_signal_h='<'signal.h'>'
25575 else
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25577 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25578 if test "${gl_cv_next_signal_h+set}" = set; then :
25579 $as_echo_n "(cached) " >&6
25580 else
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h. */
25584 #include <signal.h>
25586 _ACEOF
25587 case "$host_os" in
25588 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25589 *) gl_absname_cpp="$ac_cpp" ;;
25590 esac
25592 case "$host_os" in
25593 mingw*)
25594 gl_dirsep_regex='[/\\]'
25597 gl_dirsep_regex='\/'
25599 esac
25600 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25602 gl_header_literal_regex=`echo 'signal.h' \
25603 | sed -e "$gl_make_literal_regex_sed"`
25604 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25605 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25606 s|^/[^/]|//&|
25610 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25611 sed -n "$gl_absolute_header_sed"`'"'
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25616 $as_echo "$gl_cv_next_signal_h" >&6; }
25618 NEXT_SIGNAL_H=$gl_cv_next_signal_h
25620 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25621 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25622 gl_next_as_first_directive='<'signal.h'>'
25623 else
25624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25625 gl_next_as_first_directive=$gl_cv_next_signal_h
25627 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
25633 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25634 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25635 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25636 #include <signal.h>
25639 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
25641 else
25642 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
25651 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25652 #include <signal.h>
25655 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
25657 else
25658 HAVE_SIGHANDLER_T=0
25664 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25665 /* <sys/types.h> is not needed according to POSIX, but the
25666 <sys/socket.h> in i386-unknown-freebsd4.10 and
25667 powerpc-apple-darwin5.5 required it. */
25668 #include <sys/types.h>
25669 #if HAVE_SYS_SOCKET_H
25670 # include <sys/socket.h>
25671 #elif HAVE_WS2TCPIP_H
25672 # include <ws2tcpip.h>
25673 #endif
25676 if test "x$ac_cv_type_socklen_t" = x""yes; then :
25678 else
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25680 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25681 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25682 $as_echo_n "(cached) " >&6
25683 else
25684 # Systems have either "struct sockaddr *" or
25685 # "void *" as the second argument to getpeername
25686 gl_cv_socklen_t_equiv=
25687 for arg2 in "struct sockaddr" void; do
25688 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
25689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h. */
25691 #include <sys/types.h>
25692 #include <sys/socket.h>
25694 int getpeername (int, $arg2 *, $t *);
25696 main ()
25698 $t len;
25699 getpeername (0, 0, &len);
25701 return 0;
25703 _ACEOF
25704 if ac_fn_c_try_compile "$LINENO"; then :
25705 gl_cv_socklen_t_equiv="$t"
25707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25708 test "$gl_cv_socklen_t_equiv" != "" && break
25709 done
25710 test "$gl_cv_socklen_t_equiv" != "" && break
25711 done
25715 if test "$gl_cv_socklen_t_equiv" = ""; then
25716 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25719 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25721 cat >>confdefs.h <<_ACEOF
25722 #define socklen_t $gl_cv_socklen_t_equiv
25723 _ACEOF
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25729 $as_echo_n "checking for ssize_t... " >&6; }
25730 if test "${gt_cv_ssize_t+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25732 else
25733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25734 /* end confdefs.h. */
25735 #include <sys/types.h>
25737 main ()
25739 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25740 return !x;
25742 return 0;
25744 _ACEOF
25745 if ac_fn_c_try_compile "$LINENO"; then :
25746 gt_cv_ssize_t=yes
25747 else
25748 gt_cv_ssize_t=no
25750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25753 $as_echo "$gt_cv_ssize_t" >&6; }
25754 if test $gt_cv_ssize_t = no; then
25756 $as_echo "#define ssize_t int" >>confdefs.h
25764 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>
25765 #include <sys/stat.h>
25767 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
25769 cat >>confdefs.h <<_ACEOF
25770 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25771 _ACEOF
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25774 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25775 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25776 $as_echo_n "(cached) " >&6
25777 else
25778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25779 /* end confdefs.h. */
25781 #include <sys/types.h>
25782 #include <sys/stat.h>
25783 #if HAVE_SYS_TIME_H
25784 # include <sys/time.h>
25785 #endif
25786 #include <time.h>
25787 struct timespec ts;
25788 struct stat st;
25791 main ()
25794 st.st_atim = ts;
25797 return 0;
25799 _ACEOF
25800 if ac_fn_c_try_compile "$LINENO"; then :
25801 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25802 else
25803 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25808 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25809 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25811 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25814 else
25815 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>
25816 #include <sys/stat.h>
25818 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
25820 cat >>confdefs.h <<_ACEOF
25821 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25822 _ACEOF
25825 else
25826 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25827 #include <sys/stat.h>
25829 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
25831 cat >>confdefs.h <<_ACEOF
25832 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25833 _ACEOF
25836 else
25837 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>
25838 #include <sys/stat.h>
25840 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
25842 cat >>confdefs.h <<_ACEOF
25843 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25844 _ACEOF
25859 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>
25860 #include <sys/stat.h>
25862 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
25864 cat >>confdefs.h <<_ACEOF
25865 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25866 _ACEOF
25869 else
25870 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25871 #include <sys/stat.h>
25873 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
25875 cat >>confdefs.h <<_ACEOF
25876 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25877 _ACEOF
25880 else
25881 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>
25882 #include <sys/stat.h>
25884 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
25886 cat >>confdefs.h <<_ACEOF
25887 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25888 _ACEOF
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25900 $as_echo_n "checking for working stdalign.h... " >&6; }
25901 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
25902 $as_echo_n "(cached) " >&6
25903 else
25904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25905 /* end confdefs.h. */
25906 #include <stdalign.h>
25907 #include <stddef.h>
25909 /* Test that alignof yields a result consistent with offsetof.
25910 This catches GCC bug 52023
25911 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25912 #ifdef __cplusplus
25913 template <class t> struct alignof_helper { char a; t b; };
25914 # define ao(type) offsetof (alignof_helper<type>, b)
25915 #else
25916 # define ao(type) offsetof (struct { char a; type b; }, b)
25917 #endif
25918 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25919 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25920 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25922 /* Test _Alignas only on platforms where gnulib can help. */
25923 #if \
25924 ((defined __cplusplus && 201103 <= __cplusplus) \
25925 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
25926 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25927 struct alignas_test { char c; char alignas (8) alignas_8; };
25928 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
25929 ? 1 : -1];
25930 #endif
25933 main ()
25937 return 0;
25939 _ACEOF
25940 if ac_fn_c_try_compile "$LINENO"; then :
25941 gl_cv_header_working_stdalign_h=yes
25942 else
25943 gl_cv_header_working_stdalign_h=no
25945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25948 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25950 if test $gl_cv_header_working_stdalign_h = yes; then
25951 STDALIGN_H=''
25952 else
25953 STDALIGN_H='stdalign.h'
25957 if test -n "$STDALIGN_H"; then
25958 GL_GENERATE_STDALIGN_H_TRUE=
25959 GL_GENERATE_STDALIGN_H_FALSE='#'
25960 else
25961 GL_GENERATE_STDALIGN_H_TRUE='#'
25962 GL_GENERATE_STDALIGN_H_FALSE=
25967 STDARG_H=''
25968 NEXT_STDARG_H='<stdarg.h>'
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25970 $as_echo_n "checking for va_copy... " >&6; }
25971 if test "${gl_cv_func_va_copy+set}" = set; then :
25972 $as_echo_n "(cached) " >&6
25973 else
25975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25976 /* end confdefs.h. */
25977 #include <stdarg.h>
25979 main ()
25982 #ifndef va_copy
25983 void (*func) (va_list, va_list) = va_copy;
25984 #endif
25987 return 0;
25989 _ACEOF
25990 if ac_fn_c_try_compile "$LINENO"; then :
25991 gl_cv_func_va_copy=yes
25992 else
25993 gl_cv_func_va_copy=no
25995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25999 $as_echo "$gl_cv_func_va_copy" >&6; }
26000 if test $gl_cv_func_va_copy = no; then
26001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26002 /* end confdefs.h. */
26003 #if defined _AIX && !defined __GNUC__
26004 AIX vaccine
26005 #endif
26007 _ACEOF
26008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26009 $EGREP "vaccine" >/dev/null 2>&1; then :
26010 gl_aixcc=yes
26011 else
26012 gl_aixcc=no
26014 rm -f conftest*
26016 if test $gl_aixcc = yes; then
26017 STDARG_H=stdarg.h
26026 if test $gl_cv_have_include_next = yes; then
26027 gl_cv_next_stdarg_h='<'stdarg.h'>'
26028 else
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26030 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26031 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26032 $as_echo_n "(cached) " >&6
26033 else
26035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26036 /* end confdefs.h. */
26037 #include <stdarg.h>
26039 _ACEOF
26040 case "$host_os" in
26041 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26042 *) gl_absname_cpp="$ac_cpp" ;;
26043 esac
26045 case "$host_os" in
26046 mingw*)
26047 gl_dirsep_regex='[/\\]'
26050 gl_dirsep_regex='\/'
26052 esac
26053 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26055 gl_header_literal_regex=`echo 'stdarg.h' \
26056 | sed -e "$gl_make_literal_regex_sed"`
26057 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26058 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26059 s|^/[^/]|//&|
26063 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26064 sed -n "$gl_absolute_header_sed"`'"'
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26069 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26071 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26073 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26074 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26075 gl_next_as_first_directive='<'stdarg.h'>'
26076 else
26077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26078 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26080 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26085 if test "$gl_cv_next_stdarg_h" = '""'; then
26086 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26087 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26089 else
26091 saved_as_echo_n="$as_echo_n"
26092 as_echo_n=':'
26093 if test "${gl_cv_func___va_copy+set}" = set; then :
26094 $as_echo_n "(cached) " >&6
26095 else
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h. */
26099 #include <stdarg.h>
26101 main ()
26104 #ifndef __va_copy
26105 error, bail out
26106 #endif
26109 return 0;
26111 _ACEOF
26112 if ac_fn_c_try_compile "$LINENO"; then :
26113 gl_cv_func___va_copy=yes
26114 else
26115 gl_cv_func___va_copy=no
26117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26120 as_echo_n="$saved_as_echo_n"
26122 if test $gl_cv_func___va_copy = yes; then
26124 $as_echo "#define va_copy __va_copy" >>confdefs.h
26126 else
26129 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26135 if test -n "$STDARG_H"; then
26136 GL_GENERATE_STDARG_H_TRUE=
26137 GL_GENERATE_STDARG_H_FALSE='#'
26138 else
26139 GL_GENERATE_STDARG_H_TRUE='#'
26140 GL_GENERATE_STDARG_H_FALSE=
26148 # Define two additional variables used in the Makefile substitution.
26150 if test "$ac_cv_header_stdbool_h" = yes; then
26151 STDBOOL_H=''
26152 else
26153 STDBOOL_H='stdbool.h'
26156 if test -n "$STDBOOL_H"; then
26157 GL_GENERATE_STDBOOL_H_TRUE=
26158 GL_GENERATE_STDBOOL_H_FALSE='#'
26159 else
26160 GL_GENERATE_STDBOOL_H_TRUE='#'
26161 GL_GENERATE_STDBOOL_H_FALSE=
26165 if test "$ac_cv_type__Bool" = yes; then
26166 HAVE__BOOL=1
26167 else
26168 HAVE__BOOL=0
26175 STDDEF_H=
26176 if test $gt_cv_c_wchar_t = no; then
26177 HAVE_WCHAR_T=0
26178 STDDEF_H=stddef.h
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26181 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26182 if test "${gl_cv_decl_null_works+set}" = set; then :
26183 $as_echo_n "(cached) " >&6
26184 else
26185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26186 /* end confdefs.h. */
26187 #include <stddef.h>
26188 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26191 main ()
26195 return 0;
26197 _ACEOF
26198 if ac_fn_c_try_compile "$LINENO"; then :
26199 gl_cv_decl_null_works=yes
26200 else
26201 gl_cv_decl_null_works=no
26203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26206 $as_echo "$gl_cv_decl_null_works" >&6; }
26207 if test $gl_cv_decl_null_works = no; then
26208 REPLACE_NULL=1
26209 STDDEF_H=stddef.h
26212 if test -n "$STDDEF_H"; then
26213 GL_GENERATE_STDDEF_H_TRUE=
26214 GL_GENERATE_STDDEF_H_FALSE='#'
26215 else
26216 GL_GENERATE_STDDEF_H_TRUE='#'
26217 GL_GENERATE_STDDEF_H_FALSE=
26220 if test -n "$STDDEF_H"; then
26229 if test $gl_cv_have_include_next = yes; then
26230 gl_cv_next_stddef_h='<'stddef.h'>'
26231 else
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26233 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26234 if test "${gl_cv_next_stddef_h+set}" = set; then :
26235 $as_echo_n "(cached) " >&6
26236 else
26238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26239 /* end confdefs.h. */
26240 #include <stddef.h>
26242 _ACEOF
26243 case "$host_os" in
26244 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26245 *) gl_absname_cpp="$ac_cpp" ;;
26246 esac
26248 case "$host_os" in
26249 mingw*)
26250 gl_dirsep_regex='[/\\]'
26253 gl_dirsep_regex='\/'
26255 esac
26256 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26258 gl_header_literal_regex=`echo 'stddef.h' \
26259 | sed -e "$gl_make_literal_regex_sed"`
26260 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26261 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26262 s|^/[^/]|//&|
26266 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26267 sed -n "$gl_absolute_header_sed"`'"'
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26272 $as_echo "$gl_cv_next_stddef_h" >&6; }
26274 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26276 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26278 gl_next_as_first_directive='<'stddef.h'>'
26279 else
26280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26281 gl_next_as_first_directive=$gl_cv_next_stddef_h
26283 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26301 if test $gl_cv_have_include_next = yes; then
26302 gl_cv_next_stdio_h='<'stdio.h'>'
26303 else
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26305 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26306 if test "${gl_cv_next_stdio_h+set}" = set; then :
26307 $as_echo_n "(cached) " >&6
26308 else
26310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26311 /* end confdefs.h. */
26312 #include <stdio.h>
26314 _ACEOF
26315 case "$host_os" in
26316 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26317 *) gl_absname_cpp="$ac_cpp" ;;
26318 esac
26320 case "$host_os" in
26321 mingw*)
26322 gl_dirsep_regex='[/\\]'
26325 gl_dirsep_regex='\/'
26327 esac
26328 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26330 gl_header_literal_regex=`echo 'stdio.h' \
26331 | sed -e "$gl_make_literal_regex_sed"`
26332 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26333 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26334 s|^/[^/]|//&|
26338 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26339 sed -n "$gl_absolute_header_sed"`'"'
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26344 $as_echo "$gl_cv_next_stdio_h" >&6; }
26346 NEXT_STDIO_H=$gl_cv_next_stdio_h
26348 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26350 gl_next_as_first_directive='<'stdio.h'>'
26351 else
26352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26353 gl_next_as_first_directive=$gl_cv_next_stdio_h
26355 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26361 GNULIB_FSCANF=1
26364 cat >>confdefs.h <<_ACEOF
26365 #define GNULIB_FSCANF 1
26366 _ACEOF
26369 GNULIB_SCANF=1
26372 cat >>confdefs.h <<_ACEOF
26373 #define GNULIB_SCANF 1
26374 _ACEOF
26377 GNULIB_FGETC=1
26378 GNULIB_GETC=1
26379 GNULIB_GETCHAR=1
26380 GNULIB_FGETS=1
26381 GNULIB_FREAD=1
26384 GNULIB_FPRINTF=1
26385 GNULIB_PRINTF=1
26386 GNULIB_VFPRINTF=1
26387 GNULIB_VPRINTF=1
26388 GNULIB_FPUTC=1
26389 GNULIB_PUTC=1
26390 GNULIB_PUTCHAR=1
26391 GNULIB_FPUTS=1
26392 GNULIB_PUTS=1
26393 GNULIB_FWRITE=1
26409 if test $gl_cv_have_include_next = yes; then
26410 gl_cv_next_stdlib_h='<'stdlib.h'>'
26411 else
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26413 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26414 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26415 $as_echo_n "(cached) " >&6
26416 else
26418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26419 /* end confdefs.h. */
26420 #include <stdlib.h>
26422 _ACEOF
26423 case "$host_os" in
26424 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26425 *) gl_absname_cpp="$ac_cpp" ;;
26426 esac
26428 case "$host_os" in
26429 mingw*)
26430 gl_dirsep_regex='[/\\]'
26433 gl_dirsep_regex='\/'
26435 esac
26436 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26438 gl_header_literal_regex=`echo 'stdlib.h' \
26439 | sed -e "$gl_make_literal_regex_sed"`
26440 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26441 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26442 s|^/[^/]|//&|
26446 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26447 sed -n "$gl_absolute_header_sed"`'"'
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26452 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26454 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26456 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26457 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26458 gl_next_as_first_directive='<'stdlib.h'>'
26459 else
26460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26461 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26463 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26473 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26481 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26493 if test "$ac_cv_have_decl_strtoimax" != yes; then
26494 HAVE_DECL_STRTOIMAX=0
26497 if test $ac_cv_func_strtoimax = yes; then
26498 HAVE_STRTOIMAX=1
26499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26500 $as_echo_n "checking whether strtoimax works... " >&6; }
26501 if test "${gl_cv_func_strtoimax+set}" = set; then :
26502 $as_echo_n "(cached) " >&6
26503 else
26504 if test "$cross_compiling" = yes; then :
26505 case "$host_os" in
26506 # Guess no on AIX 5.
26507 aix5*) gl_cv_func_strtoimax="guessing no" ;;
26508 # Guess yes otherwise.
26509 *) gl_cv_func_strtoimax="guessing yes" ;;
26510 esac
26512 else
26513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26514 /* end confdefs.h. */
26516 #include <errno.h>
26517 #include <string.h>
26518 #include <inttypes.h>
26519 int main ()
26521 if (sizeof (intmax_t) > sizeof (int))
26523 const char *s = "4294967295";
26524 char *p;
26525 intmax_t res;
26526 errno = 0;
26527 res = strtoimax (s, &p, 10);
26528 if (p != s + strlen (s))
26529 return 1;
26530 if (errno != 0)
26531 return 2;
26532 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26533 return 3;
26535 else
26537 const char *s = "2147483647";
26538 char *p;
26539 intmax_t res;
26540 errno = 0;
26541 res = strtoimax (s, &p, 10);
26542 if (p != s + strlen (s))
26543 return 1;
26544 if (errno != 0)
26545 return 2;
26546 if (res != 2147483647)
26547 return 3;
26549 return 0;
26552 _ACEOF
26553 if ac_fn_c_try_run "$LINENO"; then :
26554 gl_cv_func_strtoimax=yes
26555 else
26556 gl_cv_func_strtoimax=no
26558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26559 conftest.$ac_objext conftest.beam conftest.$ac_ext
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26565 $as_echo "$gl_cv_func_strtoimax" >&6; }
26566 case "$gl_cv_func_strtoimax" in
26567 *no) REPLACE_STRTOIMAX=1 ;;
26568 esac
26569 else
26570 HAVE_STRTOIMAX=0
26573 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26582 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
26585 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26586 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
26587 ac_have_decl=1
26588 else
26589 ac_have_decl=0
26592 cat >>confdefs.h <<_ACEOF
26593 #define HAVE_DECL_STRTOLL $ac_have_decl
26594 _ACEOF
26604 GNULIB_STRTOIMAX=1
26614 if test "$ac_cv_have_decl_strtoumax" != yes; then
26615 HAVE_DECL_STRTOUMAX=0
26618 if test $ac_cv_func_strtoumax = no; then
26627 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
26630 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26631 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
26632 ac_have_decl=1
26633 else
26634 ac_have_decl=0
26637 cat >>confdefs.h <<_ACEOF
26638 #define HAVE_DECL_STRTOULL $ac_have_decl
26639 _ACEOF
26649 GNULIB_STRTOUMAX=1
26657 if test $ac_cv_func_symlink = no; then
26658 HAVE_SYMLINK=0
26659 else
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26661 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26662 if test "${gl_cv_func_symlink_works+set}" = set; then :
26663 $as_echo_n "(cached) " >&6
26664 else
26665 if test "$cross_compiling" = yes; then :
26666 case "$host_os" in
26667 # Guess yes on glibc systems.
26668 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
26669 # If we don't know, assume the worst.
26670 *) gl_cv_func_symlink_works="guessing no" ;;
26671 esac
26673 else
26674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26675 /* end confdefs.h. */
26676 #include <unistd.h>
26679 main ()
26681 int result = 0;
26682 if (!symlink ("a", "conftest.link/"))
26683 result |= 1;
26684 if (symlink ("conftest.f", "conftest.lnk2"))
26685 result |= 2;
26686 else if (!symlink ("a", "conftest.lnk2/"))
26687 result |= 4;
26688 return result;
26691 return 0;
26693 _ACEOF
26694 if ac_fn_c_try_run "$LINENO"; then :
26695 gl_cv_func_symlink_works=yes
26696 else
26697 gl_cv_func_symlink_works=no
26699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26700 conftest.$ac_objext conftest.beam conftest.$ac_ext
26703 rm -f conftest.f conftest.link conftest.lnk2
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26706 $as_echo "$gl_cv_func_symlink_works" >&6; }
26707 case "$gl_cv_func_symlink_works" in
26708 *yes) ;;
26710 REPLACE_SYMLINK=1
26712 esac
26715 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
26724 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
26732 GNULIB_SYMLINK=1
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26742 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26743 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26744 $as_echo_n "(cached) " >&6
26745 else
26747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748 /* end confdefs.h. */
26749 #include <sys/select.h>
26751 main ()
26753 struct timeval b;
26755 return 0;
26757 _ACEOF
26758 if ac_fn_c_try_compile "$LINENO"; then :
26759 gl_cv_header_sys_select_h_selfcontained=yes
26760 else
26761 gl_cv_header_sys_select_h_selfcontained=no
26763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26764 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26766 /* end confdefs.h. */
26767 #include <sys/select.h>
26769 main ()
26771 int memset; int bzero;
26773 return 0;
26776 _ACEOF
26777 if ac_fn_c_try_compile "$LINENO"; then :
26778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26779 /* end confdefs.h. */
26780 #include <sys/select.h>
26782 main ()
26785 #undef memset
26786 #define memset nonexistent_memset
26787 extern
26788 #ifdef __cplusplus
26790 #endif
26791 void *memset (void *, int, unsigned long);
26792 #undef bzero
26793 #define bzero nonexistent_bzero
26794 extern
26795 #ifdef __cplusplus
26797 #endif
26798 void bzero (void *, unsigned long);
26799 fd_set fds;
26800 FD_ZERO (&fds);
26803 return 0;
26806 _ACEOF
26807 if ac_fn_c_try_link "$LINENO"; then :
26809 else
26810 gl_cv_header_sys_select_h_selfcontained=no
26812 rm -f core conftest.err conftest.$ac_objext \
26813 conftest$ac_exeext conftest.$ac_ext
26816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26821 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26831 if test $gl_cv_have_include_next = yes; then
26832 gl_cv_next_sys_select_h='<'sys/select.h'>'
26833 else
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26835 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26836 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26837 $as_echo_n "(cached) " >&6
26838 else
26840 if test $ac_cv_header_sys_select_h = yes; then
26843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26844 /* end confdefs.h. */
26845 #include <sys/select.h>
26847 _ACEOF
26848 case "$host_os" in
26849 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26850 *) gl_absname_cpp="$ac_cpp" ;;
26851 esac
26853 case "$host_os" in
26854 mingw*)
26855 gl_dirsep_regex='[/\\]'
26858 gl_dirsep_regex='\/'
26860 esac
26861 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26863 gl_header_literal_regex=`echo 'sys/select.h' \
26864 | sed -e "$gl_make_literal_regex_sed"`
26865 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26866 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26867 s|^/[^/]|//&|
26871 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26872 sed -n "$gl_absolute_header_sed"`'"'
26873 else
26874 gl_cv_next_sys_select_h='<'sys/select.h'>'
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26880 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26882 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
26884 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26885 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26886 gl_next_as_first_directive='<'sys/select.h'>'
26887 else
26888 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26889 gl_next_as_first_directive=$gl_cv_next_sys_select_h
26891 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
26896 if test $ac_cv_header_sys_select_h = yes; then
26897 HAVE_SYS_SELECT_H=1
26898 else
26899 HAVE_SYS_SELECT_H=0
26906 if test $ac_cv_header_sys_socket_h != yes; then
26907 for ac_header in winsock2.h
26908 do :
26909 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26910 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
26911 cat >>confdefs.h <<_ACEOF
26912 #define HAVE_WINSOCK2_H 1
26913 _ACEOF
26917 done
26920 if test "$ac_cv_header_winsock2_h" = yes; then
26921 HAVE_WINSOCK2_H=1
26922 UNISTD_H_HAVE_WINSOCK2_H=1
26923 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26924 else
26925 HAVE_WINSOCK2_H=0
26947 if test $gl_cv_have_include_next = yes; then
26948 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26949 else
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26951 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26952 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
26953 $as_echo_n "(cached) " >&6
26954 else
26956 if test $ac_cv_header_sys_stat_h = yes; then
26959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26960 /* end confdefs.h. */
26961 #include <sys/stat.h>
26963 _ACEOF
26964 case "$host_os" in
26965 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26966 *) gl_absname_cpp="$ac_cpp" ;;
26967 esac
26969 case "$host_os" in
26970 mingw*)
26971 gl_dirsep_regex='[/\\]'
26974 gl_dirsep_regex='\/'
26976 esac
26977 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26979 gl_header_literal_regex=`echo 'sys/stat.h' \
26980 | sed -e "$gl_make_literal_regex_sed"`
26981 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26982 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26983 s|^/[^/]|//&|
26987 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26988 sed -n "$gl_absolute_header_sed"`'"'
26989 else
26990 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26996 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26998 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27000 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27001 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27002 gl_next_as_first_directive='<'sys/stat.h'>'
27003 else
27004 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27005 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27007 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27019 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27021 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27025 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27026 #include <sys/stat.h>
27028 if test "x$ac_cv_type_nlink_t" = x""yes; then :
27030 else
27032 $as_echo "#define nlink_t int" >>confdefs.h
27053 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27055 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
27056 ac_have_decl=1
27057 else
27058 ac_have_decl=0
27061 cat >>confdefs.h <<_ACEOF
27062 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27063 _ACEOF
27065 if test $ac_cv_have_decl_localtime_r = no; then
27066 HAVE_DECL_LOCALTIME_R=0
27070 if test $ac_cv_func_localtime_r = yes; then
27071 HAVE_LOCALTIME_R=1
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27073 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27074 if test "${gl_cv_time_r_posix+set}" = set; then :
27075 $as_echo_n "(cached) " >&6
27076 else
27077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h. */
27079 #include <time.h>
27081 main ()
27083 /* We don't need to append 'restrict's to the argument types,
27084 even though the POSIX signature has the 'restrict's,
27085 since C99 says they can't affect type compatibility. */
27086 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27087 if (ptr) return 0;
27088 /* Check the return type is a pointer.
27089 On HP-UX 10 it is 'int'. */
27090 *localtime_r (0, 0);
27092 return 0;
27095 _ACEOF
27096 if ac_fn_c_try_compile "$LINENO"; then :
27097 gl_cv_time_r_posix=yes
27098 else
27099 gl_cv_time_r_posix=no
27101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27105 $as_echo "$gl_cv_time_r_posix" >&6; }
27106 if test $gl_cv_time_r_posix = yes; then
27107 REPLACE_LOCALTIME_R=0
27108 else
27109 REPLACE_LOCALTIME_R=1
27111 else
27112 HAVE_LOCALTIME_R=0
27115 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
27124 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
27135 GNULIB_TIME_R=1
27146 LIB_TIMER_TIME=
27148 gl_saved_libs=$LIBS
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27150 $as_echo_n "checking for library containing timer_settime... " >&6; }
27151 if test "${ac_cv_search_timer_settime+set}" = set; then :
27152 $as_echo_n "(cached) " >&6
27153 else
27154 ac_func_search_save_LIBS=$LIBS
27155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27156 /* end confdefs.h. */
27158 /* Override any GCC internal prototype to avoid an error.
27159 Use char because int might match the return type of a GCC
27160 builtin and then its argument prototype would still apply. */
27161 #ifdef __cplusplus
27162 extern "C"
27163 #endif
27164 char timer_settime ();
27166 main ()
27168 return timer_settime ();
27170 return 0;
27172 _ACEOF
27173 for ac_lib in '' rt posix4; do
27174 if test -z "$ac_lib"; then
27175 ac_res="none required"
27176 else
27177 ac_res=-l$ac_lib
27178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27180 if ac_fn_c_try_link "$LINENO"; then :
27181 ac_cv_search_timer_settime=$ac_res
27183 rm -f core conftest.err conftest.$ac_objext \
27184 conftest$ac_exeext
27185 if test "${ac_cv_search_timer_settime+set}" = set; then :
27186 break
27188 done
27189 if test "${ac_cv_search_timer_settime+set}" = set; then :
27191 else
27192 ac_cv_search_timer_settime=no
27194 rm conftest.$ac_ext
27195 LIBS=$ac_func_search_save_LIBS
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27198 $as_echo "$ac_cv_search_timer_settime" >&6; }
27199 ac_res=$ac_cv_search_timer_settime
27200 if test "$ac_res" != no; then :
27201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27202 test "$ac_cv_search_timer_settime" = "none required" ||
27203 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h. */
27209 #include <features.h>
27210 #ifdef __GNU_LIBRARY__
27211 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27212 && !defined __UCLIBC__
27213 Thread emulation available
27214 #endif
27215 #endif
27217 _ACEOF
27218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27219 $EGREP "Thread" >/dev/null 2>&1; then :
27220 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27222 rm -f conftest*
27224 for ac_func in timer_settime
27225 do :
27226 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27227 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27228 cat >>confdefs.h <<_ACEOF
27229 #define HAVE_TIMER_SETTIME 1
27230 _ACEOF
27233 done
27235 LIBS=$gl_saved_libs
27250 if test $gl_cv_have_include_next = yes; then
27251 gl_cv_next_unistd_h='<'unistd.h'>'
27252 else
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27254 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27255 if test "${gl_cv_next_unistd_h+set}" = set; then :
27256 $as_echo_n "(cached) " >&6
27257 else
27259 if test $ac_cv_header_unistd_h = yes; then
27262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27263 /* end confdefs.h. */
27264 #include <unistd.h>
27266 _ACEOF
27267 case "$host_os" in
27268 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27269 *) gl_absname_cpp="$ac_cpp" ;;
27270 esac
27272 case "$host_os" in
27273 mingw*)
27274 gl_dirsep_regex='[/\\]'
27277 gl_dirsep_regex='\/'
27279 esac
27280 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27282 gl_header_literal_regex=`echo 'unistd.h' \
27283 | sed -e "$gl_make_literal_regex_sed"`
27284 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27285 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27286 s|^/[^/]|//&|
27290 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27291 sed -n "$gl_absolute_header_sed"`'"'
27292 else
27293 gl_cv_next_unistd_h='<'unistd.h'>'
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27299 $as_echo "$gl_cv_next_unistd_h" >&6; }
27301 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27303 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27305 gl_next_as_first_directive='<'unistd.h'>'
27306 else
27307 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27308 gl_next_as_first_directive=$gl_cv_next_unistd_h
27310 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27315 if test $ac_cv_header_unistd_h = yes; then
27316 HAVE_UNISTD_H=1
27317 else
27318 HAVE_UNISTD_H=0
27331 if test $ac_cv_have_decl_unsetenv = no; then
27332 HAVE_DECL_UNSETENV=0
27334 for ac_func in unsetenv
27335 do :
27336 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27337 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27338 cat >>confdefs.h <<_ACEOF
27339 #define HAVE_UNSETENV 1
27340 _ACEOF
27343 done
27345 if test $ac_cv_func_unsetenv = no; then
27346 HAVE_UNSETENV=0
27347 else
27348 HAVE_UNSETENV=1
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27350 $as_echo_n "checking for unsetenv() return type... " >&6; }
27351 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27352 $as_echo_n "(cached) " >&6
27353 else
27354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27355 /* end confdefs.h. */
27357 #undef _BSD
27358 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27359 #include <stdlib.h>
27360 extern
27361 #ifdef __cplusplus
27363 #endif
27364 int unsetenv (const char *name);
27367 main ()
27371 return 0;
27373 _ACEOF
27374 if ac_fn_c_try_compile "$LINENO"; then :
27375 gt_cv_func_unsetenv_ret='int'
27376 else
27377 gt_cv_func_unsetenv_ret='void'
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27382 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27383 if test $gt_cv_func_unsetenv_ret = 'void'; then
27385 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27387 REPLACE_UNSETENV=1
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27391 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27392 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27393 $as_echo_n "(cached) " >&6
27394 else
27395 if test "$cross_compiling" = yes; then :
27396 case "$host_os" in
27397 # Guess yes on glibc systems.
27398 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27399 # If we don't know, assume the worst.
27400 *) gl_cv_func_unsetenv_works="guessing no" ;;
27401 esac
27403 else
27404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27405 /* end confdefs.h. */
27407 #include <stdlib.h>
27408 #include <errno.h>
27409 extern char **environ;
27412 main ()
27415 char entry1[] = "a=1";
27416 char entry2[] = "b=2";
27417 char *env[] = { entry1, entry2, NULL };
27418 if (putenv ((char *) "a=1")) return 1;
27419 if (putenv (entry2)) return 2;
27420 entry2[0] = 'a';
27421 unsetenv ("a");
27422 if (getenv ("a")) return 3;
27423 if (!unsetenv ("") || errno != EINVAL) return 4;
27424 entry2[0] = 'b';
27425 environ = env;
27426 if (!getenv ("a")) return 5;
27427 entry2[0] = 'a';
27428 unsetenv ("a");
27429 if (getenv ("a")) return 6;
27432 return 0;
27434 _ACEOF
27435 if ac_fn_c_try_run "$LINENO"; then :
27436 gl_cv_func_unsetenv_works=yes
27437 else
27438 gl_cv_func_unsetenv_works=no
27440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27441 conftest.$ac_objext conftest.beam conftest.$ac_ext
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27446 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27447 case "$gl_cv_func_unsetenv_works" in
27448 *yes) ;;
27450 REPLACE_UNSETENV=1
27452 esac
27455 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27464 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27476 GNULIB_UNSETENV=1
27488 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27490 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27491 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27492 $as_echo_n "(cached) " >&6
27493 else
27494 touch conftest.file
27495 if test "$cross_compiling" = yes; then :
27496 case "$host_os" in
27497 # Guess yes on glibc systems.
27498 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
27499 # If we don't know, assume the worst.
27500 *) gl_cv_func_futimesat_works="guessing no" ;;
27501 esac
27503 else
27504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27505 /* end confdefs.h. */
27507 #include <stddef.h>
27508 #include <sys/times.h>
27509 #include <fcntl.h>
27512 main ()
27514 int fd = open ("conftest.file", O_RDWR);
27515 if (fd < 0) return 1;
27516 if (futimesat (fd, NULL, NULL)) return 2;
27519 return 0;
27521 _ACEOF
27522 if ac_fn_c_try_run "$LINENO"; then :
27523 gl_cv_func_futimesat_works=yes
27524 else
27525 gl_cv_func_futimesat_works=no
27527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27528 conftest.$ac_objext conftest.beam conftest.$ac_ext
27531 rm -f conftest.file
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27534 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27535 case "$gl_cv_func_futimesat_works" in
27536 *yes) ;;
27539 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27542 esac
27545 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
27546 gl_gnulib_enabled_dosname=false
27547 gl_gnulib_enabled_euidaccess=false
27548 gl_gnulib_enabled_getdtablesize=false
27549 gl_gnulib_enabled_getgroups=false
27550 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
27551 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
27552 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
27553 gl_gnulib_enabled_pathmax=false
27554 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
27555 gl_gnulib_enabled_secure_getenv=false
27556 gl_gnulib_enabled_stat=false
27557 gl_gnulib_enabled_strtoll=false
27558 gl_gnulib_enabled_strtoull=false
27559 gl_gnulib_enabled_tempname=false
27560 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
27561 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
27563 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27572 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27574 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
27577 func_gl_gnulib_m4code_dosname ()
27579 if ! $gl_gnulib_enabled_dosname; then
27580 gl_gnulib_enabled_dosname=true
27583 func_gl_gnulib_m4code_euidaccess ()
27585 if ! $gl_gnulib_enabled_euidaccess; then
27591 for ac_func in euidaccess
27592 do :
27593 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27594 if test "x$ac_cv_func_euidaccess" = x""yes; then :
27595 cat >>confdefs.h <<_ACEOF
27596 #define HAVE_EUIDACCESS 1
27597 _ACEOF
27600 done
27602 if test $ac_cv_func_euidaccess = no; then
27603 HAVE_EUIDACCESS=0
27606 if test $HAVE_EUIDACCESS = 0; then
27615 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
27619 for ac_header in libgen.h
27620 do :
27621 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27622 if test "x$ac_cv_header_libgen_h" = x""yes; then :
27623 cat >>confdefs.h <<_ACEOF
27624 #define HAVE_LIBGEN_H 1
27625 _ACEOF
27629 done
27632 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
27633 if test "x$ac_cv_func_getgroups" = x""yes; then :
27638 # If we don't yet have getgroups, see if it's in -lbsd.
27639 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27640 ac_save_LIBS=$LIBS
27641 if test $ac_cv_func_getgroups = no; then
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27643 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27644 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27645 $as_echo_n "(cached) " >&6
27646 else
27647 ac_check_lib_save_LIBS=$LIBS
27648 LIBS="-lbsd $LIBS"
27649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27650 /* end confdefs.h. */
27652 /* Override any GCC internal prototype to avoid an error.
27653 Use char because int might match the return type of a GCC
27654 builtin and then its argument prototype would still apply. */
27655 #ifdef __cplusplus
27656 extern "C"
27657 #endif
27658 char getgroups ();
27660 main ()
27662 return getgroups ();
27664 return 0;
27666 _ACEOF
27667 if ac_fn_c_try_link "$LINENO"; then :
27668 ac_cv_lib_bsd_getgroups=yes
27669 else
27670 ac_cv_lib_bsd_getgroups=no
27672 rm -f core conftest.err conftest.$ac_objext \
27673 conftest$ac_exeext conftest.$ac_ext
27674 LIBS=$ac_check_lib_save_LIBS
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27677 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27678 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
27679 GETGROUPS_LIB=-lbsd
27684 # Run the program to test the functionality of the system-supplied
27685 # getgroups function only if there is such a function.
27686 if test $ac_cv_func_getgroups = yes; then
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27688 $as_echo_n "checking for working getgroups... " >&6; }
27689 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27690 $as_echo_n "(cached) " >&6
27691 else
27692 if test "$cross_compiling" = yes; then :
27693 case "$host_os" in # ((
27694 # Guess yes on glibc systems.
27695 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
27696 # If we don't know, assume the worst.
27697 *) ac_cv_func_getgroups_works="guessing no" ;;
27698 esac
27700 else
27701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27702 /* end confdefs.h. */
27703 $ac_includes_default
27705 main ()
27707 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27708 return getgroups (0, 0) == -1;
27710 return 0;
27713 _ACEOF
27714 if ac_fn_c_try_run "$LINENO"; then :
27715 ac_cv_func_getgroups_works=yes
27716 else
27717 ac_cv_func_getgroups_works=no
27719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27720 conftest.$ac_objext conftest.beam conftest.$ac_ext
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27726 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27727 else
27728 ac_cv_func_getgroups_works=no
27730 case "$ac_cv_func_getgroups_works" in
27731 *yes)
27733 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27736 esac
27737 LIBS=$ac_save_LIBS
27740 # Solaris 9 and 10 need -lgen to get the eaccess function.
27741 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27742 # programs in the package would end up linked with that potentially-shared
27743 # library, inducing unnecessary run-time overhead.
27744 LIB_EACCESS=
27746 gl_saved_libs=$LIBS
27747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27748 $as_echo_n "checking for library containing eaccess... " >&6; }
27749 if test "${ac_cv_search_eaccess+set}" = set; then :
27750 $as_echo_n "(cached) " >&6
27751 else
27752 ac_func_search_save_LIBS=$LIBS
27753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27754 /* end confdefs.h. */
27756 /* Override any GCC internal prototype to avoid an error.
27757 Use char because int might match the return type of a GCC
27758 builtin and then its argument prototype would still apply. */
27759 #ifdef __cplusplus
27760 extern "C"
27761 #endif
27762 char eaccess ();
27764 main ()
27766 return eaccess ();
27768 return 0;
27770 _ACEOF
27771 for ac_lib in '' gen; do
27772 if test -z "$ac_lib"; then
27773 ac_res="none required"
27774 else
27775 ac_res=-l$ac_lib
27776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27778 if ac_fn_c_try_link "$LINENO"; then :
27779 ac_cv_search_eaccess=$ac_res
27781 rm -f core conftest.err conftest.$ac_objext \
27782 conftest$ac_exeext
27783 if test "${ac_cv_search_eaccess+set}" = set; then :
27784 break
27786 done
27787 if test "${ac_cv_search_eaccess+set}" = set; then :
27789 else
27790 ac_cv_search_eaccess=no
27792 rm conftest.$ac_ext
27793 LIBS=$ac_func_search_save_LIBS
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27796 $as_echo "$ac_cv_search_eaccess" >&6; }
27797 ac_res=$ac_cv_search_eaccess
27798 if test "$ac_res" != no; then :
27799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27800 test "$ac_cv_search_eaccess" = "none required" ||
27801 LIB_EACCESS=$ac_cv_search_eaccess
27804 for ac_func in eaccess
27805 do :
27806 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
27807 if test "x$ac_cv_func_eaccess" = x""yes; then :
27808 cat >>confdefs.h <<_ACEOF
27809 #define HAVE_EACCESS 1
27810 _ACEOF
27813 done
27815 LIBS=$gl_saved_libs
27823 GNULIB_EUIDACCESS=1
27829 gl_gnulib_enabled_euidaccess=true
27830 if test $HAVE_EUIDACCESS = 0; then
27831 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27833 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27834 if test $HAVE_EUIDACCESS = 0; then
27835 func_gl_gnulib_m4code_stat
27839 func_gl_gnulib_m4code_getdtablesize ()
27841 if ! $gl_gnulib_enabled_getdtablesize; then
27845 if test $ac_cv_func_getdtablesize != yes; then
27846 HAVE_GETDTABLESIZE=0
27849 if test $HAVE_GETDTABLESIZE = 0; then
27858 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
27867 GNULIB_GETDTABLESIZE=1
27873 gl_gnulib_enabled_getdtablesize=true
27876 func_gl_gnulib_m4code_getgroups ()
27878 if ! $gl_gnulib_enabled_getgroups; then
27884 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
27885 if test "x$ac_cv_func_getgroups" = x""yes; then :
27890 # If we don't yet have getgroups, see if it's in -lbsd.
27891 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27892 ac_save_LIBS=$LIBS
27893 if test $ac_cv_func_getgroups = no; then
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27895 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27896 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27897 $as_echo_n "(cached) " >&6
27898 else
27899 ac_check_lib_save_LIBS=$LIBS
27900 LIBS="-lbsd $LIBS"
27901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27902 /* end confdefs.h. */
27904 /* Override any GCC internal prototype to avoid an error.
27905 Use char because int might match the return type of a GCC
27906 builtin and then its argument prototype would still apply. */
27907 #ifdef __cplusplus
27908 extern "C"
27909 #endif
27910 char getgroups ();
27912 main ()
27914 return getgroups ();
27916 return 0;
27918 _ACEOF
27919 if ac_fn_c_try_link "$LINENO"; then :
27920 ac_cv_lib_bsd_getgroups=yes
27921 else
27922 ac_cv_lib_bsd_getgroups=no
27924 rm -f core conftest.err conftest.$ac_objext \
27925 conftest$ac_exeext conftest.$ac_ext
27926 LIBS=$ac_check_lib_save_LIBS
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27929 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27930 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
27931 GETGROUPS_LIB=-lbsd
27936 # Run the program to test the functionality of the system-supplied
27937 # getgroups function only if there is such a function.
27938 if test $ac_cv_func_getgroups = yes; then
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27940 $as_echo_n "checking for working getgroups... " >&6; }
27941 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27942 $as_echo_n "(cached) " >&6
27943 else
27944 if test "$cross_compiling" = yes; then :
27945 case "$host_os" in # ((
27946 # Guess yes on glibc systems.
27947 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
27948 # If we don't know, assume the worst.
27949 *) ac_cv_func_getgroups_works="guessing no" ;;
27950 esac
27952 else
27953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27954 /* end confdefs.h. */
27955 $ac_includes_default
27957 main ()
27959 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27960 return getgroups (0, 0) == -1;
27962 return 0;
27965 _ACEOF
27966 if ac_fn_c_try_run "$LINENO"; then :
27967 ac_cv_func_getgroups_works=yes
27968 else
27969 ac_cv_func_getgroups_works=no
27971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27972 conftest.$ac_objext conftest.beam conftest.$ac_ext
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27978 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27979 else
27980 ac_cv_func_getgroups_works=no
27982 case "$ac_cv_func_getgroups_works" in
27983 *yes)
27985 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27988 esac
27989 LIBS=$ac_save_LIBS
27991 if test $ac_cv_func_getgroups != yes; then
27992 HAVE_GETGROUPS=0
27993 else
27994 if test "$ac_cv_type_getgroups" != gid_t \
27995 || { case "$ac_cv_func_getgroups_works" in
27996 *yes) false;;
27997 *) true;;
27998 esac
27999 }; then
28000 REPLACE_GETGROUPS=1
28002 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28004 else
28005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28006 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28007 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28008 $as_echo_n "(cached) " >&6
28009 else
28010 if test "$cross_compiling" = yes; then :
28011 case "$host_os" in
28012 # Guess yes on glibc systems.
28013 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
28014 # If we don't know, assume the worst.
28015 *) gl_cv_func_getgroups_works="guessing no" ;;
28016 esac
28018 else
28019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28020 /* end confdefs.h. */
28021 $ac_includes_default
28023 main ()
28025 int size = getgroups (0, 0);
28026 gid_t *list = malloc (size * sizeof *list);
28027 return getgroups (-1, list) != -1;
28029 return 0;
28031 _ACEOF
28032 if ac_fn_c_try_run "$LINENO"; then :
28033 gl_cv_func_getgroups_works=yes
28034 else
28035 gl_cv_func_getgroups_works=no
28037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28038 conftest.$ac_objext conftest.beam conftest.$ac_ext
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28043 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28044 case "$gl_cv_func_getgroups_works" in
28045 *yes) ;;
28046 *) REPLACE_GETGROUPS=1 ;;
28047 esac
28050 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28052 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
28061 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
28069 GNULIB_GETGROUPS=1
28075 gl_gnulib_enabled_getgroups=true
28078 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
28080 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28083 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
28086 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
28088 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28094 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
28095 if test "x$ac_cv_func_group_member" = x""yes; then :
28097 else
28099 HAVE_GROUP_MEMBER=0
28104 if test $HAVE_GROUP_MEMBER = 0; then
28113 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
28124 GNULIB_GROUP_MEMBER=1
28130 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
28131 if test $HAVE_GROUP_MEMBER = 0; then
28132 func_gl_gnulib_m4code_getgroups
28134 if test $HAVE_GROUP_MEMBER = 0; then
28135 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28139 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
28141 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28142 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
28145 func_gl_gnulib_m4code_pathmax ()
28147 if ! $gl_gnulib_enabled_pathmax; then
28151 gl_gnulib_enabled_pathmax=true
28154 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
28156 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28157 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
28160 func_gl_gnulib_m4code_secure_getenv ()
28162 if ! $gl_gnulib_enabled_secure_getenv; then
28168 if test $ac_cv_func_secure_getenv = no; then
28169 HAVE_SECURE_GETENV=0
28172 if test $HAVE_SECURE_GETENV = 0; then
28181 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
28184 for ac_func in __secure_getenv
28185 do :
28186 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28187 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
28188 cat >>confdefs.h <<_ACEOF
28189 #define HAVE___SECURE_GETENV 1
28190 _ACEOF
28193 done
28195 if test $ac_cv_func___secure_getenv = no; then
28196 for ac_func in issetugid
28197 do :
28198 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28199 if test "x$ac_cv_func_issetugid" = x""yes; then :
28200 cat >>confdefs.h <<_ACEOF
28201 #define HAVE_ISSETUGID 1
28202 _ACEOF
28205 done
28215 GNULIB_SECURE_GETENV=1
28221 gl_gnulib_enabled_secure_getenv=true
28224 func_gl_gnulib_m4code_stat ()
28226 if ! $gl_gnulib_enabled_stat; then
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28231 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28232 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28233 $as_echo_n "(cached) " >&6
28234 else
28235 if test "$cross_compiling" = yes; then :
28236 case $host_os in
28237 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28238 *) gl_cv_func_stat_dir_slash="guessing yes";;
28239 esac
28240 else
28241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h. */
28243 #include <sys/stat.h>
28246 main ()
28248 struct stat st; return stat (".", &st) != stat ("./", &st);
28250 return 0;
28252 _ACEOF
28253 if ac_fn_c_try_run "$LINENO"; then :
28254 gl_cv_func_stat_dir_slash=yes
28255 else
28256 gl_cv_func_stat_dir_slash=no
28258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28259 conftest.$ac_objext conftest.beam conftest.$ac_ext
28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28264 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28266 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28267 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28268 $as_echo_n "(cached) " >&6
28269 else
28270 touch conftest.tmp
28271 # Assume that if we have lstat, we can also check symlinks.
28272 if test $ac_cv_func_lstat = yes; then
28273 ln -s conftest.tmp conftest.lnk
28275 if test "$cross_compiling" = yes; then :
28276 case "$host_os" in
28277 # Guess yes on glibc systems.
28278 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28279 # If we don't know, assume the worst.
28280 *) gl_cv_func_stat_file_slash="guessing no" ;;
28281 esac
28283 else
28284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28285 /* end confdefs.h. */
28286 #include <sys/stat.h>
28289 main ()
28291 int result = 0;
28292 struct stat st;
28293 if (!stat ("conftest.tmp/", &st))
28294 result |= 1;
28295 #if HAVE_LSTAT
28296 if (!stat ("conftest.lnk/", &st))
28297 result |= 2;
28298 #endif
28299 return result;
28302 return 0;
28304 _ACEOF
28305 if ac_fn_c_try_run "$LINENO"; then :
28306 gl_cv_func_stat_file_slash=yes
28307 else
28308 gl_cv_func_stat_file_slash=no
28310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28311 conftest.$ac_objext conftest.beam conftest.$ac_ext
28314 rm -f conftest.tmp conftest.lnk
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28317 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28318 case $gl_cv_func_stat_dir_slash in
28319 *no) REPLACE_STAT=1
28321 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28323 esac
28324 case $gl_cv_func_stat_file_slash in
28325 *no) REPLACE_STAT=1
28327 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28329 esac
28331 if test $REPLACE_STAT = 1; then
28340 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28349 GNULIB_STAT=1
28355 gl_gnulib_enabled_stat=true
28356 if test $REPLACE_STAT = 1; then
28357 func_gl_gnulib_m4code_dosname
28359 if test $REPLACE_STAT = 1; then
28360 func_gl_gnulib_m4code_pathmax
28364 func_gl_gnulib_m4code_strtoll ()
28366 if ! $gl_gnulib_enabled_strtoll; then
28370 if test "$ac_cv_type_long_long_int" = yes; then
28371 for ac_func in strtoll
28372 do :
28373 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28374 if test "x$ac_cv_func_strtoll" = x""yes; then :
28375 cat >>confdefs.h <<_ACEOF
28376 #define HAVE_STRTOLL 1
28377 _ACEOF
28380 done
28382 if test $ac_cv_func_strtoll = no; then
28383 HAVE_STRTOLL=0
28387 if test $HAVE_STRTOLL = 0; then
28396 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
28407 GNULIB_STRTOLL=1
28413 gl_gnulib_enabled_strtoll=true
28416 func_gl_gnulib_m4code_strtoull ()
28418 if ! $gl_gnulib_enabled_strtoull; then
28422 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28423 for ac_func in strtoull
28424 do :
28425 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
28426 if test "x$ac_cv_func_strtoull" = x""yes; then :
28427 cat >>confdefs.h <<_ACEOF
28428 #define HAVE_STRTOULL 1
28429 _ACEOF
28432 done
28434 if test $ac_cv_func_strtoull = no; then
28435 HAVE_STRTOULL=0
28439 if test $HAVE_STRTOULL = 0; then
28448 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
28459 GNULIB_STRTOULL=1
28465 gl_gnulib_enabled_strtoull=true
28468 func_gl_gnulib_m4code_tempname ()
28470 if ! $gl_gnulib_enabled_tempname; then
28476 gl_gnulib_enabled_tempname=true
28477 func_gl_gnulib_m4code_secure_getenv
28480 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
28482 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28483 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
28486 if test $HAVE_FACCESSAT = 0; then
28487 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28489 if test $HAVE_FACCESSAT = 0; then
28490 func_gl_gnulib_m4code_dosname
28492 if test $HAVE_FACCESSAT = 0; then
28493 func_gl_gnulib_m4code_euidaccess
28495 if test $HAVE_FACCESSAT = 0; then
28496 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28498 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
28499 func_gl_gnulib_m4code_getdtablesize
28501 if test $HAVE_FDOPENDIR = 0; then
28502 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28504 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28505 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28507 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28508 func_gl_gnulib_m4code_dosname
28510 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28511 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28513 if test $REPLACE_GETOPT = 1; then
28514 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28516 if test $REPLACE_LSTAT = 1; then
28517 func_gl_gnulib_m4code_dosname
28519 if test $REPLACE_LSTAT = 1; then
28520 func_gl_gnulib_m4code_stat
28522 if test $HAVE_MKOSTEMP = 0; then
28523 func_gl_gnulib_m4code_tempname
28525 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
28526 func_gl_gnulib_m4code_stat
28528 if test $HAVE_READLINKAT = 0; then
28529 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28531 if test $HAVE_READLINKAT = 0; then
28532 func_gl_gnulib_m4code_dosname
28534 if test $HAVE_READLINKAT = 0; then
28535 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28537 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28538 func_gl_gnulib_m4code_strtoll
28540 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
28541 func_gl_gnulib_m4code_strtoull
28544 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28545 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
28546 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
28547 else
28548 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
28549 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
28552 if $gl_gnulib_enabled_dosname; then
28553 gl_GNULIB_ENABLED_dosname_TRUE=
28554 gl_GNULIB_ENABLED_dosname_FALSE='#'
28555 else
28556 gl_GNULIB_ENABLED_dosname_TRUE='#'
28557 gl_GNULIB_ENABLED_dosname_FALSE=
28560 if $gl_gnulib_enabled_euidaccess; then
28561 gl_GNULIB_ENABLED_euidaccess_TRUE=
28562 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
28563 else
28564 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
28565 gl_GNULIB_ENABLED_euidaccess_FALSE=
28568 if $gl_gnulib_enabled_getdtablesize; then
28569 gl_GNULIB_ENABLED_getdtablesize_TRUE=
28570 gl_GNULIB_ENABLED_getdtablesize_FALSE='#'
28571 else
28572 gl_GNULIB_ENABLED_getdtablesize_TRUE='#'
28573 gl_GNULIB_ENABLED_getdtablesize_FALSE=
28576 if $gl_gnulib_enabled_getgroups; then
28577 gl_GNULIB_ENABLED_getgroups_TRUE=
28578 gl_GNULIB_ENABLED_getgroups_FALSE='#'
28579 else
28580 gl_GNULIB_ENABLED_getgroups_TRUE='#'
28581 gl_GNULIB_ENABLED_getgroups_FALSE=
28584 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28585 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
28586 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
28587 else
28588 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
28589 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
28592 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28593 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
28594 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
28595 else
28596 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
28597 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
28600 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28601 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
28602 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
28603 else
28604 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
28605 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
28608 if $gl_gnulib_enabled_pathmax; then
28609 gl_GNULIB_ENABLED_pathmax_TRUE=
28610 gl_GNULIB_ENABLED_pathmax_FALSE='#'
28611 else
28612 gl_GNULIB_ENABLED_pathmax_TRUE='#'
28613 gl_GNULIB_ENABLED_pathmax_FALSE=
28616 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28617 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
28618 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
28619 else
28620 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
28621 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
28624 if $gl_gnulib_enabled_secure_getenv; then
28625 gl_GNULIB_ENABLED_secure_getenv_TRUE=
28626 gl_GNULIB_ENABLED_secure_getenv_FALSE='#'
28627 else
28628 gl_GNULIB_ENABLED_secure_getenv_TRUE='#'
28629 gl_GNULIB_ENABLED_secure_getenv_FALSE=
28632 if $gl_gnulib_enabled_stat; then
28633 gl_GNULIB_ENABLED_stat_TRUE=
28634 gl_GNULIB_ENABLED_stat_FALSE='#'
28635 else
28636 gl_GNULIB_ENABLED_stat_TRUE='#'
28637 gl_GNULIB_ENABLED_stat_FALSE=
28640 if $gl_gnulib_enabled_strtoll; then
28641 gl_GNULIB_ENABLED_strtoll_TRUE=
28642 gl_GNULIB_ENABLED_strtoll_FALSE='#'
28643 else
28644 gl_GNULIB_ENABLED_strtoll_TRUE='#'
28645 gl_GNULIB_ENABLED_strtoll_FALSE=
28648 if $gl_gnulib_enabled_strtoull; then
28649 gl_GNULIB_ENABLED_strtoull_TRUE=
28650 gl_GNULIB_ENABLED_strtoull_FALSE='#'
28651 else
28652 gl_GNULIB_ENABLED_strtoull_TRUE='#'
28653 gl_GNULIB_ENABLED_strtoull_FALSE=
28656 if $gl_gnulib_enabled_tempname; then
28657 gl_GNULIB_ENABLED_tempname_TRUE=
28658 gl_GNULIB_ENABLED_tempname_FALSE='#'
28659 else
28660 gl_GNULIB_ENABLED_tempname_TRUE='#'
28661 gl_GNULIB_ENABLED_tempname_FALSE=
28664 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28665 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
28666 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
28667 else
28668 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
28669 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
28672 # End of code from modules
28682 gltests_libdeps=
28683 gltests_ltlibdeps=
28693 gl_source_base='tests'
28694 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
28696 gl_module_indicator_condition=$gltests_WITNESS
28707 LIBGNU_LIBDEPS="$gl_libdeps"
28709 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
28712 CFLAGS=$SAVE_CFLAGS
28713 LIBS=$SAVE_LIBS
28715 if test "${opsys}" = "mingw32"; then
28716 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28717 # Remove unneeded switches from the value of CC that goes to Makefiles
28718 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28721 case "$opsys" in
28722 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
28724 darwin)
28725 ## The -headerpad option tells ld (see man page) to leave room at the
28726 ## end of the header for adding load commands. Needed for dumping.
28727 ## 0x690 is the total size of 30 segment load commands (at 56
28728 ## each); under Cocoa 31 commands are required.
28729 if test "$HAVE_NS" = "yes"; then
28730 libs_nsgui="-framework AppKit"
28731 if test "$NS_IMPL_COCOA" = "yes"; then
28732 libs_nsgui="$libs_nsgui -framework IOKit"
28734 headerpad_extra=6C8
28735 else
28736 libs_nsgui=
28737 headerpad_extra=690
28739 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28741 ## This is here because src/Makefile.in did some extra fiddling around
28742 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28743 ## LD_SWITCH_SYSTEM_TEMACS instead,
28744 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28745 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
28748 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28749 ## find X at run-time.
28750 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28751 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28752 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28753 ## had different values in configure (in ac_link) and src/Makefile.in.
28754 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28755 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28757 mingw32)
28758 ## MinGW64 does not prepend an underscore to symbols, so we must
28759 ## pass a different -entry switch to linker. FIXME: It is better
28760 ## to make the entry points the same by changing unexw32.c.
28761 case "$canonical" in
28762 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28763 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28764 esac
28767 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
28769 *) LD_SWITCH_SYSTEM_TEMACS= ;;
28770 esac
28772 if test x$ac_enable_profiling != x ; then
28773 case $opsys in
28774 *freebsd | gnu-linux) ;;
28775 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28776 esac
28781 ## MinGW-specific post-link processing of temacs.
28782 TEMACS_POST_LINK=":"
28783 ADDSECTION=
28784 EMACS_HEAPSIZE=
28785 if test "${opsys}" = "mingw32"; then
28786 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
28787 ADDSECTION="../nt/addsection\$(EXEEXT)"
28788 ## Preload heap size of temacs.exe in MB.
28789 case "$canonical" in
28790 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
28791 *) EMACS_HEAPSIZE=27 ;;
28792 esac
28799 ## Common for all window systems
28800 if test "$window_system" != "none"; then
28802 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28804 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
28811 #### Report on what we decided to do.
28812 #### Report GTK as a toolkit, even if it doesn't use Xt.
28813 #### It makes printing result more understandable as using GTK sets
28814 #### toolkit_scroll_bars to yes by default.
28815 if test "${HAVE_GTK}" = "yes"; then
28816 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
28819 if test $USE_ACL -ne 0; then
28820 acl_summary="yes $LIB_ACL"
28821 else
28822 acl_summary=no
28825 echo "
28826 Configured for \`${canonical}'.
28828 Where should the build process find the source code? ${srcdir}
28829 What compiler should emacs be built with? ${CC} ${CFLAGS}
28830 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28831 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28832 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28833 What window system should Emacs use? ${window_system}
28834 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28836 if test -n "${x_includes}"; then
28837 echo " Where do we find X Windows header files? ${x_includes}"
28838 else
28839 echo " Where do we find X Windows header files? Standard dirs"
28841 if test -n "${x_libraries}"; then
28842 echo " Where do we find X Windows libraries? ${x_libraries}"
28843 else
28844 echo " Where do we find X Windows libraries? Standard dirs"
28847 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28848 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28849 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28850 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28851 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28852 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28853 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28854 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28856 echo " Does Emacs support sound? ${HAVE_SOUND}"
28858 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28859 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28860 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28861 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28862 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
28863 echo " Does Emacs use access control lists? ${acl_summary}"
28864 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
28865 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
28866 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
28868 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
28869 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
28870 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
28871 echo " Does Emacs use -lxft? ${HAVE_XFT}"
28873 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
28874 echo
28876 if test -n "${EMACSDATA}"; then
28877 echo " Environment variable EMACSDATA set to: $EMACSDATA"
28879 if test -n "${EMACSDOC}"; then
28880 echo " Environment variable EMACSDOC set to: $EMACSDOC"
28883 echo
28885 if test "$HAVE_NS" = "yes"; then
28886 echo
28887 echo "You must run \"${MAKE-make} install\" in order to test the built application.
28888 The installed application will go to nextstep/Emacs.app and can be
28889 run or moved from there."
28890 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
28891 echo "The application will be fully self-contained."
28892 else
28893 echo "The lisp resources for the application will be installed under ${prefix}.
28894 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
28895 to run if these resources are not installed."
28897 echo
28900 if test "${opsys}" = "cygwin"; then
28901 case `uname -r` in
28902 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
28903 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
28904 echo
28906 esac
28909 # Remove any trailing slashes in these variables.
28910 test "${prefix}" != NONE &&
28911 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
28912 test "${exec_prefix}" != NONE &&
28913 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
28915 if test "$HAVE_NS" = "yes"; then
28916 if test "$NS_IMPL_GNUSTEP" = yes; then
28917 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"
28919 else
28920 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"
28925 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"
28927 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"
28930 opt_makefile=test/automated/Makefile
28932 if test -f "$srcdir/$opt_makefile.in"; then
28933 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
28934 ac_config_files="$ac_config_files test/automated/Makefile"
28939 opt_makefile=admin/unidata/Makefile
28941 if test -f "$srcdir/$opt_makefile.in"; then
28942 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
28943 ac_config_files="$ac_config_files admin/unidata/Makefile"
28948 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
28952 ac_config_commands="$ac_config_commands src/epaths.h"
28955 ac_config_commands="$ac_config_commands src/.gdbinit"
28958 cat >confcache <<\_ACEOF
28959 # This file is a shell script that caches the results of configure
28960 # tests run on this system so they can be shared between configure
28961 # scripts and configure runs, see configure's option --config-cache.
28962 # It is not useful on other systems. If it contains results you don't
28963 # want to keep, you may remove or edit it.
28965 # config.status only pays attention to the cache file if you give it
28966 # the --recheck option to rerun configure.
28968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28970 # following values.
28972 _ACEOF
28974 # The following way of writing the cache mishandles newlines in values,
28975 # but we know of no workaround that is simple, portable, and efficient.
28976 # So, we kill variables containing newlines.
28977 # Ultrix sh set writes to stderr and can't be redirected directly,
28978 # and sets the high bit in the cache file unless we assign to the vars.
28980 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28981 eval ac_val=\$$ac_var
28982 case $ac_val in #(
28983 *${as_nl}*)
28984 case $ac_var in #(
28985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28987 esac
28988 case $ac_var in #(
28989 _ | IFS | as_nl) ;; #(
28990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28991 *) { eval $ac_var=; unset $ac_var;} ;;
28992 esac ;;
28993 esac
28994 done
28996 (set) 2>&1 |
28997 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28998 *${as_nl}ac_space=\ *)
28999 # `set' does not quote correctly, so add quotes: double-quote
29000 # substitution turns \\\\ into \\, and sed turns \\ into \.
29001 sed -n \
29002 "s/'/'\\\\''/g;
29003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29004 ;; #(
29006 # `set' quotes correctly as required by POSIX, so do not add quotes.
29007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29009 esac |
29010 sort
29012 sed '
29013 /^ac_cv_env_/b end
29014 t clear
29015 :clear
29016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29017 t end
29018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29019 :end' >>confcache
29020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29021 if test -w "$cache_file"; then
29022 test "x$cache_file" != "x/dev/null" &&
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29024 $as_echo "$as_me: updating cache $cache_file" >&6;}
29025 cat confcache >$cache_file
29026 else
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29028 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29031 rm -f confcache
29033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29034 # Let make expand exec_prefix.
29035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29037 DEFS=-DHAVE_CONFIG_H
29039 ac_libobjs=
29040 ac_ltlibobjs=
29041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29042 # 1. Remove the extension, and $U if already installed.
29043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29044 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29046 # will be set to the directory where LIBOBJS objects are built.
29047 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29048 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29049 done
29050 LIBOBJS=$ac_libobjs
29052 LTLIBOBJS=$ac_ltlibobjs
29055 if test -n "$EXEEXT"; then
29056 am__EXEEXT_TRUE=
29057 am__EXEEXT_FALSE='#'
29058 else
29059 am__EXEEXT_TRUE='#'
29060 am__EXEEXT_FALSE=
29063 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29064 as_fn_error "conditional \"AMDEP\" was never defined.
29065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29067 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29068 as_fn_error "conditional \"am__fastdepCC\" was never defined.
29069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29071 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29072 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29075 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29076 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
29077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29079 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29080 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29084 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29085 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29088 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29089 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29092 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29093 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29096 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29097 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29100 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29101 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29104 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29105 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29108 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29109 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29112 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29113 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29116 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29117 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29120 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29121 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29124 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29125 as_fn_error "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29128 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29129 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29132 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29133 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29136 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29137 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29140 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29141 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29144 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29145 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29148 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29149 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29152 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29153 as_fn_error "conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29156 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29157 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29160 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29161 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29164 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29165 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29168 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29169 as_fn_error "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29172 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29173 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29177 gl_libobjs=
29178 gl_ltlibobjs=
29179 if test -n "$gl_LIBOBJS"; then
29180 # Remove the extension.
29181 sed_drop_objext='s/\.o$//;s/\.obj$//'
29182 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29183 gl_libobjs="$gl_libobjs $i.$ac_objext"
29184 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29185 done
29187 gl_LIBOBJS=$gl_libobjs
29189 gl_LTLIBOBJS=$gl_ltlibobjs
29193 gltests_libobjs=
29194 gltests_ltlibobjs=
29195 if test -n "$gltests_LIBOBJS"; then
29196 # Remove the extension.
29197 sed_drop_objext='s/\.o$//;s/\.obj$//'
29198 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29199 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29200 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29201 done
29203 gltests_LIBOBJS=$gltests_libobjs
29205 gltests_LTLIBOBJS=$gltests_ltlibobjs
29209 : ${CONFIG_STATUS=./config.status}
29210 ac_write_fail=0
29211 ac_clean_files_save=$ac_clean_files
29212 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29214 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29215 as_write_fail=0
29216 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29217 #! $SHELL
29218 # Generated by $as_me.
29219 # Run this file to recreate the current configuration.
29220 # Compiler output produced by configure, useful for debugging
29221 # configure, is in config.log if it exists.
29223 debug=false
29224 ac_cs_recheck=false
29225 ac_cs_silent=false
29227 SHELL=\${CONFIG_SHELL-$SHELL}
29228 export SHELL
29229 _ASEOF
29230 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29231 ## -------------------- ##
29232 ## M4sh Initialization. ##
29233 ## -------------------- ##
29235 # Be more Bourne compatible
29236 DUALCASE=1; export DUALCASE # for MKS sh
29237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29238 emulate sh
29239 NULLCMD=:
29240 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29241 # is contrary to our usage. Disable this feature.
29242 alias -g '${1+"$@"}'='"$@"'
29243 setopt NO_GLOB_SUBST
29244 else
29245 case `(set -o) 2>/dev/null` in #(
29246 *posix*) :
29247 set -o posix ;; #(
29248 *) :
29250 esac
29254 as_nl='
29256 export as_nl
29257 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29258 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29260 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29261 # Prefer a ksh shell builtin over an external printf program on Solaris,
29262 # but without wasting forks for bash or zsh.
29263 if test -z "$BASH_VERSION$ZSH_VERSION" \
29264 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29265 as_echo='print -r --'
29266 as_echo_n='print -rn --'
29267 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29268 as_echo='printf %s\n'
29269 as_echo_n='printf %s'
29270 else
29271 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29272 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29273 as_echo_n='/usr/ucb/echo -n'
29274 else
29275 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29276 as_echo_n_body='eval
29277 arg=$1;
29278 case $arg in #(
29279 *"$as_nl"*)
29280 expr "X$arg" : "X\\(.*\\)$as_nl";
29281 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29282 esac;
29283 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29285 export as_echo_n_body
29286 as_echo_n='sh -c $as_echo_n_body as_echo'
29288 export as_echo_body
29289 as_echo='sh -c $as_echo_body as_echo'
29292 # The user is always right.
29293 if test "${PATH_SEPARATOR+set}" != set; then
29294 PATH_SEPARATOR=:
29295 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29296 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29297 PATH_SEPARATOR=';'
29302 # IFS
29303 # We need space, tab and new line, in precisely that order. Quoting is
29304 # there to prevent editors from complaining about space-tab.
29305 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29306 # splitting by setting IFS to empty value.)
29307 IFS=" "" $as_nl"
29309 # Find who we are. Look in the path if we contain no directory separator.
29310 case $0 in #((
29311 *[\\/]* ) as_myself=$0 ;;
29312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29313 for as_dir in $PATH
29315 IFS=$as_save_IFS
29316 test -z "$as_dir" && as_dir=.
29317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29318 done
29319 IFS=$as_save_IFS
29322 esac
29323 # We did not find ourselves, most probably we were run as `sh COMMAND'
29324 # in which case we are not to be found in the path.
29325 if test "x$as_myself" = x; then
29326 as_myself=$0
29328 if test ! -f "$as_myself"; then
29329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29330 exit 1
29333 # Unset variables that we do not need and which cause bugs (e.g. in
29334 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29335 # suppresses any "Segmentation fault" message there. '((' could
29336 # trigger a bug in pdksh 5.2.14.
29337 for as_var in BASH_ENV ENV MAIL MAILPATH
29338 do eval test x\${$as_var+set} = xset \
29339 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29340 done
29341 PS1='$ '
29342 PS2='> '
29343 PS4='+ '
29345 # NLS nuisances.
29346 LC_ALL=C
29347 export LC_ALL
29348 LANGUAGE=C
29349 export LANGUAGE
29351 # CDPATH.
29352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29355 # as_fn_error ERROR [LINENO LOG_FD]
29356 # ---------------------------------
29357 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29358 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29359 # script with status $?, using 1 if that was 0.
29360 as_fn_error ()
29362 as_status=$?; test $as_status -eq 0 && as_status=1
29363 if test "$3"; then
29364 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29367 $as_echo "$as_me: error: $1" >&2
29368 as_fn_exit $as_status
29369 } # as_fn_error
29372 # as_fn_set_status STATUS
29373 # -----------------------
29374 # Set $? to STATUS, without forking.
29375 as_fn_set_status ()
29377 return $1
29378 } # as_fn_set_status
29380 # as_fn_exit STATUS
29381 # -----------------
29382 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29383 as_fn_exit ()
29385 set +e
29386 as_fn_set_status $1
29387 exit $1
29388 } # as_fn_exit
29390 # as_fn_unset VAR
29391 # ---------------
29392 # Portably unset VAR.
29393 as_fn_unset ()
29395 { eval $1=; unset $1;}
29397 as_unset=as_fn_unset
29398 # as_fn_append VAR VALUE
29399 # ----------------------
29400 # Append the text in VALUE to the end of the definition contained in VAR. Take
29401 # advantage of any shell optimizations that allow amortized linear growth over
29402 # repeated appends, instead of the typical quadratic growth present in naive
29403 # implementations.
29404 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29405 eval 'as_fn_append ()
29407 eval $1+=\$2
29409 else
29410 as_fn_append ()
29412 eval $1=\$$1\$2
29414 fi # as_fn_append
29416 # as_fn_arith ARG...
29417 # ------------------
29418 # Perform arithmetic evaluation on the ARGs, and store the result in the
29419 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29420 # must be portable across $(()) and expr.
29421 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29422 eval 'as_fn_arith ()
29424 as_val=$(( $* ))
29426 else
29427 as_fn_arith ()
29429 as_val=`expr "$@" || test $? -eq 1`
29431 fi # as_fn_arith
29434 if expr a : '\(a\)' >/dev/null 2>&1 &&
29435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29436 as_expr=expr
29437 else
29438 as_expr=false
29441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29442 as_basename=basename
29443 else
29444 as_basename=false
29447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29448 as_dirname=dirname
29449 else
29450 as_dirname=false
29453 as_me=`$as_basename -- "$0" ||
29454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29455 X"$0" : 'X\(//\)$' \| \
29456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29457 $as_echo X/"$0" |
29458 sed '/^.*\/\([^/][^/]*\)\/*$/{
29459 s//\1/
29462 /^X\/\(\/\/\)$/{
29463 s//\1/
29466 /^X\/\(\/\).*/{
29467 s//\1/
29470 s/.*/./; q'`
29472 # Avoid depending upon Character Ranges.
29473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29476 as_cr_digits='0123456789'
29477 as_cr_alnum=$as_cr_Letters$as_cr_digits
29479 ECHO_C= ECHO_N= ECHO_T=
29480 case `echo -n x` in #(((((
29481 -n*)
29482 case `echo 'xy\c'` in
29483 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29484 xy) ECHO_C='\c';;
29485 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29486 ECHO_T=' ';;
29487 esac;;
29489 ECHO_N='-n';;
29490 esac
29492 rm -f conf$$ conf$$.exe conf$$.file
29493 if test -d conf$$.dir; then
29494 rm -f conf$$.dir/conf$$.file
29495 else
29496 rm -f conf$$.dir
29497 mkdir conf$$.dir 2>/dev/null
29499 if (echo >conf$$.file) 2>/dev/null; then
29500 if ln -s conf$$.file conf$$ 2>/dev/null; then
29501 as_ln_s='ln -s'
29502 # ... but there are two gotchas:
29503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29505 # In both cases, we have to default to `cp -p'.
29506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29507 as_ln_s='cp -p'
29508 elif ln conf$$.file conf$$ 2>/dev/null; then
29509 as_ln_s=ln
29510 else
29511 as_ln_s='cp -p'
29513 else
29514 as_ln_s='cp -p'
29516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29517 rmdir conf$$.dir 2>/dev/null
29520 # as_fn_mkdir_p
29521 # -------------
29522 # Create "$as_dir" as a directory, including parents if necessary.
29523 as_fn_mkdir_p ()
29526 case $as_dir in #(
29527 -*) as_dir=./$as_dir;;
29528 esac
29529 test -d "$as_dir" || eval $as_mkdir_p || {
29530 as_dirs=
29531 while :; do
29532 case $as_dir in #(
29533 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29534 *) as_qdir=$as_dir;;
29535 esac
29536 as_dirs="'$as_qdir' $as_dirs"
29537 as_dir=`$as_dirname -- "$as_dir" ||
29538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29539 X"$as_dir" : 'X\(//\)[^/]' \| \
29540 X"$as_dir" : 'X\(//\)$' \| \
29541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29542 $as_echo X"$as_dir" |
29543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29544 s//\1/
29547 /^X\(\/\/\)[^/].*/{
29548 s//\1/
29551 /^X\(\/\/\)$/{
29552 s//\1/
29555 /^X\(\/\).*/{
29556 s//\1/
29559 s/.*/./; q'`
29560 test -d "$as_dir" && break
29561 done
29562 test -z "$as_dirs" || eval "mkdir $as_dirs"
29563 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29566 } # as_fn_mkdir_p
29567 if mkdir -p . 2>/dev/null; then
29568 as_mkdir_p='mkdir -p "$as_dir"'
29569 else
29570 test -d ./-p && rmdir ./-p
29571 as_mkdir_p=false
29574 if test -x / >/dev/null 2>&1; then
29575 as_test_x='test -x'
29576 else
29577 if ls -dL / >/dev/null 2>&1; then
29578 as_ls_L_option=L
29579 else
29580 as_ls_L_option=
29582 as_test_x='
29583 eval sh -c '\''
29584 if test -d "$1"; then
29585 test -d "$1/.";
29586 else
29587 case $1 in #(
29588 -*)set "./$1";;
29589 esac;
29590 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29591 ???[sx]*):;;*)false;;esac;fi
29592 '\'' sh
29595 as_executable_p=$as_test_x
29597 # Sed expression to map a string onto a valid CPP name.
29598 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29600 # Sed expression to map a string onto a valid variable name.
29601 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29604 exec 6>&1
29605 ## ----------------------------------- ##
29606 ## Main body of $CONFIG_STATUS script. ##
29607 ## ----------------------------------- ##
29608 _ASEOF
29609 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29612 # Save the log message, to keep $0 and so on meaningful, and to
29613 # report actual input values of CONFIG_FILES etc. instead of their
29614 # values after options handling.
29615 ac_log="
29616 This file was extended by emacs $as_me 24.3.50, which was
29617 generated by GNU Autoconf 2.65. Invocation command line was
29619 CONFIG_FILES = $CONFIG_FILES
29620 CONFIG_HEADERS = $CONFIG_HEADERS
29621 CONFIG_LINKS = $CONFIG_LINKS
29622 CONFIG_COMMANDS = $CONFIG_COMMANDS
29623 $ $0 $@
29625 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29628 _ACEOF
29630 case $ac_config_files in *"
29631 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29632 esac
29634 case $ac_config_headers in *"
29635 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29636 esac
29639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29640 # Files that config.status was made for.
29641 config_files="$ac_config_files"
29642 config_headers="$ac_config_headers"
29643 config_commands="$ac_config_commands"
29645 _ACEOF
29647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29648 ac_cs_usage="\
29649 \`$as_me' instantiates files and other configuration actions
29650 from templates according to the current configuration. Unless the files
29651 and actions are specified as TAGs, all are instantiated by default.
29653 Usage: $0 [OPTION]... [TAG]...
29655 -h, --help print this help, then exit
29656 -V, --version print version number and configuration settings, then exit
29657 --config print configuration, then exit
29658 -q, --quiet, --silent
29659 do not print progress messages
29660 -d, --debug don't remove temporary files
29661 --recheck update $as_me by reconfiguring in the same conditions
29662 --file=FILE[:TEMPLATE]
29663 instantiate the configuration file FILE
29664 --header=FILE[:TEMPLATE]
29665 instantiate the configuration header FILE
29667 Configuration files:
29668 $config_files
29670 Configuration headers:
29671 $config_headers
29673 Configuration commands:
29674 $config_commands
29676 Report bugs to the package provider."
29678 _ACEOF
29679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29680 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29681 ac_cs_version="\\
29682 emacs config.status 24.3.50
29683 configured by $0, generated by GNU Autoconf 2.65,
29684 with options \\"\$ac_cs_config\\"
29686 Copyright (C) 2009 Free Software Foundation, Inc.
29687 This config.status script is free software; the Free Software Foundation
29688 gives unlimited permission to copy, distribute and modify it."
29690 ac_pwd='$ac_pwd'
29691 srcdir='$srcdir'
29692 INSTALL='$INSTALL'
29693 MKDIR_P='$MKDIR_P'
29694 AWK='$AWK'
29695 test -n "\$AWK" || AWK=awk
29696 _ACEOF
29698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29699 # The default lists apply if the user does not specify any file.
29700 ac_need_defaults=:
29701 while test $# != 0
29703 case $1 in
29704 --*=*)
29705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29707 ac_shift=:
29710 ac_option=$1
29711 ac_optarg=$2
29712 ac_shift=shift
29714 esac
29716 case $ac_option in
29717 # Handling of the options.
29718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29719 ac_cs_recheck=: ;;
29720 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29721 $as_echo "$ac_cs_version"; exit ;;
29722 --config | --confi | --conf | --con | --co | --c )
29723 $as_echo "$ac_cs_config"; exit ;;
29724 --debug | --debu | --deb | --de | --d | -d )
29725 debug=: ;;
29726 --file | --fil | --fi | --f )
29727 $ac_shift
29728 case $ac_optarg in
29729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29730 esac
29731 as_fn_append CONFIG_FILES " '$ac_optarg'"
29732 ac_need_defaults=false;;
29733 --header | --heade | --head | --hea )
29734 $ac_shift
29735 case $ac_optarg in
29736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29737 esac
29738 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29739 ac_need_defaults=false;;
29740 --he | --h)
29741 # Conflict between --help and --header
29742 as_fn_error "ambiguous option: \`$1'
29743 Try \`$0 --help' for more information.";;
29744 --help | --hel | -h )
29745 $as_echo "$ac_cs_usage"; exit ;;
29746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29748 ac_cs_silent=: ;;
29750 # This is an error.
29751 -*) as_fn_error "unrecognized option: \`$1'
29752 Try \`$0 --help' for more information." ;;
29754 *) as_fn_append ac_config_targets " $1"
29755 ac_need_defaults=false ;;
29757 esac
29758 shift
29759 done
29761 ac_configure_extra_args=
29763 if $ac_cs_silent; then
29764 exec 6>/dev/null
29765 ac_configure_extra_args="$ac_configure_extra_args --silent"
29768 _ACEOF
29769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29770 if \$ac_cs_recheck; then
29771 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29772 shift
29773 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29774 CONFIG_SHELL='$SHELL'
29775 export CONFIG_SHELL
29776 exec "\$@"
29779 _ACEOF
29780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29781 exec 5>>config.log
29783 echo
29784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29785 ## Running $as_me. ##
29786 _ASBOX
29787 $as_echo "$ac_log"
29788 } >&5
29790 _ACEOF
29791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29793 # INIT-COMMANDS
29795 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29796 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29798 _ACEOF
29800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29802 # Handling of arguments.
29803 for ac_config_target in $ac_config_targets
29805 case $ac_config_target in
29806 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29807 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29808 "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" ;;
29809 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29810 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29811 "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" ;;
29812 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29813 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29814 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
29815 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
29816 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
29817 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
29818 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
29819 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
29820 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29821 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
29822 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
29823 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
29824 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
29825 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
29826 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
29827 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
29828 "src/epaths.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/epaths.h" ;;
29829 "src/.gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS src/.gdbinit" ;;
29831 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29832 esac
29833 done
29836 # If the user did not use the arguments to specify the items to instantiate,
29837 # then the envvar interface is used. Set only those that are not.
29838 # We use the long form for the default assignment because of an extremely
29839 # bizarre bug on SunOS 4.1.3.
29840 if $ac_need_defaults; then
29841 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29842 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29843 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29846 # Have a temporary directory for convenience. Make it in the build tree
29847 # simply because there is no reason against having it here, and in addition,
29848 # creating and moving files from /tmp can sometimes cause problems.
29849 # Hook for its removal unless debugging.
29850 # Note that there is a small window in which the directory will not be cleaned:
29851 # after its creation but before its name has been assigned to `$tmp'.
29852 $debug ||
29854 tmp=
29855 trap 'exit_status=$?
29856 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29858 trap 'as_fn_exit 1' 1 2 13 15
29860 # Create a (secure) tmp directory for tmp files.
29863 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29864 test -n "$tmp" && test -d "$tmp"
29865 } ||
29867 tmp=./conf$$-$RANDOM
29868 (umask 077 && mkdir "$tmp")
29869 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29871 # Set up the scripts for CONFIG_FILES section.
29872 # No need to generate them if there are no CONFIG_FILES.
29873 # This happens for instance with `./config.status config.h'.
29874 if test -n "$CONFIG_FILES"; then
29876 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29877 ac_cs_awk_getline=:
29878 ac_cs_awk_pipe_init=
29879 ac_cs_awk_read_file='
29880 while ((getline aline < (F[key])) > 0)
29881 print(aline)
29882 close(F[key])'
29883 ac_cs_awk_pipe_fini=
29884 else
29885 ac_cs_awk_getline=false
29886 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29887 ac_cs_awk_read_file='
29888 print "|#_!!_#|"
29889 print "cat " F[key] " &&"
29890 '$ac_cs_awk_pipe_init
29891 # The final `:' finishes the AND list.
29892 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29894 ac_cr=`echo X | tr X '\015'`
29895 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29896 # But we know of no other shell where ac_cr would be empty at this
29897 # point, so we can use a bashism as a fallback.
29898 if test "x$ac_cr" = x; then
29899 eval ac_cr=\$\'\\r\'
29901 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29902 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29903 ac_cs_awk_cr='\r'
29904 else
29905 ac_cs_awk_cr=$ac_cr
29908 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29909 _ACEOF
29911 # Create commands to substitute file output variables.
29913 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29914 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29915 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29916 echo "_ACAWK" &&
29917 echo "_ACEOF"
29918 } >conf$$files.sh &&
29919 . ./conf$$files.sh ||
29920 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29921 rm -f conf$$files.sh
29924 echo "cat >conf$$subs.awk <<_ACEOF" &&
29925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29926 echo "_ACEOF"
29927 } >conf$$subs.sh ||
29928 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29929 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29930 ac_delim='%!_!# '
29931 for ac_last_try in false false false false false :; do
29932 . ./conf$$subs.sh ||
29933 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29936 if test $ac_delim_n = $ac_delim_num; then
29937 break
29938 elif $ac_last_try; then
29939 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29940 else
29941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29943 done
29944 rm -f conf$$subs.sh
29946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29947 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29948 _ACEOF
29949 sed -n '
29951 s/^/S["/; s/!.*/"]=/
29954 s/^[^!]*!//
29955 :repl
29956 t repl
29957 s/'"$ac_delim"'$//
29958 t delim
29961 s/\(.\{148\}\)..*/\1/
29962 t more1
29963 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29966 b repl
29967 :more1
29968 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29971 s/.\{148\}//
29972 t nl
29973 :delim
29975 s/\(.\{148\}\)..*/\1/
29976 t more2
29977 s/["\\]/\\&/g; s/^/"/; s/$/"/
29980 :more2
29981 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29984 s/.\{148\}//
29985 t delim
29986 ' <conf$$subs.awk | sed '
29987 /^[^""]/{
29989 s/\n//
29991 ' >>$CONFIG_STATUS || ac_write_fail=1
29992 rm -f conf$$subs.awk
29993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29994 _ACAWK
29995 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29996 for (key in S) S_is_set[key] = 1
29997 FS = "\a"
29998 \$ac_cs_awk_pipe_init
30001 line = $ 0
30002 nfields = split(line, field, "@")
30003 substed = 0
30004 len = length(field[1])
30005 for (i = 2; i < nfields; i++) {
30006 key = field[i]
30007 keylen = length(key)
30008 if (S_is_set[key]) {
30009 value = S[key]
30010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30011 len += length(value) + length(field[++i])
30012 substed = 1
30013 } else
30014 len += 1 + keylen
30016 if (nfields == 3 && !substed) {
30017 key = field[2]
30018 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30019 \$ac_cs_awk_read_file
30020 next
30023 print line
30025 \$ac_cs_awk_pipe_fini
30026 _ACAWK
30027 _ACEOF
30028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30029 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30030 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30031 else
30033 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30034 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30035 _ACEOF
30037 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30038 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30039 # trailing colons and then remove the whole line if VPATH becomes empty
30040 # (actually we leave an empty line to preserve line numbers).
30041 if test "x$srcdir" = x.; then
30042 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30043 s/:*\$(srcdir):*/:/
30044 s/:*\${srcdir}:*/:/
30045 s/:*@srcdir@:*/:/
30046 s/^\([^=]*=[ ]*\):*/\1/
30047 s/:*$//
30048 s/^[^=]*=[ ]*$//
30052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30053 fi # test -n "$CONFIG_FILES"
30055 # Set up the scripts for CONFIG_HEADERS section.
30056 # No need to generate them if there are no CONFIG_HEADERS.
30057 # This happens for instance with `./config.status Makefile'.
30058 if test -n "$CONFIG_HEADERS"; then
30059 cat >"$tmp/defines.awk" <<\_ACAWK ||
30060 BEGIN {
30061 _ACEOF
30063 # Transform confdefs.h into an awk script `defines.awk', embedded as
30064 # here-document in config.status, that substitutes the proper values into
30065 # config.h.in to produce config.h.
30067 # Create a delimiter string that does not exist in confdefs.h, to ease
30068 # handling of long lines.
30069 ac_delim='%!_!# '
30070 for ac_last_try in false false :; do
30071 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30072 if test -z "$ac_t"; then
30073 break
30074 elif $ac_last_try; then
30075 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30076 else
30077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30079 done
30081 # For the awk script, D is an array of macro values keyed by name,
30082 # likewise P contains macro parameters if any. Preserve backslash
30083 # newline sequences.
30085 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30086 sed -n '
30087 s/.\{148\}/&'"$ac_delim"'/g
30088 t rset
30089 :rset
30090 s/^[ ]*#[ ]*define[ ][ ]*/ /
30091 t def
30093 :def
30094 s/\\$//
30095 t bsnl
30096 s/["\\]/\\&/g
30097 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30098 D["\1"]=" \3"/p
30099 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30101 :bsnl
30102 s/["\\]/\\&/g
30103 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30104 D["\1"]=" \3\\\\\\n"\\/p
30105 t cont
30106 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30107 t cont
30109 :cont
30111 s/.\{148\}/&'"$ac_delim"'/g
30112 t clear
30113 :clear
30114 s/\\$//
30115 t bsnlc
30116 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30118 :bsnlc
30119 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30120 b cont
30121 ' <confdefs.h | sed '
30122 s/'"$ac_delim"'/"\\\
30123 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30126 for (key in D) D_is_set[key] = 1
30127 FS = "\a"
30129 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30130 line = \$ 0
30131 split(line, arg, " ")
30132 if (arg[1] == "#") {
30133 defundef = arg[2]
30134 mac1 = arg[3]
30135 } else {
30136 defundef = substr(arg[1], 2)
30137 mac1 = arg[2]
30139 split(mac1, mac2, "(") #)
30140 macro = mac2[1]
30141 prefix = substr(line, 1, index(line, defundef) - 1)
30142 if (D_is_set[macro]) {
30143 # Preserve the white space surrounding the "#".
30144 print prefix "define", macro P[macro] D[macro]
30145 next
30146 } else {
30147 # Replace #undef with comments. This is necessary, for example,
30148 # in the case of _POSIX_SOURCE, which is predefined and required
30149 # on some systems where configure will not decide to define it.
30150 if (defundef == "undef") {
30151 print "/*", prefix defundef, macro, "*/"
30152 next
30156 { print }
30157 _ACAWK
30158 _ACEOF
30159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30160 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30161 fi # test -n "$CONFIG_HEADERS"
30164 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30165 shift
30166 for ac_tag
30168 case $ac_tag in
30169 :[FHLC]) ac_mode=$ac_tag; continue;;
30170 esac
30171 case $ac_mode$ac_tag in
30172 :[FHL]*:*);;
30173 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30174 :[FH]-) ac_tag=-:-;;
30175 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30176 esac
30177 ac_save_IFS=$IFS
30178 IFS=:
30179 set x $ac_tag
30180 IFS=$ac_save_IFS
30181 shift
30182 ac_file=$1
30183 shift
30185 case $ac_mode in
30186 :L) ac_source=$1;;
30187 :[FH])
30188 ac_file_inputs=
30189 for ac_f
30191 case $ac_f in
30192 -) ac_f="$tmp/stdin";;
30193 *) # Look for the file first in the build tree, then in the source tree
30194 # (if the path is not absolute). The absolute path cannot be DOS-style,
30195 # because $ac_f cannot contain `:'.
30196 test -f "$ac_f" ||
30197 case $ac_f in
30198 [\\/$]*) false;;
30199 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30200 esac ||
30201 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30202 esac
30203 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30204 as_fn_append ac_file_inputs " '$ac_f'"
30205 done
30207 # Let's still pretend it is `configure' which instantiates (i.e., don't
30208 # use $as_me), people would be surprised to read:
30209 # /* config.h. Generated by config.status. */
30210 configure_input='Generated from '`
30211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30212 `' by configure.'
30213 if test x"$ac_file" != x-; then
30214 configure_input="$ac_file. $configure_input"
30215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30216 $as_echo "$as_me: creating $ac_file" >&6;}
30218 # Neutralize special characters interpreted by sed in replacement strings.
30219 case $configure_input in #(
30220 *\&* | *\|* | *\\* )
30221 ac_sed_conf_input=`$as_echo "$configure_input" |
30222 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30223 *) ac_sed_conf_input=$configure_input;;
30224 esac
30226 case $ac_tag in
30227 *:-:* | *:-) cat >"$tmp/stdin" \
30228 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30229 esac
30231 esac
30233 ac_dir=`$as_dirname -- "$ac_file" ||
30234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30235 X"$ac_file" : 'X\(//\)[^/]' \| \
30236 X"$ac_file" : 'X\(//\)$' \| \
30237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30238 $as_echo X"$ac_file" |
30239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30240 s//\1/
30243 /^X\(\/\/\)[^/].*/{
30244 s//\1/
30247 /^X\(\/\/\)$/{
30248 s//\1/
30251 /^X\(\/\).*/{
30252 s//\1/
30255 s/.*/./; q'`
30256 as_dir="$ac_dir"; as_fn_mkdir_p
30257 ac_builddir=.
30259 case "$ac_dir" in
30260 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30262 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30263 # A ".." for each directory in $ac_dir_suffix.
30264 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30265 case $ac_top_builddir_sub in
30266 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30267 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30268 esac ;;
30269 esac
30270 ac_abs_top_builddir=$ac_pwd
30271 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30272 # for backward compatibility:
30273 ac_top_builddir=$ac_top_build_prefix
30275 case $srcdir in
30276 .) # We are building in place.
30277 ac_srcdir=.
30278 ac_top_srcdir=$ac_top_builddir_sub
30279 ac_abs_top_srcdir=$ac_pwd ;;
30280 [\\/]* | ?:[\\/]* ) # Absolute name.
30281 ac_srcdir=$srcdir$ac_dir_suffix;
30282 ac_top_srcdir=$srcdir
30283 ac_abs_top_srcdir=$srcdir ;;
30284 *) # Relative name.
30285 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30286 ac_top_srcdir=$ac_top_build_prefix$srcdir
30287 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30288 esac
30289 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30292 case $ac_mode in
30295 # CONFIG_FILE
30298 case $INSTALL in
30299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30300 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30301 esac
30302 ac_MKDIR_P=$MKDIR_P
30303 case $MKDIR_P in
30304 [\\/$]* | ?:[\\/]* ) ;;
30305 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30306 esac
30307 _ACEOF
30309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30310 # If the template does not know about datarootdir, expand it.
30311 # FIXME: This hack should be removed a few years after 2.60.
30312 ac_datarootdir_hack=; ac_datarootdir_seen=
30313 ac_sed_dataroot='
30314 /datarootdir/ {
30318 /@datadir@/p
30319 /@docdir@/p
30320 /@infodir@/p
30321 /@localedir@/p
30322 /@mandir@/p'
30323 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30324 *datarootdir*) ac_datarootdir_seen=yes;;
30325 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30327 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30328 _ACEOF
30329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30330 ac_datarootdir_hack='
30331 s&@datadir@&$datadir&g
30332 s&@docdir@&$docdir&g
30333 s&@infodir@&$infodir&g
30334 s&@localedir@&$localedir&g
30335 s&@mandir@&$mandir&g
30336 s&\\\${datarootdir}&$datarootdir&g' ;;
30337 esac
30338 _ACEOF
30340 # Neutralize VPATH when `$srcdir' = `.'.
30341 # Shell code in configure.ac might set extrasub.
30342 # FIXME: do we really want to maintain this feature?
30343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30344 ac_sed_extra="$ac_vpsub
30345 $extrasub
30346 _ACEOF
30347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30349 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30350 s|@configure_input@|$ac_sed_conf_input|;t t
30351 s&@top_builddir@&$ac_top_builddir_sub&;t t
30352 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30353 s&@srcdir@&$ac_srcdir&;t t
30354 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30355 s&@top_srcdir@&$ac_top_srcdir&;t t
30356 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30357 s&@builddir@&$ac_builddir&;t t
30358 s&@abs_builddir@&$ac_abs_builddir&;t t
30359 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30360 s&@INSTALL@&$ac_INSTALL&;t t
30361 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30362 $ac_datarootdir_hack
30364 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30365 if $ac_cs_awk_getline; then
30366 $AWK -f "$tmp/subs.awk"
30367 else
30368 $AWK -f "$tmp/subs.awk" | $SHELL
30369 fi >$tmp/out \
30370 || as_fn_error "could not create $ac_file" "$LINENO" 5
30372 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30373 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30374 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30376 which seems to be undefined. Please make sure it is defined." >&5
30377 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30378 which seems to be undefined. Please make sure it is defined." >&2;}
30380 rm -f "$tmp/stdin"
30381 case $ac_file in
30382 -) cat "$tmp/out" && rm -f "$tmp/out";;
30383 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30384 esac \
30385 || as_fn_error "could not create $ac_file" "$LINENO" 5
30389 # CONFIG_HEADER
30391 if test x"$ac_file" != x-; then
30393 $as_echo "/* $configure_input */" \
30394 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30395 } >"$tmp/config.h" \
30396 || as_fn_error "could not create $ac_file" "$LINENO" 5
30397 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30399 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30400 else
30401 rm -f "$ac_file"
30402 mv "$tmp/config.h" "$ac_file" \
30403 || as_fn_error "could not create $ac_file" "$LINENO" 5
30405 else
30406 $as_echo "/* $configure_input */" \
30407 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30408 || as_fn_error "could not create -" "$LINENO" 5
30410 # Compute "$ac_file"'s index in $config_headers.
30411 _am_arg="$ac_file"
30412 _am_stamp_count=1
30413 for _am_header in $config_headers :; do
30414 case $_am_header in
30415 $_am_arg | $_am_arg:* )
30416 break ;;
30418 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30419 esac
30420 done
30421 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30422 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30423 X"$_am_arg" : 'X\(//\)[^/]' \| \
30424 X"$_am_arg" : 'X\(//\)$' \| \
30425 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30426 $as_echo X"$_am_arg" |
30427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30428 s//\1/
30431 /^X\(\/\/\)[^/].*/{
30432 s//\1/
30435 /^X\(\/\/\)$/{
30436 s//\1/
30439 /^X\(\/\).*/{
30440 s//\1/
30443 s/.*/./; q'`/stamp-h$_am_stamp_count
30446 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30447 $as_echo "$as_me: executing $ac_file commands" >&6;}
30449 esac
30452 case $ac_file$ac_mode in
30453 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30454 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30455 # are listed without --file. Let's play safe and only enable the eval
30456 # if we detect the quoting.
30457 case $CONFIG_FILES in
30458 *\'*) eval set x "$CONFIG_FILES" ;;
30459 *) set x $CONFIG_FILES ;;
30460 esac
30461 shift
30462 for mf
30464 # Strip MF so we end up with the name of the file.
30465 mf=`echo "$mf" | sed -e 's/:.*$//'`
30466 # Check whether this is an Automake generated Makefile or not.
30467 # We used to match only the files named `Makefile.in', but
30468 # some people rename them; so instead we look at the file content.
30469 # Grep'ing the first line is not enough: some people post-process
30470 # each Makefile.in and add a new line on top of each file to say so.
30471 # Grep'ing the whole file is not good either: AIX grep has a line
30472 # limit of 2048, but all sed's we know have understand at least 4000.
30473 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30474 dirpart=`$as_dirname -- "$mf" ||
30475 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30476 X"$mf" : 'X\(//\)[^/]' \| \
30477 X"$mf" : 'X\(//\)$' \| \
30478 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30479 $as_echo X"$mf" |
30480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30481 s//\1/
30484 /^X\(\/\/\)[^/].*/{
30485 s//\1/
30488 /^X\(\/\/\)$/{
30489 s//\1/
30492 /^X\(\/\).*/{
30493 s//\1/
30496 s/.*/./; q'`
30497 else
30498 continue
30500 # Extract the definition of DEPDIR, am__include, and am__quote
30501 # from the Makefile without running `make'.
30502 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30503 test -z "$DEPDIR" && continue
30504 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30505 test -z "am__include" && continue
30506 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30507 # When using ansi2knr, U may be empty or an underscore; expand it
30508 U=`sed -n 's/^U = //p' < "$mf"`
30509 # Find all dependency output files, they are included files with
30510 # $(DEPDIR) in their names. We invoke sed twice because it is the
30511 # simplest approach to changing $(DEPDIR) to its actual value in the
30512 # expansion.
30513 for file in `sed -n "
30514 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30515 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30516 # Make sure the directory exists.
30517 test -f "$dirpart/$file" && continue
30518 fdir=`$as_dirname -- "$file" ||
30519 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30520 X"$file" : 'X\(//\)[^/]' \| \
30521 X"$file" : 'X\(//\)$' \| \
30522 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30523 $as_echo X"$file" |
30524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30525 s//\1/
30528 /^X\(\/\/\)[^/].*/{
30529 s//\1/
30532 /^X\(\/\/\)$/{
30533 s//\1/
30536 /^X\(\/\).*/{
30537 s//\1/
30540 s/.*/./; q'`
30541 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30542 # echo "creating $dirpart/$file"
30543 echo '# dummy' > "$dirpart/$file"
30544 done
30545 done
30548 "src/epaths.h":C)
30549 if test "${opsys}" = "mingw32"; then
30550 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
30551 else
30552 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
30555 "src/.gdbinit":C)
30556 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
30557 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
30561 esac
30562 done # for ac_tag
30565 as_fn_exit 0
30566 _ACEOF
30567 ac_clean_files=$ac_clean_files_save
30569 test $ac_write_fail = 0 ||
30570 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30573 # configure is writing to config.log, and then calls config.status.
30574 # config.status does its own redirection, appending to config.log.
30575 # Unfortunately, on DOS this fails, as config.log is still kept open
30576 # by configure, so config.status won't be able to write to it; its
30577 # output is simply discarded. So we exec the FD to /dev/null,
30578 # effectively closing config.log, so it can be properly (re)opened and
30579 # appended to by config.status. When coming back to configure, we
30580 # need to make the FD available again.
30581 if test "$no_create" != yes; then
30582 ac_cs_success=:
30583 ac_config_status_args=
30584 test "$silent" = yes &&
30585 ac_config_status_args="$ac_config_status_args --quiet"
30586 exec 5>/dev/null
30587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30588 exec 5>>config.log
30589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30590 # would make configure fail if this is the last instruction.
30591 $ac_cs_success || as_fn_exit $?
30593 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30595 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}