Fix race where emacs aborts when sent SIGTERM.
[emacs.git] / autogen / configure
blob35d95e7809ad699c101251c1d2d8b7d41988eb3f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 ns_check_file
608 WINDOW_SYSTEM_OBJ
609 EMACS_HEAPSIZE
610 TEMACS_POST_LINK
611 ADDSECTION
612 LD_SWITCH_SYSTEM_TEMACS
613 LIBGNU_LTLIBDEPS
614 LIBGNU_LIBDEPS
615 gltests_WITNESS
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
617 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
618 gl_GNULIB_ENABLED_tempname_FALSE
619 gl_GNULIB_ENABLED_tempname_TRUE
620 gl_GNULIB_ENABLED_strtoull_FALSE
621 gl_GNULIB_ENABLED_strtoull_TRUE
622 gl_GNULIB_ENABLED_strtoll_FALSE
623 gl_GNULIB_ENABLED_strtoll_TRUE
624 gl_GNULIB_ENABLED_stat_FALSE
625 gl_GNULIB_ENABLED_stat_TRUE
626 gl_GNULIB_ENABLED_secure_getenv_FALSE
627 gl_GNULIB_ENABLED_secure_getenv_TRUE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
629 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
630 gl_GNULIB_ENABLED_pathmax_FALSE
631 gl_GNULIB_ENABLED_pathmax_TRUE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
633 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
635 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
637 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
638 gl_GNULIB_ENABLED_getgroups_FALSE
639 gl_GNULIB_ENABLED_getgroups_TRUE
640 gl_GNULIB_ENABLED_getdtablesize_FALSE
641 gl_GNULIB_ENABLED_getdtablesize_TRUE
642 gl_GNULIB_ENABLED_euidaccess_FALSE
643 gl_GNULIB_ENABLED_euidaccess_TRUE
644 gl_GNULIB_ENABLED_dosname_FALSE
645 gl_GNULIB_ENABLED_dosname_TRUE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
648 LTLIBINTL
649 LIBINTL
650 LIB_EACCESS
651 WINDOWS_64_BIT_OFF_T
652 HAVE_UNISTD_H
653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
654 NEXT_UNISTD_H
655 LIB_TIMER_TIME
656 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
658 TIME_H_DEFINES_STRUCT_TIMESPEC
659 NEXT_AS_FIRST_DIRECTIVE_TIME_H
660 NEXT_TIME_H
661 WINDOWS_64_BIT_ST_SIZE
662 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
663 NEXT_SYS_STAT_H
664 NEXT_AS_FIRST_DIRECTIVE_STRING_H
665 NEXT_STRING_H
666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
667 NEXT_STDLIB_H
668 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 NEXT_STDIO_H
670 REPLACE_VSPRINTF
671 REPLACE_VSNPRINTF
672 REPLACE_VPRINTF
673 REPLACE_VFPRINTF
674 REPLACE_VDPRINTF
675 REPLACE_VASPRINTF
676 REPLACE_TMPFILE
677 REPLACE_STDIO_WRITE_FUNCS
678 REPLACE_STDIO_READ_FUNCS
679 REPLACE_SPRINTF
680 REPLACE_SNPRINTF
681 REPLACE_RENAMEAT
682 REPLACE_RENAME
683 REPLACE_REMOVE
684 REPLACE_PRINTF
685 REPLACE_POPEN
686 REPLACE_PERROR
687 REPLACE_OBSTACK_PRINTF
688 REPLACE_GETLINE
689 REPLACE_GETDELIM
690 REPLACE_FTELLO
691 REPLACE_FTELL
692 REPLACE_FSEEKO
693 REPLACE_FSEEK
694 REPLACE_FREOPEN
695 REPLACE_FPURGE
696 REPLACE_FPRINTF
697 REPLACE_FOPEN
698 REPLACE_FFLUSH
699 REPLACE_FDOPEN
700 REPLACE_FCLOSE
701 REPLACE_DPRINTF
702 HAVE_VDPRINTF
703 HAVE_VASPRINTF
704 HAVE_RENAMEAT
705 HAVE_POPEN
706 HAVE_PCLOSE
707 HAVE_FTELLO
708 HAVE_FSEEKO
709 HAVE_DPRINTF
710 HAVE_DECL_VSNPRINTF
711 HAVE_DECL_SNPRINTF
712 HAVE_DECL_OBSTACK_PRINTF
713 HAVE_DECL_GETLINE
714 HAVE_DECL_GETDELIM
715 HAVE_DECL_FTELLO
716 HAVE_DECL_FSEEKO
717 HAVE_DECL_FPURGE
718 GNULIB_VSPRINTF_POSIX
719 GNULIB_VSNPRINTF
720 GNULIB_VPRINTF_POSIX
721 GNULIB_VPRINTF
722 GNULIB_VFPRINTF_POSIX
723 GNULIB_VFPRINTF
724 GNULIB_VDPRINTF
725 GNULIB_VSCANF
726 GNULIB_VFSCANF
727 GNULIB_VASPRINTF
728 GNULIB_TMPFILE
729 GNULIB_STDIO_H_SIGPIPE
730 GNULIB_STDIO_H_NONBLOCKING
731 GNULIB_SPRINTF_POSIX
732 GNULIB_SNPRINTF
733 GNULIB_SCANF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_PCLOSE
745 GNULIB_OBSTACK_PRINTF_POSIX
746 GNULIB_OBSTACK_PRINTF
747 GNULIB_GETLINE
748 GNULIB_GETDELIM
749 GNULIB_GETCHAR
750 GNULIB_GETC
751 GNULIB_FWRITE
752 GNULIB_FTELLO
753 GNULIB_FTELL
754 GNULIB_FSEEKO
755 GNULIB_FSEEK
756 GNULIB_FSCANF
757 GNULIB_FREOPEN
758 GNULIB_FREAD
759 GNULIB_FPUTS
760 GNULIB_FPUTC
761 GNULIB_FPURGE
762 GNULIB_FPRINTF_POSIX
763 GNULIB_FPRINTF
764 GNULIB_FOPEN
765 GNULIB_FGETS
766 GNULIB_FGETC
767 GNULIB_FFLUSH
768 GNULIB_FDOPEN
769 GNULIB_FCLOSE
770 GNULIB_DPRINTF
771 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
772 NEXT_STDDEF_H
773 GL_GENERATE_STDDEF_H_FALSE
774 GL_GENERATE_STDDEF_H_TRUE
775 STDDEF_H
776 HAVE_WCHAR_T
777 REPLACE_NULL
778 HAVE__BOOL
779 GL_GENERATE_STDBOOL_H_FALSE
780 GL_GENERATE_STDBOOL_H_TRUE
781 STDBOOL_H
782 GL_GENERATE_STDARG_H_FALSE
783 GL_GENERATE_STDARG_H_TRUE
784 STDARG_H
785 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
786 NEXT_STDARG_H
787 GL_GENERATE_STDALIGN_H_FALSE
788 GL_GENERATE_STDALIGN_H_TRUE
789 STDALIGN_H
790 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
791 NEXT_SIGNAL_H
792 USE_ACL
793 LIB_ACL
794 LIB_PTHREAD_SIGMASK
795 REPLACE_RAISE
796 REPLACE_PTHREAD_SIGMASK
797 HAVE_SIGHANDLER_T
798 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
799 HAVE_STRUCT_SIGACTION_SA_SIGACTION
800 HAVE_SIGACTION
801 HAVE_SIGINFO_T
802 HAVE_SIGSET_T
803 HAVE_RAISE
804 HAVE_PTHREAD_SIGMASK
805 HAVE_POSIX_SIGNALBLOCKING
806 GNULIB_SIGACTION
807 GNULIB_SIGPROCMASK
808 GNULIB_SIGNAL_H_SIGPIPE
809 GNULIB_RAISE
810 GNULIB_PTHREAD_SIGMASK
811 HAVE_SYS_SELECT_H
812 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
813 NEXT_SYS_SELECT_H
814 REPLACE_SELECT
815 REPLACE_PSELECT
816 HAVE_PSELECT
817 GNULIB_SELECT
818 GNULIB_PSELECT
819 REPLACE_TIMEGM
820 REPLACE_NANOSLEEP
821 REPLACE_MKTIME
822 REPLACE_LOCALTIME_R
823 HAVE_TIMEGM
824 HAVE_STRPTIME
825 HAVE_NANOSLEEP
826 HAVE_DECL_LOCALTIME_R
827 GNULIB_TIME_R
828 GNULIB_TIMEGM
829 GNULIB_STRPTIME
830 GNULIB_NANOSLEEP
831 GNULIB_MKTIME
832 UNDEFINE_STRTOK_R
833 REPLACE_STRTOK_R
834 REPLACE_STRSIGNAL
835 REPLACE_STRNLEN
836 REPLACE_STRNDUP
837 REPLACE_STRNCAT
838 REPLACE_STRERROR_R
839 REPLACE_STRERROR
840 REPLACE_STRCHRNUL
841 REPLACE_STRCASESTR
842 REPLACE_STRSTR
843 REPLACE_STRDUP
844 REPLACE_STPNCPY
845 REPLACE_MEMMEM
846 REPLACE_MEMCHR
847 HAVE_STRVERSCMP
848 HAVE_DECL_STRSIGNAL
849 HAVE_DECL_STRERROR_R
850 HAVE_DECL_STRTOK_R
851 HAVE_STRCASESTR
852 HAVE_STRSEP
853 HAVE_STRPBRK
854 HAVE_DECL_STRNLEN
855 HAVE_DECL_STRNDUP
856 HAVE_DECL_STRDUP
857 HAVE_STRCHRNUL
858 HAVE_STPNCPY
859 HAVE_STPCPY
860 HAVE_RAWMEMCHR
861 HAVE_DECL_MEMRCHR
862 HAVE_MEMPCPY
863 HAVE_DECL_MEMMEM
864 HAVE_MEMCHR
865 HAVE_FFSLL
866 HAVE_FFSL
867 HAVE_MBSLEN
868 GNULIB_STRVERSCMP
869 GNULIB_STRSIGNAL
870 GNULIB_STRERROR_R
871 GNULIB_STRERROR
872 GNULIB_MBSTOK_R
873 GNULIB_MBSSEP
874 GNULIB_MBSSPN
875 GNULIB_MBSPBRK
876 GNULIB_MBSCSPN
877 GNULIB_MBSCASESTR
878 GNULIB_MBSPCASECMP
879 GNULIB_MBSNCASECMP
880 GNULIB_MBSCASECMP
881 GNULIB_MBSSTR
882 GNULIB_MBSRCHR
883 GNULIB_MBSCHR
884 GNULIB_MBSNLEN
885 GNULIB_MBSLEN
886 GNULIB_STRTOK_R
887 GNULIB_STRCASESTR
888 GNULIB_STRSTR
889 GNULIB_STRSEP
890 GNULIB_STRPBRK
891 GNULIB_STRNLEN
892 GNULIB_STRNDUP
893 GNULIB_STRNCAT
894 GNULIB_STRDUP
895 GNULIB_STRCHRNUL
896 GNULIB_STPNCPY
897 GNULIB_STPCPY
898 GNULIB_RAWMEMCHR
899 GNULIB_MEMRCHR
900 GNULIB_MEMPCPY
901 GNULIB_MEMMEM
902 GNULIB_MEMCHR
903 GNULIB_FFSLL
904 GNULIB_FFSL
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 NEXT_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
909 PRIPTR_PREFIX
910 PRI_MACROS_BROKEN
911 INT64_MAX_EQ_LONG_MAX
912 INT32_MAX_LT_INTMAX_MAX
913 REPLACE_STRTOIMAX
914 HAVE_DECL_STRTOUMAX
915 HAVE_DECL_STRTOIMAX
916 HAVE_DECL_IMAXDIV
917 HAVE_DECL_IMAXABS
918 GNULIB_STRTOUMAX
919 GNULIB_STRTOIMAX
920 GNULIB_IMAXDIV
921 GNULIB_IMAXABS
922 GL_GENERATE_STDINT_H_FALSE
923 GL_GENERATE_STDINT_H_TRUE
924 STDINT_H
925 WINT_T_SUFFIX
926 WCHAR_T_SUFFIX
927 SIG_ATOMIC_T_SUFFIX
928 SIZE_T_SUFFIX
929 PTRDIFF_T_SUFFIX
930 HAVE_SIGNED_WINT_T
931 HAVE_SIGNED_WCHAR_T
932 HAVE_SIGNED_SIG_ATOMIC_T
933 BITSIZEOF_WINT_T
934 BITSIZEOF_WCHAR_T
935 BITSIZEOF_SIG_ATOMIC_T
936 BITSIZEOF_SIZE_T
937 BITSIZEOF_PTRDIFF_T
938 APPLE_UNIVERSAL_BUILD
939 HAVE_SYS_BITYPES_H
940 HAVE_SYS_INTTYPES_H
941 HAVE_STDINT_H
942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
943 NEXT_STDINT_H
944 HAVE_SYS_TYPES_H
945 HAVE_INTTYPES_H
946 HAVE_WCHAR_H
947 HAVE_UNSIGNED_LONG_LONG_INT
948 HAVE_LONG_LONG_INT
949 HAVE_WINSOCK2_H
950 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
951 NEXT_SYS_TIME_H
952 REPLACE_STRUCT_TIMEVAL
953 REPLACE_GETTIMEOFDAY
954 HAVE_SYS_TIME_H
955 HAVE_STRUCT_TIMEVAL
956 HAVE_GETTIMEOFDAY
957 GNULIB_GETTIMEOFDAY
958 GNULIB_GL_UNISTD_H_GETOPT
959 GETOPT_H
960 HAVE_GETOPT_H
961 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
962 NEXT_GETOPT_H
963 GETLOADAVG_LIBS
964 REPLACE_WCTOMB
965 REPLACE_UNSETENV
966 REPLACE_STRTOD
967 REPLACE_SETENV
968 REPLACE_REALPATH
969 REPLACE_REALLOC
970 REPLACE_RANDOM_R
971 REPLACE_PUTENV
972 REPLACE_PTSNAME_R
973 REPLACE_PTSNAME
974 REPLACE_MKSTEMP
975 REPLACE_MBTOWC
976 REPLACE_MALLOC
977 REPLACE_CANONICALIZE_FILE_NAME
978 REPLACE_CALLOC
979 HAVE_DECL_UNSETENV
980 HAVE_UNLOCKPT
981 HAVE_SYS_LOADAVG_H
982 HAVE_STRUCT_RANDOM_DATA
983 HAVE_STRTOULL
984 HAVE_STRTOLL
985 HAVE_STRTOD
986 HAVE_DECL_SETENV
987 HAVE_SETENV
988 HAVE_SECURE_GETENV
989 HAVE_RPMATCH
990 HAVE_REALPATH
991 HAVE_RANDOM_R
992 HAVE_RANDOM_H
993 HAVE_RANDOM
994 HAVE_PTSNAME_R
995 HAVE_PTSNAME
996 HAVE_POSIX_OPENPT
997 HAVE_MKSTEMPS
998 HAVE_MKSTEMP
999 HAVE_MKOSTEMPS
1000 HAVE_MKOSTEMP
1001 HAVE_MKDTEMP
1002 HAVE_GRANTPT
1003 HAVE_GETSUBOPT
1004 HAVE_DECL_GETLOADAVG
1005 HAVE_CANONICALIZE_FILE_NAME
1006 HAVE_ATOLL
1007 HAVE__EXIT
1008 GNULIB_WCTOMB
1009 GNULIB_UNSETENV
1010 GNULIB_UNLOCKPT
1011 GNULIB_SYSTEM_POSIX
1012 GNULIB_STRTOULL
1013 GNULIB_STRTOLL
1014 GNULIB_STRTOD
1015 GNULIB_SETENV
1016 GNULIB_SECURE_GETENV
1017 GNULIB_RPMATCH
1018 GNULIB_REALPATH
1019 GNULIB_REALLOC_POSIX
1020 GNULIB_RANDOM_R
1021 GNULIB_RANDOM
1022 GNULIB_PUTENV
1023 GNULIB_PTSNAME_R
1024 GNULIB_PTSNAME
1025 GNULIB_POSIX_OPENPT
1026 GNULIB_MKSTEMPS
1027 GNULIB_MKSTEMP
1028 GNULIB_MKOSTEMPS
1029 GNULIB_MKOSTEMP
1030 GNULIB_MKDTEMP
1031 GNULIB_MBTOWC
1032 GNULIB_MALLOC_POSIX
1033 GNULIB_GRANTPT
1034 GNULIB_GETSUBOPT
1035 GNULIB_GETLOADAVG
1036 GNULIB_CANONICALIZE_FILE_NAME
1037 GNULIB_CALLOC_POSIX
1038 GNULIB_ATOLL
1039 GNULIB__EXIT
1040 REPLACE_UTIMENSAT
1041 REPLACE_STAT
1042 REPLACE_MKNOD
1043 REPLACE_MKFIFO
1044 REPLACE_MKDIR
1045 REPLACE_LSTAT
1046 REPLACE_FUTIMENS
1047 REPLACE_FSTATAT
1048 REPLACE_FSTAT
1049 HAVE_UTIMENSAT
1050 HAVE_MKNODAT
1051 HAVE_MKNOD
1052 HAVE_MKFIFOAT
1053 HAVE_MKFIFO
1054 HAVE_MKDIRAT
1055 HAVE_LSTAT
1056 HAVE_LCHMOD
1057 HAVE_FUTIMENS
1058 HAVE_FSTATAT
1059 HAVE_FCHMODAT
1060 GNULIB_UTIMENSAT
1061 GNULIB_STAT
1062 GNULIB_MKNODAT
1063 GNULIB_MKNOD
1064 GNULIB_MKFIFOAT
1065 GNULIB_MKFIFO
1066 GNULIB_MKDIRAT
1067 GNULIB_LSTAT
1068 GNULIB_LCHMOD
1069 GNULIB_FUTIMENS
1070 GNULIB_FSTATAT
1071 GNULIB_FSTAT
1072 GNULIB_FCHMODAT
1073 LIB_FDATASYNC
1074 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1075 NEXT_FCNTL_H
1076 REPLACE_OPENAT
1077 REPLACE_OPEN
1078 REPLACE_FCNTL
1079 HAVE_OPENAT
1080 HAVE_FCNTL
1081 GNULIB_OPENAT
1082 GNULIB_OPEN
1083 GNULIB_NONBLOCKING
1084 GNULIB_FCNTL
1085 GL_GENERATE_EXECINFO_H_FALSE
1086 GL_GENERATE_EXECINFO_H_TRUE
1087 LIB_EXECINFO
1088 EXECINFO_H
1089 EOVERFLOW_VALUE
1090 EOVERFLOW_HIDDEN
1091 ENOLINK_VALUE
1092 ENOLINK_HIDDEN
1093 EMULTIHOP_VALUE
1094 EMULTIHOP_HIDDEN
1095 GL_GENERATE_ERRNO_H_FALSE
1096 GL_GENERATE_ERRNO_H_TRUE
1097 ERRNO_H
1098 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1099 NEXT_ERRNO_H
1100 HAVE_DIRENT_H
1101 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1102 NEXT_DIRENT_H
1103 PRAGMA_COLUMNS
1104 PRAGMA_SYSTEM_HEADER
1105 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1106 INCLUDE_NEXT
1107 REPLACE_FDOPENDIR
1108 REPLACE_DIRFD
1109 REPLACE_CLOSEDIR
1110 REPLACE_OPENDIR
1111 HAVE_ALPHASORT
1112 HAVE_SCANDIR
1113 HAVE_FDOPENDIR
1114 HAVE_DECL_FDOPENDIR
1115 HAVE_DECL_DIRFD
1116 HAVE_CLOSEDIR
1117 HAVE_REWINDDIR
1118 HAVE_READDIR
1119 HAVE_OPENDIR
1120 GNULIB_ALPHASORT
1121 GNULIB_SCANDIR
1122 GNULIB_FDOPENDIR
1123 GNULIB_DIRFD
1124 GNULIB_CLOSEDIR
1125 GNULIB_REWINDDIR
1126 GNULIB_READDIR
1127 GNULIB_OPENDIR
1128 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1129 UNISTD_H_HAVE_WINSOCK2_H
1130 REPLACE_WRITE
1131 REPLACE_USLEEP
1132 REPLACE_UNLINKAT
1133 REPLACE_UNLINK
1134 REPLACE_TTYNAME_R
1135 REPLACE_SYMLINK
1136 REPLACE_SLEEP
1137 REPLACE_RMDIR
1138 REPLACE_READLINK
1139 REPLACE_READ
1140 REPLACE_PWRITE
1141 REPLACE_PREAD
1142 REPLACE_LSEEK
1143 REPLACE_LINKAT
1144 REPLACE_LINK
1145 REPLACE_LCHOWN
1146 REPLACE_ISATTY
1147 REPLACE_GETPAGESIZE
1148 REPLACE_GETGROUPS
1149 REPLACE_GETLOGIN_R
1150 REPLACE_GETDTABLESIZE
1151 REPLACE_GETDOMAINNAME
1152 REPLACE_GETCWD
1153 REPLACE_FTRUNCATE
1154 REPLACE_FCHOWNAT
1155 REPLACE_DUP2
1156 REPLACE_DUP
1157 REPLACE_CLOSE
1158 REPLACE_CHOWN
1159 HAVE_SYS_PARAM_H
1160 HAVE_OS_H
1161 HAVE_DECL_TTYNAME_R
1162 HAVE_DECL_SETHOSTNAME
1163 HAVE_DECL_GETUSERSHELL
1164 HAVE_DECL_GETPAGESIZE
1165 HAVE_DECL_GETLOGIN_R
1166 HAVE_DECL_GETDOMAINNAME
1167 HAVE_DECL_FDATASYNC
1168 HAVE_DECL_FCHDIR
1169 HAVE_DECL_ENVIRON
1170 HAVE_USLEEP
1171 HAVE_UNLINKAT
1172 HAVE_SYMLINKAT
1173 HAVE_SYMLINK
1174 HAVE_SLEEP
1175 HAVE_SETHOSTNAME
1176 HAVE_READLINKAT
1177 HAVE_READLINK
1178 HAVE_PWRITE
1179 HAVE_PREAD
1180 HAVE_PIPE2
1181 HAVE_PIPE
1182 HAVE_LINKAT
1183 HAVE_LINK
1184 HAVE_LCHOWN
1185 HAVE_GROUP_MEMBER
1186 HAVE_GETPAGESIZE
1187 HAVE_GETLOGIN
1188 HAVE_GETHOSTNAME
1189 HAVE_GETGROUPS
1190 HAVE_GETDTABLESIZE
1191 HAVE_FTRUNCATE
1192 HAVE_FSYNC
1193 HAVE_FDATASYNC
1194 HAVE_FCHOWNAT
1195 HAVE_FCHDIR
1196 HAVE_FACCESSAT
1197 HAVE_EUIDACCESS
1198 HAVE_DUP3
1199 HAVE_DUP2
1200 HAVE_CHOWN
1201 GNULIB_WRITE
1202 GNULIB_USLEEP
1203 GNULIB_UNLINKAT
1204 GNULIB_UNLINK
1205 GNULIB_UNISTD_H_SIGPIPE
1206 GNULIB_UNISTD_H_NONBLOCKING
1207 GNULIB_TTYNAME_R
1208 GNULIB_SYMLINKAT
1209 GNULIB_SYMLINK
1210 GNULIB_SLEEP
1211 GNULIB_SETHOSTNAME
1212 GNULIB_RMDIR
1213 GNULIB_READLINKAT
1214 GNULIB_READLINK
1215 GNULIB_READ
1216 GNULIB_PWRITE
1217 GNULIB_PREAD
1218 GNULIB_PIPE2
1219 GNULIB_PIPE
1220 GNULIB_LSEEK
1221 GNULIB_LINKAT
1222 GNULIB_LINK
1223 GNULIB_LCHOWN
1224 GNULIB_ISATTY
1225 GNULIB_GROUP_MEMBER
1226 GNULIB_GETUSERSHELL
1227 GNULIB_GETPAGESIZE
1228 GNULIB_GETLOGIN_R
1229 GNULIB_GETLOGIN
1230 GNULIB_GETHOSTNAME
1231 GNULIB_GETGROUPS
1232 GNULIB_GETDTABLESIZE
1233 GNULIB_GETDOMAINNAME
1234 GNULIB_GETCWD
1235 GNULIB_FTRUNCATE
1236 GNULIB_FSYNC
1237 GNULIB_FDATASYNC
1238 GNULIB_FCHOWNAT
1239 GNULIB_FCHDIR
1240 GNULIB_FACCESSAT
1241 GNULIB_EUIDACCESS
1242 GNULIB_ENVIRON
1243 GNULIB_DUP3
1244 GNULIB_DUP2
1245 GNULIB_DUP
1246 GNULIB_CLOSE
1247 GNULIB_CHOWN
1248 GNULIB_CHDIR
1249 LIB_CLOCK_GETTIME
1250 GL_GENERATE_BYTESWAP_H_FALSE
1251 GL_GENERATE_BYTESWAP_H_TRUE
1252 BYTESWAP_H
1253 GL_GENERATE_ALLOCA_H_FALSE
1254 GL_GENERATE_ALLOCA_H_TRUE
1255 ALLOCA_H
1256 ALLOCA
1257 GL_COND_LIBTOOL_FALSE
1258 GL_COND_LIBTOOL_TRUE
1259 POST_ALLOC_OBJ
1260 PRE_ALLOC_OBJ
1261 CYGWIN_OBJ
1262 RALLOC_OBJ
1263 OLDXMENU_DEPS
1264 LIBX_OTHER
1265 LIBXMENU
1266 OLDXMENU
1267 OLDXMENU_TARGET
1268 LIBXT_OTHER
1269 TOOLKIT_LIBW
1270 WIDGET_OBJ
1271 XOBJ
1272 XMENU_OBJ
1273 FONT_OBJ
1274 OTHER_FILES
1275 GNU_OBJC_CFLAGS
1276 ns_appsrc
1277 ns_appresdir
1278 ns_appbindir
1279 ns_appdir
1280 X_TOOLKIT_TYPE
1281 GNUSTEP_CFLAGS
1282 C_SWITCH_X_SITE
1283 LD_SWITCH_X_SITE
1284 gameuser
1285 gamedir
1286 bitmapdir
1287 etcdocdir
1288 archlibdir
1289 etcdir
1290 x_default_search_path
1291 lisppath
1292 locallisppath
1293 standardlisppath
1294 leimdir
1295 lispdir
1296 srcdir
1297 canonical
1298 configuration
1299 version
1300 copyright
1301 XGSELOBJ
1302 KRB4LIB
1303 DESLIB
1304 KRB5LIB
1305 CRYPTOLIB
1306 COM_ERRLIB
1307 LIBRESOLV
1308 LIBHESIOD
1309 TERMCAP_OBJ
1310 LIBS_TERMCAP
1311 BLESSMAIL_TARGET
1312 LIBS_MAIL
1313 liblockfile
1314 LIBXML2_LIBS
1315 LIBXML2_CFLAGS
1316 XINERAMA_LIBS
1317 XINERAMA_CFLAGS
1318 XRANDR_LIBS
1319 XRANDR_CFLAGS
1320 LIBXSM
1321 LIBGPM
1322 LIBGIF
1323 LIBTIFF
1324 LIBZ
1325 LIBPNG
1326 LIBJPEG
1327 LIBXPM
1328 M17N_FLT_LIBS
1329 M17N_FLT_CFLAGS
1330 LIBOTF_LIBS
1331 LIBOTF_CFLAGS
1332 FREETYPE_LIBS
1333 FREETYPE_CFLAGS
1334 XFT_LIBS
1335 XFT_CFLAGS
1336 FONTCONFIG_LIBS
1337 FONTCONFIG_CFLAGS
1338 LIBXMU
1339 LIBXTR6
1340 NOTIFY_OBJ
1341 GFILENOTIFY_LIBS
1342 GFILENOTIFY_CFLAGS
1343 LIBGNUTLS_LIBS
1344 LIBGNUTLS_CFLAGS
1345 LIBSELINUX_LIBS
1346 SETTINGS_LIBS
1347 SETTINGS_CFLAGS
1348 GOBJECT_LIBS
1349 GOBJECT_CFLAGS
1350 GCONF_LIBS
1351 GCONF_CFLAGS
1352 GSETTINGS_LIBS
1353 GSETTINGS_CFLAGS
1354 DBUS_OBJ
1355 DBUS_LIBS
1356 DBUS_CFLAGS
1357 GTK_OBJ
1358 GTK_LIBS
1359 GTK_CFLAGS
1360 IMAGEMAGICK_LIBS
1361 IMAGEMAGICK_CFLAGS
1362 RSVG_LIBS
1363 RSVG_CFLAGS
1364 LIB_PTHREAD
1365 VMLIMIT_OBJ
1366 GMALLOC_OBJ
1367 HAVE_XSERVER
1368 XARGS_LIMIT
1369 NTLIB
1370 LIB_WSOCK32
1371 LIBS_ECLIENT
1372 CM_OBJ
1373 NTDIR
1374 FIRSTFILE_OBJ
1375 W32_RES_LINK
1376 CLIENTW
1377 CLIENTRES
1378 UPDATE_MANIFEST
1379 EMACS_MANIFEST
1380 EMACSRES
1381 W32_LIBS
1382 W32_OBJ
1383 WINDRES
1384 NS_OBJC_OBJ
1385 NS_OBJ
1386 ns_self_contained
1387 INSTALL_ARCH_INDEP_EXTRA
1388 LIBS_GNUSTEP
1389 LD_SWITCH_X_SITE_RPATH
1390 XMKMF
1391 DEPFLAGS
1392 MKDEPDIR
1393 CFLAGS_SOUND
1394 ALSA_LIBS
1395 ALSA_CFLAGS
1396 LIBSOUND
1397 PKG_CONFIG
1398 LIB_MATH
1399 LIBS_SYSTEM
1400 C_SWITCH_SYSTEM
1401 UNEXEC_OBJ
1402 C_SWITCH_MACHINE
1403 LD_SWITCH_SYSTEM
1404 CANNOT_DUMP
1405 DOCMISC_W32
1406 INFO_OPTS
1407 INFO_EXT
1408 HAVE_MAKEINFO
1409 PAXCTL
1410 GZIP_PROG
1411 INSTALL_INFO
1412 LN_S_FILEONLY
1413 GNULIB_WARN_CFLAGS
1414 WERROR_CFLAGS
1415 WARN_CFLAGS
1416 RANLIB
1417 ARFLAGS
1419 EGREP
1420 GREP
1422 BUILDING_FOR_WINDOWSNT_FALSE
1423 BUILDING_FOR_WINDOWSNT_TRUE
1424 am__fastdepCC_FALSE
1425 am__fastdepCC_TRUE
1426 CCDEPMODE
1427 AMDEPBACKSLASH
1428 AMDEP_FALSE
1429 AMDEP_TRUE
1430 am__quote
1431 am__include
1432 DEPDIR
1433 OBJEXT
1434 EXEEXT
1435 ac_ct_CC
1436 CPPFLAGS
1437 LDFLAGS
1438 CFLAGS
1440 host_os
1441 host_vendor
1442 host_cpu
1443 host
1444 build_os
1445 build_vendor
1446 build_cpu
1447 build
1448 PROFILING_CFLAGS
1449 cache_file
1450 am__untar
1451 am__tar
1452 AMTAR
1453 am__leading_dot
1454 SET_MAKE
1456 mkdir_p
1457 MKDIR_P
1458 INSTALL_STRIP_PROGRAM
1459 STRIP
1460 install_sh
1461 MAKEINFO
1462 AUTOHEADER
1463 AUTOMAKE
1464 AUTOCONF
1465 ACLOCAL
1466 VERSION
1467 PACKAGE
1468 CYGPATH_W
1469 am__isrc
1470 INSTALL_DATA
1471 INSTALL_SCRIPT
1472 INSTALL_PROGRAM
1473 target_alias
1474 host_alias
1475 build_alias
1476 LIBS
1477 ECHO_T
1478 ECHO_N
1479 ECHO_C
1480 DEFS
1481 mandir
1482 localedir
1483 libdir
1484 psdir
1485 pdfdir
1486 dvidir
1487 htmldir
1488 infodir
1489 docdir
1490 oldincludedir
1491 includedir
1492 localstatedir
1493 sharedstatedir
1494 sysconfdir
1495 datadir
1496 datarootdir
1497 libexecdir
1498 sbindir
1499 bindir
1500 program_transform_name
1501 prefix
1502 exec_prefix
1503 PACKAGE_URL
1504 PACKAGE_BUGREPORT
1505 PACKAGE_STRING
1506 PACKAGE_VERSION
1507 PACKAGE_TARNAME
1508 PACKAGE_NAME
1509 PATH_SEPARATOR
1510 SHELL'
1511 ac_subst_files='deps_frag
1512 lisp_frag'
1513 ac_user_opts='
1514 enable_option_checking
1515 with_all
1516 with_pop
1517 with_kerberos
1518 with_kerberos5
1519 with_hesiod
1520 with_mmdf
1521 with_mail_unlink
1522 with_mailhost
1523 with_sound
1524 with_x_toolkit
1525 with_wide_int
1526 with_xpm
1527 with_jpeg
1528 with_tiff
1529 with_gif
1530 with_png
1531 with_rsvg
1532 with_xml2
1533 with_imagemagick
1534 with_xft
1535 with_libotf
1536 with_m17n_flt
1537 with_toolkit_scroll_bars
1538 with_xaw3d
1539 with_xim
1540 with_ns
1541 with_w32
1542 with_gpm
1543 with_dbus
1544 with_gconf
1545 with_gsettings
1546 with_selinux
1547 with_gnutls
1548 with_zlib
1549 with_file_notification
1550 with_makeinfo
1551 with_compress_install
1552 with_pkg_config_prog
1553 with_gameuser
1554 with_gnustep_conf
1555 enable_ns_self_contained
1556 enable_locallisppath
1557 enable_checking
1558 enable_check_lisp_object_type
1559 enable_profiling
1560 enable_autodepend
1561 enable_gtk_deprecation_warnings
1562 enable_dependency_tracking
1563 enable_largefile
1564 enable_gcc_warnings
1565 enable_link_time_optimization
1566 with_x
1567 enable_acl
1569 ac_precious_vars='build_alias
1570 host_alias
1571 target_alias
1573 CFLAGS
1574 LDFLAGS
1575 LIBS
1576 CPPFLAGS
1578 XMKMF'
1581 # Initialize some variables set by options.
1582 ac_init_help=
1583 ac_init_version=false
1584 ac_unrecognized_opts=
1585 ac_unrecognized_sep=
1586 # The variables have the same names as the options, with
1587 # dashes changed to underlines.
1588 cache_file=/dev/null
1589 exec_prefix=NONE
1590 no_create=
1591 no_recursion=
1592 prefix=NONE
1593 program_prefix=NONE
1594 program_suffix=NONE
1595 program_transform_name=s,x,x,
1596 silent=
1597 site=
1598 srcdir=
1599 verbose=
1600 x_includes=NONE
1601 x_libraries=NONE
1603 # Installation directory options.
1604 # These are left unexpanded so users can "make install exec_prefix=/foo"
1605 # and all the variables that are supposed to be based on exec_prefix
1606 # by default will actually change.
1607 # Use braces instead of parens because sh, perl, etc. also accept them.
1608 # (The list follows the same order as the GNU Coding Standards.)
1609 bindir='${exec_prefix}/bin'
1610 sbindir='${exec_prefix}/sbin'
1611 libexecdir='${exec_prefix}/libexec'
1612 datarootdir='${prefix}/share'
1613 datadir='${datarootdir}'
1614 sysconfdir='${prefix}/etc'
1615 sharedstatedir='${prefix}/com'
1616 localstatedir='${prefix}/var'
1617 includedir='${prefix}/include'
1618 oldincludedir='/usr/include'
1619 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1620 infodir='${datarootdir}/info'
1621 htmldir='${docdir}'
1622 dvidir='${docdir}'
1623 pdfdir='${docdir}'
1624 psdir='${docdir}'
1625 libdir='${exec_prefix}/lib'
1626 localedir='${datarootdir}/locale'
1627 mandir='${datarootdir}/man'
1629 ac_prev=
1630 ac_dashdash=
1631 for ac_option
1633 # If the previous option needs an argument, assign it.
1634 if test -n "$ac_prev"; then
1635 eval $ac_prev=\$ac_option
1636 ac_prev=
1637 continue
1640 case $ac_option in
1641 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1642 *) ac_optarg=yes ;;
1643 esac
1645 # Accept the important Cygnus configure options, so we can diagnose typos.
1647 case $ac_dashdash$ac_option in
1649 ac_dashdash=yes ;;
1651 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1652 ac_prev=bindir ;;
1653 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1654 bindir=$ac_optarg ;;
1656 -build | --build | --buil | --bui | --bu)
1657 ac_prev=build_alias ;;
1658 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1659 build_alias=$ac_optarg ;;
1661 -cache-file | --cache-file | --cache-fil | --cache-fi \
1662 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1663 ac_prev=cache_file ;;
1664 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1665 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1666 cache_file=$ac_optarg ;;
1668 --config-cache | -C)
1669 cache_file=config.cache ;;
1671 -datadir | --datadir | --datadi | --datad)
1672 ac_prev=datadir ;;
1673 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1674 datadir=$ac_optarg ;;
1676 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1677 | --dataroo | --dataro | --datar)
1678 ac_prev=datarootdir ;;
1679 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1680 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1681 datarootdir=$ac_optarg ;;
1683 -disable-* | --disable-*)
1684 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1685 # Reject names that are not valid shell variable names.
1686 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1687 as_fn_error "invalid feature name: $ac_useropt"
1688 ac_useropt_orig=$ac_useropt
1689 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1690 case $ac_user_opts in
1692 "enable_$ac_useropt"
1693 "*) ;;
1694 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1695 ac_unrecognized_sep=', ';;
1696 esac
1697 eval enable_$ac_useropt=no ;;
1699 -docdir | --docdir | --docdi | --doc | --do)
1700 ac_prev=docdir ;;
1701 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1702 docdir=$ac_optarg ;;
1704 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1705 ac_prev=dvidir ;;
1706 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1707 dvidir=$ac_optarg ;;
1709 -enable-* | --enable-*)
1710 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1711 # Reject names that are not valid shell variable names.
1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1713 as_fn_error "invalid feature name: $ac_useropt"
1714 ac_useropt_orig=$ac_useropt
1715 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716 case $ac_user_opts in
1718 "enable_$ac_useropt"
1719 "*) ;;
1720 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1721 ac_unrecognized_sep=', ';;
1722 esac
1723 eval enable_$ac_useropt=\$ac_optarg ;;
1725 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1726 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1727 | --exec | --exe | --ex)
1728 ac_prev=exec_prefix ;;
1729 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1730 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1731 | --exec=* | --exe=* | --ex=*)
1732 exec_prefix=$ac_optarg ;;
1734 -gas | --gas | --ga | --g)
1735 # Obsolete; use --with-gas.
1736 with_gas=yes ;;
1738 -help | --help | --hel | --he | -h)
1739 ac_init_help=long ;;
1740 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1741 ac_init_help=recursive ;;
1742 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1743 ac_init_help=short ;;
1745 -host | --host | --hos | --ho)
1746 ac_prev=host_alias ;;
1747 -host=* | --host=* | --hos=* | --ho=*)
1748 host_alias=$ac_optarg ;;
1750 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1751 ac_prev=htmldir ;;
1752 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1753 | --ht=*)
1754 htmldir=$ac_optarg ;;
1756 -includedir | --includedir | --includedi | --included | --include \
1757 | --includ | --inclu | --incl | --inc)
1758 ac_prev=includedir ;;
1759 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1760 | --includ=* | --inclu=* | --incl=* | --inc=*)
1761 includedir=$ac_optarg ;;
1763 -infodir | --infodir | --infodi | --infod | --info | --inf)
1764 ac_prev=infodir ;;
1765 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1766 infodir=$ac_optarg ;;
1768 -libdir | --libdir | --libdi | --libd)
1769 ac_prev=libdir ;;
1770 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1771 libdir=$ac_optarg ;;
1773 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1774 | --libexe | --libex | --libe)
1775 ac_prev=libexecdir ;;
1776 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1777 | --libexe=* | --libex=* | --libe=*)
1778 libexecdir=$ac_optarg ;;
1780 -localedir | --localedir | --localedi | --localed | --locale)
1781 ac_prev=localedir ;;
1782 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1783 localedir=$ac_optarg ;;
1785 -localstatedir | --localstatedir | --localstatedi | --localstated \
1786 | --localstate | --localstat | --localsta | --localst | --locals)
1787 ac_prev=localstatedir ;;
1788 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1789 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1790 localstatedir=$ac_optarg ;;
1792 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1793 ac_prev=mandir ;;
1794 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1795 mandir=$ac_optarg ;;
1797 -nfp | --nfp | --nf)
1798 # Obsolete; use --without-fp.
1799 with_fp=no ;;
1801 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1802 | --no-cr | --no-c | -n)
1803 no_create=yes ;;
1805 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1806 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1807 no_recursion=yes ;;
1809 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1810 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1811 | --oldin | --oldi | --old | --ol | --o)
1812 ac_prev=oldincludedir ;;
1813 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1814 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1815 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1816 oldincludedir=$ac_optarg ;;
1818 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1819 ac_prev=prefix ;;
1820 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1821 prefix=$ac_optarg ;;
1823 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1824 | --program-pre | --program-pr | --program-p)
1825 ac_prev=program_prefix ;;
1826 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1827 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1828 program_prefix=$ac_optarg ;;
1830 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1831 | --program-suf | --program-su | --program-s)
1832 ac_prev=program_suffix ;;
1833 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1834 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1835 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1845 -program-transform-name=* | --program-transform-name=* \
1846 | --program-transform-nam=* | --program-transform-na=* \
1847 | --program-transform-n=* | --program-transform-=* \
1848 | --program-transform=* | --program-transfor=* \
1849 | --program-transfo=* | --program-transf=* \
1850 | --program-trans=* | --program-tran=* \
1851 | --progr-tra=* | --program-tr=* | --program-t=*)
1852 program_transform_name=$ac_optarg ;;
1854 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1855 ac_prev=pdfdir ;;
1856 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1857 pdfdir=$ac_optarg ;;
1859 -psdir | --psdir | --psdi | --psd | --ps)
1860 ac_prev=psdir ;;
1861 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1862 psdir=$ac_optarg ;;
1864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1865 | -silent | --silent | --silen | --sile | --sil)
1866 silent=yes ;;
1868 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1869 ac_prev=sbindir ;;
1870 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1871 | --sbi=* | --sb=*)
1872 sbindir=$ac_optarg ;;
1874 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1875 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1876 | --sharedst | --shareds | --shared | --share | --shar \
1877 | --sha | --sh)
1878 ac_prev=sharedstatedir ;;
1879 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1880 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1881 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1882 | --sha=* | --sh=*)
1883 sharedstatedir=$ac_optarg ;;
1885 -site | --site | --sit)
1886 ac_prev=site ;;
1887 -site=* | --site=* | --sit=*)
1888 site=$ac_optarg ;;
1890 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1891 ac_prev=srcdir ;;
1892 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1893 srcdir=$ac_optarg ;;
1895 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1896 | --syscon | --sysco | --sysc | --sys | --sy)
1897 ac_prev=sysconfdir ;;
1898 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1899 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1900 sysconfdir=$ac_optarg ;;
1902 -target | --target | --targe | --targ | --tar | --ta | --t)
1903 ac_prev=target_alias ;;
1904 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1905 target_alias=$ac_optarg ;;
1907 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1908 verbose=yes ;;
1910 -version | --version | --versio | --versi | --vers | -V)
1911 ac_init_version=: ;;
1913 -with-* | --with-*)
1914 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1915 # Reject names that are not valid shell variable names.
1916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1917 as_fn_error "invalid package name: $ac_useropt"
1918 ac_useropt_orig=$ac_useropt
1919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1920 case $ac_user_opts in
1922 "with_$ac_useropt"
1923 "*) ;;
1924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1925 ac_unrecognized_sep=', ';;
1926 esac
1927 eval with_$ac_useropt=\$ac_optarg ;;
1929 -without-* | --without-*)
1930 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1931 # Reject names that are not valid shell variable names.
1932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1933 as_fn_error "invalid package name: $ac_useropt"
1934 ac_useropt_orig=$ac_useropt
1935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1936 case $ac_user_opts in
1938 "with_$ac_useropt"
1939 "*) ;;
1940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1941 ac_unrecognized_sep=', ';;
1942 esac
1943 eval with_$ac_useropt=no ;;
1945 --x)
1946 # Obsolete; use --with-x.
1947 with_x=yes ;;
1949 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1950 | --x-incl | --x-inc | --x-in | --x-i)
1951 ac_prev=x_includes ;;
1952 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1953 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1954 x_includes=$ac_optarg ;;
1956 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1957 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1958 ac_prev=x_libraries ;;
1959 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1960 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1961 x_libraries=$ac_optarg ;;
1963 -*) as_fn_error "unrecognized option: \`$ac_option'
1964 Try \`$0 --help' for more information."
1967 *=*)
1968 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1969 # Reject names that are not valid shell variable names.
1970 case $ac_envvar in #(
1971 '' | [0-9]* | *[!_$as_cr_alnum]* )
1972 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1973 esac
1974 eval $ac_envvar=\$ac_optarg
1975 export $ac_envvar ;;
1978 # FIXME: should be removed in autoconf 3.0.
1979 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1980 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1981 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1982 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1985 esac
1986 done
1988 if test -n "$ac_prev"; then
1989 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1990 as_fn_error "missing argument to $ac_option"
1993 if test -n "$ac_unrecognized_opts"; then
1994 case $enable_option_checking in
1995 no) ;;
1996 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1997 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1998 esac
2001 # Check all directory arguments for consistency.
2002 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2003 datadir sysconfdir sharedstatedir localstatedir includedir \
2004 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2005 libdir localedir mandir
2007 eval ac_val=\$$ac_var
2008 # Remove trailing slashes.
2009 case $ac_val in
2010 */ )
2011 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2012 eval $ac_var=\$ac_val;;
2013 esac
2014 # Be sure to have absolute directory names.
2015 case $ac_val in
2016 [\\/$]* | ?:[\\/]* ) continue;;
2017 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2018 esac
2019 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2020 done
2022 # There might be people who depend on the old broken behavior: `$host'
2023 # used to hold the argument of --host etc.
2024 # FIXME: To remove some day.
2025 build=$build_alias
2026 host=$host_alias
2027 target=$target_alias
2029 # FIXME: To remove some day.
2030 if test "x$host_alias" != x; then
2031 if test "x$build_alias" = x; then
2032 cross_compiling=maybe
2033 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2034 If a cross compiler is detected then cross compile mode will be used." >&2
2035 elif test "x$build_alias" != "x$host_alias"; then
2036 cross_compiling=yes
2040 ac_tool_prefix=
2041 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2043 test "$silent" = yes && exec 6>/dev/null
2046 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2047 ac_ls_di=`ls -di .` &&
2048 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2049 as_fn_error "working directory cannot be determined"
2050 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2051 as_fn_error "pwd does not report name of working directory"
2054 # Find the source files, if location was not specified.
2055 if test -z "$srcdir"; then
2056 ac_srcdir_defaulted=yes
2057 # Try the directory containing this script, then the parent directory.
2058 ac_confdir=`$as_dirname -- "$as_myself" ||
2059 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2060 X"$as_myself" : 'X\(//\)[^/]' \| \
2061 X"$as_myself" : 'X\(//\)$' \| \
2062 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2063 $as_echo X"$as_myself" |
2064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2065 s//\1/
2068 /^X\(\/\/\)[^/].*/{
2069 s//\1/
2072 /^X\(\/\/\)$/{
2073 s//\1/
2076 /^X\(\/\).*/{
2077 s//\1/
2080 s/.*/./; q'`
2081 srcdir=$ac_confdir
2082 if test ! -r "$srcdir/$ac_unique_file"; then
2083 srcdir=..
2085 else
2086 ac_srcdir_defaulted=no
2088 if test ! -r "$srcdir/$ac_unique_file"; then
2089 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2090 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2092 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2093 ac_abs_confdir=`(
2094 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2095 pwd)`
2096 # When building in place, set srcdir=.
2097 if test "$ac_abs_confdir" = "$ac_pwd"; then
2098 srcdir=.
2100 # Remove unnecessary trailing slashes from srcdir.
2101 # Double slashes in file names in object file debugging info
2102 # mess up M-x gdb in Emacs.
2103 case $srcdir in
2104 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2105 esac
2106 for ac_var in $ac_precious_vars; do
2107 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2108 eval ac_env_${ac_var}_value=\$${ac_var}
2109 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2110 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2111 done
2114 # Report the --help message.
2116 if test "$ac_init_help" = "long"; then
2117 # Omit some internal or obsolete options to make the list less imposing.
2118 # This message is too long to be a string in the A/UX 3.1 sh.
2119 cat <<_ACEOF
2120 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2122 Usage: $0 [OPTION]... [VAR=VALUE]...
2124 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2125 VAR=VALUE. See below for descriptions of some of the useful variables.
2127 Defaults for the options are specified in brackets.
2129 Configuration:
2130 -h, --help display this help and exit
2131 --help=short display options specific to this package
2132 --help=recursive display the short help of all the included packages
2133 -V, --version display version information and exit
2134 -q, --quiet, --silent do not print \`checking...' messages
2135 --cache-file=FILE cache test results in FILE [disabled]
2136 -C, --config-cache alias for \`--cache-file=config.cache'
2137 -n, --no-create do not create output files
2138 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2140 Installation directories:
2141 --prefix=PREFIX install architecture-independent files in PREFIX
2142 [$ac_default_prefix]
2143 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2144 [PREFIX]
2146 By default, \`make install' will install all the files in
2147 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2148 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2149 for instance \`--prefix=\$HOME'.
2151 For better control, use the options below.
2153 Fine tuning of the installation directories:
2154 --bindir=DIR user executables [EPREFIX/bin]
2155 --sbindir=DIR system admin executables [EPREFIX/sbin]
2156 --libexecdir=DIR program executables [EPREFIX/libexec]
2157 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2158 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2159 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2160 --libdir=DIR object code libraries [EPREFIX/lib]
2161 --includedir=DIR C header files [PREFIX/include]
2162 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2163 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2164 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2165 --infodir=DIR info documentation [DATAROOTDIR/info]
2166 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2167 --mandir=DIR man documentation [DATAROOTDIR/man]
2168 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2169 --htmldir=DIR html documentation [DOCDIR]
2170 --dvidir=DIR dvi documentation [DOCDIR]
2171 --pdfdir=DIR pdf documentation [DOCDIR]
2172 --psdir=DIR ps documentation [DOCDIR]
2173 _ACEOF
2175 cat <<\_ACEOF
2177 Program names:
2178 --program-prefix=PREFIX prepend PREFIX to installed program names
2179 --program-suffix=SUFFIX append SUFFIX to installed program names
2180 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2182 X features:
2183 --x-includes=DIR X include files are in DIR
2184 --x-libraries=DIR X library files are in DIR
2186 System types:
2187 --build=BUILD configure for building on BUILD [guessed]
2188 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2189 _ACEOF
2192 if test -n "$ac_init_help"; then
2193 case $ac_init_help in
2194 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2195 esac
2196 cat <<\_ACEOF
2198 Optional Features:
2199 --disable-option-checking ignore unrecognized --enable/--with options
2200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2202 --disable-ns-self-contained
2203 disable self contained build under NeXTstep
2204 --enable-locallisppath=PATH
2205 directories Emacs should search for lisp files
2206 specific to this site
2207 --enable-checking[=LIST]
2208 enable expensive run-time checks. With LIST, enable
2209 only specific categories of checks. Categories are:
2210 all,yes,no. Flags are: stringbytes, stringoverrun,
2211 stringfreelist, xmallocoverrun, conslist, glyphs
2212 --enable-check-lisp-object-type
2213 enable compile time checks for the Lisp_Object data
2214 type. This is useful for development for catching
2215 certain types of bugs.
2216 --enable-profiling build emacs with low-level, gprof profiling support.
2217 Mainly useful for debugging Emacs itself. May not
2218 work on all platforms. Stops profiler.el working.
2219 --enable-autodepend automatically generate dependencies to .h-files.
2220 Requires GNU Make and Gcc. Enabled if GNU Make and
2221 Gcc is found
2222 --enable-gtk-deprecation-warnings
2223 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2224 --disable-dependency-tracking speeds up one-time build
2225 --enable-dependency-tracking do not reject slow dependency extractors
2226 --disable-largefile omit support for large files
2227 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2228 intended for developers, and may generate false
2229 alarms when used with older or non-GNU development
2230 tools.
2231 --enable-link-time-optimization
2232 build emacs with link-time optimization. This is
2233 supported only for GCC since 4.5.0.
2234 --disable-acl do not support ACLs
2236 Optional Packages:
2237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2239 --without-all omit almost all features and build small executable
2240 with minimal dependencies
2241 --without-pop don't support POP mail retrieval with movemail
2242 --with-kerberos support Kerberos-authenticated POP
2243 --with-kerberos5 support Kerberos version 5 authenticated POP
2244 --with-hesiod support Hesiod to get the POP server host
2245 --with-mmdf support MMDF mailboxes
2246 --with-mail-unlink unlink, rather than empty, mail spool after reading
2247 --with-mailhost=HOSTNAME
2248 string giving default POP mail host
2249 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2250 oss, bsd-ossaudio, no; default yes). Only for
2251 GNU/Linux, FreeBSD, NetBSD, MinGW.
2252 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2253 gtk3, lucid or athena, motif, no)
2254 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2255 --without-xpm don't compile with XPM image support
2256 --without-jpeg don't compile with JPEG image support
2257 --without-tiff don't compile with TIFF image support
2258 --without-gif don't compile with GIF image support
2259 --without-png don't compile with PNG image support
2260 --without-rsvg don't compile with SVG image support
2261 --without-xml2 don't compile with XML parsing support
2262 --without-imagemagick don't compile with ImageMagick image support
2263 --without-xft don't use XFT for anti aliased fonts
2264 --without-libotf don't use libotf for OpenType font support
2265 --without-m17n-flt don't use m17n-flt for text shaping
2266 --without-toolkit-scroll-bars
2267 don't use Motif or Xaw3d scroll bars
2268 --without-xaw3d don't use Xaw3d
2269 --without-xim don't use X11 XIM
2270 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2271 --with-w32 use native MS Windows GUI in a Cygwin build
2272 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2273 console
2274 --without-dbus don't compile with D-Bus support
2275 --without-gconf don't compile with GConf support
2276 --without-gsettings don't compile with GSettings support
2277 --without-selinux don't compile with SELinux support
2278 --without-gnutls don't use -lgnutls for SSL/TLS support
2279 --without-zlib don't compile with zlib decompression support
2280 --with-file-notification=LIB
2281 use a file notification library (LIB one of: yes,
2282 gfile, inotify, w32, no)
2283 --without-makeinfo don't require makeinfo for building manuals
2284 --without-compress-install
2285 don't compress some files (.el, .info, etc.) when
2286 installing. Equivalent to: make GZIP_PROG= install
2287 --with-pkg-config-prog=FILENAME
2288 file name of pkg-config for finding GTK and librsvg
2289 --with-gameuser=USER user for shared game score files
2290 --with-gnustep-conf=FILENAME
2291 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2292 or /etc/GNUstep/GNUstep.conf
2293 --with-x use the X Window System
2295 Some influential environment variables:
2296 CC C compiler command
2297 CFLAGS C compiler flags
2298 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2299 nonstandard directory <lib dir>
2300 LIBS libraries to pass to the linker, e.g. -l<library>
2301 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2302 you have headers in a nonstandard directory <include dir>
2303 CPP C preprocessor
2304 XMKMF Path to xmkmf, Makefile generator for X Window System
2306 Use these variables to override the choices made by `configure' or to help
2307 it to find libraries and programs with nonstandard names/locations.
2309 Report bugs to the package provider.
2310 _ACEOF
2311 ac_status=$?
2314 if test "$ac_init_help" = "recursive"; then
2315 # If there are subdirs, report their specific --help.
2316 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2317 test -d "$ac_dir" ||
2318 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2319 continue
2320 ac_builddir=.
2322 case "$ac_dir" in
2323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2325 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2326 # A ".." for each directory in $ac_dir_suffix.
2327 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2328 case $ac_top_builddir_sub in
2329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2331 esac ;;
2332 esac
2333 ac_abs_top_builddir=$ac_pwd
2334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2335 # for backward compatibility:
2336 ac_top_builddir=$ac_top_build_prefix
2338 case $srcdir in
2339 .) # We are building in place.
2340 ac_srcdir=.
2341 ac_top_srcdir=$ac_top_builddir_sub
2342 ac_abs_top_srcdir=$ac_pwd ;;
2343 [\\/]* | ?:[\\/]* ) # Absolute name.
2344 ac_srcdir=$srcdir$ac_dir_suffix;
2345 ac_top_srcdir=$srcdir
2346 ac_abs_top_srcdir=$srcdir ;;
2347 *) # Relative name.
2348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2349 ac_top_srcdir=$ac_top_build_prefix$srcdir
2350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2351 esac
2352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2354 cd "$ac_dir" || { ac_status=$?; continue; }
2355 # Check for guested configure.
2356 if test -f "$ac_srcdir/configure.gnu"; then
2357 echo &&
2358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2359 elif test -f "$ac_srcdir/configure"; then
2360 echo &&
2361 $SHELL "$ac_srcdir/configure" --help=recursive
2362 else
2363 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2364 fi || ac_status=$?
2365 cd "$ac_pwd" || { ac_status=$?; break; }
2366 done
2369 test -n "$ac_init_help" && exit $ac_status
2370 if $ac_init_version; then
2371 cat <<\_ACEOF
2372 emacs configure 24.3.50
2373 generated by GNU Autoconf 2.65
2375 Copyright (C) 2009 Free Software Foundation, Inc.
2376 This configure script is free software; the Free Software Foundation
2377 gives unlimited permission to copy, distribute and modify it.
2378 _ACEOF
2379 exit
2382 ## ------------------------ ##
2383 ## Autoconf initialization. ##
2384 ## ------------------------ ##
2386 # ac_fn_c_try_compile LINENO
2387 # --------------------------
2388 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2389 ac_fn_c_try_compile ()
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 rm -f conftest.$ac_objext
2393 if { { ac_try="$ac_compile"
2394 case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397 esac
2398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2399 $as_echo "$ac_try_echo"; } >&5
2400 (eval "$ac_compile") 2>conftest.err
2401 ac_status=$?
2402 if test -s conftest.err; then
2403 grep -v '^ *+' conftest.err >conftest.er1
2404 cat conftest.er1 >&5
2405 mv -f conftest.er1 conftest.err
2407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408 test $ac_status = 0; } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then :
2412 ac_retval=0
2413 else
2414 $as_echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2417 ac_retval=1
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 as_fn_set_status $ac_retval
2422 } # ac_fn_c_try_compile
2424 # ac_fn_c_try_cpp LINENO
2425 # ----------------------
2426 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2427 ac_fn_c_try_cpp ()
2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430 if { { ac_try="$ac_cpp conftest.$ac_ext"
2431 case "(($ac_try" in
2432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433 *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2438 ac_status=$?
2439 if test -s conftest.err; then
2440 grep -v '^ *+' conftest.err >conftest.er1
2441 cat conftest.er1 >&5
2442 mv -f conftest.er1 conftest.err
2444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2445 test $ac_status = 0; } >/dev/null && {
2446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2447 test ! -s conftest.err
2448 }; then :
2449 ac_retval=0
2450 else
2451 $as_echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2454 ac_retval=1
2456 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 as_fn_set_status $ac_retval
2459 } # ac_fn_c_try_cpp
2461 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2462 # -------------------------------------------------------
2463 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2464 # the include files in INCLUDES and setting the cache variable VAR
2465 # accordingly.
2466 ac_fn_c_check_header_mongrel ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2473 $as_echo_n "(cached) " >&6
2475 eval ac_res=\$$3
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 else
2479 # Is the header compilable?
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2481 $as_echo_n "checking $2 usability... " >&6; }
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2485 #include <$2>
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488 ac_header_compiler=yes
2489 else
2490 ac_header_compiler=no
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2494 $as_echo "$ac_header_compiler" >&6; }
2496 # Is the header present?
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2498 $as_echo_n "checking $2 presence... " >&6; }
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2501 #include <$2>
2502 _ACEOF
2503 if ac_fn_c_try_cpp "$LINENO"; then :
2504 ac_header_preproc=yes
2505 else
2506 ac_header_preproc=no
2508 rm -f conftest.err conftest.$ac_ext
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2510 $as_echo "$ac_header_preproc" >&6; }
2512 # So? What about this header?
2513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2514 yes:no: )
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2516 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2518 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2520 no:yes:* )
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2522 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2524 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2526 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2528 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2530 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2532 esac
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2534 $as_echo_n "checking for $2... " >&6; }
2535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 eval "$3=\$ac_header_compiler"
2540 eval ac_res=\$$3
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2542 $as_echo "$ac_res" >&6; }
2544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546 } # ac_fn_c_check_header_mongrel
2548 # ac_fn_c_try_run LINENO
2549 # ----------------------
2550 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2551 # that executables *can* be run.
2552 ac_fn_c_try_run ()
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 if { { ac_try="$ac_link"
2556 case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559 esac
2560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2561 $as_echo "$ac_try_echo"; } >&5
2562 (eval "$ac_link") 2>&5
2563 ac_status=$?
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2566 { { case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_try") 2>&5
2573 ac_status=$?
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; }; }; then :
2576 ac_retval=0
2577 else
2578 $as_echo "$as_me: program exited with status $ac_status" >&5
2579 $as_echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2582 ac_retval=$ac_status
2584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2586 as_fn_set_status $ac_retval
2588 } # ac_fn_c_try_run
2590 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2591 # -------------------------------------------------------
2592 # Tests whether HEADER exists and can be compiled using the include files in
2593 # INCLUDES, setting the cache variable VAR accordingly.
2594 ac_fn_c_check_header_compile ()
2596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2598 $as_echo_n "checking for $2... " >&6; }
2599 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h. */
2605 #include <$2>
2606 _ACEOF
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608 eval "$3=yes"
2609 else
2610 eval "$3=no"
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 eval ac_res=\$$3
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2616 $as_echo "$ac_res" >&6; }
2617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2619 } # ac_fn_c_check_header_compile
2621 # ac_fn_c_try_link LINENO
2622 # -----------------------
2623 # Try to link conftest.$ac_ext, and return whether this succeeded.
2624 ac_fn_c_try_link ()
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { { ac_try="$ac_link"
2629 case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632 esac
2633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2634 $as_echo "$ac_try_echo"; } >&5
2635 (eval "$ac_link") 2>conftest.err
2636 ac_status=$?
2637 if test -s conftest.err; then
2638 grep -v '^ *+' conftest.err >conftest.er1
2639 cat conftest.er1 >&5
2640 mv -f conftest.er1 conftest.err
2642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643 test $ac_status = 0; } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest$ac_exeext && {
2647 test "$cross_compiling" = yes ||
2648 $as_test_x conftest$ac_exeext
2649 }; then :
2650 ac_retval=0
2651 else
2652 $as_echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 ac_retval=1
2657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2659 # interfere with the next link command; also delete a directory that is
2660 # left behind by Apple's compiler. We do this before executing the actions.
2661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2663 as_fn_set_status $ac_retval
2665 } # ac_fn_c_try_link
2667 # ac_fn_c_check_decl LINENO SYMBOL VAR
2668 # ------------------------------------
2669 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2670 ac_fn_c_check_decl ()
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2674 $as_echo_n "checking whether $2 is declared... " >&6; }
2675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h. */
2682 main ()
2684 #ifndef $2
2685 (void) $2;
2686 #endif
2689 return 0;
2691 _ACEOF
2692 if ac_fn_c_try_compile "$LINENO"; then :
2693 eval "$3=yes"
2694 else
2695 eval "$3=no"
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 eval ac_res=\$$3
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701 $as_echo "$ac_res" >&6; }
2702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2704 } # ac_fn_c_check_decl
2706 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2707 # ----------------------------------------------
2708 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2709 ac_fn_c_check_header_preproc ()
2711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2713 $as_echo_n "checking for $2... " >&6; }
2714 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h. */
2719 #include <$2>
2720 _ACEOF
2721 if ac_fn_c_try_cpp "$LINENO"; then :
2722 eval "$3=yes"
2723 else
2724 eval "$3=no"
2726 rm -f conftest.err conftest.$ac_ext
2728 eval ac_res=\$$3
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2733 } # ac_fn_c_check_header_preproc
2735 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2736 # ----------------------------------------------------
2737 # Tries to find if the field MEMBER exists in type AGGR, after including
2738 # INCLUDES, setting cache variable VAR accordingly.
2739 ac_fn_c_check_member ()
2741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2743 $as_echo_n "checking for $2.$3... " >&6; }
2744 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2751 main ()
2753 static $2 ac_aggr;
2754 if (ac_aggr.$3)
2755 return 0;
2757 return 0;
2759 _ACEOF
2760 if ac_fn_c_try_compile "$LINENO"; then :
2761 eval "$4=yes"
2762 else
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h. */
2767 main ()
2769 static $2 ac_aggr;
2770 if (sizeof ac_aggr.$3)
2771 return 0;
2773 return 0;
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777 eval "$4=yes"
2778 else
2779 eval "$4=no"
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 eval ac_res=\$$4
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2790 } # ac_fn_c_check_member
2792 # ac_fn_c_check_func LINENO FUNC VAR
2793 # ----------------------------------
2794 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2795 ac_fn_c_check_func ()
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2799 $as_echo_n "checking for $2... " >&6; }
2800 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804 /* end confdefs.h. */
2805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2807 #define $2 innocuous_$2
2809 /* System header to define __stub macros and hopefully few prototypes,
2810 which can conflict with char $2 (); below.
2811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2812 <limits.h> exists even on freestanding compilers. */
2814 #ifdef __STDC__
2815 # include <limits.h>
2816 #else
2817 # include <assert.h>
2818 #endif
2820 #undef $2
2822 /* Override any GCC internal prototype to avoid an error.
2823 Use char because int might match the return type of a GCC
2824 builtin and then its argument prototype would still apply. */
2825 #ifdef __cplusplus
2826 extern "C"
2827 #endif
2828 char $2 ();
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined __stub_$2 || defined __stub___$2
2833 choke me
2834 #endif
2837 main ()
2839 return $2 ();
2841 return 0;
2843 _ACEOF
2844 if ac_fn_c_try_link "$LINENO"; then :
2845 eval "$3=yes"
2846 else
2847 eval "$3=no"
2849 rm -f core conftest.err conftest.$ac_objext \
2850 conftest$ac_exeext conftest.$ac_ext
2852 eval ac_res=\$$3
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2854 $as_echo "$ac_res" >&6; }
2855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2857 } # ac_fn_c_check_func
2859 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2860 # -------------------------------------------
2861 # Tests whether TYPE exists after having included INCLUDES, setting cache
2862 # variable VAR accordingly.
2863 ac_fn_c_check_type ()
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 eval "$3=no"
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873 /* end confdefs.h. */
2876 main ()
2878 if (sizeof ($2))
2879 return 0;
2881 return 0;
2883 _ACEOF
2884 if ac_fn_c_try_compile "$LINENO"; then :
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2889 main ()
2891 if (sizeof (($2)))
2892 return 0;
2894 return 0;
2896 _ACEOF
2897 if ac_fn_c_try_compile "$LINENO"; then :
2899 else
2900 eval "$3=yes"
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 eval ac_res=\$$3
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2908 $as_echo "$ac_res" >&6; }
2909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2911 } # ac_fn_c_check_type
2913 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2914 # --------------------------------------------
2915 # Tries to find the compile-time value of EXPR in a program that includes
2916 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2917 # computed
2918 ac_fn_c_compute_int ()
2920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2921 if test "$cross_compiling" = yes; then
2922 # Depending upon the size, compute the lo and hi bounds.
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2927 main ()
2929 static int test_array [1 - 2 * !(($2) >= 0)];
2930 test_array [0] = 0
2933 return 0;
2935 _ACEOF
2936 if ac_fn_c_try_compile "$LINENO"; then :
2937 ac_lo=0 ac_mid=0
2938 while :; do
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2943 main ()
2945 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2946 test_array [0] = 0
2949 return 0;
2951 _ACEOF
2952 if ac_fn_c_try_compile "$LINENO"; then :
2953 ac_hi=$ac_mid; break
2954 else
2955 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2956 if test $ac_lo -le $ac_mid; then
2957 ac_lo= ac_hi=
2958 break
2960 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 done
2964 else
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2969 main ()
2971 static int test_array [1 - 2 * !(($2) < 0)];
2972 test_array [0] = 0
2975 return 0;
2977 _ACEOF
2978 if ac_fn_c_try_compile "$LINENO"; then :
2979 ac_hi=-1 ac_mid=-1
2980 while :; do
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2985 main ()
2987 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2988 test_array [0] = 0
2991 return 0;
2993 _ACEOF
2994 if ac_fn_c_try_compile "$LINENO"; then :
2995 ac_lo=$ac_mid; break
2996 else
2997 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2998 if test $ac_mid -le $ac_hi; then
2999 ac_lo= ac_hi=
3000 break
3002 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 done
3006 else
3007 ac_lo= ac_hi=
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 # Binary search between lo and hi bounds.
3013 while test "x$ac_lo" != "x$ac_hi"; do
3014 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 /* end confdefs.h. */
3019 main ()
3021 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3022 test_array [0] = 0
3025 return 0;
3027 _ACEOF
3028 if ac_fn_c_try_compile "$LINENO"; then :
3029 ac_hi=$ac_mid
3030 else
3031 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 done
3035 case $ac_lo in #((
3036 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3037 '') ac_retval=1 ;;
3038 esac
3039 else
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3043 static long int longval () { return $2; }
3044 static unsigned long int ulongval () { return $2; }
3045 #include <stdio.h>
3046 #include <stdlib.h>
3048 main ()
3051 FILE *f = fopen ("conftest.val", "w");
3052 if (! f)
3053 return 1;
3054 if (($2) < 0)
3056 long int i = longval ();
3057 if (i != ($2))
3058 return 1;
3059 fprintf (f, "%ld", i);
3061 else
3063 unsigned long int i = ulongval ();
3064 if (i != ($2))
3065 return 1;
3066 fprintf (f, "%lu", i);
3068 /* Do not output a trailing newline, as this causes \r\n confusion
3069 on some platforms. */
3070 return ferror (f) || fclose (f) != 0;
3073 return 0;
3075 _ACEOF
3076 if ac_fn_c_try_run "$LINENO"; then :
3077 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3078 else
3079 ac_retval=1
3081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3082 conftest.$ac_objext conftest.beam conftest.$ac_ext
3083 rm -f conftest.val
3086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3087 as_fn_set_status $ac_retval
3089 } # ac_fn_c_compute_int
3090 cat >config.log <<_ACEOF
3091 This file contains any messages produced by compilers while
3092 running configure, to aid debugging if configure makes a mistake.
3094 It was created by emacs $as_me 24.3.50, which was
3095 generated by GNU Autoconf 2.65. Invocation command line was
3097 $ $0 $@
3099 _ACEOF
3100 exec 5>>config.log
3102 cat <<_ASUNAME
3103 ## --------- ##
3104 ## Platform. ##
3105 ## --------- ##
3107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3124 _ASUNAME
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 $as_echo "PATH: $as_dir"
3132 done
3133 IFS=$as_save_IFS
3135 } >&5
3137 cat >&5 <<_ACEOF
3140 ## ----------- ##
3141 ## Core tests. ##
3142 ## ----------- ##
3144 _ACEOF
3147 # Keep a trace of the command line.
3148 # Strip out --no-create and --no-recursion so they do not pile up.
3149 # Strip out --silent because we don't want to record it for future runs.
3150 # Also quote any args containing shell meta-characters.
3151 # Make two passes to allow for proper duplicate-argument suppression.
3152 ac_configure_args=
3153 ac_configure_args0=
3154 ac_configure_args1=
3155 ac_must_keep_next=false
3156 for ac_pass in 1 2
3158 for ac_arg
3160 case $ac_arg in
3161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3163 | -silent | --silent | --silen | --sile | --sil)
3164 continue ;;
3165 *\'*)
3166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3167 esac
3168 case $ac_pass in
3169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3171 as_fn_append ac_configure_args1 " '$ac_arg'"
3172 if test $ac_must_keep_next = true; then
3173 ac_must_keep_next=false # Got value, back to normal.
3174 else
3175 case $ac_arg in
3176 *=* | --config-cache | -C | -disable-* | --disable-* \
3177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3179 | -with-* | --with-* | -without-* | --without-* | --x)
3180 case "$ac_configure_args0 " in
3181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3182 esac
3184 -* ) ac_must_keep_next=true ;;
3185 esac
3187 as_fn_append ac_configure_args " '$ac_arg'"
3189 esac
3190 done
3191 done
3192 { ac_configure_args0=; unset ac_configure_args0;}
3193 { ac_configure_args1=; unset ac_configure_args1;}
3195 # When interrupted or exit'd, cleanup temporary files, and complete
3196 # config.log. We remove comments because anyway the quotes in there
3197 # would cause problems or look ugly.
3198 # WARNING: Use '\'' to represent an apostrophe within the trap.
3199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3200 trap 'exit_status=$?
3201 # Save into config.log some information that might help in debugging.
3203 echo
3205 cat <<\_ASBOX
3206 ## ---------------- ##
3207 ## Cache variables. ##
3208 ## ---------------- ##
3209 _ASBOX
3210 echo
3211 # The following way of writing the cache mishandles newlines in values,
3213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3214 eval ac_val=\$$ac_var
3215 case $ac_val in #(
3216 *${as_nl}*)
3217 case $ac_var in #(
3218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3220 esac
3221 case $ac_var in #(
3222 _ | IFS | as_nl) ;; #(
3223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3224 *) { eval $ac_var=; unset $ac_var;} ;;
3225 esac ;;
3226 esac
3227 done
3228 (set) 2>&1 |
3229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3230 *${as_nl}ac_space=\ *)
3231 sed -n \
3232 "s/'\''/'\''\\\\'\'''\''/g;
3233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3234 ;; #(
3236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3238 esac |
3239 sort
3241 echo
3243 cat <<\_ASBOX
3244 ## ----------------- ##
3245 ## Output variables. ##
3246 ## ----------------- ##
3247 _ASBOX
3248 echo
3249 for ac_var in $ac_subst_vars
3251 eval ac_val=\$$ac_var
3252 case $ac_val in
3253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3254 esac
3255 $as_echo "$ac_var='\''$ac_val'\''"
3256 done | sort
3257 echo
3259 if test -n "$ac_subst_files"; then
3260 cat <<\_ASBOX
3261 ## ------------------- ##
3262 ## File substitutions. ##
3263 ## ------------------- ##
3264 _ASBOX
3265 echo
3266 for ac_var in $ac_subst_files
3268 eval ac_val=\$$ac_var
3269 case $ac_val in
3270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3271 esac
3272 $as_echo "$ac_var='\''$ac_val'\''"
3273 done | sort
3274 echo
3277 if test -s confdefs.h; then
3278 cat <<\_ASBOX
3279 ## ----------- ##
3280 ## confdefs.h. ##
3281 ## ----------- ##
3282 _ASBOX
3283 echo
3284 cat confdefs.h
3285 echo
3287 test "$ac_signal" != 0 &&
3288 $as_echo "$as_me: caught signal $ac_signal"
3289 $as_echo "$as_me: exit $exit_status"
3290 } >&5
3291 rm -f core *.core core.conftest.* &&
3292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3293 exit $exit_status
3295 for ac_signal in 1 2 13 15; do
3296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3297 done
3298 ac_signal=0
3300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3301 rm -f -r conftest* confdefs.h
3303 $as_echo "/* confdefs.h */" > confdefs.h
3305 # Predefined preprocessor variables.
3307 cat >>confdefs.h <<_ACEOF
3308 #define PACKAGE_NAME "$PACKAGE_NAME"
3309 _ACEOF
3311 cat >>confdefs.h <<_ACEOF
3312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3313 _ACEOF
3315 cat >>confdefs.h <<_ACEOF
3316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3317 _ACEOF
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE_STRING "$PACKAGE_STRING"
3321 _ACEOF
3323 cat >>confdefs.h <<_ACEOF
3324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3325 _ACEOF
3327 cat >>confdefs.h <<_ACEOF
3328 #define PACKAGE_URL "$PACKAGE_URL"
3329 _ACEOF
3332 # Let the site file select an alternate cache file if it wants to.
3333 # Prefer an explicitly selected file to automatically selected ones.
3334 ac_site_file1=NONE
3335 ac_site_file2=NONE
3336 if test -n "$CONFIG_SITE"; then
3337 ac_site_file1=$CONFIG_SITE
3338 elif test "x$prefix" != xNONE; then
3339 ac_site_file1=$prefix/share/config.site
3340 ac_site_file2=$prefix/etc/config.site
3341 else
3342 ac_site_file1=$ac_default_prefix/share/config.site
3343 ac_site_file2=$ac_default_prefix/etc/config.site
3345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3347 test "x$ac_site_file" = xNONE && continue
3348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3351 sed 's/^/| /' "$ac_site_file" >&5
3352 . "$ac_site_file"
3354 done
3356 if test -r "$cache_file"; then
3357 # Some versions of bash will fail to source /dev/null (special files
3358 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3359 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3361 $as_echo "$as_me: loading cache $cache_file" >&6;}
3362 case $cache_file in
3363 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3364 *) . "./$cache_file";;
3365 esac
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3369 $as_echo "$as_me: creating cache $cache_file" >&6;}
3370 >$cache_file
3373 as_fn_append ac_header_list " sys/systeminfo.h"
3374 as_fn_append ac_header_list " coff.h"
3375 as_fn_append ac_header_list " pty.h"
3376 as_fn_append ac_header_list " sys/resource.h"
3377 as_fn_append ac_header_list " sys/utsname.h"
3378 as_fn_append ac_header_list " pwd.h"
3379 as_fn_append ac_header_list " utmp.h"
3380 as_fn_append ac_header_list " util.h"
3381 as_fn_append ac_header_list " sys/socket.h"
3382 as_fn_append ac_header_list " stdlib.h"
3383 as_fn_append ac_header_list " unistd.h"
3384 as_fn_append ac_header_list " sys/param.h"
3385 as_fn_append ac_header_list " pthread.h"
3386 as_fn_append ac_header_list " malloc/malloc.h"
3387 as_fn_append ac_header_list " maillock.h"
3388 as_fn_append ac_header_list " sys/un.h"
3389 as_fn_append ac_func_list " tzset"
3390 as_fn_append ac_func_list " readlinkat"
3391 as_fn_append ac_header_list " dirent.h"
3392 as_fn_append ac_header_list " execinfo.h"
3393 as_fn_append ac_func_list " faccessat"
3394 as_fn_append ac_func_list " fcntl"
3395 as_fn_append ac_func_list " fdopendir"
3396 as_fn_append ac_header_list " stdio_ext.h"
3397 as_fn_append ac_func_list " fstatat"
3398 as_fn_append ac_func_list " fsync"
3399 gl_getopt_required=GNU
3400 as_fn_append ac_header_list " getopt.h"
3401 as_fn_append ac_func_list " gettimeofday"
3402 as_fn_append ac_func_list " nanotime"
3403 as_fn_append ac_header_list " sys/time.h"
3404 as_fn_append ac_header_list " wchar.h"
3405 as_fn_append ac_header_list " stdint.h"
3406 as_fn_append ac_header_list " inttypes.h"
3407 as_fn_append ac_func_list " lstat"
3408 as_fn_append ac_func_list " mkostemp"
3409 as_fn_append ac_func_list " pipe2"
3410 as_fn_append ac_header_list " sys/select.h"
3411 as_fn_append ac_func_list " pselect"
3412 as_fn_append ac_func_list " pthread_sigmask"
3413 as_fn_append ac_func_list " readlink"
3414 as_fn_append ac_func_list " strtoimax"
3415 as_fn_append ac_func_list " strtoumax"
3416 as_fn_append ac_func_list " symlink"
3417 as_fn_append ac_header_list " sys/stat.h"
3418 as_fn_append ac_func_list " localtime_r"
3419 as_fn_append ac_header_list " utime.h"
3420 as_fn_append ac_func_list " futimes"
3421 as_fn_append ac_func_list " futimesat"
3422 as_fn_append ac_func_list " futimens"
3423 as_fn_append ac_func_list " utimensat"
3424 as_fn_append ac_func_list " lutimes"
3425 as_fn_append ac_func_list " getdtablesize"
3426 as_fn_append ac_func_list " secure_getenv"
3427 # Check that the precious variables saved in the cache have kept the same
3428 # value.
3429 ac_cache_corrupted=false
3430 for ac_var in $ac_precious_vars; do
3431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3432 eval ac_new_set=\$ac_env_${ac_var}_set
3433 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3434 eval ac_new_val=\$ac_env_${ac_var}_value
3435 case $ac_old_set,$ac_new_set in
3436 set,)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3438 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3439 ac_cache_corrupted=: ;;
3440 ,set)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3442 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3443 ac_cache_corrupted=: ;;
3444 ,);;
3446 if test "x$ac_old_val" != "x$ac_new_val"; then
3447 # differences in whitespace do not lead to failure.
3448 ac_old_val_w=`echo x $ac_old_val`
3449 ac_new_val_w=`echo x $ac_new_val`
3450 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3452 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3453 ac_cache_corrupted=:
3454 else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3456 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3457 eval $ac_var=\$ac_old_val
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3460 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3462 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3463 fi;;
3464 esac
3465 # Pass precious variables to config.status.
3466 if test "$ac_new_set" = set; then
3467 case $ac_new_val in
3468 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3469 *) ac_arg=$ac_var=$ac_new_val ;;
3470 esac
3471 case " $ac_configure_args " in
3472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3473 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3474 esac
3476 done
3477 if $ac_cache_corrupted; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3481 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3482 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3484 ## -------------------- ##
3485 ## Main body of script. ##
3486 ## -------------------- ##
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 emacs_config_options=
3497 optsep=
3498 for opt in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS; do
3499 case $opt in
3500 -n | --no-create | --no-recursion)
3501 continue ;;
3502 CFLAGS | CPPFLAGS | LDFLAGS)
3503 eval 'test "${'$opt'+set}" = set' || continue
3504 case " $*" in
3505 *" $opt="*) continue ;;
3506 esac
3507 eval opt=$opt=\$$opt ;;
3508 esac
3510 emacs_shell_specials=$IFS\''"#$&()*;<>?[\\`{|~'
3511 case $opt in
3512 *["$emacs_shell_specials"]*)
3513 case $opt in
3514 *\'*)
3515 emacs_quote_apostrophes="s/'/'\\\\''/g"
3516 opt=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3517 esac
3518 opt="'$opt'"
3519 case $opt in
3520 *['"\\']*)
3521 emacs_quote_for_c='s/["\\]/\\&/g; $!s/$/\\n\\/'
3522 opt=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3523 esac ;;
3524 esac
3525 as_fn_append emacs_config_options "$optsep$opt"
3526 optsep=' '
3527 done
3529 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3532 ac_aux_dir=
3533 for ac_dir in build-aux "$srcdir"/build-aux; do
3534 for ac_t in install-sh install.sh shtool; do
3535 if test -f "$ac_dir/$ac_t"; then
3536 ac_aux_dir=$ac_dir
3537 ac_install_sh="$ac_aux_dir/$ac_t -c"
3538 break 2
3540 done
3541 done
3542 if test -z "$ac_aux_dir"; then
3543 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3546 # These three variables are undocumented and unsupported,
3547 # and are intended to be withdrawn in a future Autoconf release.
3548 # They can cause serious problems if a builder's source tree is in a directory
3549 # whose full name contains unusual characters.
3550 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3551 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3552 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3555 am__api_version='1.11'
3557 # Find a good install program. We prefer a C program (faster),
3558 # so one script is as good as another. But avoid the broken or
3559 # incompatible versions:
3560 # SysV /etc/install, /usr/sbin/install
3561 # SunOS /usr/etc/install
3562 # IRIX /sbin/install
3563 # AIX /bin/install
3564 # AmigaOS /C/install, which installs bootblocks on floppy discs
3565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3568 # OS/2's system install, which has a completely different semantic
3569 # ./install, which can be erroneously created by make from ./install.sh.
3570 # Reject install programs that cannot install multiple files.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3572 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3573 if test -z "$INSTALL"; then
3574 if test "${ac_cv_path_install+set}" = set; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 # Account for people who put trailing slashes in PATH elements.
3583 case $as_dir/ in #((
3584 ./ | .// | /[cC]/* | \
3585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3586 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3587 /usr/ucb/* ) ;;
3589 # OSF1 and SCO ODT 3.0 have their own names for install.
3590 # Don't use installbsd from OSF since it installs stuff as root
3591 # by default.
3592 for ac_prog in ginstall scoinst install; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3595 if test $ac_prog = install &&
3596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # AIX install. It has an incompatible calling convention.
3599 elif test $ac_prog = install &&
3600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3601 # program-specific install script used by HP pwplus--don't use.
3603 else
3604 rm -rf conftest.one conftest.two conftest.dir
3605 echo one > conftest.one
3606 echo two > conftest.two
3607 mkdir conftest.dir
3608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3609 test -s conftest.one && test -s conftest.two &&
3610 test -s conftest.dir/conftest.one &&
3611 test -s conftest.dir/conftest.two
3612 then
3613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3614 break 3
3618 done
3619 done
3621 esac
3623 done
3624 IFS=$as_save_IFS
3626 rm -rf conftest.one conftest.two conftest.dir
3629 if test "${ac_cv_path_install+set}" = set; then
3630 INSTALL=$ac_cv_path_install
3631 else
3632 # As a last resort, use the slow shell script. Don't cache a
3633 # value for INSTALL within a source directory, because that will
3634 # break other packages using the cache if that directory is
3635 # removed, or if the value is a relative name.
3636 INSTALL=$ac_install_sh
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3640 $as_echo "$INSTALL" >&6; }
3642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3643 # It thinks the first close brace ends the variable substitution.
3644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3651 $as_echo_n "checking whether build environment is sane... " >&6; }
3652 # Just in case
3653 sleep 1
3654 echo timestamp > conftest.file
3655 # Reject unsafe characters in $srcdir or the absolute working directory
3656 # name. Accept space and tab only in the latter.
3657 am_lf='
3659 case `pwd` in
3660 *[\\\"\#\$\&\'\`$am_lf]*)
3661 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3662 esac
3663 case $srcdir in
3664 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3665 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3666 esac
3668 # Do `set' in a subshell so we don't clobber the current shell's
3669 # arguments. Must try -L first in case configure is actually a
3670 # symlink; some systems play weird games with the mod time of symlinks
3671 # (eg FreeBSD returns the mod time of the symlink's containing
3672 # directory).
3673 if (
3674 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3675 if test "$*" = "X"; then
3676 # -L didn't work.
3677 set X `ls -t "$srcdir/configure" conftest.file`
3679 rm -f conftest.file
3680 if test "$*" != "X $srcdir/configure conftest.file" \
3681 && test "$*" != "X conftest.file $srcdir/configure"; then
3683 # If neither matched, then we have a broken ls. This can happen
3684 # if, for instance, CONFIG_SHELL is bash and it inherits a
3685 # broken ls alias from the environment. This has actually
3686 # happened. Such a system could not be considered "sane".
3687 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3688 alias in your environment" "$LINENO" 5
3691 test "$2" = conftest.file
3693 then
3694 # Ok.
3696 else
3697 as_fn_error "newly created file is older than distributed files!
3698 Check your system clock" "$LINENO" 5
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3701 $as_echo "yes" >&6; }
3702 test "$program_prefix" != NONE &&
3703 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3704 # Use a double $ so make ignores it.
3705 test "$program_suffix" != NONE &&
3706 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3707 # Double any \ or $.
3708 # By default was `s,x,x', remove it if useless.
3709 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3710 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3712 # expand $ac_aux_dir to an absolute path
3713 am_aux_dir=`cd $ac_aux_dir && pwd`
3715 if test x"${MISSING+set}" != xset; then
3716 case $am_aux_dir in
3717 *\ * | *\ *)
3718 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3720 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3721 esac
3723 # Use eval to expand $SHELL
3724 if eval "$MISSING --run true"; then
3725 am_missing_run="$MISSING --run "
3726 else
3727 am_missing_run=
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3729 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3732 if test x"${install_sh}" != xset; then
3733 case $am_aux_dir in
3734 *\ * | *\ *)
3735 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3737 install_sh="\${SHELL} $am_aux_dir/install-sh"
3738 esac
3741 # Installed binaries are usually stripped using `strip' when the user
3742 # run `make install-strip'. However `strip' might not be the right
3743 # tool to use in cross-compilation environments, therefore Automake
3744 # will honor the `STRIP' environment variable to overrule this program.
3745 if test "$cross_compiling" != no; then
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}strip; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_STRIP+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3753 else
3754 if test -n "$STRIP"; then
3755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3760 IFS=$as_save_IFS
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 break 2
3768 done
3769 done
3770 IFS=$as_save_IFS
3774 STRIP=$ac_cv_prog_STRIP
3775 if test -n "$STRIP"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3777 $as_echo "$STRIP" >&6; }
3778 else
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3785 if test -z "$ac_cv_prog_STRIP"; then
3786 ac_ct_STRIP=$STRIP
3787 # Extract the first word of "strip", so it can be a program name with args.
3788 set dummy strip; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_STRIP"; then
3795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_STRIP="strip"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3815 if test -n "$ac_ct_STRIP"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3817 $as_echo "$ac_ct_STRIP" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3823 if test "x$ac_ct_STRIP" = x; then
3824 STRIP=":"
3825 else
3826 case $cross_compiling:$ac_tool_warned in
3827 yes:)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3830 ac_tool_warned=yes ;;
3831 esac
3832 STRIP=$ac_ct_STRIP
3834 else
3835 STRIP="$ac_cv_prog_STRIP"
3839 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3842 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3843 if test -z "$MKDIR_P"; then
3844 if test "${ac_cv_path_mkdir+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_prog in mkdir gmkdir; do
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3855 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3856 'mkdir (GNU coreutils) '* | \
3857 'mkdir (coreutils) '* | \
3858 'mkdir (fileutils) '4.1*)
3859 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3860 break 3;;
3861 esac
3862 done
3863 done
3864 done
3865 IFS=$as_save_IFS
3869 test -d ./--version && rmdir ./--version
3870 if test "${ac_cv_path_mkdir+set}" = set; then
3871 MKDIR_P="$ac_cv_path_mkdir -p"
3872 else
3873 # As a last resort, use the slow shell script. Don't cache a
3874 # value for MKDIR_P within a source directory, because that will
3875 # break other packages using the cache if that directory is
3876 # removed, or if the value is a relative name.
3877 MKDIR_P="$ac_install_sh -d"
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3881 $as_echo "$MKDIR_P" >&6; }
3883 mkdir_p="$MKDIR_P"
3884 case $mkdir_p in
3885 [\\/$]* | ?:[\\/]*) ;;
3886 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3887 esac
3889 for ac_prog in gawk mawk nawk awk
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_AWK+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$AWK"; then
3899 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_AWK="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3914 IFS=$as_save_IFS
3918 AWK=$ac_cv_prog_AWK
3919 if test -n "$AWK"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3921 $as_echo "$AWK" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3928 test -n "$AWK" && break
3929 done
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3932 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3933 set x ${MAKE-make}
3934 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3935 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 cat >conftest.make <<\_ACEOF
3939 SHELL = /bin/sh
3940 all:
3941 @echo '@@@%%%=$(MAKE)=@@@%%%'
3942 _ACEOF
3943 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3944 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3945 *@@@%%%=?*=@@@%%%*)
3946 eval ac_cv_prog_make_${ac_make}_set=yes;;
3948 eval ac_cv_prog_make_${ac_make}_set=no;;
3949 esac
3950 rm -f conftest.make
3952 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3955 SET_MAKE=
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3959 SET_MAKE="MAKE=${MAKE-make}"
3962 rm -rf .tst 2>/dev/null
3963 mkdir .tst 2>/dev/null
3964 if test -d .tst; then
3965 am__leading_dot=.
3966 else
3967 am__leading_dot=_
3969 rmdir .tst 2>/dev/null
3971 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3972 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3973 # is not polluted with repeated "-I."
3974 am__isrc=' -I$(srcdir)'
3975 # test to see if srcdir already configured
3976 if test -f $srcdir/config.status; then
3977 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3981 # test whether we have cygpath
3982 if test -z "$CYGPATH_W"; then
3983 if (cygpath --version) >/dev/null 2>/dev/null; then
3984 CYGPATH_W='cygpath -w'
3985 else
3986 CYGPATH_W=echo
3991 # Define the identity of the package.
3992 PACKAGE='emacs'
3993 VERSION='24.3.50'
3996 cat >>confdefs.h <<_ACEOF
3997 #define PACKAGE "$PACKAGE"
3998 _ACEOF
4001 cat >>confdefs.h <<_ACEOF
4002 #define VERSION "$VERSION"
4003 _ACEOF
4005 # Some tools Automake needs.
4007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4021 # We need awk for the "check" target. The system "awk" is bad on
4022 # some platforms.
4023 # Always define AMTAR for backward compatibility.
4025 AMTAR=${AMTAR-"${am_missing_run}tar"}
4027 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4036 lispdir='${datadir}/emacs/${version}/lisp'
4037 leimdir='${datadir}/emacs/${version}/leim'
4038 standardlisppath='${lispdir}:${leimdir}'
4039 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
4040 '${datadir}/emacs/site-lisp'
4041 lisppath='${locallisppath}:${standardlisppath}'
4042 etcdir='${datadir}/emacs/${version}/etc'
4043 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4044 etcdocdir='${datadir}/emacs/${version}/etc'
4045 gamedir='${localstatedir}/games/emacs'
4048 # Check whether --with-all was given.
4049 if test "${with_all+set}" = set; then :
4050 withval=$with_all; with_features=$withval
4051 else
4052 with_features=yes
4059 # Check whether --with-pop was given.
4060 if test "${with_pop+set}" = set; then :
4061 withval=$with_pop;
4062 else
4063 with_pop=$with_features
4066 if test "$with_pop" = yes; then
4067 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4072 # Check whether --with-kerberos was given.
4073 if test "${with_kerberos+set}" = set; then :
4074 withval=$with_kerberos;
4075 else
4076 with_kerberos=no
4079 if test "$with_kerberos" != no; then
4080 $as_echo "#define KERBEROS 1" >>confdefs.h
4085 # Check whether --with-kerberos5 was given.
4086 if test "${with_kerberos5+set}" = set; then :
4087 withval=$with_kerberos5;
4088 else
4089 with_kerberos5=no
4092 if test "${with_kerberos5}" != no; then
4093 if test "${with_kerberos}" = no; then
4094 with_kerberos=yes
4095 $as_echo "#define KERBEROS 1" >>confdefs.h
4099 $as_echo "#define KERBEROS5 1" >>confdefs.h
4104 # Check whether --with-hesiod was given.
4105 if test "${with_hesiod+set}" = set; then :
4106 withval=$with_hesiod;
4107 else
4108 with_hesiod=no
4111 if test "$with_hesiod" != no; then
4113 $as_echo "#define HESIOD 1" >>confdefs.h
4118 # Check whether --with-mmdf was given.
4119 if test "${with_mmdf+set}" = set; then :
4120 withval=$with_mmdf;
4121 else
4122 with_mmdf=no
4125 if test "$with_mmdf" != no; then
4127 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4132 # Check whether --with-mail-unlink was given.
4133 if test "${with_mail_unlink+set}" = set; then :
4134 withval=$with_mail_unlink;
4135 else
4136 with_mail_unlink=no
4139 if test "$with_mail_unlink" != no; then
4141 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4146 # Check whether --with-mailhost was given.
4147 if test "${with_mailhost+set}" = set; then :
4148 withval=$with_mailhost;
4149 cat >>confdefs.h <<_ACEOF
4150 #define MAILHOST "$withval"
4151 _ACEOF
4157 # Check whether --with-sound was given.
4158 if test "${with_sound+set}" = set; then :
4159 withval=$with_sound; case "${withval}" in
4160 yes|no|alsa|oss|bsd-ossaudio) val=$withval ;;
4161 *) as_fn_error "\`--with-sound=$withval' is invalid;
4162 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4164 esac
4165 with_sound=$val
4167 else
4168 with_sound=$with_features
4173 # Check whether --with-x-toolkit was given.
4174 if test "${with_x_toolkit+set}" = set; then :
4175 withval=$with_x_toolkit; case "${withval}" in
4176 y | ye | yes ) val=gtk ;;
4177 n | no ) val=no ;;
4178 l | lu | luc | luci | lucid ) val=lucid ;;
4179 a | at | ath | athe | athen | athena ) val=athena ;;
4180 m | mo | mot | moti | motif ) val=motif ;;
4181 g | gt | gtk ) val=gtk ;;
4182 gtk2 ) val=gtk2 ;;
4183 gtk3 ) val=gtk3 ;;
4185 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4186 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4187 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4188 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4190 esac
4191 with_x_toolkit=$val
4197 # Check whether --with-wide-int was given.
4198 if test "${with_wide_int+set}" = set; then :
4199 withval=$with_wide_int;
4200 else
4201 with_wide_int=no
4204 if test "$with_wide_int" = yes; then
4206 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4211 # Check whether --with-xpm was given.
4212 if test "${with_xpm+set}" = set; then :
4213 withval=$with_xpm;
4214 else
4215 with_xpm=$with_features
4219 # Check whether --with-jpeg was given.
4220 if test "${with_jpeg+set}" = set; then :
4221 withval=$with_jpeg;
4222 else
4223 with_jpeg=$with_features
4227 # Check whether --with-tiff was given.
4228 if test "${with_tiff+set}" = set; then :
4229 withval=$with_tiff;
4230 else
4231 with_tiff=$with_features
4235 # Check whether --with-gif was given.
4236 if test "${with_gif+set}" = set; then :
4237 withval=$with_gif;
4238 else
4239 with_gif=$with_features
4243 # Check whether --with-png was given.
4244 if test "${with_png+set}" = set; then :
4245 withval=$with_png;
4246 else
4247 with_png=$with_features
4251 # Check whether --with-rsvg was given.
4252 if test "${with_rsvg+set}" = set; then :
4253 withval=$with_rsvg;
4254 else
4255 with_rsvg=$with_features
4259 # Check whether --with-xml2 was given.
4260 if test "${with_xml2+set}" = set; then :
4261 withval=$with_xml2;
4262 else
4263 with_xml2=$with_features
4267 # Check whether --with-imagemagick was given.
4268 if test "${with_imagemagick+set}" = set; then :
4269 withval=$with_imagemagick;
4270 else
4271 with_imagemagick=$with_features
4276 # Check whether --with-xft was given.
4277 if test "${with_xft+set}" = set; then :
4278 withval=$with_xft;
4279 else
4280 with_xft=$with_features
4284 # Check whether --with-libotf was given.
4285 if test "${with_libotf+set}" = set; then :
4286 withval=$with_libotf;
4287 else
4288 with_libotf=$with_features
4292 # Check whether --with-m17n-flt was given.
4293 if test "${with_m17n_flt+set}" = set; then :
4294 withval=$with_m17n_flt;
4295 else
4296 with_m17n_flt=$with_features
4301 # Check whether --with-toolkit-scroll-bars was given.
4302 if test "${with_toolkit_scroll_bars+set}" = set; then :
4303 withval=$with_toolkit_scroll_bars;
4304 else
4305 with_toolkit_scroll_bars=$with_features
4309 # Check whether --with-xaw3d was given.
4310 if test "${with_xaw3d+set}" = set; then :
4311 withval=$with_xaw3d;
4312 else
4313 with_xaw3d=$with_features
4317 # Check whether --with-xim was given.
4318 if test "${with_xim+set}" = set; then :
4319 withval=$with_xim;
4320 else
4321 with_xim=$with_features
4325 # Check whether --with-ns was given.
4326 if test "${with_ns+set}" = set; then :
4327 withval=$with_ns;
4328 else
4329 with_ns=no
4333 # Check whether --with-w32 was given.
4334 if test "${with_w32+set}" = set; then :
4335 withval=$with_w32;
4336 else
4337 with_w32=no
4342 # Check whether --with-gpm was given.
4343 if test "${with_gpm+set}" = set; then :
4344 withval=$with_gpm;
4345 else
4346 with_gpm=$with_features
4350 # Check whether --with-dbus was given.
4351 if test "${with_dbus+set}" = set; then :
4352 withval=$with_dbus;
4353 else
4354 with_dbus=$with_features
4358 # Check whether --with-gconf was given.
4359 if test "${with_gconf+set}" = set; then :
4360 withval=$with_gconf;
4361 else
4362 with_gconf=$with_features
4366 # Check whether --with-gsettings was given.
4367 if test "${with_gsettings+set}" = set; then :
4368 withval=$with_gsettings;
4369 else
4370 with_gsettings=$with_features
4374 # Check whether --with-selinux was given.
4375 if test "${with_selinux+set}" = set; then :
4376 withval=$with_selinux;
4377 else
4378 with_selinux=$with_features
4382 # Check whether --with-gnutls was given.
4383 if test "${with_gnutls+set}" = set; then :
4384 withval=$with_gnutls;
4385 else
4386 with_gnutls=$with_features
4390 # Check whether --with-zlib was given.
4391 if test "${with_zlib+set}" = set; then :
4392 withval=$with_zlib;
4393 else
4394 with_zlib=$with_features
4399 # Check whether --with-file-notification was given.
4400 if test "${with_file_notification+set}" = set; then :
4401 withval=$with_file_notification; case "${withval}" in
4402 y | ye | yes ) val=yes ;;
4403 n | no ) val=no ;;
4404 g | gf | gfi | gfil | gfile ) val=gfile ;;
4405 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4406 w | w3 | w32 ) val=w32 ;;
4407 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4408 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4409 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4410 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4412 esac
4413 with_file_notification=$val
4415 else
4416 with_file_notification=$with_features
4420 ## For the times when you want to build Emacs but don't have
4421 ## a suitable makeinfo, and can live without the manuals.
4423 # Check whether --with-makeinfo was given.
4424 if test "${with_makeinfo+set}" = set; then :
4425 withval=$with_makeinfo;
4426 else
4427 with_makeinfo=$with_features
4431 ## Makefile.in needs the cache file name.
4434 ## This is an option because I do not know if all info/man support
4435 ## compressed files, nor how to test if they do so.
4437 # Check whether --with-compress-install was given.
4438 if test "${with_compress_install+set}" = set; then :
4439 withval=$with_compress_install;
4440 else
4441 with_compress_install=$with_features
4446 # Check whether --with-pkg-config-prog was given.
4447 if test "${with_pkg_config_prog+set}" = set; then :
4448 withval=$with_pkg_config_prog;
4451 if test "X${with_pkg_config_prog}" != X; then
4452 if test "${with_pkg_config_prog}" != yes; then
4453 PKG_CONFIG="${with_pkg_config_prog}"
4458 # Check whether --with-gameuser was given.
4459 if test "${with_gameuser+set}" = set; then :
4460 withval=$with_gameuser;
4463 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4464 && gameuser="${with_gameuser}"
4465 test "X$gameuser" = X && gameuser=games
4468 # Check whether --with-gnustep-conf was given.
4469 if test "${with_gnustep_conf+set}" = set; then :
4470 withval=$with_gnustep_conf;
4473 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4474 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4475 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4476 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4478 # Check whether --enable-ns-self-contained was given.
4479 if test "${enable_ns_self_contained+set}" = set; then :
4480 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4481 else
4482 EN_NS_SELF_CONTAINED=yes
4486 # Check whether --enable-locallisppath was given.
4487 if test "${enable_locallisppath+set}" = set; then :
4488 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4489 locallisppath=
4490 elif test "${enableval}" != "yes"; then
4491 locallisppath=${enableval}
4496 # Check whether --enable-checking was given.
4497 if test "${enable_checking+set}" = set; then :
4498 enableval=$enable_checking; ac_checking_flags="${enableval}"
4501 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4502 for check in $ac_checking_flags
4504 case $check in
4505 # these set all the flags to specific states
4506 yes) ac_enable_checking=1 ;;
4507 no) ac_enable_checking= ;
4508 ac_gc_check_stringbytes= ;
4509 ac_gc_check_string_overrun= ;
4510 ac_gc_check_string_free_list= ;
4511 ac_xmalloc_overrun= ;
4512 ac_gc_check_cons_list= ;
4513 ac_glyphs_debug= ;;
4514 all) ac_enable_checking=1 ;
4515 ac_gc_check_stringbytes=1 ;
4516 ac_gc_check_string_overrun=1 ;
4517 ac_gc_check_string_free_list=1 ;
4518 ac_xmalloc_overrun=1 ;
4519 ac_gc_check_cons_list=1 ;
4520 ac_glyphs_debug=1 ;;
4521 # these enable particular checks
4522 stringbytes) ac_gc_check_stringbytes=1 ;;
4523 stringoverrun) ac_gc_check_string_overrun=1 ;;
4524 stringfreelist) ac_gc_check_string_free_list=1 ;;
4525 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4526 conslist) ac_gc_check_cons_list=1 ;;
4527 glyphs) ac_glyphs_debug=1 ;;
4528 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4529 esac
4530 done
4531 IFS="$ac_save_IFS"
4533 if test x$ac_enable_checking != x ; then
4535 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4538 if test x$ac_gc_check_stringbytes != x ; then
4540 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4543 if test x$ac_gc_check_string_overrun != x ; then
4545 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4548 if test x$ac_gc_check_string_free_list != x ; then
4550 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4553 if test x$ac_xmalloc_overrun != x ; then
4555 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4558 if test x$ac_gc_check_cons_list != x ; then
4560 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4563 if test x$ac_glyphs_debug != x ; then
4565 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4569 # Check whether --enable-check-lisp-object-type was given.
4570 if test "${enable_check_lisp_object_type+set}" = set; then :
4571 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4573 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4580 # Check whether --enable-profiling was given.
4581 if test "${enable_profiling+set}" = set; then :
4582 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4585 if test x$ac_enable_profiling != x ; then
4586 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4587 else
4588 PROFILING_CFLAGS=
4592 # Check whether --enable-autodepend was given.
4593 if test "${enable_autodepend+set}" = set; then :
4594 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4595 else
4596 ac_enable_autodepend=yes
4600 # Check whether --enable-gtk-deprecation-warnings was given.
4601 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4602 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4606 #### Make srcdir absolute, if it isn't already. It's important to
4607 #### avoid running the file name through pwd unnecessarily, since pwd can
4608 #### give you automounter prefixes, which can go away. We do all this
4609 #### so Emacs can find its files when run uninstalled.
4610 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4611 unset CDPATH
4612 case "${srcdir}" in
4613 [\\/]* | ?:[\\/]*) ;;
4615 ## We may be able to use the $PWD environment variable to make this
4616 ## absolute. But sometimes PWD is inaccurate.
4617 ## Note: we used to use $PWD at the end instead of `pwd`,
4618 ## but that tested only for a well-formed and valid PWD,
4619 ## it did not object when PWD was well-formed and valid but just wrong.
4620 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4621 then
4622 srcdir="$PWD"
4623 else
4624 srcdir=`(cd "$srcdir"; pwd)`
4627 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4628 esac
4630 #### When building with MinGW inside the MSYS tree, 'pwd' produces
4631 #### directories relative to the root of the MSYS tree,
4632 #### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When
4633 #### such a value of srcdir is written to the top-level Makefile, it
4634 #### gets propagated to src/epaths.h, and that causes temacs to fail,
4635 #### because, being a MinGW program that knows nothing of MSYS root
4636 #### substitution, it cannot find the data directory. "pwd -W"
4637 #### produces Windows-style 'd:/foo/bar' absolute directory names, so
4638 #### we use it here to countermand that lossage.
4639 test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,')`
4641 ### Canonicalize the configuration name.
4643 # Make sure we can run config.sub.
4644 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4645 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4648 $as_echo_n "checking build system type... " >&6; }
4649 if test "${ac_cv_build+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 ac_build_alias=$build_alias
4653 test "x$ac_build_alias" = x &&
4654 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4655 test "x$ac_build_alias" = x &&
4656 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4658 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4662 $as_echo "$ac_cv_build" >&6; }
4663 case $ac_cv_build in
4664 *-*-*) ;;
4665 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4666 esac
4667 build=$ac_cv_build
4668 ac_save_IFS=$IFS; IFS='-'
4669 set x $ac_cv_build
4670 shift
4671 build_cpu=$1
4672 build_vendor=$2
4673 shift; shift
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4676 build_os=$*
4677 IFS=$ac_save_IFS
4678 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4682 $as_echo_n "checking host system type... " >&6; }
4683 if test "${ac_cv_host+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test "x$host_alias" = x; then
4687 ac_cv_host=$ac_cv_build
4688 else
4689 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4690 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4695 $as_echo "$ac_cv_host" >&6; }
4696 case $ac_cv_host in
4697 *-*-*) ;;
4698 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4699 esac
4700 host=$ac_cv_host
4701 ac_save_IFS=$IFS; IFS='-'
4702 set x $ac_cv_host
4703 shift
4704 host_cpu=$1
4705 host_vendor=$2
4706 shift; shift
4707 # Remember, the first character of IFS is used to create $*,
4708 # except with old shells:
4709 host_os=$*
4710 IFS=$ac_save_IFS
4711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4714 canonical=$host
4715 configuration=${host_alias-${build_alias-$host}}
4719 ### If you add support for a new configuration, add code to this
4720 ### switch statement to recognize your configuration name and select
4721 ### the appropriate operating system file.
4723 ### You would hope that you could choose an s/*.h
4724 ### file based on the operating system portion. However, it turns out
4725 ### that each s/*.h file is pretty manufacturer-specific.
4726 ### So we basically have to have a special case for each
4727 ### configuration name.
4729 ### As far as handling version numbers on operating systems is
4730 ### concerned, make sure things will fail in a fixable way. If
4731 ### /etc/MACHINES doesn't say anything about version numbers, be
4732 ### prepared to handle anything reasonably. If version numbers
4733 ### matter, be sure /etc/MACHINES says something about it.
4735 opsys='' unported=no
4736 case "${canonical}" in
4738 ## GNU/Linux and similar ports
4739 *-*-linux* )
4740 opsys=gnu-linux
4743 ## FreeBSD ports
4744 *-*-freebsd* )
4745 opsys=freebsd
4748 ## DragonFly ports
4749 *-*-dragonfly* )
4750 opsys=dragonfly
4753 ## FreeBSD kernel + glibc based userland
4754 *-*-kfreebsd*gnu* )
4755 opsys=gnu-kfreebsd
4758 ## NetBSD ports
4759 *-*-netbsd* )
4760 opsys=netbsd
4763 ## OpenBSD ports
4764 *-*-openbsd* )
4765 opsys=openbsd
4768 ## Apple Darwin / Mac OS X
4769 *-apple-darwin* )
4770 case "${canonical}" in
4771 i[3456]86-* ) ;;
4772 powerpc-* ) ;;
4773 x86_64-* ) ;;
4774 * ) unported=yes ;;
4775 esac
4776 opsys=darwin
4777 ## Use fink packages if available.
4778 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4779 ## if test -d /sw/include && test -d /sw/lib; then
4780 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4781 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4782 ## fi
4785 ## Cygwin ports
4786 *-*-cygwin )
4787 opsys=cygwin
4790 ## HP 9000 series 700 and 800, running HP/UX
4791 hppa*-hp-hpux10.2* )
4792 opsys=hpux10-20
4794 hppa*-hp-hpux1[1-9]* )
4795 opsys=hpux11
4796 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4799 ## IBM machines
4800 rs6000-ibm-aix4.[23]* )
4801 opsys=aix4-2
4803 powerpc-ibm-aix4.[23]* )
4804 opsys=aix4-2
4806 rs6000-ibm-aix[56]* )
4807 opsys=aix4-2
4809 powerpc-ibm-aix[56]* )
4810 opsys=aix4-2
4813 ## Silicon Graphics machines
4814 ## Iris 4D
4815 mips-sgi-irix6.5 )
4816 opsys=irix6-5
4817 # Without defining _LANGUAGE_C, things get masked out in the headers
4818 # so that, for instance, grepping for `free' in stdlib.h fails and
4819 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4820 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4823 ## Suns
4824 *-sun-solaris* \
4825 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4826 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4827 case "${canonical}" in
4828 i[3456]86-*-* ) ;;
4829 amd64-*-*|x86_64-*-*) ;;
4830 sparc* ) ;;
4831 * ) unported=yes ;;
4832 esac
4833 case "${canonical}" in
4834 *-sunos5.6* | *-solaris2.6* )
4835 opsys=sol2-6
4836 RANLIB="ar -ts"
4838 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4839 opsys=sol2-6
4840 emacs_check_sunpro_c=yes
4842 *-sunos5* | *-solaris* )
4843 opsys=sol2-10
4844 emacs_check_sunpro_c=yes
4846 esac
4847 ## Watch out for a compiler that we know will not work.
4848 case "${canonical}" in
4849 *-solaris* | *-sunos5* )
4850 if [ "x$CC" = x/usr/ucb/cc ]; then
4851 ## /usr/ucb/cc doesn't work;
4852 ## we should find some other compiler that does work.
4853 unset CC
4856 *) ;;
4857 esac
4860 ## Intel 386 machines where we don't care about the manufacturer.
4861 i[3456]86-*-* )
4862 case "${canonical}" in
4863 *-darwin* ) opsys=darwin ;;
4864 *-mingw32 )
4865 opsys=mingw32
4866 # MinGW overrides and adds some system headers in nt/inc.
4867 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4869 *-sysv4.2uw* ) opsys=unixware ;;
4870 *-sysv5uw* ) opsys=unixware ;;
4871 *-sysv5OpenUNIX* ) opsys=unixware ;;
4872 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4873 esac
4877 unported=yes
4879 esac
4881 ### If the code above didn't choose an operating system, just choose
4882 ### an operating system based on the configuration name. You really
4883 ### only want to use this when you have no idea what the right
4884 ### operating system is; if you know what operating systems a machine
4885 ### runs, it's cleaner to make it explicit in the case statement
4886 ### above.
4887 if test x"${opsys}" = x; then
4888 case "${canonical}" in
4889 *-gnu* ) opsys=gnu ;;
4891 unported=yes
4893 esac
4898 if test $unported = yes; then
4899 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4900 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4904 #### Choose a compiler.
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if test "${ac_cv_prog_CC+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -n "$CC"; then
4920 ac_cv_prog_CC="$CC" # Let the user override the test.
4921 else
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4933 done
4934 done
4935 IFS=$as_save_IFS
4939 CC=$ac_cv_prog_CC
4940 if test -n "$CC"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4942 $as_echo "$CC" >&6; }
4943 else
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4950 if test -z "$ac_cv_prog_CC"; then
4951 ac_ct_CC=$CC
4952 # Extract the first word of "gcc", so it can be a program name with args.
4953 set dummy gcc; ac_word=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 if test -n "$ac_ct_CC"; then
4960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_ac_ct_CC="gcc"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4973 done
4974 done
4975 IFS=$as_save_IFS
4979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4980 if test -n "$ac_ct_CC"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4982 $as_echo "$ac_ct_CC" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4988 if test "x$ac_ct_CC" = x; then
4989 CC=""
4990 else
4991 case $cross_compiling:$ac_tool_warned in
4992 yes:)
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995 ac_tool_warned=yes ;;
4996 esac
4997 CC=$ac_ct_CC
4999 else
5000 CC="$ac_cv_prog_CC"
5003 if test -z "$CC"; then
5004 if test -n "$ac_tool_prefix"; then
5005 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5006 set dummy ${ac_tool_prefix}cc; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if test "${ac_cv_prog_CC+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -n "$CC"; then
5013 ac_cv_prog_CC="$CC" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_CC="${ac_tool_prefix}cc"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5032 CC=$ac_cv_prog_CC
5033 if test -n "$CC"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5035 $as_echo "$CC" >&6; }
5036 else
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5044 if test -z "$CC"; then
5045 # Extract the first word of "cc", so it can be a program name with args.
5046 set dummy cc; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_CC+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$CC"; then
5053 ac_cv_prog_CC="$CC" # Let the user override the test.
5054 else
5055 ac_prog_rejected=no
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5064 ac_prog_rejected=yes
5065 continue
5067 ac_cv_prog_CC="cc"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5071 done
5072 done
5073 IFS=$as_save_IFS
5075 if test $ac_prog_rejected = yes; then
5076 # We found a bogon in the path, so make sure we never use it.
5077 set dummy $ac_cv_prog_CC
5078 shift
5079 if test $# != 0; then
5080 # We chose a different compiler from the bogus one.
5081 # However, it has the same basename, so the bogon will be chosen
5082 # first if we set CC to just the basename; use the full file name.
5083 shift
5084 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5089 CC=$ac_cv_prog_CC
5090 if test -n "$CC"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5092 $as_echo "$CC" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5100 if test -z "$CC"; then
5101 if test -n "$ac_tool_prefix"; then
5102 for ac_prog in cl.exe
5104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5105 set dummy $ac_tool_prefix$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_CC+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CC"; then
5112 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
5132 if test -n "$CC"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5134 $as_echo "$CC" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 test -n "$CC" && break
5142 done
5144 if test -z "$CC"; then
5145 ac_ct_CC=$CC
5146 for ac_prog in cl.exe
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149 set dummy $ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_CC"; then
5156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_ac_ct_CC="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5176 if test -n "$ac_ct_CC"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5178 $as_echo "$ac_ct_CC" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 test -n "$ac_ct_CC" && break
5186 done
5188 if test "x$ac_ct_CC" = x; then
5189 CC=""
5190 else
5191 case $cross_compiling:$ac_tool_warned in
5192 yes:)
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5195 ac_tool_warned=yes ;;
5196 esac
5197 CC=$ac_ct_CC
5204 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error "no acceptable C compiler found in \$PATH
5207 See \`config.log' for more details." "$LINENO" 5; }
5209 # Provide some information about the compiler.
5210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5211 set X $ac_compile
5212 ac_compiler=$2
5213 for ac_option in --version -v -V -qversion; do
5214 { { ac_try="$ac_compiler $ac_option >&5"
5215 case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218 esac
5219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5220 $as_echo "$ac_try_echo"; } >&5
5221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5222 ac_status=$?
5223 if test -s conftest.err; then
5224 sed '10a\
5225 ... rest of stderr output deleted ...
5226 10q' conftest.err >conftest.er1
5227 cat conftest.er1 >&5
5229 rm -f conftest.er1 conftest.err
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; }
5232 done
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5238 main ()
5242 return 0;
5244 _ACEOF
5245 ac_clean_files_save=$ac_clean_files
5246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5247 # Try to create an executable without -o first, disregard a.out.
5248 # It will help us diagnose broken compilers, and finding out an intuition
5249 # of exeext.
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5251 $as_echo_n "checking whether the C compiler works... " >&6; }
5252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5254 # The possible output files:
5255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5257 ac_rmfiles=
5258 for ac_file in $ac_files
5260 case $ac_file in
5261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5262 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5263 esac
5264 done
5265 rm -f $ac_rmfiles
5267 if { { ac_try="$ac_link_default"
5268 case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5273 $as_echo "$ac_try_echo"; } >&5
5274 (eval "$ac_link_default") 2>&5
5275 ac_status=$?
5276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277 test $ac_status = 0; }; then :
5278 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5280 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5281 # so that the user can short-circuit this test for compilers unknown to
5282 # Autoconf.
5283 for ac_file in $ac_files ''
5285 test -f "$ac_file" || continue
5286 case $ac_file in
5287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5289 [ab].out )
5290 # We found the default executable, but exeext='' is most
5291 # certainly right.
5292 break;;
5293 *.* )
5294 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5295 then :; else
5296 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5298 # We set ac_cv_exeext here because the later test for it is not
5299 # safe: cross compilers may not add the suffix if given an `-o'
5300 # argument, so we may need to know it at that point already.
5301 # Even if this section looks crufty: it has the advantage of
5302 # actually working.
5303 break;;
5305 break;;
5306 esac
5307 done
5308 test "$ac_cv_exeext" = no && ac_cv_exeext=
5310 else
5311 ac_file=''
5313 if test -z "$ac_file"; then :
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 $as_echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
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_set_status 77
5322 as_fn_error "C compiler cannot create executables
5323 See \`config.log' for more details." "$LINENO" 5; }; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5329 $as_echo_n "checking for C compiler default output file name... " >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5331 $as_echo "$ac_file" >&6; }
5332 ac_exeext=$ac_cv_exeext
5334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5335 ac_clean_files=$ac_clean_files_save
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5337 $as_echo_n "checking for suffix of executables... " >&6; }
5338 if { { ac_try="$ac_link"
5339 case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5344 $as_echo "$ac_try_echo"; } >&5
5345 (eval "$ac_link") 2>&5
5346 ac_status=$?
5347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5348 test $ac_status = 0; }; then :
5349 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5350 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5351 # work properly (i.e., refer to `conftest.exe'), while it won't with
5352 # `rm'.
5353 for ac_file in conftest.exe conftest conftest.*; do
5354 test -f "$ac_file" || continue
5355 case $ac_file in
5356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5358 break;;
5359 * ) break;;
5360 esac
5361 done
5362 else
5363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5365 as_fn_error "cannot compute suffix of executables: cannot compile and link
5366 See \`config.log' for more details." "$LINENO" 5; }
5368 rm -f conftest conftest$ac_cv_exeext
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5370 $as_echo "$ac_cv_exeext" >&6; }
5372 rm -f conftest.$ac_ext
5373 EXEEXT=$ac_cv_exeext
5374 ac_exeext=$EXEEXT
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <stdio.h>
5379 main ()
5381 FILE *f = fopen ("conftest.out", "w");
5382 return ferror (f) || fclose (f) != 0;
5385 return 0;
5387 _ACEOF
5388 ac_clean_files="$ac_clean_files conftest.out"
5389 # Check that the compiler produces executables we can run. If not, either
5390 # the compiler is broken, or we cross compile.
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5392 $as_echo_n "checking whether we are cross compiling... " >&6; }
5393 if test "$cross_compiling" != yes; then
5394 { { ac_try="$ac_link"
5395 case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5400 $as_echo "$ac_try_echo"; } >&5
5401 (eval "$ac_link") 2>&5
5402 ac_status=$?
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }
5405 if { ac_try='./conftest$ac_cv_exeext'
5406 { { case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5411 $as_echo "$ac_try_echo"; } >&5
5412 (eval "$ac_try") 2>&5
5413 ac_status=$?
5414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5415 test $ac_status = 0; }; }; then
5416 cross_compiling=no
5417 else
5418 if test "$cross_compiling" = maybe; then
5419 cross_compiling=yes
5420 else
5421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5423 as_fn_error "cannot run C compiled programs.
5424 If you meant to cross compile, use \`--host'.
5425 See \`config.log' for more details." "$LINENO" 5; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5430 $as_echo "$cross_compiling" >&6; }
5432 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5433 ac_clean_files=$ac_clean_files_save
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5435 $as_echo_n "checking for suffix of object files... " >&6; }
5436 if test "${ac_cv_objext+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5443 main ()
5447 return 0;
5449 _ACEOF
5450 rm -f conftest.o conftest.obj
5451 if { { ac_try="$ac_compile"
5452 case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5457 $as_echo "$ac_try_echo"; } >&5
5458 (eval "$ac_compile") 2>&5
5459 ac_status=$?
5460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5461 test $ac_status = 0; }; then :
5462 for ac_file in conftest.o conftest.obj conftest.*; do
5463 test -f "$ac_file" || continue;
5464 case $ac_file in
5465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5466 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5467 break;;
5468 esac
5469 done
5470 else
5471 $as_echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5476 as_fn_error "cannot compute suffix of object files: cannot compile
5477 See \`config.log' for more details." "$LINENO" 5; }
5479 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5482 $as_echo "$ac_cv_objext" >&6; }
5483 OBJEXT=$ac_cv_objext
5484 ac_objext=$OBJEXT
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5487 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5494 main ()
5496 #ifndef __GNUC__
5497 choke me
5498 #endif
5501 return 0;
5503 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"; then :
5505 ac_compiler_gnu=yes
5506 else
5507 ac_compiler_gnu=no
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5514 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5515 if test $ac_compiler_gnu = yes; then
5516 GCC=yes
5517 else
5518 GCC=
5520 ac_test_CFLAGS=${CFLAGS+set}
5521 ac_save_CFLAGS=$CFLAGS
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5523 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5524 if test "${ac_cv_prog_cc_g+set}" = set; then :
5525 $as_echo_n "(cached) " >&6
5526 else
5527 ac_save_c_werror_flag=$ac_c_werror_flag
5528 ac_c_werror_flag=yes
5529 ac_cv_prog_cc_g=no
5530 CFLAGS="-g"
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5535 main ()
5539 return 0;
5541 _ACEOF
5542 if ac_fn_c_try_compile "$LINENO"; then :
5543 ac_cv_prog_cc_g=yes
5544 else
5545 CFLAGS=""
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5550 main ()
5554 return 0;
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5559 else
5560 ac_c_werror_flag=$ac_save_c_werror_flag
5561 CFLAGS="-g"
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5566 main ()
5570 return 0;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_prog_cc_g=yes
5576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 ac_c_werror_flag=$ac_save_c_werror_flag
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5584 $as_echo "$ac_cv_prog_cc_g" >&6; }
5585 if test "$ac_test_CFLAGS" = set; then
5586 CFLAGS=$ac_save_CFLAGS
5587 elif test $ac_cv_prog_cc_g = yes; then
5588 if test "$GCC" = yes; then
5589 CFLAGS="-g -O2"
5590 else
5591 CFLAGS="-g"
5593 else
5594 if test "$GCC" = yes; then
5595 CFLAGS="-O2"
5596 else
5597 CFLAGS=
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5602 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 ac_cv_prog_cc_c89=no
5606 ac_save_CC=$CC
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <stdarg.h>
5610 #include <stdio.h>
5611 #include <sys/types.h>
5612 #include <sys/stat.h>
5613 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5614 struct buf { int x; };
5615 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5616 static char *e (p, i)
5617 char **p;
5618 int i;
5620 return p[i];
5622 static char *f (char * (*g) (char **, int), char **p, ...)
5624 char *s;
5625 va_list v;
5626 va_start (v,p);
5627 s = g (p, va_arg (v,int));
5628 va_end (v);
5629 return s;
5632 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5633 function prototypes and stuff, but not '\xHH' hex character constants.
5634 These don't provoke an error unfortunately, instead are silently treated
5635 as 'x'. The following induces an error, until -std is added to get
5636 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5637 array size at least. It's necessary to write '\x00'==0 to get something
5638 that's true only with -std. */
5639 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5641 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5642 inside strings and character constants. */
5643 #define FOO(x) 'x'
5644 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5646 int test (int i, double x);
5647 struct s1 {int (*f) (int a);};
5648 struct s2 {int (*f) (double a);};
5649 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5650 int argc;
5651 char **argv;
5653 main ()
5655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5657 return 0;
5659 _ACEOF
5660 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5663 CC="$ac_save_CC $ac_arg"
5664 if ac_fn_c_try_compile "$LINENO"; then :
5665 ac_cv_prog_cc_c89=$ac_arg
5667 rm -f core conftest.err conftest.$ac_objext
5668 test "x$ac_cv_prog_cc_c89" != "xno" && break
5669 done
5670 rm -f conftest.$ac_ext
5671 CC=$ac_save_CC
5674 # AC_CACHE_VAL
5675 case "x$ac_cv_prog_cc_c89" in
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5678 $as_echo "none needed" >&6; } ;;
5679 xno)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5681 $as_echo "unsupported" >&6; } ;;
5683 CC="$CC $ac_cv_prog_cc_c89"
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5685 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5686 esac
5687 if test "x$ac_cv_prog_cc_c89" != xno; then :
5691 ac_ext=c
5692 ac_cpp='$CPP $CPPFLAGS'
5693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5696 DEPDIR="${am__leading_dot}deps"
5698 ac_config_commands="$ac_config_commands depfiles"
5701 am_make=${MAKE-make}
5702 cat > confinc << 'END'
5703 am__doit:
5704 @echo this is the am__doit target
5705 .PHONY: am__doit
5707 # If we don't find an include directive, just comment out the code.
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5709 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5710 am__include="#"
5711 am__quote=
5712 _am_result=none
5713 # First try GNU make style include.
5714 echo "include confinc" > confmf
5715 # Ignore all kinds of additional output from `make'.
5716 case `$am_make -s -f confmf 2> /dev/null` in #(
5717 *the\ am__doit\ target*)
5718 am__include=include
5719 am__quote=
5720 _am_result=GNU
5722 esac
5723 # Now try BSD make style include.
5724 if test "$am__include" = "#"; then
5725 echo '.include "confinc"' > confmf
5726 case `$am_make -s -f confmf 2> /dev/null` in #(
5727 *the\ am__doit\ target*)
5728 am__include=.include
5729 am__quote="\""
5730 _am_result=BSD
5732 esac
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5737 $as_echo "$_am_result" >&6; }
5738 rm -f confinc confmf
5740 # Check whether --enable-dependency-tracking was given.
5741 if test "${enable_dependency_tracking+set}" = set; then :
5742 enableval=$enable_dependency_tracking;
5745 if test "x$enable_dependency_tracking" != xno; then
5746 am_depcomp="$ac_aux_dir/depcomp"
5747 AMDEPBACKSLASH='\'
5749 if test "x$enable_dependency_tracking" != xno; then
5750 AMDEP_TRUE=
5751 AMDEP_FALSE='#'
5752 else
5753 AMDEP_TRUE='#'
5754 AMDEP_FALSE=
5759 depcc="$CC" am_compiler_list=
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5762 $as_echo_n "checking dependency style of $depcc... " >&6; }
5763 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5767 # We make a subdir and do the tests there. Otherwise we can end up
5768 # making bogus files that we don't know about and never remove. For
5769 # instance it was reported that on HP-UX the gcc test will end up
5770 # making a dummy file named `D' -- because `-MD' means `put the output
5771 # in D'.
5772 mkdir conftest.dir
5773 # Copy depcomp to subdir because otherwise we won't find it if we're
5774 # using a relative directory.
5775 cp "$am_depcomp" conftest.dir
5776 cd conftest.dir
5777 # We will build objects and dependencies in a subdirectory because
5778 # it helps to detect inapplicable dependency modes. For instance
5779 # both Tru64's cc and ICC support -MD to output dependencies as a
5780 # side effect of compilation, but ICC will put the dependencies in
5781 # the current directory while Tru64 will put them in the object
5782 # directory.
5783 mkdir sub
5785 am_cv_CC_dependencies_compiler_type=none
5786 if test "$am_compiler_list" = ""; then
5787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5789 am__universal=false
5790 case " $depcc " in #(
5791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5792 esac
5794 for depmode in $am_compiler_list; do
5795 # Setup a source with many dependencies, because some compilers
5796 # like to wrap large dependency lists on column 80 (with \), and
5797 # we should not choose a depcomp mode which is confused by this.
5799 # We need to recreate these files for each test, as the compiler may
5800 # overwrite some of them when testing with obscure command lines.
5801 # This happens at least with the AIX C compiler.
5802 : > sub/conftest.c
5803 for i in 1 2 3 4 5 6; do
5804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5806 # Solaris 8's {/usr,}/bin/sh.
5807 touch sub/conftst$i.h
5808 done
5809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5811 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5812 # mode. It turns out that the SunPro C++ compiler does not properly
5813 # handle `-M -o', and we need to detect this. Also, some Intel
5814 # versions had trouble with output in subdirs
5815 am__obj=sub/conftest.${OBJEXT-o}
5816 am__minus_obj="-o $am__obj"
5817 case $depmode in
5818 gcc)
5819 # This depmode causes a compiler race in universal mode.
5820 test "$am__universal" = false || continue
5822 nosideeffect)
5823 # after this tag, mechanisms are not by side-effect, so they'll
5824 # only be used when explicitly requested
5825 if test "x$enable_dependency_tracking" = xyes; then
5826 continue
5827 else
5828 break
5831 msvisualcpp | msvcmsys)
5832 # This compiler won't grok `-c -o', but also, the minuso test has
5833 # not run yet. These depmodes are late enough in the game, and
5834 # so weak that their functioning should not be impacted.
5835 am__obj=conftest.${OBJEXT-o}
5836 am__minus_obj=
5838 none) break ;;
5839 esac
5840 if depmode=$depmode \
5841 source=sub/conftest.c object=$am__obj \
5842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5844 >/dev/null 2>conftest.err &&
5845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5849 # icc doesn't choke on unknown options, it will just issue warnings
5850 # or remarks (even with -Werror). So we grep stderr for any message
5851 # that says an option was ignored or not supported.
5852 # When given -MP, icc 7.0 and 7.1 complain thusly:
5853 # icc: Command line warning: ignoring option '-M'; no argument required
5854 # The diagnosis changed in icc 8.0:
5855 # icc: Command line remark: option '-MP' not supported
5856 if (grep 'ignoring option' conftest.err ||
5857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5858 am_cv_CC_dependencies_compiler_type=$depmode
5859 break
5862 done
5864 cd ..
5865 rm -rf conftest.dir
5866 else
5867 am_cv_CC_dependencies_compiler_type=none
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5872 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5873 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5876 test "x$enable_dependency_tracking" != xno \
5877 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5878 am__fastdepCC_TRUE=
5879 am__fastdepCC_FALSE='#'
5880 else
5881 am__fastdepCC_TRUE='#'
5882 am__fastdepCC_FALSE=
5886 if test "x$CC" != xcc; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5888 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5891 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5893 set dummy $CC; ac_cc=`$as_echo "$2" |
5894 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5895 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5902 main ()
5906 return 0;
5908 _ACEOF
5909 # Make sure it works both with $CC and with simple cc.
5910 # We do the test twice because some compilers refuse to overwrite an
5911 # existing .o file with -o, though they will create one.
5912 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5913 rm -f conftest2.*
5914 if { { case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917 esac
5918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5919 $as_echo "$ac_try_echo"; } >&5
5920 (eval "$ac_try") 2>&5
5921 ac_status=$?
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; } &&
5924 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5927 esac
5928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5929 $as_echo "$ac_try_echo"; } >&5
5930 (eval "$ac_try") 2>&5
5931 ac_status=$?
5932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5933 test $ac_status = 0; };
5934 then
5935 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5936 if test "x$CC" != xcc; then
5937 # Test first that cc exists at all.
5938 if { ac_try='cc -c conftest.$ac_ext >&5'
5939 { { case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5944 $as_echo "$ac_try_echo"; } >&5
5945 (eval "$ac_try") 2>&5
5946 ac_status=$?
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948 test $ac_status = 0; }; }; then
5949 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5950 rm -f conftest2.*
5951 if { { case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954 esac
5955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5956 $as_echo "$ac_try_echo"; } >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5960 test $ac_status = 0; } &&
5961 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5964 esac
5965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5966 $as_echo "$ac_try_echo"; } >&5
5967 (eval "$ac_try") 2>&5
5968 ac_status=$?
5969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5970 test $ac_status = 0; };
5971 then
5972 # cc works too.
5974 else
5975 # cc exists but doesn't like -o.
5976 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5980 else
5981 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5983 rm -f core conftest*
5986 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5988 $as_echo "yes" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5993 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5997 # FIXME: we rely on the cache variable name because
5998 # there is no other way.
5999 set dummy $CC
6000 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6001 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6002 if test "$am_t" != yes; then
6003 # Losing compiler, so override with the script.
6004 # FIXME: It is wrong to rewrite CC.
6005 # But if we don't then we get into trouble of one sort or another.
6006 # A longer-term fix would be to have automake use am__CC in this case,
6007 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6008 CC="$am_aux_dir/compile $CC"
6013 if test x$GCC = xyes; then
6014 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6015 else
6016 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6019 if test "x$opsys" = "xmingw32"; then
6020 BUILDING_FOR_WINDOWSNT_TRUE=
6021 BUILDING_FOR_WINDOWSNT_FALSE='#'
6022 else
6023 BUILDING_FOR_WINDOWSNT_TRUE='#'
6024 BUILDING_FOR_WINDOWSNT_FALSE=
6028 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6029 # as we don't use them.
6031 # Avoid gnulib's threadlib module, as we do threads our own way.
6034 # Initialize gnulib right after choosing the compiler.
6036 ac_ext=c
6037 ac_cpp='$CPP $CPPFLAGS'
6038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6042 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6043 # On Suns, sometimes $CPP names a directory.
6044 if test -n "$CPP" && test -d "$CPP"; then
6045 CPP=
6047 if test -z "$CPP"; then
6048 if test "${ac_cv_prog_CPP+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 # Double quotes because CPP needs to be expanded
6052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6054 ac_preproc_ok=false
6055 for ac_c_preproc_warn_flag in '' yes
6057 # Use a header file that comes with gcc, so configuring glibc
6058 # with a fresh cross-compiler works.
6059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060 # <limits.h> exists even on freestanding compilers.
6061 # On the NeXT, cc -E runs the code through the compiler's parser,
6062 # not just through cpp. "Syntax error" is here to catch this case.
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 #ifdef __STDC__
6066 # include <limits.h>
6067 #else
6068 # include <assert.h>
6069 #endif
6070 Syntax error
6071 _ACEOF
6072 if ac_fn_c_try_cpp "$LINENO"; then :
6074 else
6075 # Broken: fails on valid input.
6076 continue
6078 rm -f conftest.err conftest.$ac_ext
6080 # OK, works on sane cases. Now check whether nonexistent headers
6081 # can be detected and how.
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <ac_nonexistent.h>
6085 _ACEOF
6086 if ac_fn_c_try_cpp "$LINENO"; then :
6087 # Broken: success on invalid input.
6088 continue
6089 else
6090 # Passes both tests.
6091 ac_preproc_ok=:
6092 break
6094 rm -f conftest.err conftest.$ac_ext
6096 done
6097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6098 rm -f conftest.err conftest.$ac_ext
6099 if $ac_preproc_ok; then :
6100 break
6103 done
6104 ac_cv_prog_CPP=$CPP
6107 CPP=$ac_cv_prog_CPP
6108 else
6109 ac_cv_prog_CPP=$CPP
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6112 $as_echo "$CPP" >&6; }
6113 ac_preproc_ok=false
6114 for ac_c_preproc_warn_flag in '' yes
6116 # Use a header file that comes with gcc, so configuring glibc
6117 # with a fresh cross-compiler works.
6118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6119 # <limits.h> exists even on freestanding compilers.
6120 # On the NeXT, cc -E runs the code through the compiler's parser,
6121 # not just through cpp. "Syntax error" is here to catch this case.
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #ifdef __STDC__
6125 # include <limits.h>
6126 #else
6127 # include <assert.h>
6128 #endif
6129 Syntax error
6130 _ACEOF
6131 if ac_fn_c_try_cpp "$LINENO"; then :
6133 else
6134 # Broken: fails on valid input.
6135 continue
6137 rm -f conftest.err conftest.$ac_ext
6139 # OK, works on sane cases. Now check whether nonexistent headers
6140 # can be detected and how.
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <ac_nonexistent.h>
6144 _ACEOF
6145 if ac_fn_c_try_cpp "$LINENO"; then :
6146 # Broken: success on invalid input.
6147 continue
6148 else
6149 # Passes both tests.
6150 ac_preproc_ok=:
6151 break
6153 rm -f conftest.err conftest.$ac_ext
6155 done
6156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6157 rm -f conftest.err conftest.$ac_ext
6158 if $ac_preproc_ok; then :
6160 else
6161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6163 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6164 See \`config.log' for more details." "$LINENO" 5; }
6167 ac_ext=c
6168 ac_cpp='$CPP $CPPFLAGS'
6169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6175 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6176 if test "${ac_cv_path_GREP+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if test -z "$GREP"; then
6180 ac_path_GREP_found=false
6181 # Loop through the user's path and test for each of PROGNAME-LIST
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_prog in grep ggrep; do
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6190 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6191 # Check for GNU ac_path_GREP and select it if it is found.
6192 # Check for GNU $ac_path_GREP
6193 case `"$ac_path_GREP" --version 2>&1` in
6194 *GNU*)
6195 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6197 ac_count=0
6198 $as_echo_n 0123456789 >"conftest.in"
6199 while :
6201 cat "conftest.in" "conftest.in" >"conftest.tmp"
6202 mv "conftest.tmp" "conftest.in"
6203 cp "conftest.in" "conftest.nl"
6204 $as_echo 'GREP' >> "conftest.nl"
6205 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6207 as_fn_arith $ac_count + 1 && ac_count=$as_val
6208 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6209 # Best one so far, save it but keep looking for a better one
6210 ac_cv_path_GREP="$ac_path_GREP"
6211 ac_path_GREP_max=$ac_count
6213 # 10*(2^10) chars as input seems more than enough
6214 test $ac_count -gt 10 && break
6215 done
6216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6217 esac
6219 $ac_path_GREP_found && break 3
6220 done
6221 done
6222 done
6223 IFS=$as_save_IFS
6224 if test -z "$ac_cv_path_GREP"; then
6225 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6227 else
6228 ac_cv_path_GREP=$GREP
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6233 $as_echo "$ac_cv_path_GREP" >&6; }
6234 GREP="$ac_cv_path_GREP"
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6238 $as_echo_n "checking for egrep... " >&6; }
6239 if test "${ac_cv_path_EGREP+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6243 then ac_cv_path_EGREP="$GREP -E"
6244 else
6245 if test -z "$EGREP"; then
6246 ac_path_EGREP_found=false
6247 # Loop through the user's path and test for each of PROGNAME-LIST
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_prog in egrep; do
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6256 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6257 # Check for GNU ac_path_EGREP and select it if it is found.
6258 # Check for GNU $ac_path_EGREP
6259 case `"$ac_path_EGREP" --version 2>&1` in
6260 *GNU*)
6261 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6263 ac_count=0
6264 $as_echo_n 0123456789 >"conftest.in"
6265 while :
6267 cat "conftest.in" "conftest.in" >"conftest.tmp"
6268 mv "conftest.tmp" "conftest.in"
6269 cp "conftest.in" "conftest.nl"
6270 $as_echo 'EGREP' >> "conftest.nl"
6271 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6273 as_fn_arith $ac_count + 1 && ac_count=$as_val
6274 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6275 # Best one so far, save it but keep looking for a better one
6276 ac_cv_path_EGREP="$ac_path_EGREP"
6277 ac_path_EGREP_max=$ac_count
6279 # 10*(2^10) chars as input seems more than enough
6280 test $ac_count -gt 10 && break
6281 done
6282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6283 esac
6285 $ac_path_EGREP_found && break 3
6286 done
6287 done
6288 done
6289 IFS=$as_save_IFS
6290 if test -z "$ac_cv_path_EGREP"; then
6291 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6293 else
6294 ac_cv_path_EGREP=$EGREP
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6300 $as_echo "$ac_cv_path_EGREP" >&6; }
6301 EGREP="$ac_cv_path_EGREP"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6307 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6308 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6315 #ifdef __ACK__
6316 Amsterdam
6317 #endif
6319 _ACEOF
6320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6321 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6322 gl_cv_c_amsterdam_compiler=yes
6323 else
6324 gl_cv_c_amsterdam_compiler=no
6326 rm -f conftest*
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6331 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6332 if test -z "$AR"; then
6333 if test $gl_cv_c_amsterdam_compiler = yes; then
6334 AR='cc -c.a'
6335 if test -z "$ARFLAGS"; then
6336 ARFLAGS='-o'
6338 else
6339 if test -n "$ac_tool_prefix"; then
6340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}ar; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_AR+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$AR"; then
6348 ac_cv_prog_AR="$AR" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_AR="${ac_tool_prefix}ar"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6361 done
6362 done
6363 IFS=$as_save_IFS
6367 AR=$ac_cv_prog_AR
6368 if test -n "$AR"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6370 $as_echo "$AR" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6378 if test -z "$ac_cv_prog_AR"; then
6379 ac_ct_AR=$AR
6380 # Extract the first word of "ar", so it can be a program name with args.
6381 set dummy ar; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 if test -n "$ac_ct_AR"; then
6388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_ac_ct_AR="ar"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6401 done
6402 done
6403 IFS=$as_save_IFS
6407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6408 if test -n "$ac_ct_AR"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6410 $as_echo "$ac_ct_AR" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6416 if test "x$ac_ct_AR" = x; then
6417 AR="ar"
6418 else
6419 case $cross_compiling:$ac_tool_warned in
6420 yes:)
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423 ac_tool_warned=yes ;;
6424 esac
6425 AR=$ac_ct_AR
6427 else
6428 AR="$ac_cv_prog_AR"
6431 if test -z "$ARFLAGS"; then
6432 ARFLAGS='cru'
6435 else
6436 if test -z "$ARFLAGS"; then
6437 ARFLAGS='cru'
6442 if test -z "$RANLIB"; then
6443 if test $gl_cv_c_amsterdam_compiler = yes; then
6444 RANLIB=':'
6445 else
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$RANLIB"; then
6455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6468 done
6469 done
6470 IFS=$as_save_IFS
6474 RANLIB=$ac_cv_prog_RANLIB
6475 if test -n "$RANLIB"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6477 $as_echo "$RANLIB" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6485 if test -z "$ac_cv_prog_RANLIB"; then
6486 ac_ct_RANLIB=$RANLIB
6487 # Extract the first word of "ranlib", so it can be a program name with args.
6488 set dummy ranlib; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 if test -n "$ac_ct_RANLIB"; then
6495 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_RANLIB="ranlib"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6508 done
6509 done
6510 IFS=$as_save_IFS
6514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6515 if test -n "$ac_ct_RANLIB"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6517 $as_echo "$ac_ct_RANLIB" >&6; }
6518 else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6523 if test "x$ac_ct_RANLIB" = x; then
6524 RANLIB=":"
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532 RANLIB=$ac_ct_RANLIB
6534 else
6535 RANLIB="$ac_cv_prog_RANLIB"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6543 $as_echo_n "checking for ANSI C header files... " >&6; }
6544 if test "${ac_cv_header_stdc+set}" = set; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <stdlib.h>
6550 #include <stdarg.h>
6551 #include <string.h>
6552 #include <float.h>
6555 main ()
6559 return 0;
6561 _ACEOF
6562 if ac_fn_c_try_compile "$LINENO"; then :
6563 ac_cv_header_stdc=yes
6564 else
6565 ac_cv_header_stdc=no
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 if test $ac_cv_header_stdc = yes; then
6570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 #include <string.h>
6575 _ACEOF
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577 $EGREP "memchr" >/dev/null 2>&1; then :
6579 else
6580 ac_cv_header_stdc=no
6582 rm -f conftest*
6586 if test $ac_cv_header_stdc = yes; then
6587 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6590 #include <stdlib.h>
6592 _ACEOF
6593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6594 $EGREP "free" >/dev/null 2>&1; then :
6596 else
6597 ac_cv_header_stdc=no
6599 rm -f conftest*
6603 if test $ac_cv_header_stdc = yes; then
6604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6605 if test "$cross_compiling" = yes; then :
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 #include <ctype.h>
6611 #include <stdlib.h>
6612 #if ((' ' & 0x0FF) == 0x020)
6613 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615 #else
6616 # define ISLOWER(c) \
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
6620 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6621 #endif
6623 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6625 main ()
6627 int i;
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
6630 || toupper (i) != TOUPPER (i))
6631 return 2;
6632 return 0;
6634 _ACEOF
6635 if ac_fn_c_try_run "$LINENO"; then :
6637 else
6638 ac_cv_header_stdc=no
6640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6641 conftest.$ac_objext conftest.beam conftest.$ac_ext
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6647 $as_echo "$ac_cv_header_stdc" >&6; }
6648 if test $ac_cv_header_stdc = yes; then
6650 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6654 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6655 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6656 inttypes.h stdint.h unistd.h
6657 do :
6658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6659 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6661 eval as_val=\$$as_ac_Header
6662 if test "x$as_val" = x""yes; then :
6663 cat >>confdefs.h <<_ACEOF
6664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6665 _ACEOF
6669 done
6673 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6674 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6675 MINIX=yes
6676 else
6677 MINIX=
6681 if test "$MINIX" = yes; then
6683 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6686 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6689 $as_echo "#define _MINIX 1" >>confdefs.h
6692 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6698 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6699 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6705 # define __EXTENSIONS__ 1
6706 $ac_includes_default
6708 main ()
6712 return 0;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 ac_cv_safe_to_define___extensions__=yes
6717 else
6718 ac_cv_safe_to_define___extensions__=no
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6723 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6724 test $ac_cv_safe_to_define___extensions__ = yes &&
6725 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6727 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6729 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6731 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6733 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6735 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6738 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6739 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 ac_cv_should_define__xopen_source=no
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6746 #include <wchar.h>
6747 mbstate_t x;
6749 main ()
6753 return 0;
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"; then :
6758 else
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6762 #define _XOPEN_SOURCE 500
6763 #include <wchar.h>
6764 mbstate_t x;
6766 main ()
6770 return 0;
6772 _ACEOF
6773 if ac_fn_c_try_compile "$LINENO"; then :
6774 ac_cv_should_define__xopen_source=yes
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6781 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6782 test $ac_cv_should_define__xopen_source = yes &&
6783 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6792 # Check whether --enable-largefile was given.
6793 if test "${enable_largefile+set}" = set; then :
6794 enableval=$enable_largefile;
6797 if test "$enable_largefile" != no; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6800 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6801 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 ac_cv_sys_largefile_CC=no
6805 if test "$GCC" != yes; then
6806 ac_save_CC=$CC
6807 while :; do
6808 # IRIX 6.2 and later do not support large files by default,
6809 # so use the C compiler's -n32 option if that helps.
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 /* Check that off_t can represent 2**63 - 1 correctly.
6814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6815 since some C++ compilers masquerading as C compilers
6816 incorrectly reject 9223372036854775807. */
6817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6819 && LARGE_OFF_T % 2147483647 == 1)
6820 ? 1 : -1];
6822 main ()
6826 return 0;
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830 break
6832 rm -f core conftest.err conftest.$ac_objext
6833 CC="$CC -n32"
6834 if ac_fn_c_try_compile "$LINENO"; then :
6835 ac_cv_sys_largefile_CC=' -n32'; break
6837 rm -f core conftest.err conftest.$ac_objext
6838 break
6839 done
6840 CC=$ac_save_CC
6841 rm -f conftest.$ac_ext
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6845 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6846 if test "$ac_cv_sys_largefile_CC" != no; then
6847 CC=$CC$ac_cv_sys_largefile_CC
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6851 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6852 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 while :; do
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6858 #include <sys/types.h>
6859 /* Check that off_t can represent 2**63 - 1 correctly.
6860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6861 since some C++ compilers masquerading as C compilers
6862 incorrectly reject 9223372036854775807. */
6863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6865 && LARGE_OFF_T % 2147483647 == 1)
6866 ? 1 : -1];
6868 main ()
6872 return 0;
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"; then :
6876 ac_cv_sys_file_offset_bits=no; break
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 #define _FILE_OFFSET_BITS 64
6882 #include <sys/types.h>
6883 /* Check that off_t can represent 2**63 - 1 correctly.
6884 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6885 since some C++ compilers masquerading as C compilers
6886 incorrectly reject 9223372036854775807. */
6887 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6888 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6889 && LARGE_OFF_T % 2147483647 == 1)
6890 ? 1 : -1];
6892 main ()
6896 return 0;
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 ac_cv_sys_file_offset_bits=64; break
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 ac_cv_sys_file_offset_bits=unknown
6904 break
6905 done
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6908 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6909 case $ac_cv_sys_file_offset_bits in #(
6910 no | unknown) ;;
6912 cat >>confdefs.h <<_ACEOF
6913 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6914 _ACEOF
6916 esac
6917 rm -rf conftest*
6918 if test $ac_cv_sys_file_offset_bits = unknown; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6920 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6921 if test "${ac_cv_sys_large_files+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 while :; do
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927 #include <sys/types.h>
6928 /* Check that off_t can represent 2**63 - 1 correctly.
6929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6930 since some C++ compilers masquerading as C compilers
6931 incorrectly reject 9223372036854775807. */
6932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6934 && LARGE_OFF_T % 2147483647 == 1)
6935 ? 1 : -1];
6937 main ()
6941 return 0;
6943 _ACEOF
6944 if ac_fn_c_try_compile "$LINENO"; then :
6945 ac_cv_sys_large_files=no; break
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 #define _LARGE_FILES 1
6951 #include <sys/types.h>
6952 /* Check that off_t can represent 2**63 - 1 correctly.
6953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6954 since some C++ compilers masquerading as C compilers
6955 incorrectly reject 9223372036854775807. */
6956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6958 && LARGE_OFF_T % 2147483647 == 1)
6959 ? 1 : -1];
6961 main ()
6965 return 0;
6967 _ACEOF
6968 if ac_fn_c_try_compile "$LINENO"; then :
6969 ac_cv_sys_large_files=1; break
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 ac_cv_sys_large_files=unknown
6973 break
6974 done
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6977 $as_echo "$ac_cv_sys_large_files" >&6; }
6978 case $ac_cv_sys_large_files in #(
6979 no | unknown) ;;
6981 cat >>confdefs.h <<_ACEOF
6982 #define _LARGE_FILES $ac_cv_sys_large_files
6983 _ACEOF
6985 esac
6986 rm -rf conftest*
6990 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6994 case $ac_cv_prog_cc_stdc in #(
6995 no) :
6996 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6997 *) :
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6999 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7000 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 ac_cv_prog_cc_c99=no
7004 ac_save_CC=$CC
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 #include <stdarg.h>
7008 #include <stdbool.h>
7009 #include <stdlib.h>
7010 #include <wchar.h>
7011 #include <stdio.h>
7013 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7014 #define debug(...) fprintf (stderr, __VA_ARGS__)
7015 #define showlist(...) puts (#__VA_ARGS__)
7016 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7017 static void
7018 test_varargs_macros (void)
7020 int x = 1234;
7021 int y = 5678;
7022 debug ("Flag");
7023 debug ("X = %d\n", x);
7024 showlist (The first, second, and third items.);
7025 report (x>y, "x is %d but y is %d", x, y);
7028 // Check long long types.
7029 #define BIG64 18446744073709551615ull
7030 #define BIG32 4294967295ul
7031 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7032 #if !BIG_OK
7033 your preprocessor is broken;
7034 #endif
7035 #if BIG_OK
7036 #else
7037 your preprocessor is broken;
7038 #endif
7039 static long long int bignum = -9223372036854775807LL;
7040 static unsigned long long int ubignum = BIG64;
7042 struct incomplete_array
7044 int datasize;
7045 double data[];
7048 struct named_init {
7049 int number;
7050 const wchar_t *name;
7051 double average;
7054 typedef const char *ccp;
7056 static inline int
7057 test_restrict (ccp restrict text)
7059 // See if C++-style comments work.
7060 // Iterate through items via the restricted pointer.
7061 // Also check for declarations in for loops.
7062 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7063 continue;
7064 return 0;
7067 // Check varargs and va_copy.
7068 static void
7069 test_varargs (const char *format, ...)
7071 va_list args;
7072 va_start (args, format);
7073 va_list args_copy;
7074 va_copy (args_copy, args);
7076 const char *str;
7077 int number;
7078 float fnumber;
7080 while (*format)
7082 switch (*format++)
7084 case 's': // string
7085 str = va_arg (args_copy, const char *);
7086 break;
7087 case 'd': // int
7088 number = va_arg (args_copy, int);
7089 break;
7090 case 'f': // float
7091 fnumber = va_arg (args_copy, double);
7092 break;
7093 default:
7094 break;
7097 va_end (args_copy);
7098 va_end (args);
7102 main ()
7105 // Check bool.
7106 _Bool success = false;
7108 // Check restrict.
7109 if (test_restrict ("String literal") == 0)
7110 success = true;
7111 char *restrict newvar = "Another string";
7113 // Check varargs.
7114 test_varargs ("s, d' f .", "string", 65, 34.234);
7115 test_varargs_macros ();
7117 // Check flexible array members.
7118 struct incomplete_array *ia =
7119 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7120 ia->datasize = 10;
7121 for (int i = 0; i < ia->datasize; ++i)
7122 ia->data[i] = i * 1.234;
7124 // Check named initializers.
7125 struct named_init ni = {
7126 .number = 34,
7127 .name = L"Test wide string",
7128 .average = 543.34343,
7131 ni.number = 58;
7133 int dynamic_array[ni.number];
7134 dynamic_array[ni.number - 1] = 543;
7136 // work around unused variable warnings
7137 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7138 || dynamic_array[ni.number - 1] != 543);
7141 return 0;
7143 _ACEOF
7144 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7146 CC="$ac_save_CC $ac_arg"
7147 if ac_fn_c_try_compile "$LINENO"; then :
7148 ac_cv_prog_cc_c99=$ac_arg
7150 rm -f core conftest.err conftest.$ac_objext
7151 test "x$ac_cv_prog_cc_c99" != "xno" && break
7152 done
7153 rm -f conftest.$ac_ext
7154 CC=$ac_save_CC
7157 # AC_CACHE_VAL
7158 case "x$ac_cv_prog_cc_c99" in
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7161 $as_echo "none needed" >&6; } ;;
7162 xno)
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7164 $as_echo "unsupported" >&6; } ;;
7166 CC="$CC $ac_cv_prog_cc_c99"
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7168 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7169 esac
7170 if test "x$ac_cv_prog_cc_c99" != xno; then :
7171 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7174 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7175 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 ac_cv_prog_cc_c89=no
7179 ac_save_CC=$CC
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 #include <stdarg.h>
7183 #include <stdio.h>
7184 #include <sys/types.h>
7185 #include <sys/stat.h>
7186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7187 struct buf { int x; };
7188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7189 static char *e (p, i)
7190 char **p;
7191 int i;
7193 return p[i];
7195 static char *f (char * (*g) (char **, int), char **p, ...)
7197 char *s;
7198 va_list v;
7199 va_start (v,p);
7200 s = g (p, va_arg (v,int));
7201 va_end (v);
7202 return s;
7205 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7206 function prototypes and stuff, but not '\xHH' hex character constants.
7207 These don't provoke an error unfortunately, instead are silently treated
7208 as 'x'. The following induces an error, until -std is added to get
7209 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7210 array size at least. It's necessary to write '\x00'==0 to get something
7211 that's true only with -std. */
7212 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7214 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7215 inside strings and character constants. */
7216 #define FOO(x) 'x'
7217 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7219 int test (int i, double x);
7220 struct s1 {int (*f) (int a);};
7221 struct s2 {int (*f) (double a);};
7222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7223 int argc;
7224 char **argv;
7226 main ()
7228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7230 return 0;
7232 _ACEOF
7233 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7234 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7236 CC="$ac_save_CC $ac_arg"
7237 if ac_fn_c_try_compile "$LINENO"; then :
7238 ac_cv_prog_cc_c89=$ac_arg
7240 rm -f core conftest.err conftest.$ac_objext
7241 test "x$ac_cv_prog_cc_c89" != "xno" && break
7242 done
7243 rm -f conftest.$ac_ext
7244 CC=$ac_save_CC
7247 # AC_CACHE_VAL
7248 case "x$ac_cv_prog_cc_c89" in
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7251 $as_echo "none needed" >&6; } ;;
7252 xno)
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7254 $as_echo "unsupported" >&6; } ;;
7256 CC="$CC $ac_cv_prog_cc_c89"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7258 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7259 esac
7260 if test "x$ac_cv_prog_cc_c89" != xno; then :
7261 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7262 else
7263 ac_cv_prog_cc_stdc=no
7268 esac
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7270 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7271 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7275 case $ac_cv_prog_cc_stdc in #(
7276 no) :
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7278 $as_echo "unsupported" >&6; } ;; #(
7279 '') :
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7281 $as_echo "none needed" >&6; } ;; #(
7282 *) :
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7284 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7285 esac
7289 # Code from module alloca-opt:
7290 # Code from module allocator:
7291 # Code from module at-internal:
7292 # Code from module binary-io:
7293 # Code from module byteswap:
7294 # Code from module c-ctype:
7295 # Code from module c-strcase:
7296 # Code from module careadlinkat:
7297 # Code from module clock-time:
7298 # Code from module close-stream:
7299 # Code from module crypto/md5:
7300 # Code from module crypto/sha1:
7301 # Code from module crypto/sha256:
7302 # Code from module crypto/sha512:
7303 # Code from module dirent:
7304 # Code from module dosname:
7305 # Code from module dtoastr:
7306 # Code from module dtotimespec:
7307 # Code from module dup2:
7308 # Code from module environ:
7309 # Code from module errno:
7310 # Code from module euidaccess:
7311 # Code from module execinfo:
7312 # Code from module extensions:
7314 # Code from module extern-inline:
7315 # Code from module faccessat:
7316 # Code from module fcntl:
7317 # Code from module fcntl-h:
7318 # Code from module fdatasync:
7319 # Code from module fdopendir:
7320 # Code from module filemode:
7321 # Code from module fpending:
7322 # Code from module fstatat:
7323 # Code from module fsync:
7324 # Code from module getdtablesize:
7325 # Code from module getgroups:
7326 # Code from module getloadavg:
7327 # Code from module getopt-gnu:
7328 # Code from module getopt-posix:
7329 # Code from module gettext-h:
7330 # Code from module gettime:
7331 # Code from module gettimeofday:
7332 # Code from module group-member:
7333 # Code from module include_next:
7334 # Code from module intprops:
7335 # Code from module inttypes-incomplete:
7336 # Code from module largefile:
7338 # Code from module lstat:
7339 # Code from module manywarnings:
7340 # Code from module memrchr:
7341 # Code from module mkostemp:
7342 # Code from module mktime:
7343 # Code from module multiarch:
7344 # Code from module nocrash:
7345 # Code from module openat-h:
7346 # Code from module pathmax:
7347 # Code from module pipe2:
7348 # Code from module pselect:
7349 # Code from module pthread_sigmask:
7350 # Code from module putenv:
7351 # Code from module qacl:
7352 # Code from module readlink:
7353 # Code from module readlinkat:
7354 # Code from module root-uid:
7355 # Code from module secure_getenv:
7356 # Code from module sig2str:
7357 # Code from module signal-h:
7358 # Code from module snippet/_Noreturn:
7359 # Code from module snippet/arg-nonnull:
7360 # Code from module snippet/c++defs:
7361 # Code from module snippet/warn-on-use:
7362 # Code from module socklen:
7363 # Code from module ssize_t:
7364 # Code from module stat:
7365 # Code from module stat-time:
7366 # Code from module stdalign:
7367 # Code from module stdarg:
7371 # Code from module stdbool:
7372 # Code from module stddef:
7373 # Code from module stdint:
7374 # Code from module stdio:
7375 # Code from module stdlib:
7376 # Code from module strftime:
7377 # Code from module string:
7378 # Code from module strtoimax:
7379 # Code from module strtoll:
7380 # Code from module strtoull:
7381 # Code from module strtoumax:
7382 # Code from module symlink:
7383 # Code from module sys_select:
7384 # Code from module sys_stat:
7385 # Code from module sys_time:
7386 # Code from module tempname:
7387 # Code from module time:
7388 # Code from module time_r:
7389 # Code from module timer-time:
7390 # Code from module timespec:
7391 # Code from module timespec-add:
7392 # Code from module timespec-sub:
7393 # Code from module u64:
7394 # Code from module unistd:
7395 # Code from module unsetenv:
7396 # Code from module utimens:
7397 # Code from module verify:
7398 # Code from module warnings:
7399 # Code from module xalloc-oversized:
7402 if test "$ac_test_CFLAGS" != set; then
7403 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7404 # if -g3 works and the user does not specify CFLAGS.
7405 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7406 case $CFLAGS in
7407 '-g')
7408 emacs_g3_CFLAGS='-g3';;
7409 '-g -O2')
7410 emacs_g3_CFLAGS='-g3 -O2';;
7412 emacs_g3_CFLAGS='';;
7413 esac
7414 if test -n "$emacs_g3_CFLAGS"; then
7415 emacs_save_CFLAGS=$CFLAGS
7416 CFLAGS=$emacs_g3_CFLAGS
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7418 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7419 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7426 main ()
7430 return 0;
7432 _ACEOF
7433 if ac_fn_c_try_link "$LINENO"; then :
7434 emacs_cv_prog_cc_g3=yes
7435 else
7436 emacs_cv_prog_cc_g3=no
7438 rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext conftest.$ac_ext
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7442 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7443 if test $emacs_cv_prog_cc_g3 != yes; then
7444 CFLAGS=$emacs_save_CFLAGS
7446 if test $opsys = mingw32; then
7447 CFLAGS="$CFLAGS -gdwarf-2"
7451 case $CFLAGS in
7452 *-O*) ;;
7454 # No optimization flag was inferred for this non-GCC compiler.
7455 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7456 emacs_save_CFLAGS=$CFLAGS
7457 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7458 CFLAGS=${CFLAGS}-O
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7460 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7461 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7468 main ()
7472 return 0;
7474 _ACEOF
7475 if ac_fn_c_try_link "$LINENO"; then :
7476 emacs_cv_prog_cc_o=yes
7477 else
7478 emacs_cv_prog_cc_o=no
7480 rm -f core conftest.err conftest.$ac_objext \
7481 conftest$ac_exeext conftest.$ac_ext
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7484 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7485 if test $emacs_cv_prog_cc_o != yes; then
7486 CFLAGS=$emacs_save_CFLAGS
7487 fi ;;
7488 esac
7491 # Check whether --enable-gcc-warnings was given.
7492 if test "${enable_gcc_warnings+set}" = set; then :
7493 enableval=$enable_gcc_warnings; case $enableval in
7494 yes|no) ;;
7495 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7496 esac
7497 gl_gcc_warnings=$enableval
7498 else
7499 gl_gcc_warnings=no
7504 # Check whether --enable-link-time-optimization was given.
7505 if test "${enable_link_time_optimization+set}" = set; then :
7506 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7508 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7509 ac_lto_supported=no
7510 if test x$GCC = xyes; then
7511 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7512 if test x$CPUS != x; then
7513 LTO="-flto=$CPUS"
7514 else
7515 LTO="-flto"
7517 old_CFLAGS=$CFLAGS
7518 CFLAGS="$CFLAGS $LTO"
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7523 main ()
7527 return 0;
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531 ac_lto_supported=yes
7532 else
7533 ac_lto_supported=no
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 CFLAGS="$old_CFLAGS"
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7539 $as_echo "$ac_lto_supported" >&6; }
7540 if test "$ac_lto_supported" = "yes"; then
7541 CFLAGS="$CFLAGS $LTO"
7547 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7548 # ------------------------------------------------
7549 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7550 # Otherwise, run RUN-IF-NOT-FOUND.
7553 # clang is unduly picky about some things.
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7555 $as_echo_n "checking whether the compiler is clang... " >&6; }
7556 if test "${emacs_cv_clang+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7562 #ifndef __clang__
7563 #error "not clang"
7564 #endif
7567 main ()
7571 return 0;
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 emacs_cv_clang=yes
7576 else
7577 emacs_cv_clang=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7582 $as_echo "$emacs_cv_clang" >&6; }
7584 # When compiling with GCC, prefer -isystem to -I when including system
7585 # include files, to avoid generating useless diagnostics for the files.
7586 if test "$gl_gcc_warnings" != yes; then
7587 isystem='-I'
7588 if test "$emacs_cv_clang" = yes
7589 then
7590 # Turn off some warnings if supported.
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7592 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7593 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7597 gl_save_compiler_FLAGS="$CFLAGS"
7598 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7603 main ()
7607 return 0;
7609 _ACEOF
7610 if ac_fn_c_try_link "$LINENO"; then :
7611 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7612 else
7613 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7615 rm -f core conftest.err conftest.$ac_objext \
7616 conftest$ac_exeext conftest.$ac_ext
7617 CFLAGS="$gl_save_compiler_FLAGS"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7621 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7622 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7623 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7624 else
7625 gl_unknown_warnings_are_errors=
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7630 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7631 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7635 gl_save_compiler_FLAGS="$CFLAGS"
7636 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7641 main ()
7645 return 0;
7647 _ACEOF
7648 if ac_fn_c_try_link "$LINENO"; then :
7649 gl_cv_warn_c__Wno_switch=yes
7650 else
7651 gl_cv_warn_c__Wno_switch=no
7653 rm -f core conftest.err conftest.$ac_objext \
7654 conftest$ac_exeext conftest.$ac_ext
7655 CFLAGS="$gl_save_compiler_FLAGS"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7659 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7660 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7661 as_fn_append WARN_CFLAGS " -Wno-switch"
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
7667 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
7668 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7672 gl_save_compiler_FLAGS="$CFLAGS"
7673 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7678 main ()
7682 return 0;
7684 _ACEOF
7685 if ac_fn_c_try_link "$LINENO"; then :
7686 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
7687 else
7688 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
7690 rm -f core conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7692 CFLAGS="$gl_save_compiler_FLAGS"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
7696 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
7697 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
7698 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-pointer-sign" >&5
7704 $as_echo_n "checking whether C compiler handles -Wno-pointer-sign... " >&6; }
7705 if test "${gl_cv_warn_c__Wno_pointer_sign+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7709 gl_save_compiler_FLAGS="$CFLAGS"
7710 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-sign"
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7715 main ()
7719 return 0;
7721 _ACEOF
7722 if ac_fn_c_try_link "$LINENO"; then :
7723 gl_cv_warn_c__Wno_pointer_sign=yes
7724 else
7725 gl_cv_warn_c__Wno_pointer_sign=no
7727 rm -f core conftest.err conftest.$ac_objext \
7728 conftest$ac_exeext conftest.$ac_ext
7729 CFLAGS="$gl_save_compiler_FLAGS"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_pointer_sign" >&5
7733 $as_echo "$gl_cv_warn_c__Wno_pointer_sign" >&6; }
7734 if test "x$gl_cv_warn_c__Wno_pointer_sign" = x""yes; then :
7735 as_fn_append WARN_CFLAGS " -Wno-pointer-sign"
7740 else
7741 isystem='-isystem '
7743 # This, $nw, is the list of warnings we disable.
7746 case $with_x_toolkit in
7747 lucid | athena | motif)
7748 # Old toolkits mishandle 'const'.
7749 nw="$nw -Wwrite-strings"
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7754 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7755 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7759 gl_save_compiler_FLAGS="$CFLAGS"
7760 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7765 main ()
7769 return 0;
7771 _ACEOF
7772 if ac_fn_c_try_link "$LINENO"; then :
7773 gl_cv_warn_c__Werror=yes
7774 else
7775 gl_cv_warn_c__Werror=no
7777 rm -f core conftest.err conftest.$ac_objext \
7778 conftest$ac_exeext conftest.$ac_ext
7779 CFLAGS="$gl_save_compiler_FLAGS"
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7783 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7784 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7785 as_fn_append WERROR_CFLAGS " -Werror"
7790 esac
7793 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7794 nw="$nw -Woverlength-strings" # Not a problem these days
7795 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7796 nw="$nw -Wformat-nonliteral" # we do this a lot
7797 nw="$nw -Wvla" # warnings in gettext.h
7798 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7799 nw="$nw -Wswitch-default" # Too many warnings for now
7800 nw="$nw -Winline" # OK to ignore 'inline'
7801 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7802 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7803 # signed overflow has undefined behavior
7804 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7805 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7806 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7808 # Emacs doesn't care about shadowing; see
7809 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7810 nw="$nw -Wshadow"
7812 # Emacs's use of alloca inhibits protecting the stack.
7813 nw="$nw -Wstack-protector"
7815 # The following line should be removable at some point.
7816 nw="$nw -Wsuggest-attribute=pure"
7818 # This part is merely for shortening the command line,
7819 # since -Wno-FOO needs to be added below regardless.
7820 nw="$nw -Wmissing-field-initializers"
7821 nw="$nw -Wswitch"
7822 nw="$nw -Wtype-limits"
7823 nw="$nw -Wunused-parameter"
7825 if test $emacs_cv_clang = yes; then
7826 nw="$nw -Wcast-align"
7831 if test -n "$GCC"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7834 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7835 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7839 gl_save_CFLAGS="$CFLAGS"
7840 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7845 main ()
7849 return 0;
7851 _ACEOF
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853 gl_cv_cc_nomfi_supported=yes
7854 else
7855 gl_cv_cc_nomfi_supported=no
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 CFLAGS="$gl_save_CFLAGS"
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7862 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7864 if test "$gl_cv_cc_nomfi_supported" = yes; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7866 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7867 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7871 gl_save_CFLAGS="$CFLAGS"
7872 CFLAGS="$CFLAGS -W -Werror"
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875 void f (void)
7877 typedef struct { int a; int b; } s_t;
7878 s_t s1 = { 0, };
7882 main ()
7886 return 0;
7888 _ACEOF
7889 if ac_fn_c_try_compile "$LINENO"; then :
7890 gl_cv_cc_nomfi_needed=no
7891 else
7892 gl_cv_cc_nomfi_needed=yes
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 CFLAGS="$gl_save_CFLAGS"
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7900 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7904 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7905 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7909 gl_save_CFLAGS="$CFLAGS"
7910 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7915 main ()
7919 return 0;
7921 _ACEOF
7922 if ac_fn_c_try_compile "$LINENO"; then :
7923 gl_cv_cc_uninitialized_supported=yes
7924 else
7925 gl_cv_cc_uninitialized_supported=no
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 CFLAGS="$gl_save_CFLAGS"
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7932 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7936 # List all gcc warning categories.
7937 gl_manywarn_set=
7938 for gl_manywarn_item in \
7939 -W \
7940 -Wabi \
7941 -Waddress \
7942 -Waggressive-loop-optimizations \
7943 -Wall \
7944 -Warray-bounds \
7945 -Wattributes \
7946 -Wbad-function-cast \
7947 -Wbuiltin-macro-redefined \
7948 -Wcast-align \
7949 -Wchar-subscripts \
7950 -Wclobbered \
7951 -Wcomment \
7952 -Wcomments \
7953 -Wcoverage-mismatch \
7954 -Wcpp \
7955 -Wdeprecated \
7956 -Wdeprecated-declarations \
7957 -Wdisabled-optimization \
7958 -Wdiv-by-zero \
7959 -Wdouble-promotion \
7960 -Wempty-body \
7961 -Wendif-labels \
7962 -Wenum-compare \
7963 -Wextra \
7964 -Wformat-contains-nul \
7965 -Wformat-extra-args \
7966 -Wformat-nonliteral \
7967 -Wformat-security \
7968 -Wformat-y2k \
7969 -Wformat-zero-length \
7970 -Wfree-nonheap-object \
7971 -Wignored-qualifiers \
7972 -Wimplicit \
7973 -Wimplicit-function-declaration \
7974 -Wimplicit-int \
7975 -Winit-self \
7976 -Winline \
7977 -Wint-to-pointer-cast \
7978 -Winvalid-memory-model \
7979 -Winvalid-pch \
7980 -Wjump-misses-init \
7981 -Wlogical-op \
7982 -Wmain \
7983 -Wmaybe-uninitialized \
7984 -Wmissing-braces \
7985 -Wmissing-declarations \
7986 -Wmissing-field-initializers \
7987 -Wmissing-include-dirs \
7988 -Wmissing-parameter-type \
7989 -Wmissing-prototypes \
7990 -Wmudflap \
7991 -Wmultichar \
7992 -Wnarrowing \
7993 -Wnested-externs \
7994 -Wnonnull \
7995 -Wnormalized=nfc \
7996 -Wold-style-declaration \
7997 -Wold-style-definition \
7998 -Woverflow \
7999 -Woverlength-strings \
8000 -Woverride-init \
8001 -Wpacked \
8002 -Wpacked-bitfield-compat \
8003 -Wparentheses \
8004 -Wpointer-arith \
8005 -Wpointer-sign \
8006 -Wpointer-to-int-cast \
8007 -Wpragmas \
8008 -Wreturn-local-addr \
8009 -Wreturn-type \
8010 -Wsequence-point \
8011 -Wshadow \
8012 -Wsizeof-pointer-memaccess \
8013 -Wstack-protector \
8014 -Wstrict-aliasing \
8015 -Wstrict-overflow \
8016 -Wstrict-prototypes \
8017 -Wsuggest-attribute=const \
8018 -Wsuggest-attribute=format \
8019 -Wsuggest-attribute=noreturn \
8020 -Wsuggest-attribute=pure \
8021 -Wswitch \
8022 -Wswitch-default \
8023 -Wsync-nand \
8024 -Wsystem-headers \
8025 -Wtrampolines \
8026 -Wtrigraphs \
8027 -Wtype-limits \
8028 -Wuninitialized \
8029 -Wunknown-pragmas \
8030 -Wunsafe-loop-optimizations \
8031 -Wunused \
8032 -Wunused-but-set-parameter \
8033 -Wunused-but-set-variable \
8034 -Wunused-function \
8035 -Wunused-label \
8036 -Wunused-local-typedefs \
8037 -Wunused-macros \
8038 -Wunused-parameter \
8039 -Wunused-result \
8040 -Wunused-value \
8041 -Wunused-variable \
8042 -Wvarargs \
8043 -Wvariadic-macros \
8044 -Wvector-operation-performance \
8045 -Wvla \
8046 -Wvolatile-register-var \
8047 -Wwrite-strings \
8048 -fdiagnostics-show-option \
8049 -funit-at-a-time \
8051 ; do
8052 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
8053 done
8055 # Disable specific options as needed.
8056 if test "$gl_cv_cc_nomfi_needed" = yes; then
8057 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
8060 if test "$gl_cv_cc_uninitialized_supported" = no; then
8061 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
8064 ws=$gl_manywarn_set
8067 gl_warn_set=
8068 set x $ws; shift
8069 for gl_warn_item
8071 case " $nw " in
8072 *" $gl_warn_item "*)
8075 gl_warn_set="$gl_warn_set $gl_warn_item"
8077 esac
8078 done
8079 ws=$gl_warn_set
8081 for w in $ws; do
8083 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
8084 gl_positive="$w"
8085 case $gl_positive in
8086 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8087 esac
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8089 $as_echo_n "checking whether C compiler handles $w... " >&6; }
8090 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8094 gl_save_compiler_FLAGS="$CFLAGS"
8095 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8100 main ()
8104 return 0;
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108 eval "$as_gl_Warn=yes"
8109 else
8110 eval "$as_gl_Warn=no"
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 CFLAGS="$gl_save_compiler_FLAGS"
8117 eval ac_res=\$$as_gl_Warn
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8119 $as_echo "$ac_res" >&6; }
8120 eval as_val=\$$as_gl_Warn
8121 if test "x$as_val" = x""yes; then :
8122 as_fn_append WARN_CFLAGS " $w"
8126 done
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8129 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8130 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8134 gl_save_compiler_FLAGS="$CFLAGS"
8135 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8140 main ()
8144 return 0;
8146 _ACEOF
8147 if ac_fn_c_try_link "$LINENO"; then :
8148 gl_cv_warn_c__Wno_missing_field_initializers=yes
8149 else
8150 gl_cv_warn_c__Wno_missing_field_initializers=no
8152 rm -f core conftest.err conftest.$ac_objext \
8153 conftest$ac_exeext conftest.$ac_ext
8154 CFLAGS="$gl_save_compiler_FLAGS"
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8158 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8159 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
8160 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8163 # We need this one
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8166 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8167 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8171 gl_save_compiler_FLAGS="$CFLAGS"
8172 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8177 main ()
8181 return 0;
8183 _ACEOF
8184 if ac_fn_c_try_link "$LINENO"; then :
8185 gl_cv_warn_c__Wno_sign_compare=yes
8186 else
8187 gl_cv_warn_c__Wno_sign_compare=no
8189 rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8191 CFLAGS="$gl_save_compiler_FLAGS"
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8195 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8196 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
8197 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
8200 # Too many warnings for now
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8203 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8204 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8208 gl_save_compiler_FLAGS="$CFLAGS"
8209 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8214 main ()
8218 return 0;
8220 _ACEOF
8221 if ac_fn_c_try_link "$LINENO"; then :
8222 gl_cv_warn_c__Wno_type_limits=yes
8223 else
8224 gl_cv_warn_c__Wno_type_limits=no
8226 rm -f core conftest.err conftest.$ac_objext \
8227 conftest$ac_exeext conftest.$ac_ext
8228 CFLAGS="$gl_save_compiler_FLAGS"
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8232 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8233 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8234 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8237 # Too many warnings for now
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8240 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8241 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8245 gl_save_compiler_FLAGS="$CFLAGS"
8246 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8251 main ()
8255 return 0;
8257 _ACEOF
8258 if ac_fn_c_try_link "$LINENO"; then :
8259 gl_cv_warn_c__Wno_switch=yes
8260 else
8261 gl_cv_warn_c__Wno_switch=no
8263 rm -f core conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 CFLAGS="$gl_save_compiler_FLAGS"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8269 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8270 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8271 as_fn_append WARN_CFLAGS " -Wno-switch"
8274 # Too many warnings for now
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8277 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8278 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8282 gl_save_compiler_FLAGS="$CFLAGS"
8283 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285 /* end confdefs.h. */
8288 main ()
8292 return 0;
8294 _ACEOF
8295 if ac_fn_c_try_link "$LINENO"; then :
8296 gl_cv_warn_c__Wno_unused_parameter=yes
8297 else
8298 gl_cv_warn_c__Wno_unused_parameter=no
8300 rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8302 CFLAGS="$gl_save_compiler_FLAGS"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8306 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8307 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8308 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8311 # Too many warnings for now
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8314 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8315 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8319 gl_save_compiler_FLAGS="$CFLAGS"
8320 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8325 main ()
8329 return 0;
8331 _ACEOF
8332 if ac_fn_c_try_link "$LINENO"; then :
8333 gl_cv_warn_c__Wno_format_nonliteral=yes
8334 else
8335 gl_cv_warn_c__Wno_format_nonliteral=no
8337 rm -f core conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 CFLAGS="$gl_save_compiler_FLAGS"
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8343 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8344 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8345 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8350 # In spite of excluding -Wlogical-op above, it is enabled, as of
8351 # gcc 4.5.0 20090517.
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8354 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8355 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8359 gl_save_compiler_FLAGS="$CFLAGS"
8360 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op"
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8365 main ()
8369 return 0;
8371 _ACEOF
8372 if ac_fn_c_try_link "$LINENO"; then :
8373 gl_cv_warn_c__Wno_logical_op=yes
8374 else
8375 gl_cv_warn_c__Wno_logical_op=no
8377 rm -f core conftest.err conftest.$ac_objext \
8378 conftest$ac_exeext conftest.$ac_ext
8379 CFLAGS="$gl_save_compiler_FLAGS"
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8383 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8384 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8385 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8390 # More things that clang is unduly picky about.
8391 if test $emacs_cv_clang = yes; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8394 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8395 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8399 gl_save_compiler_FLAGS="$CFLAGS"
8400 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args"
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8405 main ()
8409 return 0;
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 gl_cv_warn_c__Wno_format_extra_args=yes
8414 else
8415 gl_cv_warn_c__Wno_format_extra_args=no
8417 rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419 CFLAGS="$gl_save_compiler_FLAGS"
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8423 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8424 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8425 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8431 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8432 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8436 gl_save_compiler_FLAGS="$CFLAGS"
8437 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8442 main ()
8446 return 0;
8448 _ACEOF
8449 if ac_fn_c_try_link "$LINENO"; then :
8450 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8451 else
8452 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8454 rm -f core conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456 CFLAGS="$gl_save_compiler_FLAGS"
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8460 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8461 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8462 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8468 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8469 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8473 gl_save_compiler_FLAGS="$CFLAGS"
8474 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8479 main ()
8483 return 0;
8485 _ACEOF
8486 if ac_fn_c_try_link "$LINENO"; then :
8487 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8488 else
8489 gl_cv_warn_c__Wno_unused_command_line_argument=no
8491 rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8493 CFLAGS="$gl_save_compiler_FLAGS"
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8497 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8498 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8499 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8505 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8506 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8510 gl_save_compiler_FLAGS="$CFLAGS"
8511 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8516 main ()
8520 return 0;
8522 _ACEOF
8523 if ac_fn_c_try_link "$LINENO"; then :
8524 gl_cv_warn_c__Wno_unused_value=yes
8525 else
8526 gl_cv_warn_c__Wno_unused_value=no
8528 rm -f core conftest.err conftest.$ac_objext \
8529 conftest$ac_exeext conftest.$ac_ext
8530 CFLAGS="$gl_save_compiler_FLAGS"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8534 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8535 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8536 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8543 $as_echo "#define lint 1" >>confdefs.h
8547 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8550 # We use a slightly smaller set of warning options for lib/.
8551 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8553 nw="$nw -Wunused-macros"
8556 gl_warn_set=
8557 set x $WARN_CFLAGS; shift
8558 for gl_warn_item
8560 case " $nw " in
8561 *" $gl_warn_item "*)
8564 gl_warn_set="$gl_warn_set $gl_warn_item"
8566 esac
8567 done
8568 GNULIB_WARN_CFLAGS=$gl_warn_set
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8579 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8580 rm -f conf$$ conf$$.file
8582 LN_S_FILEONLY='cp -p'
8584 if (echo >conf$$.file) 2>/dev/null; then
8585 if ln -s conf$$.file conf$$ 2>/dev/null; then
8586 LN_S_FILEONLY='ln -s'
8587 elif ln conf$$.file conf$$ 2>/dev/null; then
8588 LN_S_FILEONLY=ln
8592 rm -f conf$$ conf$$.file
8594 if test "$LN_S_FILEONLY" = "ln -s"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8596 $as_echo "yes" >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8599 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8605 if test "$opsys" = "mingw32"; then
8606 LN_S="ln"
8609 # Extract the first word of "install-info", so it can be a program name with args.
8610 set dummy install-info; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 case $INSTALL_INFO in
8617 [\\/]* | ?:[\\/]*)
8618 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8628 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8632 done
8633 done
8634 IFS=$as_save_IFS
8636 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8638 esac
8640 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8641 if test -n "$INSTALL_INFO"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8643 $as_echo "$INSTALL_INFO" >&6; }
8644 else
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 $as_echo "no" >&6; }
8650 # Extract the first word of "gzip", so it can be a program name with args.
8651 set dummy gzip; ac_word=$2
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 $as_echo_n "checking for $ac_word... " >&6; }
8654 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 case $GZIP_PROG in
8658 [\\/]* | ?:[\\/]*)
8659 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8669 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8673 done
8674 done
8675 IFS=$as_save_IFS
8678 esac
8680 GZIP_PROG=$ac_cv_path_GZIP_PROG
8681 if test -n "$GZIP_PROG"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8683 $as_echo "$GZIP_PROG" >&6; }
8684 else
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8691 test $with_compress_install != yes && test -n "$GZIP_PROG" && \
8692 GZIP_PROG=" # $GZIP_PROG # (disabled by configure --without-compress-install)"
8694 if test $opsys = gnu-linux; then
8695 # Extract the first word of "paxctl", so it can be a program name with args.
8696 set dummy paxctl; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
8701 else
8702 case $PAXCTL in
8703 [\\/]* | ?:[\\/]*)
8704 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8714 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716 break 2
8718 done
8719 done
8720 IFS=$as_save_IFS
8723 esac
8725 PAXCTL=$ac_cv_path_PAXCTL
8726 if test -n "$PAXCTL"; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8728 $as_echo "$PAXCTL" >&6; }
8729 else
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8735 if test "X$PAXCTL" != X; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8737 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8742 main ()
8746 return 0;
8748 _ACEOF
8749 if ac_fn_c_try_link "$LINENO"; then :
8750 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8751 $as_echo "yes" >&6; }
8752 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }; PAXCTL=""; fi
8755 rm -f core conftest.err conftest.$ac_objext \
8756 conftest$ac_exeext conftest.$ac_ext
8760 ## Need makeinfo >= 4.7 (?) to build the manuals.
8761 # Extract the first word of "makeinfo", so it can be a program name with args.
8762 set dummy makeinfo; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 case $MAKEINFO in
8769 [\\/]* | ?:[\\/]*)
8770 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8784 done
8785 done
8786 IFS=$as_save_IFS
8788 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8790 esac
8792 MAKEINFO=$ac_cv_path_MAKEINFO
8793 if test -n "$MAKEINFO"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8795 $as_echo "$MAKEINFO" >&6; }
8796 else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8802 if test "$MAKEINFO" != "no"; then
8803 case `
8804 $MAKEINFO --version 2> /dev/null |
8805 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8806 ` in
8807 '') MAKEINFO=no;;
8808 esac
8811 ## Makeinfo is unusual. For a released Emacs, the manuals are
8812 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8813 ## therefore in the category of "special tools" not normally required, which
8814 ## configure does not have to check for (eg autoconf itself).
8815 ## In a Bazaar checkout on the other hand, the manuals are not included.
8816 ## So makeinfo is a requirement to build from Bazaar, and configure
8817 ## should test for it as it does for any other build requirement.
8818 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8819 ## with pre-built manuals, from a Bazaar checkout.
8820 HAVE_MAKEINFO=yes
8822 if test "$MAKEINFO" = "no"; then
8823 MAKEINFO=makeinfo
8824 if test "x${with_makeinfo}" = "xno"; then
8825 HAVE_MAKEINFO=no
8826 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8827 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8828 source tree does not seem to have pre-built manuals in the \`info' directory.
8829 Either install a suitable version of makeinfo, or re-run configure
8830 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8835 INFO_EXT=.info
8836 INFO_OPTS=--no-split
8840 if test $opsys = mingw32; then
8841 DOCMISC_W32=efaq-w32
8842 else
8843 DOCMISC_W32=
8848 if test x$GCC = xyes; then
8849 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8850 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8851 else
8852 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8853 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8857 late_LDFLAGS="$LDFLAGS"
8858 if test x$GCC = xyes; then
8859 LDFLAGS_NOCOMBRELOC="-Wl,-znocombreloc"
8860 else
8861 LDFLAGS_NOCOMBRELOC="-znocombreloc"
8864 LDFLAGS="$LDFLAGS $LDFLAGS_NOCOMBRELOC"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8867 $as_echo_n "checking for -znocombreloc... " >&6; }
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8872 main ()
8876 return 0;
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"; then :
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8881 $as_echo "yes" >&6; }
8882 else
8883 LDFLAGS_NOCOMBRELOC=
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8885 $as_echo "no" >&6; }
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8890 LDFLAGS="$late_LDFLAGS"
8892 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8893 case "$opsys" in
8894 your-opsys-here) CANNOT_DUMP=yes ;;
8895 esac
8897 test "$CANNOT_DUMP" = "yes" && \
8899 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8905 UNEXEC_OBJ=unexelf.o
8906 case "$opsys" in
8907 # MSDOS uses unexcoff.o
8908 aix4-2)
8909 UNEXEC_OBJ=unexaix.o
8911 cygwin)
8912 UNEXEC_OBJ=unexcw.o
8914 darwin)
8915 UNEXEC_OBJ=unexmacosx.o
8917 hpux10-20 | hpux11)
8918 UNEXEC_OBJ=unexhp9k800.o
8920 mingw32)
8921 UNEXEC_OBJ=unexw32.o
8923 sol2-10)
8924 # Use the Solaris dldump() function, called from unexsol.c, to dump
8925 # emacs, instead of the generic ELF dump code found in unexelf.c.
8926 # The resulting binary has a complete symbol table, and is better
8927 # for debugging and other observability tools (debuggers, pstack, etc).
8929 # If you encounter a problem using dldump(), please consider sending
8930 # a message to the OpenSolaris tools-linking mailing list:
8931 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8933 # It is likely that dldump() works with older Solaris too, but this has
8934 # not been tested, so for now this change is for Solaris 10 or newer.
8935 UNEXEC_OBJ=unexsol.o
8937 esac
8939 LD_SWITCH_SYSTEM=
8940 case "$opsys" in
8941 freebsd|dragonfly)
8942 ## Let `ld' find image libs and similar things in /usr/local/lib.
8943 ## The system compiler, GCC, has apparently been modified to not
8944 ## look there, contrary to what a stock GCC would do.
8945 ### It's not our place to do this. See bug#10313#17.
8946 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8950 gnu-linux)
8951 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8952 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8955 netbsd)
8956 ### It's not our place to do this. See bug#10313#17.
8957 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8961 openbsd)
8962 ## Han Boetes <han@boetes.org> says this is necessary,
8963 ## otherwise Emacs dumps core on elf systems.
8964 LD_SWITCH_SYSTEM="-Z"
8966 esac
8969 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8971 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8972 ## which has not been defined yet. When this was handled with cpp,
8973 ## it was expanded to null when configure sourced the s/*.h file.
8974 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8975 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8976 ## (or somesuch), but because it is supposed to go at the _front_
8977 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8978 ## Compare with the gnu-linux case below, which added to the end
8979 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8980 ## LD_SWITCH_SYSTEM_TEMACS.
8981 case "$opsys" in
8982 netbsd|openbsd)
8983 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8984 esac
8987 C_SWITCH_MACHINE=
8988 case $canonical in
8989 alpha*)
8990 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8991 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8995 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8996 ## With ELF, make sure that all common symbols get allocated to in the
8997 ## data section. Otherwise, the dump of temacs may miss variables in
8998 ## the shared library that have been initialized. For example, with
8999 ## GNU libc, __malloc_initialized would normally be resolved to the
9000 ## shared library's .bss section, which is fatal.
9001 if test "x$GCC" = "xyes"; then
9002 C_SWITCH_MACHINE="-fno-common"
9003 else
9004 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
9006 else
9007 UNEXEC_OBJ=unexalpha.o
9010 esac
9015 C_SWITCH_SYSTEM=
9016 ## Some programs in src produce warnings saying certain subprograms
9017 ## are too complex and need a MAXMEM value greater than 2000 for
9018 ## additional optimization. --nils@exp-math.uni-essen.de
9019 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
9020 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
9021 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
9022 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
9023 ## It is redundant in glibc2, since we define _GNU_SOURCE.
9027 LIBS_SYSTEM=
9028 case "$opsys" in
9029 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
9030 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
9032 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
9034 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
9036 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
9038 ## Motif needs -lgen.
9039 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
9040 esac
9044 ### Make sure subsequent tests use flags consistent with the build flags.
9046 if test x"${OVERRIDE_CPPFLAGS}" != x; then
9047 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
9048 else
9049 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
9052 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
9054 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
9058 LIB_MATH=-lm
9059 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
9061 case $opsys in
9062 cygwin )
9063 LIB_MATH=
9065 darwin )
9066 ## Adding -lm confuses the dynamic linker, so omit it.
9067 LIB_MATH=
9069 freebsd | dragonfly )
9070 SYSTEM_TYPE=berkeley-unix
9072 gnu-linux | gnu-kfreebsd )
9074 hpux10-20 | hpux11 )
9076 mingw32 )
9077 LIB_MATH=
9078 SYSTEM_TYPE=windows-nt
9080 netbsd | openbsd )
9081 SYSTEM_TYPE=berkeley-unix
9084 sol2* | unixware )
9085 SYSTEM_TYPE=usg-unix-v
9088 esac
9092 cat >>confdefs.h <<_ACEOF
9093 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9094 _ACEOF
9098 pre_PKG_CONFIG_CFLAGS=$CFLAGS
9099 pre_PKG_CONFIG_LIBS=$LIBS
9101 # Extract the first word of "pkg-config", so it can be a program name with args.
9102 set dummy pkg-config; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 case $PKG_CONFIG in
9109 [\\/]* | ?:[\\/]*)
9110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $PATH
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9124 done
9125 done
9126 IFS=$as_save_IFS
9128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9130 esac
9132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9133 if test -n "$PKG_CONFIG"; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9135 $as_echo "$PKG_CONFIG" >&6; }
9136 else
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }
9145 HAVE_SOUND=no
9146 if test "${with_sound}" != "no"; then
9147 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9148 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
9149 do :
9150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9151 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9152 #ifdef __MINGW32__
9153 #define WIN32_LEAN_AND_MEAN
9154 #include <windows.h>
9155 #endif
9158 eval as_val=\$$as_ac_Header
9159 if test "x$as_val" = x""yes; then :
9160 cat >>confdefs.h <<_ACEOF
9161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9162 _ACEOF
9163 have_sound_header=yes
9166 done
9168 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9169 as_fn_error "OSS sound support requested but not found." "$LINENO" 5
9171 if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then
9172 # Emulation library used on NetBSD.
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9174 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9175 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lossaudio $LIBS"
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9183 /* Override any GCC internal prototype to avoid an error.
9184 Use char because int might match the return type of a GCC
9185 builtin and then its argument prototype would still apply. */
9186 #ifdef __cplusplus
9187 extern "C"
9188 #endif
9189 char _oss_ioctl ();
9191 main ()
9193 return _oss_ioctl ();
9195 return 0;
9197 _ACEOF
9198 if ac_fn_c_try_link "$LINENO"; then :
9199 ac_cv_lib_ossaudio__oss_ioctl=yes
9200 else
9201 ac_cv_lib_ossaudio__oss_ioctl=no
9203 rm -f core conftest.err conftest.$ac_objext \
9204 conftest$ac_exeext conftest.$ac_ext
9205 LIBS=$ac_check_lib_save_LIBS
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9208 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9209 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9210 LIBSOUND=-lossaudio
9211 else
9212 LIBSOUND=
9215 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9216 as_fn_error "bsd-ossaudio sound support requested but not found." "$LINENO" 5
9220 if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then
9221 ALSA_REQUIRED=1.0.0
9222 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9224 succeeded=no
9226 if test "$PKG_CONFIG" = "no" ; then
9227 HAVE_ALSA=no
9228 else
9229 PKG_CONFIG_MIN_VERSION=0.9.0
9230 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9232 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9234 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9235 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9236 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9237 edit_cflags="
9238 s,///*,/,g
9239 s/^/ /
9240 s/ -I/ $isystem/g
9241 s/^ //
9243 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9244 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9246 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9247 succeeded=yes
9248 else
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9251 ALSA_CFLAGS=""
9252 ALSA_LIBS=""
9253 ## If we have a custom action on failure, don't print errors, but
9254 ## do set a variable so people can do so. Do it in a subshell
9255 ## to capture any diagnostics in invoking pkg-config.
9256 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9262 else
9263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9268 if test $succeeded = yes; then
9269 HAVE_ALSA=yes
9270 else
9271 HAVE_ALSA=no
9274 if test $HAVE_ALSA = yes; then
9275 SAVE_CFLAGS="$CFLAGS"
9276 SAVE_LIBS="$LIBS"
9277 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9278 LIBS="$ALSA_LIBS $LIBS"
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 #include <asoundlib.h>
9283 main ()
9285 snd_lib_error_set_handler (0);
9287 return 0;
9289 _ACEOF
9290 if ac_fn_c_try_compile "$LINENO"; then :
9291 emacs_alsa_normal=yes
9292 else
9293 emacs_alsa_normal=no
9295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 if test "$emacs_alsa_normal" != yes; then
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <alsa/asoundlib.h>
9301 main ()
9303 snd_lib_error_set_handler (0);
9305 return 0;
9307 _ACEOF
9308 if ac_fn_c_try_compile "$LINENO"; then :
9309 emacs_alsa_subdir=yes
9310 else
9311 emacs_alsa_subdir=no
9313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314 if test "$emacs_alsa_subdir" != yes; then
9315 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9317 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9320 CFLAGS="$SAVE_CFLAGS"
9321 LIBS="$SAVE_LIBS"
9322 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9323 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9325 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9327 elif test "${with_sound}" = "alsa"; then
9328 as_fn_error "ALSA sound support requested but not found." "$LINENO" 5
9331 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9332 case "$opsys" in
9333 gnu-linux|freebsd|netbsd|mingw32)
9335 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9337 HAVE_SOUND=yes
9339 esac
9348 for ac_header in $ac_header_list
9349 do :
9350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9351 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9353 eval as_val=\$$as_ac_Header
9354 if test "x$as_val" = x""yes; then :
9355 cat >>confdefs.h <<_ACEOF
9356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9357 _ACEOF
9361 done
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9382 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385 #include <sys/personality.h>
9387 main ()
9389 personality (PER_LINUX32)
9391 return 0;
9393 _ACEOF
9394 if ac_fn_c_try_compile "$LINENO"; then :
9395 emacs_cv_personality_linux32=yes
9396 else
9397 emacs_cv_personality_linux32=no
9399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9401 $as_echo "$emacs_cv_personality_linux32" >&6; }
9403 if test $emacs_cv_personality_linux32 = yes; then
9405 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9409 for ac_header in term.h
9410 do :
9411 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9412 if test "x$ac_cv_header_term_h" = x""yes; then :
9413 cat >>confdefs.h <<_ACEOF
9414 #define HAVE_TERM_H 1
9415 _ACEOF
9419 done
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9422 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9423 if test "${ac_cv_header_time+set}" = set; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428 #include <sys/types.h>
9429 #include <sys/time.h>
9430 #include <time.h>
9433 main ()
9435 if ((struct tm *) 0)
9436 return 0;
9438 return 0;
9440 _ACEOF
9441 if ac_fn_c_try_compile "$LINENO"; then :
9442 ac_cv_header_time=yes
9443 else
9444 ac_cv_header_time=no
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9449 $as_echo "$ac_cv_header_time" >&6; }
9450 if test $ac_cv_header_time = yes; then
9452 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9456 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9459 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9460 ac_have_decl=1
9461 else
9462 ac_have_decl=0
9465 cat >>confdefs.h <<_ACEOF
9466 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9467 _ACEOF
9469 if test $ac_cv_have_decl_sys_siglist != yes; then
9470 # For Tru64, at least:
9471 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9474 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9475 ac_have_decl=1
9476 else
9477 ac_have_decl=0
9480 cat >>confdefs.h <<_ACEOF
9481 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9482 _ACEOF
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9486 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9487 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9488 $as_echo_n "(cached) " >&6
9489 else
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 #include <sys/types.h>
9493 #include <sys/wait.h>
9494 #ifndef WEXITSTATUS
9495 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9496 #endif
9497 #ifndef WIFEXITED
9498 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9499 #endif
9502 main ()
9504 int s;
9505 wait (&s);
9506 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9508 return 0;
9510 _ACEOF
9511 if ac_fn_c_try_compile "$LINENO"; then :
9512 ac_cv_header_sys_wait_h=yes
9513 else
9514 ac_cv_header_sys_wait_h=no
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9519 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9520 if test $ac_cv_header_sys_wait_h = yes; then
9522 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9530 for ac_header in net/if.h
9531 do :
9532 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9533 #if HAVE_SYS_SOCKET_H
9534 #include <sys/socket.h>
9535 #endif
9537 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9538 cat >>confdefs.h <<_ACEOF
9539 #define HAVE_NET_IF_H 1
9540 _ACEOF
9544 done
9546 for ac_header in ifaddrs.h
9547 do :
9548 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9549 #if HAVE_SYS_SOCKET_H
9550 #include <sys/socket.h>
9551 #endif
9553 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9554 cat >>confdefs.h <<_ACEOF
9555 #define HAVE_IFADDRS_H 1
9556 _ACEOF
9560 done
9562 for ac_header in net/if_dl.h
9563 do :
9564 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9565 #if HAVE_SYS_SOCKET_H
9566 #include <sys/socket.h>
9567 #endif
9569 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9570 cat >>confdefs.h <<_ACEOF
9571 #define HAVE_NET_IF_DL_H 1
9572 _ACEOF
9576 done
9579 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9580 #if HAVE_SYS_SOCKET_H
9581 #include <sys/socket.h>
9582 #endif
9583 #if HAVE_NET_IF_H
9584 #include <net/if.h>
9585 #endif
9587 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9589 cat >>confdefs.h <<_ACEOF
9590 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9591 _ACEOF
9595 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9596 #if HAVE_SYS_SOCKET_H
9597 #include <sys/socket.h>
9598 #endif
9599 #if HAVE_NET_IF_H
9600 #include <net/if.h>
9601 #endif
9603 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9605 cat >>confdefs.h <<_ACEOF
9606 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9607 _ACEOF
9611 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9612 #if HAVE_SYS_SOCKET_H
9613 #include <sys/socket.h>
9614 #endif
9615 #if HAVE_NET_IF_H
9616 #include <net/if.h>
9617 #endif
9619 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9621 cat >>confdefs.h <<_ACEOF
9622 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9623 _ACEOF
9627 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9628 #if HAVE_SYS_SOCKET_H
9629 #include <sys/socket.h>
9630 #endif
9631 #if HAVE_NET_IF_H
9632 #include <net/if.h>
9633 #endif
9635 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9637 cat >>confdefs.h <<_ACEOF
9638 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9639 _ACEOF
9643 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9644 #if HAVE_SYS_SOCKET_H
9645 #include <sys/socket.h>
9646 #endif
9647 #if HAVE_NET_IF_H
9648 #include <net/if.h>
9649 #endif
9651 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9655 _ACEOF
9659 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9660 #if HAVE_SYS_SOCKET_H
9661 #include <sys/socket.h>
9662 #endif
9663 #if HAVE_NET_IF_H
9664 #include <net/if.h>
9665 #endif
9667 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9669 cat >>confdefs.h <<_ACEOF
9670 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9671 _ACEOF
9679 DEPFLAGS=
9680 MKDEPDIR=":"
9681 deps_frag=deps.mk
9682 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9684 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9685 HAVE_GNU_MAKE=no
9686 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9687 if test "x$testval" != x; then
9688 HAVE_GNU_MAKE=yes
9689 else
9690 ac_enable_autodepend=no
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9693 $as_echo "$HAVE_GNU_MAKE" >&6; }
9694 if test $HAVE_GNU_MAKE = yes; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9696 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9697 SAVE_CFLAGS="$CFLAGS"
9698 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9703 main ()
9707 return 0;
9709 _ACEOF
9710 if ac_fn_c_try_compile "$LINENO"; then :
9712 else
9713 ac_enable_autodepend=no
9715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716 CFLAGS="$SAVE_CFLAGS"
9717 test -f deps.d || ac_enable_autodepend=no
9718 rm -rf deps.d
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9720 $as_echo "$ac_enable_autodepend" >&6; }
9722 if test $ac_enable_autodepend = yes; then
9723 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9724 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9725 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9726 deps_frag=autodeps.mk
9729 deps_frag=$srcdir/src/$deps_frag
9735 lisp_frag=$srcdir/src/lisp.mk
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9740 $as_echo_n "checking for long file names... " >&6; }
9741 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9742 $as_echo_n "(cached) " >&6
9743 else
9744 ac_cv_sys_long_file_names=yes
9745 # Test for long file names in all the places we know might matter:
9746 # . the current directory, where building will happen
9747 # $prefix/lib where we will be installing things
9748 # $exec_prefix/lib likewise
9749 # $TMPDIR if set, where it might want to write temporary files
9750 # /tmp where it might want to write temporary files
9751 # /var/tmp likewise
9752 # /usr/tmp likewise
9753 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9754 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9755 # in the usual case where exec_prefix is '${prefix}'.
9756 case $ac_dir in #(
9757 . | /* | ?:[\\/]*) ;; #(
9758 *) continue;;
9759 esac
9760 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9761 ac_xdir=$ac_dir/cf$$
9762 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9763 ac_tf1=$ac_xdir/conftest9012345
9764 ac_tf2=$ac_xdir/conftest9012346
9765 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9766 ac_cv_sys_long_file_names=no
9767 rm -f -r "$ac_xdir" 2>/dev/null
9768 test $ac_cv_sys_long_file_names = no && break
9769 done
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9772 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9773 if test $ac_cv_sys_long_file_names = yes; then
9775 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9780 #### Choose a window system.
9782 ## We leave window_system equal to none if
9783 ## we end up building without one. Any new window system should
9784 ## set window_system to an appropriate value and add objects to
9785 ## window-system-specific substs.
9787 window_system=none
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9789 $as_echo_n "checking for X... " >&6; }
9792 # Check whether --with-x was given.
9793 if test "${with_x+set}" = set; then :
9794 withval=$with_x;
9797 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9798 if test "x$with_x" = xno; then
9799 # The user explicitly disabled X.
9800 have_x=disabled
9801 else
9802 case $x_includes,$x_libraries in #(
9803 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9804 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 # One or both of the vars are not set, and there is no cached value.
9808 ac_x_includes=no ac_x_libraries=no
9809 rm -f -r conftest.dir
9810 if mkdir conftest.dir; then
9811 cd conftest.dir
9812 cat >Imakefile <<'_ACEOF'
9813 incroot:
9814 @echo incroot='${INCROOT}'
9815 usrlibdir:
9816 @echo usrlibdir='${USRLIBDIR}'
9817 libdir:
9818 @echo libdir='${LIBDIR}'
9819 _ACEOF
9820 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9821 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9822 for ac_var in incroot usrlibdir libdir; do
9823 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9824 done
9825 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9826 for ac_extension in a so sl dylib la dll; do
9827 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9828 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9829 ac_im_usrlibdir=$ac_im_libdir; break
9831 done
9832 # Screen out bogus values from the imake configuration. They are
9833 # bogus both because they are the default anyway, and because
9834 # using them would break gcc on systems where it needs fixed includes.
9835 case $ac_im_incroot in
9836 /usr/include) ac_x_includes= ;;
9837 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9838 esac
9839 case $ac_im_usrlibdir in
9840 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9841 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9842 esac
9844 cd ..
9845 rm -f -r conftest.dir
9848 # Standard set of common directories for X headers.
9849 # Check X11 before X11Rn because it is often a symlink to the current release.
9850 ac_x_header_dirs='
9851 /usr/X11/include
9852 /usr/X11R7/include
9853 /usr/X11R6/include
9854 /usr/X11R5/include
9855 /usr/X11R4/include
9857 /usr/include/X11
9858 /usr/include/X11R7
9859 /usr/include/X11R6
9860 /usr/include/X11R5
9861 /usr/include/X11R4
9863 /usr/local/X11/include
9864 /usr/local/X11R7/include
9865 /usr/local/X11R6/include
9866 /usr/local/X11R5/include
9867 /usr/local/X11R4/include
9869 /usr/local/include/X11
9870 /usr/local/include/X11R7
9871 /usr/local/include/X11R6
9872 /usr/local/include/X11R5
9873 /usr/local/include/X11R4
9875 /usr/X386/include
9876 /usr/x386/include
9877 /usr/XFree86/include/X11
9879 /usr/include
9880 /usr/local/include
9881 /usr/unsupported/include
9882 /usr/athena/include
9883 /usr/local/x11r5/include
9884 /usr/lpp/Xamples/include
9886 /usr/openwin/include
9887 /usr/openwin/share/include'
9889 if test "$ac_x_includes" = no; then
9890 # Guess where to find include files, by looking for Xlib.h.
9891 # First, try using that file with no special directory specified.
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 #include <X11/Xlib.h>
9895 _ACEOF
9896 if ac_fn_c_try_cpp "$LINENO"; then :
9897 # We can compile using X headers with no special include directory.
9898 ac_x_includes=
9899 else
9900 for ac_dir in $ac_x_header_dirs; do
9901 if test -r "$ac_dir/X11/Xlib.h"; then
9902 ac_x_includes=$ac_dir
9903 break
9905 done
9907 rm -f conftest.err conftest.$ac_ext
9908 fi # $ac_x_includes = no
9910 if test "$ac_x_libraries" = no; then
9911 # Check for the libraries.
9912 # See if we find them without any special options.
9913 # Don't add to $LIBS permanently.
9914 ac_save_LIBS=$LIBS
9915 LIBS="-lX11 $LIBS"
9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9918 #include <X11/Xlib.h>
9920 main ()
9922 XrmInitialize ()
9924 return 0;
9926 _ACEOF
9927 if ac_fn_c_try_link "$LINENO"; then :
9928 LIBS=$ac_save_LIBS
9929 # We can link X programs with no special library path.
9930 ac_x_libraries=
9931 else
9932 LIBS=$ac_save_LIBS
9933 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9935 # Don't even attempt the hair of trying to link an X program!
9936 for ac_extension in a so sl dylib la dll; do
9937 if test -r "$ac_dir/libX11.$ac_extension"; then
9938 ac_x_libraries=$ac_dir
9939 break 2
9941 done
9942 done
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 fi # $ac_x_libraries = no
9948 case $ac_x_includes,$ac_x_libraries in #(
9949 no,* | *,no | *\'*)
9950 # Didn't find X, or a directory has "'" in its name.
9951 ac_cv_have_x="have_x=no";; #(
9953 # Record where we found X for the cache.
9954 ac_cv_have_x="have_x=yes\
9955 ac_x_includes='$ac_x_includes'\
9956 ac_x_libraries='$ac_x_libraries'"
9957 esac
9959 ;; #(
9960 *) have_x=yes;;
9961 esac
9962 eval "$ac_cv_have_x"
9963 fi # $with_x != no
9965 if test "$have_x" != yes; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9967 $as_echo "$have_x" >&6; }
9968 no_x=yes
9969 else
9970 # If each of the values was on the command line, it overrides each guess.
9971 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9972 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9973 # Update the cache value to reflect the command line values.
9974 ac_cv_have_x="have_x=yes\
9975 ac_x_includes='$x_includes'\
9976 ac_x_libraries='$x_libraries'"
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9978 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9981 if test "$no_x" != yes; then
9982 window_system=x11
9985 LD_SWITCH_X_SITE_RPATH=
9986 if test "${x_libraries}" != NONE; then
9987 if test -n "${x_libraries}"; then
9988 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9989 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9991 x_default_search_path=""
9992 x_search_path=${x_libraries}
9993 if test -z "${x_search_path}"; then
9994 x_search_path=/usr/lib
9996 for x_library in `echo ${x_search_path}: | \
9997 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9998 x_search_path="\
9999 ${x_library}/X11/%L/%T/%N%C%S:\
10000 ${x_library}/X11/%l/%T/%N%C%S:\
10001 ${x_library}/X11/%T/%N%C%S:\
10002 ${x_library}/X11/%L/%T/%N%S:\
10003 ${x_library}/X11/%l/%T/%N%S:\
10004 ${x_library}/X11/%T/%N%S"
10005 if test x"${x_default_search_path}" = x; then
10006 x_default_search_path=${x_search_path}
10007 else
10008 x_default_search_path="${x_search_path}:${x_default_search_path}"
10010 done
10014 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10015 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
10018 if test x"${x_includes}" = x; then
10019 bitmapdir=/usr/include/X11/bitmaps
10020 else
10021 # accumulate include directories that have X11 bitmap subdirectories
10022 bmd_acc="dummyval"
10023 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10024 if test -d "${bmd}/X11/bitmaps"; then
10025 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10027 if test -d "${bmd}/bitmaps"; then
10028 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10030 done
10031 if test ${bmd_acc} != "dummyval"; then
10032 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10036 HAVE_NS=no
10037 NS_IMPL_COCOA=no
10038 NS_IMPL_GNUSTEP=no
10039 tmp_CPPFLAGS="$CPPFLAGS"
10040 tmp_CFLAGS="$CFLAGS"
10041 CPPFLAGS="$CPPFLAGS -x objective-c"
10042 CFLAGS="$CFLAGS -x objective-c"
10043 GNU_OBJC_CFLAGS=
10044 LIBS_GNUSTEP=
10045 if test "${with_ns}" != no; then
10046 if test "${opsys}" = darwin; then
10047 NS_IMPL_COCOA=yes
10048 ns_appdir=`pwd`/nextstep/Emacs.app
10049 ns_appbindir=${ns_appdir}/Contents/MacOS
10050 ns_appresdir=${ns_appdir}/Contents/Resources
10051 ns_appsrc=Cocoa/Emacs.base
10052 elif test -f $GNUSTEP_CONFIG_FILE; then
10053 NS_IMPL_GNUSTEP=yes
10054 ns_appdir=`pwd`/nextstep/Emacs.app
10055 ns_appbindir=${ns_appdir}
10056 ns_appresdir=${ns_appdir}/Resources
10057 ns_appsrc=GNUstep/Emacs.base
10058 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
10059 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
10060 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
10061 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
10062 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
10063 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
10064 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
10065 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
10066 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10067 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
10068 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
10069 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
10071 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
10072 if test "${emacs_cv_objc_exceptions+set}" = set; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077 #include <GNUstepBase/GSConfig.h>
10079 main ()
10081 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10083 #else
10084 fail;
10085 #endif
10087 return 0;
10089 _ACEOF
10090 if ac_fn_c_try_compile "$LINENO"; then :
10091 emacs_cv_objc_exceptions=yes
10092 else
10093 emacs_cv_objc_exceptions=no
10095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10098 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10099 if test $emacs_cv_objc_exceptions = yes; then
10101 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10103 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10107 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10109 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10110 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10111 HAVE_NS=yes
10112 else
10113 as_fn_error "\`--with-ns' was specified, but the include
10114 files are missing or cannot be compiled." "$LINENO" 5
10119 macfont_file=""
10120 if test "${NS_IMPL_COCOA}" = "yes"; then
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.4 or newer" >&5
10122 $as_echo_n "checking for OSX 10.4 or newer... " >&6; }
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 #include <AppKit/AppKit.h>
10127 main ()
10130 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10131 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10132 ; /* OK */
10133 #else
10134 #error "OSX 10.4 or newer required"
10135 #endif
10136 #endif
10139 return 0;
10141 _ACEOF
10142 if ac_fn_c_try_compile "$LINENO"; then :
10143 ns_osx_have_104=yes
10144 else
10145 ns_osx_have_104=no
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_104" >&5
10149 $as_echo "$ns_osx_have_104" >&6; }
10151 if test $ns_osx_have_104 = no; then
10152 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 or newer" >&5
10155 $as_echo_n "checking for OSX 10.5 or newer... " >&6; }
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <AppKit/AppKit.h>
10160 main ()
10163 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10164 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
10165 ; /* OK */
10166 #else
10167 #error "OSX 10.5 not found"
10168 #endif
10169 #endif
10172 return 0;
10174 _ACEOF
10175 if ac_fn_c_try_compile "$LINENO"; then :
10176 ns_osx_have_105=yes
10177 else
10178 ns_osx_have_105=no
10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ns_osx_have_105" >&5
10182 $as_echo "$ns_osx_have_105" >&6; }
10183 if test $ns_osx_have_105 = yes; then
10184 macfont_file="macfont.o"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <Foundation/NSObjCRuntime.h>
10191 main ()
10193 NSInteger i;
10195 return 0;
10197 _ACEOF
10198 if ac_fn_c_try_compile "$LINENO"; then :
10199 ns_have_nsinteger=yes
10200 else
10201 ns_have_nsinteger=no
10203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10204 if test $ns_have_nsinteger = yes; then
10206 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10213 INSTALL_ARCH_INDEP_EXTRA=install-etc
10214 ns_self_contained=no
10215 NS_OBJ=
10216 NS_OBJC_OBJ=
10217 if test "${HAVE_NS}" = yes; then
10218 if test "$with_toolkit_scroll_bars" = "no"; then
10219 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10222 window_system=nextstep
10223 # set up packaging dirs
10224 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10225 ns_self_contained=yes
10226 prefix=${ns_appresdir}
10227 exec_prefix=${ns_appbindir}
10228 libexecdir="\${ns_appbindir}/libexec"
10229 archlibdir="\${ns_appbindir}/libexec"
10230 etcdocdir="\${ns_appresdir}/etc"
10231 etcdir="\${ns_appresdir}/etc"
10232 infodir="\${ns_appresdir}/info"
10233 mandir="\${ns_appresdir}/man"
10234 lispdir="\${ns_appresdir}/lisp"
10235 leimdir="\${ns_appresdir}/leim"
10236 INSTALL_ARCH_INDEP_EXTRA=
10239 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
10241 CFLAGS="$tmp_CFLAGS"
10242 CPPFLAGS="$tmp_CPPFLAGS"
10248 HAVE_W32=no
10249 W32_OBJ=
10250 W32_LIBS=
10251 EMACSRES=
10252 CLIENTRES=
10253 CLIENTW=
10254 W32_RES_LINK=
10255 EMACS_MANIFEST=
10256 UPDATE_MANIFEST=
10257 if test "${with_w32}" != no; then
10258 case "${opsys}" in
10259 cygwin)
10260 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10261 if test "x$ac_cv_header_windows_h" = x""yes; then :
10262 HAVE_W32=yes
10263 else
10264 as_fn_error "\`--with-w32' was specified, but windows.h
10265 cannot be found." "$LINENO" 5
10270 mingw32)
10271 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10274 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10276 esac
10279 if test "${opsys}" = "mingw32"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10281 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10285 #include <windows.h>
10286 #include <usp10.h>
10288 main ()
10290 PIMAGE_NT_HEADERS pHeader;
10291 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10293 return 0;
10295 _ACEOF
10296 if ac_fn_c_try_compile "$LINENO"; then :
10297 emacs_cv_w32api=yes
10298 HAVE_W32=yes
10299 else
10300 emacs_cv_w32api=no
10302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10304 $as_echo "$emacs_cv_w32api" >&6; }
10305 if test "${emacs_cv_w32api}" = "no"; then
10306 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10310 FIRSTFILE_OBJ=
10311 NTDIR=
10312 LIBS_ECLIENT=
10313 LIB_WSOCK32=
10314 NTLIB=
10315 CM_OBJ="cm.o"
10316 XARGS_LIMIT=
10317 if test "${HAVE_W32}" = "yes"; then
10319 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10321 if test -n "$ac_tool_prefix"; then
10322 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10323 set dummy ${ac_tool_prefix}windres; ac_word=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329 if test -n "$WINDRES"; then
10330 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10331 else
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10339 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341 break 2
10343 done
10344 done
10345 IFS=$as_save_IFS
10349 WINDRES=$ac_cv_prog_WINDRES
10350 if test -n "$WINDRES"; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10352 $as_echo "$WINDRES" >&6; }
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10360 if test -z "$ac_cv_prog_WINDRES"; then
10361 ac_ct_WINDRES=$WINDRES
10362 # Extract the first word of "windres", so it can be a program name with args.
10363 set dummy windres; ac_word=$2
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365 $as_echo_n "checking for $ac_word... " >&6; }
10366 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369 if test -n "$ac_ct_WINDRES"; then
10370 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10371 else
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10379 ac_cv_prog_ac_ct_WINDRES="windres"
10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10381 break 2
10383 done
10384 done
10385 IFS=$as_save_IFS
10389 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10390 if test -n "$ac_ct_WINDRES"; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10392 $as_echo "$ac_ct_WINDRES" >&6; }
10393 else
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10398 if test "x$ac_ct_WINDRES" = x; then
10399 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10400 else
10401 case $cross_compiling:$ac_tool_warned in
10402 yes:)
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10405 ac_tool_warned=yes ;;
10406 esac
10407 WINDRES=$ac_ct_WINDRES
10409 else
10410 WINDRES="$ac_cv_prog_WINDRES"
10413 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10414 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10415 EMACSRES="emacs.res"
10416 case "$canonical" in
10417 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10418 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10419 esac
10420 UPDATE_MANIFEST=update-game-score.exe.manifest
10421 if test "${opsys}" = "cygwin"; then
10422 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10423 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10424 # Tell the linker that emacs.res is an object (which we compile from
10425 # the rc file), not a linker script.
10426 W32_RES_LINK="-Wl,emacs.res"
10427 else
10428 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10429 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10430 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10431 W32_RES_LINK="\$(EMACSRES)"
10432 CLIENTRES="emacsclient.res"
10433 CLIENTW="emacsclientw\$(EXEEXT)"
10434 FIRSTFILE_OBJ=firstfile.o
10435 NTDIR=nt
10436 CM_OBJ=
10437 LIBS_ECLIENT="-lcomctl32"
10438 LIB_WSOCK32="-lwsock32"
10439 NTLIB="ntlib.$ac_objext"
10440 XARGS_LIMIT="-s 10000"
10459 if test "${HAVE_W32}" = "yes"; then
10460 window_system=w32
10461 with_xft=no
10464 ## $window_system is now set to the window system we will
10465 ## ultimately use.
10467 if test "$window_system" = none && test "$gl_gcc_warnings" = yes; then
10468 # Too many warnings for now.
10470 nw="$nw -Wsuggest-attribute=const"
10471 nw="$nw -Wsuggest-attribute=noreturn"
10473 gl_warn_set=
10474 set x $WARN_CFLAGS; shift
10475 for gl_warn_item
10477 case " $nw " in
10478 *" $gl_warn_item "*)
10481 gl_warn_set="$gl_warn_set $gl_warn_item"
10483 esac
10484 done
10485 WARN_CFLAGS=$gl_warn_set
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-variable" >&5
10490 $as_echo_n "checking whether C compiler handles -Wno-unused-variable... " >&6; }
10491 if test "${gl_cv_warn_c__Wno_unused_variable+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10495 gl_save_compiler_FLAGS="$CFLAGS"
10496 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-variable"
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10501 main ()
10505 return 0;
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"; then :
10509 gl_cv_warn_c__Wno_unused_variable=yes
10510 else
10511 gl_cv_warn_c__Wno_unused_variable=no
10513 rm -f core conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 CFLAGS="$gl_save_compiler_FLAGS"
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_variable" >&5
10519 $as_echo "$gl_cv_warn_c__Wno_unused_variable" >&6; }
10520 if test "x$gl_cv_warn_c__Wno_unused_variable" = x""yes; then :
10521 as_fn_append WARN_CFLAGS " -Wno-unused-variable"
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-variable" >&5
10527 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-variable... " >&6; }
10528 if test "${gl_cv_warn_c__Wno_unused_but_set_variable+set}" = set; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10532 gl_save_compiler_FLAGS="$CFLAGS"
10533 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-variable"
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10538 main ()
10542 return 0;
10544 _ACEOF
10545 if ac_fn_c_try_link "$LINENO"; then :
10546 gl_cv_warn_c__Wno_unused_but_set_variable=yes
10547 else
10548 gl_cv_warn_c__Wno_unused_but_set_variable=no
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 CFLAGS="$gl_save_compiler_FLAGS"
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_variable" >&5
10556 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_variable" >&6; }
10557 if test "x$gl_cv_warn_c__Wno_unused_but_set_variable" = x""yes; then :
10558 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-variable"
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-parameter" >&5
10564 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-parameter... " >&6; }
10565 if test "${gl_cv_warn_c__Wno_unused_but_set_parameter+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
10567 else
10569 gl_save_compiler_FLAGS="$CFLAGS"
10570 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-parameter"
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10575 main ()
10579 return 0;
10581 _ACEOF
10582 if ac_fn_c_try_link "$LINENO"; then :
10583 gl_cv_warn_c__Wno_unused_but_set_parameter=yes
10584 else
10585 gl_cv_warn_c__Wno_unused_but_set_parameter=no
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 CFLAGS="$gl_save_compiler_FLAGS"
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_parameter" >&5
10593 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_parameter" >&6; }
10594 if test "x$gl_cv_warn_c__Wno_unused_but_set_parameter" = x""yes; then :
10595 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-parameter"
10601 term_header=
10602 HAVE_X_WINDOWS=no
10603 HAVE_X11=no
10604 USE_X_TOOLKIT=none
10606 case "${window_system}" in
10607 x11 )
10608 HAVE_X_WINDOWS=yes
10609 HAVE_X11=yes
10610 term_header=xterm.h
10611 case "${with_x_toolkit}" in
10612 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10613 motif ) USE_X_TOOLKIT=MOTIF ;;
10614 gtk ) with_gtk=yes
10615 term_header=gtkutil.h
10616 USE_X_TOOLKIT=none ;;
10617 gtk2 ) with_gtk2=yes
10618 term_header=gtkutil.h
10619 USE_X_TOOLKIT=none ;;
10620 gtk3 ) with_gtk3=yes
10621 term_header=gtkutil.h
10622 USE_X_TOOLKIT=none ;;
10623 no ) USE_X_TOOLKIT=none ;;
10624 * ) USE_X_TOOLKIT=maybe ;;
10625 esac
10627 nextstep )
10628 term_header=nsterm.h
10630 w32 )
10631 term_header=w32term.h
10633 esac
10635 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10636 # Extract the first word of "X", so it can be a program name with args.
10637 set dummy X; ac_word=$2
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639 $as_echo_n "checking for $ac_word... " >&6; }
10640 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10642 else
10643 if test -n "$HAVE_XSERVER"; then
10644 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10645 else
10646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10647 for as_dir in $PATH
10649 IFS=$as_save_IFS
10650 test -z "$as_dir" && as_dir=.
10651 for ac_exec_ext in '' $ac_executable_extensions; do
10652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10653 ac_cv_prog_HAVE_XSERVER="true"
10654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10655 break 2
10657 done
10658 done
10659 IFS=$as_save_IFS
10661 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10664 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10665 if test -n "$HAVE_XSERVER"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10667 $as_echo "$HAVE_XSERVER" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10674 if test "$HAVE_XSERVER" = true ||
10675 test -n "$DISPLAY" ||
10676 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10677 as_fn_error "You seem to be running X, but no X development libraries
10678 were found. You should install the relevant development files for X
10679 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10680 sure you have development files for image handling, i.e.
10681 tiff, gif, jpeg, png and xpm.
10682 If you are sure you want Emacs compiled without X window support, pass
10683 --without-x
10684 to configure." "$LINENO" 5
10688 ### If we're using X11, we should use the X menu package.
10689 HAVE_MENUS=no
10690 case ${HAVE_X11} in
10691 yes ) HAVE_MENUS=yes ;;
10692 esac
10694 # Does the opsystem file prohibit the use of the GNU malloc?
10695 # Assume not, until told otherwise.
10696 GNU_MALLOC=yes
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10699 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10700 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 #include <malloc.h>
10706 static void hook (void) {}
10708 main ()
10710 malloc_set_state (malloc_get_state ());
10711 __after_morecore_hook = hook;
10712 __malloc_initialize_hook = hook;
10714 return 0;
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 emacs_cv_var_doug_lea_malloc=yes
10719 else
10720 emacs_cv_var_doug_lea_malloc=no
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10726 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10727 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10730 system_malloc=no
10731 case "$opsys" in
10732 ## darwin ld insists on the use of malloc routines in the System framework.
10733 darwin|sol2-10) system_malloc=yes ;;
10734 esac
10736 if test "${system_malloc}" = "yes"; then
10738 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10740 GNU_MALLOC=no
10741 GNU_MALLOC_reason="
10742 (The GNU allocators don't work with this system configuration.)"
10743 GMALLOC_OBJ=
10744 VMLIMIT_OBJ=
10745 else
10746 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10747 VMLIMIT_OBJ=vm-limit.o
10749 for ac_header in sys/vlimit.h
10750 do :
10751 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10752 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10753 cat >>confdefs.h <<_ACEOF
10754 #define HAVE_SYS_VLIMIT_H 1
10755 _ACEOF
10759 done
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10762 $as_echo_n "checking for data_start... " >&6; }
10763 if test "${emacs_cv_data_start+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 extern char data_start[]; char ch;
10770 main ()
10772 return data_start < &ch;
10774 return 0;
10776 _ACEOF
10777 if ac_fn_c_try_link "$LINENO"; then :
10778 emacs_cv_data_start=yes
10779 else
10780 emacs_cv_data_start=no
10782 rm -f core conftest.err conftest.$ac_objext \
10783 conftest$ac_exeext conftest.$ac_ext
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10786 $as_echo "$emacs_cv_data_start" >&6; }
10787 if test $emacs_cv_data_start = yes; then
10789 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10796 if test "$doug_lea_malloc" = "yes" ; then
10797 if test "$GNU_MALLOC" = yes ; then
10798 GNU_MALLOC_reason="
10799 (Using Doug Lea's new malloc from the GNU C Library.)"
10802 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10805 ## Use mmap directly for allocating larger buffers.
10806 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10807 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10808 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10809 case "$opsys" in
10810 gnu*) REL_ALLOC=no ;;
10811 esac
10814 if test x"${REL_ALLOC}" = x; then
10815 REL_ALLOC=${GNU_MALLOC}
10818 use_mmap_for_buffers=no
10819 case "$opsys" in
10820 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10821 esac
10830 for ac_func in getpagesize
10831 do :
10832 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10833 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10834 cat >>confdefs.h <<_ACEOF
10835 #define HAVE_GETPAGESIZE 1
10836 _ACEOF
10839 done
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10842 $as_echo_n "checking for working mmap... " >&6; }
10843 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10844 $as_echo_n "(cached) " >&6
10845 else
10846 if test "$cross_compiling" = yes; then :
10847 ac_cv_func_mmap_fixed_mapped=no
10848 else
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 $ac_includes_default
10852 /* malloc might have been renamed as rpl_malloc. */
10853 #undef malloc
10855 /* Thanks to Mike Haertel and Jim Avera for this test.
10856 Here is a matrix of mmap possibilities:
10857 mmap private not fixed
10858 mmap private fixed at somewhere currently unmapped
10859 mmap private fixed at somewhere already mapped
10860 mmap shared not fixed
10861 mmap shared fixed at somewhere currently unmapped
10862 mmap shared fixed at somewhere already mapped
10863 For private mappings, we should verify that changes cannot be read()
10864 back from the file, nor mmap's back from the file at a different
10865 address. (There have been systems where private was not correctly
10866 implemented like the infamous i386 svr4.0, and systems where the
10867 VM page cache was not coherent with the file system buffer cache
10868 like early versions of FreeBSD and possibly contemporary NetBSD.)
10869 For shared mappings, we should conversely verify that changes get
10870 propagated back to all the places they're supposed to be.
10872 Grep wants private fixed already mapped.
10873 The main things grep needs to know about mmap are:
10874 * does it exist and is it safe to write into the mmap'd area
10875 * how to use it (BSD variants) */
10877 #include <fcntl.h>
10878 #include <sys/mman.h>
10880 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10881 char *malloc ();
10882 #endif
10884 /* This mess was copied from the GNU getpagesize.h. */
10885 #ifndef HAVE_GETPAGESIZE
10886 # ifdef _SC_PAGESIZE
10887 # define getpagesize() sysconf(_SC_PAGESIZE)
10888 # else /* no _SC_PAGESIZE */
10889 # ifdef HAVE_SYS_PARAM_H
10890 # include <sys/param.h>
10891 # ifdef EXEC_PAGESIZE
10892 # define getpagesize() EXEC_PAGESIZE
10893 # else /* no EXEC_PAGESIZE */
10894 # ifdef NBPG
10895 # define getpagesize() NBPG * CLSIZE
10896 # ifndef CLSIZE
10897 # define CLSIZE 1
10898 # endif /* no CLSIZE */
10899 # else /* no NBPG */
10900 # ifdef NBPC
10901 # define getpagesize() NBPC
10902 # else /* no NBPC */
10903 # ifdef PAGESIZE
10904 # define getpagesize() PAGESIZE
10905 # endif /* PAGESIZE */
10906 # endif /* no NBPC */
10907 # endif /* no NBPG */
10908 # endif /* no EXEC_PAGESIZE */
10909 # else /* no HAVE_SYS_PARAM_H */
10910 # define getpagesize() 8192 /* punt totally */
10911 # endif /* no HAVE_SYS_PARAM_H */
10912 # endif /* no _SC_PAGESIZE */
10914 #endif /* no HAVE_GETPAGESIZE */
10917 main ()
10919 char *data, *data2, *data3;
10920 const char *cdata2;
10921 int i, pagesize;
10922 int fd, fd2;
10924 pagesize = getpagesize ();
10926 /* First, make a file with some known garbage in it. */
10927 data = (char *) malloc (pagesize);
10928 if (!data)
10929 return 1;
10930 for (i = 0; i < pagesize; ++i)
10931 *(data + i) = rand ();
10932 umask (0);
10933 fd = creat ("conftest.mmap", 0600);
10934 if (fd < 0)
10935 return 2;
10936 if (write (fd, data, pagesize) != pagesize)
10937 return 3;
10938 close (fd);
10940 /* Next, check that the tail of a page is zero-filled. File must have
10941 non-zero length, otherwise we risk SIGBUS for entire page. */
10942 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10943 if (fd2 < 0)
10944 return 4;
10945 cdata2 = "";
10946 if (write (fd2, cdata2, 1) != 1)
10947 return 5;
10948 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10949 if (data2 == MAP_FAILED)
10950 return 6;
10951 for (i = 0; i < pagesize; ++i)
10952 if (*(data2 + i))
10953 return 7;
10954 close (fd2);
10955 if (munmap (data2, pagesize))
10956 return 8;
10958 /* Next, try to mmap the file at a fixed address which already has
10959 something else allocated at it. If we can, also make sure that
10960 we see the same garbage. */
10961 fd = open ("conftest.mmap", O_RDWR);
10962 if (fd < 0)
10963 return 9;
10964 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10965 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10966 return 10;
10967 for (i = 0; i < pagesize; ++i)
10968 if (*(data + i) != *(data2 + i))
10969 return 11;
10971 /* Finally, make sure that changes to the mapped area do not
10972 percolate back to the file as seen by read(). (This is a bug on
10973 some variants of i386 svr4.0.) */
10974 for (i = 0; i < pagesize; ++i)
10975 *(data2 + i) = *(data2 + i) + 1;
10976 data3 = (char *) malloc (pagesize);
10977 if (!data3)
10978 return 12;
10979 if (read (fd, data3, pagesize) != pagesize)
10980 return 13;
10981 for (i = 0; i < pagesize; ++i)
10982 if (*(data + i) != *(data3 + i))
10983 return 14;
10984 close (fd);
10985 return 0;
10987 _ACEOF
10988 if ac_fn_c_try_run "$LINENO"; then :
10989 ac_cv_func_mmap_fixed_mapped=yes
10990 else
10991 ac_cv_func_mmap_fixed_mapped=no
10993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10994 conftest.$ac_objext conftest.beam conftest.$ac_ext
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10999 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11000 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11002 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11005 rm -f conftest.mmap conftest.txt
11007 if test $use_mmap_for_buffers = yes; then
11009 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
11011 REL_ALLOC=no
11014 LIBS="$LIBS_SYSTEM $LIBS"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
11017 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11018 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-ldnet $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 /* Override any GCC internal prototype to avoid an error.
11027 Use char because int might match the return type of a GCC
11028 builtin and then its argument prototype would still apply. */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char dnet_ntoa ();
11034 main ()
11036 return dnet_ntoa ();
11038 return 0;
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042 ac_cv_lib_dnet_dnet_ntoa=yes
11043 else
11044 ac_cv_lib_dnet_dnet_ntoa=no
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11051 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11052 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
11053 cat >>confdefs.h <<_ACEOF
11054 #define HAVE_LIBDNET 1
11055 _ACEOF
11057 LIBS="-ldnet $LIBS"
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
11063 $as_echo_n "checking for main in -lXbsd... " >&6; }
11064 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-lXbsd $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11074 main ()
11076 return main ();
11078 return 0;
11080 _ACEOF
11081 if ac_fn_c_try_link "$LINENO"; then :
11082 ac_cv_lib_Xbsd_main=yes
11083 else
11084 ac_cv_lib_Xbsd_main=no
11086 rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 LIBS=$ac_check_lib_save_LIBS
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
11091 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11092 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
11093 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11097 LIB_PTHREAD=
11101 if test "$ac_cv_header_pthread_h"; then
11102 if test "$GMALLOC_OBJ" = gmalloc.o; then
11103 emacs_pthread_function=pthread_atfork
11104 else
11105 emacs_pthread_function=pthread_self
11107 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
11109 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
11110 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-lpthread $LIBS"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11118 /* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char $emacs_pthread_function ();
11126 main ()
11128 return $emacs_pthread_function ();
11130 return 0;
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134 eval "$as_ac_Lib=yes"
11135 else
11136 eval "$as_ac_Lib=no"
11138 rm -f core conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11142 eval ac_res=\$$as_ac_Lib
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11144 $as_echo "$ac_res" >&6; }
11145 eval as_val=\$$as_ac_Lib
11146 if test "x$as_val" = x""yes; then :
11147 HAVE_PTHREAD=yes
11151 if test "$HAVE_PTHREAD" = yes; then
11152 case "${canonical}" in
11153 *-hpux*) ;;
11154 *) LIB_PTHREAD="-lpthread"
11155 LIBS="$LIB_PTHREAD $LIBS" ;;
11156 esac
11158 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
11164 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11165 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_check_lib_save_LIBS=$LIBS
11169 LIBS="-lpthreads $LIBS"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char cma_open ();
11181 main ()
11183 return cma_open ();
11185 return 0;
11187 _ACEOF
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 ac_cv_lib_pthreads_cma_open=yes
11190 else
11191 ac_cv_lib_pthreads_cma_open=no
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11198 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11199 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11200 cat >>confdefs.h <<_ACEOF
11201 #define HAVE_LIBPTHREADS 1
11202 _ACEOF
11204 LIBS="-lpthreads $LIBS"
11209 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11210 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11211 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11212 ## added to LIBS in configure would never contain the pthreads part,
11213 ## but the value used in Makefiles might. FIXME?
11215 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11216 ## be harmless on older versions of X where it happens to exist.
11217 test "$opsys" = "aix4-2" && \
11218 test $ac_cv_lib_pthreads_cma_open = yes && \
11219 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11222 case ${host_os} in
11223 aix*)
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11225 $as_echo_n "checking for -bbigtoc option... " >&6; }
11226 if test "${gdb_cv_bigtoc+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11230 case $GCC in
11231 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11232 *) gdb_cv_bigtoc=-bbigtoc ;;
11233 esac
11235 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11240 main ()
11242 int i;
11244 return 0;
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11249 else
11250 gdb_cv_bigtoc=
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11257 $as_echo "$gdb_cv_bigtoc" >&6; }
11259 esac
11261 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11262 # used for the tests that follow. We set them back to REAL_CFLAGS and
11263 # REAL_CPPFLAGS later on.
11265 REAL_CFLAGS="$CFLAGS"
11266 REAL_CPPFLAGS="$CPPFLAGS"
11268 if test "${HAVE_X11}" = "yes"; then
11269 DEFS="$C_SWITCH_X_SITE $DEFS"
11270 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11271 LIBS="-lX11 $LIBS"
11272 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11273 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11275 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11276 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11277 # but it's more convenient here to set LD_RUN_PATH since this
11278 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11279 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11280 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11281 export LD_RUN_PATH
11284 if test "${opsys}" = "gnu-linux"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11286 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11291 main ()
11293 XOpenDisplay ("foo");
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 xgnu_linux_first_failure=no
11300 else
11301 xgnu_linux_first_failure=yes
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 if test "${xgnu_linux_first_failure}" = "yes"; then
11306 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11307 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11308 OLD_CPPFLAGS="$CPPFLAGS"
11309 OLD_LIBS="$LIBS"
11310 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11311 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11312 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11313 LIBS="$LIBS -b i486-linuxaout"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11318 main ()
11320 XOpenDisplay ("foo");
11322 return 0;
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326 xgnu_linux_second_failure=no
11327 else
11328 xgnu_linux_second_failure=yes
11330 rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332 if test "${xgnu_linux_second_failure}" = "yes"; then
11333 # If we get the same failure with -b, there is no use adding -b.
11334 # So take it out. This plays safe.
11335 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11336 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11337 CPPFLAGS="$OLD_CPPFLAGS"
11338 LIBS="$OLD_LIBS"
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 $as_echo "no" >&6; }
11341 else
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343 $as_echo "yes" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11351 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11352 # header files included from there.
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11354 $as_echo_n "checking for Xkb... " >&6; }
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 #include <X11/Xlib.h>
11358 #include <X11/XKBlib.h>
11360 main ()
11362 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11364 return 0;
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 emacs_xkb=yes
11369 else
11370 emacs_xkb=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11375 $as_echo "$emacs_xkb" >&6; }
11376 if test $emacs_xkb = yes; then
11378 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11382 for ac_func in XrmSetDatabase XScreenResourceString \
11383 XScreenNumberOfScreen
11384 do :
11385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11387 eval as_val=\$$as_ac_var
11388 if test "x$as_val" = x""yes; then :
11389 cat >>confdefs.h <<_ACEOF
11390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11391 _ACEOF
11394 done
11398 if test "${window_system}" = "x11"; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11400 $as_echo_n "checking X11 version 6... " >&6; }
11401 if test "${emacs_cv_x11_version_6+set}" = set; then :
11402 $as_echo_n "(cached) " >&6
11403 else
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406 #include <X11/Xlib.h>
11408 main ()
11410 #if XlibSpecificationRelease < 6
11411 fail;
11412 #endif
11415 return 0;
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419 emacs_cv_x11_version_6=yes
11420 else
11421 emacs_cv_x11_version_6=no
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11427 if test $emacs_cv_x11_version_6 = yes; then
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11429 $as_echo "6 or newer" >&6; }
11431 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11434 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11436 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11437 ## XIM support.
11438 case "$opsys" in
11439 sol2-*) : ;;
11441 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11444 esac
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11447 $as_echo "before 6" >&6; }
11452 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11453 HAVE_RSVG=no
11454 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11455 if test "${with_rsvg}" != "no"; then
11456 RSVG_REQUIRED=2.11.0
11457 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11460 succeeded=no
11462 if test "$PKG_CONFIG" = "no" ; then
11464 else
11465 PKG_CONFIG_MIN_VERSION=0.9.0
11466 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11468 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11470 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11471 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11472 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11473 edit_cflags="
11474 s,///*,/,g
11475 s/^/ /
11476 s/ -I/ $isystem/g
11477 s/^ //
11479 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11480 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11482 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11483 succeeded=yes
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11487 RSVG_CFLAGS=""
11488 RSVG_LIBS=""
11489 ## If we have a custom action on failure, don't print errors, but
11490 ## do set a variable so people can do so. Do it in a subshell
11491 ## to capture any diagnostics in invoking pkg-config.
11492 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11498 else
11499 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11500 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11504 if test $succeeded = yes; then
11505 HAVE_RSVG=yes
11506 else
11513 if test $HAVE_RSVG = yes; then
11515 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11517 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11518 LIBS="$RSVG_LIBS $LIBS"
11523 HAVE_IMAGEMAGICK=no
11524 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11525 if test "${with_imagemagick}" != "no"; then
11526 ## 6.2.8 is the earliest version known to work, but earlier versions
11527 ## might work - let us know if you find one.
11528 ## 6.0.7 does not work. See bug#7955.
11529 ## 6.8.2 makes Emacs crash; see Bug#13867.
11530 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11532 succeeded=no
11534 if test "$PKG_CONFIG" = "no" ; then
11536 else
11537 PKG_CONFIG_MIN_VERSION=0.9.0
11538 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11540 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11542 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11543 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11544 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11545 edit_cflags="
11546 s,///*,/,g
11547 s/^/ /
11548 s/ -I/ $isystem/g
11549 s/^ //
11551 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11552 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11554 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11555 succeeded=yes
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11559 IMAGEMAGICK_CFLAGS=""
11560 IMAGEMAGICK_LIBS=""
11561 ## If we have a custom action on failure, don't print errors, but
11562 ## do set a variable so people can do so. Do it in a subshell
11563 ## to capture any diagnostics in invoking pkg-config.
11564 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11570 else
11571 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11572 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11576 if test $succeeded = yes; then
11577 HAVE_IMAGEMAGICK=yes
11578 else
11585 if test $HAVE_IMAGEMAGICK = yes; then
11587 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11589 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11590 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11591 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11592 do :
11593 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11594 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11595 eval as_val=\$$as_ac_var
11596 if test "x$as_val" = x""yes; then :
11597 cat >>confdefs.h <<_ACEOF
11598 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11599 _ACEOF
11602 done
11609 HAVE_GTK=no
11610 GTK_OBJ=
11611 gtk_term_header=$term_header
11612 check_gtk2=no
11613 gtk3_pkg_errors=
11614 if test "${opsys}" != "mingw32"; then
11615 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11616 GLIB_REQUIRED=2.28
11617 GTK_REQUIRED=3.0
11618 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11621 succeeded=no
11623 if test "$PKG_CONFIG" = "no" ; then
11624 pkg_check_gtk=no
11625 else
11626 PKG_CONFIG_MIN_VERSION=0.9.0
11627 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11629 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11631 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11632 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11633 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11634 edit_cflags="
11635 s,///*,/,g
11636 s/^/ /
11637 s/ -I/ $isystem/g
11638 s/^ //
11640 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11641 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11643 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11644 succeeded=yes
11645 else
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11648 GTK_CFLAGS=""
11649 GTK_LIBS=""
11650 ## If we have a custom action on failure, don't print errors, but
11651 ## do set a variable so people can do so. Do it in a subshell
11652 ## to capture any diagnostics in invoking pkg-config.
11653 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11659 else
11660 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11661 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11665 if test $succeeded = yes; then
11666 pkg_check_gtk=yes
11667 else
11668 pkg_check_gtk=no
11671 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11672 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11674 if test "$pkg_check_gtk" = "yes"; then
11676 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11678 GTK_OBJ=emacsgtkfixed.o
11679 gtk_term_header=gtkutil.h
11680 USE_GTK_TOOLKIT="GTK3"
11681 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11682 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11683 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11685 else
11686 check_gtk2=yes
11687 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11691 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11692 GLIB_REQUIRED=2.10
11693 GTK_REQUIRED=2.10
11694 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11697 succeeded=no
11699 if test "$PKG_CONFIG" = "no" ; then
11700 pkg_check_gtk=no
11701 else
11702 PKG_CONFIG_MIN_VERSION=0.9.0
11703 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11705 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11707 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11708 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11709 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11710 edit_cflags="
11711 s,///*,/,g
11712 s/^/ /
11713 s/ -I/ $isystem/g
11714 s/^ //
11716 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11717 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11719 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11720 succeeded=yes
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11724 GTK_CFLAGS=""
11725 GTK_LIBS=""
11726 ## If we have a custom action on failure, don't print errors, but
11727 ## do set a variable so people can do so. Do it in a subshell
11728 ## to capture any diagnostics in invoking pkg-config.
11729 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11735 else
11736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11741 if test $succeeded = yes; then
11742 pkg_check_gtk=yes
11743 else
11744 pkg_check_gtk=no
11747 if test "$pkg_check_gtk" = "no" &&
11748 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11749 then
11750 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11752 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11756 if test x"$pkg_check_gtk" = xyes; then
11760 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11761 CFLAGS="$CFLAGS $GTK_CFLAGS"
11762 LIBS="$GTK_LIBS $LIBS"
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11764 $as_echo_n "checking whether GTK compiles... " >&6; }
11765 GTK_COMPILES=no
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11767 /* end confdefs.h. */
11768 /* Check the Gtk and Glib APIs. */
11769 #include <gtk/gtk.h>
11770 #include <glib-object.h>
11771 static void
11772 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11776 main ()
11779 GtkSettings *gs = 0;
11780 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11781 strict C prohibits this. Use gtk_main_iteration to test that the
11782 libraries are there. */
11783 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11784 0, 0, 0, G_CALLBACK (callback), 0))
11785 gtk_main_iteration ();
11788 return 0;
11790 _ACEOF
11791 if ac_fn_c_try_link "$LINENO"; then :
11792 GTK_COMPILES=yes
11794 rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11797 $as_echo "$GTK_COMPILES" >&6; }
11798 if test "${GTK_COMPILES}" != "yes"; then
11799 GTK_OBJ=
11800 if test "$USE_X_TOOLKIT" != "maybe"; then
11801 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11803 else
11804 HAVE_GTK=yes
11806 $as_echo "#define USE_GTK 1" >>confdefs.h
11808 GTK_OBJ="gtkutil.o $GTK_OBJ"
11809 term_header=$gtk_term_header
11810 USE_X_TOOLKIT=none
11811 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11813 else
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11815 closing open displays. This is no problem if you just use
11816 one display, but if you use more than one and close one of them
11817 Emacs may crash." >&5
11818 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11819 closing open displays. This is no problem if you just use
11820 one display, but if you use more than one and close one of them
11821 Emacs may crash." >&2;}
11822 sleep 3
11830 if test "${HAVE_GTK}" = "yes"; then
11832 if test "$with_toolkit_scroll_bars" != no; then
11833 with_toolkit_scroll_bars=yes
11836 HAVE_GTK_FILE_SELECTION=no
11837 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11838 #include <gtk/gtk.h>
11840 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11841 HAVE_GTK_FILE_SELECTION=yes
11842 else
11843 HAVE_GTK_FILE_SELECTION=no
11846 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11847 for ac_func in gtk_file_selection_new
11848 do :
11849 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11850 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11851 cat >>confdefs.h <<_ACEOF
11852 #define HAVE_GTK_FILE_SELECTION_NEW 1
11853 _ACEOF
11856 done
11860 HAVE_GTK_HANDLE_BOX=no
11861 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11862 #include <gtk/gtk.h>
11864 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11865 HAVE_GTK_HANDLE_BOX=yes
11866 else
11867 HAVE_GTK_HANDLE_BOX=no
11870 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11871 for ac_func in gtk_handle_box_new
11872 do :
11873 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11874 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_GTK_HANDLE_BOX_NEW 1
11877 _ACEOF
11880 done
11884 HAVE_GTK_TEAROFF_MENU_ITEM=no
11885 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11886 #include <gtk/gtk.h>
11888 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11889 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11890 else
11891 HAVE_GTK_TEAROFF_MENU_ITEM=no
11894 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11895 for ac_func in gtk_tearoff_menu_item_new
11896 do :
11897 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11898 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11899 cat >>confdefs.h <<_ACEOF
11900 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11901 _ACEOF
11904 done
11908 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11909 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11910 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11911 gtk_orientable_set_orientation \
11912 gtk_window_set_has_resize_grip
11913 do :
11914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11915 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11916 eval as_val=\$$as_ac_var
11917 if test "x$as_val" = x""yes; then :
11918 cat >>confdefs.h <<_ACEOF
11919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11920 _ACEOF
11923 done
11926 term_header=gtkutil.h
11929 HAVE_DBUS=no
11930 DBUS_OBJ=
11931 if test "${with_dbus}" = "yes"; then
11933 succeeded=no
11935 if test "$PKG_CONFIG" = "no" ; then
11936 HAVE_DBUS=no
11937 else
11938 PKG_CONFIG_MIN_VERSION=0.9.0
11939 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11941 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11943 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11944 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11945 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11946 edit_cflags="
11947 s,///*,/,g
11948 s/^/ /
11949 s/ -I/ $isystem/g
11950 s/^ //
11952 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11953 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11955 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11956 succeeded=yes
11957 else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960 DBUS_CFLAGS=""
11961 DBUS_LIBS=""
11962 ## If we have a custom action on failure, don't print errors, but
11963 ## do set a variable so people can do so. Do it in a subshell
11964 ## to capture any diagnostics in invoking pkg-config.
11965 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11971 else
11972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11977 if test $succeeded = yes; then
11978 HAVE_DBUS=yes
11979 else
11980 HAVE_DBUS=no
11983 if test "$HAVE_DBUS" = yes; then
11984 LIBS="$LIBS $DBUS_LIBS"
11986 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11988 for ac_func in dbus_watch_get_unix_fd \
11989 dbus_type_is_valid \
11990 dbus_validate_bus_name \
11991 dbus_validate_path \
11992 dbus_validate_interface \
11993 dbus_validate_member
11994 do :
11995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11997 eval as_val=\$$as_ac_var
11998 if test "x$as_val" = x""yes; then :
11999 cat >>confdefs.h <<_ACEOF
12000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12001 _ACEOF
12004 done
12006 DBUS_OBJ=dbusbind.o
12011 HAVE_GSETTINGS=no
12012 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
12014 succeeded=no
12016 if test "$PKG_CONFIG" = "no" ; then
12017 HAVE_GSETTINGS=no
12018 else
12019 PKG_CONFIG_MIN_VERSION=0.9.0
12020 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
12022 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
12024 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
12025 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
12026 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
12027 edit_cflags="
12028 s,///*,/,g
12029 s/^/ /
12030 s/ -I/ $isystem/g
12031 s/^ //
12033 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
12034 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
12036 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
12037 succeeded=yes
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12041 GSETTINGS_CFLAGS=""
12042 GSETTINGS_LIBS=""
12043 ## If we have a custom action on failure, don't print errors, but
12044 ## do set a variable so people can do so. Do it in a subshell
12045 ## to capture any diagnostics in invoking pkg-config.
12046 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
12052 else
12053 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12054 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12058 if test $succeeded = yes; then
12059 HAVE_GSETTINGS=yes
12060 else
12061 HAVE_GSETTINGS=no
12064 if test "$HAVE_GSETTINGS" = "yes"; then
12066 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
12068 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
12069 SETTINGS_LIBS="$GSETTINGS_LIBS"
12073 HAVE_GCONF=no
12074 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12076 succeeded=no
12078 if test "$PKG_CONFIG" = "no" ; then
12079 HAVE_GCONF=no
12080 else
12081 PKG_CONFIG_MIN_VERSION=0.9.0
12082 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12084 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12086 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
12087 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
12088 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
12089 edit_cflags="
12090 s,///*,/,g
12091 s/^/ /
12092 s/ -I/ $isystem/g
12093 s/^ //
12095 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
12096 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
12098 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
12099 succeeded=yes
12100 else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12103 GCONF_CFLAGS=""
12104 GCONF_LIBS=""
12105 ## If we have a custom action on failure, don't print errors, but
12106 ## do set a variable so people can do so. Do it in a subshell
12107 ## to capture any diagnostics in invoking pkg-config.
12108 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
12114 else
12115 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12116 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12120 if test $succeeded = yes; then
12121 HAVE_GCONF=yes
12122 else
12123 HAVE_GCONF=no
12126 if test "$HAVE_GCONF" = yes; then
12128 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12130 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12131 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12135 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12137 succeeded=no
12139 if test "$PKG_CONFIG" = "no" ; then
12140 HAVE_GOBJECT=no
12141 else
12142 PKG_CONFIG_MIN_VERSION=0.9.0
12143 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
12145 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
12147 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
12148 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
12149 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
12150 edit_cflags="
12151 s,///*,/,g
12152 s/^/ /
12153 s/ -I/ $isystem/g
12154 s/^ //
12156 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
12157 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
12159 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
12160 succeeded=yes
12161 else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163 $as_echo "no" >&6; }
12164 GOBJECT_CFLAGS=""
12165 GOBJECT_LIBS=""
12166 ## If we have a custom action on failure, don't print errors, but
12167 ## do set a variable so people can do so. Do it in a subshell
12168 ## to capture any diagnostics in invoking pkg-config.
12169 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
12175 else
12176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12181 if test $succeeded = yes; then
12182 HAVE_GOBJECT=yes
12183 else
12184 HAVE_GOBJECT=no
12187 if test "$HAVE_GOBJECT" = "yes"; then
12188 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
12189 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
12191 SAVE_CFLAGS="$CFLAGS"
12192 SAVE_LIBS="$LIBS"
12193 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12194 LIBS="$SETTINGS_LIBS $LIBS"
12195 CFLAGS="$SAVE_CFLAGS"
12196 LIBS="$SAVE_LIBS"
12202 HAVE_LIBSELINUX=no
12203 LIBSELINUX_LIBS=
12204 if test "${with_selinux}" = "yes"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12206 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12207 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-lselinux $LIBS"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char lgetfilecon ();
12223 main ()
12225 return lgetfilecon ();
12227 return 0;
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_selinux_lgetfilecon=yes
12232 else
12233 ac_cv_lib_selinux_lgetfilecon=no
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12240 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12241 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12242 HAVE_LIBSELINUX=yes
12243 else
12244 HAVE_LIBSELINUX=no
12247 if test "$HAVE_LIBSELINUX" = yes; then
12249 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12251 LIBSELINUX_LIBS=-lselinux
12256 HAVE_GNUTLS=no
12257 if test "${with_gnutls}" = "yes" ; then
12259 succeeded=no
12261 if test "$PKG_CONFIG" = "no" ; then
12262 HAVE_GNUTLS=no
12263 else
12264 PKG_CONFIG_MIN_VERSION=0.9.0
12265 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12267 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12269 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12270 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12271 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12272 edit_cflags="
12273 s,///*,/,g
12274 s/^/ /
12275 s/ -I/ $isystem/g
12276 s/^ //
12278 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12279 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12281 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12282 succeeded=yes
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 LIBGNUTLS_CFLAGS=""
12287 LIBGNUTLS_LIBS=""
12288 ## If we have a custom action on failure, don't print errors, but
12289 ## do set a variable so people can do so. Do it in a subshell
12290 ## to capture any diagnostics in invoking pkg-config.
12291 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12297 else
12298 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12299 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12303 if test $succeeded = yes; then
12304 HAVE_GNUTLS=yes
12305 else
12306 HAVE_GNUTLS=no
12309 if test "${HAVE_GNUTLS}" = "yes"; then
12311 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12315 # Windows loads GnuTLS dynamically
12316 if test "${opsys}" = "mingw32"; then
12317 LIBGNUTLS_LIBS=
12318 else
12319 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12320 LIBS="$LIBGNUTLS_LIBS $LIBS"
12327 NOTIFY_OBJ=
12328 NOTIFY_SUMMARY=no
12330 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12331 with_file_notification=no
12334 case $with_file_notification,$opsys in
12335 w32,* | yes,mingw32)
12336 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12337 if test "x$ac_cv_header_windows_h" = x""yes; then :
12342 if test "$ac_cv_header_windows_h" = yes ; then
12344 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12346 NOTIFY_OBJ=w32notify.o
12347 NOTIFY_SUMMARY="yes (w32)"
12348 fi ;;
12349 esac
12351 case $with_file_notification,$NOTIFY_OBJ in
12352 gfile, | yes,)
12354 succeeded=no
12356 if test "$PKG_CONFIG" = "no" ; then
12357 HAVE_GFILENOTIFY=no
12358 else
12359 PKG_CONFIG_MIN_VERSION=0.9.0
12360 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12362 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12364 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12365 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12366 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12367 edit_cflags="
12368 s,///*,/,g
12369 s/^/ /
12370 s/ -I/ $isystem/g
12371 s/^ //
12373 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12374 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12376 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12377 succeeded=yes
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380 $as_echo "no" >&6; }
12381 GFILENOTIFY_CFLAGS=""
12382 GFILENOTIFY_LIBS=""
12383 ## If we have a custom action on failure, don't print errors, but
12384 ## do set a variable so people can do so. Do it in a subshell
12385 ## to capture any diagnostics in invoking pkg-config.
12386 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12392 else
12393 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12394 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12398 if test $succeeded = yes; then
12399 HAVE_GFILENOTIFY=yes
12400 else
12401 HAVE_GFILENOTIFY=no
12404 if test "$HAVE_GFILENOTIFY" = "yes"; then
12406 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12408 NOTIFY_OBJ=gfilenotify.o
12409 NOTIFY_SUMMARY="yes -lgio (gfile)"
12410 fi ;;
12411 esac
12413 case $with_file_notification,$NOTIFY_OBJ in
12414 inotify, | yes,)
12415 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12416 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12421 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12422 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12423 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12427 if test "$ac_cv_func_inotify_init1" = yes; then
12429 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12431 NOTIFY_OBJ=inotify.o
12432 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12434 fi ;;
12435 esac
12437 case $with_file_notification,$NOTIFY_OBJ in
12438 yes,* | no,* | *,?*) ;;
12439 *) as_fn_error "File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12440 esac
12442 if test -n "$NOTIFY_OBJ"; then
12444 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12451 HAVE_XAW3D=no
12452 LUCID_LIBW=
12453 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12454 if test "$with_xaw3d" != no; then
12455 if test "${emacs_cv_xaw3d+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12461 #include <X11/Intrinsic.h>
12462 #include <X11/Xaw3d/Simple.h>
12464 main ()
12468 return 0;
12470 _ACEOF
12471 if ac_fn_c_try_link "$LINENO"; then :
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12473 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12474 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 ac_check_lib_save_LIBS=$LIBS
12478 LIBS="-lXaw3d $LIBS"
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char XawScrollbarSetThumb ();
12490 main ()
12492 return XawScrollbarSetThumb ();
12494 return 0;
12496 _ACEOF
12497 if ac_fn_c_try_link "$LINENO"; then :
12498 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12499 else
12500 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12502 rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12507 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12508 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12509 emacs_cv_xaw3d=yes
12510 else
12511 emacs_cv_xaw3d=no
12514 else
12515 emacs_cv_xaw3d=no
12517 rm -f core conftest.err conftest.$ac_objext \
12518 conftest$ac_exeext conftest.$ac_ext
12521 else
12522 emacs_cv_xaw3d=no
12524 if test $emacs_cv_xaw3d = yes; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12526 $as_echo_n "checking for xaw3d... " >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12528 $as_echo "yes; using Lucid toolkit" >&6; }
12529 USE_X_TOOLKIT=LUCID
12530 HAVE_XAW3D=yes
12531 LUCID_LIBW=-lXaw3d
12533 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12537 $as_echo_n "checking for xaw3d... " >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12541 $as_echo_n "checking for libXaw... " >&6; }
12542 if test "${emacs_cv_xaw+set}" = set; then :
12543 $as_echo_n "(cached) " >&6
12544 else
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 #include <X11/Intrinsic.h>
12549 #include <X11/Xaw/Simple.h>
12551 main ()
12555 return 0;
12557 _ACEOF
12558 if ac_fn_c_try_link "$LINENO"; then :
12559 emacs_cv_xaw=yes
12560 else
12561 emacs_cv_xaw=no
12563 rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12567 if test $emacs_cv_xaw = yes; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12569 $as_echo "yes; using Lucid toolkit" >&6; }
12570 USE_X_TOOLKIT=LUCID
12571 LUCID_LIBW=-lXaw
12572 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12573 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12574 else
12575 as_fn_error "No X toolkit could be found.
12576 If you are sure you want Emacs compiled without an X toolkit, pass
12577 --with-x-toolkit=no
12578 to configure. Otherwise, install the development libraries for the toolkit
12579 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12584 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12586 LIBXTR6=
12587 if test "${USE_X_TOOLKIT}" != "none"; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12589 $as_echo_n "checking X11 toolkit version... " >&6; }
12590 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12595 #include <X11/Intrinsic.h>
12597 main ()
12599 #if XtSpecificationRelease < 6
12600 fail;
12601 #endif
12604 return 0;
12606 _ACEOF
12607 if ac_fn_c_try_link "$LINENO"; then :
12608 emacs_cv_x11_toolkit_version_6=yes
12609 else
12610 emacs_cv_x11_toolkit_version_6=no
12612 rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12616 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12617 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12619 $as_echo "6 or newer" >&6; }
12621 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12623 LIBXTR6="-lSM -lICE"
12624 case "$opsys" in
12625 ## Use libw.a along with X11R6 Xt.
12626 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12627 esac
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12630 $as_echo "before 6" >&6; }
12633 OLDLIBS="$LIBS"
12634 if test x$HAVE_X11XTR6 = xyes; then
12635 LIBS="-lXt -lSM -lICE $LIBS"
12636 else
12637 LIBS="-lXt $LIBS"
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12640 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12641 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 ac_check_lib_save_LIBS=$LIBS
12645 LIBS="-lXmu $LIBS"
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12652 #ifdef __cplusplus
12653 extern "C"
12654 #endif
12655 char XmuConvertStandardSelection ();
12657 main ()
12659 return XmuConvertStandardSelection ();
12661 return 0;
12663 _ACEOF
12664 if ac_fn_c_try_link "$LINENO"; then :
12665 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12666 else
12667 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 LIBS=$ac_check_lib_save_LIBS
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12674 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12675 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12676 cat >>confdefs.h <<_ACEOF
12677 #define HAVE_LIBXMU 1
12678 _ACEOF
12680 LIBS="-lXmu $LIBS"
12684 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12688 LIBXMU=-lXmu
12689 case $opsys in
12690 ## These systems don't supply Xmu.
12691 hpux* | aix4-2 )
12692 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12694 mingw32 )
12695 LIBXMU=
12697 esac
12700 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12701 if test "${HAVE_X11}" = "yes"; then
12702 if test "${USE_X_TOOLKIT}" != "none"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12704 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12705 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 ac_check_lib_save_LIBS=$LIBS
12709 LIBS="-lXext $LIBS"
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12713 /* Override any GCC internal prototype to avoid an error.
12714 Use char because int might match the return type of a GCC
12715 builtin and then its argument prototype would still apply. */
12716 #ifdef __cplusplus
12717 extern "C"
12718 #endif
12719 char XShapeQueryExtension ();
12721 main ()
12723 return XShapeQueryExtension ();
12725 return 0;
12727 _ACEOF
12728 if ac_fn_c_try_link "$LINENO"; then :
12729 ac_cv_lib_Xext_XShapeQueryExtension=yes
12730 else
12731 ac_cv_lib_Xext_XShapeQueryExtension=no
12733 rm -f core conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735 LIBS=$ac_check_lib_save_LIBS
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12738 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12739 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12740 cat >>confdefs.h <<_ACEOF
12741 #define HAVE_LIBXEXT 1
12742 _ACEOF
12744 LIBS="-lXext $LIBS"
12751 LIBXP=
12752 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12753 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12754 if test -d /usr/include/openmotif; then
12755 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12756 emacs_cv_openmotif=yes
12757 case "$canonical" in
12758 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12759 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12762 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12763 esac
12764 else
12765 emacs_cv_openmotif=no
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12768 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12769 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
12771 else
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774 #include <Xm/Xm.h>
12776 main ()
12778 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12779 int x = 5;
12780 #else
12781 Motif version prior to 2.1.
12782 #endif
12784 return 0;
12786 _ACEOF
12787 if ac_fn_c_try_compile "$LINENO"; then :
12788 emacs_cv_motif_version_2_1=yes
12789 else
12790 emacs_cv_motif_version_2_1=no
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12795 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12796 if test $emacs_cv_motif_version_2_1 = yes; then
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12798 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12799 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 ac_check_lib_save_LIBS=$LIBS
12803 LIBS="-lXp $LIBS"
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12807 /* Override any GCC internal prototype to avoid an error.
12808 Use char because int might match the return type of a GCC
12809 builtin and then its argument prototype would still apply. */
12810 #ifdef __cplusplus
12811 extern "C"
12812 #endif
12813 char XpCreateContext ();
12815 main ()
12817 return XpCreateContext ();
12819 return 0;
12821 _ACEOF
12822 if ac_fn_c_try_link "$LINENO"; then :
12823 ac_cv_lib_Xp_XpCreateContext=yes
12824 else
12825 ac_cv_lib_Xp_XpCreateContext=no
12827 rm -f core conftest.err conftest.$ac_objext \
12828 conftest$ac_exeext conftest.$ac_ext
12829 LIBS=$ac_check_lib_save_LIBS
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12832 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12833 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12834 LIBXP=-lXp
12837 if test x$emacs_cv_openmotif = xyes; then
12838 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12840 else
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12842 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12843 if test "${emacs_cv_lesstif+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 # We put this in CFLAGS temporarily to precede other -I options
12847 # that might be in CFLAGS temporarily.
12848 # We put this in CPPFLAGS where it precedes the other -I options.
12849 OLD_CPPFLAGS=$CPPFLAGS
12850 OLD_CFLAGS=$CFLAGS
12851 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12852 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12857 main ()
12859 int x = 5;
12861 return 0;
12863 _ACEOF
12864 if ac_fn_c_try_compile "$LINENO"; then :
12865 emacs_cv_lesstif=yes
12866 else
12867 emacs_cv_lesstif=no
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12872 $as_echo "$emacs_cv_lesstif" >&6; }
12873 if test $emacs_cv_lesstif = yes; then
12874 # Make sure this -I option remains in CPPFLAGS after it is set
12875 # back to REAL_CPPFLAGS.
12876 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12877 # have those other -I options anyway. Ultimately, having this
12878 # directory ultimately in CPPFLAGS will be enough.
12879 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12880 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12881 else
12882 CFLAGS=$OLD_CFLAGS
12883 CPPFLAGS=$OLD_CPPFLAGS
12886 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12887 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12889 else
12890 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12897 USE_TOOLKIT_SCROLL_BARS=no
12898 if test "${with_toolkit_scroll_bars}" != "no"; then
12899 if test "${USE_X_TOOLKIT}" != "none"; then
12900 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12901 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12903 HAVE_XAW3D=no
12904 USE_TOOLKIT_SCROLL_BARS=yes
12905 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12906 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12908 USE_TOOLKIT_SCROLL_BARS=yes
12910 elif test "${HAVE_GTK}" = "yes"; then
12911 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12913 USE_TOOLKIT_SCROLL_BARS=yes
12914 elif test "${HAVE_NS}" = "yes"; then
12915 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12917 USE_TOOLKIT_SCROLL_BARS=yes
12918 elif test "${HAVE_W32}" = "yes"; then
12919 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12921 USE_TOOLKIT_SCROLL_BARS=yes
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12928 #include <X11/Xlib.h>
12929 #include <X11/Xresource.h>
12931 main ()
12933 XIMProc callback;
12935 return 0;
12937 _ACEOF
12938 if ac_fn_c_try_compile "$LINENO"; then :
12939 HAVE_XIM=yes
12941 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12943 else
12944 HAVE_XIM=no
12946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 if test "${with_xim}" != "no"; then
12951 $as_echo "#define USE_XIM 1" >>confdefs.h
12956 if test "${HAVE_XIM}" != "no"; then
12957 late_CFLAGS=$CFLAGS
12958 if test "$GCC" = yes; then
12959 CFLAGS="$CFLAGS --pedantic-errors"
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h. */
12964 #include <X11/Xlib.h>
12965 #include <X11/Xresource.h>
12967 main ()
12969 Display *display;
12970 XrmDatabase db;
12971 char *res_name;
12972 char *res_class;
12973 XIMProc callback;
12974 XPointer *client_data;
12975 #ifndef __GNUC__
12976 /* If we're not using GCC, it's probably not XFree86, and this is
12977 probably right, but we can't use something like --pedantic-errors. */
12978 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12979 char*, XIMProc, XPointer*);
12980 #endif
12981 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12982 client_data);
12984 return 0;
12986 _ACEOF
12987 if ac_fn_c_try_compile "$LINENO"; then :
12988 emacs_cv_arg6_star=yes
12990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 if test "$emacs_cv_arg6_star" = yes; then
12992 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12994 else
12995 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12998 CFLAGS=$late_CFLAGS
13001 ### Start of font-backend (under any platform) section.
13002 # (nothing here yet -- this is a placeholder)
13003 ### End of font-backend (under any platform) section.
13005 ### Start of font-backend (under X11) section.
13006 if test "${HAVE_X11}" = "yes"; then
13008 succeeded=no
13010 if test "$PKG_CONFIG" = "no" ; then
13011 HAVE_FC=no
13012 else
13013 PKG_CONFIG_MIN_VERSION=0.9.0
13014 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13016 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13018 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
13019 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
13020 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
13021 edit_cflags="
13022 s,///*,/,g
13023 s/^/ /
13024 s/ -I/ $isystem/g
13025 s/^ //
13027 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
13028 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
13030 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
13031 succeeded=yes
13032 else
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13035 FONTCONFIG_CFLAGS=""
13036 FONTCONFIG_LIBS=""
13037 ## If we have a custom action on failure, don't print errors, but
13038 ## do set a variable so people can do so. Do it in a subshell
13039 ## to capture any diagnostics in invoking pkg-config.
13040 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
13046 else
13047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13052 if test $succeeded = yes; then
13053 HAVE_FC=yes
13054 else
13055 HAVE_FC=no
13059 ## Use -lXft if available, unless `--with-xft=no'.
13060 HAVE_XFT=maybe
13061 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13062 with_xft="no";
13064 if test "x${with_xft}" != "xno"; then
13067 succeeded=no
13069 if test "$PKG_CONFIG" = "no" ; then
13070 HAVE_XFT=no
13071 else
13072 PKG_CONFIG_MIN_VERSION=0.9.0
13073 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13075 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13077 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
13078 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
13079 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
13080 edit_cflags="
13081 s,///*,/,g
13082 s/^/ /
13083 s/ -I/ $isystem/g
13084 s/^ //
13086 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
13087 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
13089 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
13090 succeeded=yes
13091 else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 $as_echo "no" >&6; }
13094 XFT_CFLAGS=""
13095 XFT_LIBS=""
13096 ## If we have a custom action on failure, don't print errors, but
13097 ## do set a variable so people can do so. Do it in a subshell
13098 ## to capture any diagnostics in invoking pkg-config.
13099 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
13105 else
13106 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13107 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13111 if test $succeeded = yes; then
13113 else
13114 HAVE_XFT=no
13117 ## Because xftfont.c uses XRenderQueryExtension, we also
13118 ## need to link to -lXrender.
13119 HAVE_XRENDER=no
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13121 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13122 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 ac_check_lib_save_LIBS=$LIBS
13126 LIBS="-lXrender $LIBS"
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13133 #ifdef __cplusplus
13134 extern "C"
13135 #endif
13136 char XRenderQueryExtension ();
13138 main ()
13140 return XRenderQueryExtension ();
13142 return 0;
13144 _ACEOF
13145 if ac_fn_c_try_link "$LINENO"; then :
13146 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13147 else
13148 ac_cv_lib_Xrender_XRenderQueryExtension=no
13150 rm -f core conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13152 LIBS=$ac_check_lib_save_LIBS
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13155 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13156 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13157 HAVE_XRENDER=yes
13160 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13161 OLD_CPPFLAGS="$CPPFLAGS"
13162 OLD_CFLAGS="$CFLAGS"
13163 OLD_LIBS="$LIBS"
13164 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13165 CFLAGS="$CFLAGS $XFT_CFLAGS"
13166 XFT_LIBS="-lXrender $XFT_LIBS"
13167 LIBS="$XFT_LIBS $LIBS"
13168 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
13170 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13172 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13173 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 ac_check_lib_save_LIBS=$LIBS
13177 LIBS="-lXft $XFT_LIBS $LIBS"
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13181 /* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 char XftFontOpen ();
13189 main ()
13191 return XftFontOpen ();
13193 return 0;
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_Xft_XftFontOpen=yes
13198 else
13199 ac_cv_lib_Xft_XftFontOpen=no
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13206 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13207 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13208 HAVE_XFT=yes
13215 if test "${HAVE_XFT}" = "yes"; then
13217 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13220 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13221 else
13222 CPPFLAGS="$OLD_CPPFLAGS"
13223 CFLAGS="$OLD_CFLAGS"
13224 LIBS="$OLD_LIBS"
13225 fi # "${HAVE_XFT}" = "yes"
13226 fi # "$HAVE_XFT" != no
13227 fi # "x${with_xft}" != "xno"
13229 ## We used to allow building with FreeType and without Xft.
13230 ## However, the ftx font backend driver is not in good shape.
13231 if test "$HAVE_XFT" != "yes"; then
13232 HAVE_XFT=no
13233 HAVE_FREETYPE=no
13234 else
13236 succeeded=no
13238 if test "$PKG_CONFIG" = "no" ; then
13239 HAVE_FREETYPE=no
13240 else
13241 PKG_CONFIG_MIN_VERSION=0.9.0
13242 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13244 $as_echo_n "checking for freetype2... " >&6; }
13246 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13247 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13248 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13249 edit_cflags="
13250 s,///*,/,g
13251 s/^/ /
13252 s/ -I/ $isystem/g
13253 s/^ //
13255 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13256 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13258 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13259 succeeded=yes
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13263 FREETYPE_CFLAGS=""
13264 FREETYPE_LIBS=""
13265 ## If we have a custom action on failure, don't print errors, but
13266 ## do set a variable so people can do so. Do it in a subshell
13267 ## to capture any diagnostics in invoking pkg-config.
13268 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13274 else
13275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13280 if test $succeeded = yes; then
13281 HAVE_FREETYPE=yes
13282 else
13283 HAVE_FREETYPE=no
13287 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13290 HAVE_LIBOTF=no
13291 if test "${HAVE_FREETYPE}" = "yes"; then
13293 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13295 if test "${with_libotf}" != "no"; then
13297 succeeded=no
13299 if test "$PKG_CONFIG" = "no" ; then
13300 HAVE_LIBOTF=no
13301 else
13302 PKG_CONFIG_MIN_VERSION=0.9.0
13303 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13305 $as_echo_n "checking for libotf... " >&6; }
13307 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13308 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13309 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13310 edit_cflags="
13311 s,///*,/,g
13312 s/^/ /
13313 s/ -I/ $isystem/g
13314 s/^ //
13316 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13317 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13319 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13320 succeeded=yes
13321 else
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323 $as_echo "no" >&6; }
13324 LIBOTF_CFLAGS=""
13325 LIBOTF_LIBS=""
13326 ## If we have a custom action on failure, don't print errors, but
13327 ## do set a variable so people can do so. Do it in a subshell
13328 ## to capture any diagnostics in invoking pkg-config.
13329 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13335 else
13336 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13337 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13341 if test $succeeded = yes; then
13342 HAVE_LIBOTF=yes
13343 else
13344 HAVE_LIBOTF=no
13347 if test "$HAVE_LIBOTF" = "yes"; then
13349 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13352 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13353 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 ac_check_lib_save_LIBS=$LIBS
13357 LIBS="-lotf $LIBS"
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13361 /* Override any GCC internal prototype to avoid an error.
13362 Use char because int might match the return type of a GCC
13363 builtin and then its argument prototype would still apply. */
13364 #ifdef __cplusplus
13365 extern "C"
13366 #endif
13367 char OTF_get_variation_glyphs ();
13369 main ()
13371 return OTF_get_variation_glyphs ();
13373 return 0;
13375 _ACEOF
13376 if ac_fn_c_try_link "$LINENO"; then :
13377 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13378 else
13379 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13381 rm -f core conftest.err conftest.$ac_objext \
13382 conftest$ac_exeext conftest.$ac_ext
13383 LIBS=$ac_check_lib_save_LIBS
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13386 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13387 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13388 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13389 else
13390 HAVE_OTF_GET_VARIATION_GLYPHS=no
13393 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13395 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13402 HAVE_M17N_FLT=no
13403 if test "${HAVE_LIBOTF}" = yes; then
13404 if test "${with_m17n_flt}" != "no"; then
13406 succeeded=no
13408 if test "$PKG_CONFIG" = "no" ; then
13409 HAVE_M17N_FLT=no
13410 else
13411 PKG_CONFIG_MIN_VERSION=0.9.0
13412 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13414 $as_echo_n "checking for m17n-flt... " >&6; }
13416 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13417 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13418 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13419 edit_cflags="
13420 s,///*,/,g
13421 s/^/ /
13422 s/ -I/ $isystem/g
13423 s/^ //
13425 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13426 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13428 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13429 succeeded=yes
13430 else
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432 $as_echo "no" >&6; }
13433 M17N_FLT_CFLAGS=""
13434 M17N_FLT_LIBS=""
13435 ## If we have a custom action on failure, don't print errors, but
13436 ## do set a variable so people can do so. Do it in a subshell
13437 ## to capture any diagnostics in invoking pkg-config.
13438 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13444 else
13445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13450 if test $succeeded = yes; then
13451 HAVE_M17N_FLT=yes
13452 else
13453 HAVE_M17N_FLT=no
13456 if test "$HAVE_M17N_FLT" = "yes"; then
13458 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13463 else
13464 HAVE_XFT=no
13465 HAVE_FREETYPE=no
13466 HAVE_LIBOTF=no
13467 HAVE_M17N_FLT=no
13470 ### End of font-backend (under X11) section.
13481 ### Use -lXpm if available, unless `--with-xpm=no'.
13482 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13483 HAVE_XPM=no
13484 LIBXPM=
13485 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13486 if test "${with_xpm}" != "no"; then
13487 SAVE_CPPFLAGS="$CPPFLAGS"
13488 SAVE_LDFLAGS="$LDFLAGS"
13489 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13490 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13491 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13492 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13494 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13495 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13496 $as_echo_n "(cached) " >&6
13497 else
13498 ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-lXpm $LIBS"
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13503 /* Override any GCC internal prototype to avoid an error.
13504 Use char because int might match the return type of a GCC
13505 builtin and then its argument prototype would still apply. */
13506 #ifdef __cplusplus
13507 extern "C"
13508 #endif
13509 char XpmReadFileToImage ();
13511 main ()
13513 return XpmReadFileToImage ();
13515 return 0;
13517 _ACEOF
13518 if ac_fn_c_try_link "$LINENO"; then :
13519 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13520 else
13521 ac_cv_lib_Xpm_XpmReadFileToImage=no
13523 rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13525 LIBS=$ac_check_lib_save_LIBS
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13528 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13529 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13530 HAVE_XPM=yes
13536 if test "${HAVE_XPM}" = "yes"; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13538 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 #include "X11/xpm.h"
13542 #ifndef XpmReturnAllocPixels
13543 no_return_alloc_pixels
13544 #endif
13546 _ACEOF
13547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13548 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13549 HAVE_XPM=no
13550 else
13551 HAVE_XPM=yes
13553 rm -f conftest*
13556 if test "${HAVE_XPM}" = "yes"; then
13557 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13559 $as_echo "yes" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562 $as_echo "no" >&6; }
13563 CPPFLAGS="$SAVE_CPPFLAGS"
13564 LDFLAGS="$SAVE_LDFLAGS"
13569 if test "${HAVE_XPM}" = "yes"; then
13571 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13573 LIBXPM=-lXpm
13577 if test "${HAVE_X11}" = "yes"; then
13578 if test "${with_xpm}" != "no"; then
13579 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13580 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13582 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13583 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 ac_check_lib_save_LIBS=$LIBS
13587 LIBS="-lXpm -lX11 $LIBS"
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13591 /* Override any GCC internal prototype to avoid an error.
13592 Use char because int might match the return type of a GCC
13593 builtin and then its argument prototype would still apply. */
13594 #ifdef __cplusplus
13595 extern "C"
13596 #endif
13597 char XpmReadFileToPixmap ();
13599 main ()
13601 return XpmReadFileToPixmap ();
13603 return 0;
13605 _ACEOF
13606 if ac_fn_c_try_link "$LINENO"; then :
13607 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13608 else
13609 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13611 rm -f core conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
13613 LIBS=$ac_check_lib_save_LIBS
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13616 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13617 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13618 HAVE_XPM=yes
13624 if test "${HAVE_XPM}" = "yes"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13626 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 #include "X11/xpm.h"
13630 #ifndef XpmReturnAllocPixels
13631 no_return_alloc_pixels
13632 #endif
13634 _ACEOF
13635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13636 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13637 HAVE_XPM=no
13638 else
13639 HAVE_XPM=yes
13641 rm -f conftest*
13644 if test "${HAVE_XPM}" = "yes"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13646 $as_echo "yes" >&6; }
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649 $as_echo "no" >&6; }
13654 if test "${HAVE_XPM}" = "yes"; then
13656 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13658 LIBXPM=-lXpm
13662 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13663 ### slightly different requirements wrt image libraries (it doesn't
13664 ### use -lXpm because it loads the xpm shared library dynamically at
13665 ### run time).
13666 if test "${opsys}" = "mingw32"; then
13667 if test "${with_xpm}" != "no"; then
13668 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13669 #define FOR_MSW 1
13671 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13672 HAVE_XPM=yes
13673 else
13674 HAVE_XPM=no
13680 if test "${HAVE_XPM}" = "yes"; then
13682 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13689 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13690 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13691 HAVE_JPEG=no
13692 LIBJPEG=
13693 if test "${opsys}" = "mingw32"; then
13694 if test "${with_jpeg}" != "no"; then
13695 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13696 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13697 HAVE_JPEG=yes
13698 else
13699 HAVE_JPEG=no
13704 if test "${HAVE_JPEG}" = "yes"; then
13705 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 #include <jpeglib.h>
13710 version=JPEG_LIB_VERSION
13712 _ACEOF
13713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13714 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13715 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13717 else
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13719 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13720 HAVE_JPEG=no
13722 rm -f conftest*
13725 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13726 if test "${with_jpeg}" != "no"; then
13727 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13728 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13730 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13731 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13732 $as_echo_n "(cached) " >&6
13733 else
13734 ac_check_lib_save_LIBS=$LIBS
13735 LIBS="-ljpeg $LIBS"
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13739 /* Override any GCC internal prototype to avoid an error.
13740 Use char because int might match the return type of a GCC
13741 builtin and then its argument prototype would still apply. */
13742 #ifdef __cplusplus
13743 extern "C"
13744 #endif
13745 char jpeg_destroy_compress ();
13747 main ()
13749 return jpeg_destroy_compress ();
13751 return 0;
13753 _ACEOF
13754 if ac_fn_c_try_link "$LINENO"; then :
13755 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13756 else
13757 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13759 rm -f core conftest.err conftest.$ac_objext \
13760 conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13764 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13765 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13766 HAVE_JPEG=yes
13774 if test "${HAVE_JPEG}" = "yes"; then
13775 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 #include <jpeglib.h>
13780 version=JPEG_LIB_VERSION
13782 _ACEOF
13783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13784 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13785 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13787 else
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13789 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13790 HAVE_JPEG=no
13792 rm -f conftest*
13795 if test "${HAVE_JPEG}" = "yes"; then
13796 LIBJPEG=-ljpeg
13801 ### Use -lpng if available, unless `--with-png=no'.
13802 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13803 HAVE_PNG=no
13804 LIBPNG=
13805 if test "${opsys}" = "mingw32"; then
13806 if test "${with_png}" != "no"; then
13807 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13808 if test "x$ac_cv_header_png_h" = x""yes; then :
13809 HAVE_PNG=yes
13810 else
13811 HAVE_PNG=no
13816 if test "${HAVE_PNG}" = "yes"; then
13818 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13821 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13822 # include <libpng/png.h>
13823 #else
13824 # include <png.h>
13825 #endif
13828 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13830 else
13832 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13837 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13838 if test "${with_png}" != "no"; then
13839 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13840 # in /usr/include/libpng.
13841 for ac_header in png.h libpng/png.h
13842 do :
13843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13844 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13845 eval as_val=\$$as_ac_Header
13846 if test "x$as_val" = x""yes; then :
13847 cat >>confdefs.h <<_ACEOF
13848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13849 _ACEOF
13850 break
13853 done
13855 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13857 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13858 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861 ac_check_lib_save_LIBS=$LIBS
13862 LIBS="-lpng -lz -lm $LIBS"
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13866 /* Override any GCC internal prototype to avoid an error.
13867 Use char because int might match the return type of a GCC
13868 builtin and then its argument prototype would still apply. */
13869 #ifdef __cplusplus
13870 extern "C"
13871 #endif
13872 char png_get_channels ();
13874 main ()
13876 return png_get_channels ();
13878 return 0;
13880 _ACEOF
13881 if ac_fn_c_try_link "$LINENO"; then :
13882 ac_cv_lib_png_png_get_channels=yes
13883 else
13884 ac_cv_lib_png_png_get_channels=no
13886 rm -f core conftest.err conftest.$ac_objext \
13887 conftest$ac_exeext conftest.$ac_ext
13888 LIBS=$ac_check_lib_save_LIBS
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13891 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13892 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13893 HAVE_PNG=yes
13899 if test "${HAVE_PNG}" = "yes"; then
13901 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13903 LIBPNG="-lpng -lz -lm"
13905 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13906 # include <libpng/png.h>
13907 #else
13908 # include <png.h>
13909 #endif
13912 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13914 else
13916 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13924 HAVE_ZLIB=no
13925 LIBZ=
13926 if test "${with_zlib}" != "no"; then
13927 OLIBS=$LIBS
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13929 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13930 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 ac_func_search_save_LIBS=$LIBS
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13937 /* Override any GCC internal prototype to avoid an error.
13938 Use char because int might match the return type of a GCC
13939 builtin and then its argument prototype would still apply. */
13940 #ifdef __cplusplus
13941 extern "C"
13942 #endif
13943 char inflateEnd ();
13945 main ()
13947 return inflateEnd ();
13949 return 0;
13951 _ACEOF
13952 for ac_lib in '' z; do
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13955 else
13956 ac_res=-l$ac_lib
13957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13959 if ac_fn_c_try_link "$LINENO"; then :
13960 ac_cv_search_inflateEnd=$ac_res
13962 rm -f core conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext
13964 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13965 break
13967 done
13968 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13970 else
13971 ac_cv_search_inflateEnd=no
13973 rm conftest.$ac_ext
13974 LIBS=$ac_func_search_save_LIBS
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13977 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13978 ac_res=$ac_cv_search_inflateEnd
13979 if test "$ac_res" != no; then :
13980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13981 HAVE_ZLIB=yes
13984 LIBS=$OLIBS
13985 case $ac_cv_search_inflateEnd in
13986 -*) LIBZ=$ac_cv_search_inflateEnd ;;
13987 esac
13989 if test "${HAVE_ZLIB}" = "yes"; then
13991 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13993 ### mingw32 doesn't use -lz, since it loads the library dynamically.
13994 if test "${opsys}" = "mingw32"; then
13995 LIBZ=
14001 ### Use -ltiff if available, unless `--with-tiff=no'.
14002 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
14003 HAVE_TIFF=no
14004 LIBTIFF=
14005 if test "${opsys}" = "mingw32"; then
14006 if test "${with_tiff}" != "no"; then
14007 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14008 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
14009 HAVE_TIFF=yes
14010 else
14011 HAVE_TIFF=no
14016 if test "${HAVE_TIFF}" = "yes"; then
14018 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14021 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
14022 if test "${with_tiff}" != "no"; then
14023 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
14024 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
14025 tifflibs="-lz -lm"
14026 # At least one tiff package requires the jpeg library.
14027 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
14029 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14030 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 ac_check_lib_save_LIBS=$LIBS
14034 LIBS="-ltiff $tifflibs $LIBS"
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14041 #ifdef __cplusplus
14042 extern "C"
14043 #endif
14044 char TIFFGetVersion ();
14046 main ()
14048 return TIFFGetVersion ();
14050 return 0;
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054 ac_cv_lib_tiff_TIFFGetVersion=yes
14055 else
14056 ac_cv_lib_tiff_TIFFGetVersion=no
14058 rm -f core conftest.err conftest.$ac_objext \
14059 conftest$ac_exeext conftest.$ac_ext
14060 LIBS=$ac_check_lib_save_LIBS
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14063 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14064 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
14065 HAVE_TIFF=yes
14073 if test "${HAVE_TIFF}" = "yes"; then
14075 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
14077 LIBTIFF=-ltiff
14082 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14083 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
14084 HAVE_GIF=no
14085 LIBGIF=
14086 if test "${opsys}" = "mingw32"; then
14087 if test "${with_gif}" != "no"; then
14088 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14089 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
14090 HAVE_GIF=yes
14091 else
14092 HAVE_GIF=no
14097 if test "${HAVE_GIF}" = "yes"; then
14099 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14102 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
14103 || test "${HAVE_W32}" = "yes"; then
14104 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
14105 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
14106 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14107 # Earlier versions can crash Emacs.
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
14109 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14110 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113 ac_check_lib_save_LIBS=$LIBS
14114 LIBS="-lgif $LIBS"
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14118 /* Override any GCC internal prototype to avoid an error.
14119 Use char because int might match the return type of a GCC
14120 builtin and then its argument prototype would still apply. */
14121 #ifdef __cplusplus
14122 extern "C"
14123 #endif
14124 char EGifPutExtensionLast ();
14126 main ()
14128 return EGifPutExtensionLast ();
14130 return 0;
14132 _ACEOF
14133 if ac_fn_c_try_link "$LINENO"; then :
14134 ac_cv_lib_gif_EGifPutExtensionLast=yes
14135 else
14136 ac_cv_lib_gif_EGifPutExtensionLast=no
14138 rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
14140 LIBS=$ac_check_lib_save_LIBS
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14143 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14144 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
14145 HAVE_GIF=yes
14146 else
14147 HAVE_GIF=maybe
14154 if test "$HAVE_GIF" = yes; then
14155 LIBGIF=-lgif
14156 elif test "$HAVE_GIF" = maybe; then
14157 # If gif_lib.h but no libgif, try libungif.
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
14159 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
14160 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14163 ac_check_lib_save_LIBS=$LIBS
14164 LIBS="-lungif $LIBS"
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14168 /* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
14171 #ifdef __cplusplus
14172 extern "C"
14173 #endif
14174 char EGifPutExtensionLast ();
14176 main ()
14178 return EGifPutExtensionLast ();
14180 return 0;
14182 _ACEOF
14183 if ac_fn_c_try_link "$LINENO"; then :
14184 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14185 else
14186 ac_cv_lib_ungif_EGifPutExtensionLast=no
14188 rm -f core conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14193 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14194 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
14195 HAVE_GIF=yes
14196 else
14197 HAVE_GIF=no
14200 test "$HAVE_GIF" = yes && LIBGIF=-lungif
14203 if test "${HAVE_GIF}" = "yes"; then
14205 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14211 if test "${HAVE_X11}" = "yes"; then
14212 MISSING=""
14213 WITH_NO=""
14214 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14215 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14216 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14217 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14218 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14219 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14220 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14221 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14222 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14223 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14225 if test "X${MISSING}" != X; then
14226 as_fn_error "The following required libraries were not found:
14227 $MISSING
14228 Maybe some development libraries/packages are missing?
14229 If you don't want to link with them give
14230 $WITH_NO
14231 as options to configure" "$LINENO" 5
14235 ### Use -lgpm if available, unless `--with-gpm=no'.
14236 HAVE_GPM=no
14237 LIBGPM=
14238 if test "${with_gpm}" != "no"; then
14239 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14240 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14242 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14243 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 ac_check_lib_save_LIBS=$LIBS
14247 LIBS="-lgpm $LIBS"
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14251 /* Override any GCC internal prototype to avoid an error.
14252 Use char because int might match the return type of a GCC
14253 builtin and then its argument prototype would still apply. */
14254 #ifdef __cplusplus
14255 extern "C"
14256 #endif
14257 char Gpm_Open ();
14259 main ()
14261 return Gpm_Open ();
14263 return 0;
14265 _ACEOF
14266 if ac_fn_c_try_link "$LINENO"; then :
14267 ac_cv_lib_gpm_Gpm_Open=yes
14268 else
14269 ac_cv_lib_gpm_Gpm_Open=no
14271 rm -f core conftest.err conftest.$ac_objext \
14272 conftest$ac_exeext conftest.$ac_ext
14273 LIBS=$ac_check_lib_save_LIBS
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14276 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14277 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14278 HAVE_GPM=yes
14285 if test "${HAVE_GPM}" = "yes"; then
14287 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14289 LIBGPM=-lgpm
14298 GNUSTEP_CFLAGS=
14299 ### Use NeXTstep API to implement GUI.
14300 if test "${HAVE_NS}" = "yes"; then
14302 $as_echo "#define HAVE_NS 1" >>confdefs.h
14304 if test "${NS_IMPL_COCOA}" = "yes"; then
14306 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14309 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14311 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14313 # See also .m.o rule in Makefile.in */
14314 # FIXME: are all these flags really needed? Document here why. */
14315 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14316 ## Extra CFLAGS applied to src/*.m files.
14317 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"
14319 # We also have mouse menus.
14320 HAVE_MENUS=yes
14321 OTHER_FILES=ns-app
14324 if test "${HAVE_W32}" = "yes"; then
14325 HAVE_MENUS=yes
14328 ### Use session management (-lSM -lICE) if available
14329 HAVE_X_SM=no
14330 LIBXSM=
14331 if test "${HAVE_X11}" = "yes"; then
14332 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14333 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14335 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14336 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 ac_check_lib_save_LIBS=$LIBS
14340 LIBS="-lSM -lICE $LIBS"
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 char SmcOpenConnection ();
14352 main ()
14354 return SmcOpenConnection ();
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 ac_cv_lib_SM_SmcOpenConnection=yes
14361 else
14362 ac_cv_lib_SM_SmcOpenConnection=no
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 LIBS=$ac_check_lib_save_LIBS
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14369 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14370 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14371 HAVE_X_SM=yes
14378 if test "${HAVE_X_SM}" = "yes"; then
14380 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14382 LIBXSM="-lSM -lICE"
14383 case "$LIBS" in
14384 *-lSM*) ;;
14385 *) LIBS="$LIBXSM $LIBS" ;;
14386 esac
14391 ### Use XRandr (-lXrandr) if available
14392 HAVE_XRANDR=no
14393 if test "${HAVE_X11}" = "yes"; then
14394 XRANDR_REQUIRED=1.2.2
14395 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14397 succeeded=no
14399 if test "$PKG_CONFIG" = "no" ; then
14400 HAVE_XRANDR=no
14401 else
14402 PKG_CONFIG_MIN_VERSION=0.9.0
14403 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14405 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14407 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14408 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14409 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14410 edit_cflags="
14411 s,///*,/,g
14412 s/^/ /
14413 s/ -I/ $isystem/g
14414 s/^ //
14416 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14417 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14419 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14420 succeeded=yes
14421 else
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 $as_echo "no" >&6; }
14424 XRANDR_CFLAGS=""
14425 XRANDR_LIBS=""
14426 ## If we have a custom action on failure, don't print errors, but
14427 ## do set a variable so people can do so. Do it in a subshell
14428 ## to capture any diagnostics in invoking pkg-config.
14429 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14435 else
14436 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14437 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14441 if test $succeeded = yes; then
14442 HAVE_XRANDR=yes
14443 else
14444 HAVE_XRANDR=no
14447 if test $HAVE_XRANDR = no; then
14448 # Test old way in case pkg-config doesn't have it (older machines).
14449 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14450 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14452 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14453 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14454 $as_echo_n "(cached) " >&6
14455 else
14456 ac_check_lib_save_LIBS=$LIBS
14457 LIBS="-lXrandr $LIBS"
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14461 /* Override any GCC internal prototype to avoid an error.
14462 Use char because int might match the return type of a GCC
14463 builtin and then its argument prototype would still apply. */
14464 #ifdef __cplusplus
14465 extern "C"
14466 #endif
14467 char XRRGetScreenResources ();
14469 main ()
14471 return XRRGetScreenResources ();
14473 return 0;
14475 _ACEOF
14476 if ac_fn_c_try_link "$LINENO"; then :
14477 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14478 else
14479 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14481 rm -f core conftest.err conftest.$ac_objext \
14482 conftest$ac_exeext conftest.$ac_ext
14483 LIBS=$ac_check_lib_save_LIBS
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14486 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14487 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14488 HAVE_XRANDR=yes
14494 if test $HAVE_XRANDR = yes; then
14495 XRANDR_LIBS=-lXrandr
14499 if test $HAVE_XRANDR = yes; then
14500 SAVE_CFLAGS="$CFLAGS"
14501 SAVE_LIBS="$LIBS"
14502 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14503 LIBS="$XRANDR_LIBS $LIBS"
14504 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14505 do :
14506 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14507 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14508 eval as_val=\$$as_ac_var
14509 if test "x$as_val" = x""yes; then :
14510 cat >>confdefs.h <<_ACEOF
14511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14512 _ACEOF
14515 done
14517 CFLAGS="$SAVE_CFLAGS"
14518 LIBS="$SAVE_LIBS"
14521 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14526 ### Use Xinerama (-lXinerama) if available
14527 HAVE_XINERAMA=no
14528 if test "${HAVE_X11}" = "yes"; then
14529 XINERAMA_REQUIRED=1.0.2
14530 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14532 succeeded=no
14534 if test "$PKG_CONFIG" = "no" ; then
14535 HAVE_XINERAMA=no
14536 else
14537 PKG_CONFIG_MIN_VERSION=0.9.0
14538 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14540 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14542 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14543 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14544 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14545 edit_cflags="
14546 s,///*,/,g
14547 s/^/ /
14548 s/ -I/ $isystem/g
14549 s/^ //
14551 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14552 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14554 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14555 succeeded=yes
14556 else
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14558 $as_echo "no" >&6; }
14559 XINERAMA_CFLAGS=""
14560 XINERAMA_LIBS=""
14561 ## If we have a custom action on failure, don't print errors, but
14562 ## do set a variable so people can do so. Do it in a subshell
14563 ## to capture any diagnostics in invoking pkg-config.
14564 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14570 else
14571 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14572 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14576 if test $succeeded = yes; then
14577 HAVE_XINERAMA=yes
14578 else
14579 HAVE_XINERAMA=no
14582 if test $HAVE_XINERAMA = no; then
14583 # Test old way in case pkg-config doesn't have it (older machines).
14584 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14585 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14587 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14588 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 ac_check_lib_save_LIBS=$LIBS
14592 LIBS="-lXinerama $LIBS"
14593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14596 /* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14599 #ifdef __cplusplus
14600 extern "C"
14601 #endif
14602 char XineramaQueryExtension ();
14604 main ()
14606 return XineramaQueryExtension ();
14608 return 0;
14610 _ACEOF
14611 if ac_fn_c_try_link "$LINENO"; then :
14612 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14613 else
14614 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14616 rm -f core conftest.err conftest.$ac_objext \
14617 conftest$ac_exeext conftest.$ac_ext
14618 LIBS=$ac_check_lib_save_LIBS
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14621 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14622 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14623 HAVE_XINERAMA=yes
14629 if test $HAVE_XINERAMA = yes; then
14630 XINERAMA_LIBS=-lXinerama
14634 if test $HAVE_XINERAMA = yes; then
14636 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14642 ### Use libxml (-lxml2) if available
14643 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14644 HAVE_LIBXML2=no
14645 if test "${with_xml2}" != "no"; then
14646 ### I'm not sure what the version number should be, so I just guessed.
14648 succeeded=no
14650 if test "$PKG_CONFIG" = "no" ; then
14651 HAVE_LIBXML2=no
14652 else
14653 PKG_CONFIG_MIN_VERSION=0.9.0
14654 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14656 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14658 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14659 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14660 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14661 edit_cflags="
14662 s,///*,/,g
14663 s/^/ /
14664 s/ -I/ $isystem/g
14665 s/^ //
14667 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14668 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14670 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14671 succeeded=yes
14672 else
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14675 LIBXML2_CFLAGS=""
14676 LIBXML2_LIBS=""
14677 ## If we have a custom action on failure, don't print errors, but
14678 ## do set a variable so people can do so. Do it in a subshell
14679 ## to capture any diagnostics in invoking pkg-config.
14680 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14686 else
14687 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14688 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14692 if test $succeeded = yes; then
14693 HAVE_LIBXML2=yes
14694 else
14695 HAVE_LIBXML2=no
14698 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14699 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14700 SAVE_CPPFLAGS="$CPPFLAGS"
14701 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14702 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14703 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14704 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14706 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14707 HAVE_LIBXML2=yes
14713 CPPFLAGS="$SAVE_CPPFLAGS"
14714 if test "${HAVE_LIBXML2}" = "yes"; then
14715 LIBXML2_LIBS="-lxml2"
14716 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14719 if test "${HAVE_LIBXML2}" = "yes"; then
14720 if test "${opsys}" != "mingw32"; then
14721 LIBS="$LIBXML2_LIBS $LIBS"
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14723 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14724 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14725 $as_echo_n "(cached) " >&6
14726 else
14727 ac_check_lib_save_LIBS=$LIBS
14728 LIBS="-lxml2 $LIBS"
14729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14730 /* end confdefs.h. */
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14735 #ifdef __cplusplus
14736 extern "C"
14737 #endif
14738 char htmlReadMemory ();
14740 main ()
14742 return htmlReadMemory ();
14744 return 0;
14746 _ACEOF
14747 if ac_fn_c_try_link "$LINENO"; then :
14748 ac_cv_lib_xml2_htmlReadMemory=yes
14749 else
14750 ac_cv_lib_xml2_htmlReadMemory=no
14752 rm -f core conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
14754 LIBS=$ac_check_lib_save_LIBS
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14757 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14758 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14759 HAVE_LIBXML2=yes
14760 else
14761 HAVE_LIBXML2=no
14764 else
14765 LIBXML2_LIBS=""
14767 if test "${HAVE_LIBXML2}" = "yes"; then
14769 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14771 else
14772 LIBXML2_LIBS=""
14773 LIBXML2_CFLAGS=""
14780 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14781 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14782 if test "${opsys}" = "mingw32"; then
14783 emacs_cv_netdb_declares_h_errno=yes
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14786 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14787 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14788 $as_echo_n "(cached) " >&6
14789 else
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 #include <netdb.h>
14794 main ()
14796 return h_errno;
14798 return 0;
14800 _ACEOF
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 emacs_cv_netdb_declares_h_errno=yes
14803 else
14804 emacs_cv_netdb_declares_h_errno=no
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14810 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14811 if test $emacs_cv_netdb_declares_h_errno = yes; then
14813 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14817 # sqrt and other floating-point functions such as fmod and frexp
14818 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14819 if test "${opsys}" != "mingw32"; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14821 $as_echo_n "checking for sqrt in -lm... " >&6; }
14822 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 ac_check_lib_save_LIBS=$LIBS
14826 LIBS="-lm $LIBS"
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14833 #ifdef __cplusplus
14834 extern "C"
14835 #endif
14836 char sqrt ();
14838 main ()
14840 return sqrt ();
14842 return 0;
14844 _ACEOF
14845 if ac_fn_c_try_link "$LINENO"; then :
14846 ac_cv_lib_m_sqrt=yes
14847 else
14848 ac_cv_lib_m_sqrt=no
14850 rm -f core conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
14852 LIBS=$ac_check_lib_save_LIBS
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14855 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14856 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14857 cat >>confdefs.h <<_ACEOF
14858 #define HAVE_LIBM 1
14859 _ACEOF
14861 LIBS="-lm $LIBS"
14867 # Check for mail-locking functions in a "mail" library. Probably this should
14868 # have the same check as for liblockfile below.
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14870 $as_echo_n "checking for maillock in -lmail... " >&6; }
14871 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 ac_check_lib_save_LIBS=$LIBS
14875 LIBS="-lmail $LIBS"
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14879 /* Override any GCC internal prototype to avoid an error.
14880 Use char because int might match the return type of a GCC
14881 builtin and then its argument prototype would still apply. */
14882 #ifdef __cplusplus
14883 extern "C"
14884 #endif
14885 char maillock ();
14887 main ()
14889 return maillock ();
14891 return 0;
14893 _ACEOF
14894 if ac_fn_c_try_link "$LINENO"; then :
14895 ac_cv_lib_mail_maillock=yes
14896 else
14897 ac_cv_lib_mail_maillock=no
14899 rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14901 LIBS=$ac_check_lib_save_LIBS
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14904 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14905 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14906 have_mail=yes
14907 else
14908 have_mail=no
14911 if test $have_mail = yes; then
14912 LIBS_MAIL=-lmail
14913 LIBS="$LIBS_MAIL $LIBS"
14915 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14917 else
14918 LIBS_MAIL=
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14921 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14922 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 ac_check_lib_save_LIBS=$LIBS
14926 LIBS="-llockfile $LIBS"
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14930 /* Override any GCC internal prototype to avoid an error.
14931 Use char because int might match the return type of a GCC
14932 builtin and then its argument prototype would still apply. */
14933 #ifdef __cplusplus
14934 extern "C"
14935 #endif
14936 char maillock ();
14938 main ()
14940 return maillock ();
14942 return 0;
14944 _ACEOF
14945 if ac_fn_c_try_link "$LINENO"; then :
14946 ac_cv_lib_lockfile_maillock=yes
14947 else
14948 ac_cv_lib_lockfile_maillock=no
14950 rm -f core conftest.err conftest.$ac_objext \
14951 conftest$ac_exeext conftest.$ac_ext
14952 LIBS=$ac_check_lib_save_LIBS
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14955 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14956 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14957 have_lockfile=yes
14958 else
14959 have_lockfile=no
14962 if test $have_lockfile = yes; then
14963 LIBS_MAIL=-llockfile
14964 LIBS="$LIBS_MAIL $LIBS"
14966 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14968 else
14969 # If we have the shared liblockfile, assume we must use it for mail
14970 # locking (e.g. Debian). If we couldn't link against liblockfile
14971 # (no liblockfile.a installed), ensure that we don't need to.
14972 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14973 set dummy liblockfile.so; ac_word=$2
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14975 $as_echo_n "checking for $ac_word... " >&6; }
14976 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14977 $as_echo_n "(cached) " >&6
14978 else
14979 if test -n "$liblockfile"; then
14980 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14981 else
14982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14983 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14984 for as_dir in $as_dummy
14986 IFS=$as_save_IFS
14987 test -z "$as_dir" && as_dir=.
14988 for ac_exec_ext in '' $ac_executable_extensions; do
14989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14990 ac_cv_prog_liblockfile="yes"
14991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14992 break 2
14994 done
14995 done
14996 IFS=$as_save_IFS
14998 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15001 liblockfile=$ac_cv_prog_liblockfile
15002 if test -n "$liblockfile"; then
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
15004 $as_echo "$liblockfile" >&6; }
15005 else
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15007 $as_echo "no" >&6; }
15011 if test $ac_cv_prog_liblockfile = yes; then
15012 as_fn_error "Shared liblockfile found but can't link against it.
15013 This probably means that movemail could lose mail.
15014 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
15022 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
15023 ## interlock access to the mail spool. The alternative is a lock file named
15024 ## /usr/spool/mail/$USER.lock.
15025 mail_lock=no
15026 case "$opsys" in
15027 aix4-2) mail_lock="lockf" ;;
15029 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
15031 ## On GNU/Linux systems, both methods are used by various mail programs.
15032 ## I assume most people are using newer mailers that have heard of flock.
15033 ## Change this if you need to.
15034 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
15035 ## configure gets the right answers, and that means *NOT* using flock.
15036 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
15037 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
15038 ## Debian maintainer hasn't provided a clean fix for Emacs.
15039 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
15040 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
15041 ## correct logic. -- fx
15042 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
15043 ## liblockfile is a Free Software replacement for libmail, used on
15044 ## Debian systems and elsewhere. -rfr.
15045 gnu-*)
15046 mail_lock="flock"
15047 if test $have_mail = yes || test $have_lockfile = yes; then
15048 test $ac_cv_header_maillock_h = yes && mail_lock=no
15052 mingw32)
15053 mail_lock="none-needed" ;;
15054 esac
15056 BLESSMAIL_TARGET=
15057 case "$mail_lock" in
15058 flock)
15059 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
15062 lockf)
15063 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
15066 none-needed) ;;
15068 *) BLESSMAIL_TARGET="need-blessmail" ;;
15069 esac
15073 for ac_func in accept4 gethostname \
15074 getrusage get_current_dir_name \
15075 lrand48 \
15076 select getpagesize setlocale \
15077 getrlimit setrlimit shutdown getaddrinfo \
15078 strsignal setitimer \
15079 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
15080 gai_strerror getline getdelim sync \
15081 difftime posix_memalign \
15082 getpwent endpwent getgrent endgrent \
15083 touchlock \
15084 cfmakeraw cfsetspeed copysign __executable_start log2
15085 do :
15086 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15087 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15088 eval as_val=\$$as_ac_var
15089 if test "x$as_val" = x""yes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15092 _ACEOF
15095 done
15098 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
15099 ## has a broken `rint' in some library versions including math library
15100 ## version number A.09.05.
15101 ## You can fix the math library by installing patch number PHSS_4630.
15102 ## But we can fix it more reliably for Emacs by just not using rint.
15103 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
15104 case $opsys in
15105 hpux*) : ;;
15106 *) for ac_func in random rint
15107 do :
15108 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15109 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15110 eval as_val=\$$as_ac_var
15111 if test "x$as_val" = x""yes; then :
15112 cat >>confdefs.h <<_ACEOF
15113 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15114 _ACEOF
15117 done
15119 esac
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
15122 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
15123 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
15124 $as_echo_n "(cached) " >&6
15125 else
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15130 main ()
15132 __builtin_unwind_init ();
15134 return 0;
15136 _ACEOF
15137 if ac_fn_c_try_link "$LINENO"; then :
15138 emacs_cv_func___builtin_unwind_init=yes
15139 else
15140 emacs_cv_func___builtin_unwind_init=no
15142 rm -f core conftest.err conftest.$ac_objext \
15143 conftest$ac_exeext conftest.$ac_ext
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
15146 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
15147 if test $emacs_cv_func___builtin_unwind_init = yes; then
15149 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15158 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15159 if test "${ac_cv_sys_largefile_source+set}" = set; then :
15160 $as_echo_n "(cached) " >&6
15161 else
15162 while :; do
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165 #include <sys/types.h> /* for off_t */
15166 #include <stdio.h>
15168 main ()
15170 int (*fp) (FILE *, off_t, int) = fseeko;
15171 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15173 return 0;
15175 _ACEOF
15176 if ac_fn_c_try_link "$LINENO"; then :
15177 ac_cv_sys_largefile_source=no; break
15179 rm -f core conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 #define _LARGEFILE_SOURCE 1
15184 #include <sys/types.h> /* for off_t */
15185 #include <stdio.h>
15187 main ()
15189 int (*fp) (FILE *, off_t, int) = fseeko;
15190 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15192 return 0;
15194 _ACEOF
15195 if ac_fn_c_try_link "$LINENO"; then :
15196 ac_cv_sys_largefile_source=1; break
15198 rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200 ac_cv_sys_largefile_source=unknown
15201 break
15202 done
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15205 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15206 case $ac_cv_sys_largefile_source in #(
15207 no | unknown) ;;
15209 cat >>confdefs.h <<_ACEOF
15210 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15211 _ACEOF
15213 esac
15214 rm -rf conftest*
15216 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15217 # in glibc 2.1.3, but that breaks too many other things.
15218 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15219 if test $ac_cv_sys_largefile_source != unknown; then
15221 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15226 # UNIX98 PTYs.
15227 for ac_func in grantpt
15228 do :
15229 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15230 if test "x$ac_cv_func_grantpt" = x""yes; then :
15231 cat >>confdefs.h <<_ACEOF
15232 #define HAVE_GRANTPT 1
15233 _ACEOF
15236 done
15239 # PTY-related GNU extensions.
15240 for ac_func in getpt posix_openpt
15241 do :
15242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15244 eval as_val=\$$as_ac_var
15245 if test "x$as_val" = x""yes; then :
15246 cat >>confdefs.h <<_ACEOF
15247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15248 _ACEOF
15251 done
15254 # Check this now, so that we will NOT find the above functions in ncurses.
15255 # That is because we have not set up to link ncurses in lib-src.
15256 # It's better to believe a function is not available
15257 # than to expect to find it in ncurses.
15258 # Also we need tputs and friends to be able to build at all.
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15260 $as_echo_n "checking for library containing tputs... " >&6; }
15261 # Run a test program that contains a call to tputs, a call that is
15262 # never executed. This tests whether a pre-'main' dynamic linker
15263 # works with the library. It's too much trouble to actually call
15264 # tputs in the test program, due to portability hassles. When
15265 # cross-compiling, assume the test program will run if it links.
15267 if test "${opsys}" = "mingw32"; then
15268 msg='none required'
15269 else
15270 # Maybe curses should be tried earlier?
15271 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15272 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
15273 OLIBS=$LIBS
15274 if test -z "$tputs_library"; then
15275 LIBS_TERMCAP=
15276 msg='none required'
15277 else
15278 LIBS_TERMCAP=-l$tputs_library
15279 msg=$LIBS_TERMCAP
15280 LIBS="$LIBS_TERMCAP $LIBS"
15282 if test "$cross_compiling" = yes; then :
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15286 extern void tputs (const char *, int, int (*)(int));
15287 int main (int argc, char **argv)
15289 if (argc == 10000)
15290 tputs (argv[0], 0, 0);
15291 return 0;
15294 _ACEOF
15295 if ac_fn_c_try_link "$LINENO"; then :
15297 else
15298 msg=no
15300 rm -f core conftest.err conftest.$ac_objext \
15301 conftest$ac_exeext conftest.$ac_ext
15302 else
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15306 extern void tputs (const char *, int, int (*)(int));
15307 int main (int argc, char **argv)
15309 if (argc == 10000)
15310 tputs (argv[0], 0, 0);
15311 return 0;
15314 _ACEOF
15315 if ac_fn_c_try_run "$LINENO"; then :
15317 else
15318 msg=no
15320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15321 conftest.$ac_objext conftest.beam conftest.$ac_ext
15324 LIBS=$OLIBS
15325 if test "X$msg" != Xno; then
15326 break
15328 done
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15331 $as_echo "$msg" >&6; }
15332 if test "X$msg" = Xno; then
15333 as_fn_error "The required function \`tputs' was not found in any library.
15334 The following libraries were tried (in order):
15335 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15336 Please try installing whichever of these libraries is most appropriate
15337 for your system, together with its header files.
15338 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15341 ## Use termcap instead of terminfo?
15342 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15343 TERMINFO=yes
15344 ## FIXME? In the cases below where we unconditionally set
15345 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15346 ## if that was found above to have tputs.
15347 ## Should we use the gnu* logic everywhere?
15348 case "$opsys" in
15349 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15350 ## The ncurses library has been moved out of the System framework in
15351 ## Mac OS X 10.2. So if configure detects it, set the command-line
15352 ## option to use it.
15353 darwin) LIBS_TERMCAP="-lncurses" ;;
15355 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
15357 freebsd)
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15359 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15360 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15361 $as_echo_n "(cached) " >&6
15362 else
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 #include <osreldate.h>
15367 main ()
15369 #if __FreeBSD_version < 400000
15370 fail;
15371 #endif
15374 return 0;
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 emacs_cv_freebsd_terminfo=yes
15379 else
15380 emacs_cv_freebsd_terminfo=no
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15388 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15390 if test $emacs_cv_freebsd_terminfo = yes; then
15391 LIBS_TERMCAP="-lncurses"
15392 else
15393 TERMINFO=no
15394 LIBS_TERMCAP="-ltermcap"
15398 mingw32)
15399 TERMINFO=no
15400 LIBS_TERMCAP=
15403 netbsd)
15404 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15405 TERMINFO=no
15406 LIBS_TERMCAP="-ltermcap"
15410 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15412 ## hpux: Make sure we get select from libc rather than from libcurses
15413 ## because libcurses on HPUX 10.10 has a broken version of select.
15414 ## We used to use -lc -lcurses, but this may be cleaner.
15415 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15416 # set that way, now it uses the default). Isn't this a contradiction?
15417 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15419 esac
15421 TERMCAP_OBJ=tparam.o
15422 if test $TERMINFO = yes; then
15424 $as_echo "#define TERMINFO 1" >>confdefs.h
15426 TERMCAP_OBJ=terminfo.o
15428 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15430 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15437 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15438 # On Darwin, res_init appears not to be useful: see bug#562 and
15439 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15440 resolv=no
15442 if test $opsys != darwin; then
15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15445 /* end confdefs.h. */
15446 #include <netinet/in.h>
15447 #include <arpa/nameser.h>
15448 #include <resolv.h>
15450 main ()
15452 return res_init();
15454 return 0;
15456 _ACEOF
15457 if ac_fn_c_try_link "$LINENO"; then :
15458 have_res_init=yes
15459 else
15460 have_res_init=no
15462 rm -f core conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15464 if test "$have_res_init" = no; then
15465 OLIBS="$LIBS"
15466 LIBS="$LIBS -lresolv"
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15468 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15470 /* end confdefs.h. */
15471 #include <netinet/in.h>
15472 #include <arpa/nameser.h>
15473 #include <resolv.h>
15475 main ()
15477 return res_init();
15479 return 0;
15481 _ACEOF
15482 if ac_fn_c_try_link "$LINENO"; then :
15483 have_res_init=yes
15484 else
15485 have_res_init=no
15487 rm -f core conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15490 $as_echo "$have_res_init" >&6; }
15491 if test "$have_res_init" = yes ; then
15492 resolv=yes
15494 LIBS="$OLIBS"
15497 if test "$have_res_init" = yes; then
15499 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15503 # Do we need the Hesiod library to provide the support routines?
15504 LIBHESIOD=
15505 if test "$with_hesiod" != no ; then
15506 # Don't set $LIBS here -- see comments above. FIXME which comments?
15507 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15508 if test "x$ac_cv_func_res_send" = x""yes; then :
15510 else
15511 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15512 if test "x$ac_cv_func___res_send" = x""yes; then :
15514 else
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15516 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15517 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15518 $as_echo_n "(cached) " >&6
15519 else
15520 ac_check_lib_save_LIBS=$LIBS
15521 LIBS="-lresolv $LIBS"
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15525 /* Override any GCC internal prototype to avoid an error.
15526 Use char because int might match the return type of a GCC
15527 builtin and then its argument prototype would still apply. */
15528 #ifdef __cplusplus
15529 extern "C"
15530 #endif
15531 char res_send ();
15533 main ()
15535 return res_send ();
15537 return 0;
15539 _ACEOF
15540 if ac_fn_c_try_link "$LINENO"; then :
15541 ac_cv_lib_resolv_res_send=yes
15542 else
15543 ac_cv_lib_resolv_res_send=no
15545 rm -f core conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547 LIBS=$ac_check_lib_save_LIBS
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15550 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15551 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15552 resolv=yes
15553 else
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15555 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15556 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 ac_check_lib_save_LIBS=$LIBS
15560 LIBS="-lresolv $LIBS"
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15564 /* Override any GCC internal prototype to avoid an error.
15565 Use char because int might match the return type of a GCC
15566 builtin and then its argument prototype would still apply. */
15567 #ifdef __cplusplus
15568 extern "C"
15569 #endif
15570 char __res_send ();
15572 main ()
15574 return __res_send ();
15576 return 0;
15578 _ACEOF
15579 if ac_fn_c_try_link "$LINENO"; then :
15580 ac_cv_lib_resolv___res_send=yes
15581 else
15582 ac_cv_lib_resolv___res_send=no
15584 rm -f core conftest.err conftest.$ac_objext \
15585 conftest$ac_exeext conftest.$ac_ext
15586 LIBS=$ac_check_lib_save_LIBS
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15589 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15590 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15591 resolv=yes
15600 if test "$resolv" = yes ; then
15601 RESOLVLIB=-lresolv
15602 else
15603 RESOLVLIB=
15605 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15606 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15608 else
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15610 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15611 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 ac_check_lib_save_LIBS=$LIBS
15615 LIBS="-lhesiod $RESOLVLIB $LIBS"
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15619 /* Override any GCC internal prototype to avoid an error.
15620 Use char because int might match the return type of a GCC
15621 builtin and then its argument prototype would still apply. */
15622 #ifdef __cplusplus
15623 extern "C"
15624 #endif
15625 char hes_getmailhost ();
15627 main ()
15629 return hes_getmailhost ();
15631 return 0;
15633 _ACEOF
15634 if ac_fn_c_try_link "$LINENO"; then :
15635 ac_cv_lib_hesiod_hes_getmailhost=yes
15636 else
15637 ac_cv_lib_hesiod_hes_getmailhost=no
15639 rm -f core conftest.err conftest.$ac_objext \
15640 conftest$ac_exeext conftest.$ac_ext
15641 LIBS=$ac_check_lib_save_LIBS
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15644 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15645 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15646 hesiod=yes
15647 else
15654 if test x"$hesiod" = xyes; then
15655 LIBHESIOD=-lhesiod
15660 # Do we need libresolv (due to res_init or Hesiod)?
15661 if test "$resolv" = yes && test $opsys != darwin; then
15662 LIBRESOLV=-lresolv
15663 else
15664 LIBRESOLV=
15668 # These tell us which Kerberos-related libraries to use.
15669 COM_ERRLIB=
15670 CRYPTOLIB=
15671 KRB5LIB=
15672 DESLIB=
15673 KRB4LIB=
15675 if test "${with_kerberos}" != no; then
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15677 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15678 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15679 $as_echo_n "(cached) " >&6
15680 else
15681 ac_check_lib_save_LIBS=$LIBS
15682 LIBS="-lcom_err $LIBS"
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15686 /* Override any GCC internal prototype to avoid an error.
15687 Use char because int might match the return type of a GCC
15688 builtin and then its argument prototype would still apply. */
15689 #ifdef __cplusplus
15690 extern "C"
15691 #endif
15692 char com_err ();
15694 main ()
15696 return com_err ();
15698 return 0;
15700 _ACEOF
15701 if ac_fn_c_try_link "$LINENO"; then :
15702 ac_cv_lib_com_err_com_err=yes
15703 else
15704 ac_cv_lib_com_err_com_err=no
15706 rm -f core conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_lib_save_LIBS
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15711 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15712 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15713 have_com_err=yes
15714 else
15715 have_com_err=no
15718 if test $have_com_err = yes; then
15719 COM_ERRLIB=-lcom_err
15720 LIBS="$COM_ERRLIB $LIBS"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15723 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15724 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15725 $as_echo_n "(cached) " >&6
15726 else
15727 ac_check_lib_save_LIBS=$LIBS
15728 LIBS="-lcrypto $LIBS"
15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h. */
15732 /* Override any GCC internal prototype to avoid an error.
15733 Use char because int might match the return type of a GCC
15734 builtin and then its argument prototype would still apply. */
15735 #ifdef __cplusplus
15736 extern "C"
15737 #endif
15738 char mit_des_cbc_encrypt ();
15740 main ()
15742 return mit_des_cbc_encrypt ();
15744 return 0;
15746 _ACEOF
15747 if ac_fn_c_try_link "$LINENO"; then :
15748 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15749 else
15750 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15752 rm -f core conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
15754 LIBS=$ac_check_lib_save_LIBS
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15757 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15758 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15759 have_crypto=yes
15760 else
15761 have_crypto=no
15764 if test $have_crypto = yes; then
15765 CRYPTOLIB=-lcrypto
15766 LIBS="$CRYPTOLIB $LIBS"
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15769 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15770 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15771 $as_echo_n "(cached) " >&6
15772 else
15773 ac_check_lib_save_LIBS=$LIBS
15774 LIBS="-lk5crypto $LIBS"
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15778 /* Override any GCC internal prototype to avoid an error.
15779 Use char because int might match the return type of a GCC
15780 builtin and then its argument prototype would still apply. */
15781 #ifdef __cplusplus
15782 extern "C"
15783 #endif
15784 char mit_des_cbc_encrypt ();
15786 main ()
15788 return mit_des_cbc_encrypt ();
15790 return 0;
15792 _ACEOF
15793 if ac_fn_c_try_link "$LINENO"; then :
15794 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15795 else
15796 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15798 rm -f core conftest.err conftest.$ac_objext \
15799 conftest$ac_exeext conftest.$ac_ext
15800 LIBS=$ac_check_lib_save_LIBS
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15803 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15804 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15805 have_k5crypto=yes
15806 else
15807 have_k5crypto=no
15810 if test $have_k5crypto = yes; then
15811 CRYPTOLIB=-lk5crypto
15812 LIBS="$CRYPTOLIB $LIBS"
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15815 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15816 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 ac_check_lib_save_LIBS=$LIBS
15820 LIBS="-lkrb5 $LIBS"
15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15824 /* Override any GCC internal prototype to avoid an error.
15825 Use char because int might match the return type of a GCC
15826 builtin and then its argument prototype would still apply. */
15827 #ifdef __cplusplus
15828 extern "C"
15829 #endif
15830 char krb5_init_context ();
15832 main ()
15834 return krb5_init_context ();
15836 return 0;
15838 _ACEOF
15839 if ac_fn_c_try_link "$LINENO"; then :
15840 ac_cv_lib_krb5_krb5_init_context=yes
15841 else
15842 ac_cv_lib_krb5_krb5_init_context=no
15844 rm -f core conftest.err conftest.$ac_objext \
15845 conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15849 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15850 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15851 have_krb5=yes
15852 else
15853 have_krb5=no
15856 if test $have_krb5=yes; then
15857 KRB5LIB=-lkrb5
15858 LIBS="$KRB5LIB $LIBS"
15860 if test "${with_kerberos5}" = no; then
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15862 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15863 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15864 $as_echo_n "(cached) " >&6
15865 else
15866 ac_check_lib_save_LIBS=$LIBS
15867 LIBS="-ldes425 $LIBS"
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15871 /* Override any GCC internal prototype to avoid an error.
15872 Use char because int might match the return type of a GCC
15873 builtin and then its argument prototype would still apply. */
15874 #ifdef __cplusplus
15875 extern "C"
15876 #endif
15877 char des_cbc_encrypt ();
15879 main ()
15881 return des_cbc_encrypt ();
15883 return 0;
15885 _ACEOF
15886 if ac_fn_c_try_link "$LINENO"; then :
15887 ac_cv_lib_des425_des_cbc_encrypt=yes
15888 else
15889 ac_cv_lib_des425_des_cbc_encrypt=no
15891 rm -f core conftest.err conftest.$ac_objext \
15892 conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15896 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15897 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15898 have_des425=yes
15899 else
15900 have_des425=no
15903 if test $have_des425 = yes; then
15904 DESLIB=-ldes425
15905 LIBS="$DESLIB $LIBS"
15906 else
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15908 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15909 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15910 $as_echo_n "(cached) " >&6
15911 else
15912 ac_check_lib_save_LIBS=$LIBS
15913 LIBS="-ldes $LIBS"
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15917 /* Override any GCC internal prototype to avoid an error.
15918 Use char because int might match the return type of a GCC
15919 builtin and then its argument prototype would still apply. */
15920 #ifdef __cplusplus
15921 extern "C"
15922 #endif
15923 char des_cbc_encrypt ();
15925 main ()
15927 return des_cbc_encrypt ();
15929 return 0;
15931 _ACEOF
15932 if ac_fn_c_try_link "$LINENO"; then :
15933 ac_cv_lib_des_des_cbc_encrypt=yes
15934 else
15935 ac_cv_lib_des_des_cbc_encrypt=no
15937 rm -f core conftest.err conftest.$ac_objext \
15938 conftest$ac_exeext conftest.$ac_ext
15939 LIBS=$ac_check_lib_save_LIBS
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15942 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15943 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15944 have_des=yes
15945 else
15946 have_des=no
15949 if test $have_des = yes; then
15950 DESLIB=-ldes
15951 LIBS="$DESLIB $LIBS"
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15955 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15956 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15957 $as_echo_n "(cached) " >&6
15958 else
15959 ac_check_lib_save_LIBS=$LIBS
15960 LIBS="-lkrb4 $LIBS"
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15964 /* Override any GCC internal prototype to avoid an error.
15965 Use char because int might match the return type of a GCC
15966 builtin and then its argument prototype would still apply. */
15967 #ifdef __cplusplus
15968 extern "C"
15969 #endif
15970 char krb_get_cred ();
15972 main ()
15974 return krb_get_cred ();
15976 return 0;
15978 _ACEOF
15979 if ac_fn_c_try_link "$LINENO"; then :
15980 ac_cv_lib_krb4_krb_get_cred=yes
15981 else
15982 ac_cv_lib_krb4_krb_get_cred=no
15984 rm -f core conftest.err conftest.$ac_objext \
15985 conftest$ac_exeext conftest.$ac_ext
15986 LIBS=$ac_check_lib_save_LIBS
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15989 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15990 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15991 have_krb4=yes
15992 else
15993 have_krb4=no
15996 if test $have_krb4 = yes; then
15997 KRB4LIB=-lkrb4
15998 LIBS="$KRB4LIB $LIBS"
15999 else
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16001 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16002 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
16003 $as_echo_n "(cached) " >&6
16004 else
16005 ac_check_lib_save_LIBS=$LIBS
16006 LIBS="-lkrb $LIBS"
16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h. */
16010 /* Override any GCC internal prototype to avoid an error.
16011 Use char because int might match the return type of a GCC
16012 builtin and then its argument prototype would still apply. */
16013 #ifdef __cplusplus
16014 extern "C"
16015 #endif
16016 char krb_get_cred ();
16018 main ()
16020 return krb_get_cred ();
16022 return 0;
16024 _ACEOF
16025 if ac_fn_c_try_link "$LINENO"; then :
16026 ac_cv_lib_krb_krb_get_cred=yes
16027 else
16028 ac_cv_lib_krb_krb_get_cred=no
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16032 LIBS=$ac_check_lib_save_LIBS
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16035 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16036 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
16037 have_krb=yes
16038 else
16039 have_krb=no
16042 if test $have_krb = yes; then
16043 KRB4LIB=-lkrb
16044 LIBS="$KRB4LIB $LIBS"
16049 if test "${with_kerberos5}" != no; then
16050 for ac_header in krb5.h
16051 do :
16052 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16053 if test "x$ac_cv_header_krb5_h" = x""yes; then :
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_KRB5_H 1
16056 _ACEOF
16057 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16059 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
16061 cat >>confdefs.h <<_ACEOF
16062 #define HAVE_KRB5_ERROR_TEXT 1
16063 _ACEOF
16067 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16069 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
16071 cat >>confdefs.h <<_ACEOF
16072 #define HAVE_KRB5_ERROR_E_TEXT 1
16073 _ACEOF
16080 done
16082 else
16083 for ac_header in krb.h
16084 do :
16085 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16086 if test "x$ac_cv_header_krb_h" = x""yes; then :
16087 cat >>confdefs.h <<_ACEOF
16088 #define HAVE_KRB_H 1
16089 _ACEOF
16091 else
16092 for ac_header in kerberosIV/krb.h
16093 do :
16094 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16095 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
16096 cat >>confdefs.h <<_ACEOF
16097 #define HAVE_KERBEROSIV_KRB_H 1
16098 _ACEOF
16100 else
16101 for ac_header in kerberos/krb.h
16102 do :
16103 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16104 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
16105 cat >>confdefs.h <<_ACEOF
16106 #define HAVE_KERBEROS_KRB_H 1
16107 _ACEOF
16111 done
16115 done
16119 done
16122 for ac_header in com_err.h
16123 do :
16124 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16125 if test "x$ac_cv_header_com_err_h" = x""yes; then :
16126 cat >>confdefs.h <<_ACEOF
16127 #define HAVE_COM_ERR_H 1
16128 _ACEOF
16132 done
16142 for ac_header in valgrind/valgrind.h
16143 do :
16144 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
16145 if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_VALGRIND_VALGRIND_H 1
16148 _ACEOF
16152 done
16158 for ac_func in $ac_func_list
16159 do :
16160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16162 eval as_val=\$$as_ac_var
16163 if test "x$as_val" = x""yes; then :
16164 cat >>confdefs.h <<_ACEOF
16165 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16166 _ACEOF
16169 done
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16175 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16176 if test "${emacs_cv_localtime_cache+set}" = set; then :
16177 $as_echo_n "(cached) " >&6
16178 else
16179 if test x$ac_cv_func_tzset = xyes; then
16180 if test "$cross_compiling" = yes; then :
16181 # If we have tzset, assume the worst when cross-compiling.
16182 emacs_cv_localtime_cache=yes
16183 else
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 #include <time.h>
16187 char TZ_GMT0[] = "TZ=GMT0";
16188 char TZ_PST8[] = "TZ=PST8";
16189 main()
16191 time_t now = time ((time_t *) 0);
16192 int hour_GMT0, hour_unset;
16193 if (putenv (TZ_GMT0) != 0)
16194 exit (1);
16195 hour_GMT0 = localtime (&now)->tm_hour;
16196 unsetenv("TZ");
16197 hour_unset = localtime (&now)->tm_hour;
16198 if (putenv (TZ_PST8) != 0)
16199 exit (1);
16200 if (localtime (&now)->tm_hour == hour_GMT0)
16201 exit (1);
16202 unsetenv("TZ");
16203 if (localtime (&now)->tm_hour != hour_unset)
16204 exit (1);
16205 exit (0);
16207 _ACEOF
16208 if ac_fn_c_try_run "$LINENO"; then :
16209 emacs_cv_localtime_cache=no
16210 else
16211 emacs_cv_localtime_cache=yes
16213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16214 conftest.$ac_objext conftest.beam conftest.$ac_ext
16217 else
16218 # If we lack tzset, report that localtime does not cache TZ,
16219 # since we can't invalidate the cache if we don't have tzset.
16220 emacs_cv_localtime_cache=no
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16224 $as_echo "$emacs_cv_localtime_cache" >&6; }
16225 if test $emacs_cv_localtime_cache = yes; then
16227 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16231 ok_so_far=yes
16232 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16233 if test "x$ac_cv_func_socket" = x""yes; then :
16235 else
16236 ok_so_far=no
16239 if test $ok_so_far = yes; then
16240 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16241 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
16243 else
16244 ok_so_far=no
16249 if test $ok_so_far = yes; then
16250 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16251 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
16253 else
16254 ok_so_far=no
16259 if test $ok_so_far = yes; then
16261 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16265 case $canonical in
16266 *-solaris2.4 | *-solaris2.4.*)
16267 : ${ac_cv_func_vfork_works=no};;
16268 esac
16270 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16271 if test "x$ac_cv_type_pid_t" = x""yes; then :
16273 else
16275 cat >>confdefs.h <<_ACEOF
16276 #define pid_t int
16277 _ACEOF
16281 for ac_header in vfork.h
16282 do :
16283 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16284 if test "x$ac_cv_header_vfork_h" = x""yes; then :
16285 cat >>confdefs.h <<_ACEOF
16286 #define HAVE_VFORK_H 1
16287 _ACEOF
16291 done
16293 for ac_func in fork vfork
16294 do :
16295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16297 eval as_val=\$$as_ac_var
16298 if test "x$as_val" = x""yes; then :
16299 cat >>confdefs.h <<_ACEOF
16300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16301 _ACEOF
16304 done
16306 if test "x$ac_cv_func_fork" = xyes; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16308 $as_echo_n "checking for working fork... " >&6; }
16309 if test "${ac_cv_func_fork_works+set}" = set; then :
16310 $as_echo_n "(cached) " >&6
16311 else
16312 if test "$cross_compiling" = yes; then :
16313 ac_cv_func_fork_works=cross
16314 else
16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h. */
16317 $ac_includes_default
16319 main ()
16322 /* By Ruediger Kuhlmann. */
16323 return fork () < 0;
16326 return 0;
16328 _ACEOF
16329 if ac_fn_c_try_run "$LINENO"; then :
16330 ac_cv_func_fork_works=yes
16331 else
16332 ac_cv_func_fork_works=no
16334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16335 conftest.$ac_objext conftest.beam conftest.$ac_ext
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16340 $as_echo "$ac_cv_func_fork_works" >&6; }
16342 else
16343 ac_cv_func_fork_works=$ac_cv_func_fork
16345 if test "x$ac_cv_func_fork_works" = xcross; then
16346 case $host in
16347 *-*-amigaos* | *-*-msdosdjgpp*)
16348 # Override, as these systems have only a dummy fork() stub
16349 ac_cv_func_fork_works=no
16352 ac_cv_func_fork_works=yes
16354 esac
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16356 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16358 ac_cv_func_vfork_works=$ac_cv_func_vfork
16359 if test "x$ac_cv_func_vfork" = xyes; then
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16361 $as_echo_n "checking for working vfork... " >&6; }
16362 if test "${ac_cv_func_vfork_works+set}" = set; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 if test "$cross_compiling" = yes; then :
16366 ac_cv_func_vfork_works=cross
16367 else
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16370 /* Thanks to Paul Eggert for this test. */
16371 $ac_includes_default
16372 #include <sys/wait.h>
16373 #ifdef HAVE_VFORK_H
16374 # include <vfork.h>
16375 #endif
16376 /* On some sparc systems, changes by the child to local and incoming
16377 argument registers are propagated back to the parent. The compiler
16378 is told about this with #include <vfork.h>, but some compilers
16379 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16380 static variable whose address is put into a register that is
16381 clobbered by the vfork. */
16382 static void
16383 #ifdef __cplusplus
16384 sparc_address_test (int arg)
16385 # else
16386 sparc_address_test (arg) int arg;
16387 #endif
16389 static pid_t child;
16390 if (!child) {
16391 child = vfork ();
16392 if (child < 0) {
16393 perror ("vfork");
16394 _exit(2);
16396 if (!child) {
16397 arg = getpid();
16398 write(-1, "", 0);
16399 _exit (arg);
16405 main ()
16407 pid_t parent = getpid ();
16408 pid_t child;
16410 sparc_address_test (0);
16412 child = vfork ();
16414 if (child == 0) {
16415 /* Here is another test for sparc vfork register problems. This
16416 test uses lots of local variables, at least as many local
16417 variables as main has allocated so far including compiler
16418 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16419 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16420 reuse the register of parent for one of the local variables,
16421 since it will think that parent can't possibly be used any more
16422 in this routine. Assigning to the local variable will thus
16423 munge parent in the parent process. */
16424 pid_t
16425 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16426 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16427 /* Convince the compiler that p..p7 are live; otherwise, it might
16428 use the same hardware register for all 8 local variables. */
16429 if (p != p1 || p != p2 || p != p3 || p != p4
16430 || p != p5 || p != p6 || p != p7)
16431 _exit(1);
16433 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16434 from child file descriptors. If the child closes a descriptor
16435 before it execs or exits, this munges the parent's descriptor
16436 as well. Test for this by closing stdout in the child. */
16437 _exit(close(fileno(stdout)) != 0);
16438 } else {
16439 int status;
16440 struct stat st;
16442 while (wait(&status) != child)
16444 return (
16445 /* Was there some problem with vforking? */
16446 child < 0
16448 /* Did the child fail? (This shouldn't happen.) */
16449 || status
16451 /* Did the vfork/compiler bug occur? */
16452 || parent != getpid()
16454 /* Did the file descriptor bug occur? */
16455 || fstat(fileno(stdout), &st) != 0
16459 _ACEOF
16460 if ac_fn_c_try_run "$LINENO"; then :
16461 ac_cv_func_vfork_works=yes
16462 else
16463 ac_cv_func_vfork_works=no
16465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16466 conftest.$ac_objext conftest.beam conftest.$ac_ext
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16471 $as_echo "$ac_cv_func_vfork_works" >&6; }
16474 if test "x$ac_cv_func_fork_works" = xcross; then
16475 ac_cv_func_vfork_works=$ac_cv_func_vfork
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16477 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16480 if test "x$ac_cv_func_vfork_works" = xyes; then
16482 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16484 else
16486 $as_echo "#define vfork fork" >>confdefs.h
16489 if test "x$ac_cv_func_fork_works" = xyes; then
16491 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16496 for ac_func in snprintf
16497 do :
16498 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16499 if test "x$ac_cv_func_snprintf" = x""yes; then :
16500 cat >>confdefs.h <<_ACEOF
16501 #define HAVE_SNPRINTF 1
16502 _ACEOF
16505 done
16508 XGSELOBJ=
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16510 $as_echo_n "checking whether GLib is linked in... " >&6; }
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <glib.h>
16516 main ()
16518 g_print ("Hello world");
16520 return 0;
16522 _ACEOF
16523 if ac_fn_c_try_link "$LINENO"; then :
16524 links_glib=yes
16525 else
16526 links_glib=no
16528 rm -f core conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16531 $as_echo "$links_glib" >&6; }
16532 if test "${links_glib}" = "yes"; then
16534 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16536 if test "$HAVE_NS" = no;then
16537 XGSELOBJ=xgselect.o
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16543 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16544 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16549 #include <langinfo.h>
16551 main ()
16553 char* cs = nl_langinfo(CODESET);
16555 return 0;
16557 _ACEOF
16558 if ac_fn_c_try_link "$LINENO"; then :
16559 emacs_cv_langinfo_codeset=yes
16560 else
16561 emacs_cv_langinfo_codeset=no
16563 rm -f core conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16568 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16569 if test $emacs_cv_langinfo_codeset = yes; then
16571 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16576 $as_echo_n "checking for mbstate_t... " >&6; }
16577 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16578 $as_echo_n "(cached) " >&6
16579 else
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 $ac_includes_default
16583 # include <wchar.h>
16585 main ()
16587 mbstate_t x; return sizeof x;
16589 return 0;
16591 _ACEOF
16592 if ac_fn_c_try_compile "$LINENO"; then :
16593 ac_cv_type_mbstate_t=yes
16594 else
16595 ac_cv_type_mbstate_t=no
16597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16600 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16601 if test $ac_cv_type_mbstate_t = yes; then
16603 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16605 else
16607 $as_echo "#define mbstate_t int" >>confdefs.h
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16612 $as_echo_n "checking for C restricted array declarations... " >&6; }
16613 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16614 $as_echo_n "(cached) " >&6
16615 else
16616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h. */
16618 void fred (int x[__restrict]);
16620 main ()
16624 return 0;
16626 _ACEOF
16627 if ac_fn_c_try_compile "$LINENO"; then :
16628 emacs_cv_c_restrict_arr=yes
16629 else
16630 emacs_cv_c_restrict_arr=no
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16635 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16636 if test "$emacs_cv_c_restrict_arr" = yes; then
16638 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16643 if test "${opsys}" != "mingw32"; then
16645 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16650 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16653 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16654 if test "${opsys}" != "mingw32"; then
16656 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16661 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16667 if test "${opsys}" = "mingw32"; then
16668 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16670 else
16671 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16676 if test "${opsys}" = "mingw32"; then
16677 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16679 else
16680 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16685 $as_echo "#define subprocesses 1" >>confdefs.h
16689 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16694 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16697 if test "${opsys}" = "mingw32"; then
16699 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16703 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16707 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16709 else
16711 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16715 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16719 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16725 case $opsys in
16726 aix4-2)
16727 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16728 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16733 hpux*)
16734 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16737 esac
16740 case $opsys in
16741 irix6-5 | sol2* | unixware )
16743 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16746 esac
16748 emacs_broken_SIGIO=no
16750 case $opsys in
16751 hpux* | irix6-5 | openbsd | sol2* | unixware )
16752 emacs_broken_SIGIO=yes
16755 aix4-2)
16757 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16761 freebsd)
16763 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16766 esac
16768 case $opsys in
16769 gnu-* | sol2-10 )
16771 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16774 esac
16776 case $opsys in
16777 darwin | dragonfly | freebsd | netbsd | openbsd )
16779 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16782 esac
16784 case $opsys in
16785 netbsd | openbsd) sound_device="/dev/audio" ;;
16786 *) sound_device="/dev/dsp" ;;
16787 esac
16790 cat >>confdefs.h <<_ACEOF
16791 #define DEFAULT_SOUND_DEVICE "$sound_device"
16792 _ACEOF
16796 case $opsys in
16797 darwin | gnu-linux | gnu-kfreebsd )
16799 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16802 esac
16805 case $opsys in
16806 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16808 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16811 esac
16820 case $opsys in
16821 aix4-2 )
16822 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16824 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16826 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16830 cygwin )
16831 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16833 $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
16835 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16837 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16841 darwin )
16842 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16844 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16846 $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
16848 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16850 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16854 gnu | openbsd )
16855 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16859 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16860 if test "x$ac_cv_func_grantpt" = xyes; then
16862 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16864 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16866 $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
16868 if test "x$ac_cv_func_posix_openpt" = xyes; then
16869 $as_echo "#define PTY_OPEN do { fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY); if (fd < 0 && errno == EINVAL) fd = posix_openpt (O_RDWR | O_NOCTTY); } while (0)" >>confdefs.h
16871 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16873 elif test "x$ac_cv_func_getpt" = xyes; then
16874 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16876 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16878 else
16879 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16882 else
16883 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16888 hpux*)
16889 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16891 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16893 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16897 irix6-5 )
16898 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16900 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16902 $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
16904 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16906 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16910 sol2* )
16911 $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
16915 unixware )
16916 $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
16919 esac
16922 case $opsys in
16923 sol2* | unixware )
16924 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16926 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16929 $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
16932 esac
16937 case $opsys in
16938 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
16939 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16943 gnu-linux | gnu-kfreebsd )
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16946 $as_echo_n "checking for signals via characters... " >&6; }
16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948 /* end confdefs.h. */
16950 #include <linux/version.h>
16951 #if LINUX_VERSION_CODE < 0x20400
16952 # error "Linux version too old"
16953 #endif
16956 main ()
16960 return 0;
16962 _ACEOF
16963 if ac_fn_c_try_cpp "$LINENO"; then :
16964 emacs_signals_via_chars=yes
16965 else
16966 emacs_signals_via_chars=no
16968 rm -f conftest.err conftest.$ac_ext
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16971 $as_echo "$emacs_signals_via_chars" >&6; }
16972 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16975 esac
16980 case $opsys in
16981 aix*)
16982 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16985 hpux*)
16986 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16989 irix6-5)
16990 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16993 esac
16998 case $opsys in
16999 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
17002 gnu | dragonfly | freebsd | netbsd | openbsd )
17004 $as_echo "#define TABDLY OXTABS" >>confdefs.h
17006 $as_echo "#define TAB3 OXTABS" >>confdefs.h
17010 gnu-linux | gnu-kfreebsd )
17011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17014 #ifndef __ia64__
17015 # error "not ia64"
17016 #endif
17019 main ()
17023 return 0;
17025 _ACEOF
17026 if ac_fn_c_try_cpp "$LINENO"; then :
17028 $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
17031 rm -f conftest.err conftest.$ac_ext
17034 hpux*)
17036 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
17039 esac
17045 case $opsys in
17046 gnu-linux | gnu-kfreebsd )
17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048 /* end confdefs.h. */
17050 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
17051 || defined __alpha__ || defined __mips__ || defined __s390__ \
17052 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
17053 || defined __ia64__ || defined __sh__
17054 /* ok */
17055 #else
17056 # error "setjmp not known to work on this arch"
17057 #endif
17060 main ()
17064 return 0;
17066 _ACEOF
17067 if ac_fn_c_try_cpp "$LINENO"; then :
17068 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17071 rm -f conftest.err conftest.$ac_ext
17073 esac
17076 if test x$GCC = xyes; then
17077 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17079 else
17080 case $opsys in
17081 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
17082 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
17085 esac
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
17088 $as_echo_n "checking for _setjmp... " >&6; }
17089 if test "${emacs_cv_func__setjmp+set}" = set; then :
17090 $as_echo_n "(cached) " >&6
17091 else
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094 #include <setjmp.h>
17095 #ifdef __MINGW32__
17096 # define _longjmp longjmp
17097 #endif
17100 main ()
17102 jmp_buf j;
17103 if (! _setjmp (j))
17104 _longjmp (j, 1);
17106 return 0;
17108 _ACEOF
17109 if ac_fn_c_try_link "$LINENO"; then :
17110 emacs_cv_func__setjmp=yes
17111 else
17112 emacs_cv_func__setjmp=no
17114 rm -f core conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext conftest.$ac_ext
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
17118 $as_echo "$emacs_cv_func__setjmp" >&6; }
17119 if test $emacs_cv_func__setjmp = yes; then
17121 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
17123 else
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
17125 $as_echo_n "checking for sigsetjmp... " >&6; }
17126 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
17128 else
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131 #include <setjmp.h>
17134 main ()
17136 sigjmp_buf j;
17137 if (! sigsetjmp (j, 1))
17138 siglongjmp (j, 1);
17140 return 0;
17142 _ACEOF
17143 if ac_fn_c_try_link "$LINENO"; then :
17144 emacs_cv_func_sigsetjmp=yes
17145 else
17146 emacs_cv_func_sigsetjmp=no
17148 rm -f core conftest.err conftest.$ac_objext \
17149 conftest$ac_exeext conftest.$ac_ext
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
17152 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
17153 if test $emacs_cv_func_sigsetjmp = yes; then
17155 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
17160 case $opsys in
17161 sol2* | unixware )
17163 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
17166 esac
17169 case $opsys in
17170 hpux* | sol2* )
17172 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
17175 esac
17183 case $opsys in
17184 aix4-2)
17185 $as_echo "#define USG /**/" >>confdefs.h
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17190 #ifndef _AIX
17191 # error "_AIX not defined"
17192 #endif
17195 main ()
17199 return 0;
17201 _ACEOF
17202 if ac_fn_c_try_cpp "$LINENO"; then :
17204 else
17206 $as_echo "#define _AIX /**/" >>confdefs.h
17209 rm -f conftest.err conftest.$ac_ext
17212 cygwin)
17214 $as_echo "#define CYGWIN 1" >>confdefs.h
17218 darwin)
17220 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
17224 gnu-linux | gnu-kfreebsd )
17225 $as_echo "#define USG /**/" >>confdefs.h
17228 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17232 hpux*)
17233 $as_echo "#define USG /**/" >>confdefs.h
17236 $as_echo "#define HPUX /**/" >>confdefs.h
17240 irix6-5)
17241 $as_echo "#define USG /**/" >>confdefs.h
17243 $as_echo "#define USG5_4 /**/" >>confdefs.h
17246 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
17250 mingw32)
17251 $as_echo "#define DOS_NT /**/" >>confdefs.h
17254 $as_echo "#define WINDOWSNT 1" >>confdefs.h
17256 if test "x$ac_enable_checking" != "x" ; then
17258 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17263 sol2*)
17264 $as_echo "#define USG /**/" >>confdefs.h
17266 $as_echo "#define USG5_4 /**/" >>confdefs.h
17269 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17273 unixware)
17274 $as_echo "#define USG /**/" >>confdefs.h
17276 $as_echo "#define USG5_4 /**/" >>confdefs.h
17279 esac
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17282 $as_echo_n "checking for usable FIONREAD... " >&6; }
17283 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17284 $as_echo_n "(cached) " >&6
17285 else
17286 case $opsys in
17287 aix4-2)
17288 emacs_cv_usable_FIONREAD=no
17291 mingw32)
17292 emacs_cv_usable_FIONREAD=yes
17296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297 /* end confdefs.h. */
17298 #include <sys/types.h>
17299 #include <sys/ioctl.h>
17300 #ifdef USG5_4
17301 # include <sys/filio.h>
17302 #endif
17305 main ()
17307 int foo = ioctl (0, FIONREAD, &foo);
17309 return 0;
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"; then :
17313 emacs_cv_usable_FIONREAD=yes
17314 else
17315 emacs_cv_usable_FIONREAD=no
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17319 esac
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17322 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17323 if test $emacs_cv_usable_FIONREAD = yes; then
17325 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17328 if test $emacs_broken_SIGIO = no; then
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17330 $as_echo_n "checking for usable SIGIO... " >&6; }
17331 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17332 $as_echo_n "(cached) " >&6
17333 else
17334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335 /* end confdefs.h. */
17336 #include <fcntl.h>
17337 #include <signal.h>
17340 main ()
17342 int foo = SIGIO | F_SETFL | FASYNC;
17344 return 0;
17346 _ACEOF
17347 if ac_fn_c_try_compile "$LINENO"; then :
17348 emacs_cv_usable_SIGIO=yes
17349 else
17350 emacs_cv_usable_SIGIO=no
17352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17355 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17356 if test $emacs_cv_usable_SIGIO = yes; then
17358 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17365 case $opsys in
17366 cygwin)
17368 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17372 hpux11)
17374 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17378 irix6-5)
17380 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17384 sol2-10)
17386 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17389 esac
17391 # Set up the CFLAGS for real compilation, so we can substitute it.
17392 CFLAGS="$REAL_CFLAGS"
17393 CPPFLAGS="$REAL_CPPFLAGS"
17395 ## Hack to detect a buggy GCC version.
17396 if test "x$GCC" = xyes \
17397 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17398 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17399 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17400 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17403 version=$PACKAGE_VERSION
17405 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17407 cat >>confdefs.h <<_ACEOF
17408 #define COPYRIGHT "$copyright"
17409 _ACEOF
17413 ### Specify what sort of things we'll be editing into Makefile and config.h.
17414 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17417 ## Unused?
17440 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17441 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17442 ## end of LIBX_BASE, but nothing ever set it.
17447 ## Used in lwlib/Makefile.in.
17456 if test -n "${term_header}"; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define TERM_HEADER "${term_header}"
17460 _ACEOF
17465 cat >>confdefs.h <<_ACEOF
17466 #define EMACS_CONFIGURATION "${canonical}"
17467 _ACEOF
17470 cat >>confdefs.h <<_ACEOF
17471 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17472 _ACEOF
17476 case $opsys in
17477 mingw32)
17478 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17481 esac
17483 XMENU_OBJ=
17484 XOBJ=
17485 FONT_OBJ=
17486 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17488 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17490 XMENU_OBJ=xmenu.o
17491 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17492 FONT_OBJ=xfont.o
17493 if test "$HAVE_XFT" = "yes"; then
17494 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17495 elif test "$HAVE_FREETYPE" = "yes"; then
17496 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17504 WIDGET_OBJ=
17505 MOTIF_LIBW=
17506 if test "${USE_X_TOOLKIT}" != "none" ; then
17507 WIDGET_OBJ=widget.o
17509 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17511 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17513 $as_echo "#define USE_LUCID 1" >>confdefs.h
17515 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17517 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17519 MOTIF_LIBW=-lXm
17520 case "$opsys" in
17521 gnu-linux)
17522 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17523 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17526 unixware)
17527 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17528 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17529 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17532 aix4-2)
17533 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17534 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17536 esac
17537 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17542 TOOLKIT_LIBW=
17543 case "$USE_X_TOOLKIT" in
17544 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17545 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17546 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17547 esac
17550 if test "${opsys}" != "mingw32"; then
17551 if test "$USE_X_TOOLKIT" = "none"; then
17552 LIBXT_OTHER="\$(LIBXSM)"
17553 OLDXMENU_TARGET="really-oldXMenu"
17554 else
17555 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17556 OLDXMENU_TARGET="really-lwlib"
17561 ## The X Menu stuff is present in the X10 distribution, but missing
17562 ## from X11. If we have X10, just use the installed library;
17563 ## otherwise, use our own copy.
17564 if test "${HAVE_X11}" = "yes" ; then
17566 $as_echo "#define HAVE_X11 1" >>confdefs.h
17569 if test "$USE_X_TOOLKIT" = "none"; then
17570 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17571 else
17572 OLDXMENU="\${lwlibdir}/liblw.a"
17574 LIBXMENU="\$(OLDXMENU)"
17575 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17576 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17577 else
17578 ## For a syntactically valid Makefile; not actually used for anything.
17579 ## See comments in src/Makefile.in.
17580 OLDXMENU=nothing
17581 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17582 if test "${HAVE_X_WINDOWS}" = "yes"; then
17583 LIBXMENU="-lXMenu"
17584 else
17585 LIBXMENU=
17587 LIBX_OTHER=
17588 OLDXMENU_DEPS=
17591 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17592 OLDXMENU_TARGET=
17593 OLDXMENU=nothing
17594 LIBXMENU=
17595 OLDXMENU_DEPS=
17604 if test "${HAVE_MENUS}" = "yes" ; then
17606 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17610 if test "${GNU_MALLOC}" = "yes" ; then
17612 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17616 RALLOC_OBJ=
17617 if test "${REL_ALLOC}" = "yes" ; then
17619 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17622 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17626 if test "$opsys" = "cygwin"; then
17627 CYGWIN_OBJ="sheap.o cygw32.o"
17628 ## Cygwin differs because of its unexec().
17629 PRE_ALLOC_OBJ=
17630 POST_ALLOC_OBJ=lastfile.o
17631 elif test "$opsys" = "mingw32"; then
17632 CYGWIN_OBJ=
17633 PRE_ALLOC_OBJ=
17634 POST_ALLOC_OBJ=lastfile.o
17635 else
17636 CYGWIN_OBJ=
17637 PRE_ALLOC_OBJ=lastfile.o
17638 POST_ALLOC_OBJ=
17646 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17647 # it temporarily reverts them to their pre-pkg-config values,
17648 # because gnulib needs to work with both src (which uses the
17649 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17650 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17651 # and it therefore needs to run in an environment where LIBS does not
17652 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17653 # for some package unrelated to lib-src.
17654 SAVE_CFLAGS=$CFLAGS
17655 SAVE_LIBS=$LIBS
17656 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17657 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17669 LIBC_FATAL_STDERR_=1
17670 export LIBC_FATAL_STDERR_
17672 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17673 # for constant arguments. Useless!
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17675 $as_echo_n "checking for working alloca.h... " >&6; }
17676 if test "${ac_cv_working_alloca_h+set}" = set; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17681 #include <alloca.h>
17683 main ()
17685 char *p = (char *) alloca (2 * sizeof (int));
17686 if (p) return 0;
17688 return 0;
17690 _ACEOF
17691 if ac_fn_c_try_link "$LINENO"; then :
17692 ac_cv_working_alloca_h=yes
17693 else
17694 ac_cv_working_alloca_h=no
17696 rm -f core conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17700 $as_echo "$ac_cv_working_alloca_h" >&6; }
17701 if test $ac_cv_working_alloca_h = yes; then
17703 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17708 $as_echo_n "checking for alloca... " >&6; }
17709 if test "${ac_cv_func_alloca_works+set}" = set; then :
17710 $as_echo_n "(cached) " >&6
17711 else
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17714 #ifdef __GNUC__
17715 # define alloca __builtin_alloca
17716 #else
17717 # ifdef _MSC_VER
17718 # include <malloc.h>
17719 # define alloca _alloca
17720 # else
17721 # ifdef HAVE_ALLOCA_H
17722 # include <alloca.h>
17723 # else
17724 # ifdef _AIX
17725 #pragma alloca
17726 # else
17727 # ifndef alloca /* predefined by HP cc +Olibcalls */
17728 char *alloca ();
17729 # endif
17730 # endif
17731 # endif
17732 # endif
17733 #endif
17736 main ()
17738 char *p = (char *) alloca (1);
17739 if (p) return 0;
17741 return 0;
17743 _ACEOF
17744 if ac_fn_c_try_link "$LINENO"; then :
17745 ac_cv_func_alloca_works=yes
17746 else
17747 ac_cv_func_alloca_works=no
17749 rm -f core conftest.err conftest.$ac_objext \
17750 conftest$ac_exeext conftest.$ac_ext
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17753 $as_echo "$ac_cv_func_alloca_works" >&6; }
17755 if test $ac_cv_func_alloca_works = yes; then
17757 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17759 else
17760 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17761 # that cause trouble. Some versions do not even contain alloca or
17762 # contain a buggy version. If you still want to use their alloca,
17763 # use ar to extract alloca.o from them instead of compiling alloca.c.
17769 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17771 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17775 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17776 if test "${ac_cv_os_cray+set}" = set; then :
17777 $as_echo_n "(cached) " >&6
17778 else
17779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17780 /* end confdefs.h. */
17781 #if defined CRAY && ! defined CRAY2
17782 webecray
17783 #else
17784 wenotbecray
17785 #endif
17787 _ACEOF
17788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17789 $EGREP "webecray" >/dev/null 2>&1; then :
17790 ac_cv_os_cray=yes
17791 else
17792 ac_cv_os_cray=no
17794 rm -f conftest*
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17798 $as_echo "$ac_cv_os_cray" >&6; }
17799 if test $ac_cv_os_cray = yes; then
17800 for ac_func in _getb67 GETB67 getb67; do
17801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17802 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17803 eval as_val=\$$as_ac_var
17804 if test "x$as_val" = x""yes; then :
17806 cat >>confdefs.h <<_ACEOF
17807 #define CRAY_STACKSEG_END $ac_func
17808 _ACEOF
17810 break
17813 done
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17817 $as_echo_n "checking stack direction for C alloca... " >&6; }
17818 if test "${ac_cv_c_stack_direction+set}" = set; then :
17819 $as_echo_n "(cached) " >&6
17820 else
17821 if test "$cross_compiling" = yes; then :
17822 ac_cv_c_stack_direction=0
17823 else
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17826 $ac_includes_default
17828 find_stack_direction (int *addr, int depth)
17830 int dir, dummy = 0;
17831 if (! addr)
17832 addr = &dummy;
17833 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17834 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17835 return dir + dummy;
17839 main (int argc, char **argv)
17841 return find_stack_direction (0, argc + !argv + 20) < 0;
17843 _ACEOF
17844 if ac_fn_c_try_run "$LINENO"; then :
17845 ac_cv_c_stack_direction=1
17846 else
17847 ac_cv_c_stack_direction=-1
17849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17850 conftest.$ac_objext conftest.beam conftest.$ac_ext
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17855 $as_echo "$ac_cv_c_stack_direction" >&6; }
17856 cat >>confdefs.h <<_ACEOF
17857 #define STACK_DIRECTION $ac_cv_c_stack_direction
17858 _ACEOF
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17867 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17868 if test "${ac_cv_c_bigendian+set}" = set; then :
17869 $as_echo_n "(cached) " >&6
17870 else
17871 ac_cv_c_bigendian=unknown
17872 # See if we're dealing with a universal compiler.
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17875 #ifndef __APPLE_CC__
17876 not a universal capable compiler
17877 #endif
17878 typedef int dummy;
17880 _ACEOF
17881 if ac_fn_c_try_compile "$LINENO"; then :
17883 # Check for potential -arch flags. It is not universal unless
17884 # there are at least two -arch flags with different values.
17885 ac_arch=
17886 ac_prev=
17887 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17888 if test -n "$ac_prev"; then
17889 case $ac_word in
17890 i?86 | x86_64 | ppc | ppc64)
17891 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17892 ac_arch=$ac_word
17893 else
17894 ac_cv_c_bigendian=universal
17895 break
17898 esac
17899 ac_prev=
17900 elif test "x$ac_word" = "x-arch"; then
17901 ac_prev=arch
17903 done
17905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17906 if test $ac_cv_c_bigendian = unknown; then
17907 # See if sys/param.h defines the BYTE_ORDER macro.
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17910 #include <sys/types.h>
17911 #include <sys/param.h>
17914 main ()
17916 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17917 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17918 && LITTLE_ENDIAN)
17919 bogus endian macros
17920 #endif
17923 return 0;
17925 _ACEOF
17926 if ac_fn_c_try_compile "$LINENO"; then :
17927 # It does; now see whether it defined to BIG_ENDIAN or not.
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17930 #include <sys/types.h>
17931 #include <sys/param.h>
17934 main ()
17936 #if BYTE_ORDER != BIG_ENDIAN
17937 not big endian
17938 #endif
17941 return 0;
17943 _ACEOF
17944 if ac_fn_c_try_compile "$LINENO"; then :
17945 ac_cv_c_bigendian=yes
17946 else
17947 ac_cv_c_bigendian=no
17949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 if test $ac_cv_c_bigendian = unknown; then
17954 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17957 #include <limits.h>
17960 main ()
17962 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17963 bogus endian macros
17964 #endif
17967 return 0;
17969 _ACEOF
17970 if ac_fn_c_try_compile "$LINENO"; then :
17971 # It does; now see whether it defined to _BIG_ENDIAN or not.
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973 /* end confdefs.h. */
17974 #include <limits.h>
17977 main ()
17979 #ifndef _BIG_ENDIAN
17980 not big endian
17981 #endif
17984 return 0;
17986 _ACEOF
17987 if ac_fn_c_try_compile "$LINENO"; then :
17988 ac_cv_c_bigendian=yes
17989 else
17990 ac_cv_c_bigendian=no
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996 if test $ac_cv_c_bigendian = unknown; then
17997 # Compile a test program.
17998 if test "$cross_compiling" = yes; then :
17999 # Try to guess by grepping values from an object file.
18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18001 /* end confdefs.h. */
18002 short int ascii_mm[] =
18003 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18004 short int ascii_ii[] =
18005 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18006 int use_ascii (int i) {
18007 return ascii_mm[i] + ascii_ii[i];
18009 short int ebcdic_ii[] =
18010 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18011 short int ebcdic_mm[] =
18012 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18013 int use_ebcdic (int i) {
18014 return ebcdic_mm[i] + ebcdic_ii[i];
18016 extern int foo;
18019 main ()
18021 return use_ascii (foo) == use_ebcdic (foo);
18023 return 0;
18025 _ACEOF
18026 if ac_fn_c_try_compile "$LINENO"; then :
18027 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18028 ac_cv_c_bigendian=yes
18030 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18031 if test "$ac_cv_c_bigendian" = unknown; then
18032 ac_cv_c_bigendian=no
18033 else
18034 # finding both strings is unlikely to happen, but who knows?
18035 ac_cv_c_bigendian=unknown
18039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040 else
18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043 $ac_includes_default
18045 main ()
18048 /* Are we little or big endian? From Harbison&Steele. */
18049 union
18051 long int l;
18052 char c[sizeof (long int)];
18053 } u;
18054 u.l = 1;
18055 return u.c[sizeof (long int) - 1] == 1;
18058 return 0;
18060 _ACEOF
18061 if ac_fn_c_try_run "$LINENO"; then :
18062 ac_cv_c_bigendian=no
18063 else
18064 ac_cv_c_bigendian=yes
18066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18067 conftest.$ac_objext conftest.beam conftest.$ac_ext
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18073 $as_echo "$ac_cv_c_bigendian" >&6; }
18074 case $ac_cv_c_bigendian in #(
18075 yes)
18076 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18077 ;; #(
18079 ;; #(
18080 universal)
18082 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18084 ;; #(
18086 as_fn_error "unknown endianness
18087 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18088 esac
18092 GNULIB_CHDIR=0;
18093 GNULIB_CHOWN=0;
18094 GNULIB_CLOSE=0;
18095 GNULIB_DUP=0;
18096 GNULIB_DUP2=0;
18097 GNULIB_DUP3=0;
18098 GNULIB_ENVIRON=0;
18099 GNULIB_EUIDACCESS=0;
18100 GNULIB_FACCESSAT=0;
18101 GNULIB_FCHDIR=0;
18102 GNULIB_FCHOWNAT=0;
18103 GNULIB_FDATASYNC=0;
18104 GNULIB_FSYNC=0;
18105 GNULIB_FTRUNCATE=0;
18106 GNULIB_GETCWD=0;
18107 GNULIB_GETDOMAINNAME=0;
18108 GNULIB_GETDTABLESIZE=0;
18109 GNULIB_GETGROUPS=0;
18110 GNULIB_GETHOSTNAME=0;
18111 GNULIB_GETLOGIN=0;
18112 GNULIB_GETLOGIN_R=0;
18113 GNULIB_GETPAGESIZE=0;
18114 GNULIB_GETUSERSHELL=0;
18115 GNULIB_GROUP_MEMBER=0;
18116 GNULIB_ISATTY=0;
18117 GNULIB_LCHOWN=0;
18118 GNULIB_LINK=0;
18119 GNULIB_LINKAT=0;
18120 GNULIB_LSEEK=0;
18121 GNULIB_PIPE=0;
18122 GNULIB_PIPE2=0;
18123 GNULIB_PREAD=0;
18124 GNULIB_PWRITE=0;
18125 GNULIB_READ=0;
18126 GNULIB_READLINK=0;
18127 GNULIB_READLINKAT=0;
18128 GNULIB_RMDIR=0;
18129 GNULIB_SETHOSTNAME=0;
18130 GNULIB_SLEEP=0;
18131 GNULIB_SYMLINK=0;
18132 GNULIB_SYMLINKAT=0;
18133 GNULIB_TTYNAME_R=0;
18134 GNULIB_UNISTD_H_NONBLOCKING=0;
18135 GNULIB_UNISTD_H_SIGPIPE=0;
18136 GNULIB_UNLINK=0;
18137 GNULIB_UNLINKAT=0;
18138 GNULIB_USLEEP=0;
18139 GNULIB_WRITE=0;
18140 HAVE_CHOWN=1;
18141 HAVE_DUP2=1;
18142 HAVE_DUP3=1;
18143 HAVE_EUIDACCESS=1;
18144 HAVE_FACCESSAT=1;
18145 HAVE_FCHDIR=1;
18146 HAVE_FCHOWNAT=1;
18147 HAVE_FDATASYNC=1;
18148 HAVE_FSYNC=1;
18149 HAVE_FTRUNCATE=1;
18150 HAVE_GETDTABLESIZE=1;
18151 HAVE_GETGROUPS=1;
18152 HAVE_GETHOSTNAME=1;
18153 HAVE_GETLOGIN=1;
18154 HAVE_GETPAGESIZE=1;
18155 HAVE_GROUP_MEMBER=1;
18156 HAVE_LCHOWN=1;
18157 HAVE_LINK=1;
18158 HAVE_LINKAT=1;
18159 HAVE_PIPE=1;
18160 HAVE_PIPE2=1;
18161 HAVE_PREAD=1;
18162 HAVE_PWRITE=1;
18163 HAVE_READLINK=1;
18164 HAVE_READLINKAT=1;
18165 HAVE_SETHOSTNAME=1;
18166 HAVE_SLEEP=1;
18167 HAVE_SYMLINK=1;
18168 HAVE_SYMLINKAT=1;
18169 HAVE_UNLINKAT=1;
18170 HAVE_USLEEP=1;
18171 HAVE_DECL_ENVIRON=1;
18172 HAVE_DECL_FCHDIR=1;
18173 HAVE_DECL_FDATASYNC=1;
18174 HAVE_DECL_GETDOMAINNAME=1;
18175 HAVE_DECL_GETLOGIN_R=1;
18176 HAVE_DECL_GETPAGESIZE=1;
18177 HAVE_DECL_GETUSERSHELL=1;
18178 HAVE_DECL_SETHOSTNAME=1;
18179 HAVE_DECL_TTYNAME_R=1;
18180 HAVE_OS_H=0;
18181 HAVE_SYS_PARAM_H=0;
18182 REPLACE_CHOWN=0;
18183 REPLACE_CLOSE=0;
18184 REPLACE_DUP=0;
18185 REPLACE_DUP2=0;
18186 REPLACE_FCHOWNAT=0;
18187 REPLACE_FTRUNCATE=0;
18188 REPLACE_GETCWD=0;
18189 REPLACE_GETDOMAINNAME=0;
18190 REPLACE_GETDTABLESIZE=0;
18191 REPLACE_GETLOGIN_R=0;
18192 REPLACE_GETGROUPS=0;
18193 REPLACE_GETPAGESIZE=0;
18194 REPLACE_ISATTY=0;
18195 REPLACE_LCHOWN=0;
18196 REPLACE_LINK=0;
18197 REPLACE_LINKAT=0;
18198 REPLACE_LSEEK=0;
18199 REPLACE_PREAD=0;
18200 REPLACE_PWRITE=0;
18201 REPLACE_READ=0;
18202 REPLACE_READLINK=0;
18203 REPLACE_RMDIR=0;
18204 REPLACE_SLEEP=0;
18205 REPLACE_SYMLINK=0;
18206 REPLACE_TTYNAME_R=0;
18207 REPLACE_UNLINK=0;
18208 REPLACE_UNLINKAT=0;
18209 REPLACE_USLEEP=0;
18210 REPLACE_WRITE=0;
18211 UNISTD_H_HAVE_WINSOCK2_H=0;
18212 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
18216 GNULIB_OPENDIR=0;
18217 GNULIB_READDIR=0;
18218 GNULIB_REWINDDIR=0;
18219 GNULIB_CLOSEDIR=0;
18220 GNULIB_DIRFD=0;
18221 GNULIB_FDOPENDIR=0;
18222 GNULIB_SCANDIR=0;
18223 GNULIB_ALPHASORT=0;
18224 HAVE_OPENDIR=1;
18225 HAVE_READDIR=1;
18226 HAVE_REWINDDIR=1;
18227 HAVE_CLOSEDIR=1;
18228 HAVE_DECL_DIRFD=1;
18229 HAVE_DECL_FDOPENDIR=1;
18230 HAVE_FDOPENDIR=1;
18231 HAVE_SCANDIR=1;
18232 HAVE_ALPHASORT=1;
18233 REPLACE_OPENDIR=0;
18234 REPLACE_CLOSEDIR=0;
18235 REPLACE_DIRFD=0;
18236 REPLACE_FDOPENDIR=0;
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18241 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
18242 if test "${gl_cv_have_include_next+set}" = set; then :
18243 $as_echo_n "(cached) " >&6
18244 else
18245 rm -rf conftestd1a conftestd1b conftestd2
18246 mkdir conftestd1a conftestd1b conftestd2
18247 cat <<EOF > conftestd1a/conftest.h
18248 #define DEFINED_IN_CONFTESTD1
18249 #include_next <conftest.h>
18250 #ifdef DEFINED_IN_CONFTESTD2
18251 int foo;
18252 #else
18253 #error "include_next doesn't work"
18254 #endif
18256 cat <<EOF > conftestd1b/conftest.h
18257 #define DEFINED_IN_CONFTESTD1
18258 #include <stdio.h>
18259 #include_next <conftest.h>
18260 #ifdef DEFINED_IN_CONFTESTD2
18261 int foo;
18262 #else
18263 #error "include_next doesn't work"
18264 #endif
18266 cat <<EOF > conftestd2/conftest.h
18267 #ifndef DEFINED_IN_CONFTESTD1
18268 #error "include_next test doesn't work"
18269 #endif
18270 #define DEFINED_IN_CONFTESTD2
18272 gl_save_CPPFLAGS="$CPPFLAGS"
18273 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h. */
18276 #include <conftest.h>
18277 _ACEOF
18278 if ac_fn_c_try_compile "$LINENO"; then :
18279 gl_cv_have_include_next=yes
18280 else
18281 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18284 #include <conftest.h>
18285 _ACEOF
18286 if ac_fn_c_try_compile "$LINENO"; then :
18287 gl_cv_have_include_next=buggy
18288 else
18289 gl_cv_have_include_next=no
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18295 CPPFLAGS="$gl_save_CPPFLAGS"
18296 rm -rf conftestd1a conftestd1b conftestd2
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18300 $as_echo "$gl_cv_have_include_next" >&6; }
18301 PRAGMA_SYSTEM_HEADER=
18302 if test $gl_cv_have_include_next = yes; then
18303 INCLUDE_NEXT=include_next
18304 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18305 if test -n "$GCC"; then
18306 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18308 else
18309 if test $gl_cv_have_include_next = buggy; then
18310 INCLUDE_NEXT=include
18311 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18312 else
18313 INCLUDE_NEXT=include
18314 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18321 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18322 if test "${gl_cv_pragma_columns+set}" = set; then :
18323 $as_echo_n "(cached) " >&6
18324 else
18325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18326 /* end confdefs.h. */
18328 #ifdef __TANDEM
18329 choke me
18330 #endif
18332 _ACEOF
18333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18334 $EGREP "choke me" >/dev/null 2>&1; then :
18335 gl_cv_pragma_columns=yes
18336 else
18337 gl_cv_pragma_columns=no
18339 rm -f conftest*
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18344 $as_echo "$gl_cv_pragma_columns" >&6; }
18345 if test $gl_cv_pragma_columns = yes; then
18346 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18347 else
18348 PRAGMA_COLUMNS=
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18356 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18357 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18358 $as_echo_n "(cached) " >&6
18359 else
18360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18361 /* end confdefs.h. */
18362 /* On HP-UX before 11.23, strtold returns a struct instead of
18363 long double. Reject implementations like that, by requiring
18364 compatibility with the C99 prototype. */
18365 #include <stdlib.h>
18366 static long double (*p) (char const *, char **) = strtold;
18367 static long double
18368 test (char const *nptr, char **endptr)
18370 long double r;
18371 r = strtold (nptr, endptr);
18372 return r;
18375 main ()
18377 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18379 return 0;
18381 _ACEOF
18382 if ac_fn_c_try_link "$LINENO"; then :
18383 gl_cv_func_c99_strtold=yes
18384 else
18385 gl_cv_func_c99_strtold=no
18387 rm -f core conftest.err conftest.$ac_objext \
18388 conftest$ac_exeext conftest.$ac_ext
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18391 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18392 if test $gl_cv_func_c99_strtold = yes; then
18394 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18406 $as_echo_n "checking if environ is properly declared... " >&6; }
18407 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18408 $as_echo_n "(cached) " >&6
18409 else
18411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412 /* end confdefs.h. */
18413 #if HAVE_UNISTD_H
18414 #include <unistd.h>
18415 #endif
18416 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18417 #include <stdlib.h>
18419 extern struct { int foo; } environ;
18421 main ()
18423 environ.foo = 1;
18425 return 0;
18427 _ACEOF
18428 if ac_fn_c_try_compile "$LINENO"; then :
18429 gt_cv_var_environ_declaration=no
18430 else
18431 gt_cv_var_environ_declaration=yes
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18437 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18438 if test $gt_cv_var_environ_declaration = yes; then
18440 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18445 if test $gt_cv_var_environ_declaration != yes; then
18446 HAVE_DECL_ENVIRON=0
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18452 $as_echo_n "checking for complete errno.h... " >&6; }
18453 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18454 $as_echo_n "(cached) " >&6
18455 else
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18460 #include <errno.h>
18461 #if !defined ETXTBSY
18462 booboo
18463 #endif
18464 #if !defined ENOMSG
18465 booboo
18466 #endif
18467 #if !defined EIDRM
18468 booboo
18469 #endif
18470 #if !defined ENOLINK
18471 booboo
18472 #endif
18473 #if !defined EPROTO
18474 booboo
18475 #endif
18476 #if !defined EMULTIHOP
18477 booboo
18478 #endif
18479 #if !defined EBADMSG
18480 booboo
18481 #endif
18482 #if !defined EOVERFLOW
18483 booboo
18484 #endif
18485 #if !defined ENOTSUP
18486 booboo
18487 #endif
18488 #if !defined ENETRESET
18489 booboo
18490 #endif
18491 #if !defined ECONNABORTED
18492 booboo
18493 #endif
18494 #if !defined ESTALE
18495 booboo
18496 #endif
18497 #if !defined EDQUOT
18498 booboo
18499 #endif
18500 #if !defined ECANCELED
18501 booboo
18502 #endif
18503 #if !defined EOWNERDEAD
18504 booboo
18505 #endif
18506 #if !defined ENOTRECOVERABLE
18507 booboo
18508 #endif
18509 #if !defined EILSEQ
18510 booboo
18511 #endif
18513 _ACEOF
18514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18515 $EGREP "booboo" >/dev/null 2>&1; then :
18516 gl_cv_header_errno_h_complete=no
18517 else
18518 gl_cv_header_errno_h_complete=yes
18520 rm -f conftest*
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18525 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18526 if test $gl_cv_header_errno_h_complete = yes; then
18527 ERRNO_H=''
18528 else
18537 if test $gl_cv_have_include_next = yes; then
18538 gl_cv_next_errno_h='<'errno.h'>'
18539 else
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18541 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18542 if test "${gl_cv_next_errno_h+set}" = set; then :
18543 $as_echo_n "(cached) " >&6
18544 else
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18548 #include <errno.h>
18550 _ACEOF
18551 case "$host_os" in
18552 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18553 *) gl_absname_cpp="$ac_cpp" ;;
18554 esac
18556 case "$host_os" in
18557 mingw*)
18558 gl_dirsep_regex='[/\\]'
18561 gl_dirsep_regex='\/'
18563 esac
18564 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18566 gl_header_literal_regex=`echo 'errno.h' \
18567 | sed -e "$gl_make_literal_regex_sed"`
18568 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18569 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18570 s|^/[^/]|//&|
18574 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18575 sed -n "$gl_absolute_header_sed"`'"'
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18580 $as_echo "$gl_cv_next_errno_h" >&6; }
18582 NEXT_ERRNO_H=$gl_cv_next_errno_h
18584 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18585 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18586 gl_next_as_first_directive='<'errno.h'>'
18587 else
18588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18589 gl_next_as_first_directive=$gl_cv_next_errno_h
18591 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18596 ERRNO_H='errno.h'
18599 if test -n "$ERRNO_H"; then
18600 GL_GENERATE_ERRNO_H_TRUE=
18601 GL_GENERATE_ERRNO_H_FALSE='#'
18602 else
18603 GL_GENERATE_ERRNO_H_TRUE='#'
18604 GL_GENERATE_ERRNO_H_FALSE=
18608 if test -n "$ERRNO_H"; then
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18610 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18611 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18612 $as_echo_n "(cached) " >&6
18613 else
18615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h. */
18618 #include <errno.h>
18619 #ifdef EMULTIHOP
18621 #endif
18623 _ACEOF
18624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18625 $EGREP "yes" >/dev/null 2>&1; then :
18626 gl_cv_header_errno_h_EMULTIHOP=yes
18627 else
18628 gl_cv_header_errno_h_EMULTIHOP=no
18630 rm -f conftest*
18632 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634 /* end confdefs.h. */
18636 #define _XOPEN_SOURCE_EXTENDED 1
18637 #include <errno.h>
18638 #ifdef EMULTIHOP
18640 #endif
18642 _ACEOF
18643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18644 $EGREP "yes" >/dev/null 2>&1; then :
18645 gl_cv_header_errno_h_EMULTIHOP=hidden
18647 rm -f conftest*
18649 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18650 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18651 #define _XOPEN_SOURCE_EXTENDED 1
18652 #include <errno.h>
18653 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18654 #include <stdio.h>
18655 #include <stdlib.h>
18656 "; then :
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18665 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18666 case $gl_cv_header_errno_h_EMULTIHOP in
18667 yes | no)
18668 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18671 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18673 esac
18679 if test -n "$ERRNO_H"; then
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18681 $as_echo_n "checking for ENOLINK value... " >&6; }
18682 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18683 $as_echo_n "(cached) " >&6
18684 else
18686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18687 /* end confdefs.h. */
18689 #include <errno.h>
18690 #ifdef ENOLINK
18692 #endif
18694 _ACEOF
18695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18696 $EGREP "yes" >/dev/null 2>&1; then :
18697 gl_cv_header_errno_h_ENOLINK=yes
18698 else
18699 gl_cv_header_errno_h_ENOLINK=no
18701 rm -f conftest*
18703 if test $gl_cv_header_errno_h_ENOLINK = no; then
18704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18707 #define _XOPEN_SOURCE_EXTENDED 1
18708 #include <errno.h>
18709 #ifdef ENOLINK
18711 #endif
18713 _ACEOF
18714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18715 $EGREP "yes" >/dev/null 2>&1; then :
18716 gl_cv_header_errno_h_ENOLINK=hidden
18718 rm -f conftest*
18720 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18721 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18722 #define _XOPEN_SOURCE_EXTENDED 1
18723 #include <errno.h>
18724 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18725 #include <stdio.h>
18726 #include <stdlib.h>
18727 "; then :
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18736 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18737 case $gl_cv_header_errno_h_ENOLINK in
18738 yes | no)
18739 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18742 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18744 esac
18750 if test -n "$ERRNO_H"; then
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18752 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18753 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18754 $as_echo_n "(cached) " >&6
18755 else
18757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18760 #include <errno.h>
18761 #ifdef EOVERFLOW
18763 #endif
18765 _ACEOF
18766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18767 $EGREP "yes" >/dev/null 2>&1; then :
18768 gl_cv_header_errno_h_EOVERFLOW=yes
18769 else
18770 gl_cv_header_errno_h_EOVERFLOW=no
18772 rm -f conftest*
18774 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18778 #define _XOPEN_SOURCE_EXTENDED 1
18779 #include <errno.h>
18780 #ifdef EOVERFLOW
18782 #endif
18784 _ACEOF
18785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18786 $EGREP "yes" >/dev/null 2>&1; then :
18787 gl_cv_header_errno_h_EOVERFLOW=hidden
18789 rm -f conftest*
18791 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18792 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18793 #define _XOPEN_SOURCE_EXTENDED 1
18794 #include <errno.h>
18795 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18796 #include <stdio.h>
18797 #include <stdlib.h>
18798 "; then :
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18807 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18808 case $gl_cv_header_errno_h_EOVERFLOW in
18809 yes | no)
18810 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18813 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18815 esac
18829 GNULIB_FCNTL=0;
18830 GNULIB_NONBLOCKING=0;
18831 GNULIB_OPEN=0;
18832 GNULIB_OPENAT=0;
18833 HAVE_FCNTL=1;
18834 HAVE_OPENAT=1;
18835 REPLACE_FCNTL=0;
18836 REPLACE_OPEN=0;
18837 REPLACE_OPENAT=0;
18842 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18843 if test "x$ac_cv_type_mode_t" = x""yes; then :
18845 else
18847 cat >>confdefs.h <<_ACEOF
18848 #define mode_t int
18849 _ACEOF
18853 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18854 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
18855 ac_have_decl=1
18856 else
18857 ac_have_decl=0
18860 cat >>confdefs.h <<_ACEOF
18861 #define HAVE_DECL_FDATASYNC $ac_have_decl
18862 _ACEOF
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18867 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18868 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18869 $as_echo_n "(cached) " >&6
18870 else
18871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872 /* end confdefs.h. */
18874 #include <sys/types.h>
18875 #include <sys/stat.h>
18877 main ()
18879 struct stat s; s.st_dm_mode;
18881 return 0;
18883 _ACEOF
18884 if ac_fn_c_try_compile "$LINENO"; then :
18885 ac_cv_struct_st_dm_mode=yes
18886 else
18887 ac_cv_struct_st_dm_mode=no
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18892 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18894 if test $ac_cv_struct_st_dm_mode = yes; then
18896 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18901 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18902 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
18903 ac_have_decl=1
18904 else
18905 ac_have_decl=0
18908 cat >>confdefs.h <<_ACEOF
18909 #define HAVE_DECL_STRMODE $ac_have_decl
18910 _ACEOF
18915 GNULIB_FCHMODAT=0;
18916 GNULIB_FSTAT=0;
18917 GNULIB_FSTATAT=0;
18918 GNULIB_FUTIMENS=0;
18919 GNULIB_LCHMOD=0;
18920 GNULIB_LSTAT=0;
18921 GNULIB_MKDIRAT=0;
18922 GNULIB_MKFIFO=0;
18923 GNULIB_MKFIFOAT=0;
18924 GNULIB_MKNOD=0;
18925 GNULIB_MKNODAT=0;
18926 GNULIB_STAT=0;
18927 GNULIB_UTIMENSAT=0;
18928 HAVE_FCHMODAT=1;
18929 HAVE_FSTATAT=1;
18930 HAVE_FUTIMENS=1;
18931 HAVE_LCHMOD=1;
18932 HAVE_LSTAT=1;
18933 HAVE_MKDIRAT=1;
18934 HAVE_MKFIFO=1;
18935 HAVE_MKFIFOAT=1;
18936 HAVE_MKNOD=1;
18937 HAVE_MKNODAT=1;
18938 HAVE_UTIMENSAT=1;
18939 REPLACE_FSTAT=0;
18940 REPLACE_FSTATAT=0;
18941 REPLACE_FUTIMENS=0;
18942 REPLACE_LSTAT=0;
18943 REPLACE_MKDIR=0;
18944 REPLACE_MKFIFO=0;
18945 REPLACE_MKNOD=0;
18946 REPLACE_STAT=0;
18947 REPLACE_UTIMENSAT=0;
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18951 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18952 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18953 $as_echo_n "(cached) " >&6
18954 else
18955 rm -f conftest.sym conftest.file
18956 echo >conftest.file
18957 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18958 if test "$cross_compiling" = yes; then :
18959 case "$host_os" in
18960 # Guess yes on glibc systems.
18961 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18962 # If we don't know, assume the worst.
18963 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18964 esac
18966 else
18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h. */
18969 $ac_includes_default
18971 main ()
18973 struct stat sbuf;
18974 /* Linux will dereference the symlink and fail, as required by
18975 POSIX. That is better in the sense that it means we will not
18976 have to compile and use the lstat wrapper. */
18977 return lstat ("conftest.sym/", &sbuf) == 0;
18980 return 0;
18982 _ACEOF
18983 if ac_fn_c_try_run "$LINENO"; then :
18984 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18985 else
18986 gl_cv_func_lstat_dereferences_slashed_symlink=no
18988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18989 conftest.$ac_objext conftest.beam conftest.$ac_ext
18992 else
18993 # If the 'ln -s' command failed, then we probably don't even
18994 # have an lstat function.
18995 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18997 rm -f conftest.sym conftest.file
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19001 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19002 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19003 *yes)
19005 cat >>confdefs.h <<_ACEOF
19006 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19007 _ACEOF
19010 esac
19017 GNULIB__EXIT=0;
19018 GNULIB_ATOLL=0;
19019 GNULIB_CALLOC_POSIX=0;
19020 GNULIB_CANONICALIZE_FILE_NAME=0;
19021 GNULIB_GETLOADAVG=0;
19022 GNULIB_GETSUBOPT=0;
19023 GNULIB_GRANTPT=0;
19024 GNULIB_MALLOC_POSIX=0;
19025 GNULIB_MBTOWC=0;
19026 GNULIB_MKDTEMP=0;
19027 GNULIB_MKOSTEMP=0;
19028 GNULIB_MKOSTEMPS=0;
19029 GNULIB_MKSTEMP=0;
19030 GNULIB_MKSTEMPS=0;
19031 GNULIB_POSIX_OPENPT=0;
19032 GNULIB_PTSNAME=0;
19033 GNULIB_PTSNAME_R=0;
19034 GNULIB_PUTENV=0;
19035 GNULIB_RANDOM=0;
19036 GNULIB_RANDOM_R=0;
19037 GNULIB_REALLOC_POSIX=0;
19038 GNULIB_REALPATH=0;
19039 GNULIB_RPMATCH=0;
19040 GNULIB_SECURE_GETENV=0;
19041 GNULIB_SETENV=0;
19042 GNULIB_STRTOD=0;
19043 GNULIB_STRTOLL=0;
19044 GNULIB_STRTOULL=0;
19045 GNULIB_SYSTEM_POSIX=0;
19046 GNULIB_UNLOCKPT=0;
19047 GNULIB_UNSETENV=0;
19048 GNULIB_WCTOMB=0;
19049 HAVE__EXIT=1;
19050 HAVE_ATOLL=1;
19051 HAVE_CANONICALIZE_FILE_NAME=1;
19052 HAVE_DECL_GETLOADAVG=1;
19053 HAVE_GETSUBOPT=1;
19054 HAVE_GRANTPT=1;
19055 HAVE_MKDTEMP=1;
19056 HAVE_MKOSTEMP=1;
19057 HAVE_MKOSTEMPS=1;
19058 HAVE_MKSTEMP=1;
19059 HAVE_MKSTEMPS=1;
19060 HAVE_POSIX_OPENPT=1;
19061 HAVE_PTSNAME=1;
19062 HAVE_PTSNAME_R=1;
19063 HAVE_RANDOM=1;
19064 HAVE_RANDOM_H=1;
19065 HAVE_RANDOM_R=1;
19066 HAVE_REALPATH=1;
19067 HAVE_RPMATCH=1;
19068 HAVE_SECURE_GETENV=1;
19069 HAVE_SETENV=1;
19070 HAVE_DECL_SETENV=1;
19071 HAVE_STRTOD=1;
19072 HAVE_STRTOLL=1;
19073 HAVE_STRTOULL=1;
19074 HAVE_STRUCT_RANDOM_DATA=1;
19075 HAVE_SYS_LOADAVG_H=0;
19076 HAVE_UNLOCKPT=1;
19077 HAVE_DECL_UNSETENV=1;
19078 REPLACE_CALLOC=0;
19079 REPLACE_CANONICALIZE_FILE_NAME=0;
19080 REPLACE_MALLOC=0;
19081 REPLACE_MBTOWC=0;
19082 REPLACE_MKSTEMP=0;
19083 REPLACE_PTSNAME=0;
19084 REPLACE_PTSNAME_R=0;
19085 REPLACE_PUTENV=0;
19086 REPLACE_RANDOM_R=0;
19087 REPLACE_REALLOC=0;
19088 REPLACE_REALPATH=0;
19089 REPLACE_SETENV=0;
19090 REPLACE_STRTOD=0;
19091 REPLACE_UNSETENV=0;
19092 REPLACE_WCTOMB=0;
19109 if test $gl_cv_have_include_next = yes; then
19110 gl_cv_next_getopt_h='<'getopt.h'>'
19111 else
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
19113 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
19114 if test "${gl_cv_next_getopt_h+set}" = set; then :
19115 $as_echo_n "(cached) " >&6
19116 else
19118 if test $ac_cv_header_getopt_h = yes; then
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 #include <getopt.h>
19125 _ACEOF
19126 case "$host_os" in
19127 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19128 *) gl_absname_cpp="$ac_cpp" ;;
19129 esac
19131 case "$host_os" in
19132 mingw*)
19133 gl_dirsep_regex='[/\\]'
19136 gl_dirsep_regex='\/'
19138 esac
19139 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19141 gl_header_literal_regex=`echo 'getopt.h' \
19142 | sed -e "$gl_make_literal_regex_sed"`
19143 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19145 s|^/[^/]|//&|
19149 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19150 sed -n "$gl_absolute_header_sed"`'"'
19151 else
19152 gl_cv_next_getopt_h='<'getopt.h'>'
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
19158 $as_echo "$gl_cv_next_getopt_h" >&6; }
19160 NEXT_GETOPT_H=$gl_cv_next_getopt_h
19162 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19164 gl_next_as_first_directive='<'getopt.h'>'
19165 else
19166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19167 gl_next_as_first_directive=$gl_cv_next_getopt_h
19169 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
19174 if test $ac_cv_header_getopt_h = yes; then
19175 HAVE_GETOPT_H=1
19176 else
19177 HAVE_GETOPT_H=0
19181 gl_replace_getopt=
19183 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19184 for ac_header in getopt.h
19185 do :
19186 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19187 if test "x$ac_cv_header_getopt_h" = x""yes; then :
19188 cat >>confdefs.h <<_ACEOF
19189 #define HAVE_GETOPT_H 1
19190 _ACEOF
19192 else
19193 gl_replace_getopt=yes
19196 done
19200 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19201 for ac_func in getopt_long_only
19202 do :
19203 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
19204 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
19205 cat >>confdefs.h <<_ACEOF
19206 #define HAVE_GETOPT_LONG_ONLY 1
19207 _ACEOF
19209 else
19210 gl_replace_getopt=yes
19212 done
19216 if test -z "$gl_replace_getopt"; then
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
19218 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
19219 if test "${gl_cv_func_getopt_posix+set}" = set; then :
19220 $as_echo_n "(cached) " >&6
19221 else
19223 if test $cross_compiling = no; then
19224 if test "$cross_compiling" = yes; then :
19225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19227 as_fn_error "cannot run test program while cross compiling
19228 See \`config.log' for more details." "$LINENO" 5; }
19229 else
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19233 #include <unistd.h>
19234 #include <stdlib.h>
19235 #include <string.h>
19238 main ()
19240 static char program[] = "program";
19241 static char a[] = "-a";
19242 static char foo[] = "foo";
19243 static char bar[] = "bar";
19244 char *argv[] = { program, a, foo, bar, NULL };
19245 int c;
19247 c = getopt (4, argv, "ab");
19248 if (!(c == 'a'))
19249 return 1;
19250 c = getopt (4, argv, "ab");
19251 if (!(c == -1))
19252 return 2;
19253 if (!(optind == 2))
19254 return 3;
19255 return 0;
19258 _ACEOF
19259 if ac_fn_c_try_run "$LINENO"; then :
19260 gl_cv_func_getopt_posix=maybe
19261 else
19262 gl_cv_func_getopt_posix=no
19264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19265 conftest.$ac_objext conftest.beam conftest.$ac_ext
19268 if test $gl_cv_func_getopt_posix = maybe; then
19269 if test "$cross_compiling" = yes; then :
19270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19272 as_fn_error "cannot run test program while cross compiling
19273 See \`config.log' for more details." "$LINENO" 5; }
19274 else
19275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h. */
19278 #include <unistd.h>
19279 #include <stdlib.h>
19280 #include <string.h>
19283 main ()
19285 static char program[] = "program";
19286 static char donald[] = "donald";
19287 static char p[] = "-p";
19288 static char billy[] = "billy";
19289 static char duck[] = "duck";
19290 static char a[] = "-a";
19291 static char bar[] = "bar";
19292 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19293 int c;
19295 c = getopt (7, argv, "+abp:q:");
19296 if (!(c == -1))
19297 return 4;
19298 if (!(strcmp (argv[0], "program") == 0))
19299 return 5;
19300 if (!(strcmp (argv[1], "donald") == 0))
19301 return 6;
19302 if (!(strcmp (argv[2], "-p") == 0))
19303 return 7;
19304 if (!(strcmp (argv[3], "billy") == 0))
19305 return 8;
19306 if (!(strcmp (argv[4], "duck") == 0))
19307 return 9;
19308 if (!(strcmp (argv[5], "-a") == 0))
19309 return 10;
19310 if (!(strcmp (argv[6], "bar") == 0))
19311 return 11;
19312 if (!(optind == 1))
19313 return 12;
19314 return 0;
19317 _ACEOF
19318 if ac_fn_c_try_run "$LINENO"; then :
19319 gl_cv_func_getopt_posix=maybe
19320 else
19321 gl_cv_func_getopt_posix=no
19323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19324 conftest.$ac_objext conftest.beam conftest.$ac_ext
19328 if test $gl_cv_func_getopt_posix = maybe; then
19329 if test "$cross_compiling" = yes; then :
19330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19332 as_fn_error "cannot run test program while cross compiling
19333 See \`config.log' for more details." "$LINENO" 5; }
19334 else
19335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h. */
19338 #include <unistd.h>
19339 #include <stdlib.h>
19340 #include <string.h>
19343 main ()
19345 static char program[] = "program";
19346 static char ab[] = "-ab";
19347 char *argv[3] = { program, ab, NULL };
19348 if (getopt (2, argv, "ab:") != 'a')
19349 return 13;
19350 if (getopt (2, argv, "ab:") != '?')
19351 return 14;
19352 if (optopt != 'b')
19353 return 15;
19354 if (optind != 2)
19355 return 16;
19356 return 0;
19359 _ACEOF
19360 if ac_fn_c_try_run "$LINENO"; then :
19361 gl_cv_func_getopt_posix=yes
19362 else
19363 gl_cv_func_getopt_posix=no
19365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19366 conftest.$ac_objext conftest.beam conftest.$ac_ext
19370 else
19371 case "$host_os" in
19372 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19373 *) gl_cv_func_getopt_posix="guessing yes";;
19374 esac
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19379 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19380 case "$gl_cv_func_getopt_posix" in
19381 *no) gl_replace_getopt=yes ;;
19382 esac
19385 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19387 $as_echo_n "checking for working GNU getopt function... " >&6; }
19388 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19389 $as_echo_n "(cached) " >&6
19390 else
19391 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19392 # optstring is necessary for programs like m4 that have POSIX-mandated
19393 # semantics for supporting options interspersed with files.
19394 # Also, since getopt_long is a GNU extension, we require optind=0.
19395 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19396 # so take care to revert to the correct (non-)export state.
19397 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19398 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19399 xx) gl_had_POSIXLY_CORRECT=exported ;;
19400 x) gl_had_POSIXLY_CORRECT=yes ;;
19401 *) gl_had_POSIXLY_CORRECT= ;;
19402 esac
19403 POSIXLY_CORRECT=1
19404 export POSIXLY_CORRECT
19405 if test "$cross_compiling" = yes; then :
19406 gl_cv_func_getopt_gnu="guessing no"
19408 else
19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h. */
19411 #include <getopt.h>
19412 #include <stddef.h>
19413 #include <string.h>
19415 #include <stdlib.h>
19416 #if defined __MACH__ && defined __APPLE__
19417 /* Avoid a crash on Mac OS X. */
19418 #include <mach/mach.h>
19419 #include <mach/mach_error.h>
19420 #include <mach/thread_status.h>
19421 #include <mach/exception.h>
19422 #include <mach/task.h>
19423 #include <pthread.h>
19424 /* The exception port on which our thread listens. */
19425 static mach_port_t our_exception_port;
19426 /* The main function of the thread listening for exceptions of type
19427 EXC_BAD_ACCESS. */
19428 static void *
19429 mach_exception_thread (void *arg)
19431 /* Buffer for a message to be received. */
19432 struct {
19433 mach_msg_header_t head;
19434 mach_msg_body_t msgh_body;
19435 char data[1024];
19436 } msg;
19437 mach_msg_return_t retval;
19438 /* Wait for a message on the exception port. */
19439 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19440 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19441 if (retval != MACH_MSG_SUCCESS)
19442 abort ();
19443 exit (1);
19445 static void
19446 nocrash_init (void)
19448 mach_port_t self = mach_task_self ();
19449 /* Allocate a port on which the thread shall listen for exceptions. */
19450 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19451 == KERN_SUCCESS) {
19452 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19453 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19454 MACH_MSG_TYPE_MAKE_SEND)
19455 == KERN_SUCCESS) {
19456 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19457 for us. */
19458 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19459 /* Create the thread listening on the exception port. */
19460 pthread_attr_t attr;
19461 pthread_t thread;
19462 if (pthread_attr_init (&attr) == 0
19463 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19464 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19465 pthread_attr_destroy (&attr);
19466 /* Replace the exception port info for these exceptions with our own.
19467 Note that we replace the exception port for the entire task, not only
19468 for a particular thread. This has the effect that when our exception
19469 port gets the message, the thread specific exception port has already
19470 been asked, and we don't need to bother about it.
19471 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19472 task_set_exception_ports (self, mask, our_exception_port,
19473 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19478 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19479 /* Avoid a crash on native Windows. */
19480 #define WIN32_LEAN_AND_MEAN
19481 #include <windows.h>
19482 #include <winerror.h>
19483 static LONG WINAPI
19484 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19486 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19488 case EXCEPTION_ACCESS_VIOLATION:
19489 case EXCEPTION_IN_PAGE_ERROR:
19490 case EXCEPTION_STACK_OVERFLOW:
19491 case EXCEPTION_GUARD_PAGE:
19492 case EXCEPTION_PRIV_INSTRUCTION:
19493 case EXCEPTION_ILLEGAL_INSTRUCTION:
19494 case EXCEPTION_DATATYPE_MISALIGNMENT:
19495 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19496 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19497 exit (1);
19499 return EXCEPTION_CONTINUE_SEARCH;
19501 static void
19502 nocrash_init (void)
19504 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19506 #else
19507 /* Avoid a crash on POSIX systems. */
19508 #include <signal.h>
19509 /* A POSIX signal handler. */
19510 static void
19511 exception_handler (int sig)
19513 exit (1);
19515 static void
19516 nocrash_init (void)
19518 #ifdef SIGSEGV
19519 signal (SIGSEGV, exception_handler);
19520 #endif
19521 #ifdef SIGBUS
19522 signal (SIGBUS, exception_handler);
19523 #endif
19525 #endif
19529 main ()
19532 int result = 0;
19534 nocrash_init();
19536 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19537 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19538 OSF/1 5.1, Solaris 10. */
19540 static char conftest[] = "conftest";
19541 static char plus[] = "-+";
19542 char *argv[3] = { conftest, plus, NULL };
19543 opterr = 0;
19544 if (getopt (2, argv, "+a") != '?')
19545 result |= 1;
19547 /* This code succeeds on glibc 2.8, mingw,
19548 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19549 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19551 static char program[] = "program";
19552 static char p[] = "-p";
19553 static char foo[] = "foo";
19554 static char bar[] = "bar";
19555 char *argv[] = { program, p, foo, bar, NULL };
19557 optind = 1;
19558 if (getopt (4, argv, "p::") != 'p')
19559 result |= 2;
19560 else if (optarg != NULL)
19561 result |= 4;
19562 else if (getopt (4, argv, "p::") != -1)
19563 result |= 6;
19564 else if (optind != 2)
19565 result |= 8;
19567 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19569 static char program[] = "program";
19570 static char foo[] = "foo";
19571 static char p[] = "-p";
19572 char *argv[] = { program, foo, p, NULL };
19573 optind = 0;
19574 if (getopt (3, argv, "-p") != 1)
19575 result |= 16;
19576 else if (getopt (3, argv, "-p") != 'p')
19577 result |= 16;
19579 /* This code fails on glibc 2.11. */
19581 static char program[] = "program";
19582 static char b[] = "-b";
19583 static char a[] = "-a";
19584 char *argv[] = { program, b, a, NULL };
19585 optind = opterr = 0;
19586 if (getopt (3, argv, "+:a:b") != 'b')
19587 result |= 32;
19588 else if (getopt (3, argv, "+:a:b") != ':')
19589 result |= 32;
19591 /* This code dumps core on glibc 2.14. */
19593 static char program[] = "program";
19594 static char w[] = "-W";
19595 static char dummy[] = "dummy";
19596 char *argv[] = { program, w, dummy, NULL };
19597 optind = opterr = 1;
19598 if (getopt (3, argv, "W;") != 'W')
19599 result |= 64;
19601 return result;
19604 return 0;
19606 _ACEOF
19607 if ac_fn_c_try_run "$LINENO"; then :
19608 gl_cv_func_getopt_gnu=yes
19609 else
19610 gl_cv_func_getopt_gnu=no
19612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19613 conftest.$ac_objext conftest.beam conftest.$ac_ext
19616 case $gl_had_POSIXLY_CORRECT in
19617 exported) ;;
19618 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19619 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19620 esac
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19624 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19625 if test "$gl_cv_func_getopt_gnu" != yes; then
19626 gl_replace_getopt=yes
19627 else
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19629 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19630 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19631 $as_echo_n "(cached) " >&6
19632 else
19633 if test "$cross_compiling" = yes; then :
19634 case "$host_os" in
19635 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19636 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19637 esac
19639 else
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19642 #include <getopt.h>
19643 #include <stddef.h>
19644 #include <string.h>
19647 main ()
19649 static const struct option long_options[] =
19651 { "xtremely-",no_argument, NULL, 1003 },
19652 { "xtra", no_argument, NULL, 1001 },
19653 { "xtreme", no_argument, NULL, 1002 },
19654 { "xtremely", no_argument, NULL, 1003 },
19655 { NULL, 0, NULL, 0 }
19657 /* This code fails on OpenBSD 5.0. */
19659 static char program[] = "program";
19660 static char xtremel[] = "--xtremel";
19661 char *argv[] = { program, xtremel, NULL };
19662 int option_index;
19663 optind = 1; opterr = 0;
19664 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19665 return 1;
19667 return 0;
19670 return 0;
19672 _ACEOF
19673 if ac_fn_c_try_run "$LINENO"; then :
19674 gl_cv_func_getopt_long_gnu=yes
19675 else
19676 gl_cv_func_getopt_long_gnu=no
19678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19679 conftest.$ac_objext conftest.beam conftest.$ac_ext
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19685 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19686 case "$gl_cv_func_getopt_long_gnu" in
19687 *yes) ;;
19688 *) gl_replace_getopt=yes ;;
19689 esac
19698 REPLACE_GETOPT=0
19699 if test -n "$gl_replace_getopt"; then
19700 REPLACE_GETOPT=1
19703 if test $REPLACE_GETOPT = 1; then
19705 GETOPT_H=getopt.h
19707 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19713 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19714 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19715 ac_have_decl=1
19716 else
19717 ac_have_decl=0
19720 cat >>confdefs.h <<_ACEOF
19721 #define HAVE_DECL_GETENV $ac_have_decl
19722 _ACEOF
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19730 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19731 if test "${ac_cv_c_restrict+set}" = set; then :
19732 $as_echo_n "(cached) " >&6
19733 else
19734 ac_cv_c_restrict=no
19735 # The order here caters to the fact that C++ does not require restrict.
19736 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h. */
19739 typedef int * int_ptr;
19740 int foo (int_ptr $ac_kw ip) {
19741 return ip[0];
19744 main ()
19746 int s[1];
19747 int * $ac_kw t = s;
19748 t[0] = 0;
19749 return foo(t)
19751 return 0;
19753 _ACEOF
19754 if ac_fn_c_try_compile "$LINENO"; then :
19755 ac_cv_c_restrict=$ac_kw
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758 test "$ac_cv_c_restrict" != no && break
19759 done
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19763 $as_echo "$ac_cv_c_restrict" >&6; }
19765 case $ac_cv_c_restrict in
19766 restrict) ;;
19767 no) $as_echo "#define restrict /**/" >>confdefs.h
19769 *) cat >>confdefs.h <<_ACEOF
19770 #define restrict $ac_cv_c_restrict
19771 _ACEOF
19773 esac
19776 GNULIB_GETTIMEOFDAY=0;
19777 HAVE_GETTIMEOFDAY=1;
19778 HAVE_STRUCT_TIMEVAL=1;
19779 HAVE_SYS_TIME_H=1;
19780 REPLACE_GETTIMEOFDAY=0;
19781 REPLACE_STRUCT_TIMEVAL=0;
19798 if test $gl_cv_have_include_next = yes; then
19799 gl_cv_next_sys_time_h='<'sys/time.h'>'
19800 else
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19802 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19803 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19804 $as_echo_n "(cached) " >&6
19805 else
19807 if test $ac_cv_header_sys_time_h = yes; then
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19812 #include <sys/time.h>
19814 _ACEOF
19815 case "$host_os" in
19816 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19817 *) gl_absname_cpp="$ac_cpp" ;;
19818 esac
19820 case "$host_os" in
19821 mingw*)
19822 gl_dirsep_regex='[/\\]'
19825 gl_dirsep_regex='\/'
19827 esac
19828 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19830 gl_header_literal_regex=`echo 'sys/time.h' \
19831 | sed -e "$gl_make_literal_regex_sed"`
19832 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19833 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19834 s|^/[^/]|//&|
19838 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19839 sed -n "$gl_absolute_header_sed"`'"'
19840 else
19841 gl_cv_next_sys_time_h='<'sys/time.h'>'
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19847 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19849 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19851 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19853 gl_next_as_first_directive='<'sys/time.h'>'
19854 else
19855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19856 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19858 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19864 if test $ac_cv_header_sys_time_h != yes; then
19865 HAVE_SYS_TIME_H=0
19872 if test $ac_cv_header_sys_socket_h != yes; then
19873 for ac_header in winsock2.h
19874 do :
19875 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19876 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19877 cat >>confdefs.h <<_ACEOF
19878 #define HAVE_WINSOCK2_H 1
19879 _ACEOF
19883 done
19886 if test "$ac_cv_header_winsock2_h" = yes; then
19887 HAVE_WINSOCK2_H=1
19888 UNISTD_H_HAVE_WINSOCK2_H=1
19889 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19890 else
19891 HAVE_WINSOCK2_H=0
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19896 $as_echo_n "checking for struct timeval... " >&6; }
19897 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19898 $as_echo_n "(cached) " >&6
19899 else
19900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19901 /* end confdefs.h. */
19902 #if HAVE_SYS_TIME_H
19903 #include <sys/time.h>
19904 #endif
19905 #include <time.h>
19906 #if HAVE_WINSOCK2_H
19907 # include <winsock2.h>
19908 #endif
19911 main ()
19913 static struct timeval x; x.tv_sec = x.tv_usec;
19915 return 0;
19917 _ACEOF
19918 if ac_fn_c_try_compile "$LINENO"; then :
19919 gl_cv_sys_struct_timeval=yes
19920 else
19921 gl_cv_sys_struct_timeval=no
19923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19927 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19928 if test $gl_cv_sys_struct_timeval != yes; then
19929 HAVE_STRUCT_TIMEVAL=0
19930 else
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19932 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19933 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19934 $as_echo_n "(cached) " >&6
19935 else
19936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19937 /* end confdefs.h. */
19938 #if HAVE_SYS_TIME_H
19939 #include <sys/time.h>
19940 #endif
19941 #include <time.h>
19942 #if HAVE_WINSOCK2_H
19943 # include <winsock2.h>
19944 #endif
19947 main ()
19949 static struct timeval x;
19950 typedef int verify_tv_sec_type[
19951 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19955 return 0;
19957 _ACEOF
19958 if ac_fn_c_try_compile "$LINENO"; then :
19959 gl_cv_sys_struct_timeval_tv_sec=yes
19960 else
19961 gl_cv_sys_struct_timeval_tv_sec=no
19963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19967 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19968 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19969 REPLACE_STRUCT_TIMEVAL=1
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19980 $as_echo_n "checking for unsigned long long int... " >&6; }
19981 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19982 $as_echo_n "(cached) " >&6
19983 else
19984 ac_cv_type_unsigned_long_long_int=yes
19985 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19989 /* For now, do not test the preprocessor; as of 2007 there are too many
19990 implementations with broken preprocessors. Perhaps this can
19991 be revisited in 2012. In the meantime, code should not expect
19992 #if to work with literals wider than 32 bits. */
19993 /* Test literals. */
19994 long long int ll = 9223372036854775807ll;
19995 long long int nll = -9223372036854775807LL;
19996 unsigned long long int ull = 18446744073709551615ULL;
19997 /* Test constant expressions. */
19998 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19999 ? 1 : -1)];
20000 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20001 ? 1 : -1)];
20002 int i = 63;
20004 main ()
20006 /* Test availability of runtime routines for shift and division. */
20007 long long int llmax = 9223372036854775807ll;
20008 unsigned long long int ullmax = 18446744073709551615ull;
20009 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20010 | (llmax / ll) | (llmax % ll)
20011 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20012 | (ullmax / ull) | (ullmax % ull));
20014 return 0;
20017 _ACEOF
20018 if ac_fn_c_try_link "$LINENO"; then :
20020 else
20021 ac_cv_type_unsigned_long_long_int=no
20023 rm -f core conftest.err conftest.$ac_objext \
20024 conftest$ac_exeext conftest.$ac_ext
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
20028 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
20029 if test $ac_cv_type_unsigned_long_long_int = yes; then
20031 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20038 $as_echo_n "checking for long long int... " >&6; }
20039 if test "${ac_cv_type_long_long_int+set}" = set; then :
20040 $as_echo_n "(cached) " >&6
20041 else
20042 ac_cv_type_long_long_int=yes
20043 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
20044 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
20045 if test $ac_cv_type_long_long_int = yes; then
20046 if test "$cross_compiling" = yes; then :
20048 else
20049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20050 /* end confdefs.h. */
20051 #include <limits.h>
20052 #ifndef LLONG_MAX
20053 # define HALF \
20054 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20055 # define LLONG_MAX (HALF - 1 + HALF)
20056 #endif
20058 main ()
20060 long long int n = 1;
20061 int i;
20062 for (i = 0; ; i++)
20064 long long int m = n << i;
20065 if (m >> i != n)
20066 return 1;
20067 if (LLONG_MAX / 2 < m)
20068 break;
20070 return 0;
20072 return 0;
20074 _ACEOF
20075 if ac_fn_c_try_run "$LINENO"; then :
20077 else
20078 ac_cv_type_long_long_int=no
20080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20081 conftest.$ac_objext conftest.beam conftest.$ac_ext
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
20088 $as_echo "$ac_cv_type_long_long_int" >&6; }
20089 if test $ac_cv_type_long_long_int = yes; then
20091 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
20100 gl_cv_c_multiarch=no
20101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20102 /* end confdefs.h. */
20103 #ifndef __APPLE_CC__
20104 not a universal capable compiler
20105 #endif
20106 typedef int dummy;
20108 _ACEOF
20109 if ac_fn_c_try_compile "$LINENO"; then :
20111 arch=
20112 prev=
20113 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20114 if test -n "$prev"; then
20115 case $word in
20116 i?86 | x86_64 | ppc | ppc64)
20117 if test -z "$arch" || test "$arch" = "$word"; then
20118 arch="$word"
20119 else
20120 gl_cv_c_multiarch=yes
20123 esac
20124 prev=
20125 else
20126 if test "x$word" = "x-arch"; then
20127 prev=arch
20130 done
20133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20134 if test $gl_cv_c_multiarch = yes; then
20135 APPLE_UNIVERSAL_BUILD=1
20136 else
20137 APPLE_UNIVERSAL_BUILD=0
20144 if test $ac_cv_type_long_long_int = yes; then
20145 HAVE_LONG_LONG_INT=1
20146 else
20147 HAVE_LONG_LONG_INT=0
20151 if test $ac_cv_type_unsigned_long_long_int = yes; then
20152 HAVE_UNSIGNED_LONG_LONG_INT=1
20153 else
20154 HAVE_UNSIGNED_LONG_LONG_INT=0
20159 if test $ac_cv_header_wchar_h = yes; then
20160 HAVE_WCHAR_H=1
20161 else
20162 HAVE_WCHAR_H=0
20166 if test $ac_cv_header_inttypes_h = yes; then
20167 HAVE_INTTYPES_H=1
20168 else
20169 HAVE_INTTYPES_H=0
20173 if test $ac_cv_header_sys_types_h = yes; then
20174 HAVE_SYS_TYPES_H=1
20175 else
20176 HAVE_SYS_TYPES_H=0
20189 if test $gl_cv_have_include_next = yes; then
20190 gl_cv_next_stdint_h='<'stdint.h'>'
20191 else
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20193 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20194 if test "${gl_cv_next_stdint_h+set}" = set; then :
20195 $as_echo_n "(cached) " >&6
20196 else
20198 if test $ac_cv_header_stdint_h = yes; then
20201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h. */
20203 #include <stdint.h>
20205 _ACEOF
20206 case "$host_os" in
20207 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20208 *) gl_absname_cpp="$ac_cpp" ;;
20209 esac
20211 case "$host_os" in
20212 mingw*)
20213 gl_dirsep_regex='[/\\]'
20216 gl_dirsep_regex='\/'
20218 esac
20219 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20221 gl_header_literal_regex=`echo 'stdint.h' \
20222 | sed -e "$gl_make_literal_regex_sed"`
20223 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20224 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20225 s|^/[^/]|//&|
20229 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20230 sed -n "$gl_absolute_header_sed"`'"'
20231 else
20232 gl_cv_next_stdint_h='<'stdint.h'>'
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20238 $as_echo "$gl_cv_next_stdint_h" >&6; }
20240 NEXT_STDINT_H=$gl_cv_next_stdint_h
20242 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20244 gl_next_as_first_directive='<'stdint.h'>'
20245 else
20246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20247 gl_next_as_first_directive=$gl_cv_next_stdint_h
20249 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20254 if test $ac_cv_header_stdint_h = yes; then
20255 HAVE_STDINT_H=1
20256 else
20257 HAVE_STDINT_H=0
20261 if test $ac_cv_header_stdint_h = yes; then
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20263 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20264 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20265 $as_echo_n "(cached) " >&6
20266 else
20267 gl_cv_header_working_stdint_h=no
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h. */
20272 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20273 #include <stdint.h>
20274 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20275 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20276 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20277 #endif
20280 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20281 included before <wchar.h>. */
20282 #include <stddef.h>
20283 #include <signal.h>
20284 #if HAVE_WCHAR_H
20285 # include <stdio.h>
20286 # include <time.h>
20287 # include <wchar.h>
20288 #endif
20291 #ifdef INT8_MAX
20292 int8_t a1 = INT8_MAX;
20293 int8_t a1min = INT8_MIN;
20294 #endif
20295 #ifdef INT16_MAX
20296 int16_t a2 = INT16_MAX;
20297 int16_t a2min = INT16_MIN;
20298 #endif
20299 #ifdef INT32_MAX
20300 int32_t a3 = INT32_MAX;
20301 int32_t a3min = INT32_MIN;
20302 #endif
20303 #ifdef INT64_MAX
20304 int64_t a4 = INT64_MAX;
20305 int64_t a4min = INT64_MIN;
20306 #endif
20307 #ifdef UINT8_MAX
20308 uint8_t b1 = UINT8_MAX;
20309 #else
20310 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20311 #endif
20312 #ifdef UINT16_MAX
20313 uint16_t b2 = UINT16_MAX;
20314 #endif
20315 #ifdef UINT32_MAX
20316 uint32_t b3 = UINT32_MAX;
20317 #endif
20318 #ifdef UINT64_MAX
20319 uint64_t b4 = UINT64_MAX;
20320 #endif
20321 int_least8_t c1 = INT8_C (0x7f);
20322 int_least8_t c1max = INT_LEAST8_MAX;
20323 int_least8_t c1min = INT_LEAST8_MIN;
20324 int_least16_t c2 = INT16_C (0x7fff);
20325 int_least16_t c2max = INT_LEAST16_MAX;
20326 int_least16_t c2min = INT_LEAST16_MIN;
20327 int_least32_t c3 = INT32_C (0x7fffffff);
20328 int_least32_t c3max = INT_LEAST32_MAX;
20329 int_least32_t c3min = INT_LEAST32_MIN;
20330 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20331 int_least64_t c4max = INT_LEAST64_MAX;
20332 int_least64_t c4min = INT_LEAST64_MIN;
20333 uint_least8_t d1 = UINT8_C (0xff);
20334 uint_least8_t d1max = UINT_LEAST8_MAX;
20335 uint_least16_t d2 = UINT16_C (0xffff);
20336 uint_least16_t d2max = UINT_LEAST16_MAX;
20337 uint_least32_t d3 = UINT32_C (0xffffffff);
20338 uint_least32_t d3max = UINT_LEAST32_MAX;
20339 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20340 uint_least64_t d4max = UINT_LEAST64_MAX;
20341 int_fast8_t e1 = INT_FAST8_MAX;
20342 int_fast8_t e1min = INT_FAST8_MIN;
20343 int_fast16_t e2 = INT_FAST16_MAX;
20344 int_fast16_t e2min = INT_FAST16_MIN;
20345 int_fast32_t e3 = INT_FAST32_MAX;
20346 int_fast32_t e3min = INT_FAST32_MIN;
20347 int_fast64_t e4 = INT_FAST64_MAX;
20348 int_fast64_t e4min = INT_FAST64_MIN;
20349 uint_fast8_t f1 = UINT_FAST8_MAX;
20350 uint_fast16_t f2 = UINT_FAST16_MAX;
20351 uint_fast32_t f3 = UINT_FAST32_MAX;
20352 uint_fast64_t f4 = UINT_FAST64_MAX;
20353 #ifdef INTPTR_MAX
20354 intptr_t g = INTPTR_MAX;
20355 intptr_t gmin = INTPTR_MIN;
20356 #endif
20357 #ifdef UINTPTR_MAX
20358 uintptr_t h = UINTPTR_MAX;
20359 #endif
20360 intmax_t i = INTMAX_MAX;
20361 uintmax_t j = UINTMAX_MAX;
20363 #include <limits.h> /* for CHAR_BIT */
20364 #define TYPE_MINIMUM(t) \
20365 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20366 #define TYPE_MAXIMUM(t) \
20367 ((t) ((t) 0 < (t) -1 \
20368 ? (t) -1 \
20369 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20370 struct s {
20371 int check_PTRDIFF:
20372 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20373 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20374 ? 1 : -1;
20375 /* Detect bug in FreeBSD 6.0 / ia64. */
20376 int check_SIG_ATOMIC:
20377 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20378 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20379 ? 1 : -1;
20380 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20381 int check_WCHAR:
20382 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20383 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20384 ? 1 : -1;
20385 /* Detect bug in mingw. */
20386 int check_WINT:
20387 WINT_MIN == TYPE_MINIMUM (wint_t)
20388 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20389 ? 1 : -1;
20391 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20392 int check_UINT8_C:
20393 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20394 int check_UINT16_C:
20395 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20397 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20398 #ifdef UINT8_MAX
20399 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20400 #endif
20401 #ifdef UINT16_MAX
20402 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20403 #endif
20404 #ifdef UINT32_MAX
20405 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20406 #endif
20407 #ifdef UINT64_MAX
20408 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20409 #endif
20410 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20411 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20412 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20413 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20414 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20415 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20416 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20417 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20418 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20419 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20420 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20424 main ()
20428 return 0;
20430 _ACEOF
20431 if ac_fn_c_try_compile "$LINENO"; then :
20432 if test "$cross_compiling" = yes; then :
20433 gl_cv_header_working_stdint_h=yes
20435 else
20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20437 /* end confdefs.h. */
20440 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20441 #include <stdint.h>
20444 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20445 included before <wchar.h>. */
20446 #include <stddef.h>
20447 #include <signal.h>
20448 #if HAVE_WCHAR_H
20449 # include <stdio.h>
20450 # include <time.h>
20451 # include <wchar.h>
20452 #endif
20455 #include <stdio.h>
20456 #include <string.h>
20457 #define MVAL(macro) MVAL1(macro)
20458 #define MVAL1(expression) #expression
20459 static const char *macro_values[] =
20461 #ifdef INT8_MAX
20462 MVAL (INT8_MAX),
20463 #endif
20464 #ifdef INT16_MAX
20465 MVAL (INT16_MAX),
20466 #endif
20467 #ifdef INT32_MAX
20468 MVAL (INT32_MAX),
20469 #endif
20470 #ifdef INT64_MAX
20471 MVAL (INT64_MAX),
20472 #endif
20473 #ifdef UINT8_MAX
20474 MVAL (UINT8_MAX),
20475 #endif
20476 #ifdef UINT16_MAX
20477 MVAL (UINT16_MAX),
20478 #endif
20479 #ifdef UINT32_MAX
20480 MVAL (UINT32_MAX),
20481 #endif
20482 #ifdef UINT64_MAX
20483 MVAL (UINT64_MAX),
20484 #endif
20485 NULL
20489 main ()
20492 const char **mv;
20493 for (mv = macro_values; *mv != NULL; mv++)
20495 const char *value = *mv;
20496 /* Test whether it looks like a cast expression. */
20497 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20498 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20499 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20500 || strncmp (value, "((int)"/*)*/, 6) == 0
20501 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20502 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20503 return mv - macro_values + 1;
20505 return 0;
20508 return 0;
20510 _ACEOF
20511 if ac_fn_c_try_run "$LINENO"; then :
20512 gl_cv_header_working_stdint_h=yes
20514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20515 conftest.$ac_objext conftest.beam conftest.$ac_ext
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20524 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20526 if test "$gl_cv_header_working_stdint_h" = yes; then
20527 STDINT_H=
20528 else
20529 for ac_header in sys/inttypes.h sys/bitypes.h
20530 do :
20531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20532 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20533 eval as_val=\$$as_ac_Header
20534 if test "x$as_val" = x""yes; then :
20535 cat >>confdefs.h <<_ACEOF
20536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20537 _ACEOF
20541 done
20543 if test $ac_cv_header_sys_inttypes_h = yes; then
20544 HAVE_SYS_INTTYPES_H=1
20545 else
20546 HAVE_SYS_INTTYPES_H=0
20549 if test $ac_cv_header_sys_bitypes_h = yes; then
20550 HAVE_SYS_BITYPES_H=1
20551 else
20552 HAVE_SYS_BITYPES_H=0
20558 if test $APPLE_UNIVERSAL_BUILD = 0; then
20561 for gltype in ptrdiff_t size_t ; do
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20563 $as_echo_n "checking for bit size of $gltype... " >&6; }
20564 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20565 $as_echo_n "(cached) " >&6
20566 else
20567 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20568 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20569 included before <wchar.h>. */
20570 #include <stddef.h>
20571 #include <signal.h>
20572 #if HAVE_WCHAR_H
20573 # include <stdio.h>
20574 # include <time.h>
20575 # include <wchar.h>
20576 #endif
20578 #include <limits.h>"; then :
20580 else
20581 result=unknown
20584 eval gl_cv_bitsizeof_${gltype}=\$result
20587 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20589 $as_echo "$ac_res" >&6; }
20590 eval result=\$gl_cv_bitsizeof_${gltype}
20591 if test $result = unknown; then
20592 result=0
20594 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20595 cat >>confdefs.h <<_ACEOF
20596 #define BITSIZEOF_${GLTYPE} $result
20597 _ACEOF
20599 eval BITSIZEOF_${GLTYPE}=\$result
20600 done
20606 for gltype in sig_atomic_t wchar_t wint_t ; do
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20608 $as_echo_n "checking for bit size of $gltype... " >&6; }
20609 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20610 $as_echo_n "(cached) " >&6
20611 else
20612 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20614 included before <wchar.h>. */
20615 #include <stddef.h>
20616 #include <signal.h>
20617 #if HAVE_WCHAR_H
20618 # include <stdio.h>
20619 # include <time.h>
20620 # include <wchar.h>
20621 #endif
20623 #include <limits.h>"; then :
20625 else
20626 result=unknown
20629 eval gl_cv_bitsizeof_${gltype}=\$result
20632 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20634 $as_echo "$ac_res" >&6; }
20635 eval result=\$gl_cv_bitsizeof_${gltype}
20636 if test $result = unknown; then
20637 result=0
20639 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20640 cat >>confdefs.h <<_ACEOF
20641 #define BITSIZEOF_${GLTYPE} $result
20642 _ACEOF
20644 eval BITSIZEOF_${GLTYPE}=\$result
20645 done
20650 for gltype in sig_atomic_t wchar_t wint_t ; do
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20652 $as_echo_n "checking whether $gltype is signed... " >&6; }
20653 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20654 $as_echo_n "(cached) " >&6
20655 else
20656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20657 /* end confdefs.h. */
20659 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20660 included before <wchar.h>. */
20661 #include <stddef.h>
20662 #include <signal.h>
20663 #if HAVE_WCHAR_H
20664 # include <stdio.h>
20665 # include <time.h>
20666 # include <wchar.h>
20667 #endif
20669 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20671 main ()
20675 return 0;
20677 _ACEOF
20678 if ac_fn_c_try_compile "$LINENO"; then :
20679 result=yes
20680 else
20681 result=no
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 eval gl_cv_type_${gltype}_signed=\$result
20687 eval ac_res=\$gl_cv_type_${gltype}_signed
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20689 $as_echo "$ac_res" >&6; }
20690 eval result=\$gl_cv_type_${gltype}_signed
20691 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20692 if test "$result" = yes; then
20693 cat >>confdefs.h <<_ACEOF
20694 #define HAVE_SIGNED_${GLTYPE} 1
20695 _ACEOF
20697 eval HAVE_SIGNED_${GLTYPE}=1
20698 else
20699 eval HAVE_SIGNED_${GLTYPE}=0
20701 done
20704 gl_cv_type_ptrdiff_t_signed=yes
20705 gl_cv_type_size_t_signed=no
20706 if test $APPLE_UNIVERSAL_BUILD = 0; then
20709 for gltype in ptrdiff_t size_t ; do
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20711 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20712 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20713 $as_echo_n "(cached) " >&6
20714 else
20715 eval gl_cv_type_${gltype}_suffix=no
20716 eval result=\$gl_cv_type_${gltype}_signed
20717 if test "$result" = yes; then
20718 glsufu=
20719 else
20720 glsufu=u
20722 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20723 case $glsuf in
20724 '') gltype1='int';;
20725 l) gltype1='long int';;
20726 ll) gltype1='long long int';;
20727 i64) gltype1='__int64';;
20728 u) gltype1='unsigned int';;
20729 ul) gltype1='unsigned long int';;
20730 ull) gltype1='unsigned long long int';;
20731 ui64)gltype1='unsigned __int64';;
20732 esac
20733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734 /* end confdefs.h. */
20736 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20737 included before <wchar.h>. */
20738 #include <stddef.h>
20739 #include <signal.h>
20740 #if HAVE_WCHAR_H
20741 # include <stdio.h>
20742 # include <time.h>
20743 # include <wchar.h>
20744 #endif
20746 extern $gltype foo;
20747 extern $gltype1 foo;
20749 main ()
20753 return 0;
20755 _ACEOF
20756 if ac_fn_c_try_compile "$LINENO"; then :
20757 eval gl_cv_type_${gltype}_suffix=\$glsuf
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760 eval result=\$gl_cv_type_${gltype}_suffix
20761 test "$result" != no && break
20762 done
20764 eval ac_res=\$gl_cv_type_${gltype}_suffix
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20766 $as_echo "$ac_res" >&6; }
20767 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20768 eval result=\$gl_cv_type_${gltype}_suffix
20769 test "$result" = no && result=
20770 eval ${GLTYPE}_SUFFIX=\$result
20771 cat >>confdefs.h <<_ACEOF
20772 #define ${GLTYPE}_SUFFIX $result
20773 _ACEOF
20775 done
20781 for gltype in sig_atomic_t wchar_t wint_t ; do
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20783 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20784 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20785 $as_echo_n "(cached) " >&6
20786 else
20787 eval gl_cv_type_${gltype}_suffix=no
20788 eval result=\$gl_cv_type_${gltype}_signed
20789 if test "$result" = yes; then
20790 glsufu=
20791 else
20792 glsufu=u
20794 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20795 case $glsuf in
20796 '') gltype1='int';;
20797 l) gltype1='long int';;
20798 ll) gltype1='long long int';;
20799 i64) gltype1='__int64';;
20800 u) gltype1='unsigned int';;
20801 ul) gltype1='unsigned long int';;
20802 ull) gltype1='unsigned long long int';;
20803 ui64)gltype1='unsigned __int64';;
20804 esac
20805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20806 /* end confdefs.h. */
20808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20809 included before <wchar.h>. */
20810 #include <stddef.h>
20811 #include <signal.h>
20812 #if HAVE_WCHAR_H
20813 # include <stdio.h>
20814 # include <time.h>
20815 # include <wchar.h>
20816 #endif
20818 extern $gltype foo;
20819 extern $gltype1 foo;
20821 main ()
20825 return 0;
20827 _ACEOF
20828 if ac_fn_c_try_compile "$LINENO"; then :
20829 eval gl_cv_type_${gltype}_suffix=\$glsuf
20831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20832 eval result=\$gl_cv_type_${gltype}_suffix
20833 test "$result" != no && break
20834 done
20836 eval ac_res=\$gl_cv_type_${gltype}_suffix
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20838 $as_echo "$ac_res" >&6; }
20839 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20840 eval result=\$gl_cv_type_${gltype}_suffix
20841 test "$result" = no && result=
20842 eval ${GLTYPE}_SUFFIX=\$result
20843 cat >>confdefs.h <<_ACEOF
20844 #define ${GLTYPE}_SUFFIX $result
20845 _ACEOF
20847 done
20851 if test $BITSIZEOF_WINT_T -lt 32; then
20852 BITSIZEOF_WINT_T=32
20855 STDINT_H=stdint.h
20858 if test -n "$STDINT_H"; then
20859 GL_GENERATE_STDINT_H_TRUE=
20860 GL_GENERATE_STDINT_H_FALSE='#'
20861 else
20862 GL_GENERATE_STDINT_H_TRUE='#'
20863 GL_GENERATE_STDINT_H_FALSE=
20870 GNULIB_IMAXABS=0;
20871 GNULIB_IMAXDIV=0;
20872 GNULIB_STRTOIMAX=0;
20873 GNULIB_STRTOUMAX=0;
20874 HAVE_DECL_IMAXABS=1;
20875 HAVE_DECL_IMAXDIV=1;
20876 HAVE_DECL_STRTOIMAX=1;
20877 HAVE_DECL_STRTOUMAX=1;
20878 REPLACE_STRTOIMAX=0;
20879 INT32_MAX_LT_INTMAX_MAX=1;
20880 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20881 PRI_MACROS_BROKEN=0;
20882 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20883 UINT32_MAX_LT_UINTMAX_MAX=1;
20884 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20900 if test $gl_cv_have_include_next = yes; then
20901 gl_cv_next_inttypes_h='<'inttypes.h'>'
20902 else
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20904 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20905 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20906 $as_echo_n "(cached) " >&6
20907 else
20909 if test $ac_cv_header_inttypes_h = yes; then
20912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20913 /* end confdefs.h. */
20914 #include <inttypes.h>
20916 _ACEOF
20917 case "$host_os" in
20918 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20919 *) gl_absname_cpp="$ac_cpp" ;;
20920 esac
20922 case "$host_os" in
20923 mingw*)
20924 gl_dirsep_regex='[/\\]'
20927 gl_dirsep_regex='\/'
20929 esac
20930 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20932 gl_header_literal_regex=`echo 'inttypes.h' \
20933 | sed -e "$gl_make_literal_regex_sed"`
20934 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20936 s|^/[^/]|//&|
20940 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20941 sed -n "$gl_absolute_header_sed"`'"'
20942 else
20943 gl_cv_next_inttypes_h='<'inttypes.h'>'
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20949 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20951 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
20953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20955 gl_next_as_first_directive='<'inttypes.h'>'
20956 else
20957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20958 gl_next_as_first_directive=$gl_cv_next_inttypes_h
20960 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
20972 case "$host_os" in
20973 mingw*)
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20975 $as_echo_n "checking for 64-bit off_t... " >&6; }
20976 if test "${gl_cv_type_off_t_64+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h. */
20981 #include <sys/types.h>
20982 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20985 main ()
20989 return 0;
20991 _ACEOF
20992 if ac_fn_c_try_compile "$LINENO"; then :
20993 gl_cv_type_off_t_64=yes
20994 else
20995 gl_cv_type_off_t_64=no
20997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21001 $as_echo "$gl_cv_type_off_t_64" >&6; }
21002 if test $gl_cv_type_off_t_64 = no; then
21003 WINDOWS_64_BIT_OFF_T=1
21004 else
21005 WINDOWS_64_BIT_OFF_T=0
21007 WINDOWS_64_BIT_ST_SIZE=1
21010 WINDOWS_64_BIT_OFF_T=0
21011 WINDOWS_64_BIT_ST_SIZE=0
21013 esac
21018 GNULIB_FFSL=0;
21019 GNULIB_FFSLL=0;
21020 GNULIB_MEMCHR=0;
21021 GNULIB_MEMMEM=0;
21022 GNULIB_MEMPCPY=0;
21023 GNULIB_MEMRCHR=0;
21024 GNULIB_RAWMEMCHR=0;
21025 GNULIB_STPCPY=0;
21026 GNULIB_STPNCPY=0;
21027 GNULIB_STRCHRNUL=0;
21028 GNULIB_STRDUP=0;
21029 GNULIB_STRNCAT=0;
21030 GNULIB_STRNDUP=0;
21031 GNULIB_STRNLEN=0;
21032 GNULIB_STRPBRK=0;
21033 GNULIB_STRSEP=0;
21034 GNULIB_STRSTR=0;
21035 GNULIB_STRCASESTR=0;
21036 GNULIB_STRTOK_R=0;
21037 GNULIB_MBSLEN=0;
21038 GNULIB_MBSNLEN=0;
21039 GNULIB_MBSCHR=0;
21040 GNULIB_MBSRCHR=0;
21041 GNULIB_MBSSTR=0;
21042 GNULIB_MBSCASECMP=0;
21043 GNULIB_MBSNCASECMP=0;
21044 GNULIB_MBSPCASECMP=0;
21045 GNULIB_MBSCASESTR=0;
21046 GNULIB_MBSCSPN=0;
21047 GNULIB_MBSPBRK=0;
21048 GNULIB_MBSSPN=0;
21049 GNULIB_MBSSEP=0;
21050 GNULIB_MBSTOK_R=0;
21051 GNULIB_STRERROR=0;
21052 GNULIB_STRERROR_R=0;
21053 GNULIB_STRSIGNAL=0;
21054 GNULIB_STRVERSCMP=0;
21055 HAVE_MBSLEN=0;
21056 HAVE_FFSL=1;
21057 HAVE_FFSLL=1;
21058 HAVE_MEMCHR=1;
21059 HAVE_DECL_MEMMEM=1;
21060 HAVE_MEMPCPY=1;
21061 HAVE_DECL_MEMRCHR=1;
21062 HAVE_RAWMEMCHR=1;
21063 HAVE_STPCPY=1;
21064 HAVE_STPNCPY=1;
21065 HAVE_STRCHRNUL=1;
21066 HAVE_DECL_STRDUP=1;
21067 HAVE_DECL_STRNDUP=1;
21068 HAVE_DECL_STRNLEN=1;
21069 HAVE_STRPBRK=1;
21070 HAVE_STRSEP=1;
21071 HAVE_STRCASESTR=1;
21072 HAVE_DECL_STRTOK_R=1;
21073 HAVE_DECL_STRERROR_R=1;
21074 HAVE_DECL_STRSIGNAL=1;
21075 HAVE_STRVERSCMP=1;
21076 REPLACE_MEMCHR=0;
21077 REPLACE_MEMMEM=0;
21078 REPLACE_STPNCPY=0;
21079 REPLACE_STRDUP=0;
21080 REPLACE_STRSTR=0;
21081 REPLACE_STRCASESTR=0;
21082 REPLACE_STRCHRNUL=0;
21083 REPLACE_STRERROR=0;
21084 REPLACE_STRERROR_R=0;
21085 REPLACE_STRNCAT=0;
21086 REPLACE_STRNDUP=0;
21087 REPLACE_STRNLEN=0;
21088 REPLACE_STRSIGNAL=0;
21089 REPLACE_STRTOK_R=0;
21090 UNDEFINE_STRTOK_R=0;
21092 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
21093 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
21094 ac_have_decl=1
21095 else
21096 ac_have_decl=0
21099 cat >>confdefs.h <<_ACEOF
21100 #define HAVE_DECL_MEMRCHR $ac_have_decl
21101 _ACEOF
21106 GNULIB_MKTIME=0;
21107 GNULIB_NANOSLEEP=0;
21108 GNULIB_STRPTIME=0;
21109 GNULIB_TIMEGM=0;
21110 GNULIB_TIME_R=0;
21111 HAVE_DECL_LOCALTIME_R=1;
21112 HAVE_NANOSLEEP=1;
21113 HAVE_STRPTIME=1;
21114 HAVE_TIMEGM=1;
21115 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21116 REPLACE_MKTIME=GNULIB_PORTCHECK;
21117 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21118 REPLACE_TIMEGM=GNULIB_PORTCHECK;
21120 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
21121 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
21122 ac_have_decl=1
21123 else
21124 ac_have_decl=0
21127 cat >>confdefs.h <<_ACEOF
21128 #define HAVE_DECL_ALARM $ac_have_decl
21129 _ACEOF
21134 GNULIB_PSELECT=0;
21135 GNULIB_SELECT=0;
21136 HAVE_PSELECT=1;
21137 REPLACE_PSELECT=0;
21138 REPLACE_SELECT=0;
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21146 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21147 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
21148 $as_echo_n "(cached) " >&6
21149 else
21151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21152 /* end confdefs.h. */
21153 #include <sys/select.h>
21155 main ()
21157 struct timeval b;
21159 return 0;
21161 _ACEOF
21162 if ac_fn_c_try_compile "$LINENO"; then :
21163 gl_cv_header_sys_select_h_selfcontained=yes
21164 else
21165 gl_cv_header_sys_select_h_selfcontained=no
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21170 /* end confdefs.h. */
21171 #include <sys/select.h>
21173 main ()
21175 int memset; int bzero;
21177 return 0;
21180 _ACEOF
21181 if ac_fn_c_try_compile "$LINENO"; then :
21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21183 /* end confdefs.h. */
21184 #include <sys/select.h>
21186 main ()
21189 #undef memset
21190 #define memset nonexistent_memset
21191 extern
21192 #ifdef __cplusplus
21194 #endif
21195 void *memset (void *, int, unsigned long);
21196 #undef bzero
21197 #define bzero nonexistent_bzero
21198 extern
21199 #ifdef __cplusplus
21201 #endif
21202 void bzero (void *, unsigned long);
21203 fd_set fds;
21204 FD_ZERO (&fds);
21207 return 0;
21210 _ACEOF
21211 if ac_fn_c_try_link "$LINENO"; then :
21213 else
21214 gl_cv_header_sys_select_h_selfcontained=no
21216 rm -f core conftest.err conftest.$ac_objext \
21217 conftest$ac_exeext conftest.$ac_ext
21220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21225 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21235 if test $gl_cv_have_include_next = yes; then
21236 gl_cv_next_sys_select_h='<'sys/select.h'>'
21237 else
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21239 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21240 if test "${gl_cv_next_sys_select_h+set}" = set; then :
21241 $as_echo_n "(cached) " >&6
21242 else
21244 if test $ac_cv_header_sys_select_h = yes; then
21247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21248 /* end confdefs.h. */
21249 #include <sys/select.h>
21251 _ACEOF
21252 case "$host_os" in
21253 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21254 *) gl_absname_cpp="$ac_cpp" ;;
21255 esac
21257 case "$host_os" in
21258 mingw*)
21259 gl_dirsep_regex='[/\\]'
21262 gl_dirsep_regex='\/'
21264 esac
21265 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21267 gl_header_literal_regex=`echo 'sys/select.h' \
21268 | sed -e "$gl_make_literal_regex_sed"`
21269 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21270 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21271 s|^/[^/]|//&|
21275 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21276 sed -n "$gl_absolute_header_sed"`'"'
21277 else
21278 gl_cv_next_sys_select_h='<'sys/select.h'>'
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21284 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21286 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21288 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21289 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21290 gl_next_as_first_directive='<'sys/select.h'>'
21291 else
21292 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21293 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21295 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21300 if test $ac_cv_header_sys_select_h = yes; then
21301 HAVE_SYS_SELECT_H=1
21302 else
21303 HAVE_SYS_SELECT_H=0
21310 if test $ac_cv_header_sys_socket_h != yes; then
21311 for ac_header in winsock2.h
21312 do :
21313 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21314 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
21315 cat >>confdefs.h <<_ACEOF
21316 #define HAVE_WINSOCK2_H 1
21317 _ACEOF
21321 done
21324 if test "$ac_cv_header_winsock2_h" = yes; then
21325 HAVE_WINSOCK2_H=1
21326 UNISTD_H_HAVE_WINSOCK2_H=1
21327 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21328 else
21329 HAVE_WINSOCK2_H=0
21339 GNULIB_PTHREAD_SIGMASK=0;
21340 GNULIB_RAISE=0;
21341 GNULIB_SIGNAL_H_SIGPIPE=0;
21342 GNULIB_SIGPROCMASK=0;
21343 GNULIB_SIGACTION=0;
21344 HAVE_POSIX_SIGNALBLOCKING=1;
21345 HAVE_PTHREAD_SIGMASK=1;
21346 HAVE_RAISE=1;
21347 HAVE_SIGSET_T=1;
21348 HAVE_SIGINFO_T=1;
21349 HAVE_SIGACTION=1;
21350 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
21352 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
21354 HAVE_SIGHANDLER_T=1;
21355 REPLACE_PTHREAD_SIGMASK=0;
21356 REPLACE_RAISE=0;
21364 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21365 #include <signal.h>
21366 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21367 #include <sys/types.h>
21370 if test "x$ac_cv_type_sigset_t" = x""yes; then :
21372 cat >>confdefs.h <<_ACEOF
21373 #define HAVE_SIGSET_T 1
21374 _ACEOF
21376 gl_cv_type_sigset_t=yes
21377 else
21378 gl_cv_type_sigset_t=no
21381 if test $gl_cv_type_sigset_t != yes; then
21382 HAVE_SIGSET_T=0
21387 if test $ac_cv_header_sys_socket_h = no; then
21388 for ac_header in ws2tcpip.h
21389 do :
21390 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21391 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21392 cat >>confdefs.h <<_ACEOF
21393 #define HAVE_WS2TCPIP_H 1
21394 _ACEOF
21398 done
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21403 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21404 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21405 $as_echo_n "(cached) " >&6
21406 else
21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21410 #include <stdbool.h>
21411 #ifndef bool
21412 "error: bool is not defined"
21413 #endif
21414 #ifndef false
21415 "error: false is not defined"
21416 #endif
21417 #if false
21418 "error: false is not 0"
21419 #endif
21420 #ifndef true
21421 "error: true is not defined"
21422 #endif
21423 #if true != 1
21424 "error: true is not 1"
21425 #endif
21426 #ifndef __bool_true_false_are_defined
21427 "error: __bool_true_false_are_defined is not defined"
21428 #endif
21430 struct s { _Bool s: 1; _Bool t; } s;
21432 char a[true == 1 ? 1 : -1];
21433 char b[false == 0 ? 1 : -1];
21434 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21435 char d[(bool) 0.5 == true ? 1 : -1];
21436 /* See body of main program for 'e'. */
21437 char f[(_Bool) 0.0 == false ? 1 : -1];
21438 char g[true];
21439 char h[sizeof (_Bool)];
21440 char i[sizeof s.t];
21441 enum { j = false, k = true, l = false * true, m = true * 256 };
21442 /* The following fails for
21443 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21444 _Bool n[m];
21445 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21446 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21447 /* Catch a bug in an HP-UX C compiler. See
21448 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21449 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21451 _Bool q = true;
21452 _Bool *pq = &q;
21455 main ()
21458 bool e = &s;
21459 *pq |= q;
21460 *pq |= ! q;
21461 /* Refer to every declared value, to avoid compiler optimizations. */
21462 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21463 + !m + !n + !o + !p + !q + !pq);
21466 return 0;
21468 _ACEOF
21469 if ac_fn_c_try_compile "$LINENO"; then :
21470 ac_cv_header_stdbool_h=yes
21471 else
21472 ac_cv_header_stdbool_h=no
21474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21477 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21478 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21479 if test "x$ac_cv_type__Bool" = x""yes; then :
21481 cat >>confdefs.h <<_ACEOF
21482 #define HAVE__BOOL 1
21483 _ACEOF
21490 REPLACE_NULL=0;
21491 HAVE_WCHAR_T=1;
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21495 $as_echo_n "checking for wchar_t... " >&6; }
21496 if test "${gt_cv_c_wchar_t+set}" = set; then :
21497 $as_echo_n "(cached) " >&6
21498 else
21499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21500 /* end confdefs.h. */
21501 #include <stddef.h>
21502 wchar_t foo = (wchar_t)'\0';
21504 main ()
21508 return 0;
21510 _ACEOF
21511 if ac_fn_c_try_compile "$LINENO"; then :
21512 gt_cv_c_wchar_t=yes
21513 else
21514 gt_cv_c_wchar_t=no
21516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21519 $as_echo "$gt_cv_c_wchar_t" >&6; }
21520 if test $gt_cv_c_wchar_t = yes; then
21522 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21527 GNULIB_DPRINTF=0;
21528 GNULIB_FCLOSE=0;
21529 GNULIB_FDOPEN=0;
21530 GNULIB_FFLUSH=0;
21531 GNULIB_FGETC=0;
21532 GNULIB_FGETS=0;
21533 GNULIB_FOPEN=0;
21534 GNULIB_FPRINTF=0;
21535 GNULIB_FPRINTF_POSIX=0;
21536 GNULIB_FPURGE=0;
21537 GNULIB_FPUTC=0;
21538 GNULIB_FPUTS=0;
21539 GNULIB_FREAD=0;
21540 GNULIB_FREOPEN=0;
21541 GNULIB_FSCANF=0;
21542 GNULIB_FSEEK=0;
21543 GNULIB_FSEEKO=0;
21544 GNULIB_FTELL=0;
21545 GNULIB_FTELLO=0;
21546 GNULIB_FWRITE=0;
21547 GNULIB_GETC=0;
21548 GNULIB_GETCHAR=0;
21549 GNULIB_GETDELIM=0;
21550 GNULIB_GETLINE=0;
21551 GNULIB_OBSTACK_PRINTF=0;
21552 GNULIB_OBSTACK_PRINTF_POSIX=0;
21553 GNULIB_PCLOSE=0;
21554 GNULIB_PERROR=0;
21555 GNULIB_POPEN=0;
21556 GNULIB_PRINTF=0;
21557 GNULIB_PRINTF_POSIX=0;
21558 GNULIB_PUTC=0;
21559 GNULIB_PUTCHAR=0;
21560 GNULIB_PUTS=0;
21561 GNULIB_REMOVE=0;
21562 GNULIB_RENAME=0;
21563 GNULIB_RENAMEAT=0;
21564 GNULIB_SCANF=0;
21565 GNULIB_SNPRINTF=0;
21566 GNULIB_SPRINTF_POSIX=0;
21567 GNULIB_STDIO_H_NONBLOCKING=0;
21568 GNULIB_STDIO_H_SIGPIPE=0;
21569 GNULIB_TMPFILE=0;
21570 GNULIB_VASPRINTF=0;
21571 GNULIB_VFSCANF=0;
21572 GNULIB_VSCANF=0;
21573 GNULIB_VDPRINTF=0;
21574 GNULIB_VFPRINTF=0;
21575 GNULIB_VFPRINTF_POSIX=0;
21576 GNULIB_VPRINTF=0;
21577 GNULIB_VPRINTF_POSIX=0;
21578 GNULIB_VSNPRINTF=0;
21579 GNULIB_VSPRINTF_POSIX=0;
21580 HAVE_DECL_FPURGE=1;
21581 HAVE_DECL_FSEEKO=1;
21582 HAVE_DECL_FTELLO=1;
21583 HAVE_DECL_GETDELIM=1;
21584 HAVE_DECL_GETLINE=1;
21585 HAVE_DECL_OBSTACK_PRINTF=1;
21586 HAVE_DECL_SNPRINTF=1;
21587 HAVE_DECL_VSNPRINTF=1;
21588 HAVE_DPRINTF=1;
21589 HAVE_FSEEKO=1;
21590 HAVE_FTELLO=1;
21591 HAVE_PCLOSE=1;
21592 HAVE_POPEN=1;
21593 HAVE_RENAMEAT=1;
21594 HAVE_VASPRINTF=1;
21595 HAVE_VDPRINTF=1;
21596 REPLACE_DPRINTF=0;
21597 REPLACE_FCLOSE=0;
21598 REPLACE_FDOPEN=0;
21599 REPLACE_FFLUSH=0;
21600 REPLACE_FOPEN=0;
21601 REPLACE_FPRINTF=0;
21602 REPLACE_FPURGE=0;
21603 REPLACE_FREOPEN=0;
21604 REPLACE_FSEEK=0;
21605 REPLACE_FSEEKO=0;
21606 REPLACE_FTELL=0;
21607 REPLACE_FTELLO=0;
21608 REPLACE_GETDELIM=0;
21609 REPLACE_GETLINE=0;
21610 REPLACE_OBSTACK_PRINTF=0;
21611 REPLACE_PERROR=0;
21612 REPLACE_POPEN=0;
21613 REPLACE_PRINTF=0;
21614 REPLACE_REMOVE=0;
21615 REPLACE_RENAME=0;
21616 REPLACE_RENAMEAT=0;
21617 REPLACE_SNPRINTF=0;
21618 REPLACE_SPRINTF=0;
21619 REPLACE_STDIO_READ_FUNCS=0;
21620 REPLACE_STDIO_WRITE_FUNCS=0;
21621 REPLACE_TMPFILE=0;
21622 REPLACE_VASPRINTF=0;
21623 REPLACE_VDPRINTF=0;
21624 REPLACE_VFPRINTF=0;
21625 REPLACE_VPRINTF=0;
21626 REPLACE_VSNPRINTF=0;
21627 REPLACE_VSPRINTF=0;
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21630 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21631 if test "${ac_cv_struct_tm+set}" = set; then :
21632 $as_echo_n "(cached) " >&6
21633 else
21634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21635 /* end confdefs.h. */
21636 #include <sys/types.h>
21637 #include <time.h>
21640 main ()
21642 struct tm tm;
21643 int *p = &tm.tm_sec;
21644 return !p;
21646 return 0;
21648 _ACEOF
21649 if ac_fn_c_try_compile "$LINENO"; then :
21650 ac_cv_struct_tm=time.h
21651 else
21652 ac_cv_struct_tm=sys/time.h
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21657 $as_echo "$ac_cv_struct_tm" >&6; }
21658 if test $ac_cv_struct_tm = sys/time.h; then
21660 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21664 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21665 #include <$ac_cv_struct_tm>
21668 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21670 cat >>confdefs.h <<_ACEOF
21671 #define HAVE_STRUCT_TM_TM_ZONE 1
21672 _ACEOF
21677 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21679 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21681 else
21682 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21684 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21685 ac_have_decl=1
21686 else
21687 ac_have_decl=0
21690 cat >>confdefs.h <<_ACEOF
21691 #define HAVE_DECL_TZNAME $ac_have_decl
21692 _ACEOF
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21695 $as_echo_n "checking for tzname... " >&6; }
21696 if test "${ac_cv_var_tzname+set}" = set; then :
21697 $as_echo_n "(cached) " >&6
21698 else
21699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21700 /* end confdefs.h. */
21701 #include <time.h>
21702 #if !HAVE_DECL_TZNAME
21703 extern char *tzname[];
21704 #endif
21707 main ()
21709 return tzname[0][0];
21711 return 0;
21713 _ACEOF
21714 if ac_fn_c_try_link "$LINENO"; then :
21715 ac_cv_var_tzname=yes
21716 else
21717 ac_cv_var_tzname=no
21719 rm -f core conftest.err conftest.$ac_objext \
21720 conftest$ac_exeext conftest.$ac_ext
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21723 $as_echo "$ac_cv_var_tzname" >&6; }
21724 if test $ac_cv_var_tzname = yes; then
21726 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21732 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21734 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21736 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21752 if test $gl_cv_have_include_next = yes; then
21753 gl_cv_next_string_h='<'string.h'>'
21754 else
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21756 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21757 if test "${gl_cv_next_string_h+set}" = set; then :
21758 $as_echo_n "(cached) " >&6
21759 else
21761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h. */
21763 #include <string.h>
21765 _ACEOF
21766 case "$host_os" in
21767 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21768 *) gl_absname_cpp="$ac_cpp" ;;
21769 esac
21771 case "$host_os" in
21772 mingw*)
21773 gl_dirsep_regex='[/\\]'
21776 gl_dirsep_regex='\/'
21778 esac
21779 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21781 gl_header_literal_regex=`echo 'string.h' \
21782 | sed -e "$gl_make_literal_regex_sed"`
21783 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21784 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21785 s|^/[^/]|//&|
21789 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21790 sed -n "$gl_absolute_header_sed"`'"'
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21795 $as_echo "$gl_cv_next_string_h" >&6; }
21797 NEXT_STRING_H=$gl_cv_next_string_h
21799 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21801 gl_next_as_first_directive='<'string.h'>'
21802 else
21803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21804 gl_next_as_first_directive=$gl_cv_next_string_h
21806 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21816 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21817 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21818 ac_have_decl=1
21819 else
21820 ac_have_decl=0
21823 cat >>confdefs.h <<_ACEOF
21824 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21825 _ACEOF
21829 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21830 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21831 ac_have_decl=1
21832 else
21833 ac_have_decl=0
21836 cat >>confdefs.h <<_ACEOF
21837 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21838 _ACEOF
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21843 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21844 if test "${ac_cv_header_stat_broken+set}" = set; then :
21845 $as_echo_n "(cached) " >&6
21846 else
21847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21848 /* end confdefs.h. */
21849 #include <sys/types.h>
21850 #include <sys/stat.h>
21852 #if defined S_ISBLK && defined S_IFDIR
21853 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21854 #endif
21856 #if defined S_ISBLK && defined S_IFCHR
21857 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21858 #endif
21860 #if defined S_ISLNK && defined S_IFREG
21861 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21862 #endif
21864 #if defined S_ISSOCK && defined S_IFREG
21865 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21866 #endif
21868 _ACEOF
21869 if ac_fn_c_try_compile "$LINENO"; then :
21870 ac_cv_header_stat_broken=no
21871 else
21872 ac_cv_header_stat_broken=yes
21874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21877 $as_echo "$ac_cv_header_stat_broken" >&6; }
21878 if test $ac_cv_header_stat_broken = yes; then
21880 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21889 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21890 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21891 $as_echo_n "(cached) " >&6
21892 else
21893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894 /* end confdefs.h. */
21895 #include <time.h>
21898 main ()
21900 static struct timespec x; x.tv_sec = x.tv_nsec;
21902 return 0;
21904 _ACEOF
21905 if ac_fn_c_try_compile "$LINENO"; then :
21906 gl_cv_sys_struct_timespec_in_time_h=yes
21907 else
21908 gl_cv_sys_struct_timespec_in_time_h=no
21910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21913 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21915 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21916 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21917 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21918 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21919 TIME_H_DEFINES_STRUCT_TIMESPEC=1
21920 else
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21922 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21923 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21924 $as_echo_n "(cached) " >&6
21925 else
21926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927 /* end confdefs.h. */
21928 #include <sys/time.h>
21931 main ()
21933 static struct timespec x; x.tv_sec = x.tv_nsec;
21935 return 0;
21937 _ACEOF
21938 if ac_fn_c_try_compile "$LINENO"; then :
21939 gl_cv_sys_struct_timespec_in_sys_time_h=yes
21940 else
21941 gl_cv_sys_struct_timespec_in_sys_time_h=no
21943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21946 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21947 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21948 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21949 else
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21951 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21952 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21953 $as_echo_n "(cached) " >&6
21954 else
21955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21957 #include <pthread.h>
21960 main ()
21962 static struct timespec x; x.tv_sec = x.tv_nsec;
21964 return 0;
21966 _ACEOF
21967 if ac_fn_c_try_compile "$LINENO"; then :
21968 gl_cv_sys_struct_timespec_in_pthread_h=yes
21969 else
21970 gl_cv_sys_struct_timespec_in_pthread_h=no
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21975 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21976 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21977 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21996 if test $gl_cv_have_include_next = yes; then
21997 gl_cv_next_time_h='<'time.h'>'
21998 else
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22000 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22001 if test "${gl_cv_next_time_h+set}" = set; then :
22002 $as_echo_n "(cached) " >&6
22003 else
22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22006 /* end confdefs.h. */
22007 #include <time.h>
22009 _ACEOF
22010 case "$host_os" in
22011 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22012 *) gl_absname_cpp="$ac_cpp" ;;
22013 esac
22015 case "$host_os" in
22016 mingw*)
22017 gl_dirsep_regex='[/\\]'
22020 gl_dirsep_regex='\/'
22022 esac
22023 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22025 gl_header_literal_regex=`echo 'time.h' \
22026 | sed -e "$gl_make_literal_regex_sed"`
22027 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22028 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22029 s|^/[^/]|//&|
22033 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22034 sed -n "$gl_absolute_header_sed"`'"'
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22039 $as_echo "$gl_cv_next_time_h" >&6; }
22041 NEXT_TIME_H=$gl_cv_next_time_h
22043 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22044 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22045 gl_next_as_first_directive='<'time.h'>'
22046 else
22047 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22048 gl_next_as_first_directive=$gl_cv_next_time_h
22050 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22065 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22066 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
22067 ac_have_decl=1
22068 else
22069 ac_have_decl=0
22072 cat >>confdefs.h <<_ACEOF
22073 #define HAVE_DECL_UNSETENV $ac_have_decl
22074 _ACEOF
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
22078 $as_echo_n "checking whether the utimes function works... " >&6; }
22079 if test "${gl_cv_func_working_utimes+set}" = set; then :
22080 $as_echo_n "(cached) " >&6
22081 else
22083 if test "$cross_compiling" = yes; then :
22084 gl_cv_func_working_utimes=no
22085 else
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22089 #include <sys/types.h>
22090 #include <sys/stat.h>
22091 #include <fcntl.h>
22092 #include <sys/time.h>
22093 #include <time.h>
22094 #include <unistd.h>
22095 #include <stdlib.h>
22096 #include <stdio.h>
22097 #include <utime.h>
22099 static int
22100 inorder (time_t a, time_t b, time_t c)
22102 return a <= b && b <= c;
22106 main ()
22108 int result = 0;
22109 char const *file = "conftest.utimes";
22110 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
22112 /* Test whether utimes() essentially works. */
22114 struct stat sbuf;
22115 FILE *f = fopen (file, "w");
22116 if (f == NULL)
22117 result |= 1;
22118 else if (fclose (f) != 0)
22119 result |= 1;
22120 else if (utimes (file, timeval) != 0)
22121 result |= 2;
22122 else if (lstat (file, &sbuf) != 0)
22123 result |= 1;
22124 else if (!(sbuf.st_atime == timeval[0].tv_sec
22125 && sbuf.st_mtime == timeval[1].tv_sec))
22126 result |= 4;
22127 if (unlink (file) != 0)
22128 result |= 1;
22131 /* Test whether utimes() with a NULL argument sets the file's timestamp
22132 to the current time. Use 'fstat' as well as 'time' to
22133 determine the "current" time, to accommodate NFS file systems
22134 if there is a time skew between the host and the NFS server. */
22136 int fd = open (file, O_WRONLY|O_CREAT, 0644);
22137 if (fd < 0)
22138 result |= 1;
22139 else
22141 time_t t0, t2;
22142 struct stat st0, st1, st2;
22143 if (time (&t0) == (time_t) -1)
22144 result |= 1;
22145 else if (fstat (fd, &st0) != 0)
22146 result |= 1;
22147 else if (utimes (file, timeval) != 0)
22148 result |= 2;
22149 else if (utimes (file, NULL) != 0)
22150 result |= 8;
22151 else if (fstat (fd, &st1) != 0)
22152 result |= 1;
22153 else if (write (fd, "\n", 1) != 1)
22154 result |= 1;
22155 else if (fstat (fd, &st2) != 0)
22156 result |= 1;
22157 else if (time (&t2) == (time_t) -1)
22158 result |= 1;
22159 else
22161 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
22162 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
22163 if (! (st1.st_atime == st1.st_mtime))
22164 result |= 16;
22165 if (! (m_ok_POSIX || m_ok_NFS))
22166 result |= 32;
22168 if (close (fd) != 0)
22169 result |= 1;
22171 if (unlink (file) != 0)
22172 result |= 1;
22175 /* Test whether utimes() with a NULL argument works on read-only files. */
22177 int fd = open (file, O_WRONLY|O_CREAT, 0444);
22178 if (fd < 0)
22179 result |= 1;
22180 else if (close (fd) != 0)
22181 result |= 1;
22182 else if (utimes (file, NULL) != 0)
22183 result |= 64;
22184 if (unlink (file) != 0)
22185 result |= 1;
22188 return result;
22191 _ACEOF
22192 if ac_fn_c_try_run "$LINENO"; then :
22193 gl_cv_func_working_utimes=yes
22194 else
22195 gl_cv_func_working_utimes=no
22197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22198 conftest.$ac_objext conftest.beam conftest.$ac_ext
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
22203 $as_echo "$gl_cv_func_working_utimes" >&6; }
22205 if test $gl_cv_func_working_utimes = yes; then
22207 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
22216 $as_echo_n "checking for struct utimbuf... " >&6; }
22217 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22221 /* end confdefs.h. */
22222 #if HAVE_SYS_TIME_H
22223 #include <sys/time.h>
22224 #endif
22225 #include <time.h>
22226 #ifdef HAVE_UTIME_H
22227 #include <utime.h>
22228 #endif
22231 main ()
22233 static struct utimbuf x; x.actime = x.modtime;
22235 return 0;
22237 _ACEOF
22238 if ac_fn_c_try_compile "$LINENO"; then :
22239 gl_cv_sys_struct_utimbuf=yes
22240 else
22241 gl_cv_sys_struct_utimbuf=no
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
22246 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22248 if test $gl_cv_sys_struct_utimbuf = yes; then
22250 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22265 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22266 if test "${ac_cv_type_getgroups+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 if test "$cross_compiling" = yes; then :
22270 ac_cv_type_getgroups=cross
22271 else
22272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22273 /* end confdefs.h. */
22274 /* Thanks to Mike Rendell for this test. */
22275 $ac_includes_default
22276 #define NGID 256
22277 #undef MAX
22278 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22281 main ()
22283 gid_t gidset[NGID];
22284 int i, n;
22285 union { gid_t gval; long int lval; } val;
22287 val.lval = -1;
22288 for (i = 0; i < NGID; i++)
22289 gidset[i] = val.gval;
22290 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22291 gidset);
22292 /* Exit non-zero if getgroups seems to require an array of ints. This
22293 happens when gid_t is short int but getgroups modifies an array
22294 of ints. */
22295 return n > 0 && gidset[n] != val.gval;
22297 _ACEOF
22298 if ac_fn_c_try_run "$LINENO"; then :
22299 ac_cv_type_getgroups=gid_t
22300 else
22301 ac_cv_type_getgroups=int
22303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22304 conftest.$ac_objext conftest.beam conftest.$ac_ext
22307 if test $ac_cv_type_getgroups = cross; then
22308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22309 /* end confdefs.h. */
22310 #include <unistd.h>
22312 _ACEOF
22313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22314 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
22315 ac_cv_type_getgroups=gid_t
22316 else
22317 ac_cv_type_getgroups=int
22319 rm -f conftest*
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22324 $as_echo "$ac_cv_type_getgroups" >&6; }
22326 cat >>confdefs.h <<_ACEOF
22327 #define GETGROUPS_T $ac_cv_type_getgroups
22328 _ACEOF
22337 if false; then
22338 GL_COND_LIBTOOL_TRUE=
22339 GL_COND_LIBTOOL_FALSE='#'
22340 else
22341 GL_COND_LIBTOOL_TRUE='#'
22342 GL_COND_LIBTOOL_FALSE=
22345 gl_cond_libtool=false
22346 gl_libdeps=
22347 gl_ltlibdeps=
22348 gl_m4_base='m4'
22358 gl_source_base='lib'
22361 if test $ac_cv_func_alloca_works = no; then
22365 # Define an additional variable used in the Makefile substitution.
22366 if test $ac_cv_working_alloca_h = yes; then
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22368 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22369 if test "${gl_cv_rpl_alloca+set}" = set; then :
22370 $as_echo_n "(cached) " >&6
22371 else
22373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22374 /* end confdefs.h. */
22376 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22377 Need own alloca
22378 #endif
22380 _ACEOF
22381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22382 $EGREP "Need own alloca" >/dev/null 2>&1; then :
22383 gl_cv_rpl_alloca=yes
22384 else
22385 gl_cv_rpl_alloca=no
22387 rm -f conftest*
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22392 $as_echo "$gl_cv_rpl_alloca" >&6; }
22393 if test $gl_cv_rpl_alloca = yes; then
22395 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22397 ALLOCA_H=alloca.h
22398 else
22399 ALLOCA_H=
22401 else
22402 ALLOCA_H=alloca.h
22405 if test -n "$ALLOCA_H"; then
22406 GL_GENERATE_ALLOCA_H_TRUE=
22407 GL_GENERATE_ALLOCA_H_FALSE='#'
22408 else
22409 GL_GENERATE_ALLOCA_H_TRUE='#'
22410 GL_GENERATE_ALLOCA_H_FALSE=
22415 for ac_header in byteswap.h
22416 do :
22417 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
22418 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_BYTESWAP_H 1
22421 _ACEOF
22423 BYTESWAP_H=''
22425 else
22427 BYTESWAP_H='byteswap.h'
22431 done
22434 if test -n "$BYTESWAP_H"; then
22435 GL_GENERATE_BYTESWAP_H_TRUE=
22436 GL_GENERATE_BYTESWAP_H_FALSE='#'
22437 else
22438 GL_GENERATE_BYTESWAP_H_TRUE='#'
22439 GL_GENERATE_BYTESWAP_H_FALSE=
22447 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22448 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22450 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22451 # programs in the package would end up linked with that potentially-shared
22452 # library, inducing unnecessary run-time overhead.
22453 LIB_CLOCK_GETTIME=
22455 gl_saved_libs=$LIBS
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22457 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22458 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22459 $as_echo_n "(cached) " >&6
22460 else
22461 ac_func_search_save_LIBS=$LIBS
22462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463 /* end confdefs.h. */
22465 /* Override any GCC internal prototype to avoid an error.
22466 Use char because int might match the return type of a GCC
22467 builtin and then its argument prototype would still apply. */
22468 #ifdef __cplusplus
22469 extern "C"
22470 #endif
22471 char clock_gettime ();
22473 main ()
22475 return clock_gettime ();
22477 return 0;
22479 _ACEOF
22480 for ac_lib in '' rt posix4; do
22481 if test -z "$ac_lib"; then
22482 ac_res="none required"
22483 else
22484 ac_res=-l$ac_lib
22485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22487 if ac_fn_c_try_link "$LINENO"; then :
22488 ac_cv_search_clock_gettime=$ac_res
22490 rm -f core conftest.err conftest.$ac_objext \
22491 conftest$ac_exeext
22492 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22493 break
22495 done
22496 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22498 else
22499 ac_cv_search_clock_gettime=no
22501 rm conftest.$ac_ext
22502 LIBS=$ac_func_search_save_LIBS
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22505 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22506 ac_res=$ac_cv_search_clock_gettime
22507 if test "$ac_res" != no; then :
22508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22509 test "$ac_cv_search_clock_gettime" = "none required" ||
22510 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22513 for ac_func in clock_gettime clock_settime
22514 do :
22515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22517 eval as_val=\$$as_ac_var
22518 if test "x$as_val" = x""yes; then :
22519 cat >>confdefs.h <<_ACEOF
22520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22521 _ACEOF
22524 done
22526 LIBS=$gl_saved_libs
22533 cat >>confdefs.h <<_ACEOF
22534 #define GNULIB_CLOSE_STREAM 1
22535 _ACEOF
22566 if test $gl_cv_have_include_next = yes; then
22567 gl_cv_next_dirent_h='<'dirent.h'>'
22568 else
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22570 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22571 if test "${gl_cv_next_dirent_h+set}" = set; then :
22572 $as_echo_n "(cached) " >&6
22573 else
22575 if test $ac_cv_header_dirent_h = yes; then
22578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22579 /* end confdefs.h. */
22580 #include <dirent.h>
22582 _ACEOF
22583 case "$host_os" in
22584 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22585 *) gl_absname_cpp="$ac_cpp" ;;
22586 esac
22588 case "$host_os" in
22589 mingw*)
22590 gl_dirsep_regex='[/\\]'
22593 gl_dirsep_regex='\/'
22595 esac
22596 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22598 gl_header_literal_regex=`echo 'dirent.h' \
22599 | sed -e "$gl_make_literal_regex_sed"`
22600 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22601 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22602 s|^/[^/]|//&|
22606 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22607 sed -n "$gl_absolute_header_sed"`'"'
22608 else
22609 gl_cv_next_dirent_h='<'dirent.h'>'
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22615 $as_echo "$gl_cv_next_dirent_h" >&6; }
22617 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22619 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22621 gl_next_as_first_directive='<'dirent.h'>'
22622 else
22623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22624 gl_next_as_first_directive=$gl_cv_next_dirent_h
22626 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22631 if test $ac_cv_header_dirent_h = yes; then
22632 HAVE_DIRENT_H=1
22633 else
22634 HAVE_DIRENT_H=0
22646 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22649 if test $HAVE_DUP2 = 1; then
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22651 $as_echo_n "checking whether dup2 works... " >&6; }
22652 if test "${gl_cv_func_dup2_works+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22654 else
22655 if test "$cross_compiling" = yes; then :
22656 case "$host_os" in
22657 mingw*) # on this platform, dup2 always returns 0 for success
22658 gl_cv_func_dup2_works="guessing no" ;;
22659 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22660 gl_cv_func_dup2_works="guessing no" ;;
22661 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22662 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22663 gl_cv_func_dup2_works="guessing no" ;;
22664 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22665 gl_cv_func_dup2_works="guessing no" ;;
22666 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22667 gl_cv_func_dup2_works="guessing no" ;;
22668 *) gl_cv_func_dup2_works="guessing yes" ;;
22669 esac
22670 else
22671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h. */
22674 #include <unistd.h>
22675 #include <fcntl.h>
22676 #include <errno.h>
22678 main ()
22680 int result = 0;
22681 #ifdef FD_CLOEXEC
22682 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22683 result |= 1;
22684 #endif
22685 if (dup2 (1, 1) == 0)
22686 result |= 2;
22687 #ifdef FD_CLOEXEC
22688 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22689 result |= 4;
22690 #endif
22691 close (0);
22692 if (dup2 (0, 0) != -1)
22693 result |= 8;
22694 /* Many gnulib modules require POSIX conformance of EBADF. */
22695 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22696 result |= 16;
22697 /* Flush out some cygwin core dumps. */
22698 if (dup2 (2, -1) != -1 || errno != EBADF)
22699 result |= 32;
22700 dup2 (2, 255);
22701 dup2 (2, 256);
22702 return result;
22705 return 0;
22708 _ACEOF
22709 if ac_fn_c_try_run "$LINENO"; then :
22710 gl_cv_func_dup2_works=yes
22711 else
22712 gl_cv_func_dup2_works=no
22714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22715 conftest.$ac_objext conftest.beam conftest.$ac_ext
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22721 $as_echo "$gl_cv_func_dup2_works" >&6; }
22722 case "$gl_cv_func_dup2_works" in
22723 *yes) ;;
22725 REPLACE_DUP2=1
22726 for ac_func in setdtablesize
22727 do :
22728 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
22729 if test "x$ac_cv_func_setdtablesize" = x""yes; then :
22730 cat >>confdefs.h <<_ACEOF
22731 #define HAVE_SETDTABLESIZE 1
22732 _ACEOF
22735 done
22738 esac
22742 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22751 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22760 GNULIB_DUP2=1
22772 GNULIB_ENVIRON=1
22782 LIB_EXECINFO=''
22783 EXECINFO_H='execinfo.h'
22785 if test $ac_cv_header_execinfo_h = yes; then
22786 gl_saved_libs=$LIBS
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22788 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22789 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22790 $as_echo_n "(cached) " >&6
22791 else
22792 ac_func_search_save_LIBS=$LIBS
22793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22794 /* end confdefs.h. */
22796 /* Override any GCC internal prototype to avoid an error.
22797 Use char because int might match the return type of a GCC
22798 builtin and then its argument prototype would still apply. */
22799 #ifdef __cplusplus
22800 extern "C"
22801 #endif
22802 char backtrace_symbols_fd ();
22804 main ()
22806 return backtrace_symbols_fd ();
22808 return 0;
22810 _ACEOF
22811 for ac_lib in '' execinfo; do
22812 if test -z "$ac_lib"; then
22813 ac_res="none required"
22814 else
22815 ac_res=-l$ac_lib
22816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22818 if ac_fn_c_try_link "$LINENO"; then :
22819 ac_cv_search_backtrace_symbols_fd=$ac_res
22821 rm -f core conftest.err conftest.$ac_objext \
22822 conftest$ac_exeext
22823 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22824 break
22826 done
22827 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22829 else
22830 ac_cv_search_backtrace_symbols_fd=no
22832 rm conftest.$ac_ext
22833 LIBS=$ac_func_search_save_LIBS
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22836 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22837 ac_res=$ac_cv_search_backtrace_symbols_fd
22838 if test "$ac_res" != no; then :
22839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22840 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22841 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22844 LIBS=$gl_saved_libs
22845 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22848 if test -n "$EXECINFO_H"; then
22857 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22863 if test -n "$EXECINFO_H"; then
22864 GL_GENERATE_EXECINFO_H_TRUE=
22865 GL_GENERATE_EXECINFO_H_FALSE='#'
22866 else
22867 GL_GENERATE_EXECINFO_H_TRUE='#'
22868 GL_GENERATE_EXECINFO_H_FALSE=
22879 if test $ac_cv_func_faccessat = no; then
22880 HAVE_FACCESSAT=0
22883 if test $HAVE_FACCESSAT = 0; then
22892 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22895 for ac_func in access
22896 do :
22897 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22898 if test "x$ac_cv_func_access" = x""yes; then :
22899 cat >>confdefs.h <<_ACEOF
22900 #define HAVE_ACCESS 1
22901 _ACEOF
22904 done
22910 cat >>confdefs.h <<_ACEOF
22911 #define GNULIB_FACCESSAT 1
22912 _ACEOF
22920 GNULIB_FACCESSAT=1
22931 if test $ac_cv_func_fcntl = no; then
22935 if test $ac_cv_func_fcntl = no; then
22936 HAVE_FCNTL=0
22937 else
22938 REPLACE_FCNTL=1
22941 else
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22943 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22944 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22945 $as_echo_n "(cached) " >&6
22946 else
22947 if test "$cross_compiling" = yes; then :
22948 # Guess that it works on glibc systems
22949 case $host_os in #((
22950 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
22951 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
22952 esac
22953 else
22954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22955 /* end confdefs.h. */
22957 #include <fcntl.h>
22958 #include <errno.h>
22961 main ()
22963 int result = 0;
22964 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22965 if (errno != EINVAL) result |= 2;
22966 return result;
22969 return 0;
22971 _ACEOF
22972 if ac_fn_c_try_run "$LINENO"; then :
22973 gl_cv_func_fcntl_f_dupfd_works=yes
22974 else
22975 gl_cv_func_fcntl_f_dupfd_works=no
22977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22978 conftest.$ac_objext conftest.beam conftest.$ac_ext
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22983 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22984 case $gl_cv_func_fcntl_f_dupfd_works in
22985 *yes) ;;
22989 if test $ac_cv_func_fcntl = no; then
22990 HAVE_FCNTL=0
22991 else
22992 REPLACE_FCNTL=1
22996 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22998 esac
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
23001 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
23002 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
23003 $as_echo_n "(cached) " >&6
23004 else
23005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23006 /* end confdefs.h. */
23008 #include <fcntl.h>
23009 #ifndef F_DUPFD_CLOEXEC
23010 choke me
23011 #endif
23014 main ()
23018 return 0;
23020 _ACEOF
23021 if ac_fn_c_try_compile "$LINENO"; then :
23022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23023 /* end confdefs.h. */
23025 #ifdef __linux__
23026 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
23027 it to support the semantics on older kernels that failed with EINVAL. */
23028 choke me
23029 #endif
23032 main ()
23036 return 0;
23038 _ACEOF
23039 if ac_fn_c_try_compile "$LINENO"; then :
23040 gl_cv_func_fcntl_f_dupfd_cloexec=yes
23041 else
23042 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
23044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 else
23046 gl_cv_func_fcntl_f_dupfd_cloexec=no
23048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
23051 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
23052 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
23056 if test $ac_cv_func_fcntl = no; then
23057 HAVE_FCNTL=0
23058 else
23059 REPLACE_FCNTL=1
23066 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
23075 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
23083 GNULIB_FCNTL=1
23100 if test $gl_cv_have_include_next = yes; then
23101 gl_cv_next_fcntl_h='<'fcntl.h'>'
23102 else
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23104 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23105 if test "${gl_cv_next_fcntl_h+set}" = set; then :
23106 $as_echo_n "(cached) " >&6
23107 else
23109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23110 /* end confdefs.h. */
23111 #include <fcntl.h>
23113 _ACEOF
23114 case "$host_os" in
23115 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23116 *) gl_absname_cpp="$ac_cpp" ;;
23117 esac
23119 case "$host_os" in
23120 mingw*)
23121 gl_dirsep_regex='[/\\]'
23124 gl_dirsep_regex='\/'
23126 esac
23127 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23129 gl_header_literal_regex=`echo 'fcntl.h' \
23130 | sed -e "$gl_make_literal_regex_sed"`
23131 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23132 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23133 s|^/[^/]|//&|
23137 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23138 sed -n "$gl_absolute_header_sed"`'"'
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23143 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23145 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23147 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23148 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23149 gl_next_as_first_directive='<'fcntl.h'>'
23150 else
23151 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23152 gl_next_as_first_directive=$gl_cv_next_fcntl_h
23154 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23170 LIB_FDATASYNC=
23173 if test $ac_cv_have_decl_fdatasync = no; then
23174 HAVE_DECL_FDATASYNC=0
23175 for ac_func in fdatasync
23176 do :
23177 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
23178 if test "x$ac_cv_func_fdatasync" = x""yes; then :
23179 cat >>confdefs.h <<_ACEOF
23180 #define HAVE_FDATASYNC 1
23181 _ACEOF
23184 done
23186 if test $ac_cv_func_fdatasync = no; then
23187 HAVE_FDATASYNC=0
23189 else
23190 gl_saved_libs=$LIBS
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
23192 $as_echo_n "checking for library containing fdatasync... " >&6; }
23193 if test "${ac_cv_search_fdatasync+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23195 else
23196 ac_func_search_save_LIBS=$LIBS
23197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23198 /* end confdefs.h. */
23200 /* Override any GCC internal prototype to avoid an error.
23201 Use char because int might match the return type of a GCC
23202 builtin and then its argument prototype would still apply. */
23203 #ifdef __cplusplus
23204 extern "C"
23205 #endif
23206 char fdatasync ();
23208 main ()
23210 return fdatasync ();
23212 return 0;
23214 _ACEOF
23215 for ac_lib in '' rt posix4; do
23216 if test -z "$ac_lib"; then
23217 ac_res="none required"
23218 else
23219 ac_res=-l$ac_lib
23220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23222 if ac_fn_c_try_link "$LINENO"; then :
23223 ac_cv_search_fdatasync=$ac_res
23225 rm -f core conftest.err conftest.$ac_objext \
23226 conftest$ac_exeext
23227 if test "${ac_cv_search_fdatasync+set}" = set; then :
23228 break
23230 done
23231 if test "${ac_cv_search_fdatasync+set}" = set; then :
23233 else
23234 ac_cv_search_fdatasync=no
23236 rm conftest.$ac_ext
23237 LIBS=$ac_func_search_save_LIBS
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
23240 $as_echo "$ac_cv_search_fdatasync" >&6; }
23241 ac_res=$ac_cv_search_fdatasync
23242 if test "$ac_res" != no; then :
23243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23244 test "$ac_cv_search_fdatasync" = "none required" ||
23245 LIB_FDATASYNC=$ac_cv_search_fdatasync
23248 LIBS=$gl_saved_libs
23251 if test $HAVE_FDATASYNC = 0; then
23260 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
23268 GNULIB_FDATASYNC=1
23279 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
23280 #include <dirent.h>
23283 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
23284 ac_have_decl=1
23285 else
23286 ac_have_decl=0
23289 cat >>confdefs.h <<_ACEOF
23290 #define HAVE_DECL_FDOPENDIR $ac_have_decl
23291 _ACEOF
23292 if test $ac_have_decl = 1; then :
23294 else
23295 HAVE_DECL_FDOPENDIR=0
23299 if test $ac_cv_func_fdopendir = no; then
23300 HAVE_FDOPENDIR=0
23301 else
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
23303 $as_echo_n "checking whether fdopendir works... " >&6; }
23304 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23305 $as_echo_n "(cached) " >&6
23306 else
23307 if test "$cross_compiling" = yes; then :
23308 case "$host_os" in
23309 # Guess yes on glibc systems.
23310 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
23311 # If we don't know, assume the worst.
23312 *) gl_cv_func_fdopendir_works="guessing no" ;;
23313 esac
23315 else
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h. */
23319 #include <dirent.h>
23320 #include <fcntl.h>
23321 #include <unistd.h>
23322 #if !HAVE_DECL_FDOPENDIR
23323 extern
23324 # ifdef __cplusplus
23326 # endif
23327 DIR *fdopendir (int);
23328 #endif
23331 main ()
23333 int result = 0;
23334 int fd = open ("conftest.c", O_RDONLY);
23335 if (fd < 0) result |= 1;
23336 if (fdopendir (fd)) result |= 2;
23337 if (close (fd)) result |= 4;
23338 return result;
23340 return 0;
23342 _ACEOF
23343 if ac_fn_c_try_run "$LINENO"; then :
23344 gl_cv_func_fdopendir_works=yes
23345 else
23346 gl_cv_func_fdopendir_works=no
23348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23349 conftest.$ac_objext conftest.beam conftest.$ac_ext
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23354 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23355 case "$gl_cv_func_fdopendir_works" in
23356 *yes) ;;
23358 REPLACE_FDOPENDIR=1
23360 esac
23363 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
23372 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
23380 GNULIB_FDOPENDIR=1
23388 cat >>confdefs.h <<_ACEOF
23389 #define GNULIB_FDOPENDIR 1
23390 _ACEOF
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23400 $as_echo_n "checking for __fpending... " >&6; }
23401 if test "${gl_cv_func___fpending+set}" = set; then :
23402 $as_echo_n "(cached) " >&6
23403 else
23405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23406 /* end confdefs.h. */
23407 #include <stdio.h>
23408 #if HAVE_STDIO_EXT_H
23409 # include <stdio_ext.h>
23410 #endif
23413 main ()
23415 return ! __fpending (stdin);
23417 return 0;
23419 _ACEOF
23420 if ac_fn_c_try_link "$LINENO"; then :
23421 gl_cv_func___fpending=yes
23422 else
23423 gl_cv_func___fpending=no
23425 rm -f core conftest.err conftest.$ac_objext \
23426 conftest$ac_exeext conftest.$ac_ext
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23430 $as_echo "$gl_cv_func___fpending" >&6; }
23432 if test $gl_cv_func___fpending = no; then
23441 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23445 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23446 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23447 $as_echo_n "(cached) " >&6
23448 else
23450 for ac_expr in \
23452 '# glibc2' \
23453 'fp->_IO_write_ptr - fp->_IO_write_base' \
23455 '# traditional Unix' \
23456 'fp->_ptr - fp->_base' \
23458 '# BSD' \
23459 'fp->_p - fp->_bf._base' \
23461 '# SCO, Unixware' \
23462 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23464 '# QNX' \
23465 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23467 '# old glibc?' \
23468 'fp->__bufp - fp->__buffer' \
23470 '# old glibc iostream?' \
23471 'fp->_pptr - fp->_pbase' \
23473 '# emx+gcc' \
23474 'fp->_ptr - fp->_buffer' \
23476 '# Minix' \
23477 'fp->_ptr - fp->_buf' \
23479 '# Plan9' \
23480 'fp->wp - fp->buf' \
23482 '# VMS' \
23483 '(*fp)->_ptr - (*fp)->_base' \
23485 '# e.g., DGUX R4.11; the info is not available' \
23487 ; do
23489 # Skip each embedded comment.
23490 case "$ac_expr" in '#'*) continue;; esac
23492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23493 /* end confdefs.h. */
23494 #include <stdio.h>
23496 main ()
23498 FILE *fp = stdin; (void) ($ac_expr);
23500 return 0;
23502 _ACEOF
23503 if ac_fn_c_try_compile "$LINENO"; then :
23504 fp_done=yes
23507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23508 test "$fp_done" = yes && break
23509 done
23511 ac_cv_sys_pending_output_n_bytes=$ac_expr
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23516 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23518 cat >>confdefs.h <<_ACEOF
23519 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23520 _ACEOF
23530 if test $ac_cv_func_fstatat = no; then
23531 HAVE_FSTATAT=0
23532 else
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23534 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23535 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23536 $as_echo_n "(cached) " >&6
23537 else
23538 if test "$cross_compiling" = yes; then :
23539 case "$host_os" in
23540 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23541 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23542 esac
23544 else
23545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23546 /* end confdefs.h. */
23548 #include <fcntl.h>
23549 #include <sys/stat.h>
23551 main (void)
23553 struct stat a;
23554 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23557 _ACEOF
23558 if ac_fn_c_try_run "$LINENO"; then :
23559 gl_cv_func_fstatat_zero_flag=yes
23560 else
23561 gl_cv_func_fstatat_zero_flag=no
23563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23564 conftest.$ac_objext conftest.beam conftest.$ac_ext
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23570 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23572 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23573 *yes+*yes) ;;
23574 *) REPLACE_FSTATAT=1
23575 case $gl_cv_func_fstatat_zero_flag in
23576 *yes)
23578 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23581 esac
23583 esac
23586 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23595 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23603 GNULIB_FSTATAT=1
23612 if test $ac_cv_func_fsync = no; then
23613 HAVE_FSYNC=0
23616 if test $HAVE_FSYNC = 0; then
23625 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23634 GNULIB_FSYNC=1
23642 # Persuade glibc <stdlib.h> to declare getloadavg().
23645 gl_save_LIBS=$LIBS
23647 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23648 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23649 HAVE_GETLOADAVG=1
23650 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23651 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23653 else
23654 gl_func_getloadavg_done=no
23656 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23657 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23658 # to get the right answer into the cache.
23659 # For kstat on solaris, we need to test for libelf and libkvm to force the
23660 # definition of SVR4 below.
23661 if test $gl_func_getloadavg_done = no; then
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23663 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23664 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23665 $as_echo_n "(cached) " >&6
23666 else
23667 ac_check_lib_save_LIBS=$LIBS
23668 LIBS="-lelf $LIBS"
23669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23670 /* end confdefs.h. */
23672 /* Override any GCC internal prototype to avoid an error.
23673 Use char because int might match the return type of a GCC
23674 builtin and then its argument prototype would still apply. */
23675 #ifdef __cplusplus
23676 extern "C"
23677 #endif
23678 char elf_begin ();
23680 main ()
23682 return elf_begin ();
23684 return 0;
23686 _ACEOF
23687 if ac_fn_c_try_link "$LINENO"; then :
23688 ac_cv_lib_elf_elf_begin=yes
23689 else
23690 ac_cv_lib_elf_elf_begin=no
23692 rm -f core conftest.err conftest.$ac_objext \
23693 conftest$ac_exeext conftest.$ac_ext
23694 LIBS=$ac_check_lib_save_LIBS
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23697 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23698 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23699 LIBS="-lelf $LIBS"
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23703 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23704 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23705 $as_echo_n "(cached) " >&6
23706 else
23707 ac_check_lib_save_LIBS=$LIBS
23708 LIBS="-lkvm $LIBS"
23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710 /* end confdefs.h. */
23712 /* Override any GCC internal prototype to avoid an error.
23713 Use char because int might match the return type of a GCC
23714 builtin and then its argument prototype would still apply. */
23715 #ifdef __cplusplus
23716 extern "C"
23717 #endif
23718 char kvm_open ();
23720 main ()
23722 return kvm_open ();
23724 return 0;
23726 _ACEOF
23727 if ac_fn_c_try_link "$LINENO"; then :
23728 ac_cv_lib_kvm_kvm_open=yes
23729 else
23730 ac_cv_lib_kvm_kvm_open=no
23732 rm -f core conftest.err conftest.$ac_objext \
23733 conftest$ac_exeext conftest.$ac_ext
23734 LIBS=$ac_check_lib_save_LIBS
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23737 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23738 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23739 LIBS="-lkvm $LIBS"
23742 # Check for the 4.4BSD definition of getloadavg.
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23744 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23745 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23746 $as_echo_n "(cached) " >&6
23747 else
23748 ac_check_lib_save_LIBS=$LIBS
23749 LIBS="-lutil $LIBS"
23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23751 /* end confdefs.h. */
23753 /* Override any GCC internal prototype to avoid an error.
23754 Use char because int might match the return type of a GCC
23755 builtin and then its argument prototype would still apply. */
23756 #ifdef __cplusplus
23757 extern "C"
23758 #endif
23759 char getloadavg ();
23761 main ()
23763 return getloadavg ();
23765 return 0;
23767 _ACEOF
23768 if ac_fn_c_try_link "$LINENO"; then :
23769 ac_cv_lib_util_getloadavg=yes
23770 else
23771 ac_cv_lib_util_getloadavg=no
23773 rm -f core conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
23775 LIBS=$ac_check_lib_save_LIBS
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23778 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23779 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23780 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23785 if test $gl_func_getloadavg_done = no; then
23786 # There is a commonly available library for RS/6000 AIX.
23787 # Since it is not a standard part of AIX, it might be installed locally.
23788 gl_getloadavg_LIBS=$LIBS
23789 LIBS="-L/usr/local/lib $LIBS"
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23791 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23792 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23793 $as_echo_n "(cached) " >&6
23794 else
23795 ac_check_lib_save_LIBS=$LIBS
23796 LIBS="-lgetloadavg $LIBS"
23797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23798 /* end confdefs.h. */
23800 /* Override any GCC internal prototype to avoid an error.
23801 Use char because int might match the return type of a GCC
23802 builtin and then its argument prototype would still apply. */
23803 #ifdef __cplusplus
23804 extern "C"
23805 #endif
23806 char getloadavg ();
23808 main ()
23810 return getloadavg ();
23812 return 0;
23814 _ACEOF
23815 if ac_fn_c_try_link "$LINENO"; then :
23816 ac_cv_lib_getloadavg_getloadavg=yes
23817 else
23818 ac_cv_lib_getloadavg_getloadavg=no
23820 rm -f core conftest.err conftest.$ac_objext \
23821 conftest$ac_exeext conftest.$ac_ext
23822 LIBS=$ac_check_lib_save_LIBS
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23825 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23826 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23827 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23828 else
23829 LIBS=$gl_getloadavg_LIBS
23834 # Set up the replacement function if necessary.
23835 if test $gl_func_getloadavg_done = no; then
23836 HAVE_GETLOADAVG=0
23838 # Solaris has libkstat which does not require root.
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23840 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23841 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23842 $as_echo_n "(cached) " >&6
23843 else
23844 ac_check_lib_save_LIBS=$LIBS
23845 LIBS="-lkstat $LIBS"
23846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23847 /* end confdefs.h. */
23849 /* Override any GCC internal prototype to avoid an error.
23850 Use char because int might match the return type of a GCC
23851 builtin and then its argument prototype would still apply. */
23852 #ifdef __cplusplus
23853 extern "C"
23854 #endif
23855 char kstat_open ();
23857 main ()
23859 return kstat_open ();
23861 return 0;
23863 _ACEOF
23864 if ac_fn_c_try_link "$LINENO"; then :
23865 ac_cv_lib_kstat_kstat_open=yes
23866 else
23867 ac_cv_lib_kstat_kstat_open=no
23869 rm -f core conftest.err conftest.$ac_objext \
23870 conftest$ac_exeext conftest.$ac_ext
23871 LIBS=$ac_check_lib_save_LIBS
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23874 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23875 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23876 cat >>confdefs.h <<_ACEOF
23877 #define HAVE_LIBKSTAT 1
23878 _ACEOF
23880 LIBS="-lkstat $LIBS"
23884 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23886 # AIX has libperfstat which does not require root
23887 if test $gl_func_getloadavg_done = no; then
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23889 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23890 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23891 $as_echo_n "(cached) " >&6
23892 else
23893 ac_check_lib_save_LIBS=$LIBS
23894 LIBS="-lperfstat $LIBS"
23895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h. */
23898 /* Override any GCC internal prototype to avoid an error.
23899 Use char because int might match the return type of a GCC
23900 builtin and then its argument prototype would still apply. */
23901 #ifdef __cplusplus
23902 extern "C"
23903 #endif
23904 char perfstat_cpu_total ();
23906 main ()
23908 return perfstat_cpu_total ();
23910 return 0;
23912 _ACEOF
23913 if ac_fn_c_try_link "$LINENO"; then :
23914 ac_cv_lib_perfstat_perfstat_cpu_total=yes
23915 else
23916 ac_cv_lib_perfstat_perfstat_cpu_total=no
23918 rm -f core conftest.err conftest.$ac_objext \
23919 conftest$ac_exeext conftest.$ac_ext
23920 LIBS=$ac_check_lib_save_LIBS
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23923 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23924 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
23925 cat >>confdefs.h <<_ACEOF
23926 #define HAVE_LIBPERFSTAT 1
23927 _ACEOF
23929 LIBS="-lperfstat $LIBS"
23933 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
23936 if test $gl_func_getloadavg_done = no; then
23937 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23938 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
23939 gl_func_getloadavg_done=yes
23941 $as_echo "#define DGUX 1" >>confdefs.h
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23944 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23945 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23946 $as_echo_n "(cached) " >&6
23947 else
23948 ac_check_lib_save_LIBS=$LIBS
23949 LIBS="-ldgc $LIBS"
23950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951 /* end confdefs.h. */
23953 /* Override any GCC internal prototype to avoid an error.
23954 Use char because int might match the return type of a GCC
23955 builtin and then its argument prototype would still apply. */
23956 #ifdef __cplusplus
23957 extern "C"
23958 #endif
23959 char dg_sys_info ();
23961 main ()
23963 return dg_sys_info ();
23965 return 0;
23967 _ACEOF
23968 if ac_fn_c_try_link "$LINENO"; then :
23969 ac_cv_lib_dgc_dg_sys_info=yes
23970 else
23971 ac_cv_lib_dgc_dg_sys_info=no
23973 rm -f core conftest.err conftest.$ac_objext \
23974 conftest$ac_exeext conftest.$ac_ext
23975 LIBS=$ac_check_lib_save_LIBS
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23978 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23979 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
23980 cat >>confdefs.h <<_ACEOF
23981 #define HAVE_LIBDGC 1
23982 _ACEOF
23984 LIBS="-ldgc $LIBS"
23996 if test "x$gl_save_LIBS" = x; then
23997 GETLOADAVG_LIBS=$LIBS
23998 else
23999 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
24001 LIBS=$gl_save_LIBS
24004 # Test whether the system declares getloadavg. Solaris has the function
24005 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
24006 for ac_header in sys/loadavg.h
24007 do :
24008 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
24009 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
24010 cat >>confdefs.h <<_ACEOF
24011 #define HAVE_SYS_LOADAVG_H 1
24012 _ACEOF
24016 done
24018 if test $ac_cv_header_sys_loadavg_h = yes; then
24019 HAVE_SYS_LOADAVG_H=1
24020 else
24021 HAVE_SYS_LOADAVG_H=0
24023 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
24024 # include <sys/loadavg.h>
24025 #endif
24026 #include <stdlib.h>
24028 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
24030 else
24031 HAVE_DECL_GETLOADAVG=0
24035 if test $HAVE_GETLOADAVG = 0; then
24044 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
24047 # Figure out what our getloadavg.c needs.
24051 # On HPUX9, an unprivileged user can get load averages this way.
24052 if test $gl_func_getloadavg_done = no; then
24053 for ac_func in pstat_getdynamic
24054 do :
24055 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
24056 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
24057 cat >>confdefs.h <<_ACEOF
24058 #define HAVE_PSTAT_GETDYNAMIC 1
24059 _ACEOF
24060 gl_func_getloadavg_done=yes
24062 done
24066 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
24067 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
24068 # Irix 4.0.5F has the header but not the library.
24069 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
24070 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
24071 gl_func_getloadavg_done=yes
24073 $as_echo "#define SVR4 1" >>confdefs.h
24077 if test $gl_func_getloadavg_done = no; then
24078 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
24079 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
24080 gl_func_getloadavg_done=yes
24082 $as_echo "#define UMAX 1" >>confdefs.h
24085 $as_echo "#define UMAX4_3 1" >>confdefs.h
24092 if test $gl_func_getloadavg_done = no; then
24093 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
24094 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
24095 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
24102 if test $gl_func_getloadavg_done = no; then
24103 for ac_header in mach/mach.h
24104 do :
24105 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
24106 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
24107 cat >>confdefs.h <<_ACEOF
24108 #define HAVE_MACH_MACH_H 1
24109 _ACEOF
24113 done
24117 for ac_header in nlist.h
24118 do :
24119 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
24120 if test "x$ac_cv_header_nlist_h" = x""yes; then :
24121 cat >>confdefs.h <<_ACEOF
24122 #define HAVE_NLIST_H 1
24123 _ACEOF
24124 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
24126 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
24128 cat >>confdefs.h <<_ACEOF
24129 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
24130 _ACEOF
24135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24136 /* end confdefs.h. */
24137 #include <nlist.h>
24139 main ()
24141 struct nlist x;
24142 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
24143 x.n_un.n_name = "";
24144 #else
24145 x.n_name = "";
24146 #endif
24148 return 0;
24150 _ACEOF
24151 if ac_fn_c_try_link "$LINENO"; then :
24153 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
24156 rm -f core conftest.err conftest.$ac_objext \
24157 conftest$ac_exeext conftest.$ac_ext
24161 done
24169 GNULIB_GETLOADAVG=1
24180 if test $REPLACE_GETOPT = 1; then
24189 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24199 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24204 GNULIB_GL_UNISTD_H_GETOPT=1
24213 REPLACE_GETOPT=0
24214 if test -n "$gl_replace_getopt"; then
24215 REPLACE_GETOPT=1
24218 if test $REPLACE_GETOPT = 1; then
24220 GETOPT_H=getopt.h
24222 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
24228 if test $REPLACE_GETOPT = 1; then
24237 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24247 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24252 GNULIB_GL_UNISTD_H_GETOPT=1
24266 gl_gettimeofday_timezone=void
24267 if test $ac_cv_func_gettimeofday != yes; then
24268 HAVE_GETTIMEOFDAY=0
24269 else
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
24274 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
24275 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
24276 $as_echo_n "(cached) " >&6
24277 else
24278 if test "$cross_compiling" = yes; then :
24279 # When cross-compiling:
24280 case "$host_os" in
24281 # Guess all is fine on glibc systems.
24282 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
24283 # If we don't know, assume the worst.
24284 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
24285 esac
24287 else
24288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24289 /* end confdefs.h. */
24290 #include <string.h>
24291 #include <sys/time.h>
24292 #include <time.h>
24293 #include <stdlib.h>
24296 main ()
24299 time_t t = 0;
24300 struct tm *lt;
24301 struct tm saved_lt;
24302 struct timeval tv;
24303 lt = localtime (&t);
24304 saved_lt = *lt;
24305 gettimeofday (&tv, NULL);
24306 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24309 return 0;
24311 _ACEOF
24312 if ac_fn_c_try_run "$LINENO"; then :
24313 gl_cv_func_gettimeofday_clobber=no
24314 else
24315 gl_cv_func_gettimeofday_clobber=yes
24317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24318 conftest.$ac_objext conftest.beam conftest.$ac_ext
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24323 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24325 case "$gl_cv_func_gettimeofday_clobber" in
24326 *yes)
24327 REPLACE_GETTIMEOFDAY=1
24330 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24333 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24337 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24340 esac
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24343 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24344 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24345 $as_echo_n "(cached) " >&6
24346 else
24347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24348 /* end confdefs.h. */
24349 #include <sys/time.h>
24350 struct timeval c;
24351 int gettimeofday (struct timeval *restrict, void *restrict);
24354 main ()
24356 /* glibc uses struct timezone * rather than the POSIX void *
24357 if _GNU_SOURCE is defined. However, since the only portable
24358 use of gettimeofday uses NULL as the second parameter, and
24359 since the glibc definition is actually more typesafe, it is
24360 not worth wrapping this to get a compliant signature. */
24361 int (*f) (struct timeval *restrict, void *restrict)
24362 = gettimeofday;
24363 int x = f (&c, 0);
24364 return !(x | c.tv_sec | c.tv_usec);
24367 return 0;
24369 _ACEOF
24370 if ac_fn_c_try_compile "$LINENO"; then :
24371 gl_cv_func_gettimeofday_posix_signature=yes
24372 else
24373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24374 /* end confdefs.h. */
24375 #include <sys/time.h>
24376 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24379 main ()
24383 return 0;
24385 _ACEOF
24386 if ac_fn_c_try_compile "$LINENO"; then :
24387 gl_cv_func_gettimeofday_posix_signature=almost
24388 else
24389 gl_cv_func_gettimeofday_posix_signature=no
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24396 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24397 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
24398 gl_gettimeofday_timezone='struct timezone'
24399 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24400 REPLACE_GETTIMEOFDAY=1
24402 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24403 REPLACE_GETTIMEOFDAY=1
24408 cat >>confdefs.h <<_ACEOF
24409 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24410 _ACEOF
24413 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
24422 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24425 for ac_header in sys/timeb.h
24426 do :
24427 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24428 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
24429 cat >>confdefs.h <<_ACEOF
24430 #define HAVE_SYS_TIMEB_H 1
24431 _ACEOF
24435 done
24437 for ac_func in _ftime
24438 do :
24439 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
24440 if test "x$ac_cv_func__ftime" = x""yes; then :
24441 cat >>confdefs.h <<_ACEOF
24442 #define HAVE__FTIME 1
24443 _ACEOF
24446 done
24455 GNULIB_GETTIMEOFDAY=1
24466 if test $ac_cv_func_lstat = yes; then
24468 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24469 *no)
24470 REPLACE_LSTAT=1
24472 esac
24473 else
24474 HAVE_LSTAT=0
24477 if test $REPLACE_LSTAT = 1; then
24486 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24495 GNULIB_LSTAT=1
24506 if test $ac_cv_have_decl_memrchr = no; then
24507 HAVE_DECL_MEMRCHR=0
24510 for ac_func in memrchr
24511 do :
24512 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24513 if test "x$ac_cv_func_memrchr" = x""yes; then :
24514 cat >>confdefs.h <<_ACEOF
24515 #define HAVE_MEMRCHR 1
24516 _ACEOF
24519 done
24522 if test $ac_cv_func_memrchr = no; then
24531 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24540 GNULIB_MEMRCHR=1
24552 if test $ac_cv_func_mkostemp != yes; then
24553 HAVE_MKOSTEMP=0
24556 if test $HAVE_MKOSTEMP = 0; then
24565 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
24572 cat >>confdefs.h <<_ACEOF
24573 #define GNULIB_MKOSTEMP 1
24574 _ACEOF
24582 GNULIB_MKOSTEMP=1
24594 if test $APPLE_UNIVERSAL_BUILD = 1; then
24595 # A universal build on Apple Mac OS X platforms.
24596 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24597 # But we need a configuration result that is valid in both modes.
24598 gl_cv_func_working_mktime=no
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24601 $as_echo_n "checking for working mktime... " >&6; }
24602 if test "${gl_cv_func_working_mktime+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 if test "$cross_compiling" = yes; then :
24606 gl_cv_func_working_mktime=no
24607 else
24608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24609 /* end confdefs.h. */
24610 /* Test program from Paul Eggert and Tony Leneis. */
24611 #include <limits.h>
24612 #include <stdlib.h>
24613 #include <time.h>
24615 #ifdef HAVE_UNISTD_H
24616 # include <unistd.h>
24617 #endif
24619 #if HAVE_DECL_ALARM
24620 # include <signal.h>
24621 #endif
24623 /* Work around redefinition to rpl_putenv by other config tests. */
24624 #undef putenv
24626 static time_t time_t_max;
24627 static time_t time_t_min;
24629 /* Values we'll use to set the TZ environment variable. */
24630 static char *tz_strings[] = {
24631 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24632 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24634 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24636 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24637 Based on a problem report from Andreas Jaeger. */
24638 static int
24639 spring_forward_gap ()
24641 /* glibc (up to about 1998-10-07) failed this test. */
24642 struct tm tm;
24644 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24645 instead of "TZ=America/Vancouver" in order to detect the bug even
24646 on systems that don't support the Olson extension, or don't have the
24647 full zoneinfo tables installed. */
24648 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24650 tm.tm_year = 98;
24651 tm.tm_mon = 3;
24652 tm.tm_mday = 5;
24653 tm.tm_hour = 2;
24654 tm.tm_min = 0;
24655 tm.tm_sec = 0;
24656 tm.tm_isdst = -1;
24657 return mktime (&tm) != (time_t) -1;
24660 static int
24661 mktime_test1 (time_t now)
24663 struct tm *lt;
24664 return ! (lt = localtime (&now)) || mktime (lt) == now;
24667 static int
24668 mktime_test (time_t now)
24670 return (mktime_test1 (now)
24671 && mktime_test1 ((time_t) (time_t_max - now))
24672 && mktime_test1 ((time_t) (time_t_min + now)));
24675 static int
24676 irix_6_4_bug ()
24678 /* Based on code from Ariel Faigon. */
24679 struct tm tm;
24680 tm.tm_year = 96;
24681 tm.tm_mon = 3;
24682 tm.tm_mday = 0;
24683 tm.tm_hour = 0;
24684 tm.tm_min = 0;
24685 tm.tm_sec = 0;
24686 tm.tm_isdst = -1;
24687 mktime (&tm);
24688 return tm.tm_mon == 2 && tm.tm_mday == 31;
24691 static int
24692 bigtime_test (int j)
24694 struct tm tm;
24695 time_t now;
24696 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24697 now = mktime (&tm);
24698 if (now != (time_t) -1)
24700 struct tm *lt = localtime (&now);
24701 if (! (lt
24702 && lt->tm_year == tm.tm_year
24703 && lt->tm_mon == tm.tm_mon
24704 && lt->tm_mday == tm.tm_mday
24705 && lt->tm_hour == tm.tm_hour
24706 && lt->tm_min == tm.tm_min
24707 && lt->tm_sec == tm.tm_sec
24708 && lt->tm_yday == tm.tm_yday
24709 && lt->tm_wday == tm.tm_wday
24710 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24711 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24712 return 0;
24714 return 1;
24717 static int
24718 year_2050_test ()
24720 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24721 ignoring leap seconds. */
24722 unsigned long int answer = 2527315200UL;
24724 struct tm tm;
24725 time_t t;
24726 tm.tm_year = 2050 - 1900;
24727 tm.tm_mon = 2 - 1;
24728 tm.tm_mday = 1;
24729 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24730 tm.tm_isdst = -1;
24732 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24733 instead of "TZ=America/Vancouver" in order to detect the bug even
24734 on systems that don't support the Olson extension, or don't have the
24735 full zoneinfo tables installed. */
24736 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24738 t = mktime (&tm);
24740 /* Check that the result is either a failure, or close enough
24741 to the correct answer that we can assume the discrepancy is
24742 due to leap seconds. */
24743 return (t == (time_t) -1
24744 || (0 < t && answer - 120 <= t && t <= answer + 120));
24748 main ()
24750 int result = 0;
24751 time_t t, delta;
24752 int i, j;
24753 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24754 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24756 #if HAVE_DECL_ALARM
24757 /* This test makes some buggy mktime implementations loop.
24758 Give up after 60 seconds; a mktime slower than that
24759 isn't worth using anyway. */
24760 signal (SIGALRM, SIG_DFL);
24761 alarm (60);
24762 #endif
24764 time_t_max = (! time_t_signed
24765 ? (time_t) -1
24766 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24767 * 2 + 1));
24768 time_t_min = (! time_t_signed
24769 ? (time_t) 0
24770 : time_t_signed_magnitude
24771 ? ~ (time_t) 0
24772 : ~ time_t_max);
24774 delta = time_t_max / 997; /* a suitable prime number */
24775 for (i = 0; i < N_STRINGS; i++)
24777 if (tz_strings[i])
24778 putenv (tz_strings[i]);
24780 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24781 if (! mktime_test (t))
24782 result |= 1;
24783 if ((result & 2) == 0
24784 && ! (mktime_test ((time_t) 1)
24785 && mktime_test ((time_t) (60 * 60))
24786 && mktime_test ((time_t) (60 * 60 * 24))))
24787 result |= 2;
24789 for (j = 1; (result & 4) == 0; j <<= 1)
24791 if (! bigtime_test (j))
24792 result |= 4;
24793 if (INT_MAX / 2 < j)
24794 break;
24796 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24797 result |= 8;
24799 if (! irix_6_4_bug ())
24800 result |= 16;
24801 if (! spring_forward_gap ())
24802 result |= 32;
24803 if (! year_2050_test ())
24804 result |= 64;
24805 return result;
24807 _ACEOF
24808 if ac_fn_c_try_run "$LINENO"; then :
24809 gl_cv_func_working_mktime=yes
24810 else
24811 gl_cv_func_working_mktime=no
24813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24814 conftest.$ac_objext conftest.beam conftest.$ac_ext
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24820 $as_echo "$gl_cv_func_working_mktime" >&6; }
24822 if test $gl_cv_func_working_mktime = no; then
24823 REPLACE_MKTIME=1
24824 else
24825 REPLACE_MKTIME=0
24828 if test $REPLACE_MKTIME = 1; then
24837 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24846 GNULIB_MKTIME=1
24859 if test $ac_cv_func_pipe2 != yes; then
24860 HAVE_PIPE2=0
24868 GNULIB_PIPE2=1
24879 if test $ac_cv_func_pselect = yes; then
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24881 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24882 if test "${gl_cv_sig_pselect+set}" = set; then :
24883 $as_echo_n "(cached) " >&6
24884 else
24885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24886 /* end confdefs.h. */
24887 #include <sys/select.h>
24890 main ()
24892 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24893 struct timespec const *restrict,
24894 sigset_t const *restrict) = pselect;
24895 return !p;
24897 return 0;
24899 _ACEOF
24900 if ac_fn_c_try_link "$LINENO"; then :
24901 gl_cv_sig_pselect=yes
24902 else
24903 gl_cv_sig_pselect=no
24905 rm -f core conftest.err conftest.$ac_objext \
24906 conftest$ac_exeext conftest.$ac_ext
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24909 $as_echo "$gl_cv_sig_pselect" >&6; }
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24912 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24913 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24914 $as_echo_n "(cached) " >&6
24915 else
24917 if test "$cross_compiling" = yes; then :
24919 case "$host_os" in
24920 # Guess yes on glibc systems.
24921 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
24922 # If we don't know, assume the worst.
24923 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
24924 esac
24926 else
24927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24928 /* end confdefs.h. */
24930 #include <sys/types.h>
24931 #include <sys/time.h>
24932 #if HAVE_SYS_SELECT_H
24933 # include <sys/select.h>
24934 #endif
24935 #include <unistd.h>
24936 #include <errno.h>
24939 main ()
24942 fd_set set;
24943 dup2(0, 16);
24944 FD_ZERO(&set);
24945 FD_SET(16, &set);
24946 close(16);
24947 struct timespec timeout;
24948 timeout.tv_sec = 0;
24949 timeout.tv_nsec = 5000;
24950 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24953 return 0;
24955 _ACEOF
24956 if ac_fn_c_try_run "$LINENO"; then :
24957 gl_cv_func_pselect_detects_ebadf=yes
24958 else
24959 gl_cv_func_pselect_detects_ebadf=no
24961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24962 conftest.$ac_objext conftest.beam conftest.$ac_ext
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24968 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24969 case $gl_cv_func_pselect_detects_ebadf in
24970 *yes) ;;
24971 *) REPLACE_PSELECT=1 ;;
24972 esac
24975 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
24976 REPLACE_PSELECT=1
24979 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
24988 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
24996 GNULIB_PSELECT=1
25006 LIB_PTHREAD_SIGMASK=
25011 if test "$gl_threads_api" = posix; then
25012 if test $ac_cv_func_pthread_sigmask = yes; then
25014 else
25015 if test -n "$LIBMULTITHREAD"; then
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
25017 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
25018 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
25019 $as_echo_n "(cached) " >&6
25020 else
25021 gl_save_LIBS="$LIBS"
25022 LIBS="$LIBS $LIBMULTITHREAD"
25023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25024 /* end confdefs.h. */
25025 #include <pthread.h>
25026 #include <signal.h>
25029 main ()
25031 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
25033 return 0;
25036 _ACEOF
25037 if ac_fn_c_try_link "$LINENO"; then :
25038 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
25039 else
25040 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
25042 rm -f core conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
25044 LIBS="$gl_save_LIBS"
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
25048 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
25049 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
25050 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
25051 else
25052 HAVE_PTHREAD_SIGMASK=0
25054 else
25055 HAVE_PTHREAD_SIGMASK=0
25058 else
25059 if test $ac_cv_func_pthread_sigmask = yes; then
25060 REPLACE_PTHREAD_SIGMASK=1
25061 else
25062 HAVE_PTHREAD_SIGMASK=0
25069 if test $HAVE_PTHREAD_SIGMASK = 1; then
25072 if test -z "$LIB_PTHREAD_SIGMASK"; then
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
25074 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
25075 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
25076 $as_echo_n "(cached) " >&6
25077 else
25079 if test "$cross_compiling" = yes; then :
25081 case "$host_os" in
25082 freebsd* | hpux* | solaris | solaris2.[2-9]*)
25083 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
25085 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
25086 esac
25088 else
25089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h. */
25092 #include <pthread.h>
25093 #include <signal.h>
25094 #include <stddef.h>
25095 int main ()
25097 sigset_t set;
25098 sigemptyset (&set);
25099 return pthread_sigmask (1729, &set, NULL) != 0;
25101 _ACEOF
25102 if ac_fn_c_try_run "$LINENO"; then :
25103 gl_cv_func_pthread_sigmask_in_libc_works=no
25104 else
25105 gl_cv_func_pthread_sigmask_in_libc_works=yes
25107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25108 conftest.$ac_objext conftest.beam conftest.$ac_ext
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
25114 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
25115 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
25116 *no)
25117 REPLACE_PTHREAD_SIGMASK=1
25119 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
25122 esac
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
25126 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
25127 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
25128 $as_echo_n "(cached) " >&6
25129 else
25131 gl_save_LIBS="$LIBS"
25132 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
25133 if test "$cross_compiling" = yes; then :
25134 case "$host_os" in
25135 cygwin*)
25136 gl_cv_func_pthread_sigmask_return_works="guessing no";;
25138 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
25139 esac
25141 else
25142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h. */
25145 #include <pthread.h>
25146 #include <signal.h>
25147 #include <stddef.h>
25148 int main ()
25150 sigset_t set;
25151 sigemptyset (&set);
25152 if (pthread_sigmask (1729, &set, NULL) == -1)
25153 return 1;
25154 return 0;
25156 _ACEOF
25157 if ac_fn_c_try_run "$LINENO"; then :
25158 gl_cv_func_pthread_sigmask_return_works=yes
25159 else
25160 gl_cv_func_pthread_sigmask_return_works=no
25162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25163 conftest.$ac_objext conftest.beam conftest.$ac_ext
25166 LIBS="$gl_save_LIBS"
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
25170 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
25171 case "$gl_cv_func_pthread_sigmask_return_works" in
25172 *no)
25173 REPLACE_PTHREAD_SIGMASK=1
25175 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
25178 esac
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
25181 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
25182 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
25183 $as_echo_n "(cached) " >&6
25184 else
25186 case "$host_os" in
25187 irix*)
25188 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
25190 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
25191 esac
25192 gl_save_LIBS="$LIBS"
25193 LIBS="$LIBS $LIBMULTITHREAD"
25194 if test "$cross_compiling" = yes; then :
25196 else
25197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h. */
25200 #include <pthread.h>
25201 #include <signal.h>
25202 #include <stdio.h>
25203 #include <stdlib.h>
25204 #include <unistd.h>
25205 static volatile int sigint_occurred;
25206 static void
25207 sigint_handler (int sig)
25209 sigint_occurred++;
25211 int main ()
25213 sigset_t set;
25214 int pid = getpid ();
25215 char command[80];
25216 signal (SIGINT, sigint_handler);
25217 sigemptyset (&set);
25218 sigaddset (&set, SIGINT);
25219 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
25220 return 1;
25221 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
25222 if (!(system (command) == 0))
25223 return 2;
25224 sleep (2);
25225 if (!(sigint_occurred == 0))
25226 return 3;
25227 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
25228 return 4;
25229 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
25230 return 5;
25231 return 0;
25233 _ACEOF
25234 if ac_fn_c_try_run "$LINENO"; then :
25236 else
25237 gl_cv_func_pthread_sigmask_unblock_works=no
25239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25240 conftest.$ac_objext conftest.beam conftest.$ac_ext
25243 LIBS="$gl_save_LIBS"
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
25247 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
25248 case "$gl_cv_func_pthread_sigmask_unblock_works" in
25249 *no)
25250 REPLACE_PTHREAD_SIGMASK=1
25252 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
25255 esac
25258 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
25267 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
25270 if test $HAVE_PTHREAD_SIGMASK = 1; then
25272 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
25282 GNULIB_PTHREAD_SIGMASK=1
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
25291 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
25292 if test "${gl_cv_func_svid_putenv+set}" = set; then :
25293 $as_echo_n "(cached) " >&6
25294 else
25295 if test "$cross_compiling" = yes; then :
25296 case "$host_os" in
25297 # Guess yes on glibc systems.
25298 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
25299 # If we don't know, assume the worst.
25300 *) gl_cv_func_svid_putenv="guessing no" ;;
25301 esac
25303 else
25304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h. */
25306 $ac_includes_default
25308 main ()
25311 /* Put it in env. */
25312 if (putenv ("CONFTEST_putenv=val"))
25313 return 1;
25315 /* Try to remove it. */
25316 if (putenv ("CONFTEST_putenv"))
25317 return 2;
25319 /* Make sure it was deleted. */
25320 if (getenv ("CONFTEST_putenv") != 0)
25321 return 3;
25323 return 0;
25326 return 0;
25328 _ACEOF
25329 if ac_fn_c_try_run "$LINENO"; then :
25330 gl_cv_func_svid_putenv=yes
25331 else
25332 gl_cv_func_svid_putenv=no
25334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25335 conftest.$ac_objext conftest.beam conftest.$ac_ext
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25341 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25342 case "$gl_cv_func_svid_putenv" in
25343 *yes) ;;
25345 REPLACE_PUTENV=1
25347 esac
25349 if test $REPLACE_PUTENV = 1; then
25358 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
25361 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25362 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
25363 ac_have_decl=1
25364 else
25365 ac_have_decl=0
25368 cat >>confdefs.h <<_ACEOF
25369 #define HAVE_DECL__PUTENV $ac_have_decl
25370 _ACEOF
25379 GNULIB_PUTENV=1
25386 # Check whether --enable-acl was given.
25387 if test "${enable_acl+set}" = set; then :
25388 enableval=$enable_acl;
25389 else
25390 enable_acl=auto
25394 LIB_ACL=
25395 use_acl=0
25396 if test "x$enable_acl" != "xno"; then
25397 for ac_header in sys/acl.h
25398 do :
25399 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25400 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
25401 cat >>confdefs.h <<_ACEOF
25402 #define HAVE_SYS_ACL_H 1
25403 _ACEOF
25407 done
25409 if test $ac_cv_header_sys_acl_h = yes; then
25410 ac_save_LIBS=$LIBS
25412 if test $use_acl = 0; then
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25414 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25415 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25416 $as_echo_n "(cached) " >&6
25417 else
25418 ac_func_search_save_LIBS=$LIBS
25419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25420 /* end confdefs.h. */
25422 /* Override any GCC internal prototype to avoid an error.
25423 Use char because int might match the return type of a GCC
25424 builtin and then its argument prototype would still apply. */
25425 #ifdef __cplusplus
25426 extern "C"
25427 #endif
25428 char acl_get_file ();
25430 main ()
25432 return acl_get_file ();
25434 return 0;
25436 _ACEOF
25437 for ac_lib in '' acl pacl; do
25438 if test -z "$ac_lib"; then
25439 ac_res="none required"
25440 else
25441 ac_res=-l$ac_lib
25442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25444 if ac_fn_c_try_link "$LINENO"; then :
25445 ac_cv_search_acl_get_file=$ac_res
25447 rm -f core conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext
25449 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25450 break
25452 done
25453 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25455 else
25456 ac_cv_search_acl_get_file=no
25458 rm conftest.$ac_ext
25459 LIBS=$ac_func_search_save_LIBS
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25462 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25463 ac_res=$ac_cv_search_acl_get_file
25464 if test "$ac_res" != no; then :
25465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25466 if test "$ac_cv_search_acl_get_file" != "none required"; then
25467 LIB_ACL=$ac_cv_search_acl_get_file
25469 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25470 acl_free acl_from_mode acl_from_text \
25471 acl_delete_def_file acl_extended_file \
25472 acl_delete_fd_np acl_delete_file_np \
25473 acl_copy_ext_native acl_create_entry_np \
25474 acl_to_short_text acl_free_text
25475 do :
25476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25477 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25478 eval as_val=\$$as_ac_var
25479 if test "x$as_val" = x""yes; then :
25480 cat >>confdefs.h <<_ACEOF
25481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25482 _ACEOF
25485 done
25487 # If the acl_get_file bug is detected, don't enable the ACL support.
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25490 $as_echo_n "checking for working acl_get_file... " >&6; }
25491 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25493 else
25494 if test "$cross_compiling" = yes; then :
25495 gl_cv_func_working_acl_get_file=cross-compiling
25496 else
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h. */
25499 #include <sys/types.h>
25500 #include <sys/acl.h>
25501 #include <errno.h>
25504 main ()
25506 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25507 return 1;
25508 return 0;
25511 return 0;
25513 _ACEOF
25514 if ac_fn_c_try_run "$LINENO"; then :
25515 gl_cv_func_working_acl_get_file=yes
25516 else
25517 gl_cv_func_working_acl_get_file=no
25519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25520 conftest.$ac_objext conftest.beam conftest.$ac_ext
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25525 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25527 if test $gl_cv_func_working_acl_get_file = yes; then :
25528 use_acl=1
25531 if test $use_acl = 1; then
25532 for ac_header in acl/libacl.h
25533 do :
25534 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25535 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
25536 cat >>confdefs.h <<_ACEOF
25537 #define HAVE_ACL_LIBACL_H 1
25538 _ACEOF
25542 done
25552 for ac_func in acl_entries
25553 do :
25554 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25555 if test "x$ac_cv_func_acl_entries" = x""yes; then :
25556 cat >>confdefs.h <<_ACEOF
25557 #define HAVE_ACL_ENTRIES 1
25558 _ACEOF
25560 else
25562 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25565 done
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25569 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25570 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25571 $as_echo_n "(cached) " >&6
25572 else
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25575 #include <sys/types.h>
25576 #include <sys/acl.h>
25577 int type = ACL_FIRST_ENTRY;
25579 main ()
25583 return 0;
25585 _ACEOF
25586 if ac_fn_c_try_compile "$LINENO"; then :
25587 gl_cv_acl_ACL_FIRST_ENTRY=yes
25588 else
25589 gl_cv_acl_ACL_FIRST_ENTRY=no
25591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25594 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25595 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25597 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25601 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25602 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25603 $as_echo_n "(cached) " >&6
25604 else
25605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25606 /* end confdefs.h. */
25607 #include <sys/types.h>
25608 #include <sys/acl.h>
25609 int type = ACL_TYPE_EXTENDED;
25611 main ()
25615 return 0;
25617 _ACEOF
25618 if ac_fn_c_try_compile "$LINENO"; then :
25619 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25620 else
25621 gl_cv_acl_ACL_TYPE_EXTENDED=no
25623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25626 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25627 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25629 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25632 else
25633 LIB_ACL=
25640 if test $use_acl = 0; then
25641 for ac_func in facl
25642 do :
25643 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25644 if test "x$ac_cv_func_facl" = x""yes; then :
25645 cat >>confdefs.h <<_ACEOF
25646 #define HAVE_FACL 1
25647 _ACEOF
25650 done
25652 if test $ac_cv_func_facl = yes; then
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25654 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25655 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25657 else
25658 ac_func_search_save_LIBS=$LIBS
25659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25660 /* end confdefs.h. */
25662 /* Override any GCC internal prototype to avoid an error.
25663 Use char because int might match the return type of a GCC
25664 builtin and then its argument prototype would still apply. */
25665 #ifdef __cplusplus
25666 extern "C"
25667 #endif
25668 char acl_trivial ();
25670 main ()
25672 return acl_trivial ();
25674 return 0;
25676 _ACEOF
25677 for ac_lib in '' sec; do
25678 if test -z "$ac_lib"; then
25679 ac_res="none required"
25680 else
25681 ac_res=-l$ac_lib
25682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25684 if ac_fn_c_try_link "$LINENO"; then :
25685 ac_cv_search_acl_trivial=$ac_res
25687 rm -f core conftest.err conftest.$ac_objext \
25688 conftest$ac_exeext
25689 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25690 break
25692 done
25693 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25695 else
25696 ac_cv_search_acl_trivial=no
25698 rm conftest.$ac_ext
25699 LIBS=$ac_func_search_save_LIBS
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25702 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25703 ac_res=$ac_cv_search_acl_trivial
25704 if test "$ac_res" != no; then :
25705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25706 if test "$ac_cv_search_acl_trivial" != "none required"; then
25707 LIB_ACL=$ac_cv_search_acl_trivial
25712 for ac_func in acl_trivial
25713 do :
25714 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25715 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25716 cat >>confdefs.h <<_ACEOF
25717 #define HAVE_ACL_TRIVIAL 1
25718 _ACEOF
25721 done
25723 use_acl=1
25727 if test $use_acl = 0; then
25728 for ac_func in getacl
25729 do :
25730 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25731 if test "x$ac_cv_func_getacl" = x""yes; then :
25732 cat >>confdefs.h <<_ACEOF
25733 #define HAVE_GETACL 1
25734 _ACEOF
25737 done
25739 if test $ac_cv_func_getacl = yes; then
25740 use_acl=1
25742 for ac_header in aclv.h
25743 do :
25744 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25746 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25747 cat >>confdefs.h <<_ACEOF
25748 #define HAVE_ACLV_H 1
25749 _ACEOF
25753 done
25757 if test $use_acl = 0; then
25758 for ac_func in aclx_get
25759 do :
25760 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25761 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25762 cat >>confdefs.h <<_ACEOF
25763 #define HAVE_ACLX_GET 1
25764 _ACEOF
25767 done
25769 if test $ac_cv_func_aclx_get = yes; then
25770 use_acl=1
25774 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25775 for ac_func in statacl
25776 do :
25777 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25778 if test "x$ac_cv_func_statacl" = x""yes; then :
25779 cat >>confdefs.h <<_ACEOF
25780 #define HAVE_STATACL 1
25781 _ACEOF
25784 done
25786 if test $ac_cv_func_statacl = yes; then
25787 use_acl=1
25791 if test $use_acl = 0; then
25792 for ac_func in aclsort
25793 do :
25794 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25795 if test "x$ac_cv_func_aclsort" = x""yes; then :
25796 cat >>confdefs.h <<_ACEOF
25797 #define HAVE_ACLSORT 1
25798 _ACEOF
25801 done
25803 if test $ac_cv_func_aclsort = yes; then
25804 use_acl=1
25808 LIBS=$ac_save_LIBS
25810 if test "x$enable_acl$use_acl" = "xyes0"; then
25811 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25812 elif test "x$enable_acl$use_acl" = "xauto0"; then
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25814 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25816 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25821 cat >>confdefs.h <<_ACEOF
25822 #define USE_ACL $use_acl
25823 _ACEOF
25825 USE_ACL=$use_acl
25831 if test $ac_cv_func_readlink = no; then
25832 HAVE_READLINK=0
25833 else
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25835 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25836 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25837 $as_echo_n "(cached) " >&6
25838 else
25839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25840 /* end confdefs.h. */
25841 #include <unistd.h>
25842 /* Cause compilation failure if original declaration has wrong type. */
25843 ssize_t readlink (const char *, char *, size_t);
25845 main ()
25849 return 0;
25851 _ACEOF
25852 if ac_fn_c_try_compile "$LINENO"; then :
25853 gl_cv_decl_readlink_works=yes
25854 else
25855 gl_cv_decl_readlink_works=no
25857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25860 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25862 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25863 if test "${gl_cv_func_readlink_works+set}" = set; then :
25864 $as_echo_n "(cached) " >&6
25865 else
25866 # We have readlink, so assume ln -s works.
25867 ln -s conftest.no-such conftest.link
25868 ln -s conftest.link conftest.lnk2
25869 if test "$cross_compiling" = yes; then :
25870 case "$host_os" in
25871 # Guess yes on glibc systems.
25872 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25873 # If we don't know, assume the worst.
25874 *) gl_cv_func_readlink_works="guessing no" ;;
25875 esac
25877 else
25878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25879 /* end confdefs.h. */
25880 #include <unistd.h>
25883 main ()
25885 char buf[20];
25886 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25888 return 0;
25890 _ACEOF
25891 if ac_fn_c_try_run "$LINENO"; then :
25892 gl_cv_func_readlink_works=yes
25893 else
25894 gl_cv_func_readlink_works=no
25896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25897 conftest.$ac_objext conftest.beam conftest.$ac_ext
25900 rm -f conftest.link conftest.lnk2
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25903 $as_echo "$gl_cv_func_readlink_works" >&6; }
25904 case "$gl_cv_func_readlink_works" in
25905 *yes)
25906 if test "$gl_cv_decl_readlink_works" != yes; then
25907 REPLACE_READLINK=1
25912 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25914 REPLACE_READLINK=1
25916 esac
25919 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25928 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25939 GNULIB_READLINK=1
25949 if test $ac_cv_func_readlinkat = no; then
25950 HAVE_READLINKAT=0
25953 if test $HAVE_READLINKAT = 0; then
25962 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
25970 GNULIB_READLINKAT=1
25977 for ac_func in sig2str
25978 do :
25979 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
25980 if test "x$ac_cv_func_sig2str" = x""yes; then :
25981 cat >>confdefs.h <<_ACEOF
25982 #define HAVE_SIG2STR 1
25983 _ACEOF
25986 done
25989 if test $ac_cv_func_sig2str = no; then
25998 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
26015 if test $gl_cv_have_include_next = yes; then
26016 gl_cv_next_signal_h='<'signal.h'>'
26017 else
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26019 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
26020 if test "${gl_cv_next_signal_h+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h. */
26026 #include <signal.h>
26028 _ACEOF
26029 case "$host_os" in
26030 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26031 *) gl_absname_cpp="$ac_cpp" ;;
26032 esac
26034 case "$host_os" in
26035 mingw*)
26036 gl_dirsep_regex='[/\\]'
26039 gl_dirsep_regex='\/'
26041 esac
26042 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26044 gl_header_literal_regex=`echo 'signal.h' \
26045 | sed -e "$gl_make_literal_regex_sed"`
26046 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26047 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26048 s|^/[^/]|//&|
26052 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26053 sed -n "$gl_absolute_header_sed"`'"'
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26058 $as_echo "$gl_cv_next_signal_h" >&6; }
26060 NEXT_SIGNAL_H=$gl_cv_next_signal_h
26062 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26064 gl_next_as_first_directive='<'signal.h'>'
26065 else
26066 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26067 gl_next_as_first_directive=$gl_cv_next_signal_h
26069 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
26075 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26076 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
26077 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26078 #include <signal.h>
26081 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
26083 else
26084 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
26093 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26094 #include <signal.h>
26097 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
26099 else
26100 HAVE_SIGHANDLER_T=0
26106 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
26107 /* <sys/types.h> is not needed according to POSIX, but the
26108 <sys/socket.h> in i386-unknown-freebsd4.10 and
26109 powerpc-apple-darwin5.5 required it. */
26110 #include <sys/types.h>
26111 #if HAVE_SYS_SOCKET_H
26112 # include <sys/socket.h>
26113 #elif HAVE_WS2TCPIP_H
26114 # include <ws2tcpip.h>
26115 #endif
26118 if test "x$ac_cv_type_socklen_t" = x""yes; then :
26120 else
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
26122 $as_echo_n "checking for socklen_t equivalent... " >&6; }
26123 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
26124 $as_echo_n "(cached) " >&6
26125 else
26126 # Systems have either "struct sockaddr *" or
26127 # "void *" as the second argument to getpeername
26128 gl_cv_socklen_t_equiv=
26129 for arg2 in "struct sockaddr" void; do
26130 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
26131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26133 #include <sys/types.h>
26134 #include <sys/socket.h>
26136 int getpeername (int, $arg2 *, $t *);
26138 main ()
26140 $t len;
26141 getpeername (0, 0, &len);
26143 return 0;
26145 _ACEOF
26146 if ac_fn_c_try_compile "$LINENO"; then :
26147 gl_cv_socklen_t_equiv="$t"
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150 test "$gl_cv_socklen_t_equiv" != "" && break
26151 done
26152 test "$gl_cv_socklen_t_equiv" != "" && break
26153 done
26157 if test "$gl_cv_socklen_t_equiv" = ""; then
26158 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
26161 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
26163 cat >>confdefs.h <<_ACEOF
26164 #define socklen_t $gl_cv_socklen_t_equiv
26165 _ACEOF
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26171 $as_echo_n "checking for ssize_t... " >&6; }
26172 if test "${gt_cv_ssize_t+set}" = set; then :
26173 $as_echo_n "(cached) " >&6
26174 else
26175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176 /* end confdefs.h. */
26177 #include <sys/types.h>
26179 main ()
26181 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26182 return !x;
26184 return 0;
26186 _ACEOF
26187 if ac_fn_c_try_compile "$LINENO"; then :
26188 gt_cv_ssize_t=yes
26189 else
26190 gt_cv_ssize_t=no
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26195 $as_echo "$gt_cv_ssize_t" >&6; }
26196 if test $gt_cv_ssize_t = no; then
26198 $as_echo "#define ssize_t int" >>confdefs.h
26206 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>
26207 #include <sys/stat.h>
26209 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
26211 cat >>confdefs.h <<_ACEOF
26212 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26213 _ACEOF
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26216 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26217 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
26218 $as_echo_n "(cached) " >&6
26219 else
26220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26221 /* end confdefs.h. */
26223 #include <sys/types.h>
26224 #include <sys/stat.h>
26225 #if HAVE_SYS_TIME_H
26226 # include <sys/time.h>
26227 #endif
26228 #include <time.h>
26229 struct timespec ts;
26230 struct stat st;
26233 main ()
26236 st.st_atim = ts;
26239 return 0;
26241 _ACEOF
26242 if ac_fn_c_try_compile "$LINENO"; then :
26243 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
26244 else
26245 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
26247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26250 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26251 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26253 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26256 else
26257 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>
26258 #include <sys/stat.h>
26260 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
26262 cat >>confdefs.h <<_ACEOF
26263 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26264 _ACEOF
26267 else
26268 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26269 #include <sys/stat.h>
26271 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
26273 cat >>confdefs.h <<_ACEOF
26274 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26275 _ACEOF
26278 else
26279 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>
26280 #include <sys/stat.h>
26282 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
26284 cat >>confdefs.h <<_ACEOF
26285 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26286 _ACEOF
26301 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>
26302 #include <sys/stat.h>
26304 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
26306 cat >>confdefs.h <<_ACEOF
26307 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26308 _ACEOF
26311 else
26312 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26313 #include <sys/stat.h>
26315 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
26317 cat >>confdefs.h <<_ACEOF
26318 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26319 _ACEOF
26322 else
26323 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>
26324 #include <sys/stat.h>
26326 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
26328 cat >>confdefs.h <<_ACEOF
26329 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26330 _ACEOF
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26342 $as_echo_n "checking for working stdalign.h... " >&6; }
26343 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26344 $as_echo_n "(cached) " >&6
26345 else
26346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26347 /* end confdefs.h. */
26348 #include <stdalign.h>
26349 #include <stddef.h>
26351 /* Test that alignof yields a result consistent with offsetof.
26352 This catches GCC bug 52023
26353 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26354 #ifdef __cplusplus
26355 template <class t> struct alignof_helper { char a; t b; };
26356 # define ao(type) offsetof (alignof_helper<type>, b)
26357 #else
26358 # define ao(type) offsetof (struct { char a; type b; }, b)
26359 #endif
26360 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26361 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26362 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26364 /* Test _Alignas only on platforms where gnulib can help. */
26365 #if \
26366 ((defined __cplusplus && 201103 <= __cplusplus) \
26367 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26368 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26369 struct alignas_test { char c; char alignas (8) alignas_8; };
26370 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26371 ? 1 : -1];
26372 #endif
26375 main ()
26379 return 0;
26381 _ACEOF
26382 if ac_fn_c_try_compile "$LINENO"; then :
26383 gl_cv_header_working_stdalign_h=yes
26384 else
26385 gl_cv_header_working_stdalign_h=no
26387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26390 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26392 if test $gl_cv_header_working_stdalign_h = yes; then
26393 STDALIGN_H=''
26394 else
26395 STDALIGN_H='stdalign.h'
26399 if test -n "$STDALIGN_H"; then
26400 GL_GENERATE_STDALIGN_H_TRUE=
26401 GL_GENERATE_STDALIGN_H_FALSE='#'
26402 else
26403 GL_GENERATE_STDALIGN_H_TRUE='#'
26404 GL_GENERATE_STDALIGN_H_FALSE=
26409 STDARG_H=''
26410 NEXT_STDARG_H='<stdarg.h>'
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26412 $as_echo_n "checking for va_copy... " >&6; }
26413 if test "${gl_cv_func_va_copy+set}" = set; then :
26414 $as_echo_n "(cached) " >&6
26415 else
26417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26418 /* end confdefs.h. */
26419 #include <stdarg.h>
26421 main ()
26424 #ifndef va_copy
26425 void (*func) (va_list, va_list) = va_copy;
26426 #endif
26429 return 0;
26431 _ACEOF
26432 if ac_fn_c_try_compile "$LINENO"; then :
26433 gl_cv_func_va_copy=yes
26434 else
26435 gl_cv_func_va_copy=no
26437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26441 $as_echo "$gl_cv_func_va_copy" >&6; }
26442 if test $gl_cv_func_va_copy = no; then
26443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26444 /* end confdefs.h. */
26445 #if defined _AIX && !defined __GNUC__
26446 AIX vaccine
26447 #endif
26449 _ACEOF
26450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26451 $EGREP "vaccine" >/dev/null 2>&1; then :
26452 gl_aixcc=yes
26453 else
26454 gl_aixcc=no
26456 rm -f conftest*
26458 if test $gl_aixcc = yes; then
26459 STDARG_H=stdarg.h
26468 if test $gl_cv_have_include_next = yes; then
26469 gl_cv_next_stdarg_h='<'stdarg.h'>'
26470 else
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26472 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26473 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26475 else
26477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26478 /* end confdefs.h. */
26479 #include <stdarg.h>
26481 _ACEOF
26482 case "$host_os" in
26483 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26484 *) gl_absname_cpp="$ac_cpp" ;;
26485 esac
26487 case "$host_os" in
26488 mingw*)
26489 gl_dirsep_regex='[/\\]'
26492 gl_dirsep_regex='\/'
26494 esac
26495 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26497 gl_header_literal_regex=`echo 'stdarg.h' \
26498 | sed -e "$gl_make_literal_regex_sed"`
26499 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26500 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26501 s|^/[^/]|//&|
26505 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26506 sed -n "$gl_absolute_header_sed"`'"'
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26511 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26513 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26515 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26516 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26517 gl_next_as_first_directive='<'stdarg.h'>'
26518 else
26519 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26520 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26522 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26527 if test "$gl_cv_next_stdarg_h" = '""'; then
26528 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26529 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26531 else
26533 saved_as_echo_n="$as_echo_n"
26534 as_echo_n=':'
26535 if test "${gl_cv_func___va_copy+set}" = set; then :
26536 $as_echo_n "(cached) " >&6
26537 else
26539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26540 /* end confdefs.h. */
26541 #include <stdarg.h>
26543 main ()
26546 #ifndef __va_copy
26547 error, bail out
26548 #endif
26551 return 0;
26553 _ACEOF
26554 if ac_fn_c_try_compile "$LINENO"; then :
26555 gl_cv_func___va_copy=yes
26556 else
26557 gl_cv_func___va_copy=no
26559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26562 as_echo_n="$saved_as_echo_n"
26564 if test $gl_cv_func___va_copy = yes; then
26566 $as_echo "#define va_copy __va_copy" >>confdefs.h
26568 else
26571 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26577 if test -n "$STDARG_H"; then
26578 GL_GENERATE_STDARG_H_TRUE=
26579 GL_GENERATE_STDARG_H_FALSE='#'
26580 else
26581 GL_GENERATE_STDARG_H_TRUE='#'
26582 GL_GENERATE_STDARG_H_FALSE=
26590 # Define two additional variables used in the Makefile substitution.
26592 if test "$ac_cv_header_stdbool_h" = yes; then
26593 STDBOOL_H=''
26594 else
26595 STDBOOL_H='stdbool.h'
26598 if test -n "$STDBOOL_H"; then
26599 GL_GENERATE_STDBOOL_H_TRUE=
26600 GL_GENERATE_STDBOOL_H_FALSE='#'
26601 else
26602 GL_GENERATE_STDBOOL_H_TRUE='#'
26603 GL_GENERATE_STDBOOL_H_FALSE=
26607 if test "$ac_cv_type__Bool" = yes; then
26608 HAVE__BOOL=1
26609 else
26610 HAVE__BOOL=0
26617 STDDEF_H=
26618 if test $gt_cv_c_wchar_t = no; then
26619 HAVE_WCHAR_T=0
26620 STDDEF_H=stddef.h
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26623 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26624 if test "${gl_cv_decl_null_works+set}" = set; then :
26625 $as_echo_n "(cached) " >&6
26626 else
26627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26628 /* end confdefs.h. */
26629 #include <stddef.h>
26630 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26633 main ()
26637 return 0;
26639 _ACEOF
26640 if ac_fn_c_try_compile "$LINENO"; then :
26641 gl_cv_decl_null_works=yes
26642 else
26643 gl_cv_decl_null_works=no
26645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26648 $as_echo "$gl_cv_decl_null_works" >&6; }
26649 if test $gl_cv_decl_null_works = no; then
26650 REPLACE_NULL=1
26651 STDDEF_H=stddef.h
26654 if test -n "$STDDEF_H"; then
26655 GL_GENERATE_STDDEF_H_TRUE=
26656 GL_GENERATE_STDDEF_H_FALSE='#'
26657 else
26658 GL_GENERATE_STDDEF_H_TRUE='#'
26659 GL_GENERATE_STDDEF_H_FALSE=
26662 if test -n "$STDDEF_H"; then
26671 if test $gl_cv_have_include_next = yes; then
26672 gl_cv_next_stddef_h='<'stddef.h'>'
26673 else
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26675 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26676 if test "${gl_cv_next_stddef_h+set}" = set; then :
26677 $as_echo_n "(cached) " >&6
26678 else
26680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26681 /* end confdefs.h. */
26682 #include <stddef.h>
26684 _ACEOF
26685 case "$host_os" in
26686 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26687 *) gl_absname_cpp="$ac_cpp" ;;
26688 esac
26690 case "$host_os" in
26691 mingw*)
26692 gl_dirsep_regex='[/\\]'
26695 gl_dirsep_regex='\/'
26697 esac
26698 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26700 gl_header_literal_regex=`echo 'stddef.h' \
26701 | sed -e "$gl_make_literal_regex_sed"`
26702 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26703 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26704 s|^/[^/]|//&|
26708 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26709 sed -n "$gl_absolute_header_sed"`'"'
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26714 $as_echo "$gl_cv_next_stddef_h" >&6; }
26716 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26718 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26720 gl_next_as_first_directive='<'stddef.h'>'
26721 else
26722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26723 gl_next_as_first_directive=$gl_cv_next_stddef_h
26725 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26743 if test $gl_cv_have_include_next = yes; then
26744 gl_cv_next_stdio_h='<'stdio.h'>'
26745 else
26746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26747 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26748 if test "${gl_cv_next_stdio_h+set}" = set; then :
26749 $as_echo_n "(cached) " >&6
26750 else
26752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26753 /* end confdefs.h. */
26754 #include <stdio.h>
26756 _ACEOF
26757 case "$host_os" in
26758 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26759 *) gl_absname_cpp="$ac_cpp" ;;
26760 esac
26762 case "$host_os" in
26763 mingw*)
26764 gl_dirsep_regex='[/\\]'
26767 gl_dirsep_regex='\/'
26769 esac
26770 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26772 gl_header_literal_regex=`echo 'stdio.h' \
26773 | sed -e "$gl_make_literal_regex_sed"`
26774 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26775 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26776 s|^/[^/]|//&|
26780 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26781 sed -n "$gl_absolute_header_sed"`'"'
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26786 $as_echo "$gl_cv_next_stdio_h" >&6; }
26788 NEXT_STDIO_H=$gl_cv_next_stdio_h
26790 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26792 gl_next_as_first_directive='<'stdio.h'>'
26793 else
26794 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26795 gl_next_as_first_directive=$gl_cv_next_stdio_h
26797 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26803 GNULIB_FSCANF=1
26806 cat >>confdefs.h <<_ACEOF
26807 #define GNULIB_FSCANF 1
26808 _ACEOF
26811 GNULIB_SCANF=1
26814 cat >>confdefs.h <<_ACEOF
26815 #define GNULIB_SCANF 1
26816 _ACEOF
26819 GNULIB_FGETC=1
26820 GNULIB_GETC=1
26821 GNULIB_GETCHAR=1
26822 GNULIB_FGETS=1
26823 GNULIB_FREAD=1
26826 GNULIB_FPRINTF=1
26827 GNULIB_PRINTF=1
26828 GNULIB_VFPRINTF=1
26829 GNULIB_VPRINTF=1
26830 GNULIB_FPUTC=1
26831 GNULIB_PUTC=1
26832 GNULIB_PUTCHAR=1
26833 GNULIB_FPUTS=1
26834 GNULIB_PUTS=1
26835 GNULIB_FWRITE=1
26851 if test $gl_cv_have_include_next = yes; then
26852 gl_cv_next_stdlib_h='<'stdlib.h'>'
26853 else
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26855 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26856 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26857 $as_echo_n "(cached) " >&6
26858 else
26860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h. */
26862 #include <stdlib.h>
26864 _ACEOF
26865 case "$host_os" in
26866 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26867 *) gl_absname_cpp="$ac_cpp" ;;
26868 esac
26870 case "$host_os" in
26871 mingw*)
26872 gl_dirsep_regex='[/\\]'
26875 gl_dirsep_regex='\/'
26877 esac
26878 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26880 gl_header_literal_regex=`echo 'stdlib.h' \
26881 | sed -e "$gl_make_literal_regex_sed"`
26882 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26883 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26884 s|^/[^/]|//&|
26888 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26889 sed -n "$gl_absolute_header_sed"`'"'
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26894 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26896 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26898 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26899 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26900 gl_next_as_first_directive='<'stdlib.h'>'
26901 else
26902 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26903 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26905 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26915 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26923 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26935 if test "$ac_cv_have_decl_strtoimax" != yes; then
26936 HAVE_DECL_STRTOIMAX=0
26939 if test $ac_cv_func_strtoimax = yes; then
26940 HAVE_STRTOIMAX=1
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26942 $as_echo_n "checking whether strtoimax works... " >&6; }
26943 if test "${gl_cv_func_strtoimax+set}" = set; then :
26944 $as_echo_n "(cached) " >&6
26945 else
26946 if test "$cross_compiling" = yes; then :
26947 case "$host_os" in
26948 # Guess no on AIX 5.
26949 aix5*) gl_cv_func_strtoimax="guessing no" ;;
26950 # Guess yes otherwise.
26951 *) gl_cv_func_strtoimax="guessing yes" ;;
26952 esac
26954 else
26955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26956 /* end confdefs.h. */
26958 #include <errno.h>
26959 #include <string.h>
26960 #include <inttypes.h>
26961 int main ()
26963 if (sizeof (intmax_t) > sizeof (int))
26965 const char *s = "4294967295";
26966 char *p;
26967 intmax_t res;
26968 errno = 0;
26969 res = strtoimax (s, &p, 10);
26970 if (p != s + strlen (s))
26971 return 1;
26972 if (errno != 0)
26973 return 2;
26974 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26975 return 3;
26977 else
26979 const char *s = "2147483647";
26980 char *p;
26981 intmax_t res;
26982 errno = 0;
26983 res = strtoimax (s, &p, 10);
26984 if (p != s + strlen (s))
26985 return 1;
26986 if (errno != 0)
26987 return 2;
26988 if (res != 2147483647)
26989 return 3;
26991 return 0;
26994 _ACEOF
26995 if ac_fn_c_try_run "$LINENO"; then :
26996 gl_cv_func_strtoimax=yes
26997 else
26998 gl_cv_func_strtoimax=no
27000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27001 conftest.$ac_objext conftest.beam conftest.$ac_ext
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
27007 $as_echo "$gl_cv_func_strtoimax" >&6; }
27008 case "$gl_cv_func_strtoimax" in
27009 *no) REPLACE_STRTOIMAX=1 ;;
27010 esac
27011 else
27012 HAVE_STRTOIMAX=0
27015 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
27024 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
27027 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
27028 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
27029 ac_have_decl=1
27030 else
27031 ac_have_decl=0
27034 cat >>confdefs.h <<_ACEOF
27035 #define HAVE_DECL_STRTOLL $ac_have_decl
27036 _ACEOF
27046 GNULIB_STRTOIMAX=1
27056 if test "$ac_cv_have_decl_strtoumax" != yes; then
27057 HAVE_DECL_STRTOUMAX=0
27060 if test $ac_cv_func_strtoumax = no; then
27069 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
27072 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
27073 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
27074 ac_have_decl=1
27075 else
27076 ac_have_decl=0
27079 cat >>confdefs.h <<_ACEOF
27080 #define HAVE_DECL_STRTOULL $ac_have_decl
27081 _ACEOF
27091 GNULIB_STRTOUMAX=1
27099 if test $ac_cv_func_symlink = no; then
27100 HAVE_SYMLINK=0
27101 else
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
27103 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
27104 if test "${gl_cv_func_symlink_works+set}" = set; then :
27105 $as_echo_n "(cached) " >&6
27106 else
27107 if test "$cross_compiling" = yes; then :
27108 case "$host_os" in
27109 # Guess yes on glibc systems.
27110 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
27111 # If we don't know, assume the worst.
27112 *) gl_cv_func_symlink_works="guessing no" ;;
27113 esac
27115 else
27116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27117 /* end confdefs.h. */
27118 #include <unistd.h>
27121 main ()
27123 int result = 0;
27124 if (!symlink ("a", "conftest.link/"))
27125 result |= 1;
27126 if (symlink ("conftest.f", "conftest.lnk2"))
27127 result |= 2;
27128 else if (!symlink ("a", "conftest.lnk2/"))
27129 result |= 4;
27130 return result;
27133 return 0;
27135 _ACEOF
27136 if ac_fn_c_try_run "$LINENO"; then :
27137 gl_cv_func_symlink_works=yes
27138 else
27139 gl_cv_func_symlink_works=no
27141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27142 conftest.$ac_objext conftest.beam conftest.$ac_ext
27145 rm -f conftest.f conftest.link conftest.lnk2
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
27148 $as_echo "$gl_cv_func_symlink_works" >&6; }
27149 case "$gl_cv_func_symlink_works" in
27150 *yes) ;;
27152 REPLACE_SYMLINK=1
27154 esac
27157 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
27166 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
27174 GNULIB_SYMLINK=1
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27184 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27185 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
27186 $as_echo_n "(cached) " >&6
27187 else
27189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27190 /* end confdefs.h. */
27191 #include <sys/select.h>
27193 main ()
27195 struct timeval b;
27197 return 0;
27199 _ACEOF
27200 if ac_fn_c_try_compile "$LINENO"; then :
27201 gl_cv_header_sys_select_h_selfcontained=yes
27202 else
27203 gl_cv_header_sys_select_h_selfcontained=no
27205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27206 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h. */
27209 #include <sys/select.h>
27211 main ()
27213 int memset; int bzero;
27215 return 0;
27218 _ACEOF
27219 if ac_fn_c_try_compile "$LINENO"; then :
27220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27221 /* end confdefs.h. */
27222 #include <sys/select.h>
27224 main ()
27227 #undef memset
27228 #define memset nonexistent_memset
27229 extern
27230 #ifdef __cplusplus
27232 #endif
27233 void *memset (void *, int, unsigned long);
27234 #undef bzero
27235 #define bzero nonexistent_bzero
27236 extern
27237 #ifdef __cplusplus
27239 #endif
27240 void bzero (void *, unsigned long);
27241 fd_set fds;
27242 FD_ZERO (&fds);
27245 return 0;
27248 _ACEOF
27249 if ac_fn_c_try_link "$LINENO"; then :
27251 else
27252 gl_cv_header_sys_select_h_selfcontained=no
27254 rm -f core conftest.err conftest.$ac_objext \
27255 conftest$ac_exeext conftest.$ac_ext
27258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27263 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27273 if test $gl_cv_have_include_next = yes; then
27274 gl_cv_next_sys_select_h='<'sys/select.h'>'
27275 else
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27277 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27278 if test "${gl_cv_next_sys_select_h+set}" = set; then :
27279 $as_echo_n "(cached) " >&6
27280 else
27282 if test $ac_cv_header_sys_select_h = yes; then
27285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27286 /* end confdefs.h. */
27287 #include <sys/select.h>
27289 _ACEOF
27290 case "$host_os" in
27291 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27292 *) gl_absname_cpp="$ac_cpp" ;;
27293 esac
27295 case "$host_os" in
27296 mingw*)
27297 gl_dirsep_regex='[/\\]'
27300 gl_dirsep_regex='\/'
27302 esac
27303 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27305 gl_header_literal_regex=`echo 'sys/select.h' \
27306 | sed -e "$gl_make_literal_regex_sed"`
27307 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27308 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27309 s|^/[^/]|//&|
27313 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27314 sed -n "$gl_absolute_header_sed"`'"'
27315 else
27316 gl_cv_next_sys_select_h='<'sys/select.h'>'
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27322 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27324 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27326 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27328 gl_next_as_first_directive='<'sys/select.h'>'
27329 else
27330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27331 gl_next_as_first_directive=$gl_cv_next_sys_select_h
27333 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27338 if test $ac_cv_header_sys_select_h = yes; then
27339 HAVE_SYS_SELECT_H=1
27340 else
27341 HAVE_SYS_SELECT_H=0
27348 if test $ac_cv_header_sys_socket_h != yes; then
27349 for ac_header in winsock2.h
27350 do :
27351 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27352 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27353 cat >>confdefs.h <<_ACEOF
27354 #define HAVE_WINSOCK2_H 1
27355 _ACEOF
27359 done
27362 if test "$ac_cv_header_winsock2_h" = yes; then
27363 HAVE_WINSOCK2_H=1
27364 UNISTD_H_HAVE_WINSOCK2_H=1
27365 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27366 else
27367 HAVE_WINSOCK2_H=0
27389 if test $gl_cv_have_include_next = yes; then
27390 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27391 else
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27393 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27394 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27395 $as_echo_n "(cached) " >&6
27396 else
27398 if test $ac_cv_header_sys_stat_h = yes; then
27401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27402 /* end confdefs.h. */
27403 #include <sys/stat.h>
27405 _ACEOF
27406 case "$host_os" in
27407 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27408 *) gl_absname_cpp="$ac_cpp" ;;
27409 esac
27411 case "$host_os" in
27412 mingw*)
27413 gl_dirsep_regex='[/\\]'
27416 gl_dirsep_regex='\/'
27418 esac
27419 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27421 gl_header_literal_regex=`echo 'sys/stat.h' \
27422 | sed -e "$gl_make_literal_regex_sed"`
27423 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27424 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27425 s|^/[^/]|//&|
27429 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27430 sed -n "$gl_absolute_header_sed"`'"'
27431 else
27432 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27438 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27440 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27442 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27444 gl_next_as_first_directive='<'sys/stat.h'>'
27445 else
27446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27447 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27449 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27461 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27463 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27467 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27468 #include <sys/stat.h>
27470 if test "x$ac_cv_type_nlink_t" = x""yes; then :
27472 else
27474 $as_echo "#define nlink_t int" >>confdefs.h
27495 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27497 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
27498 ac_have_decl=1
27499 else
27500 ac_have_decl=0
27503 cat >>confdefs.h <<_ACEOF
27504 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27505 _ACEOF
27507 if test $ac_cv_have_decl_localtime_r = no; then
27508 HAVE_DECL_LOCALTIME_R=0
27512 if test $ac_cv_func_localtime_r = yes; then
27513 HAVE_LOCALTIME_R=1
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27515 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27516 if test "${gl_cv_time_r_posix+set}" = set; then :
27517 $as_echo_n "(cached) " >&6
27518 else
27519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27520 /* end confdefs.h. */
27521 #include <time.h>
27523 main ()
27525 /* We don't need to append 'restrict's to the argument types,
27526 even though the POSIX signature has the 'restrict's,
27527 since C99 says they can't affect type compatibility. */
27528 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27529 if (ptr) return 0;
27530 /* Check the return type is a pointer.
27531 On HP-UX 10 it is 'int'. */
27532 *localtime_r (0, 0);
27534 return 0;
27537 _ACEOF
27538 if ac_fn_c_try_compile "$LINENO"; then :
27539 gl_cv_time_r_posix=yes
27540 else
27541 gl_cv_time_r_posix=no
27543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27547 $as_echo "$gl_cv_time_r_posix" >&6; }
27548 if test $gl_cv_time_r_posix = yes; then
27549 REPLACE_LOCALTIME_R=0
27550 else
27551 REPLACE_LOCALTIME_R=1
27553 else
27554 HAVE_LOCALTIME_R=0
27557 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
27566 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
27577 GNULIB_TIME_R=1
27588 LIB_TIMER_TIME=
27590 gl_saved_libs=$LIBS
27591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27592 $as_echo_n "checking for library containing timer_settime... " >&6; }
27593 if test "${ac_cv_search_timer_settime+set}" = set; then :
27594 $as_echo_n "(cached) " >&6
27595 else
27596 ac_func_search_save_LIBS=$LIBS
27597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27598 /* end confdefs.h. */
27600 /* Override any GCC internal prototype to avoid an error.
27601 Use char because int might match the return type of a GCC
27602 builtin and then its argument prototype would still apply. */
27603 #ifdef __cplusplus
27604 extern "C"
27605 #endif
27606 char timer_settime ();
27608 main ()
27610 return timer_settime ();
27612 return 0;
27614 _ACEOF
27615 for ac_lib in '' rt posix4; do
27616 if test -z "$ac_lib"; then
27617 ac_res="none required"
27618 else
27619 ac_res=-l$ac_lib
27620 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27622 if ac_fn_c_try_link "$LINENO"; then :
27623 ac_cv_search_timer_settime=$ac_res
27625 rm -f core conftest.err conftest.$ac_objext \
27626 conftest$ac_exeext
27627 if test "${ac_cv_search_timer_settime+set}" = set; then :
27628 break
27630 done
27631 if test "${ac_cv_search_timer_settime+set}" = set; then :
27633 else
27634 ac_cv_search_timer_settime=no
27636 rm conftest.$ac_ext
27637 LIBS=$ac_func_search_save_LIBS
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27640 $as_echo "$ac_cv_search_timer_settime" >&6; }
27641 ac_res=$ac_cv_search_timer_settime
27642 if test "$ac_res" != no; then :
27643 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27644 test "$ac_cv_search_timer_settime" = "none required" ||
27645 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27649 /* end confdefs.h. */
27651 #include <features.h>
27652 #ifdef __GNU_LIBRARY__
27653 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27654 && !defined __UCLIBC__
27655 Thread emulation available
27656 #endif
27657 #endif
27659 _ACEOF
27660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27661 $EGREP "Thread" >/dev/null 2>&1; then :
27662 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27664 rm -f conftest*
27666 for ac_func in timer_settime
27667 do :
27668 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27669 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27670 cat >>confdefs.h <<_ACEOF
27671 #define HAVE_TIMER_SETTIME 1
27672 _ACEOF
27675 done
27677 LIBS=$gl_saved_libs
27692 if test $gl_cv_have_include_next = yes; then
27693 gl_cv_next_unistd_h='<'unistd.h'>'
27694 else
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27696 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27697 if test "${gl_cv_next_unistd_h+set}" = set; then :
27698 $as_echo_n "(cached) " >&6
27699 else
27701 if test $ac_cv_header_unistd_h = yes; then
27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h. */
27706 #include <unistd.h>
27708 _ACEOF
27709 case "$host_os" in
27710 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27711 *) gl_absname_cpp="$ac_cpp" ;;
27712 esac
27714 case "$host_os" in
27715 mingw*)
27716 gl_dirsep_regex='[/\\]'
27719 gl_dirsep_regex='\/'
27721 esac
27722 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27724 gl_header_literal_regex=`echo 'unistd.h' \
27725 | sed -e "$gl_make_literal_regex_sed"`
27726 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27727 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27728 s|^/[^/]|//&|
27732 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27733 sed -n "$gl_absolute_header_sed"`'"'
27734 else
27735 gl_cv_next_unistd_h='<'unistd.h'>'
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27741 $as_echo "$gl_cv_next_unistd_h" >&6; }
27743 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27745 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27746 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27747 gl_next_as_first_directive='<'unistd.h'>'
27748 else
27749 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27750 gl_next_as_first_directive=$gl_cv_next_unistd_h
27752 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27757 if test $ac_cv_header_unistd_h = yes; then
27758 HAVE_UNISTD_H=1
27759 else
27760 HAVE_UNISTD_H=0
27773 if test $ac_cv_have_decl_unsetenv = no; then
27774 HAVE_DECL_UNSETENV=0
27776 for ac_func in unsetenv
27777 do :
27778 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27779 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27780 cat >>confdefs.h <<_ACEOF
27781 #define HAVE_UNSETENV 1
27782 _ACEOF
27785 done
27787 if test $ac_cv_func_unsetenv = no; then
27788 HAVE_UNSETENV=0
27789 else
27790 HAVE_UNSETENV=1
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27792 $as_echo_n "checking for unsetenv() return type... " >&6; }
27793 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27794 $as_echo_n "(cached) " >&6
27795 else
27796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27797 /* end confdefs.h. */
27799 #undef _BSD
27800 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27801 #include <stdlib.h>
27802 extern
27803 #ifdef __cplusplus
27805 #endif
27806 int unsetenv (const char *name);
27809 main ()
27813 return 0;
27815 _ACEOF
27816 if ac_fn_c_try_compile "$LINENO"; then :
27817 gt_cv_func_unsetenv_ret='int'
27818 else
27819 gt_cv_func_unsetenv_ret='void'
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27824 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27825 if test $gt_cv_func_unsetenv_ret = 'void'; then
27827 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27829 REPLACE_UNSETENV=1
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27833 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27834 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27835 $as_echo_n "(cached) " >&6
27836 else
27837 if test "$cross_compiling" = yes; then :
27838 case "$host_os" in
27839 # Guess yes on glibc systems.
27840 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27841 # If we don't know, assume the worst.
27842 *) gl_cv_func_unsetenv_works="guessing no" ;;
27843 esac
27845 else
27846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27847 /* end confdefs.h. */
27849 #include <stdlib.h>
27850 #include <errno.h>
27851 extern char **environ;
27854 main ()
27857 char entry1[] = "a=1";
27858 char entry2[] = "b=2";
27859 char *env[] = { entry1, entry2, NULL };
27860 if (putenv ((char *) "a=1")) return 1;
27861 if (putenv (entry2)) return 2;
27862 entry2[0] = 'a';
27863 unsetenv ("a");
27864 if (getenv ("a")) return 3;
27865 if (!unsetenv ("") || errno != EINVAL) return 4;
27866 entry2[0] = 'b';
27867 environ = env;
27868 if (!getenv ("a")) return 5;
27869 entry2[0] = 'a';
27870 unsetenv ("a");
27871 if (getenv ("a")) return 6;
27874 return 0;
27876 _ACEOF
27877 if ac_fn_c_try_run "$LINENO"; then :
27878 gl_cv_func_unsetenv_works=yes
27879 else
27880 gl_cv_func_unsetenv_works=no
27882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27883 conftest.$ac_objext conftest.beam conftest.$ac_ext
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27888 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27889 case "$gl_cv_func_unsetenv_works" in
27890 *yes) ;;
27892 REPLACE_UNSETENV=1
27894 esac
27897 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27906 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27918 GNULIB_UNSETENV=1
27930 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27932 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27933 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27934 $as_echo_n "(cached) " >&6
27935 else
27936 touch conftest.file
27937 if test "$cross_compiling" = yes; then :
27938 case "$host_os" in
27939 # Guess yes on glibc systems.
27940 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
27941 # If we don't know, assume the worst.
27942 *) gl_cv_func_futimesat_works="guessing no" ;;
27943 esac
27945 else
27946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27947 /* end confdefs.h. */
27949 #include <stddef.h>
27950 #include <sys/times.h>
27951 #include <fcntl.h>
27954 main ()
27956 int fd = open ("conftest.file", O_RDWR);
27957 if (fd < 0) return 1;
27958 if (futimesat (fd, NULL, NULL)) return 2;
27961 return 0;
27963 _ACEOF
27964 if ac_fn_c_try_run "$LINENO"; then :
27965 gl_cv_func_futimesat_works=yes
27966 else
27967 gl_cv_func_futimesat_works=no
27969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27970 conftest.$ac_objext conftest.beam conftest.$ac_ext
27973 rm -f conftest.file
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27976 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27977 case "$gl_cv_func_futimesat_works" in
27978 *yes) ;;
27981 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27984 esac
27987 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
27988 gl_gnulib_enabled_dosname=false
27989 gl_gnulib_enabled_euidaccess=false
27990 gl_gnulib_enabled_getdtablesize=false
27991 gl_gnulib_enabled_getgroups=false
27992 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
27993 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
27994 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
27995 gl_gnulib_enabled_pathmax=false
27996 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
27997 gl_gnulib_enabled_secure_getenv=false
27998 gl_gnulib_enabled_stat=false
27999 gl_gnulib_enabled_strtoll=false
28000 gl_gnulib_enabled_strtoull=false
28001 gl_gnulib_enabled_tempname=false
28002 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
28003 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
28005 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28014 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
28016 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
28019 func_gl_gnulib_m4code_dosname ()
28021 if ! $gl_gnulib_enabled_dosname; then
28022 gl_gnulib_enabled_dosname=true
28025 func_gl_gnulib_m4code_euidaccess ()
28027 if ! $gl_gnulib_enabled_euidaccess; then
28033 for ac_func in euidaccess
28034 do :
28035 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
28036 if test "x$ac_cv_func_euidaccess" = x""yes; then :
28037 cat >>confdefs.h <<_ACEOF
28038 #define HAVE_EUIDACCESS 1
28039 _ACEOF
28042 done
28044 if test $ac_cv_func_euidaccess = no; then
28045 HAVE_EUIDACCESS=0
28048 if test $HAVE_EUIDACCESS = 0; then
28057 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
28061 for ac_header in libgen.h
28062 do :
28063 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
28064 if test "x$ac_cv_header_libgen_h" = x""yes; then :
28065 cat >>confdefs.h <<_ACEOF
28066 #define HAVE_LIBGEN_H 1
28067 _ACEOF
28071 done
28074 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28075 if test "x$ac_cv_func_getgroups" = x""yes; then :
28080 # If we don't yet have getgroups, see if it's in -lbsd.
28081 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28082 ac_save_LIBS=$LIBS
28083 if test $ac_cv_func_getgroups = no; then
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28085 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28086 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28087 $as_echo_n "(cached) " >&6
28088 else
28089 ac_check_lib_save_LIBS=$LIBS
28090 LIBS="-lbsd $LIBS"
28091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28092 /* end confdefs.h. */
28094 /* Override any GCC internal prototype to avoid an error.
28095 Use char because int might match the return type of a GCC
28096 builtin and then its argument prototype would still apply. */
28097 #ifdef __cplusplus
28098 extern "C"
28099 #endif
28100 char getgroups ();
28102 main ()
28104 return getgroups ();
28106 return 0;
28108 _ACEOF
28109 if ac_fn_c_try_link "$LINENO"; then :
28110 ac_cv_lib_bsd_getgroups=yes
28111 else
28112 ac_cv_lib_bsd_getgroups=no
28114 rm -f core conftest.err conftest.$ac_objext \
28115 conftest$ac_exeext conftest.$ac_ext
28116 LIBS=$ac_check_lib_save_LIBS
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28119 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28120 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28121 GETGROUPS_LIB=-lbsd
28126 # Run the program to test the functionality of the system-supplied
28127 # getgroups function only if there is such a function.
28128 if test $ac_cv_func_getgroups = yes; then
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28130 $as_echo_n "checking for working getgroups... " >&6; }
28131 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28132 $as_echo_n "(cached) " >&6
28133 else
28134 if test "$cross_compiling" = yes; then :
28135 case "$host_os" in # ((
28136 # Guess yes on glibc systems.
28137 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28138 # If we don't know, assume the worst.
28139 *) ac_cv_func_getgroups_works="guessing no" ;;
28140 esac
28142 else
28143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28144 /* end confdefs.h. */
28145 $ac_includes_default
28147 main ()
28149 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28150 return getgroups (0, 0) == -1;
28152 return 0;
28155 _ACEOF
28156 if ac_fn_c_try_run "$LINENO"; then :
28157 ac_cv_func_getgroups_works=yes
28158 else
28159 ac_cv_func_getgroups_works=no
28161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28162 conftest.$ac_objext conftest.beam conftest.$ac_ext
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28168 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28169 else
28170 ac_cv_func_getgroups_works=no
28172 case "$ac_cv_func_getgroups_works" in
28173 *yes)
28175 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28178 esac
28179 LIBS=$ac_save_LIBS
28182 # Solaris 9 and 10 need -lgen to get the eaccess function.
28183 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
28184 # programs in the package would end up linked with that potentially-shared
28185 # library, inducing unnecessary run-time overhead.
28186 LIB_EACCESS=
28188 gl_saved_libs=$LIBS
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
28190 $as_echo_n "checking for library containing eaccess... " >&6; }
28191 if test "${ac_cv_search_eaccess+set}" = set; then :
28192 $as_echo_n "(cached) " >&6
28193 else
28194 ac_func_search_save_LIBS=$LIBS
28195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28196 /* end confdefs.h. */
28198 /* Override any GCC internal prototype to avoid an error.
28199 Use char because int might match the return type of a GCC
28200 builtin and then its argument prototype would still apply. */
28201 #ifdef __cplusplus
28202 extern "C"
28203 #endif
28204 char eaccess ();
28206 main ()
28208 return eaccess ();
28210 return 0;
28212 _ACEOF
28213 for ac_lib in '' gen; do
28214 if test -z "$ac_lib"; then
28215 ac_res="none required"
28216 else
28217 ac_res=-l$ac_lib
28218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28220 if ac_fn_c_try_link "$LINENO"; then :
28221 ac_cv_search_eaccess=$ac_res
28223 rm -f core conftest.err conftest.$ac_objext \
28224 conftest$ac_exeext
28225 if test "${ac_cv_search_eaccess+set}" = set; then :
28226 break
28228 done
28229 if test "${ac_cv_search_eaccess+set}" = set; then :
28231 else
28232 ac_cv_search_eaccess=no
28234 rm conftest.$ac_ext
28235 LIBS=$ac_func_search_save_LIBS
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
28238 $as_echo "$ac_cv_search_eaccess" >&6; }
28239 ac_res=$ac_cv_search_eaccess
28240 if test "$ac_res" != no; then :
28241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28242 test "$ac_cv_search_eaccess" = "none required" ||
28243 LIB_EACCESS=$ac_cv_search_eaccess
28246 for ac_func in eaccess
28247 do :
28248 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
28249 if test "x$ac_cv_func_eaccess" = x""yes; then :
28250 cat >>confdefs.h <<_ACEOF
28251 #define HAVE_EACCESS 1
28252 _ACEOF
28255 done
28257 LIBS=$gl_saved_libs
28265 GNULIB_EUIDACCESS=1
28271 gl_gnulib_enabled_euidaccess=true
28272 if test $HAVE_EUIDACCESS = 0; then
28273 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
28275 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
28276 if test $HAVE_EUIDACCESS = 0; then
28277 func_gl_gnulib_m4code_stat
28281 func_gl_gnulib_m4code_getdtablesize ()
28283 if ! $gl_gnulib_enabled_getdtablesize; then
28288 if test $ac_cv_func_getdtablesize = yes; then
28289 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
28290 # up to an unchangeable hard limit; all other platforms correctly
28291 # require setrlimit before getdtablesize() can report a larger value.
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
28293 $as_echo_n "checking whether getdtablesize works... " >&6; }
28294 if test "${gl_cv_func_getdtablesize_works+set}" = set; then :
28295 $as_echo_n "(cached) " >&6
28296 else
28297 if test "$cross_compiling" = yes; then :
28298 case "$host_os" in
28299 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
28300 gl_cv_func_getdtablesize_works="guessing no" ;;
28301 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
28302 esac
28303 else
28304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28305 /* end confdefs.h. */
28307 #include <unistd.h>
28309 main ()
28311 int size = getdtablesize();
28312 if (dup2 (0, getdtablesize()) != -1)
28313 return 1;
28314 if (size != getdtablesize())
28315 return 2;
28318 return 0;
28320 _ACEOF
28321 if ac_fn_c_try_run "$LINENO"; then :
28322 gl_cv_func_getdtablesize_works=yes
28323 else
28324 gl_cv_func_getdtablesize_works=no
28326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28327 conftest.$ac_objext conftest.beam conftest.$ac_ext
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
28333 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
28334 case "$gl_cv_func_getdtablesize_works" in
28335 *yes) ;;
28336 *) REPLACE_GETDTABLESIZE=1 ;;
28337 esac
28338 else
28339 HAVE_GETDTABLESIZE=0
28342 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
28351 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
28360 GNULIB_GETDTABLESIZE=1
28366 gl_gnulib_enabled_getdtablesize=true
28369 func_gl_gnulib_m4code_getgroups ()
28371 if ! $gl_gnulib_enabled_getgroups; then
28377 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28378 if test "x$ac_cv_func_getgroups" = x""yes; then :
28383 # If we don't yet have getgroups, see if it's in -lbsd.
28384 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28385 ac_save_LIBS=$LIBS
28386 if test $ac_cv_func_getgroups = no; then
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28388 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28389 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28390 $as_echo_n "(cached) " >&6
28391 else
28392 ac_check_lib_save_LIBS=$LIBS
28393 LIBS="-lbsd $LIBS"
28394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28395 /* end confdefs.h. */
28397 /* Override any GCC internal prototype to avoid an error.
28398 Use char because int might match the return type of a GCC
28399 builtin and then its argument prototype would still apply. */
28400 #ifdef __cplusplus
28401 extern "C"
28402 #endif
28403 char getgroups ();
28405 main ()
28407 return getgroups ();
28409 return 0;
28411 _ACEOF
28412 if ac_fn_c_try_link "$LINENO"; then :
28413 ac_cv_lib_bsd_getgroups=yes
28414 else
28415 ac_cv_lib_bsd_getgroups=no
28417 rm -f core conftest.err conftest.$ac_objext \
28418 conftest$ac_exeext conftest.$ac_ext
28419 LIBS=$ac_check_lib_save_LIBS
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28422 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28423 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28424 GETGROUPS_LIB=-lbsd
28429 # Run the program to test the functionality of the system-supplied
28430 # getgroups function only if there is such a function.
28431 if test $ac_cv_func_getgroups = yes; then
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28433 $as_echo_n "checking for working getgroups... " >&6; }
28434 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28435 $as_echo_n "(cached) " >&6
28436 else
28437 if test "$cross_compiling" = yes; then :
28438 case "$host_os" in # ((
28439 # Guess yes on glibc systems.
28440 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28441 # If we don't know, assume the worst.
28442 *) ac_cv_func_getgroups_works="guessing no" ;;
28443 esac
28445 else
28446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28447 /* end confdefs.h. */
28448 $ac_includes_default
28450 main ()
28452 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28453 return getgroups (0, 0) == -1;
28455 return 0;
28458 _ACEOF
28459 if ac_fn_c_try_run "$LINENO"; then :
28460 ac_cv_func_getgroups_works=yes
28461 else
28462 ac_cv_func_getgroups_works=no
28464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28465 conftest.$ac_objext conftest.beam conftest.$ac_ext
28470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28471 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28472 else
28473 ac_cv_func_getgroups_works=no
28475 case "$ac_cv_func_getgroups_works" in
28476 *yes)
28478 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28481 esac
28482 LIBS=$ac_save_LIBS
28484 if test $ac_cv_func_getgroups != yes; then
28485 HAVE_GETGROUPS=0
28486 else
28487 if test "$ac_cv_type_getgroups" != gid_t \
28488 || { case "$ac_cv_func_getgroups_works" in
28489 *yes) false;;
28490 *) true;;
28491 esac
28492 }; then
28493 REPLACE_GETGROUPS=1
28495 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28497 else
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28499 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28500 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28501 $as_echo_n "(cached) " >&6
28502 else
28503 if test "$cross_compiling" = yes; then :
28504 case "$host_os" in
28505 # Guess yes on glibc systems.
28506 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
28507 # If we don't know, assume the worst.
28508 *) gl_cv_func_getgroups_works="guessing no" ;;
28509 esac
28511 else
28512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28513 /* end confdefs.h. */
28514 $ac_includes_default
28516 main ()
28518 int size = getgroups (0, 0);
28519 gid_t *list = malloc (size * sizeof *list);
28520 return getgroups (-1, list) != -1;
28522 return 0;
28524 _ACEOF
28525 if ac_fn_c_try_run "$LINENO"; then :
28526 gl_cv_func_getgroups_works=yes
28527 else
28528 gl_cv_func_getgroups_works=no
28530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28531 conftest.$ac_objext conftest.beam conftest.$ac_ext
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28536 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28537 case "$gl_cv_func_getgroups_works" in
28538 *yes) ;;
28539 *) REPLACE_GETGROUPS=1 ;;
28540 esac
28543 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28545 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
28554 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
28562 GNULIB_GETGROUPS=1
28568 gl_gnulib_enabled_getgroups=true
28571 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
28573 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28576 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
28579 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
28581 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28587 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
28588 if test "x$ac_cv_func_group_member" = x""yes; then :
28590 else
28592 HAVE_GROUP_MEMBER=0
28597 if test $HAVE_GROUP_MEMBER = 0; then
28606 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
28617 GNULIB_GROUP_MEMBER=1
28623 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
28624 if test $HAVE_GROUP_MEMBER = 0; then
28625 func_gl_gnulib_m4code_getgroups
28627 if test $HAVE_GROUP_MEMBER = 0; then
28628 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28632 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
28634 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28635 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
28638 func_gl_gnulib_m4code_pathmax ()
28640 if ! $gl_gnulib_enabled_pathmax; then
28644 gl_gnulib_enabled_pathmax=true
28647 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
28649 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28650 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
28653 func_gl_gnulib_m4code_secure_getenv ()
28655 if ! $gl_gnulib_enabled_secure_getenv; then
28661 if test $ac_cv_func_secure_getenv = no; then
28662 HAVE_SECURE_GETENV=0
28665 if test $HAVE_SECURE_GETENV = 0; then
28674 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
28677 for ac_func in __secure_getenv
28678 do :
28679 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28680 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
28681 cat >>confdefs.h <<_ACEOF
28682 #define HAVE___SECURE_GETENV 1
28683 _ACEOF
28686 done
28688 if test $ac_cv_func___secure_getenv = no; then
28689 for ac_func in issetugid
28690 do :
28691 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28692 if test "x$ac_cv_func_issetugid" = x""yes; then :
28693 cat >>confdefs.h <<_ACEOF
28694 #define HAVE_ISSETUGID 1
28695 _ACEOF
28698 done
28708 GNULIB_SECURE_GETENV=1
28714 gl_gnulib_enabled_secure_getenv=true
28717 func_gl_gnulib_m4code_stat ()
28719 if ! $gl_gnulib_enabled_stat; then
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28724 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28725 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28726 $as_echo_n "(cached) " >&6
28727 else
28728 if test "$cross_compiling" = yes; then :
28729 case $host_os in
28730 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28731 *) gl_cv_func_stat_dir_slash="guessing yes";;
28732 esac
28733 else
28734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28735 /* end confdefs.h. */
28736 #include <sys/stat.h>
28739 main ()
28741 struct stat st; return stat (".", &st) != stat ("./", &st);
28743 return 0;
28745 _ACEOF
28746 if ac_fn_c_try_run "$LINENO"; then :
28747 gl_cv_func_stat_dir_slash=yes
28748 else
28749 gl_cv_func_stat_dir_slash=no
28751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28752 conftest.$ac_objext conftest.beam conftest.$ac_ext
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28757 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28759 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28760 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28761 $as_echo_n "(cached) " >&6
28762 else
28763 touch conftest.tmp
28764 # Assume that if we have lstat, we can also check symlinks.
28765 if test $ac_cv_func_lstat = yes; then
28766 ln -s conftest.tmp conftest.lnk
28768 if test "$cross_compiling" = yes; then :
28769 case "$host_os" in
28770 # Guess yes on glibc systems.
28771 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28772 # If we don't know, assume the worst.
28773 *) gl_cv_func_stat_file_slash="guessing no" ;;
28774 esac
28776 else
28777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28778 /* end confdefs.h. */
28779 #include <sys/stat.h>
28782 main ()
28784 int result = 0;
28785 struct stat st;
28786 if (!stat ("conftest.tmp/", &st))
28787 result |= 1;
28788 #if HAVE_LSTAT
28789 if (!stat ("conftest.lnk/", &st))
28790 result |= 2;
28791 #endif
28792 return result;
28795 return 0;
28797 _ACEOF
28798 if ac_fn_c_try_run "$LINENO"; then :
28799 gl_cv_func_stat_file_slash=yes
28800 else
28801 gl_cv_func_stat_file_slash=no
28803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28804 conftest.$ac_objext conftest.beam conftest.$ac_ext
28807 rm -f conftest.tmp conftest.lnk
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28810 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28811 case $gl_cv_func_stat_dir_slash in
28812 *no) REPLACE_STAT=1
28814 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28816 esac
28817 case $gl_cv_func_stat_file_slash in
28818 *no) REPLACE_STAT=1
28820 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28822 esac
28824 if test $REPLACE_STAT = 1; then
28833 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28842 GNULIB_STAT=1
28848 gl_gnulib_enabled_stat=true
28849 if test $REPLACE_STAT = 1; then
28850 func_gl_gnulib_m4code_dosname
28852 if test $REPLACE_STAT = 1; then
28853 func_gl_gnulib_m4code_pathmax
28857 func_gl_gnulib_m4code_strtoll ()
28859 if ! $gl_gnulib_enabled_strtoll; then
28863 if test "$ac_cv_type_long_long_int" = yes; then
28864 for ac_func in strtoll
28865 do :
28866 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28867 if test "x$ac_cv_func_strtoll" = x""yes; then :
28868 cat >>confdefs.h <<_ACEOF
28869 #define HAVE_STRTOLL 1
28870 _ACEOF
28873 done
28875 if test $ac_cv_func_strtoll = no; then
28876 HAVE_STRTOLL=0
28880 if test $HAVE_STRTOLL = 0; then
28889 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
28900 GNULIB_STRTOLL=1
28906 gl_gnulib_enabled_strtoll=true
28909 func_gl_gnulib_m4code_strtoull ()
28911 if ! $gl_gnulib_enabled_strtoull; then
28915 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28916 for ac_func in strtoull
28917 do :
28918 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
28919 if test "x$ac_cv_func_strtoull" = x""yes; then :
28920 cat >>confdefs.h <<_ACEOF
28921 #define HAVE_STRTOULL 1
28922 _ACEOF
28925 done
28927 if test $ac_cv_func_strtoull = no; then
28928 HAVE_STRTOULL=0
28932 if test $HAVE_STRTOULL = 0; then
28941 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
28952 GNULIB_STRTOULL=1
28958 gl_gnulib_enabled_strtoull=true
28961 func_gl_gnulib_m4code_tempname ()
28963 if ! $gl_gnulib_enabled_tempname; then
28969 gl_gnulib_enabled_tempname=true
28970 func_gl_gnulib_m4code_secure_getenv
28973 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
28975 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28976 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
28979 if test $HAVE_FACCESSAT = 0; then
28980 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28982 if test $HAVE_FACCESSAT = 0; then
28983 func_gl_gnulib_m4code_dosname
28985 if test $HAVE_FACCESSAT = 0; then
28986 func_gl_gnulib_m4code_euidaccess
28988 if test $HAVE_FACCESSAT = 0; then
28989 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28991 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
28992 func_gl_gnulib_m4code_getdtablesize
28994 if test $HAVE_FDOPENDIR = 0; then
28995 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28997 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28998 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29000 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29001 func_gl_gnulib_m4code_dosname
29003 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
29004 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29006 if test $REPLACE_GETOPT = 1; then
29007 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
29009 if test $REPLACE_LSTAT = 1; then
29010 func_gl_gnulib_m4code_dosname
29012 if test $REPLACE_LSTAT = 1; then
29013 func_gl_gnulib_m4code_stat
29015 if test $HAVE_MKOSTEMP = 0; then
29016 func_gl_gnulib_m4code_tempname
29018 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
29019 func_gl_gnulib_m4code_stat
29021 if test $HAVE_READLINKAT = 0; then
29022 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
29024 if test $HAVE_READLINKAT = 0; then
29025 func_gl_gnulib_m4code_dosname
29027 if test $HAVE_READLINKAT = 0; then
29028 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
29030 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
29031 func_gl_gnulib_m4code_strtoll
29033 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
29034 func_gl_gnulib_m4code_strtoull
29037 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
29038 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
29039 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
29040 else
29041 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
29042 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
29045 if $gl_gnulib_enabled_dosname; then
29046 gl_GNULIB_ENABLED_dosname_TRUE=
29047 gl_GNULIB_ENABLED_dosname_FALSE='#'
29048 else
29049 gl_GNULIB_ENABLED_dosname_TRUE='#'
29050 gl_GNULIB_ENABLED_dosname_FALSE=
29053 if $gl_gnulib_enabled_euidaccess; then
29054 gl_GNULIB_ENABLED_euidaccess_TRUE=
29055 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
29056 else
29057 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
29058 gl_GNULIB_ENABLED_euidaccess_FALSE=
29061 if $gl_gnulib_enabled_getdtablesize; then
29062 gl_GNULIB_ENABLED_getdtablesize_TRUE=
29063 gl_GNULIB_ENABLED_getdtablesize_FALSE='#'
29064 else
29065 gl_GNULIB_ENABLED_getdtablesize_TRUE='#'
29066 gl_GNULIB_ENABLED_getdtablesize_FALSE=
29069 if $gl_gnulib_enabled_getgroups; then
29070 gl_GNULIB_ENABLED_getgroups_TRUE=
29071 gl_GNULIB_ENABLED_getgroups_FALSE='#'
29072 else
29073 gl_GNULIB_ENABLED_getgroups_TRUE='#'
29074 gl_GNULIB_ENABLED_getgroups_FALSE=
29077 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
29078 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
29079 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
29080 else
29081 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
29082 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
29085 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
29086 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
29087 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
29088 else
29089 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
29090 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
29093 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
29094 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
29095 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
29096 else
29097 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
29098 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
29101 if $gl_gnulib_enabled_pathmax; then
29102 gl_GNULIB_ENABLED_pathmax_TRUE=
29103 gl_GNULIB_ENABLED_pathmax_FALSE='#'
29104 else
29105 gl_GNULIB_ENABLED_pathmax_TRUE='#'
29106 gl_GNULIB_ENABLED_pathmax_FALSE=
29109 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
29110 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
29111 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
29112 else
29113 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
29114 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
29117 if $gl_gnulib_enabled_secure_getenv; then
29118 gl_GNULIB_ENABLED_secure_getenv_TRUE=
29119 gl_GNULIB_ENABLED_secure_getenv_FALSE='#'
29120 else
29121 gl_GNULIB_ENABLED_secure_getenv_TRUE='#'
29122 gl_GNULIB_ENABLED_secure_getenv_FALSE=
29125 if $gl_gnulib_enabled_stat; then
29126 gl_GNULIB_ENABLED_stat_TRUE=
29127 gl_GNULIB_ENABLED_stat_FALSE='#'
29128 else
29129 gl_GNULIB_ENABLED_stat_TRUE='#'
29130 gl_GNULIB_ENABLED_stat_FALSE=
29133 if $gl_gnulib_enabled_strtoll; then
29134 gl_GNULIB_ENABLED_strtoll_TRUE=
29135 gl_GNULIB_ENABLED_strtoll_FALSE='#'
29136 else
29137 gl_GNULIB_ENABLED_strtoll_TRUE='#'
29138 gl_GNULIB_ENABLED_strtoll_FALSE=
29141 if $gl_gnulib_enabled_strtoull; then
29142 gl_GNULIB_ENABLED_strtoull_TRUE=
29143 gl_GNULIB_ENABLED_strtoull_FALSE='#'
29144 else
29145 gl_GNULIB_ENABLED_strtoull_TRUE='#'
29146 gl_GNULIB_ENABLED_strtoull_FALSE=
29149 if $gl_gnulib_enabled_tempname; then
29150 gl_GNULIB_ENABLED_tempname_TRUE=
29151 gl_GNULIB_ENABLED_tempname_FALSE='#'
29152 else
29153 gl_GNULIB_ENABLED_tempname_TRUE='#'
29154 gl_GNULIB_ENABLED_tempname_FALSE=
29157 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
29158 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
29159 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
29160 else
29161 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
29162 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
29165 # End of code from modules
29175 gltests_libdeps=
29176 gltests_ltlibdeps=
29186 gl_source_base='tests'
29187 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
29189 gl_module_indicator_condition=$gltests_WITNESS
29200 LIBGNU_LIBDEPS="$gl_libdeps"
29202 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
29205 CFLAGS=$SAVE_CFLAGS
29206 LIBS=$SAVE_LIBS
29208 if test "${opsys}" = "mingw32"; then
29209 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
29210 # Remove unneeded switches from the value of CC that goes to Makefiles
29211 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
29214 case "$opsys" in
29215 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
29217 darwin)
29218 ## The -headerpad option tells ld (see man page) to leave room at the
29219 ## end of the header for adding load commands. Needed for dumping.
29220 ## 0x690 is the total size of 30 segment load commands (at 56
29221 ## each); under Cocoa 31 commands are required.
29222 if test "$HAVE_NS" = "yes"; then
29223 libs_nsgui="-framework AppKit"
29224 if test "$NS_IMPL_COCOA" = "yes"; then
29225 libs_nsgui="$libs_nsgui -framework IOKit"
29227 headerpad_extra=6C8
29228 else
29229 libs_nsgui=
29230 headerpad_extra=690
29232 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
29234 ## This is here because src/Makefile.in did some extra fiddling around
29235 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
29236 ## LD_SWITCH_SYSTEM_TEMACS instead,
29237 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
29238 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
29241 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
29242 ## find X at run-time.
29243 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
29244 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
29245 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
29246 ## had different values in configure (in ac_link) and src/Makefile.in.
29247 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
29248 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
29250 mingw32)
29251 ## MinGW64 does not prepend an underscore to symbols, so we must
29252 ## pass a different -entry switch to linker. FIXME: It is better
29253 ## to make the entry points the same by changing unexw32.c.
29254 case "$canonical" in
29255 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
29256 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
29257 esac
29260 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
29262 *) LD_SWITCH_SYSTEM_TEMACS= ;;
29263 esac
29265 if test x$ac_enable_profiling != x ; then
29266 case $opsys in
29267 *freebsd | gnu-linux) ;;
29268 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
29269 esac
29272 LD_SWITCH_SYSTEM_TEMACS="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS"
29276 ## MinGW-specific post-link processing of temacs.
29277 TEMACS_POST_LINK=":"
29278 ADDSECTION=
29279 EMACS_HEAPSIZE=
29280 if test "${opsys}" = "mingw32"; then
29281 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
29282 ADDSECTION="../nt/addsection\$(EXEEXT)"
29283 ## Preload heap size of temacs.exe in MB.
29284 case "$canonical" in
29285 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
29286 *) EMACS_HEAPSIZE=27 ;;
29287 esac
29294 ## Common for all window systems
29295 if test "$window_system" != "none"; then
29297 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
29299 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
29306 #### Report on what we decided to do.
29307 #### Report GTK as a toolkit, even if it doesn't use Xt.
29308 #### It makes printing result more understandable as using GTK sets
29309 #### toolkit_scroll_bars to yes by default.
29310 if test "${HAVE_GTK}" = "yes"; then
29311 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
29314 if test $USE_ACL -ne 0; then
29315 acl_summary="yes $LIB_ACL"
29316 else
29317 acl_summary=no
29320 echo "
29321 Configured for \`${canonical}'.
29323 Where should the build process find the source code? ${srcdir}
29324 What compiler should emacs be built with? ${CC} ${CFLAGS}
29325 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
29326 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
29327 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
29328 What window system should Emacs use? ${window_system}
29329 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
29331 if test -n "${x_includes}"; then
29332 echo " Where do we find X Windows header files? ${x_includes}"
29333 else
29334 echo " Where do we find X Windows header files? Standard dirs"
29336 if test -n "${x_libraries}"; then
29337 echo " Where do we find X Windows libraries? ${x_libraries}"
29338 else
29339 echo " Where do we find X Windows libraries? Standard dirs"
29342 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
29343 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
29344 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
29345 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
29346 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
29347 echo " Does Emacs use -lpng? ${HAVE_PNG}"
29348 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
29349 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
29351 echo " Does Emacs support sound? ${HAVE_SOUND}"
29353 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
29354 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
29355 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
29356 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
29357 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29358 echo " Does Emacs use access control lists? ${acl_summary}"
29359 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29360 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29361 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29363 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29364 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29365 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29366 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29367 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29369 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29370 echo
29372 if test -n "${EMACSDATA}"; then
29373 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29375 if test -n "${EMACSDOC}"; then
29376 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29379 echo
29381 if test "$HAVE_NS" = "yes"; then
29382 echo
29383 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29384 The installed application will go to nextstep/Emacs.app and can be
29385 run or moved from there."
29386 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29387 echo "The application will be fully self-contained."
29388 else
29389 echo "The lisp resources for the application will be installed under ${prefix}.
29390 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29391 to run if these resources are not installed."
29393 echo
29396 if test "${opsys}" = "cygwin"; then
29397 case `uname -r` in
29398 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29399 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29400 echo
29402 esac
29405 # Remove any trailing slashes in these variables.
29406 test "${prefix}" != NONE &&
29407 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29408 test "${exec_prefix}" != NONE &&
29409 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29411 if test "$HAVE_NS" = "yes"; then
29412 if test "$NS_IMPL_GNUSTEP" = yes; then
29413 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"
29415 ns_check_file=Resources/Info-gnustep.plist
29416 else
29417 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"
29419 ns_check_file=Contents/Info.plist
29424 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"
29426 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"
29429 opt_makefile=test/automated/Makefile
29431 if test -f "$srcdir/$opt_makefile.in"; then
29432 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29433 ac_config_files="$ac_config_files test/automated/Makefile"
29438 opt_makefile=admin/unidata/Makefile
29440 if test -f "$srcdir/$opt_makefile.in"; then
29441 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29442 ac_config_files="$ac_config_files admin/unidata/Makefile"
29447 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29451 ac_config_commands="$ac_config_commands src/epaths.h"
29454 ac_config_commands="$ac_config_commands src/.gdbinit"
29457 cat >confcache <<\_ACEOF
29458 # This file is a shell script that caches the results of configure
29459 # tests run on this system so they can be shared between configure
29460 # scripts and configure runs, see configure's option --config-cache.
29461 # It is not useful on other systems. If it contains results you don't
29462 # want to keep, you may remove or edit it.
29464 # config.status only pays attention to the cache file if you give it
29465 # the --recheck option to rerun configure.
29467 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29468 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29469 # following values.
29471 _ACEOF
29473 # The following way of writing the cache mishandles newlines in values,
29474 # but we know of no workaround that is simple, portable, and efficient.
29475 # So, we kill variables containing newlines.
29476 # Ultrix sh set writes to stderr and can't be redirected directly,
29477 # and sets the high bit in the cache file unless we assign to the vars.
29479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29480 eval ac_val=\$$ac_var
29481 case $ac_val in #(
29482 *${as_nl}*)
29483 case $ac_var in #(
29484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29486 esac
29487 case $ac_var in #(
29488 _ | IFS | as_nl) ;; #(
29489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29490 *) { eval $ac_var=; unset $ac_var;} ;;
29491 esac ;;
29492 esac
29493 done
29495 (set) 2>&1 |
29496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29497 *${as_nl}ac_space=\ *)
29498 # `set' does not quote correctly, so add quotes: double-quote
29499 # substitution turns \\\\ into \\, and sed turns \\ into \.
29500 sed -n \
29501 "s/'/'\\\\''/g;
29502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29503 ;; #(
29505 # `set' quotes correctly as required by POSIX, so do not add quotes.
29506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29508 esac |
29509 sort
29511 sed '
29512 /^ac_cv_env_/b end
29513 t clear
29514 :clear
29515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29516 t end
29517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29518 :end' >>confcache
29519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29520 if test -w "$cache_file"; then
29521 test "x$cache_file" != "x/dev/null" &&
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29523 $as_echo "$as_me: updating cache $cache_file" >&6;}
29524 cat confcache >$cache_file
29525 else
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29527 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29530 rm -f confcache
29532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29533 # Let make expand exec_prefix.
29534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29536 DEFS=-DHAVE_CONFIG_H
29538 ac_libobjs=
29539 ac_ltlibobjs=
29540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29541 # 1. Remove the extension, and $U if already installed.
29542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29545 # will be set to the directory where LIBOBJS objects are built.
29546 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29547 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29548 done
29549 LIBOBJS=$ac_libobjs
29551 LTLIBOBJS=$ac_ltlibobjs
29554 if test -n "$EXEEXT"; then
29555 am__EXEEXT_TRUE=
29556 am__EXEEXT_FALSE='#'
29557 else
29558 am__EXEEXT_TRUE='#'
29559 am__EXEEXT_FALSE=
29562 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29563 as_fn_error "conditional \"AMDEP\" was never defined.
29564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29566 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29567 as_fn_error "conditional \"am__fastdepCC\" was never defined.
29568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29570 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29571 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29574 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29575 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
29576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29578 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29579 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29582 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
29583 as_fn_error "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
29584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29587 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29588 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29591 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29592 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29595 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29596 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29599 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29600 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29603 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29604 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29607 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29608 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29611 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29612 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29615 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29616 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29619 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29620 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29623 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29624 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29627 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29628 as_fn_error "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29631 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29632 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29635 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29636 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29639 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29640 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29643 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29644 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29647 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29648 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29651 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29652 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29655 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29656 as_fn_error "conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29659 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29660 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29663 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29664 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29667 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29668 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29671 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29672 as_fn_error "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29675 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29676 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29680 gl_libobjs=
29681 gl_ltlibobjs=
29682 if test -n "$gl_LIBOBJS"; then
29683 # Remove the extension.
29684 sed_drop_objext='s/\.o$//;s/\.obj$//'
29685 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29686 gl_libobjs="$gl_libobjs $i.$ac_objext"
29687 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29688 done
29690 gl_LIBOBJS=$gl_libobjs
29692 gl_LTLIBOBJS=$gl_ltlibobjs
29696 gltests_libobjs=
29697 gltests_ltlibobjs=
29698 if test -n "$gltests_LIBOBJS"; then
29699 # Remove the extension.
29700 sed_drop_objext='s/\.o$//;s/\.obj$//'
29701 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29702 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29703 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29704 done
29706 gltests_LIBOBJS=$gltests_libobjs
29708 gltests_LTLIBOBJS=$gltests_ltlibobjs
29712 : ${CONFIG_STATUS=./config.status}
29713 ac_write_fail=0
29714 ac_clean_files_save=$ac_clean_files
29715 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29717 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29718 as_write_fail=0
29719 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29720 #! $SHELL
29721 # Generated by $as_me.
29722 # Run this file to recreate the current configuration.
29723 # Compiler output produced by configure, useful for debugging
29724 # configure, is in config.log if it exists.
29726 debug=false
29727 ac_cs_recheck=false
29728 ac_cs_silent=false
29730 SHELL=\${CONFIG_SHELL-$SHELL}
29731 export SHELL
29732 _ASEOF
29733 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29734 ## -------------------- ##
29735 ## M4sh Initialization. ##
29736 ## -------------------- ##
29738 # Be more Bourne compatible
29739 DUALCASE=1; export DUALCASE # for MKS sh
29740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29741 emulate sh
29742 NULLCMD=:
29743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29744 # is contrary to our usage. Disable this feature.
29745 alias -g '${1+"$@"}'='"$@"'
29746 setopt NO_GLOB_SUBST
29747 else
29748 case `(set -o) 2>/dev/null` in #(
29749 *posix*) :
29750 set -o posix ;; #(
29751 *) :
29753 esac
29757 as_nl='
29759 export as_nl
29760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29761 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29764 # Prefer a ksh shell builtin over an external printf program on Solaris,
29765 # but without wasting forks for bash or zsh.
29766 if test -z "$BASH_VERSION$ZSH_VERSION" \
29767 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29768 as_echo='print -r --'
29769 as_echo_n='print -rn --'
29770 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29771 as_echo='printf %s\n'
29772 as_echo_n='printf %s'
29773 else
29774 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29775 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29776 as_echo_n='/usr/ucb/echo -n'
29777 else
29778 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29779 as_echo_n_body='eval
29780 arg=$1;
29781 case $arg in #(
29782 *"$as_nl"*)
29783 expr "X$arg" : "X\\(.*\\)$as_nl";
29784 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29785 esac;
29786 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29788 export as_echo_n_body
29789 as_echo_n='sh -c $as_echo_n_body as_echo'
29791 export as_echo_body
29792 as_echo='sh -c $as_echo_body as_echo'
29795 # The user is always right.
29796 if test "${PATH_SEPARATOR+set}" != set; then
29797 PATH_SEPARATOR=:
29798 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29799 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29800 PATH_SEPARATOR=';'
29805 # IFS
29806 # We need space, tab and new line, in precisely that order. Quoting is
29807 # there to prevent editors from complaining about space-tab.
29808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29809 # splitting by setting IFS to empty value.)
29810 IFS=" "" $as_nl"
29812 # Find who we are. Look in the path if we contain no directory separator.
29813 case $0 in #((
29814 *[\\/]* ) as_myself=$0 ;;
29815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29816 for as_dir in $PATH
29818 IFS=$as_save_IFS
29819 test -z "$as_dir" && as_dir=.
29820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29821 done
29822 IFS=$as_save_IFS
29825 esac
29826 # We did not find ourselves, most probably we were run as `sh COMMAND'
29827 # in which case we are not to be found in the path.
29828 if test "x$as_myself" = x; then
29829 as_myself=$0
29831 if test ! -f "$as_myself"; then
29832 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29833 exit 1
29836 # Unset variables that we do not need and which cause bugs (e.g. in
29837 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29838 # suppresses any "Segmentation fault" message there. '((' could
29839 # trigger a bug in pdksh 5.2.14.
29840 for as_var in BASH_ENV ENV MAIL MAILPATH
29841 do eval test x\${$as_var+set} = xset \
29842 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29843 done
29844 PS1='$ '
29845 PS2='> '
29846 PS4='+ '
29848 # NLS nuisances.
29849 LC_ALL=C
29850 export LC_ALL
29851 LANGUAGE=C
29852 export LANGUAGE
29854 # CDPATH.
29855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29858 # as_fn_error ERROR [LINENO LOG_FD]
29859 # ---------------------------------
29860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29862 # script with status $?, using 1 if that was 0.
29863 as_fn_error ()
29865 as_status=$?; test $as_status -eq 0 && as_status=1
29866 if test "$3"; then
29867 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29870 $as_echo "$as_me: error: $1" >&2
29871 as_fn_exit $as_status
29872 } # as_fn_error
29875 # as_fn_set_status STATUS
29876 # -----------------------
29877 # Set $? to STATUS, without forking.
29878 as_fn_set_status ()
29880 return $1
29881 } # as_fn_set_status
29883 # as_fn_exit STATUS
29884 # -----------------
29885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29886 as_fn_exit ()
29888 set +e
29889 as_fn_set_status $1
29890 exit $1
29891 } # as_fn_exit
29893 # as_fn_unset VAR
29894 # ---------------
29895 # Portably unset VAR.
29896 as_fn_unset ()
29898 { eval $1=; unset $1;}
29900 as_unset=as_fn_unset
29901 # as_fn_append VAR VALUE
29902 # ----------------------
29903 # Append the text in VALUE to the end of the definition contained in VAR. Take
29904 # advantage of any shell optimizations that allow amortized linear growth over
29905 # repeated appends, instead of the typical quadratic growth present in naive
29906 # implementations.
29907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29908 eval 'as_fn_append ()
29910 eval $1+=\$2
29912 else
29913 as_fn_append ()
29915 eval $1=\$$1\$2
29917 fi # as_fn_append
29919 # as_fn_arith ARG...
29920 # ------------------
29921 # Perform arithmetic evaluation on the ARGs, and store the result in the
29922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29923 # must be portable across $(()) and expr.
29924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29925 eval 'as_fn_arith ()
29927 as_val=$(( $* ))
29929 else
29930 as_fn_arith ()
29932 as_val=`expr "$@" || test $? -eq 1`
29934 fi # as_fn_arith
29937 if expr a : '\(a\)' >/dev/null 2>&1 &&
29938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29939 as_expr=expr
29940 else
29941 as_expr=false
29944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29945 as_basename=basename
29946 else
29947 as_basename=false
29950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29951 as_dirname=dirname
29952 else
29953 as_dirname=false
29956 as_me=`$as_basename -- "$0" ||
29957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29958 X"$0" : 'X\(//\)$' \| \
29959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29960 $as_echo X/"$0" |
29961 sed '/^.*\/\([^/][^/]*\)\/*$/{
29962 s//\1/
29965 /^X\/\(\/\/\)$/{
29966 s//\1/
29969 /^X\/\(\/\).*/{
29970 s//\1/
29973 s/.*/./; q'`
29975 # Avoid depending upon Character Ranges.
29976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29979 as_cr_digits='0123456789'
29980 as_cr_alnum=$as_cr_Letters$as_cr_digits
29982 ECHO_C= ECHO_N= ECHO_T=
29983 case `echo -n x` in #(((((
29984 -n*)
29985 case `echo 'xy\c'` in
29986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29987 xy) ECHO_C='\c';;
29988 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29989 ECHO_T=' ';;
29990 esac;;
29992 ECHO_N='-n';;
29993 esac
29995 rm -f conf$$ conf$$.exe conf$$.file
29996 if test -d conf$$.dir; then
29997 rm -f conf$$.dir/conf$$.file
29998 else
29999 rm -f conf$$.dir
30000 mkdir conf$$.dir 2>/dev/null
30002 if (echo >conf$$.file) 2>/dev/null; then
30003 if ln -s conf$$.file conf$$ 2>/dev/null; then
30004 as_ln_s='ln -s'
30005 # ... but there are two gotchas:
30006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30008 # In both cases, we have to default to `cp -p'.
30009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30010 as_ln_s='cp -p'
30011 elif ln conf$$.file conf$$ 2>/dev/null; then
30012 as_ln_s=ln
30013 else
30014 as_ln_s='cp -p'
30016 else
30017 as_ln_s='cp -p'
30019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30020 rmdir conf$$.dir 2>/dev/null
30023 # as_fn_mkdir_p
30024 # -------------
30025 # Create "$as_dir" as a directory, including parents if necessary.
30026 as_fn_mkdir_p ()
30029 case $as_dir in #(
30030 -*) as_dir=./$as_dir;;
30031 esac
30032 test -d "$as_dir" || eval $as_mkdir_p || {
30033 as_dirs=
30034 while :; do
30035 case $as_dir in #(
30036 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30037 *) as_qdir=$as_dir;;
30038 esac
30039 as_dirs="'$as_qdir' $as_dirs"
30040 as_dir=`$as_dirname -- "$as_dir" ||
30041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30042 X"$as_dir" : 'X\(//\)[^/]' \| \
30043 X"$as_dir" : 'X\(//\)$' \| \
30044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30045 $as_echo X"$as_dir" |
30046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30047 s//\1/
30050 /^X\(\/\/\)[^/].*/{
30051 s//\1/
30054 /^X\(\/\/\)$/{
30055 s//\1/
30058 /^X\(\/\).*/{
30059 s//\1/
30062 s/.*/./; q'`
30063 test -d "$as_dir" && break
30064 done
30065 test -z "$as_dirs" || eval "mkdir $as_dirs"
30066 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30069 } # as_fn_mkdir_p
30070 if mkdir -p . 2>/dev/null; then
30071 as_mkdir_p='mkdir -p "$as_dir"'
30072 else
30073 test -d ./-p && rmdir ./-p
30074 as_mkdir_p=false
30077 if test -x / >/dev/null 2>&1; then
30078 as_test_x='test -x'
30079 else
30080 if ls -dL / >/dev/null 2>&1; then
30081 as_ls_L_option=L
30082 else
30083 as_ls_L_option=
30085 as_test_x='
30086 eval sh -c '\''
30087 if test -d "$1"; then
30088 test -d "$1/.";
30089 else
30090 case $1 in #(
30091 -*)set "./$1";;
30092 esac;
30093 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30094 ???[sx]*):;;*)false;;esac;fi
30095 '\'' sh
30098 as_executable_p=$as_test_x
30100 # Sed expression to map a string onto a valid CPP name.
30101 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30103 # Sed expression to map a string onto a valid variable name.
30104 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30107 exec 6>&1
30108 ## ----------------------------------- ##
30109 ## Main body of $CONFIG_STATUS script. ##
30110 ## ----------------------------------- ##
30111 _ASEOF
30112 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30115 # Save the log message, to keep $0 and so on meaningful, and to
30116 # report actual input values of CONFIG_FILES etc. instead of their
30117 # values after options handling.
30118 ac_log="
30119 This file was extended by emacs $as_me 24.3.50, which was
30120 generated by GNU Autoconf 2.65. Invocation command line was
30122 CONFIG_FILES = $CONFIG_FILES
30123 CONFIG_HEADERS = $CONFIG_HEADERS
30124 CONFIG_LINKS = $CONFIG_LINKS
30125 CONFIG_COMMANDS = $CONFIG_COMMANDS
30126 $ $0 $@
30128 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30131 _ACEOF
30133 case $ac_config_files in *"
30134 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30135 esac
30137 case $ac_config_headers in *"
30138 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30139 esac
30142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30143 # Files that config.status was made for.
30144 config_files="$ac_config_files"
30145 config_headers="$ac_config_headers"
30146 config_commands="$ac_config_commands"
30148 _ACEOF
30150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30151 ac_cs_usage="\
30152 \`$as_me' instantiates files and other configuration actions
30153 from templates according to the current configuration. Unless the files
30154 and actions are specified as TAGs, all are instantiated by default.
30156 Usage: $0 [OPTION]... [TAG]...
30158 -h, --help print this help, then exit
30159 -V, --version print version number and configuration settings, then exit
30160 --config print configuration, then exit
30161 -q, --quiet, --silent
30162 do not print progress messages
30163 -d, --debug don't remove temporary files
30164 --recheck update $as_me by reconfiguring in the same conditions
30165 --file=FILE[:TEMPLATE]
30166 instantiate the configuration file FILE
30167 --header=FILE[:TEMPLATE]
30168 instantiate the configuration header FILE
30170 Configuration files:
30171 $config_files
30173 Configuration headers:
30174 $config_headers
30176 Configuration commands:
30177 $config_commands
30179 Report bugs to the package provider."
30181 _ACEOF
30182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30183 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30184 ac_cs_version="\\
30185 emacs config.status 24.3.50
30186 configured by $0, generated by GNU Autoconf 2.65,
30187 with options \\"\$ac_cs_config\\"
30189 Copyright (C) 2009 Free Software Foundation, Inc.
30190 This config.status script is free software; the Free Software Foundation
30191 gives unlimited permission to copy, distribute and modify it."
30193 ac_pwd='$ac_pwd'
30194 srcdir='$srcdir'
30195 INSTALL='$INSTALL'
30196 MKDIR_P='$MKDIR_P'
30197 AWK='$AWK'
30198 test -n "\$AWK" || AWK=awk
30199 _ACEOF
30201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30202 # The default lists apply if the user does not specify any file.
30203 ac_need_defaults=:
30204 while test $# != 0
30206 case $1 in
30207 --*=*)
30208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30210 ac_shift=:
30213 ac_option=$1
30214 ac_optarg=$2
30215 ac_shift=shift
30217 esac
30219 case $ac_option in
30220 # Handling of the options.
30221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30222 ac_cs_recheck=: ;;
30223 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30224 $as_echo "$ac_cs_version"; exit ;;
30225 --config | --confi | --conf | --con | --co | --c )
30226 $as_echo "$ac_cs_config"; exit ;;
30227 --debug | --debu | --deb | --de | --d | -d )
30228 debug=: ;;
30229 --file | --fil | --fi | --f )
30230 $ac_shift
30231 case $ac_optarg in
30232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30233 esac
30234 as_fn_append CONFIG_FILES " '$ac_optarg'"
30235 ac_need_defaults=false;;
30236 --header | --heade | --head | --hea )
30237 $ac_shift
30238 case $ac_optarg in
30239 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30240 esac
30241 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30242 ac_need_defaults=false;;
30243 --he | --h)
30244 # Conflict between --help and --header
30245 as_fn_error "ambiguous option: \`$1'
30246 Try \`$0 --help' for more information.";;
30247 --help | --hel | -h )
30248 $as_echo "$ac_cs_usage"; exit ;;
30249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30250 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30251 ac_cs_silent=: ;;
30253 # This is an error.
30254 -*) as_fn_error "unrecognized option: \`$1'
30255 Try \`$0 --help' for more information." ;;
30257 *) as_fn_append ac_config_targets " $1"
30258 ac_need_defaults=false ;;
30260 esac
30261 shift
30262 done
30264 ac_configure_extra_args=
30266 if $ac_cs_silent; then
30267 exec 6>/dev/null
30268 ac_configure_extra_args="$ac_configure_extra_args --silent"
30271 _ACEOF
30272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30273 if \$ac_cs_recheck; then
30274 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30275 shift
30276 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30277 CONFIG_SHELL='$SHELL'
30278 export CONFIG_SHELL
30279 exec "\$@"
30282 _ACEOF
30283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30284 exec 5>>config.log
30286 echo
30287 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30288 ## Running $as_me. ##
30289 _ASBOX
30290 $as_echo "$ac_log"
30291 } >&5
30293 _ACEOF
30294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30296 # INIT-COMMANDS
30298 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30299 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
30301 _ACEOF
30303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30305 # Handling of arguments.
30306 for ac_config_target in $ac_config_targets
30308 case $ac_config_target in
30309 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
30310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30311 "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" ;;
30312 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
30313 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
30314 "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" ;;
30315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30316 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30317 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
30318 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
30319 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
30320 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
30321 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
30322 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
30323 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30324 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
30325 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
30326 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
30327 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
30328 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
30329 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
30330 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
30331 "src/epaths.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/epaths.h" ;;
30332 "src/.gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS src/.gdbinit" ;;
30334 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30335 esac
30336 done
30339 # If the user did not use the arguments to specify the items to instantiate,
30340 # then the envvar interface is used. Set only those that are not.
30341 # We use the long form for the default assignment because of an extremely
30342 # bizarre bug on SunOS 4.1.3.
30343 if $ac_need_defaults; then
30344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30346 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30349 # Have a temporary directory for convenience. Make it in the build tree
30350 # simply because there is no reason against having it here, and in addition,
30351 # creating and moving files from /tmp can sometimes cause problems.
30352 # Hook for its removal unless debugging.
30353 # Note that there is a small window in which the directory will not be cleaned:
30354 # after its creation but before its name has been assigned to `$tmp'.
30355 $debug ||
30357 tmp=
30358 trap 'exit_status=$?
30359 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30361 trap 'as_fn_exit 1' 1 2 13 15
30363 # Create a (secure) tmp directory for tmp files.
30366 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30367 test -n "$tmp" && test -d "$tmp"
30368 } ||
30370 tmp=./conf$$-$RANDOM
30371 (umask 077 && mkdir "$tmp")
30372 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30374 # Set up the scripts for CONFIG_FILES section.
30375 # No need to generate them if there are no CONFIG_FILES.
30376 # This happens for instance with `./config.status config.h'.
30377 if test -n "$CONFIG_FILES"; then
30379 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30380 ac_cs_awk_getline=:
30381 ac_cs_awk_pipe_init=
30382 ac_cs_awk_read_file='
30383 while ((getline aline < (F[key])) > 0)
30384 print(aline)
30385 close(F[key])'
30386 ac_cs_awk_pipe_fini=
30387 else
30388 ac_cs_awk_getline=false
30389 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30390 ac_cs_awk_read_file='
30391 print "|#_!!_#|"
30392 print "cat " F[key] " &&"
30393 '$ac_cs_awk_pipe_init
30394 # The final `:' finishes the AND list.
30395 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30397 ac_cr=`echo X | tr X '\015'`
30398 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30399 # But we know of no other shell where ac_cr would be empty at this
30400 # point, so we can use a bashism as a fallback.
30401 if test "x$ac_cr" = x; then
30402 eval ac_cr=\$\'\\r\'
30404 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30405 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30406 ac_cs_awk_cr='\r'
30407 else
30408 ac_cs_awk_cr=$ac_cr
30411 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30412 _ACEOF
30414 # Create commands to substitute file output variables.
30416 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30417 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30418 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30419 echo "_ACAWK" &&
30420 echo "_ACEOF"
30421 } >conf$$files.sh &&
30422 . ./conf$$files.sh ||
30423 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30424 rm -f conf$$files.sh
30427 echo "cat >conf$$subs.awk <<_ACEOF" &&
30428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30429 echo "_ACEOF"
30430 } >conf$$subs.sh ||
30431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30432 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30433 ac_delim='%!_!# '
30434 for ac_last_try in false false false false false :; do
30435 . ./conf$$subs.sh ||
30436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30438 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30439 if test $ac_delim_n = $ac_delim_num; then
30440 break
30441 elif $ac_last_try; then
30442 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30443 else
30444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30446 done
30447 rm -f conf$$subs.sh
30449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30450 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30451 _ACEOF
30452 sed -n '
30454 s/^/S["/; s/!.*/"]=/
30457 s/^[^!]*!//
30458 :repl
30459 t repl
30460 s/'"$ac_delim"'$//
30461 t delim
30464 s/\(.\{148\}\)..*/\1/
30465 t more1
30466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30469 b repl
30470 :more1
30471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30474 s/.\{148\}//
30475 t nl
30476 :delim
30478 s/\(.\{148\}\)..*/\1/
30479 t more2
30480 s/["\\]/\\&/g; s/^/"/; s/$/"/
30483 :more2
30484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30487 s/.\{148\}//
30488 t delim
30489 ' <conf$$subs.awk | sed '
30490 /^[^""]/{
30492 s/\n//
30494 ' >>$CONFIG_STATUS || ac_write_fail=1
30495 rm -f conf$$subs.awk
30496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30497 _ACAWK
30498 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30499 for (key in S) S_is_set[key] = 1
30500 FS = "\a"
30501 \$ac_cs_awk_pipe_init
30504 line = $ 0
30505 nfields = split(line, field, "@")
30506 substed = 0
30507 len = length(field[1])
30508 for (i = 2; i < nfields; i++) {
30509 key = field[i]
30510 keylen = length(key)
30511 if (S_is_set[key]) {
30512 value = S[key]
30513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30514 len += length(value) + length(field[++i])
30515 substed = 1
30516 } else
30517 len += 1 + keylen
30519 if (nfields == 3 && !substed) {
30520 key = field[2]
30521 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30522 \$ac_cs_awk_read_file
30523 next
30526 print line
30528 \$ac_cs_awk_pipe_fini
30529 _ACAWK
30530 _ACEOF
30531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30532 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30533 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30534 else
30536 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30537 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30538 _ACEOF
30540 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30541 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30542 # trailing colons and then remove the whole line if VPATH becomes empty
30543 # (actually we leave an empty line to preserve line numbers).
30544 if test "x$srcdir" = x.; then
30545 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30546 s/:*\$(srcdir):*/:/
30547 s/:*\${srcdir}:*/:/
30548 s/:*@srcdir@:*/:/
30549 s/^\([^=]*=[ ]*\):*/\1/
30550 s/:*$//
30551 s/^[^=]*=[ ]*$//
30555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30556 fi # test -n "$CONFIG_FILES"
30558 # Set up the scripts for CONFIG_HEADERS section.
30559 # No need to generate them if there are no CONFIG_HEADERS.
30560 # This happens for instance with `./config.status Makefile'.
30561 if test -n "$CONFIG_HEADERS"; then
30562 cat >"$tmp/defines.awk" <<\_ACAWK ||
30563 BEGIN {
30564 _ACEOF
30566 # Transform confdefs.h into an awk script `defines.awk', embedded as
30567 # here-document in config.status, that substitutes the proper values into
30568 # config.h.in to produce config.h.
30570 # Create a delimiter string that does not exist in confdefs.h, to ease
30571 # handling of long lines.
30572 ac_delim='%!_!# '
30573 for ac_last_try in false false :; do
30574 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30575 if test -z "$ac_t"; then
30576 break
30577 elif $ac_last_try; then
30578 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30579 else
30580 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30582 done
30584 # For the awk script, D is an array of macro values keyed by name,
30585 # likewise P contains macro parameters if any. Preserve backslash
30586 # newline sequences.
30588 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30589 sed -n '
30590 s/.\{148\}/&'"$ac_delim"'/g
30591 t rset
30592 :rset
30593 s/^[ ]*#[ ]*define[ ][ ]*/ /
30594 t def
30596 :def
30597 s/\\$//
30598 t bsnl
30599 s/["\\]/\\&/g
30600 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30601 D["\1"]=" \3"/p
30602 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30604 :bsnl
30605 s/["\\]/\\&/g
30606 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30607 D["\1"]=" \3\\\\\\n"\\/p
30608 t cont
30609 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30610 t cont
30612 :cont
30614 s/.\{148\}/&'"$ac_delim"'/g
30615 t clear
30616 :clear
30617 s/\\$//
30618 t bsnlc
30619 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30621 :bsnlc
30622 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30623 b cont
30624 ' <confdefs.h | sed '
30625 s/'"$ac_delim"'/"\\\
30626 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30629 for (key in D) D_is_set[key] = 1
30630 FS = "\a"
30632 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30633 line = \$ 0
30634 split(line, arg, " ")
30635 if (arg[1] == "#") {
30636 defundef = arg[2]
30637 mac1 = arg[3]
30638 } else {
30639 defundef = substr(arg[1], 2)
30640 mac1 = arg[2]
30642 split(mac1, mac2, "(") #)
30643 macro = mac2[1]
30644 prefix = substr(line, 1, index(line, defundef) - 1)
30645 if (D_is_set[macro]) {
30646 # Preserve the white space surrounding the "#".
30647 print prefix "define", macro P[macro] D[macro]
30648 next
30649 } else {
30650 # Replace #undef with comments. This is necessary, for example,
30651 # in the case of _POSIX_SOURCE, which is predefined and required
30652 # on some systems where configure will not decide to define it.
30653 if (defundef == "undef") {
30654 print "/*", prefix defundef, macro, "*/"
30655 next
30659 { print }
30660 _ACAWK
30661 _ACEOF
30662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30663 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30664 fi # test -n "$CONFIG_HEADERS"
30667 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30668 shift
30669 for ac_tag
30671 case $ac_tag in
30672 :[FHLC]) ac_mode=$ac_tag; continue;;
30673 esac
30674 case $ac_mode$ac_tag in
30675 :[FHL]*:*);;
30676 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30677 :[FH]-) ac_tag=-:-;;
30678 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30679 esac
30680 ac_save_IFS=$IFS
30681 IFS=:
30682 set x $ac_tag
30683 IFS=$ac_save_IFS
30684 shift
30685 ac_file=$1
30686 shift
30688 case $ac_mode in
30689 :L) ac_source=$1;;
30690 :[FH])
30691 ac_file_inputs=
30692 for ac_f
30694 case $ac_f in
30695 -) ac_f="$tmp/stdin";;
30696 *) # Look for the file first in the build tree, then in the source tree
30697 # (if the path is not absolute). The absolute path cannot be DOS-style,
30698 # because $ac_f cannot contain `:'.
30699 test -f "$ac_f" ||
30700 case $ac_f in
30701 [\\/$]*) false;;
30702 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30703 esac ||
30704 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30705 esac
30706 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30707 as_fn_append ac_file_inputs " '$ac_f'"
30708 done
30710 # Let's still pretend it is `configure' which instantiates (i.e., don't
30711 # use $as_me), people would be surprised to read:
30712 # /* config.h. Generated by config.status. */
30713 configure_input='Generated from '`
30714 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30715 `' by configure.'
30716 if test x"$ac_file" != x-; then
30717 configure_input="$ac_file. $configure_input"
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30719 $as_echo "$as_me: creating $ac_file" >&6;}
30721 # Neutralize special characters interpreted by sed in replacement strings.
30722 case $configure_input in #(
30723 *\&* | *\|* | *\\* )
30724 ac_sed_conf_input=`$as_echo "$configure_input" |
30725 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30726 *) ac_sed_conf_input=$configure_input;;
30727 esac
30729 case $ac_tag in
30730 *:-:* | *:-) cat >"$tmp/stdin" \
30731 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30732 esac
30734 esac
30736 ac_dir=`$as_dirname -- "$ac_file" ||
30737 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30738 X"$ac_file" : 'X\(//\)[^/]' \| \
30739 X"$ac_file" : 'X\(//\)$' \| \
30740 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30741 $as_echo X"$ac_file" |
30742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30743 s//\1/
30746 /^X\(\/\/\)[^/].*/{
30747 s//\1/
30750 /^X\(\/\/\)$/{
30751 s//\1/
30754 /^X\(\/\).*/{
30755 s//\1/
30758 s/.*/./; q'`
30759 as_dir="$ac_dir"; as_fn_mkdir_p
30760 ac_builddir=.
30762 case "$ac_dir" in
30763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30766 # A ".." for each directory in $ac_dir_suffix.
30767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30768 case $ac_top_builddir_sub in
30769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30771 esac ;;
30772 esac
30773 ac_abs_top_builddir=$ac_pwd
30774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30775 # for backward compatibility:
30776 ac_top_builddir=$ac_top_build_prefix
30778 case $srcdir in
30779 .) # We are building in place.
30780 ac_srcdir=.
30781 ac_top_srcdir=$ac_top_builddir_sub
30782 ac_abs_top_srcdir=$ac_pwd ;;
30783 [\\/]* | ?:[\\/]* ) # Absolute name.
30784 ac_srcdir=$srcdir$ac_dir_suffix;
30785 ac_top_srcdir=$srcdir
30786 ac_abs_top_srcdir=$srcdir ;;
30787 *) # Relative name.
30788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30789 ac_top_srcdir=$ac_top_build_prefix$srcdir
30790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30791 esac
30792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30795 case $ac_mode in
30798 # CONFIG_FILE
30801 case $INSTALL in
30802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30803 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30804 esac
30805 ac_MKDIR_P=$MKDIR_P
30806 case $MKDIR_P in
30807 [\\/$]* | ?:[\\/]* ) ;;
30808 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30809 esac
30810 _ACEOF
30812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30813 # If the template does not know about datarootdir, expand it.
30814 # FIXME: This hack should be removed a few years after 2.60.
30815 ac_datarootdir_hack=; ac_datarootdir_seen=
30816 ac_sed_dataroot='
30817 /datarootdir/ {
30821 /@datadir@/p
30822 /@docdir@/p
30823 /@infodir@/p
30824 /@localedir@/p
30825 /@mandir@/p'
30826 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30827 *datarootdir*) ac_datarootdir_seen=yes;;
30828 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30830 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30831 _ACEOF
30832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30833 ac_datarootdir_hack='
30834 s&@datadir@&$datadir&g
30835 s&@docdir@&$docdir&g
30836 s&@infodir@&$infodir&g
30837 s&@localedir@&$localedir&g
30838 s&@mandir@&$mandir&g
30839 s&\\\${datarootdir}&$datarootdir&g' ;;
30840 esac
30841 _ACEOF
30843 # Neutralize VPATH when `$srcdir' = `.'.
30844 # Shell code in configure.ac might set extrasub.
30845 # FIXME: do we really want to maintain this feature?
30846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30847 ac_sed_extra="$ac_vpsub
30848 $extrasub
30849 _ACEOF
30850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30853 s|@configure_input@|$ac_sed_conf_input|;t t
30854 s&@top_builddir@&$ac_top_builddir_sub&;t t
30855 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30856 s&@srcdir@&$ac_srcdir&;t t
30857 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30858 s&@top_srcdir@&$ac_top_srcdir&;t t
30859 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30860 s&@builddir@&$ac_builddir&;t t
30861 s&@abs_builddir@&$ac_abs_builddir&;t t
30862 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30863 s&@INSTALL@&$ac_INSTALL&;t t
30864 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30865 $ac_datarootdir_hack
30867 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30868 if $ac_cs_awk_getline; then
30869 $AWK -f "$tmp/subs.awk"
30870 else
30871 $AWK -f "$tmp/subs.awk" | $SHELL
30872 fi >$tmp/out \
30873 || as_fn_error "could not create $ac_file" "$LINENO" 5
30875 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30876 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30877 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30879 which seems to be undefined. Please make sure it is defined." >&5
30880 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30881 which seems to be undefined. Please make sure it is defined." >&2;}
30883 rm -f "$tmp/stdin"
30884 case $ac_file in
30885 -) cat "$tmp/out" && rm -f "$tmp/out";;
30886 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30887 esac \
30888 || as_fn_error "could not create $ac_file" "$LINENO" 5
30892 # CONFIG_HEADER
30894 if test x"$ac_file" != x-; then
30896 $as_echo "/* $configure_input */" \
30897 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30898 } >"$tmp/config.h" \
30899 || as_fn_error "could not create $ac_file" "$LINENO" 5
30900 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30902 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30903 else
30904 rm -f "$ac_file"
30905 mv "$tmp/config.h" "$ac_file" \
30906 || as_fn_error "could not create $ac_file" "$LINENO" 5
30908 else
30909 $as_echo "/* $configure_input */" \
30910 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30911 || as_fn_error "could not create -" "$LINENO" 5
30913 # Compute "$ac_file"'s index in $config_headers.
30914 _am_arg="$ac_file"
30915 _am_stamp_count=1
30916 for _am_header in $config_headers :; do
30917 case $_am_header in
30918 $_am_arg | $_am_arg:* )
30919 break ;;
30921 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30922 esac
30923 done
30924 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30925 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30926 X"$_am_arg" : 'X\(//\)[^/]' \| \
30927 X"$_am_arg" : 'X\(//\)$' \| \
30928 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30929 $as_echo X"$_am_arg" |
30930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30931 s//\1/
30934 /^X\(\/\/\)[^/].*/{
30935 s//\1/
30938 /^X\(\/\/\)$/{
30939 s//\1/
30942 /^X\(\/\).*/{
30943 s//\1/
30946 s/.*/./; q'`/stamp-h$_am_stamp_count
30949 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30950 $as_echo "$as_me: executing $ac_file commands" >&6;}
30952 esac
30955 case $ac_file$ac_mode in
30956 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30957 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30958 # are listed without --file. Let's play safe and only enable the eval
30959 # if we detect the quoting.
30960 case $CONFIG_FILES in
30961 *\'*) eval set x "$CONFIG_FILES" ;;
30962 *) set x $CONFIG_FILES ;;
30963 esac
30964 shift
30965 for mf
30967 # Strip MF so we end up with the name of the file.
30968 mf=`echo "$mf" | sed -e 's/:.*$//'`
30969 # Check whether this is an Automake generated Makefile or not.
30970 # We used to match only the files named `Makefile.in', but
30971 # some people rename them; so instead we look at the file content.
30972 # Grep'ing the first line is not enough: some people post-process
30973 # each Makefile.in and add a new line on top of each file to say so.
30974 # Grep'ing the whole file is not good either: AIX grep has a line
30975 # limit of 2048, but all sed's we know have understand at least 4000.
30976 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30977 dirpart=`$as_dirname -- "$mf" ||
30978 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30979 X"$mf" : 'X\(//\)[^/]' \| \
30980 X"$mf" : 'X\(//\)$' \| \
30981 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30982 $as_echo X"$mf" |
30983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30984 s//\1/
30987 /^X\(\/\/\)[^/].*/{
30988 s//\1/
30991 /^X\(\/\/\)$/{
30992 s//\1/
30995 /^X\(\/\).*/{
30996 s//\1/
30999 s/.*/./; q'`
31000 else
31001 continue
31003 # Extract the definition of DEPDIR, am__include, and am__quote
31004 # from the Makefile without running `make'.
31005 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31006 test -z "$DEPDIR" && continue
31007 am__include=`sed -n 's/^am__include = //p' < "$mf"`
31008 test -z "am__include" && continue
31009 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31010 # When using ansi2knr, U may be empty or an underscore; expand it
31011 U=`sed -n 's/^U = //p' < "$mf"`
31012 # Find all dependency output files, they are included files with
31013 # $(DEPDIR) in their names. We invoke sed twice because it is the
31014 # simplest approach to changing $(DEPDIR) to its actual value in the
31015 # expansion.
31016 for file in `sed -n "
31017 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31018 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31019 # Make sure the directory exists.
31020 test -f "$dirpart/$file" && continue
31021 fdir=`$as_dirname -- "$file" ||
31022 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31023 X"$file" : 'X\(//\)[^/]' \| \
31024 X"$file" : 'X\(//\)$' \| \
31025 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
31026 $as_echo X"$file" |
31027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31028 s//\1/
31031 /^X\(\/\/\)[^/].*/{
31032 s//\1/
31035 /^X\(\/\/\)$/{
31036 s//\1/
31039 /^X\(\/\).*/{
31040 s//\1/
31043 s/.*/./; q'`
31044 as_dir=$dirpart/$fdir; as_fn_mkdir_p
31045 # echo "creating $dirpart/$file"
31046 echo '# dummy' > "$dirpart/$file"
31047 done
31048 done
31051 "src/epaths.h":C)
31052 if test "${opsys}" = "mingw32"; then
31053 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
31054 else
31055 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
31058 "src/.gdbinit":C)
31059 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
31060 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
31064 esac
31065 done # for ac_tag
31068 as_fn_exit 0
31069 _ACEOF
31070 ac_clean_files=$ac_clean_files_save
31072 test $ac_write_fail = 0 ||
31073 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31076 # configure is writing to config.log, and then calls config.status.
31077 # config.status does its own redirection, appending to config.log.
31078 # Unfortunately, on DOS this fails, as config.log is still kept open
31079 # by configure, so config.status won't be able to write to it; its
31080 # output is simply discarded. So we exec the FD to /dev/null,
31081 # effectively closing config.log, so it can be properly (re)opened and
31082 # appended to by config.status. When coming back to configure, we
31083 # need to make the FD available again.
31084 if test "$no_create" != yes; then
31085 ac_cs_success=:
31086 ac_config_status_args=
31087 test "$silent" = yes &&
31088 ac_config_status_args="$ac_config_status_args --quiet"
31089 exec 5>/dev/null
31090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31091 exec 5>>config.log
31092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31093 # would make configure fail if this is the last instruction.
31094 $ac_cs_success || as_fn_exit $?
31096 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31098 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}