Auto-commit of generated files.
[emacs.git] / autogen / configure
blob325b333f00d85425e8bedc1814336e20a56bf12a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 ns_check_file
608 WINDOW_SYSTEM_OBJ
609 EMACS_HEAPSIZE
610 TEMACS_POST_LINK
611 ADDSECTION
612 LD_SWITCH_SYSTEM_TEMACS
613 LIBGNU_LTLIBDEPS
614 LIBGNU_LIBDEPS
615 gltests_WITNESS
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
617 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
618 gl_GNULIB_ENABLED_tempname_FALSE
619 gl_GNULIB_ENABLED_tempname_TRUE
620 gl_GNULIB_ENABLED_strtoull_FALSE
621 gl_GNULIB_ENABLED_strtoull_TRUE
622 gl_GNULIB_ENABLED_strtoll_FALSE
623 gl_GNULIB_ENABLED_strtoll_TRUE
624 gl_GNULIB_ENABLED_stat_FALSE
625 gl_GNULIB_ENABLED_stat_TRUE
626 gl_GNULIB_ENABLED_secure_getenv_FALSE
627 gl_GNULIB_ENABLED_secure_getenv_TRUE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
629 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
630 gl_GNULIB_ENABLED_pathmax_FALSE
631 gl_GNULIB_ENABLED_pathmax_TRUE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
633 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
635 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
637 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
638 gl_GNULIB_ENABLED_getgroups_FALSE
639 gl_GNULIB_ENABLED_getgroups_TRUE
640 gl_GNULIB_ENABLED_getdtablesize_FALSE
641 gl_GNULIB_ENABLED_getdtablesize_TRUE
642 gl_GNULIB_ENABLED_euidaccess_FALSE
643 gl_GNULIB_ENABLED_euidaccess_TRUE
644 gl_GNULIB_ENABLED_dosname_FALSE
645 gl_GNULIB_ENABLED_dosname_TRUE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
647 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
648 LTLIBINTL
649 LIBINTL
650 LIB_EACCESS
651 WINDOWS_64_BIT_OFF_T
652 HAVE_UNISTD_H
653 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
654 NEXT_UNISTD_H
655 LIB_TIMER_TIME
656 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
657 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
658 TIME_H_DEFINES_STRUCT_TIMESPEC
659 NEXT_AS_FIRST_DIRECTIVE_TIME_H
660 NEXT_TIME_H
661 WINDOWS_64_BIT_ST_SIZE
662 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
663 NEXT_SYS_STAT_H
664 NEXT_AS_FIRST_DIRECTIVE_STRING_H
665 NEXT_STRING_H
666 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
667 NEXT_STDLIB_H
668 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
669 NEXT_STDIO_H
670 REPLACE_VSPRINTF
671 REPLACE_VSNPRINTF
672 REPLACE_VPRINTF
673 REPLACE_VFPRINTF
674 REPLACE_VDPRINTF
675 REPLACE_VASPRINTF
676 REPLACE_TMPFILE
677 REPLACE_STDIO_WRITE_FUNCS
678 REPLACE_STDIO_READ_FUNCS
679 REPLACE_SPRINTF
680 REPLACE_SNPRINTF
681 REPLACE_RENAMEAT
682 REPLACE_RENAME
683 REPLACE_REMOVE
684 REPLACE_PRINTF
685 REPLACE_POPEN
686 REPLACE_PERROR
687 REPLACE_OBSTACK_PRINTF
688 REPLACE_GETLINE
689 REPLACE_GETDELIM
690 REPLACE_FTELLO
691 REPLACE_FTELL
692 REPLACE_FSEEKO
693 REPLACE_FSEEK
694 REPLACE_FREOPEN
695 REPLACE_FPURGE
696 REPLACE_FPRINTF
697 REPLACE_FOPEN
698 REPLACE_FFLUSH
699 REPLACE_FDOPEN
700 REPLACE_FCLOSE
701 REPLACE_DPRINTF
702 HAVE_VDPRINTF
703 HAVE_VASPRINTF
704 HAVE_RENAMEAT
705 HAVE_POPEN
706 HAVE_PCLOSE
707 HAVE_FTELLO
708 HAVE_FSEEKO
709 HAVE_DPRINTF
710 HAVE_DECL_VSNPRINTF
711 HAVE_DECL_SNPRINTF
712 HAVE_DECL_OBSTACK_PRINTF
713 HAVE_DECL_GETLINE
714 HAVE_DECL_GETDELIM
715 HAVE_DECL_FTELLO
716 HAVE_DECL_FSEEKO
717 HAVE_DECL_FPURGE
718 GNULIB_VSPRINTF_POSIX
719 GNULIB_VSNPRINTF
720 GNULIB_VPRINTF_POSIX
721 GNULIB_VPRINTF
722 GNULIB_VFPRINTF_POSIX
723 GNULIB_VFPRINTF
724 GNULIB_VDPRINTF
725 GNULIB_VSCANF
726 GNULIB_VFSCANF
727 GNULIB_VASPRINTF
728 GNULIB_TMPFILE
729 GNULIB_STDIO_H_SIGPIPE
730 GNULIB_STDIO_H_NONBLOCKING
731 GNULIB_SPRINTF_POSIX
732 GNULIB_SNPRINTF
733 GNULIB_SCANF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_PCLOSE
745 GNULIB_OBSTACK_PRINTF_POSIX
746 GNULIB_OBSTACK_PRINTF
747 GNULIB_GETLINE
748 GNULIB_GETDELIM
749 GNULIB_GETCHAR
750 GNULIB_GETC
751 GNULIB_FWRITE
752 GNULIB_FTELLO
753 GNULIB_FTELL
754 GNULIB_FSEEKO
755 GNULIB_FSEEK
756 GNULIB_FSCANF
757 GNULIB_FREOPEN
758 GNULIB_FREAD
759 GNULIB_FPUTS
760 GNULIB_FPUTC
761 GNULIB_FPURGE
762 GNULIB_FPRINTF_POSIX
763 GNULIB_FPRINTF
764 GNULIB_FOPEN
765 GNULIB_FGETS
766 GNULIB_FGETC
767 GNULIB_FFLUSH
768 GNULIB_FDOPEN
769 GNULIB_FCLOSE
770 GNULIB_DPRINTF
771 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
772 NEXT_STDDEF_H
773 GL_GENERATE_STDDEF_H_FALSE
774 GL_GENERATE_STDDEF_H_TRUE
775 STDDEF_H
776 HAVE_WCHAR_T
777 REPLACE_NULL
778 HAVE__BOOL
779 GL_GENERATE_STDBOOL_H_FALSE
780 GL_GENERATE_STDBOOL_H_TRUE
781 STDBOOL_H
782 GL_GENERATE_STDARG_H_FALSE
783 GL_GENERATE_STDARG_H_TRUE
784 STDARG_H
785 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
786 NEXT_STDARG_H
787 GL_GENERATE_STDALIGN_H_FALSE
788 GL_GENERATE_STDALIGN_H_TRUE
789 STDALIGN_H
790 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
791 NEXT_SIGNAL_H
792 USE_ACL
793 LIB_ACL
794 LIB_PTHREAD_SIGMASK
795 REPLACE_RAISE
796 REPLACE_PTHREAD_SIGMASK
797 HAVE_SIGHANDLER_T
798 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
799 HAVE_STRUCT_SIGACTION_SA_SIGACTION
800 HAVE_SIGACTION
801 HAVE_SIGINFO_T
802 HAVE_SIGSET_T
803 HAVE_RAISE
804 HAVE_PTHREAD_SIGMASK
805 HAVE_POSIX_SIGNALBLOCKING
806 GNULIB_SIGACTION
807 GNULIB_SIGPROCMASK
808 GNULIB_SIGNAL_H_SIGPIPE
809 GNULIB_RAISE
810 GNULIB_PTHREAD_SIGMASK
811 HAVE_SYS_SELECT_H
812 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
813 NEXT_SYS_SELECT_H
814 REPLACE_SELECT
815 REPLACE_PSELECT
816 HAVE_PSELECT
817 GNULIB_SELECT
818 GNULIB_PSELECT
819 REPLACE_TIMEGM
820 REPLACE_NANOSLEEP
821 REPLACE_MKTIME
822 REPLACE_LOCALTIME_R
823 HAVE_TIMEGM
824 HAVE_STRPTIME
825 HAVE_NANOSLEEP
826 HAVE_DECL_LOCALTIME_R
827 GNULIB_TIME_R
828 GNULIB_TIMEGM
829 GNULIB_STRPTIME
830 GNULIB_NANOSLEEP
831 GNULIB_MKTIME
832 UNDEFINE_STRTOK_R
833 REPLACE_STRTOK_R
834 REPLACE_STRSIGNAL
835 REPLACE_STRNLEN
836 REPLACE_STRNDUP
837 REPLACE_STRNCAT
838 REPLACE_STRERROR_R
839 REPLACE_STRERROR
840 REPLACE_STRCHRNUL
841 REPLACE_STRCASESTR
842 REPLACE_STRSTR
843 REPLACE_STRDUP
844 REPLACE_STPNCPY
845 REPLACE_MEMMEM
846 REPLACE_MEMCHR
847 HAVE_STRVERSCMP
848 HAVE_DECL_STRSIGNAL
849 HAVE_DECL_STRERROR_R
850 HAVE_DECL_STRTOK_R
851 HAVE_STRCASESTR
852 HAVE_STRSEP
853 HAVE_STRPBRK
854 HAVE_DECL_STRNLEN
855 HAVE_DECL_STRNDUP
856 HAVE_DECL_STRDUP
857 HAVE_STRCHRNUL
858 HAVE_STPNCPY
859 HAVE_STPCPY
860 HAVE_RAWMEMCHR
861 HAVE_DECL_MEMRCHR
862 HAVE_MEMPCPY
863 HAVE_DECL_MEMMEM
864 HAVE_MEMCHR
865 HAVE_FFSLL
866 HAVE_FFSL
867 HAVE_MBSLEN
868 GNULIB_STRVERSCMP
869 GNULIB_STRSIGNAL
870 GNULIB_STRERROR_R
871 GNULIB_STRERROR
872 GNULIB_MBSTOK_R
873 GNULIB_MBSSEP
874 GNULIB_MBSSPN
875 GNULIB_MBSPBRK
876 GNULIB_MBSCSPN
877 GNULIB_MBSCASESTR
878 GNULIB_MBSPCASECMP
879 GNULIB_MBSNCASECMP
880 GNULIB_MBSCASECMP
881 GNULIB_MBSSTR
882 GNULIB_MBSRCHR
883 GNULIB_MBSCHR
884 GNULIB_MBSNLEN
885 GNULIB_MBSLEN
886 GNULIB_STRTOK_R
887 GNULIB_STRCASESTR
888 GNULIB_STRSTR
889 GNULIB_STRSEP
890 GNULIB_STRPBRK
891 GNULIB_STRNLEN
892 GNULIB_STRNDUP
893 GNULIB_STRNCAT
894 GNULIB_STRDUP
895 GNULIB_STRCHRNUL
896 GNULIB_STPNCPY
897 GNULIB_STPCPY
898 GNULIB_RAWMEMCHR
899 GNULIB_MEMRCHR
900 GNULIB_MEMPCPY
901 GNULIB_MEMMEM
902 GNULIB_MEMCHR
903 GNULIB_FFSLL
904 GNULIB_FFSL
905 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
906 NEXT_INTTYPES_H
907 UINT64_MAX_EQ_ULONG_MAX
908 UINT32_MAX_LT_UINTMAX_MAX
909 PRIPTR_PREFIX
910 PRI_MACROS_BROKEN
911 INT64_MAX_EQ_LONG_MAX
912 INT32_MAX_LT_INTMAX_MAX
913 REPLACE_STRTOIMAX
914 HAVE_DECL_STRTOUMAX
915 HAVE_DECL_STRTOIMAX
916 HAVE_DECL_IMAXDIV
917 HAVE_DECL_IMAXABS
918 GNULIB_STRTOUMAX
919 GNULIB_STRTOIMAX
920 GNULIB_IMAXDIV
921 GNULIB_IMAXABS
922 GL_GENERATE_STDINT_H_FALSE
923 GL_GENERATE_STDINT_H_TRUE
924 STDINT_H
925 WINT_T_SUFFIX
926 WCHAR_T_SUFFIX
927 SIG_ATOMIC_T_SUFFIX
928 SIZE_T_SUFFIX
929 PTRDIFF_T_SUFFIX
930 HAVE_SIGNED_WINT_T
931 HAVE_SIGNED_WCHAR_T
932 HAVE_SIGNED_SIG_ATOMIC_T
933 BITSIZEOF_WINT_T
934 BITSIZEOF_WCHAR_T
935 BITSIZEOF_SIG_ATOMIC_T
936 BITSIZEOF_SIZE_T
937 BITSIZEOF_PTRDIFF_T
938 APPLE_UNIVERSAL_BUILD
939 HAVE_SYS_BITYPES_H
940 HAVE_SYS_INTTYPES_H
941 HAVE_STDINT_H
942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
943 NEXT_STDINT_H
944 HAVE_SYS_TYPES_H
945 HAVE_INTTYPES_H
946 HAVE_WCHAR_H
947 HAVE_UNSIGNED_LONG_LONG_INT
948 HAVE_LONG_LONG_INT
949 HAVE_WINSOCK2_H
950 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
951 NEXT_SYS_TIME_H
952 REPLACE_STRUCT_TIMEVAL
953 REPLACE_GETTIMEOFDAY
954 HAVE_SYS_TIME_H
955 HAVE_STRUCT_TIMEVAL
956 HAVE_GETTIMEOFDAY
957 GNULIB_GETTIMEOFDAY
958 GNULIB_GL_UNISTD_H_GETOPT
959 GETOPT_H
960 HAVE_GETOPT_H
961 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
962 NEXT_GETOPT_H
963 GETLOADAVG_LIBS
964 REPLACE_WCTOMB
965 REPLACE_UNSETENV
966 REPLACE_STRTOD
967 REPLACE_SETENV
968 REPLACE_REALPATH
969 REPLACE_REALLOC
970 REPLACE_RANDOM_R
971 REPLACE_PUTENV
972 REPLACE_PTSNAME_R
973 REPLACE_PTSNAME
974 REPLACE_MKSTEMP
975 REPLACE_MBTOWC
976 REPLACE_MALLOC
977 REPLACE_CANONICALIZE_FILE_NAME
978 REPLACE_CALLOC
979 HAVE_DECL_UNSETENV
980 HAVE_UNLOCKPT
981 HAVE_SYS_LOADAVG_H
982 HAVE_STRUCT_RANDOM_DATA
983 HAVE_STRTOULL
984 HAVE_STRTOLL
985 HAVE_STRTOD
986 HAVE_DECL_SETENV
987 HAVE_SETENV
988 HAVE_SECURE_GETENV
989 HAVE_RPMATCH
990 HAVE_REALPATH
991 HAVE_RANDOM_R
992 HAVE_RANDOM_H
993 HAVE_RANDOM
994 HAVE_PTSNAME_R
995 HAVE_PTSNAME
996 HAVE_POSIX_OPENPT
997 HAVE_MKSTEMPS
998 HAVE_MKSTEMP
999 HAVE_MKOSTEMPS
1000 HAVE_MKOSTEMP
1001 HAVE_MKDTEMP
1002 HAVE_GRANTPT
1003 HAVE_GETSUBOPT
1004 HAVE_DECL_GETLOADAVG
1005 HAVE_CANONICALIZE_FILE_NAME
1006 HAVE_ATOLL
1007 HAVE__EXIT
1008 GNULIB_WCTOMB
1009 GNULIB_UNSETENV
1010 GNULIB_UNLOCKPT
1011 GNULIB_SYSTEM_POSIX
1012 GNULIB_STRTOULL
1013 GNULIB_STRTOLL
1014 GNULIB_STRTOD
1015 GNULIB_SETENV
1016 GNULIB_SECURE_GETENV
1017 GNULIB_RPMATCH
1018 GNULIB_REALPATH
1019 GNULIB_REALLOC_POSIX
1020 GNULIB_RANDOM_R
1021 GNULIB_RANDOM
1022 GNULIB_PUTENV
1023 GNULIB_PTSNAME_R
1024 GNULIB_PTSNAME
1025 GNULIB_POSIX_OPENPT
1026 GNULIB_MKSTEMPS
1027 GNULIB_MKSTEMP
1028 GNULIB_MKOSTEMPS
1029 GNULIB_MKOSTEMP
1030 GNULIB_MKDTEMP
1031 GNULIB_MBTOWC
1032 GNULIB_MALLOC_POSIX
1033 GNULIB_GRANTPT
1034 GNULIB_GETSUBOPT
1035 GNULIB_GETLOADAVG
1036 GNULIB_CANONICALIZE_FILE_NAME
1037 GNULIB_CALLOC_POSIX
1038 GNULIB_ATOLL
1039 GNULIB__EXIT
1040 REPLACE_UTIMENSAT
1041 REPLACE_STAT
1042 REPLACE_MKNOD
1043 REPLACE_MKFIFO
1044 REPLACE_MKDIR
1045 REPLACE_LSTAT
1046 REPLACE_FUTIMENS
1047 REPLACE_FSTATAT
1048 REPLACE_FSTAT
1049 HAVE_UTIMENSAT
1050 HAVE_MKNODAT
1051 HAVE_MKNOD
1052 HAVE_MKFIFOAT
1053 HAVE_MKFIFO
1054 HAVE_MKDIRAT
1055 HAVE_LSTAT
1056 HAVE_LCHMOD
1057 HAVE_FUTIMENS
1058 HAVE_FSTATAT
1059 HAVE_FCHMODAT
1060 GNULIB_UTIMENSAT
1061 GNULIB_STAT
1062 GNULIB_MKNODAT
1063 GNULIB_MKNOD
1064 GNULIB_MKFIFOAT
1065 GNULIB_MKFIFO
1066 GNULIB_MKDIRAT
1067 GNULIB_LSTAT
1068 GNULIB_LCHMOD
1069 GNULIB_FUTIMENS
1070 GNULIB_FSTATAT
1071 GNULIB_FSTAT
1072 GNULIB_FCHMODAT
1073 LIB_FDATASYNC
1074 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1075 NEXT_FCNTL_H
1076 REPLACE_OPENAT
1077 REPLACE_OPEN
1078 REPLACE_FCNTL
1079 HAVE_OPENAT
1080 HAVE_FCNTL
1081 GNULIB_OPENAT
1082 GNULIB_OPEN
1083 GNULIB_NONBLOCKING
1084 GNULIB_FCNTL
1085 GL_GENERATE_EXECINFO_H_FALSE
1086 GL_GENERATE_EXECINFO_H_TRUE
1087 LIB_EXECINFO
1088 EXECINFO_H
1089 EOVERFLOW_VALUE
1090 EOVERFLOW_HIDDEN
1091 ENOLINK_VALUE
1092 ENOLINK_HIDDEN
1093 EMULTIHOP_VALUE
1094 EMULTIHOP_HIDDEN
1095 GL_GENERATE_ERRNO_H_FALSE
1096 GL_GENERATE_ERRNO_H_TRUE
1097 ERRNO_H
1098 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1099 NEXT_ERRNO_H
1100 HAVE_DIRENT_H
1101 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1102 NEXT_DIRENT_H
1103 PRAGMA_COLUMNS
1104 PRAGMA_SYSTEM_HEADER
1105 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1106 INCLUDE_NEXT
1107 REPLACE_FDOPENDIR
1108 REPLACE_DIRFD
1109 REPLACE_CLOSEDIR
1110 REPLACE_OPENDIR
1111 HAVE_ALPHASORT
1112 HAVE_SCANDIR
1113 HAVE_FDOPENDIR
1114 HAVE_DECL_FDOPENDIR
1115 HAVE_DECL_DIRFD
1116 HAVE_CLOSEDIR
1117 HAVE_REWINDDIR
1118 HAVE_READDIR
1119 HAVE_OPENDIR
1120 GNULIB_ALPHASORT
1121 GNULIB_SCANDIR
1122 GNULIB_FDOPENDIR
1123 GNULIB_DIRFD
1124 GNULIB_CLOSEDIR
1125 GNULIB_REWINDDIR
1126 GNULIB_READDIR
1127 GNULIB_OPENDIR
1128 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1129 UNISTD_H_HAVE_WINSOCK2_H
1130 REPLACE_WRITE
1131 REPLACE_USLEEP
1132 REPLACE_UNLINKAT
1133 REPLACE_UNLINK
1134 REPLACE_TTYNAME_R
1135 REPLACE_SYMLINK
1136 REPLACE_SLEEP
1137 REPLACE_RMDIR
1138 REPLACE_READLINK
1139 REPLACE_READ
1140 REPLACE_PWRITE
1141 REPLACE_PREAD
1142 REPLACE_LSEEK
1143 REPLACE_LINKAT
1144 REPLACE_LINK
1145 REPLACE_LCHOWN
1146 REPLACE_ISATTY
1147 REPLACE_GETPAGESIZE
1148 REPLACE_GETGROUPS
1149 REPLACE_GETLOGIN_R
1150 REPLACE_GETDOMAINNAME
1151 REPLACE_GETCWD
1152 REPLACE_FTRUNCATE
1153 REPLACE_FCHOWNAT
1154 REPLACE_DUP2
1155 REPLACE_DUP
1156 REPLACE_CLOSE
1157 REPLACE_CHOWN
1158 HAVE_SYS_PARAM_H
1159 HAVE_OS_H
1160 HAVE_DECL_TTYNAME_R
1161 HAVE_DECL_SETHOSTNAME
1162 HAVE_DECL_GETUSERSHELL
1163 HAVE_DECL_GETPAGESIZE
1164 HAVE_DECL_GETLOGIN_R
1165 HAVE_DECL_GETDOMAINNAME
1166 HAVE_DECL_FDATASYNC
1167 HAVE_DECL_FCHDIR
1168 HAVE_DECL_ENVIRON
1169 HAVE_USLEEP
1170 HAVE_UNLINKAT
1171 HAVE_SYMLINKAT
1172 HAVE_SYMLINK
1173 HAVE_SLEEP
1174 HAVE_SETHOSTNAME
1175 HAVE_READLINKAT
1176 HAVE_READLINK
1177 HAVE_PWRITE
1178 HAVE_PREAD
1179 HAVE_PIPE2
1180 HAVE_PIPE
1181 HAVE_LINKAT
1182 HAVE_LINK
1183 HAVE_LCHOWN
1184 HAVE_GROUP_MEMBER
1185 HAVE_GETPAGESIZE
1186 HAVE_GETLOGIN
1187 HAVE_GETHOSTNAME
1188 HAVE_GETGROUPS
1189 HAVE_GETDTABLESIZE
1190 HAVE_FTRUNCATE
1191 HAVE_FSYNC
1192 HAVE_FDATASYNC
1193 HAVE_FCHOWNAT
1194 HAVE_FCHDIR
1195 HAVE_FACCESSAT
1196 HAVE_EUIDACCESS
1197 HAVE_DUP3
1198 HAVE_DUP2
1199 HAVE_CHOWN
1200 GNULIB_WRITE
1201 GNULIB_USLEEP
1202 GNULIB_UNLINKAT
1203 GNULIB_UNLINK
1204 GNULIB_UNISTD_H_SIGPIPE
1205 GNULIB_UNISTD_H_NONBLOCKING
1206 GNULIB_TTYNAME_R
1207 GNULIB_SYMLINKAT
1208 GNULIB_SYMLINK
1209 GNULIB_SLEEP
1210 GNULIB_SETHOSTNAME
1211 GNULIB_RMDIR
1212 GNULIB_READLINKAT
1213 GNULIB_READLINK
1214 GNULIB_READ
1215 GNULIB_PWRITE
1216 GNULIB_PREAD
1217 GNULIB_PIPE2
1218 GNULIB_PIPE
1219 GNULIB_LSEEK
1220 GNULIB_LINKAT
1221 GNULIB_LINK
1222 GNULIB_LCHOWN
1223 GNULIB_ISATTY
1224 GNULIB_GROUP_MEMBER
1225 GNULIB_GETUSERSHELL
1226 GNULIB_GETPAGESIZE
1227 GNULIB_GETLOGIN_R
1228 GNULIB_GETLOGIN
1229 GNULIB_GETHOSTNAME
1230 GNULIB_GETGROUPS
1231 GNULIB_GETDTABLESIZE
1232 GNULIB_GETDOMAINNAME
1233 GNULIB_GETCWD
1234 GNULIB_FTRUNCATE
1235 GNULIB_FSYNC
1236 GNULIB_FDATASYNC
1237 GNULIB_FCHOWNAT
1238 GNULIB_FCHDIR
1239 GNULIB_FACCESSAT
1240 GNULIB_EUIDACCESS
1241 GNULIB_ENVIRON
1242 GNULIB_DUP3
1243 GNULIB_DUP2
1244 GNULIB_DUP
1245 GNULIB_CLOSE
1246 GNULIB_CHOWN
1247 GNULIB_CHDIR
1248 LIB_CLOCK_GETTIME
1249 GL_GENERATE_ALLOCA_H_FALSE
1250 GL_GENERATE_ALLOCA_H_TRUE
1251 ALLOCA_H
1252 ALLOCA
1253 GL_COND_LIBTOOL_FALSE
1254 GL_COND_LIBTOOL_TRUE
1255 POST_ALLOC_OBJ
1256 PRE_ALLOC_OBJ
1257 CYGWIN_OBJ
1258 RALLOC_OBJ
1259 OLDXMENU_DEPS
1260 LIBX_OTHER
1261 LIBXMENU
1262 OLDXMENU
1263 OLDXMENU_TARGET
1264 LIBXT_OTHER
1265 TOOLKIT_LIBW
1266 WIDGET_OBJ
1267 XOBJ
1268 XMENU_OBJ
1269 FONT_OBJ
1270 OTHER_FILES
1271 GNU_OBJC_CFLAGS
1272 ns_appsrc
1273 ns_appresdir
1274 ns_appbindir
1275 ns_appdir
1276 X_TOOLKIT_TYPE
1277 GNUSTEP_CFLAGS
1278 C_SWITCH_X_SITE
1279 LD_SWITCH_X_SITE
1280 gameuser
1281 gamedir
1282 bitmapdir
1283 etcdocdir
1284 archlibdir
1285 etcdir
1286 x_default_search_path
1287 lisppath
1288 locallisppath
1289 standardlisppath
1290 leimdir
1291 lispdir
1292 srcdir
1293 canonical
1294 configuration
1295 version
1296 copyright
1297 XGSELOBJ
1298 KRB4LIB
1299 DESLIB
1300 KRB5LIB
1301 CRYPTOLIB
1302 COM_ERRLIB
1303 LIBRESOLV
1304 LIBHESIOD
1305 TERMCAP_OBJ
1306 LIBS_TERMCAP
1307 BLESSMAIL_TARGET
1308 LIBS_MAIL
1309 liblockfile
1310 LIBXML2_LIBS
1311 LIBXML2_CFLAGS
1312 XINERAMA_LIBS
1313 XINERAMA_CFLAGS
1314 XRANDR_LIBS
1315 XRANDR_CFLAGS
1316 LIBXSM
1317 LIBGPM
1318 LIBGIF
1319 LIBTIFF
1320 LIBZ
1321 LIBPNG
1322 LIBJPEG
1323 LIBXPM
1324 M17N_FLT_LIBS
1325 M17N_FLT_CFLAGS
1326 LIBOTF_LIBS
1327 LIBOTF_CFLAGS
1328 FREETYPE_LIBS
1329 FREETYPE_CFLAGS
1330 XFT_LIBS
1331 XFT_CFLAGS
1332 FONTCONFIG_LIBS
1333 FONTCONFIG_CFLAGS
1334 LIBXMU
1335 LIBXTR6
1336 NOTIFY_OBJ
1337 GFILENOTIFY_LIBS
1338 GFILENOTIFY_CFLAGS
1339 LIBGNUTLS_LIBS
1340 LIBGNUTLS_CFLAGS
1341 LIBSELINUX_LIBS
1342 SETTINGS_LIBS
1343 SETTINGS_CFLAGS
1344 GOBJECT_LIBS
1345 GOBJECT_CFLAGS
1346 GCONF_LIBS
1347 GCONF_CFLAGS
1348 GSETTINGS_LIBS
1349 GSETTINGS_CFLAGS
1350 DBUS_OBJ
1351 DBUS_LIBS
1352 DBUS_CFLAGS
1353 GTK_OBJ
1354 GTK_LIBS
1355 GTK_CFLAGS
1356 IMAGEMAGICK_LIBS
1357 IMAGEMAGICK_CFLAGS
1358 RSVG_LIBS
1359 RSVG_CFLAGS
1360 LIB_PTHREAD
1361 VMLIMIT_OBJ
1362 GMALLOC_OBJ
1363 HAVE_XSERVER
1364 XARGS_LIMIT
1365 NTLIB
1366 LIB_WSOCK32
1367 LIBS_ECLIENT
1368 CM_OBJ
1369 NTDIR
1370 FIRSTFILE_OBJ
1371 W32_RES_LINK
1372 CLIENTW
1373 CLIENTRES
1374 UPDATE_MANIFEST
1375 EMACS_MANIFEST
1376 EMACSRES
1377 W32_LIBS
1378 W32_OBJ
1379 WINDRES
1380 NS_OBJC_OBJ
1381 NS_OBJ
1382 ns_self_contained
1383 INSTALL_ARCH_INDEP_EXTRA
1384 LIBS_GNUSTEP
1385 LD_SWITCH_X_SITE_RPATH
1386 XMKMF
1387 DEPFLAGS
1388 MKDEPDIR
1389 CFLAGS_SOUND
1390 ALSA_LIBS
1391 ALSA_CFLAGS
1392 LIBSOUND
1393 PKG_CONFIG
1394 LIB_MATH
1395 LIBS_SYSTEM
1396 C_SWITCH_SYSTEM
1397 UNEXEC_OBJ
1398 C_SWITCH_MACHINE
1399 LD_SWITCH_SYSTEM
1400 CANNOT_DUMP
1401 DOCMISC_W32
1402 INFO_OPTS
1403 INFO_EXT
1404 HAVE_MAKEINFO
1405 PAXCTL
1406 GZIP_PROG
1407 INSTALL_INFO
1408 LN_S_FILEONLY
1409 GNULIB_WARN_CFLAGS
1410 WARN_CFLAGS
1411 WERROR_CFLAGS
1412 RANLIB
1413 ARFLAGS
1415 EGREP
1416 GREP
1418 BUILDING_FOR_WINDOWSNT_FALSE
1419 BUILDING_FOR_WINDOWSNT_TRUE
1420 am__fastdepCC_FALSE
1421 am__fastdepCC_TRUE
1422 CCDEPMODE
1423 AMDEPBACKSLASH
1424 AMDEP_FALSE
1425 AMDEP_TRUE
1426 am__quote
1427 am__include
1428 DEPDIR
1429 OBJEXT
1430 EXEEXT
1431 ac_ct_CC
1432 CPPFLAGS
1433 LDFLAGS
1434 CFLAGS
1436 host_os
1437 host_vendor
1438 host_cpu
1439 host
1440 build_os
1441 build_vendor
1442 build_cpu
1443 build
1444 PROFILING_CFLAGS
1445 cache_file
1446 am__untar
1447 am__tar
1448 AMTAR
1449 am__leading_dot
1450 SET_MAKE
1452 mkdir_p
1453 MKDIR_P
1454 INSTALL_STRIP_PROGRAM
1455 STRIP
1456 install_sh
1457 MAKEINFO
1458 AUTOHEADER
1459 AUTOMAKE
1460 AUTOCONF
1461 ACLOCAL
1462 VERSION
1463 PACKAGE
1464 CYGPATH_W
1465 am__isrc
1466 INSTALL_DATA
1467 INSTALL_SCRIPT
1468 INSTALL_PROGRAM
1469 target_alias
1470 host_alias
1471 build_alias
1472 LIBS
1473 ECHO_T
1474 ECHO_N
1475 ECHO_C
1476 DEFS
1477 mandir
1478 localedir
1479 libdir
1480 psdir
1481 pdfdir
1482 dvidir
1483 htmldir
1484 infodir
1485 docdir
1486 oldincludedir
1487 includedir
1488 localstatedir
1489 sharedstatedir
1490 sysconfdir
1491 datadir
1492 datarootdir
1493 libexecdir
1494 sbindir
1495 bindir
1496 program_transform_name
1497 prefix
1498 exec_prefix
1499 PACKAGE_URL
1500 PACKAGE_BUGREPORT
1501 PACKAGE_STRING
1502 PACKAGE_VERSION
1503 PACKAGE_TARNAME
1504 PACKAGE_NAME
1505 PATH_SEPARATOR
1506 SHELL'
1507 ac_subst_files='deps_frag
1508 lisp_frag'
1509 ac_user_opts='
1510 enable_option_checking
1511 with_all
1512 with_pop
1513 with_kerberos
1514 with_kerberos5
1515 with_hesiod
1516 with_mmdf
1517 with_mail_unlink
1518 with_mailhost
1519 with_sound
1520 with_x_toolkit
1521 with_wide_int
1522 with_xpm
1523 with_jpeg
1524 with_tiff
1525 with_gif
1526 with_png
1527 with_rsvg
1528 with_xml2
1529 with_imagemagick
1530 with_xft
1531 with_libotf
1532 with_m17n_flt
1533 with_toolkit_scroll_bars
1534 with_xaw3d
1535 with_xim
1536 with_ns
1537 with_w32
1538 with_gpm
1539 with_dbus
1540 with_gconf
1541 with_gsettings
1542 with_selinux
1543 with_gnutls
1544 with_zlib
1545 with_file_notification
1546 with_makeinfo
1547 with_compress_install
1548 with_pkg_config_prog
1549 with_gameuser
1550 with_gnustep_conf
1551 enable_ns_self_contained
1552 enable_locallisppath
1553 enable_checking
1554 enable_check_lisp_object_type
1555 enable_profiling
1556 enable_autodepend
1557 enable_gtk_deprecation_warnings
1558 enable_dependency_tracking
1559 enable_largefile
1560 enable_gcc_warnings
1561 enable_link_time_optimization
1562 with_x
1563 enable_acl
1565 ac_precious_vars='build_alias
1566 host_alias
1567 target_alias
1569 CFLAGS
1570 LDFLAGS
1571 LIBS
1572 CPPFLAGS
1574 XMKMF'
1577 # Initialize some variables set by options.
1578 ac_init_help=
1579 ac_init_version=false
1580 ac_unrecognized_opts=
1581 ac_unrecognized_sep=
1582 # The variables have the same names as the options, with
1583 # dashes changed to underlines.
1584 cache_file=/dev/null
1585 exec_prefix=NONE
1586 no_create=
1587 no_recursion=
1588 prefix=NONE
1589 program_prefix=NONE
1590 program_suffix=NONE
1591 program_transform_name=s,x,x,
1592 silent=
1593 site=
1594 srcdir=
1595 verbose=
1596 x_includes=NONE
1597 x_libraries=NONE
1599 # Installation directory options.
1600 # These are left unexpanded so users can "make install exec_prefix=/foo"
1601 # and all the variables that are supposed to be based on exec_prefix
1602 # by default will actually change.
1603 # Use braces instead of parens because sh, perl, etc. also accept them.
1604 # (The list follows the same order as the GNU Coding Standards.)
1605 bindir='${exec_prefix}/bin'
1606 sbindir='${exec_prefix}/sbin'
1607 libexecdir='${exec_prefix}/libexec'
1608 datarootdir='${prefix}/share'
1609 datadir='${datarootdir}'
1610 sysconfdir='${prefix}/etc'
1611 sharedstatedir='${prefix}/com'
1612 localstatedir='${prefix}/var'
1613 includedir='${prefix}/include'
1614 oldincludedir='/usr/include'
1615 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1616 infodir='${datarootdir}/info'
1617 htmldir='${docdir}'
1618 dvidir='${docdir}'
1619 pdfdir='${docdir}'
1620 psdir='${docdir}'
1621 libdir='${exec_prefix}/lib'
1622 localedir='${datarootdir}/locale'
1623 mandir='${datarootdir}/man'
1625 ac_prev=
1626 ac_dashdash=
1627 for ac_option
1629 # If the previous option needs an argument, assign it.
1630 if test -n "$ac_prev"; then
1631 eval $ac_prev=\$ac_option
1632 ac_prev=
1633 continue
1636 case $ac_option in
1637 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1638 *) ac_optarg=yes ;;
1639 esac
1641 # Accept the important Cygnus configure options, so we can diagnose typos.
1643 case $ac_dashdash$ac_option in
1645 ac_dashdash=yes ;;
1647 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1648 ac_prev=bindir ;;
1649 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1650 bindir=$ac_optarg ;;
1652 -build | --build | --buil | --bui | --bu)
1653 ac_prev=build_alias ;;
1654 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1655 build_alias=$ac_optarg ;;
1657 -cache-file | --cache-file | --cache-fil | --cache-fi \
1658 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1659 ac_prev=cache_file ;;
1660 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1661 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1662 cache_file=$ac_optarg ;;
1664 --config-cache | -C)
1665 cache_file=config.cache ;;
1667 -datadir | --datadir | --datadi | --datad)
1668 ac_prev=datadir ;;
1669 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1670 datadir=$ac_optarg ;;
1672 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1673 | --dataroo | --dataro | --datar)
1674 ac_prev=datarootdir ;;
1675 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1676 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1677 datarootdir=$ac_optarg ;;
1679 -disable-* | --disable-*)
1680 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1681 # Reject names that are not valid shell variable names.
1682 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1683 as_fn_error "invalid feature name: $ac_useropt"
1684 ac_useropt_orig=$ac_useropt
1685 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1686 case $ac_user_opts in
1688 "enable_$ac_useropt"
1689 "*) ;;
1690 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1691 ac_unrecognized_sep=', ';;
1692 esac
1693 eval enable_$ac_useropt=no ;;
1695 -docdir | --docdir | --docdi | --doc | --do)
1696 ac_prev=docdir ;;
1697 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1698 docdir=$ac_optarg ;;
1700 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1701 ac_prev=dvidir ;;
1702 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1703 dvidir=$ac_optarg ;;
1705 -enable-* | --enable-*)
1706 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1707 # Reject names that are not valid shell variable names.
1708 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1709 as_fn_error "invalid feature name: $ac_useropt"
1710 ac_useropt_orig=$ac_useropt
1711 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1712 case $ac_user_opts in
1714 "enable_$ac_useropt"
1715 "*) ;;
1716 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1717 ac_unrecognized_sep=', ';;
1718 esac
1719 eval enable_$ac_useropt=\$ac_optarg ;;
1721 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1722 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1723 | --exec | --exe | --ex)
1724 ac_prev=exec_prefix ;;
1725 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1726 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1727 | --exec=* | --exe=* | --ex=*)
1728 exec_prefix=$ac_optarg ;;
1730 -gas | --gas | --ga | --g)
1731 # Obsolete; use --with-gas.
1732 with_gas=yes ;;
1734 -help | --help | --hel | --he | -h)
1735 ac_init_help=long ;;
1736 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1737 ac_init_help=recursive ;;
1738 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1739 ac_init_help=short ;;
1741 -host | --host | --hos | --ho)
1742 ac_prev=host_alias ;;
1743 -host=* | --host=* | --hos=* | --ho=*)
1744 host_alias=$ac_optarg ;;
1746 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1747 ac_prev=htmldir ;;
1748 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1749 | --ht=*)
1750 htmldir=$ac_optarg ;;
1752 -includedir | --includedir | --includedi | --included | --include \
1753 | --includ | --inclu | --incl | --inc)
1754 ac_prev=includedir ;;
1755 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1756 | --includ=* | --inclu=* | --incl=* | --inc=*)
1757 includedir=$ac_optarg ;;
1759 -infodir | --infodir | --infodi | --infod | --info | --inf)
1760 ac_prev=infodir ;;
1761 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1762 infodir=$ac_optarg ;;
1764 -libdir | --libdir | --libdi | --libd)
1765 ac_prev=libdir ;;
1766 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1767 libdir=$ac_optarg ;;
1769 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1770 | --libexe | --libex | --libe)
1771 ac_prev=libexecdir ;;
1772 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1773 | --libexe=* | --libex=* | --libe=*)
1774 libexecdir=$ac_optarg ;;
1776 -localedir | --localedir | --localedi | --localed | --locale)
1777 ac_prev=localedir ;;
1778 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1779 localedir=$ac_optarg ;;
1781 -localstatedir | --localstatedir | --localstatedi | --localstated \
1782 | --localstate | --localstat | --localsta | --localst | --locals)
1783 ac_prev=localstatedir ;;
1784 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1785 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1786 localstatedir=$ac_optarg ;;
1788 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1789 ac_prev=mandir ;;
1790 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1791 mandir=$ac_optarg ;;
1793 -nfp | --nfp | --nf)
1794 # Obsolete; use --without-fp.
1795 with_fp=no ;;
1797 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1798 | --no-cr | --no-c | -n)
1799 no_create=yes ;;
1801 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1802 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1803 no_recursion=yes ;;
1805 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1806 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1807 | --oldin | --oldi | --old | --ol | --o)
1808 ac_prev=oldincludedir ;;
1809 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1810 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1811 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1812 oldincludedir=$ac_optarg ;;
1814 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1815 ac_prev=prefix ;;
1816 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1817 prefix=$ac_optarg ;;
1819 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1820 | --program-pre | --program-pr | --program-p)
1821 ac_prev=program_prefix ;;
1822 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1823 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1824 program_prefix=$ac_optarg ;;
1826 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1827 | --program-suf | --program-su | --program-s)
1828 ac_prev=program_suffix ;;
1829 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1830 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1831 program_suffix=$ac_optarg ;;
1833 -program-transform-name | --program-transform-name \
1834 | --program-transform-nam | --program-transform-na \
1835 | --program-transform-n | --program-transform- \
1836 | --program-transform | --program-transfor \
1837 | --program-transfo | --program-transf \
1838 | --program-trans | --program-tran \
1839 | --progr-tra | --program-tr | --program-t)
1840 ac_prev=program_transform_name ;;
1841 -program-transform-name=* | --program-transform-name=* \
1842 | --program-transform-nam=* | --program-transform-na=* \
1843 | --program-transform-n=* | --program-transform-=* \
1844 | --program-transform=* | --program-transfor=* \
1845 | --program-transfo=* | --program-transf=* \
1846 | --program-trans=* | --program-tran=* \
1847 | --progr-tra=* | --program-tr=* | --program-t=*)
1848 program_transform_name=$ac_optarg ;;
1850 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1851 ac_prev=pdfdir ;;
1852 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1853 pdfdir=$ac_optarg ;;
1855 -psdir | --psdir | --psdi | --psd | --ps)
1856 ac_prev=psdir ;;
1857 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1858 psdir=$ac_optarg ;;
1860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861 | -silent | --silent | --silen | --sile | --sil)
1862 silent=yes ;;
1864 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1865 ac_prev=sbindir ;;
1866 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1867 | --sbi=* | --sb=*)
1868 sbindir=$ac_optarg ;;
1870 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1871 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1872 | --sharedst | --shareds | --shared | --share | --shar \
1873 | --sha | --sh)
1874 ac_prev=sharedstatedir ;;
1875 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1876 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1877 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1878 | --sha=* | --sh=*)
1879 sharedstatedir=$ac_optarg ;;
1881 -site | --site | --sit)
1882 ac_prev=site ;;
1883 -site=* | --site=* | --sit=*)
1884 site=$ac_optarg ;;
1886 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1887 ac_prev=srcdir ;;
1888 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1889 srcdir=$ac_optarg ;;
1891 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1892 | --syscon | --sysco | --sysc | --sys | --sy)
1893 ac_prev=sysconfdir ;;
1894 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1895 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1896 sysconfdir=$ac_optarg ;;
1898 -target | --target | --targe | --targ | --tar | --ta | --t)
1899 ac_prev=target_alias ;;
1900 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1901 target_alias=$ac_optarg ;;
1903 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1904 verbose=yes ;;
1906 -version | --version | --versio | --versi | --vers | -V)
1907 ac_init_version=: ;;
1909 -with-* | --with-*)
1910 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1911 # Reject names that are not valid shell variable names.
1912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1913 as_fn_error "invalid package name: $ac_useropt"
1914 ac_useropt_orig=$ac_useropt
1915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1916 case $ac_user_opts in
1918 "with_$ac_useropt"
1919 "*) ;;
1920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1921 ac_unrecognized_sep=', ';;
1922 esac
1923 eval with_$ac_useropt=\$ac_optarg ;;
1925 -without-* | --without-*)
1926 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1927 # Reject names that are not valid shell variable names.
1928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1929 as_fn_error "invalid package name: $ac_useropt"
1930 ac_useropt_orig=$ac_useropt
1931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1932 case $ac_user_opts in
1934 "with_$ac_useropt"
1935 "*) ;;
1936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1937 ac_unrecognized_sep=', ';;
1938 esac
1939 eval with_$ac_useropt=no ;;
1941 --x)
1942 # Obsolete; use --with-x.
1943 with_x=yes ;;
1945 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1946 | --x-incl | --x-inc | --x-in | --x-i)
1947 ac_prev=x_includes ;;
1948 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1949 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1950 x_includes=$ac_optarg ;;
1952 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1953 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1954 ac_prev=x_libraries ;;
1955 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1956 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1957 x_libraries=$ac_optarg ;;
1959 -*) as_fn_error "unrecognized option: \`$ac_option'
1960 Try \`$0 --help' for more information."
1963 *=*)
1964 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1965 # Reject names that are not valid shell variable names.
1966 case $ac_envvar in #(
1967 '' | [0-9]* | *[!_$as_cr_alnum]* )
1968 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1969 esac
1970 eval $ac_envvar=\$ac_optarg
1971 export $ac_envvar ;;
1974 # FIXME: should be removed in autoconf 3.0.
1975 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1976 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1977 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1978 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1981 esac
1982 done
1984 if test -n "$ac_prev"; then
1985 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1986 as_fn_error "missing argument to $ac_option"
1989 if test -n "$ac_unrecognized_opts"; then
1990 case $enable_option_checking in
1991 no) ;;
1992 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1993 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1994 esac
1997 # Check all directory arguments for consistency.
1998 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1999 datadir sysconfdir sharedstatedir localstatedir includedir \
2000 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2001 libdir localedir mandir
2003 eval ac_val=\$$ac_var
2004 # Remove trailing slashes.
2005 case $ac_val in
2006 */ )
2007 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2008 eval $ac_var=\$ac_val;;
2009 esac
2010 # Be sure to have absolute directory names.
2011 case $ac_val in
2012 [\\/$]* | ?:[\\/]* ) continue;;
2013 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2014 esac
2015 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2016 done
2018 # There might be people who depend on the old broken behavior: `$host'
2019 # used to hold the argument of --host etc.
2020 # FIXME: To remove some day.
2021 build=$build_alias
2022 host=$host_alias
2023 target=$target_alias
2025 # FIXME: To remove some day.
2026 if test "x$host_alias" != x; then
2027 if test "x$build_alias" = x; then
2028 cross_compiling=maybe
2029 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2030 If a cross compiler is detected then cross compile mode will be used." >&2
2031 elif test "x$build_alias" != "x$host_alias"; then
2032 cross_compiling=yes
2036 ac_tool_prefix=
2037 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2039 test "$silent" = yes && exec 6>/dev/null
2042 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2043 ac_ls_di=`ls -di .` &&
2044 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2045 as_fn_error "working directory cannot be determined"
2046 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2047 as_fn_error "pwd does not report name of working directory"
2050 # Find the source files, if location was not specified.
2051 if test -z "$srcdir"; then
2052 ac_srcdir_defaulted=yes
2053 # Try the directory containing this script, then the parent directory.
2054 ac_confdir=`$as_dirname -- "$as_myself" ||
2055 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2056 X"$as_myself" : 'X\(//\)[^/]' \| \
2057 X"$as_myself" : 'X\(//\)$' \| \
2058 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2059 $as_echo X"$as_myself" |
2060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2061 s//\1/
2064 /^X\(\/\/\)[^/].*/{
2065 s//\1/
2068 /^X\(\/\/\)$/{
2069 s//\1/
2072 /^X\(\/\).*/{
2073 s//\1/
2076 s/.*/./; q'`
2077 srcdir=$ac_confdir
2078 if test ! -r "$srcdir/$ac_unique_file"; then
2079 srcdir=..
2081 else
2082 ac_srcdir_defaulted=no
2084 if test ! -r "$srcdir/$ac_unique_file"; then
2085 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2086 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2088 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2089 ac_abs_confdir=`(
2090 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2091 pwd)`
2092 # When building in place, set srcdir=.
2093 if test "$ac_abs_confdir" = "$ac_pwd"; then
2094 srcdir=.
2096 # Remove unnecessary trailing slashes from srcdir.
2097 # Double slashes in file names in object file debugging info
2098 # mess up M-x gdb in Emacs.
2099 case $srcdir in
2100 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2101 esac
2102 for ac_var in $ac_precious_vars; do
2103 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2104 eval ac_env_${ac_var}_value=\$${ac_var}
2105 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2106 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2107 done
2110 # Report the --help message.
2112 if test "$ac_init_help" = "long"; then
2113 # Omit some internal or obsolete options to make the list less imposing.
2114 # This message is too long to be a string in the A/UX 3.1 sh.
2115 cat <<_ACEOF
2116 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2118 Usage: $0 [OPTION]... [VAR=VALUE]...
2120 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2121 VAR=VALUE. See below for descriptions of some of the useful variables.
2123 Defaults for the options are specified in brackets.
2125 Configuration:
2126 -h, --help display this help and exit
2127 --help=short display options specific to this package
2128 --help=recursive display the short help of all the included packages
2129 -V, --version display version information and exit
2130 -q, --quiet, --silent do not print \`checking...' messages
2131 --cache-file=FILE cache test results in FILE [disabled]
2132 -C, --config-cache alias for \`--cache-file=config.cache'
2133 -n, --no-create do not create output files
2134 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2136 Installation directories:
2137 --prefix=PREFIX install architecture-independent files in PREFIX
2138 [$ac_default_prefix]
2139 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2140 [PREFIX]
2142 By default, \`make install' will install all the files in
2143 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2144 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2145 for instance \`--prefix=\$HOME'.
2147 For better control, use the options below.
2149 Fine tuning of the installation directories:
2150 --bindir=DIR user executables [EPREFIX/bin]
2151 --sbindir=DIR system admin executables [EPREFIX/sbin]
2152 --libexecdir=DIR program executables [EPREFIX/libexec]
2153 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2154 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2155 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2156 --libdir=DIR object code libraries [EPREFIX/lib]
2157 --includedir=DIR C header files [PREFIX/include]
2158 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2159 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2160 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2161 --infodir=DIR info documentation [DATAROOTDIR/info]
2162 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2163 --mandir=DIR man documentation [DATAROOTDIR/man]
2164 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2165 --htmldir=DIR html documentation [DOCDIR]
2166 --dvidir=DIR dvi documentation [DOCDIR]
2167 --pdfdir=DIR pdf documentation [DOCDIR]
2168 --psdir=DIR ps documentation [DOCDIR]
2169 _ACEOF
2171 cat <<\_ACEOF
2173 Program names:
2174 --program-prefix=PREFIX prepend PREFIX to installed program names
2175 --program-suffix=SUFFIX append SUFFIX to installed program names
2176 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2178 X features:
2179 --x-includes=DIR X include files are in DIR
2180 --x-libraries=DIR X library files are in DIR
2182 System types:
2183 --build=BUILD configure for building on BUILD [guessed]
2184 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2185 _ACEOF
2188 if test -n "$ac_init_help"; then
2189 case $ac_init_help in
2190 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2191 esac
2192 cat <<\_ACEOF
2194 Optional Features:
2195 --disable-option-checking ignore unrecognized --enable/--with options
2196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2198 --disable-ns-self-contained
2199 disable self contained build under NeXTstep
2200 --enable-locallisppath=PATH
2201 directories Emacs should search for lisp files
2202 specific to this site
2203 --enable-checking[=LIST]
2204 enable expensive run-time checks. With LIST, enable
2205 only specific categories of checks. Categories are:
2206 all,yes,no. Flags are: stringbytes, stringoverrun,
2207 stringfreelist, xmallocoverrun, conslist, glyphs
2208 --enable-check-lisp-object-type
2209 enable compile time checks for the Lisp_Object data
2210 type. This is useful for development for catching
2211 certain types of bugs.
2212 --enable-profiling build emacs with low-level, gprof profiling support.
2213 Mainly useful for debugging Emacs itself. May not
2214 work on all platforms. Stops profiler.el working.
2215 --enable-autodepend automatically generate dependencies to .h-files.
2216 Requires GNU Make and Gcc. Enabled if GNU Make and
2217 Gcc is found
2218 --enable-gtk-deprecation-warnings
2219 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2220 --disable-dependency-tracking speeds up one-time build
2221 --enable-dependency-tracking do not reject slow dependency extractors
2222 --disable-largefile omit support for large files
2223 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2224 intended for developers, and may generate false
2225 alarms when used with older or non-GNU development
2226 tools.
2227 --enable-link-time-optimization
2228 build emacs with link-time optimization. This is
2229 supported only for GCC since 4.5.0.
2230 --disable-acl do not support ACLs
2232 Optional Packages:
2233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2235 --without-all omit almost all features and build small executable
2236 with minimal dependencies
2237 --without-pop don't support POP mail retrieval with movemail
2238 --with-kerberos support Kerberos-authenticated POP
2239 --with-kerberos5 support Kerberos version 5 authenticated POP
2240 --with-hesiod support Hesiod to get the POP server host
2241 --with-mmdf support MMDF mailboxes
2242 --with-mail-unlink unlink, rather than empty, mail spool after reading
2243 --with-mailhost=HOSTNAME
2244 string giving default POP mail host
2245 --with-sound=VALUE compile with sound support (VALUE one of: yes, alsa,
2246 oss, bsd-ossaudio, no; default yes). Only for
2247 GNU/Linux, FreeBSD, NetBSD, MinGW.
2248 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2249 gtk3, lucid or athena, motif, no)
2250 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2251 --without-xpm don't compile with XPM image support
2252 --without-jpeg don't compile with JPEG image support
2253 --without-tiff don't compile with TIFF image support
2254 --without-gif don't compile with GIF image support
2255 --without-png don't compile with PNG image support
2256 --without-rsvg don't compile with SVG image support
2257 --without-xml2 don't compile with XML parsing support
2258 --without-imagemagick don't compile with ImageMagick image support
2259 --without-xft don't use XFT for anti aliased fonts
2260 --without-libotf don't use libotf for OpenType font support
2261 --without-m17n-flt don't use m17n-flt for text shaping
2262 --without-toolkit-scroll-bars
2263 don't use Motif or Xaw3d scroll bars
2264 --without-xaw3d don't use Xaw3d
2265 --without-xim don't use X11 XIM
2266 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2267 --with-w32 use native MS Windows GUI in a Cygwin build
2268 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2269 console
2270 --without-dbus don't compile with D-Bus support
2271 --without-gconf don't compile with GConf support
2272 --without-gsettings don't compile with GSettings support
2273 --without-selinux don't compile with SELinux support
2274 --without-gnutls don't use -lgnutls for SSL/TLS support
2275 --without-zlib don't compile with zlib decompression support
2276 --with-file-notification=LIB
2277 use a file notification library (LIB one of: yes,
2278 gfile, inotify, w32, no)
2279 --without-makeinfo don't require makeinfo for building manuals
2280 --without-compress-install
2281 don't compress some files (.el, .info, etc.) when
2282 installing. Equivalent to: make GZIP_PROG= install
2283 --with-pkg-config-prog=FILENAME
2284 file name of pkg-config for finding GTK and librsvg
2285 --with-gameuser=USER user for shared game score files
2286 --with-gnustep-conf=FILENAME
2287 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2288 or /etc/GNUstep/GNUstep.conf
2289 --with-x use the X Window System
2291 Some influential environment variables:
2292 CC C compiler command
2293 CFLAGS C compiler flags
2294 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2295 nonstandard directory <lib dir>
2296 LIBS libraries to pass to the linker, e.g. -l<library>
2297 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2298 you have headers in a nonstandard directory <include dir>
2299 CPP C preprocessor
2300 XMKMF Path to xmkmf, Makefile generator for X Window System
2302 Use these variables to override the choices made by `configure' or to help
2303 it to find libraries and programs with nonstandard names/locations.
2305 Report bugs to the package provider.
2306 _ACEOF
2307 ac_status=$?
2310 if test "$ac_init_help" = "recursive"; then
2311 # If there are subdirs, report their specific --help.
2312 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2313 test -d "$ac_dir" ||
2314 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2315 continue
2316 ac_builddir=.
2318 case "$ac_dir" in
2319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2322 # A ".." for each directory in $ac_dir_suffix.
2323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2324 case $ac_top_builddir_sub in
2325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2327 esac ;;
2328 esac
2329 ac_abs_top_builddir=$ac_pwd
2330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2331 # for backward compatibility:
2332 ac_top_builddir=$ac_top_build_prefix
2334 case $srcdir in
2335 .) # We are building in place.
2336 ac_srcdir=.
2337 ac_top_srcdir=$ac_top_builddir_sub
2338 ac_abs_top_srcdir=$ac_pwd ;;
2339 [\\/]* | ?:[\\/]* ) # Absolute name.
2340 ac_srcdir=$srcdir$ac_dir_suffix;
2341 ac_top_srcdir=$srcdir
2342 ac_abs_top_srcdir=$srcdir ;;
2343 *) # Relative name.
2344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2345 ac_top_srcdir=$ac_top_build_prefix$srcdir
2346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2347 esac
2348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2350 cd "$ac_dir" || { ac_status=$?; continue; }
2351 # Check for guested configure.
2352 if test -f "$ac_srcdir/configure.gnu"; then
2353 echo &&
2354 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2355 elif test -f "$ac_srcdir/configure"; then
2356 echo &&
2357 $SHELL "$ac_srcdir/configure" --help=recursive
2358 else
2359 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2360 fi || ac_status=$?
2361 cd "$ac_pwd" || { ac_status=$?; break; }
2362 done
2365 test -n "$ac_init_help" && exit $ac_status
2366 if $ac_init_version; then
2367 cat <<\_ACEOF
2368 emacs configure 24.3.50
2369 generated by GNU Autoconf 2.65
2371 Copyright (C) 2009 Free Software Foundation, Inc.
2372 This configure script is free software; the Free Software Foundation
2373 gives unlimited permission to copy, distribute and modify it.
2374 _ACEOF
2375 exit
2378 ## ------------------------ ##
2379 ## Autoconf initialization. ##
2380 ## ------------------------ ##
2382 # ac_fn_c_try_compile LINENO
2383 # --------------------------
2384 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_c_try_compile ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 rm -f conftest.$ac_objext
2389 if { { ac_try="$ac_compile"
2390 case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2393 esac
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396 (eval "$ac_compile") 2>conftest.err
2397 ac_status=$?
2398 if test -s conftest.err; then
2399 grep -v '^ *+' conftest.err >conftest.er1
2400 cat conftest.er1 >&5
2401 mv -f conftest.er1 conftest.err
2403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404 test $ac_status = 0; } && {
2405 test -z "$ac_c_werror_flag" ||
2406 test ! -s conftest.err
2407 } && test -s conftest.$ac_objext; then :
2408 ac_retval=0
2409 else
2410 $as_echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2413 ac_retval=1
2415 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2416 as_fn_set_status $ac_retval
2418 } # ac_fn_c_try_compile
2420 # ac_fn_c_try_cpp LINENO
2421 # ----------------------
2422 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2423 ac_fn_c_try_cpp ()
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 if { { ac_try="$ac_cpp conftest.$ac_ext"
2427 case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430 esac
2431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2432 $as_echo "$ac_try_echo"; } >&5
2433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2434 ac_status=$?
2435 if test -s conftest.err; then
2436 grep -v '^ *+' conftest.err >conftest.er1
2437 cat conftest.er1 >&5
2438 mv -f conftest.er1 conftest.err
2440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441 test $ac_status = 0; } >/dev/null && {
2442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2443 test ! -s conftest.err
2444 }; then :
2445 ac_retval=0
2446 else
2447 $as_echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 ac_retval=1
2452 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2453 as_fn_set_status $ac_retval
2455 } # ac_fn_c_try_cpp
2457 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2458 # -------------------------------------------------------
2459 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2460 # the include files in INCLUDES and setting the cache variable VAR
2461 # accordingly.
2462 ac_fn_c_check_header_mongrel ()
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467 $as_echo_n "checking for $2... " >&6; }
2468 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2469 $as_echo_n "(cached) " >&6
2471 eval ac_res=\$$3
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 else
2475 # Is the header compilable?
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2477 $as_echo_n "checking $2 usability... " >&6; }
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2481 #include <$2>
2482 _ACEOF
2483 if ac_fn_c_try_compile "$LINENO"; then :
2484 ac_header_compiler=yes
2485 else
2486 ac_header_compiler=no
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2490 $as_echo "$ac_header_compiler" >&6; }
2492 # Is the header present?
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2494 $as_echo_n "checking $2 presence... " >&6; }
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h. */
2497 #include <$2>
2498 _ACEOF
2499 if ac_fn_c_try_cpp "$LINENO"; then :
2500 ac_header_preproc=yes
2501 else
2502 ac_header_preproc=no
2504 rm -f conftest.err conftest.$ac_ext
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2506 $as_echo "$ac_header_preproc" >&6; }
2508 # So? What about this header?
2509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2510 yes:no: )
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2512 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2514 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2516 no:yes:* )
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2518 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2520 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2522 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2524 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2526 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2528 esac
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530 $as_echo_n "checking for $2... " >&6; }
2531 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 eval "$3=\$ac_header_compiler"
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2542 } # ac_fn_c_check_header_mongrel
2544 # ac_fn_c_try_run LINENO
2545 # ----------------------
2546 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2547 # that executables *can* be run.
2548 ac_fn_c_try_run ()
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 if { { ac_try="$ac_link"
2552 case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555 esac
2556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2557 $as_echo "$ac_try_echo"; } >&5
2558 (eval "$ac_link") 2>&5
2559 ac_status=$?
2560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2561 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2562 { { case "(($ac_try" in
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2565 esac
2566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567 $as_echo "$ac_try_echo"; } >&5
2568 (eval "$ac_try") 2>&5
2569 ac_status=$?
2570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571 test $ac_status = 0; }; }; then :
2572 ac_retval=0
2573 else
2574 $as_echo "$as_me: program exited with status $ac_status" >&5
2575 $as_echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2578 ac_retval=$ac_status
2580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 as_fn_set_status $ac_retval
2584 } # ac_fn_c_try_run
2586 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2587 # -------------------------------------------------------
2588 # Tests whether HEADER exists and can be compiled using the include files in
2589 # INCLUDES, setting the cache variable VAR accordingly.
2590 ac_fn_c_check_header_compile ()
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2594 $as_echo_n "checking for $2... " >&6; }
2595 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2601 #include <$2>
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604 eval "$3=yes"
2605 else
2606 eval "$3=no"
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 eval ac_res=\$$3
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 } # ac_fn_c_check_header_compile
2617 # ac_fn_c_try_link LINENO
2618 # -----------------------
2619 # Try to link conftest.$ac_ext, and return whether this succeeded.
2620 ac_fn_c_try_link ()
2622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { { ac_try="$ac_link"
2625 case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2628 esac
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link") 2>conftest.err
2632 ac_status=$?
2633 if test -s conftest.err; then
2634 grep -v '^ *+' conftest.err >conftest.er1
2635 cat conftest.er1 >&5
2636 mv -f conftest.er1 conftest.err
2638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639 test $ac_status = 0; } && {
2640 test -z "$ac_c_werror_flag" ||
2641 test ! -s conftest.err
2642 } && test -s conftest$ac_exeext && {
2643 test "$cross_compiling" = yes ||
2644 $as_test_x conftest$ac_exeext
2645 }; then :
2646 ac_retval=0
2647 else
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 ac_retval=1
2653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2655 # interfere with the next link command; also delete a directory that is
2656 # left behind by Apple's compiler. We do this before executing the actions.
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2659 as_fn_set_status $ac_retval
2661 } # ac_fn_c_try_link
2663 # ac_fn_c_check_decl LINENO SYMBOL VAR
2664 # ------------------------------------
2665 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2666 ac_fn_c_check_decl ()
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2670 $as_echo_n "checking whether $2 is declared... " >&6; }
2671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2678 main ()
2680 #ifndef $2
2681 (void) $2;
2682 #endif
2685 return 0;
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 eval "$3=yes"
2690 else
2691 eval "$3=no"
2693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2700 } # ac_fn_c_check_decl
2702 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2703 # ----------------------------------------------
2704 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2705 ac_fn_c_check_header_preproc ()
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2709 $as_echo_n "checking for $2... " >&6; }
2710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 #include <$2>
2716 _ACEOF
2717 if ac_fn_c_try_cpp "$LINENO"; then :
2718 eval "$3=yes"
2719 else
2720 eval "$3=no"
2722 rm -f conftest.err conftest.$ac_ext
2724 eval ac_res=\$$3
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2726 $as_echo "$ac_res" >&6; }
2727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2729 } # ac_fn_c_check_header_preproc
2731 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2732 # ----------------------------------------------------
2733 # Tries to find if the field MEMBER exists in type AGGR, after including
2734 # INCLUDES, setting cache variable VAR accordingly.
2735 ac_fn_c_check_member ()
2737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2739 $as_echo_n "checking for $2.$3... " >&6; }
2740 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744 /* end confdefs.h. */
2747 main ()
2749 static $2 ac_aggr;
2750 if (ac_aggr.$3)
2751 return 0;
2753 return 0;
2755 _ACEOF
2756 if ac_fn_c_try_compile "$LINENO"; then :
2757 eval "$4=yes"
2758 else
2759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2760 /* end confdefs.h. */
2763 main ()
2765 static $2 ac_aggr;
2766 if (sizeof ac_aggr.$3)
2767 return 0;
2769 return 0;
2771 _ACEOF
2772 if ac_fn_c_try_compile "$LINENO"; then :
2773 eval "$4=yes"
2774 else
2775 eval "$4=no"
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 eval ac_res=\$$4
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783 $as_echo "$ac_res" >&6; }
2784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2786 } # ac_fn_c_check_member
2788 # ac_fn_c_check_func LINENO FUNC VAR
2789 # ----------------------------------
2790 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2791 ac_fn_c_check_func ()
2793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2795 $as_echo_n "checking for $2... " >&6; }
2796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2801 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2803 #define $2 innocuous_$2
2805 /* System header to define __stub macros and hopefully few prototypes,
2806 which can conflict with char $2 (); below.
2807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2808 <limits.h> exists even on freestanding compilers. */
2810 #ifdef __STDC__
2811 # include <limits.h>
2812 #else
2813 # include <assert.h>
2814 #endif
2816 #undef $2
2818 /* Override any GCC internal prototype to avoid an error.
2819 Use char because int might match the return type of a GCC
2820 builtin and then its argument prototype would still apply. */
2821 #ifdef __cplusplus
2822 extern "C"
2823 #endif
2824 char $2 ();
2825 /* The GNU C library defines this for functions which it implements
2826 to always fail with ENOSYS. Some functions are actually named
2827 something starting with __ and the normal name is an alias. */
2828 #if defined __stub_$2 || defined __stub___$2
2829 choke me
2830 #endif
2833 main ()
2835 return $2 ();
2837 return 0;
2839 _ACEOF
2840 if ac_fn_c_try_link "$LINENO"; then :
2841 eval "$3=yes"
2842 else
2843 eval "$3=no"
2845 rm -f core conftest.err conftest.$ac_objext \
2846 conftest$ac_exeext conftest.$ac_ext
2848 eval ac_res=\$$3
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2850 $as_echo "$ac_res" >&6; }
2851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2853 } # ac_fn_c_check_func
2855 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2856 # -------------------------------------------
2857 # Tests whether TYPE exists after having included INCLUDES, setting cache
2858 # variable VAR accordingly.
2859 ac_fn_c_check_type ()
2861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2863 $as_echo_n "checking for $2... " >&6; }
2864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 eval "$3=no"
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2872 main ()
2874 if (sizeof ($2))
2875 return 0;
2877 return 0;
2879 _ACEOF
2880 if ac_fn_c_try_compile "$LINENO"; then :
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2885 main ()
2887 if (sizeof (($2)))
2888 return 0;
2890 return 0;
2892 _ACEOF
2893 if ac_fn_c_try_compile "$LINENO"; then :
2895 else
2896 eval "$3=yes"
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 eval ac_res=\$$3
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2904 $as_echo "$ac_res" >&6; }
2905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2907 } # ac_fn_c_check_type
2909 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2910 # --------------------------------------------
2911 # Tries to find the compile-time value of EXPR in a program that includes
2912 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2913 # computed
2914 ac_fn_c_compute_int ()
2916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2917 if test "$cross_compiling" = yes; then
2918 # Depending upon the size, compute the lo and hi bounds.
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h. */
2923 main ()
2925 static int test_array [1 - 2 * !(($2) >= 0)];
2926 test_array [0] = 0
2929 return 0;
2931 _ACEOF
2932 if ac_fn_c_try_compile "$LINENO"; then :
2933 ac_lo=0 ac_mid=0
2934 while :; do
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2939 main ()
2941 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2942 test_array [0] = 0
2945 return 0;
2947 _ACEOF
2948 if ac_fn_c_try_compile "$LINENO"; then :
2949 ac_hi=$ac_mid; break
2950 else
2951 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2952 if test $ac_lo -le $ac_mid; then
2953 ac_lo= ac_hi=
2954 break
2956 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959 done
2960 else
2961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2962 /* end confdefs.h. */
2965 main ()
2967 static int test_array [1 - 2 * !(($2) < 0)];
2968 test_array [0] = 0
2971 return 0;
2973 _ACEOF
2974 if ac_fn_c_try_compile "$LINENO"; then :
2975 ac_hi=-1 ac_mid=-1
2976 while :; do
2977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2978 /* end confdefs.h. */
2981 main ()
2983 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2984 test_array [0] = 0
2987 return 0;
2989 _ACEOF
2990 if ac_fn_c_try_compile "$LINENO"; then :
2991 ac_lo=$ac_mid; break
2992 else
2993 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2994 if test $ac_mid -le $ac_hi; then
2995 ac_lo= ac_hi=
2996 break
2998 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3001 done
3002 else
3003 ac_lo= ac_hi=
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 # Binary search between lo and hi bounds.
3009 while test "x$ac_lo" != "x$ac_hi"; do
3010 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h. */
3015 main ()
3017 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3018 test_array [0] = 0
3021 return 0;
3023 _ACEOF
3024 if ac_fn_c_try_compile "$LINENO"; then :
3025 ac_hi=$ac_mid
3026 else
3027 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3030 done
3031 case $ac_lo in #((
3032 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3033 '') ac_retval=1 ;;
3034 esac
3035 else
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3039 static long int longval () { return $2; }
3040 static unsigned long int ulongval () { return $2; }
3041 #include <stdio.h>
3042 #include <stdlib.h>
3044 main ()
3047 FILE *f = fopen ("conftest.val", "w");
3048 if (! f)
3049 return 1;
3050 if (($2) < 0)
3052 long int i = longval ();
3053 if (i != ($2))
3054 return 1;
3055 fprintf (f, "%ld", i);
3057 else
3059 unsigned long int i = ulongval ();
3060 if (i != ($2))
3061 return 1;
3062 fprintf (f, "%lu", i);
3064 /* Do not output a trailing newline, as this causes \r\n confusion
3065 on some platforms. */
3066 return ferror (f) || fclose (f) != 0;
3069 return 0;
3071 _ACEOF
3072 if ac_fn_c_try_run "$LINENO"; then :
3073 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3074 else
3075 ac_retval=1
3077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3078 conftest.$ac_objext conftest.beam conftest.$ac_ext
3079 rm -f conftest.val
3082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3083 as_fn_set_status $ac_retval
3085 } # ac_fn_c_compute_int
3086 cat >config.log <<_ACEOF
3087 This file contains any messages produced by compilers while
3088 running configure, to aid debugging if configure makes a mistake.
3090 It was created by emacs $as_me 24.3.50, which was
3091 generated by GNU Autoconf 2.65. Invocation command line was
3093 $ $0 $@
3095 _ACEOF
3096 exec 5>>config.log
3098 cat <<_ASUNAME
3099 ## --------- ##
3100 ## Platform. ##
3101 ## --------- ##
3103 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3104 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3105 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3106 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3107 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3109 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3110 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3112 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3113 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3114 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3115 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3116 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3117 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3118 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3120 _ASUNAME
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 $as_echo "PATH: $as_dir"
3128 done
3129 IFS=$as_save_IFS
3131 } >&5
3133 cat >&5 <<_ACEOF
3136 ## ----------- ##
3137 ## Core tests. ##
3138 ## ----------- ##
3140 _ACEOF
3143 # Keep a trace of the command line.
3144 # Strip out --no-create and --no-recursion so they do not pile up.
3145 # Strip out --silent because we don't want to record it for future runs.
3146 # Also quote any args containing shell meta-characters.
3147 # Make two passes to allow for proper duplicate-argument suppression.
3148 ac_configure_args=
3149 ac_configure_args0=
3150 ac_configure_args1=
3151 ac_must_keep_next=false
3152 for ac_pass in 1 2
3154 for ac_arg
3156 case $ac_arg in
3157 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3159 | -silent | --silent | --silen | --sile | --sil)
3160 continue ;;
3161 *\'*)
3162 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3163 esac
3164 case $ac_pass in
3165 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3167 as_fn_append ac_configure_args1 " '$ac_arg'"
3168 if test $ac_must_keep_next = true; then
3169 ac_must_keep_next=false # Got value, back to normal.
3170 else
3171 case $ac_arg in
3172 *=* | --config-cache | -C | -disable-* | --disable-* \
3173 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3174 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3175 | -with-* | --with-* | -without-* | --without-* | --x)
3176 case "$ac_configure_args0 " in
3177 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3178 esac
3180 -* ) ac_must_keep_next=true ;;
3181 esac
3183 as_fn_append ac_configure_args " '$ac_arg'"
3185 esac
3186 done
3187 done
3188 { ac_configure_args0=; unset ac_configure_args0;}
3189 { ac_configure_args1=; unset ac_configure_args1;}
3191 # When interrupted or exit'd, cleanup temporary files, and complete
3192 # config.log. We remove comments because anyway the quotes in there
3193 # would cause problems or look ugly.
3194 # WARNING: Use '\'' to represent an apostrophe within the trap.
3195 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3196 trap 'exit_status=$?
3197 # Save into config.log some information that might help in debugging.
3199 echo
3201 cat <<\_ASBOX
3202 ## ---------------- ##
3203 ## Cache variables. ##
3204 ## ---------------- ##
3205 _ASBOX
3206 echo
3207 # The following way of writing the cache mishandles newlines in values,
3209 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3210 eval ac_val=\$$ac_var
3211 case $ac_val in #(
3212 *${as_nl}*)
3213 case $ac_var in #(
3214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3216 esac
3217 case $ac_var in #(
3218 _ | IFS | as_nl) ;; #(
3219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3220 *) { eval $ac_var=; unset $ac_var;} ;;
3221 esac ;;
3222 esac
3223 done
3224 (set) 2>&1 |
3225 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3226 *${as_nl}ac_space=\ *)
3227 sed -n \
3228 "s/'\''/'\''\\\\'\'''\''/g;
3229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3230 ;; #(
3232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3234 esac |
3235 sort
3237 echo
3239 cat <<\_ASBOX
3240 ## ----------------- ##
3241 ## Output variables. ##
3242 ## ----------------- ##
3243 _ASBOX
3244 echo
3245 for ac_var in $ac_subst_vars
3247 eval ac_val=\$$ac_var
3248 case $ac_val in
3249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3250 esac
3251 $as_echo "$ac_var='\''$ac_val'\''"
3252 done | sort
3253 echo
3255 if test -n "$ac_subst_files"; then
3256 cat <<\_ASBOX
3257 ## ------------------- ##
3258 ## File substitutions. ##
3259 ## ------------------- ##
3260 _ASBOX
3261 echo
3262 for ac_var in $ac_subst_files
3264 eval ac_val=\$$ac_var
3265 case $ac_val in
3266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3267 esac
3268 $as_echo "$ac_var='\''$ac_val'\''"
3269 done | sort
3270 echo
3273 if test -s confdefs.h; then
3274 cat <<\_ASBOX
3275 ## ----------- ##
3276 ## confdefs.h. ##
3277 ## ----------- ##
3278 _ASBOX
3279 echo
3280 cat confdefs.h
3281 echo
3283 test "$ac_signal" != 0 &&
3284 $as_echo "$as_me: caught signal $ac_signal"
3285 $as_echo "$as_me: exit $exit_status"
3286 } >&5
3287 rm -f core *.core core.conftest.* &&
3288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3289 exit $exit_status
3291 for ac_signal in 1 2 13 15; do
3292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3293 done
3294 ac_signal=0
3296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3297 rm -f -r conftest* confdefs.h
3299 $as_echo "/* confdefs.h */" > confdefs.h
3301 # Predefined preprocessor variables.
3303 cat >>confdefs.h <<_ACEOF
3304 #define PACKAGE_NAME "$PACKAGE_NAME"
3305 _ACEOF
3307 cat >>confdefs.h <<_ACEOF
3308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3309 _ACEOF
3311 cat >>confdefs.h <<_ACEOF
3312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3313 _ACEOF
3315 cat >>confdefs.h <<_ACEOF
3316 #define PACKAGE_STRING "$PACKAGE_STRING"
3317 _ACEOF
3319 cat >>confdefs.h <<_ACEOF
3320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3321 _ACEOF
3323 cat >>confdefs.h <<_ACEOF
3324 #define PACKAGE_URL "$PACKAGE_URL"
3325 _ACEOF
3328 # Let the site file select an alternate cache file if it wants to.
3329 # Prefer an explicitly selected file to automatically selected ones.
3330 ac_site_file1=NONE
3331 ac_site_file2=NONE
3332 if test -n "$CONFIG_SITE"; then
3333 ac_site_file1=$CONFIG_SITE
3334 elif test "x$prefix" != xNONE; then
3335 ac_site_file1=$prefix/share/config.site
3336 ac_site_file2=$prefix/etc/config.site
3337 else
3338 ac_site_file1=$ac_default_prefix/share/config.site
3339 ac_site_file2=$ac_default_prefix/etc/config.site
3341 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3343 test "x$ac_site_file" = xNONE && continue
3344 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3346 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3347 sed 's/^/| /' "$ac_site_file" >&5
3348 . "$ac_site_file"
3350 done
3352 if test -r "$cache_file"; then
3353 # Some versions of bash will fail to source /dev/null (special files
3354 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3355 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3357 $as_echo "$as_me: loading cache $cache_file" >&6;}
3358 case $cache_file in
3359 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3360 *) . "./$cache_file";;
3361 esac
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3365 $as_echo "$as_me: creating cache $cache_file" >&6;}
3366 >$cache_file
3369 as_fn_append ac_header_list " sys/systeminfo.h"
3370 as_fn_append ac_header_list " coff.h"
3371 as_fn_append ac_header_list " pty.h"
3372 as_fn_append ac_header_list " sys/resource.h"
3373 as_fn_append ac_header_list " sys/utsname.h"
3374 as_fn_append ac_header_list " pwd.h"
3375 as_fn_append ac_header_list " utmp.h"
3376 as_fn_append ac_header_list " util.h"
3377 as_fn_append ac_header_list " sys/socket.h"
3378 as_fn_append ac_header_list " stdlib.h"
3379 as_fn_append ac_header_list " unistd.h"
3380 as_fn_append ac_header_list " sys/param.h"
3381 as_fn_append ac_header_list " pthread.h"
3382 as_fn_append ac_header_list " malloc/malloc.h"
3383 as_fn_append ac_header_list " maillock.h"
3384 as_fn_append ac_header_list " sys/un.h"
3385 as_fn_append ac_func_list " tzset"
3386 as_fn_append ac_func_list " readlinkat"
3387 as_fn_append ac_header_list " dirent.h"
3388 as_fn_append ac_header_list " execinfo.h"
3389 as_fn_append ac_func_list " faccessat"
3390 as_fn_append ac_func_list " fcntl"
3391 as_fn_append ac_func_list " fdopendir"
3392 as_fn_append ac_header_list " stdio_ext.h"
3393 as_fn_append ac_func_list " fstatat"
3394 as_fn_append ac_func_list " fsync"
3395 gl_getopt_required=GNU
3396 as_fn_append ac_header_list " getopt.h"
3397 as_fn_append ac_func_list " gettimeofday"
3398 as_fn_append ac_func_list " nanotime"
3399 as_fn_append ac_header_list " sys/time.h"
3400 as_fn_append ac_header_list " wchar.h"
3401 as_fn_append ac_header_list " stdint.h"
3402 as_fn_append ac_header_list " inttypes.h"
3403 as_fn_append ac_func_list " lstat"
3404 as_fn_append ac_func_list " mkostemp"
3405 as_fn_append ac_func_list " pipe2"
3406 as_fn_append ac_header_list " sys/select.h"
3407 as_fn_append ac_func_list " pselect"
3408 as_fn_append ac_func_list " pthread_sigmask"
3409 as_fn_append ac_func_list " readlink"
3410 as_fn_append ac_func_list " strtoimax"
3411 as_fn_append ac_func_list " strtoumax"
3412 as_fn_append ac_func_list " symlink"
3413 as_fn_append ac_header_list " sys/stat.h"
3414 as_fn_append ac_func_list " localtime_r"
3415 as_fn_append ac_header_list " utime.h"
3416 as_fn_append ac_func_list " futimes"
3417 as_fn_append ac_func_list " futimesat"
3418 as_fn_append ac_func_list " futimens"
3419 as_fn_append ac_func_list " utimensat"
3420 as_fn_append ac_func_list " lutimes"
3421 as_fn_append ac_func_list " getdtablesize"
3422 as_fn_append ac_func_list " secure_getenv"
3423 # Check that the precious variables saved in the cache have kept the same
3424 # value.
3425 ac_cache_corrupted=false
3426 for ac_var in $ac_precious_vars; do
3427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3428 eval ac_new_set=\$ac_env_${ac_var}_set
3429 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3430 eval ac_new_val=\$ac_env_${ac_var}_value
3431 case $ac_old_set,$ac_new_set in
3432 set,)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3434 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3435 ac_cache_corrupted=: ;;
3436 ,set)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3438 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3439 ac_cache_corrupted=: ;;
3440 ,);;
3442 if test "x$ac_old_val" != "x$ac_new_val"; then
3443 # differences in whitespace do not lead to failure.
3444 ac_old_val_w=`echo x $ac_old_val`
3445 ac_new_val_w=`echo x $ac_new_val`
3446 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3448 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3449 ac_cache_corrupted=:
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3452 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3453 eval $ac_var=\$ac_old_val
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3456 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3458 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3459 fi;;
3460 esac
3461 # Pass precious variables to config.status.
3462 if test "$ac_new_set" = set; then
3463 case $ac_new_val in
3464 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3465 *) ac_arg=$ac_var=$ac_new_val ;;
3466 esac
3467 case " $ac_configure_args " in
3468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3469 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3470 esac
3472 done
3473 if $ac_cache_corrupted; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3477 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3478 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3480 ## -------------------- ##
3481 ## Main body of script. ##
3482 ## -------------------- ##
3484 ac_ext=c
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492 emacs_config_options=
3493 optsep=
3494 for opt in ${1+"$@"} CFLAGS CPPFLAGS LDFLAGS; do
3495 case $opt in
3496 -n | --no-create | --no-recursion)
3497 continue ;;
3498 CFLAGS | CPPFLAGS | LDFLAGS)
3499 eval 'test "${'$opt'+set}" = set' || continue
3500 case " $*" in
3501 *" $opt="*) continue ;;
3502 esac
3503 eval opt=$opt=\$$opt ;;
3504 esac
3506 emacs_shell_specials=$IFS\''"#$&()*;<>?[\\`{|~'
3507 case $opt in
3508 *["$emacs_shell_specials"]*)
3509 case $opt in
3510 *\'*)
3511 emacs_quote_apostrophes="s/'/'\\\\''/g"
3512 opt=`$as_echo "$opt" | sed "$emacs_quote_apostrophes"` ;;
3513 esac
3514 opt="'$opt'"
3515 case $opt in
3516 *['"\\']*)
3517 emacs_quote_for_c='s/["\\]/\\&/g; $!s/$/\\n\\/'
3518 opt=`$as_echo "$opt" | sed "$emacs_quote_for_c"` ;;
3519 esac ;;
3520 esac
3521 as_fn_append emacs_config_options "$optsep$opt"
3522 optsep=' '
3523 done
3525 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3528 ac_aux_dir=
3529 for ac_dir in build-aux "$srcdir"/build-aux; do
3530 for ac_t in install-sh install.sh shtool; do
3531 if test -f "$ac_dir/$ac_t"; then
3532 ac_aux_dir=$ac_dir
3533 ac_install_sh="$ac_aux_dir/$ac_t -c"
3534 break 2
3536 done
3537 done
3538 if test -z "$ac_aux_dir"; then
3539 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3542 # These three variables are undocumented and unsupported,
3543 # and are intended to be withdrawn in a future Autoconf release.
3544 # They can cause serious problems if a builder's source tree is in a directory
3545 # whose full name contains unusual characters.
3546 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3547 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3548 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3551 am__api_version='1.11'
3553 # Find a good install program. We prefer a C program (faster),
3554 # so one script is as good as another. But avoid the broken or
3555 # incompatible versions:
3556 # SysV /etc/install, /usr/sbin/install
3557 # SunOS /usr/etc/install
3558 # IRIX /sbin/install
3559 # AIX /bin/install
3560 # AmigaOS /C/install, which installs bootblocks on floppy discs
3561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3564 # OS/2's system install, which has a completely different semantic
3565 # ./install, which can be erroneously created by make from ./install.sh.
3566 # Reject install programs that cannot install multiple files.
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3569 if test -z "$INSTALL"; then
3570 if test "${ac_cv_path_install+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 # Account for people who put trailing slashes in PATH elements.
3579 case $as_dir/ in #((
3580 ./ | .// | /[cC]/* | \
3581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3583 /usr/ucb/* ) ;;
3585 # OSF1 and SCO ODT 3.0 have their own names for install.
3586 # Don't use installbsd from OSF since it installs stuff as root
3587 # by default.
3588 for ac_prog in ginstall scoinst install; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3591 if test $ac_prog = install &&
3592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3595 elif test $ac_prog = install &&
3596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3599 else
3600 rm -rf conftest.one conftest.two conftest.dir
3601 echo one > conftest.one
3602 echo two > conftest.two
3603 mkdir conftest.dir
3604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3605 test -s conftest.one && test -s conftest.two &&
3606 test -s conftest.dir/conftest.one &&
3607 test -s conftest.dir/conftest.two
3608 then
3609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3610 break 3
3614 done
3615 done
3617 esac
3619 done
3620 IFS=$as_save_IFS
3622 rm -rf conftest.one conftest.two conftest.dir
3625 if test "${ac_cv_path_install+set}" = set; then
3626 INSTALL=$ac_cv_path_install
3627 else
3628 # As a last resort, use the slow shell script. Don't cache a
3629 # value for INSTALL within a source directory, because that will
3630 # break other packages using the cache if that directory is
3631 # removed, or if the value is a relative name.
3632 INSTALL=$ac_install_sh
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3636 $as_echo "$INSTALL" >&6; }
3638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3639 # It thinks the first close brace ends the variable substitution.
3640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3647 $as_echo_n "checking whether build environment is sane... " >&6; }
3648 # Just in case
3649 sleep 1
3650 echo timestamp > conftest.file
3651 # Reject unsafe characters in $srcdir or the absolute working directory
3652 # name. Accept space and tab only in the latter.
3653 am_lf='
3655 case `pwd` in
3656 *[\\\"\#\$\&\'\`$am_lf]*)
3657 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3658 esac
3659 case $srcdir in
3660 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3661 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3662 esac
3664 # Do `set' in a subshell so we don't clobber the current shell's
3665 # arguments. Must try -L first in case configure is actually a
3666 # symlink; some systems play weird games with the mod time of symlinks
3667 # (eg FreeBSD returns the mod time of the symlink's containing
3668 # directory).
3669 if (
3670 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3671 if test "$*" = "X"; then
3672 # -L didn't work.
3673 set X `ls -t "$srcdir/configure" conftest.file`
3675 rm -f conftest.file
3676 if test "$*" != "X $srcdir/configure conftest.file" \
3677 && test "$*" != "X conftest.file $srcdir/configure"; then
3679 # If neither matched, then we have a broken ls. This can happen
3680 # if, for instance, CONFIG_SHELL is bash and it inherits a
3681 # broken ls alias from the environment. This has actually
3682 # happened. Such a system could not be considered "sane".
3683 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3684 alias in your environment" "$LINENO" 5
3687 test "$2" = conftest.file
3689 then
3690 # Ok.
3692 else
3693 as_fn_error "newly created file is older than distributed files!
3694 Check your system clock" "$LINENO" 5
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3697 $as_echo "yes" >&6; }
3698 test "$program_prefix" != NONE &&
3699 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3700 # Use a double $ so make ignores it.
3701 test "$program_suffix" != NONE &&
3702 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3703 # Double any \ or $.
3704 # By default was `s,x,x', remove it if useless.
3705 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3706 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3708 # expand $ac_aux_dir to an absolute path
3709 am_aux_dir=`cd $ac_aux_dir && pwd`
3711 if test x"${MISSING+set}" != xset; then
3712 case $am_aux_dir in
3713 *\ * | *\ *)
3714 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3716 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3717 esac
3719 # Use eval to expand $SHELL
3720 if eval "$MISSING --run true"; then
3721 am_missing_run="$MISSING --run "
3722 else
3723 am_missing_run=
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3725 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3728 if test x"${install_sh}" != xset; then
3729 case $am_aux_dir in
3730 *\ * | *\ *)
3731 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3733 install_sh="\${SHELL} $am_aux_dir/install-sh"
3734 esac
3737 # Installed binaries are usually stripped using `strip' when the user
3738 # run `make install-strip'. However `strip' might not be the right
3739 # tool to use in cross-compilation environments, therefore Automake
3740 # will honor the `STRIP' environment variable to overrule this program.
3741 if test "$cross_compiling" != no; then
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}strip; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_STRIP+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$STRIP"; then
3751 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 STRIP=$ac_cv_prog_STRIP
3771 if test -n "$STRIP"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3773 $as_echo "$STRIP" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3781 if test -z "$ac_cv_prog_STRIP"; then
3782 ac_ct_STRIP=$STRIP
3783 # Extract the first word of "strip", so it can be a program name with args.
3784 set dummy strip; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -n "$ac_ct_STRIP"; then
3791 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_ac_ct_STRIP="strip"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3804 done
3805 done
3806 IFS=$as_save_IFS
3810 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3811 if test -n "$ac_ct_STRIP"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3813 $as_echo "$ac_ct_STRIP" >&6; }
3814 else
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3819 if test "x$ac_ct_STRIP" = x; then
3820 STRIP=":"
3821 else
3822 case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828 STRIP=$ac_ct_STRIP
3830 else
3831 STRIP="$ac_cv_prog_STRIP"
3835 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3838 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3839 if test -z "$MKDIR_P"; then
3840 if test "${ac_cv_path_mkdir+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in mkdir gmkdir; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3851 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3852 'mkdir (GNU coreutils) '* | \
3853 'mkdir (coreutils) '* | \
3854 'mkdir (fileutils) '4.1*)
3855 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3856 break 3;;
3857 esac
3858 done
3859 done
3860 done
3861 IFS=$as_save_IFS
3865 test -d ./--version && rmdir ./--version
3866 if test "${ac_cv_path_mkdir+set}" = set; then
3867 MKDIR_P="$ac_cv_path_mkdir -p"
3868 else
3869 # As a last resort, use the slow shell script. Don't cache a
3870 # value for MKDIR_P within a source directory, because that will
3871 # break other packages using the cache if that directory is
3872 # removed, or if the value is a relative name.
3873 MKDIR_P="$ac_install_sh -d"
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3877 $as_echo "$MKDIR_P" >&6; }
3879 mkdir_p="$MKDIR_P"
3880 case $mkdir_p in
3881 [\\/$]* | ?:[\\/]*) ;;
3882 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3883 esac
3885 for ac_prog in gawk mawk nawk awk
3887 # Extract the first word of "$ac_prog", so it can be a program name with args.
3888 set dummy $ac_prog; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if test "${ac_cv_prog_AWK+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if test -n "$AWK"; then
3895 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3900 IFS=$as_save_IFS
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_prog_AWK="$ac_prog"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 break 2
3908 done
3909 done
3910 IFS=$as_save_IFS
3914 AWK=$ac_cv_prog_AWK
3915 if test -n "$AWK"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3917 $as_echo "$AWK" >&6; }
3918 else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3924 test -n "$AWK" && break
3925 done
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3928 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3929 set x ${MAKE-make}
3930 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3931 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 cat >conftest.make <<\_ACEOF
3935 SHELL = /bin/sh
3936 all:
3937 @echo '@@@%%%=$(MAKE)=@@@%%%'
3938 _ACEOF
3939 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3940 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3941 *@@@%%%=?*=@@@%%%*)
3942 eval ac_cv_prog_make_${ac_make}_set=yes;;
3944 eval ac_cv_prog_make_${ac_make}_set=no;;
3945 esac
3946 rm -f conftest.make
3948 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3950 $as_echo "yes" >&6; }
3951 SET_MAKE=
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 SET_MAKE="MAKE=${MAKE-make}"
3958 rm -rf .tst 2>/dev/null
3959 mkdir .tst 2>/dev/null
3960 if test -d .tst; then
3961 am__leading_dot=.
3962 else
3963 am__leading_dot=_
3965 rmdir .tst 2>/dev/null
3967 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3968 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3969 # is not polluted with repeated "-I."
3970 am__isrc=' -I$(srcdir)'
3971 # test to see if srcdir already configured
3972 if test -f $srcdir/config.status; then
3973 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3977 # test whether we have cygpath
3978 if test -z "$CYGPATH_W"; then
3979 if (cygpath --version) >/dev/null 2>/dev/null; then
3980 CYGPATH_W='cygpath -w'
3981 else
3982 CYGPATH_W=echo
3987 # Define the identity of the package.
3988 PACKAGE='emacs'
3989 VERSION='24.3.50'
3992 cat >>confdefs.h <<_ACEOF
3993 #define PACKAGE "$PACKAGE"
3994 _ACEOF
3997 cat >>confdefs.h <<_ACEOF
3998 #define VERSION "$VERSION"
3999 _ACEOF
4001 # Some tools Automake needs.
4003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4017 # We need awk for the "check" target. The system "awk" is bad on
4018 # some platforms.
4019 # Always define AMTAR for backward compatibility.
4021 AMTAR=${AMTAR-"${am_missing_run}tar"}
4023 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4032 lispdir='${datadir}/emacs/${version}/lisp'
4033 leimdir='${datadir}/emacs/${version}/leim'
4034 standardlisppath='${lispdir}:${leimdir}'
4035 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
4036 '${datadir}/emacs/site-lisp'
4037 lisppath='${locallisppath}:${standardlisppath}'
4038 etcdir='${datadir}/emacs/${version}/etc'
4039 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4040 etcdocdir='${datadir}/emacs/${version}/etc'
4041 gamedir='${localstatedir}/games/emacs'
4044 # Check whether --with-all was given.
4045 if test "${with_all+set}" = set; then :
4046 withval=$with_all; with_features=$withval
4047 else
4048 with_features=yes
4055 # Check whether --with-pop was given.
4056 if test "${with_pop+set}" = set; then :
4057 withval=$with_pop;
4058 else
4059 with_pop=$with_features
4062 if test "$with_pop" = yes; then
4063 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4068 # Check whether --with-kerberos was given.
4069 if test "${with_kerberos+set}" = set; then :
4070 withval=$with_kerberos;
4071 else
4072 with_kerberos=no
4075 if test "$with_kerberos" != no; then
4076 $as_echo "#define KERBEROS 1" >>confdefs.h
4081 # Check whether --with-kerberos5 was given.
4082 if test "${with_kerberos5+set}" = set; then :
4083 withval=$with_kerberos5;
4084 else
4085 with_kerberos5=no
4088 if test "${with_kerberos5}" != no; then
4089 if test "${with_kerberos}" = no; then
4090 with_kerberos=yes
4091 $as_echo "#define KERBEROS 1" >>confdefs.h
4095 $as_echo "#define KERBEROS5 1" >>confdefs.h
4100 # Check whether --with-hesiod was given.
4101 if test "${with_hesiod+set}" = set; then :
4102 withval=$with_hesiod;
4103 else
4104 with_hesiod=no
4107 if test "$with_hesiod" != no; then
4109 $as_echo "#define HESIOD 1" >>confdefs.h
4114 # Check whether --with-mmdf was given.
4115 if test "${with_mmdf+set}" = set; then :
4116 withval=$with_mmdf;
4117 else
4118 with_mmdf=no
4121 if test "$with_mmdf" != no; then
4123 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4128 # Check whether --with-mail-unlink was given.
4129 if test "${with_mail_unlink+set}" = set; then :
4130 withval=$with_mail_unlink;
4131 else
4132 with_mail_unlink=no
4135 if test "$with_mail_unlink" != no; then
4137 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4142 # Check whether --with-mailhost was given.
4143 if test "${with_mailhost+set}" = set; then :
4144 withval=$with_mailhost;
4145 cat >>confdefs.h <<_ACEOF
4146 #define MAILHOST "$withval"
4147 _ACEOF
4153 # Check whether --with-sound was given.
4154 if test "${with_sound+set}" = set; then :
4155 withval=$with_sound; case "${withval}" in
4156 yes|no|alsa|oss|bsd-ossaudio) val=$withval ;;
4157 *) as_fn_error "\`--with-sound=$withval' is invalid;
4158 this option's value should be \`yes', \`no', \`alsa', \`oss', or \`bsd-ossaudio'." "$LINENO" 5
4160 esac
4161 with_sound=$val
4163 else
4164 with_sound=$with_features
4169 # Check whether --with-x-toolkit was given.
4170 if test "${with_x_toolkit+set}" = set; then :
4171 withval=$with_x_toolkit; case "${withval}" in
4172 y | ye | yes ) val=gtk ;;
4173 n | no ) val=no ;;
4174 l | lu | luc | luci | lucid ) val=lucid ;;
4175 a | at | ath | athe | athen | athena ) val=athena ;;
4176 m | mo | mot | moti | motif ) val=motif ;;
4177 g | gt | gtk ) val=gtk ;;
4178 gtk2 ) val=gtk2 ;;
4179 gtk3 ) val=gtk3 ;;
4181 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4182 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4183 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4184 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4186 esac
4187 with_x_toolkit=$val
4193 # Check whether --with-wide-int was given.
4194 if test "${with_wide_int+set}" = set; then :
4195 withval=$with_wide_int;
4196 else
4197 with_wide_int=no
4200 if test "$with_wide_int" = yes; then
4202 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4207 # Check whether --with-xpm was given.
4208 if test "${with_xpm+set}" = set; then :
4209 withval=$with_xpm;
4210 else
4211 with_xpm=$with_features
4215 # Check whether --with-jpeg was given.
4216 if test "${with_jpeg+set}" = set; then :
4217 withval=$with_jpeg;
4218 else
4219 with_jpeg=$with_features
4223 # Check whether --with-tiff was given.
4224 if test "${with_tiff+set}" = set; then :
4225 withval=$with_tiff;
4226 else
4227 with_tiff=$with_features
4231 # Check whether --with-gif was given.
4232 if test "${with_gif+set}" = set; then :
4233 withval=$with_gif;
4234 else
4235 with_gif=$with_features
4239 # Check whether --with-png was given.
4240 if test "${with_png+set}" = set; then :
4241 withval=$with_png;
4242 else
4243 with_png=$with_features
4247 # Check whether --with-rsvg was given.
4248 if test "${with_rsvg+set}" = set; then :
4249 withval=$with_rsvg;
4250 else
4251 with_rsvg=$with_features
4255 # Check whether --with-xml2 was given.
4256 if test "${with_xml2+set}" = set; then :
4257 withval=$with_xml2;
4258 else
4259 with_xml2=$with_features
4263 # Check whether --with-imagemagick was given.
4264 if test "${with_imagemagick+set}" = set; then :
4265 withval=$with_imagemagick;
4266 else
4267 with_imagemagick=$with_features
4272 # Check whether --with-xft was given.
4273 if test "${with_xft+set}" = set; then :
4274 withval=$with_xft;
4275 else
4276 with_xft=$with_features
4280 # Check whether --with-libotf was given.
4281 if test "${with_libotf+set}" = set; then :
4282 withval=$with_libotf;
4283 else
4284 with_libotf=$with_features
4288 # Check whether --with-m17n-flt was given.
4289 if test "${with_m17n_flt+set}" = set; then :
4290 withval=$with_m17n_flt;
4291 else
4292 with_m17n_flt=$with_features
4297 # Check whether --with-toolkit-scroll-bars was given.
4298 if test "${with_toolkit_scroll_bars+set}" = set; then :
4299 withval=$with_toolkit_scroll_bars;
4300 else
4301 with_toolkit_scroll_bars=$with_features
4305 # Check whether --with-xaw3d was given.
4306 if test "${with_xaw3d+set}" = set; then :
4307 withval=$with_xaw3d;
4308 else
4309 with_xaw3d=$with_features
4313 # Check whether --with-xim was given.
4314 if test "${with_xim+set}" = set; then :
4315 withval=$with_xim;
4316 else
4317 with_xim=$with_features
4321 # Check whether --with-ns was given.
4322 if test "${with_ns+set}" = set; then :
4323 withval=$with_ns;
4324 else
4325 with_ns=no
4329 # Check whether --with-w32 was given.
4330 if test "${with_w32+set}" = set; then :
4331 withval=$with_w32;
4332 else
4333 with_w32=no
4338 # Check whether --with-gpm was given.
4339 if test "${with_gpm+set}" = set; then :
4340 withval=$with_gpm;
4341 else
4342 with_gpm=$with_features
4346 # Check whether --with-dbus was given.
4347 if test "${with_dbus+set}" = set; then :
4348 withval=$with_dbus;
4349 else
4350 with_dbus=$with_features
4354 # Check whether --with-gconf was given.
4355 if test "${with_gconf+set}" = set; then :
4356 withval=$with_gconf;
4357 else
4358 with_gconf=$with_features
4362 # Check whether --with-gsettings was given.
4363 if test "${with_gsettings+set}" = set; then :
4364 withval=$with_gsettings;
4365 else
4366 with_gsettings=$with_features
4370 # Check whether --with-selinux was given.
4371 if test "${with_selinux+set}" = set; then :
4372 withval=$with_selinux;
4373 else
4374 with_selinux=$with_features
4378 # Check whether --with-gnutls was given.
4379 if test "${with_gnutls+set}" = set; then :
4380 withval=$with_gnutls;
4381 else
4382 with_gnutls=$with_features
4386 # Check whether --with-zlib was given.
4387 if test "${with_zlib+set}" = set; then :
4388 withval=$with_zlib;
4389 else
4390 with_zlib=$with_features
4395 # Check whether --with-file-notification was given.
4396 if test "${with_file_notification+set}" = set; then :
4397 withval=$with_file_notification; case "${withval}" in
4398 y | ye | yes ) val=yes ;;
4399 n | no ) val=no ;;
4400 g | gf | gfi | gfil | gfile ) val=gfile ;;
4401 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4402 w | w3 | w32 ) val=w32 ;;
4403 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4404 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4405 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4406 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4408 esac
4409 with_file_notification=$val
4411 else
4412 with_file_notification=$with_features
4416 ## For the times when you want to build Emacs but don't have
4417 ## a suitable makeinfo, and can live without the manuals.
4419 # Check whether --with-makeinfo was given.
4420 if test "${with_makeinfo+set}" = set; then :
4421 withval=$with_makeinfo;
4422 else
4423 with_makeinfo=$with_features
4427 ## Makefile.in needs the cache file name.
4430 ## This is an option because I do not know if all info/man support
4431 ## compressed files, nor how to test if they do so.
4433 # Check whether --with-compress-install was given.
4434 if test "${with_compress_install+set}" = set; then :
4435 withval=$with_compress_install;
4436 else
4437 with_compress_install=$with_features
4442 # Check whether --with-pkg-config-prog was given.
4443 if test "${with_pkg_config_prog+set}" = set; then :
4444 withval=$with_pkg_config_prog;
4447 if test "X${with_pkg_config_prog}" != X; then
4448 if test "${with_pkg_config_prog}" != yes; then
4449 PKG_CONFIG="${with_pkg_config_prog}"
4454 # Check whether --with-gameuser was given.
4455 if test "${with_gameuser+set}" = set; then :
4456 withval=$with_gameuser;
4459 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4460 && gameuser="${with_gameuser}"
4461 test "X$gameuser" = X && gameuser=games
4464 # Check whether --with-gnustep-conf was given.
4465 if test "${with_gnustep_conf+set}" = set; then :
4466 withval=$with_gnustep_conf;
4469 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4470 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4471 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4472 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4474 # Check whether --enable-ns-self-contained was given.
4475 if test "${enable_ns_self_contained+set}" = set; then :
4476 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4477 else
4478 EN_NS_SELF_CONTAINED=yes
4482 # Check whether --enable-locallisppath was given.
4483 if test "${enable_locallisppath+set}" = set; then :
4484 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4485 locallisppath=
4486 elif test "${enableval}" != "yes"; then
4487 locallisppath=${enableval}
4492 # Check whether --enable-checking was given.
4493 if test "${enable_checking+set}" = set; then :
4494 enableval=$enable_checking; ac_checking_flags="${enableval}"
4497 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4498 for check in $ac_checking_flags
4500 case $check in
4501 # these set all the flags to specific states
4502 yes) ac_enable_checking=1 ;;
4503 no) ac_enable_checking= ;
4504 ac_gc_check_stringbytes= ;
4505 ac_gc_check_string_overrun= ;
4506 ac_gc_check_string_free_list= ;
4507 ac_xmalloc_overrun= ;
4508 ac_gc_check_cons_list= ;
4509 ac_glyphs_debug= ;;
4510 all) ac_enable_checking=1 ;
4511 ac_gc_check_stringbytes=1 ;
4512 ac_gc_check_string_overrun=1 ;
4513 ac_gc_check_string_free_list=1 ;
4514 ac_xmalloc_overrun=1 ;
4515 ac_gc_check_cons_list=1 ;
4516 ac_glyphs_debug=1 ;;
4517 # these enable particular checks
4518 stringbytes) ac_gc_check_stringbytes=1 ;;
4519 stringoverrun) ac_gc_check_string_overrun=1 ;;
4520 stringfreelist) ac_gc_check_string_free_list=1 ;;
4521 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4522 conslist) ac_gc_check_cons_list=1 ;;
4523 glyphs) ac_glyphs_debug=1 ;;
4524 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4525 esac
4526 done
4527 IFS="$ac_save_IFS"
4529 if test x$ac_enable_checking != x ; then
4531 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4534 if test x$ac_gc_check_stringbytes != x ; then
4536 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4539 if test x$ac_gc_check_string_overrun != x ; then
4541 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4544 if test x$ac_gc_check_string_free_list != x ; then
4546 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4549 if test x$ac_xmalloc_overrun != x ; then
4551 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4554 if test x$ac_gc_check_cons_list != x ; then
4556 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4559 if test x$ac_glyphs_debug != x ; then
4561 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4565 # Check whether --enable-check-lisp-object-type was given.
4566 if test "${enable_check_lisp_object_type+set}" = set; then :
4567 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4569 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4576 # Check whether --enable-profiling was given.
4577 if test "${enable_profiling+set}" = set; then :
4578 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4581 if test x$ac_enable_profiling != x ; then
4582 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4583 else
4584 PROFILING_CFLAGS=
4588 # Check whether --enable-autodepend was given.
4589 if test "${enable_autodepend+set}" = set; then :
4590 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4591 else
4592 ac_enable_autodepend=yes
4596 # Check whether --enable-gtk-deprecation-warnings was given.
4597 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4598 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4602 #### Make srcdir absolute, if it isn't already. It's important to
4603 #### avoid running the file name through pwd unnecessarily, since pwd can
4604 #### give you automounter prefixes, which can go away. We do all this
4605 #### so Emacs can find its files when run uninstalled.
4606 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4607 unset CDPATH
4608 case "${srcdir}" in
4609 [\\/]* | ?:[\\/]*) ;;
4611 ## We may be able to use the $PWD environment variable to make this
4612 ## absolute. But sometimes PWD is inaccurate.
4613 ## Note: we used to use $PWD at the end instead of `pwd`,
4614 ## but that tested only for a well-formed and valid PWD,
4615 ## it did not object when PWD was well-formed and valid but just wrong.
4616 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4617 then
4618 srcdir="$PWD"
4619 else
4620 srcdir=`(cd "$srcdir"; pwd)`
4623 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4624 esac
4626 ### Canonicalize the configuration name.
4628 # Make sure we can run config.sub.
4629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4630 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4633 $as_echo_n "checking build system type... " >&6; }
4634 if test "${ac_cv_build+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 ac_build_alias=$build_alias
4638 test "x$ac_build_alias" = x &&
4639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4640 test "x$ac_build_alias" = x &&
4641 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4643 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4647 $as_echo "$ac_cv_build" >&6; }
4648 case $ac_cv_build in
4649 *-*-*) ;;
4650 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4651 esac
4652 build=$ac_cv_build
4653 ac_save_IFS=$IFS; IFS='-'
4654 set x $ac_cv_build
4655 shift
4656 build_cpu=$1
4657 build_vendor=$2
4658 shift; shift
4659 # Remember, the first character of IFS is used to create $*,
4660 # except with old shells:
4661 build_os=$*
4662 IFS=$ac_save_IFS
4663 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4667 $as_echo_n "checking host system type... " >&6; }
4668 if test "${ac_cv_host+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test "x$host_alias" = x; then
4672 ac_cv_host=$ac_cv_build
4673 else
4674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4675 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4680 $as_echo "$ac_cv_host" >&6; }
4681 case $ac_cv_host in
4682 *-*-*) ;;
4683 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4684 esac
4685 host=$ac_cv_host
4686 ac_save_IFS=$IFS; IFS='-'
4687 set x $ac_cv_host
4688 shift
4689 host_cpu=$1
4690 host_vendor=$2
4691 shift; shift
4692 # Remember, the first character of IFS is used to create $*,
4693 # except with old shells:
4694 host_os=$*
4695 IFS=$ac_save_IFS
4696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4699 canonical=$host
4700 configuration=${host_alias-${build_alias-$host}}
4704 ### If you add support for a new configuration, add code to this
4705 ### switch statement to recognize your configuration name and select
4706 ### the appropriate operating system file.
4708 ### You would hope that you could choose an s/*.h
4709 ### file based on the operating system portion. However, it turns out
4710 ### that each s/*.h file is pretty manufacturer-specific.
4711 ### So we basically have to have a special case for each
4712 ### configuration name.
4714 ### As far as handling version numbers on operating systems is
4715 ### concerned, make sure things will fail in a fixable way. If
4716 ### /etc/MACHINES doesn't say anything about version numbers, be
4717 ### prepared to handle anything reasonably. If version numbers
4718 ### matter, be sure /etc/MACHINES says something about it.
4720 opsys='' unported=no
4721 case "${canonical}" in
4723 ## GNU/Linux and similar ports
4724 *-*-linux* )
4725 opsys=gnu-linux
4728 ## FreeBSD ports
4729 *-*-freebsd* )
4730 opsys=freebsd
4733 ## DragonFly ports
4734 *-*-dragonfly* )
4735 opsys=dragonfly
4738 ## FreeBSD kernel + glibc based userland
4739 *-*-kfreebsd*gnu* )
4740 opsys=gnu-kfreebsd
4743 ## NetBSD ports
4744 *-*-netbsd* )
4745 opsys=netbsd
4748 ## OpenBSD ports
4749 *-*-openbsd* )
4750 opsys=openbsd
4753 ## Apple Darwin / Mac OS X
4754 *-apple-darwin* )
4755 case "${canonical}" in
4756 i[3456]86-* ) ;;
4757 powerpc-* ) ;;
4758 x86_64-* ) ;;
4759 * ) unported=yes ;;
4760 esac
4761 opsys=darwin
4762 ## Use fink packages if available.
4763 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4764 ## if test -d /sw/include && test -d /sw/lib; then
4765 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4766 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4767 ## fi
4770 ## Cygwin ports
4771 *-*-cygwin )
4772 opsys=cygwin
4775 ## HP 9000 series 700 and 800, running HP/UX
4776 hppa*-hp-hpux10.2* )
4777 opsys=hpux10-20
4779 hppa*-hp-hpux1[1-9]* )
4780 opsys=hpux11
4781 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4784 ## IBM machines
4785 rs6000-ibm-aix4.[23]* )
4786 opsys=aix4-2
4788 powerpc-ibm-aix4.[23]* )
4789 opsys=aix4-2
4791 rs6000-ibm-aix[56]* )
4792 opsys=aix4-2
4794 powerpc-ibm-aix[56]* )
4795 opsys=aix4-2
4798 ## Silicon Graphics machines
4799 ## Iris 4D
4800 mips-sgi-irix6.5 )
4801 opsys=irix6-5
4802 # Without defining _LANGUAGE_C, things get masked out in the headers
4803 # so that, for instance, grepping for `free' in stdlib.h fails and
4804 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4805 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4808 ## Suns
4809 *-sun-solaris* \
4810 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4811 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4812 case "${canonical}" in
4813 i[3456]86-*-* ) ;;
4814 amd64-*-*|x86_64-*-*) ;;
4815 sparc* ) ;;
4816 * ) unported=yes ;;
4817 esac
4818 case "${canonical}" in
4819 *-sunos5.6* | *-solaris2.6* )
4820 opsys=sol2-6
4821 RANLIB="ar -ts"
4823 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4824 opsys=sol2-6
4825 emacs_check_sunpro_c=yes
4827 *-sunos5* | *-solaris* )
4828 opsys=sol2-10
4829 emacs_check_sunpro_c=yes
4831 esac
4832 ## Watch out for a compiler that we know will not work.
4833 case "${canonical}" in
4834 *-solaris* | *-sunos5* )
4835 if [ "x$CC" = x/usr/ucb/cc ]; then
4836 ## /usr/ucb/cc doesn't work;
4837 ## we should find some other compiler that does work.
4838 unset CC
4841 *) ;;
4842 esac
4845 ## Intel 386 machines where we don't care about the manufacturer.
4846 i[3456]86-*-* )
4847 case "${canonical}" in
4848 *-darwin* ) opsys=darwin ;;
4849 *-mingw32 )
4850 opsys=mingw32
4851 # MinGW overrides and adds some system headers in nt/inc.
4852 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4854 *-sysv4.2uw* ) opsys=unixware ;;
4855 *-sysv5uw* ) opsys=unixware ;;
4856 *-sysv5OpenUNIX* ) opsys=unixware ;;
4857 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4858 esac
4862 unported=yes
4864 esac
4866 ### If the code above didn't choose an operating system, just choose
4867 ### an operating system based on the configuration name. You really
4868 ### only want to use this when you have no idea what the right
4869 ### operating system is; if you know what operating systems a machine
4870 ### runs, it's cleaner to make it explicit in the case statement
4871 ### above.
4872 if test x"${opsys}" = x; then
4873 case "${canonical}" in
4874 *-gnu* ) opsys=gnu ;;
4876 unported=yes
4878 esac
4883 if test $unported = yes; then
4884 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4885 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4889 #### Choose a compiler.
4891 ac_ext=c
4892 ac_cpp='$CPP $CPPFLAGS'
4893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 if test -n "$ac_tool_prefix"; then
4897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if test "${ac_cv_prog_CC+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 if test -n "$CC"; then
4905 ac_cv_prog_CC="$CC" # Let the user override the test.
4906 else
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 for as_dir in $PATH
4910 IFS=$as_save_IFS
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 break 2
4918 done
4919 done
4920 IFS=$as_save_IFS
4924 CC=$ac_cv_prog_CC
4925 if test -n "$CC"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4927 $as_echo "$CC" >&6; }
4928 else
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4935 if test -z "$ac_cv_prog_CC"; then
4936 ac_ct_CC=$CC
4937 # Extract the first word of "gcc", so it can be a program name with args.
4938 set dummy gcc; ac_word=$2
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940 $as_echo_n "checking for $ac_word... " >&6; }
4941 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943 else
4944 if test -n "$ac_ct_CC"; then
4945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4946 else
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_ac_ct_CC="gcc"
4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4965 if test -n "$ac_ct_CC"; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4967 $as_echo "$ac_ct_CC" >&6; }
4968 else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4973 if test "x$ac_ct_CC" = x; then
4974 CC=""
4975 else
4976 case $cross_compiling:$ac_tool_warned in
4977 yes:)
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4980 ac_tool_warned=yes ;;
4981 esac
4982 CC=$ac_ct_CC
4984 else
4985 CC="$ac_cv_prog_CC"
4988 if test -z "$CC"; then
4989 if test -n "$ac_tool_prefix"; then
4990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4991 set dummy ${ac_tool_prefix}cc; ac_word=$2
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4993 $as_echo_n "checking for $ac_word... " >&6; }
4994 if test "${ac_cv_prog_CC+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4996 else
4997 if test -n "$CC"; then
4998 ac_cv_prog_CC="$CC" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_prog_CC="${ac_tool_prefix}cc"
5008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5013 IFS=$as_save_IFS
5017 CC=$ac_cv_prog_CC
5018 if test -n "$CC"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5020 $as_echo "$CC" >&6; }
5021 else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5029 if test -z "$CC"; then
5030 # Extract the first word of "cc", so it can be a program name with args.
5031 set dummy cc; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if test "${ac_cv_prog_CC+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$CC"; then
5038 ac_cv_prog_CC="$CC" # Let the user override the test.
5039 else
5040 ac_prog_rejected=no
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5049 ac_prog_rejected=yes
5050 continue
5052 ac_cv_prog_CC="cc"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5056 done
5057 done
5058 IFS=$as_save_IFS
5060 if test $ac_prog_rejected = yes; then
5061 # We found a bogon in the path, so make sure we never use it.
5062 set dummy $ac_cv_prog_CC
5063 shift
5064 if test $# != 0; then
5065 # We chose a different compiler from the bogus one.
5066 # However, it has the same basename, so the bogon will be chosen
5067 # first if we set CC to just the basename; use the full file name.
5068 shift
5069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5074 CC=$ac_cv_prog_CC
5075 if test -n "$CC"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5077 $as_echo "$CC" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5085 if test -z "$CC"; then
5086 if test -n "$ac_tool_prefix"; then
5087 for ac_prog in cl.exe
5089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if test "${ac_cv_prog_CC+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$CC"; then
5097 ac_cv_prog_CC="$CC" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5112 IFS=$as_save_IFS
5116 CC=$ac_cv_prog_CC
5117 if test -n "$CC"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5119 $as_echo "$CC" >&6; }
5120 else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 test -n "$CC" && break
5127 done
5129 if test -z "$CC"; then
5130 ac_ct_CC=$CC
5131 for ac_prog in cl.exe
5133 # Extract the first word of "$ac_prog", so it can be a program name with args.
5134 set dummy $ac_prog; ac_word=$2
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 if test -n "$ac_ct_CC"; then
5141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5146 IFS=$as_save_IFS
5147 test -z "$as_dir" && as_dir=.
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150 ac_cv_prog_ac_ct_CC="$ac_prog"
5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 break 2
5154 done
5155 done
5156 IFS=$as_save_IFS
5160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5161 if test -n "$ac_ct_CC"; then
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5163 $as_echo "$ac_ct_CC" >&6; }
5164 else
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5170 test -n "$ac_ct_CC" && break
5171 done
5173 if test "x$ac_ct_CC" = x; then
5174 CC=""
5175 else
5176 case $cross_compiling:$ac_tool_warned in
5177 yes:)
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5180 ac_tool_warned=yes ;;
5181 esac
5182 CC=$ac_ct_CC
5189 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5191 as_fn_error "no acceptable C compiler found in \$PATH
5192 See \`config.log' for more details." "$LINENO" 5; }
5194 # Provide some information about the compiler.
5195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5196 set X $ac_compile
5197 ac_compiler=$2
5198 for ac_option in --version -v -V -qversion; do
5199 { { ac_try="$ac_compiler $ac_option >&5"
5200 case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203 esac
5204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5205 $as_echo "$ac_try_echo"; } >&5
5206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5207 ac_status=$?
5208 if test -s conftest.err; then
5209 sed '10a\
5210 ... rest of stderr output deleted ...
5211 10q' conftest.err >conftest.er1
5212 cat conftest.er1 >&5
5214 rm -f conftest.er1 conftest.err
5215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216 test $ac_status = 0; }
5217 done
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5223 main ()
5227 return 0;
5229 _ACEOF
5230 ac_clean_files_save=$ac_clean_files
5231 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5232 # Try to create an executable without -o first, disregard a.out.
5233 # It will help us diagnose broken compilers, and finding out an intuition
5234 # of exeext.
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5236 $as_echo_n "checking whether the C compiler works... " >&6; }
5237 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5239 # The possible output files:
5240 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5242 ac_rmfiles=
5243 for ac_file in $ac_files
5245 case $ac_file in
5246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5247 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5248 esac
5249 done
5250 rm -f $ac_rmfiles
5252 if { { ac_try="$ac_link_default"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5258 $as_echo "$ac_try_echo"; } >&5
5259 (eval "$ac_link_default") 2>&5
5260 ac_status=$?
5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262 test $ac_status = 0; }; then :
5263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5266 # so that the user can short-circuit this test for compilers unknown to
5267 # Autoconf.
5268 for ac_file in $ac_files ''
5270 test -f "$ac_file" || continue
5271 case $ac_file in
5272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5274 [ab].out )
5275 # We found the default executable, but exeext='' is most
5276 # certainly right.
5277 break;;
5278 *.* )
5279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5280 then :; else
5281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5283 # We set ac_cv_exeext here because the later test for it is not
5284 # safe: cross compilers may not add the suffix if given an `-o'
5285 # argument, so we may need to know it at that point already.
5286 # Even if this section looks crufty: it has the advantage of
5287 # actually working.
5288 break;;
5290 break;;
5291 esac
5292 done
5293 test "$ac_cv_exeext" = no && ac_cv_exeext=
5295 else
5296 ac_file=''
5298 if test -z "$ac_file"; then :
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5301 $as_echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5306 { as_fn_set_status 77
5307 as_fn_error "C compiler cannot create executables
5308 See \`config.log' for more details." "$LINENO" 5; }; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5311 $as_echo "yes" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5314 $as_echo_n "checking for C compiler default output file name... " >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5316 $as_echo "$ac_file" >&6; }
5317 ac_exeext=$ac_cv_exeext
5319 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5320 ac_clean_files=$ac_clean_files_save
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5322 $as_echo_n "checking for suffix of executables... " >&6; }
5323 if { { ac_try="$ac_link"
5324 case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5329 $as_echo "$ac_try_echo"; } >&5
5330 (eval "$ac_link") 2>&5
5331 ac_status=$?
5332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5333 test $ac_status = 0; }; then :
5334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5336 # work properly (i.e., refer to `conftest.exe'), while it won't with
5337 # `rm'.
5338 for ac_file in conftest.exe conftest conftest.*; do
5339 test -f "$ac_file" || continue
5340 case $ac_file in
5341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5343 break;;
5344 * ) break;;
5345 esac
5346 done
5347 else
5348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5350 as_fn_error "cannot compute suffix of executables: cannot compile and link
5351 See \`config.log' for more details." "$LINENO" 5; }
5353 rm -f conftest conftest$ac_cv_exeext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5355 $as_echo "$ac_cv_exeext" >&6; }
5357 rm -f conftest.$ac_ext
5358 EXEEXT=$ac_cv_exeext
5359 ac_exeext=$EXEEXT
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5362 #include <stdio.h>
5364 main ()
5366 FILE *f = fopen ("conftest.out", "w");
5367 return ferror (f) || fclose (f) != 0;
5370 return 0;
5372 _ACEOF
5373 ac_clean_files="$ac_clean_files conftest.out"
5374 # Check that the compiler produces executables we can run. If not, either
5375 # the compiler is broken, or we cross compile.
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5377 $as_echo_n "checking whether we are cross compiling... " >&6; }
5378 if test "$cross_compiling" != yes; then
5379 { { ac_try="$ac_link"
5380 case "(($ac_try" in
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5383 esac
5384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5385 $as_echo "$ac_try_echo"; } >&5
5386 (eval "$ac_link") 2>&5
5387 ac_status=$?
5388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5389 test $ac_status = 0; }
5390 if { ac_try='./conftest$ac_cv_exeext'
5391 { { case "(($ac_try" in
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5394 esac
5395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5396 $as_echo "$ac_try_echo"; } >&5
5397 (eval "$ac_try") 2>&5
5398 ac_status=$?
5399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5400 test $ac_status = 0; }; }; then
5401 cross_compiling=no
5402 else
5403 if test "$cross_compiling" = maybe; then
5404 cross_compiling=yes
5405 else
5406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5408 as_fn_error "cannot run C compiled programs.
5409 If you meant to cross compile, use \`--host'.
5410 See \`config.log' for more details." "$LINENO" 5; }
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5415 $as_echo "$cross_compiling" >&6; }
5417 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5418 ac_clean_files=$ac_clean_files_save
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5420 $as_echo_n "checking for suffix of object files... " >&6; }
5421 if test "${ac_cv_objext+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5428 main ()
5432 return 0;
5434 _ACEOF
5435 rm -f conftest.o conftest.obj
5436 if { { ac_try="$ac_compile"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5442 $as_echo "$ac_try_echo"; } >&5
5443 (eval "$ac_compile") 2>&5
5444 ac_status=$?
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; }; then :
5447 for ac_file in conftest.o conftest.obj conftest.*; do
5448 test -f "$ac_file" || continue;
5449 case $ac_file in
5450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5451 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5452 break;;
5453 esac
5454 done
5455 else
5456 $as_echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5461 as_fn_error "cannot compute suffix of object files: cannot compile
5462 See \`config.log' for more details." "$LINENO" 5; }
5464 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5467 $as_echo "$ac_cv_objext" >&6; }
5468 OBJEXT=$ac_cv_objext
5469 ac_objext=$OBJEXT
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5471 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5472 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5479 main ()
5481 #ifndef __GNUC__
5482 choke me
5483 #endif
5486 return 0;
5488 _ACEOF
5489 if ac_fn_c_try_compile "$LINENO"; then :
5490 ac_compiler_gnu=yes
5491 else
5492 ac_compiler_gnu=no
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5500 if test $ac_compiler_gnu = yes; then
5501 GCC=yes
5502 else
5503 GCC=
5505 ac_test_CFLAGS=${CFLAGS+set}
5506 ac_save_CFLAGS=$CFLAGS
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5509 if test "${ac_cv_prog_cc_g+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 ac_save_c_werror_flag=$ac_c_werror_flag
5513 ac_c_werror_flag=yes
5514 ac_cv_prog_cc_g=no
5515 CFLAGS="-g"
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5520 main ()
5524 return 0;
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 ac_cv_prog_cc_g=yes
5529 else
5530 CFLAGS=""
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 :
5544 else
5545 ac_c_werror_flag=$ac_save_c_werror_flag
5546 CFLAGS="-g"
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5551 main ()
5555 return 0;
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 ac_cv_prog_cc_g=yes
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 ac_c_werror_flag=$ac_save_c_werror_flag
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5569 $as_echo "$ac_cv_prog_cc_g" >&6; }
5570 if test "$ac_test_CFLAGS" = set; then
5571 CFLAGS=$ac_save_CFLAGS
5572 elif test $ac_cv_prog_cc_g = yes; then
5573 if test "$GCC" = yes; then
5574 CFLAGS="-g -O2"
5575 else
5576 CFLAGS="-g"
5578 else
5579 if test "$GCC" = yes; then
5580 CFLAGS="-O2"
5581 else
5582 CFLAGS=
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5587 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 ac_cv_prog_cc_c89=no
5591 ac_save_CC=$CC
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <stdarg.h>
5595 #include <stdio.h>
5596 #include <sys/types.h>
5597 #include <sys/stat.h>
5598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5599 struct buf { int x; };
5600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5601 static char *e (p, i)
5602 char **p;
5603 int i;
5605 return p[i];
5607 static char *f (char * (*g) (char **, int), char **p, ...)
5609 char *s;
5610 va_list v;
5611 va_start (v,p);
5612 s = g (p, va_arg (v,int));
5613 va_end (v);
5614 return s;
5617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5618 function prototypes and stuff, but not '\xHH' hex character constants.
5619 These don't provoke an error unfortunately, instead are silently treated
5620 as 'x'. The following induces an error, until -std is added to get
5621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5622 array size at least. It's necessary to write '\x00'==0 to get something
5623 that's true only with -std. */
5624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5627 inside strings and character constants. */
5628 #define FOO(x) 'x'
5629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5631 int test (int i, double x);
5632 struct s1 {int (*f) (int a);};
5633 struct s2 {int (*f) (double a);};
5634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5635 int argc;
5636 char **argv;
5638 main ()
5640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5642 return 0;
5644 _ACEOF
5645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5648 CC="$ac_save_CC $ac_arg"
5649 if ac_fn_c_try_compile "$LINENO"; then :
5650 ac_cv_prog_cc_c89=$ac_arg
5652 rm -f core conftest.err conftest.$ac_objext
5653 test "x$ac_cv_prog_cc_c89" != "xno" && break
5654 done
5655 rm -f conftest.$ac_ext
5656 CC=$ac_save_CC
5659 # AC_CACHE_VAL
5660 case "x$ac_cv_prog_cc_c89" in
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5663 $as_echo "none needed" >&6; } ;;
5664 xno)
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5666 $as_echo "unsupported" >&6; } ;;
5668 CC="$CC $ac_cv_prog_cc_c89"
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5670 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5671 esac
5672 if test "x$ac_cv_prog_cc_c89" != xno; then :
5676 ac_ext=c
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681 DEPDIR="${am__leading_dot}deps"
5683 ac_config_commands="$ac_config_commands depfiles"
5686 am_make=${MAKE-make}
5687 cat > confinc << 'END'
5688 am__doit:
5689 @echo this is the am__doit target
5690 .PHONY: am__doit
5692 # If we don't find an include directive, just comment out the code.
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5694 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5695 am__include="#"
5696 am__quote=
5697 _am_result=none
5698 # First try GNU make style include.
5699 echo "include confinc" > confmf
5700 # Ignore all kinds of additional output from `make'.
5701 case `$am_make -s -f confmf 2> /dev/null` in #(
5702 *the\ am__doit\ target*)
5703 am__include=include
5704 am__quote=
5705 _am_result=GNU
5707 esac
5708 # Now try BSD make style include.
5709 if test "$am__include" = "#"; then
5710 echo '.include "confinc"' > confmf
5711 case `$am_make -s -f confmf 2> /dev/null` in #(
5712 *the\ am__doit\ target*)
5713 am__include=.include
5714 am__quote="\""
5715 _am_result=BSD
5717 esac
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5722 $as_echo "$_am_result" >&6; }
5723 rm -f confinc confmf
5725 # Check whether --enable-dependency-tracking was given.
5726 if test "${enable_dependency_tracking+set}" = set; then :
5727 enableval=$enable_dependency_tracking;
5730 if test "x$enable_dependency_tracking" != xno; then
5731 am_depcomp="$ac_aux_dir/depcomp"
5732 AMDEPBACKSLASH='\'
5734 if test "x$enable_dependency_tracking" != xno; then
5735 AMDEP_TRUE=
5736 AMDEP_FALSE='#'
5737 else
5738 AMDEP_TRUE='#'
5739 AMDEP_FALSE=
5744 depcc="$CC" am_compiler_list=
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5747 $as_echo_n "checking dependency style of $depcc... " >&6; }
5748 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5752 # We make a subdir and do the tests there. Otherwise we can end up
5753 # making bogus files that we don't know about and never remove. For
5754 # instance it was reported that on HP-UX the gcc test will end up
5755 # making a dummy file named `D' -- because `-MD' means `put the output
5756 # in D'.
5757 mkdir conftest.dir
5758 # Copy depcomp to subdir because otherwise we won't find it if we're
5759 # using a relative directory.
5760 cp "$am_depcomp" conftest.dir
5761 cd conftest.dir
5762 # We will build objects and dependencies in a subdirectory because
5763 # it helps to detect inapplicable dependency modes. For instance
5764 # both Tru64's cc and ICC support -MD to output dependencies as a
5765 # side effect of compilation, but ICC will put the dependencies in
5766 # the current directory while Tru64 will put them in the object
5767 # directory.
5768 mkdir sub
5770 am_cv_CC_dependencies_compiler_type=none
5771 if test "$am_compiler_list" = ""; then
5772 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5774 am__universal=false
5775 case " $depcc " in #(
5776 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5777 esac
5779 for depmode in $am_compiler_list; do
5780 # Setup a source with many dependencies, because some compilers
5781 # like to wrap large dependency lists on column 80 (with \), and
5782 # we should not choose a depcomp mode which is confused by this.
5784 # We need to recreate these files for each test, as the compiler may
5785 # overwrite some of them when testing with obscure command lines.
5786 # This happens at least with the AIX C compiler.
5787 : > sub/conftest.c
5788 for i in 1 2 3 4 5 6; do
5789 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5790 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5791 # Solaris 8's {/usr,}/bin/sh.
5792 touch sub/conftst$i.h
5793 done
5794 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5796 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5797 # mode. It turns out that the SunPro C++ compiler does not properly
5798 # handle `-M -o', and we need to detect this. Also, some Intel
5799 # versions had trouble with output in subdirs
5800 am__obj=sub/conftest.${OBJEXT-o}
5801 am__minus_obj="-o $am__obj"
5802 case $depmode in
5803 gcc)
5804 # This depmode causes a compiler race in universal mode.
5805 test "$am__universal" = false || continue
5807 nosideeffect)
5808 # after this tag, mechanisms are not by side-effect, so they'll
5809 # only be used when explicitly requested
5810 if test "x$enable_dependency_tracking" = xyes; then
5811 continue
5812 else
5813 break
5816 msvisualcpp | msvcmsys)
5817 # This compiler won't grok `-c -o', but also, the minuso test has
5818 # not run yet. These depmodes are late enough in the game, and
5819 # so weak that their functioning should not be impacted.
5820 am__obj=conftest.${OBJEXT-o}
5821 am__minus_obj=
5823 none) break ;;
5824 esac
5825 if depmode=$depmode \
5826 source=sub/conftest.c object=$am__obj \
5827 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5828 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5829 >/dev/null 2>conftest.err &&
5830 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5831 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5832 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5833 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5834 # icc doesn't choke on unknown options, it will just issue warnings
5835 # or remarks (even with -Werror). So we grep stderr for any message
5836 # that says an option was ignored or not supported.
5837 # When given -MP, icc 7.0 and 7.1 complain thusly:
5838 # icc: Command line warning: ignoring option '-M'; no argument required
5839 # The diagnosis changed in icc 8.0:
5840 # icc: Command line remark: option '-MP' not supported
5841 if (grep 'ignoring option' conftest.err ||
5842 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5843 am_cv_CC_dependencies_compiler_type=$depmode
5844 break
5847 done
5849 cd ..
5850 rm -rf conftest.dir
5851 else
5852 am_cv_CC_dependencies_compiler_type=none
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5857 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5858 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5861 test "x$enable_dependency_tracking" != xno \
5862 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5863 am__fastdepCC_TRUE=
5864 am__fastdepCC_FALSE='#'
5865 else
5866 am__fastdepCC_TRUE='#'
5867 am__fastdepCC_FALSE=
5871 if test "x$CC" != xcc; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5873 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5874 else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5876 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5878 set dummy $CC; ac_cc=`$as_echo "$2" |
5879 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5880 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5887 main ()
5891 return 0;
5893 _ACEOF
5894 # Make sure it works both with $CC and with simple cc.
5895 # We do the test twice because some compilers refuse to overwrite an
5896 # existing .o file with -o, though they will create one.
5897 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5898 rm -f conftest2.*
5899 if { { case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5904 $as_echo "$ac_try_echo"; } >&5
5905 (eval "$ac_try") 2>&5
5906 ac_status=$?
5907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5908 test $ac_status = 0; } &&
5909 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5912 esac
5913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5914 $as_echo "$ac_try_echo"; } >&5
5915 (eval "$ac_try") 2>&5
5916 ac_status=$?
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; };
5919 then
5920 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5921 if test "x$CC" != xcc; then
5922 # Test first that cc exists at all.
5923 if { ac_try='cc -c conftest.$ac_ext >&5'
5924 { { 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; }; }; then
5934 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5935 rm -f conftest2.*
5936 if { { case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939 esac
5940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5941 $as_echo "$ac_try_echo"; } >&5
5942 (eval "$ac_try") 2>&5
5943 ac_status=$?
5944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5945 test $ac_status = 0; } &&
5946 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5951 $as_echo "$ac_try_echo"; } >&5
5952 (eval "$ac_try") 2>&5
5953 ac_status=$?
5954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5955 test $ac_status = 0; };
5956 then
5957 # cc works too.
5959 else
5960 # cc exists but doesn't like -o.
5961 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5965 else
5966 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5968 rm -f core conftest*
5971 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5973 $as_echo "yes" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5978 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5982 # FIXME: we rely on the cache variable name because
5983 # there is no other way.
5984 set dummy $CC
5985 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5986 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5987 if test "$am_t" != yes; then
5988 # Losing compiler, so override with the script.
5989 # FIXME: It is wrong to rewrite CC.
5990 # But if we don't then we get into trouble of one sort or another.
5991 # A longer-term fix would be to have automake use am__CC in this case,
5992 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5993 CC="$am_aux_dir/compile $CC"
5998 if test x$GCC = xyes; then
5999 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6000 else
6001 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6004 if test "x$opsys" = "xmingw32"; then
6005 BUILDING_FOR_WINDOWSNT_TRUE=
6006 BUILDING_FOR_WINDOWSNT_FALSE='#'
6007 else
6008 BUILDING_FOR_WINDOWSNT_TRUE='#'
6009 BUILDING_FOR_WINDOWSNT_FALSE=
6013 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
6014 # as we don't use them.
6016 # Avoid gnulib's threadlib module, as we do threads our own way.
6019 # Initialize gnulib right after choosing the compiler.
6021 ac_ext=c
6022 ac_cpp='$CPP $CPPFLAGS'
6023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6027 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6028 # On Suns, sometimes $CPP names a directory.
6029 if test -n "$CPP" && test -d "$CPP"; then
6030 CPP=
6032 if test -z "$CPP"; then
6033 if test "${ac_cv_prog_CPP+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 # Double quotes because CPP needs to be expanded
6037 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6039 ac_preproc_ok=false
6040 for ac_c_preproc_warn_flag in '' yes
6042 # Use a header file that comes with gcc, so configuring glibc
6043 # with a fresh cross-compiler works.
6044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6045 # <limits.h> exists even on freestanding compilers.
6046 # On the NeXT, cc -E runs the code through the compiler's parser,
6047 # not just through cpp. "Syntax error" is here to catch this case.
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 #ifdef __STDC__
6051 # include <limits.h>
6052 #else
6053 # include <assert.h>
6054 #endif
6055 Syntax error
6056 _ACEOF
6057 if ac_fn_c_try_cpp "$LINENO"; then :
6059 else
6060 # Broken: fails on valid input.
6061 continue
6063 rm -f conftest.err conftest.$ac_ext
6065 # OK, works on sane cases. Now check whether nonexistent headers
6066 # can be detected and how.
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 #include <ac_nonexistent.h>
6070 _ACEOF
6071 if ac_fn_c_try_cpp "$LINENO"; then :
6072 # Broken: success on invalid input.
6073 continue
6074 else
6075 # Passes both tests.
6076 ac_preproc_ok=:
6077 break
6079 rm -f conftest.err conftest.$ac_ext
6081 done
6082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083 rm -f conftest.err conftest.$ac_ext
6084 if $ac_preproc_ok; then :
6085 break
6088 done
6089 ac_cv_prog_CPP=$CPP
6092 CPP=$ac_cv_prog_CPP
6093 else
6094 ac_cv_prog_CPP=$CPP
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6097 $as_echo "$CPP" >&6; }
6098 ac_preproc_ok=false
6099 for ac_c_preproc_warn_flag in '' yes
6101 # Use a header file that comes with gcc, so configuring glibc
6102 # with a fresh cross-compiler works.
6103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6104 # <limits.h> exists even on freestanding compilers.
6105 # On the NeXT, cc -E runs the code through the compiler's parser,
6106 # not just through cpp. "Syntax error" is here to catch this case.
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #ifdef __STDC__
6110 # include <limits.h>
6111 #else
6112 # include <assert.h>
6113 #endif
6114 Syntax error
6115 _ACEOF
6116 if ac_fn_c_try_cpp "$LINENO"; then :
6118 else
6119 # Broken: fails on valid input.
6120 continue
6122 rm -f conftest.err conftest.$ac_ext
6124 # OK, works on sane cases. Now check whether nonexistent headers
6125 # can be detected and how.
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #include <ac_nonexistent.h>
6129 _ACEOF
6130 if ac_fn_c_try_cpp "$LINENO"; then :
6131 # Broken: success on invalid input.
6132 continue
6133 else
6134 # Passes both tests.
6135 ac_preproc_ok=:
6136 break
6138 rm -f conftest.err conftest.$ac_ext
6140 done
6141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6142 rm -f conftest.err conftest.$ac_ext
6143 if $ac_preproc_ok; then :
6145 else
6146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6148 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6149 See \`config.log' for more details." "$LINENO" 5; }
6152 ac_ext=c
6153 ac_cpp='$CPP $CPPFLAGS'
6154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6160 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6161 if test "${ac_cv_path_GREP+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if test -z "$GREP"; then
6165 ac_path_GREP_found=false
6166 # Loop through the user's path and test for each of PROGNAME-LIST
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_prog in grep ggrep; do
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6175 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6176 # Check for GNU ac_path_GREP and select it if it is found.
6177 # Check for GNU $ac_path_GREP
6178 case `"$ac_path_GREP" --version 2>&1` in
6179 *GNU*)
6180 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6182 ac_count=0
6183 $as_echo_n 0123456789 >"conftest.in"
6184 while :
6186 cat "conftest.in" "conftest.in" >"conftest.tmp"
6187 mv "conftest.tmp" "conftest.in"
6188 cp "conftest.in" "conftest.nl"
6189 $as_echo 'GREP' >> "conftest.nl"
6190 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6192 as_fn_arith $ac_count + 1 && ac_count=$as_val
6193 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6194 # Best one so far, save it but keep looking for a better one
6195 ac_cv_path_GREP="$ac_path_GREP"
6196 ac_path_GREP_max=$ac_count
6198 # 10*(2^10) chars as input seems more than enough
6199 test $ac_count -gt 10 && break
6200 done
6201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6202 esac
6204 $ac_path_GREP_found && break 3
6205 done
6206 done
6207 done
6208 IFS=$as_save_IFS
6209 if test -z "$ac_cv_path_GREP"; then
6210 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6212 else
6213 ac_cv_path_GREP=$GREP
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6218 $as_echo "$ac_cv_path_GREP" >&6; }
6219 GREP="$ac_cv_path_GREP"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6223 $as_echo_n "checking for egrep... " >&6; }
6224 if test "${ac_cv_path_EGREP+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6228 then ac_cv_path_EGREP="$GREP -E"
6229 else
6230 if test -z "$EGREP"; then
6231 ac_path_EGREP_found=false
6232 # Loop through the user's path and test for each of PROGNAME-LIST
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6236 IFS=$as_save_IFS
6237 test -z "$as_dir" && as_dir=.
6238 for ac_prog in egrep; do
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6241 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6242 # Check for GNU ac_path_EGREP and select it if it is found.
6243 # Check for GNU $ac_path_EGREP
6244 case `"$ac_path_EGREP" --version 2>&1` in
6245 *GNU*)
6246 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6248 ac_count=0
6249 $as_echo_n 0123456789 >"conftest.in"
6250 while :
6252 cat "conftest.in" "conftest.in" >"conftest.tmp"
6253 mv "conftest.tmp" "conftest.in"
6254 cp "conftest.in" "conftest.nl"
6255 $as_echo 'EGREP' >> "conftest.nl"
6256 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6258 as_fn_arith $ac_count + 1 && ac_count=$as_val
6259 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6260 # Best one so far, save it but keep looking for a better one
6261 ac_cv_path_EGREP="$ac_path_EGREP"
6262 ac_path_EGREP_max=$ac_count
6264 # 10*(2^10) chars as input seems more than enough
6265 test $ac_count -gt 10 && break
6266 done
6267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6268 esac
6270 $ac_path_EGREP_found && break 3
6271 done
6272 done
6273 done
6274 IFS=$as_save_IFS
6275 if test -z "$ac_cv_path_EGREP"; then
6276 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6278 else
6279 ac_cv_path_EGREP=$EGREP
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6285 $as_echo "$ac_cv_path_EGREP" >&6; }
6286 EGREP="$ac_cv_path_EGREP"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6292 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6293 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6300 #ifdef __ACK__
6301 Amsterdam
6302 #endif
6304 _ACEOF
6305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6306 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6307 gl_cv_c_amsterdam_compiler=yes
6308 else
6309 gl_cv_c_amsterdam_compiler=no
6311 rm -f conftest*
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6316 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6317 if test -z "$AR"; then
6318 if test $gl_cv_c_amsterdam_compiler = yes; then
6319 AR='cc -c.a'
6320 if test -z "$ARFLAGS"; then
6321 ARFLAGS='-o'
6323 else
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6326 set dummy ${ac_tool_prefix}ar; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_AR+set}" = set; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$AR"; then
6333 ac_cv_prog_AR="$AR" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_AR="${ac_tool_prefix}ar"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6346 done
6347 done
6348 IFS=$as_save_IFS
6352 AR=$ac_cv_prog_AR
6353 if test -n "$AR"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6355 $as_echo "$AR" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6363 if test -z "$ac_cv_prog_AR"; then
6364 ac_ct_AR=$AR
6365 # Extract the first word of "ar", so it can be a program name with args.
6366 set dummy ar; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -n "$ac_ct_AR"; then
6373 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_prog_ac_ct_AR="ar"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6386 done
6387 done
6388 IFS=$as_save_IFS
6392 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6393 if test -n "$ac_ct_AR"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6395 $as_echo "$ac_ct_AR" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6401 if test "x$ac_ct_AR" = x; then
6402 AR="ar"
6403 else
6404 case $cross_compiling:$ac_tool_warned in
6405 yes:)
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408 ac_tool_warned=yes ;;
6409 esac
6410 AR=$ac_ct_AR
6412 else
6413 AR="$ac_cv_prog_AR"
6416 if test -z "$ARFLAGS"; then
6417 ARFLAGS='cru'
6420 else
6421 if test -z "$ARFLAGS"; then
6422 ARFLAGS='cru'
6427 if test -z "$RANLIB"; then
6428 if test $gl_cv_c_amsterdam_compiler = yes; then
6429 RANLIB=':'
6430 else
6431 if test -n "$ac_tool_prefix"; then
6432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$RANLIB"; then
6440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6453 done
6454 done
6455 IFS=$as_save_IFS
6459 RANLIB=$ac_cv_prog_RANLIB
6460 if test -n "$RANLIB"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6462 $as_echo "$RANLIB" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6470 if test -z "$ac_cv_prog_RANLIB"; then
6471 ac_ct_RANLIB=$RANLIB
6472 # Extract the first word of "ranlib", so it can be a program name with args.
6473 set dummy ranlib; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6478 else
6479 if test -n "$ac_ct_RANLIB"; then
6480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6481 else
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 for as_dir in $PATH
6485 IFS=$as_save_IFS
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6489 ac_cv_prog_ac_ct_RANLIB="ranlib"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 break 2
6493 done
6494 done
6495 IFS=$as_save_IFS
6499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6500 if test -n "$ac_ct_RANLIB"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6502 $as_echo "$ac_ct_RANLIB" >&6; }
6503 else
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6508 if test "x$ac_ct_RANLIB" = x; then
6509 RANLIB=":"
6510 else
6511 case $cross_compiling:$ac_tool_warned in
6512 yes:)
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515 ac_tool_warned=yes ;;
6516 esac
6517 RANLIB=$ac_ct_RANLIB
6519 else
6520 RANLIB="$ac_cv_prog_RANLIB"
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6528 $as_echo_n "checking for ANSI C header files... " >&6; }
6529 if test "${ac_cv_header_stdc+set}" = set; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 #include <stdlib.h>
6535 #include <stdarg.h>
6536 #include <string.h>
6537 #include <float.h>
6540 main ()
6544 return 0;
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"; then :
6548 ac_cv_header_stdc=yes
6549 else
6550 ac_cv_header_stdc=no
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 if test $ac_cv_header_stdc = yes; then
6555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6558 #include <string.h>
6560 _ACEOF
6561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6562 $EGREP "memchr" >/dev/null 2>&1; then :
6564 else
6565 ac_cv_header_stdc=no
6567 rm -f conftest*
6571 if test $ac_cv_header_stdc = yes; then
6572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <stdlib.h>
6577 _ACEOF
6578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6579 $EGREP "free" >/dev/null 2>&1; then :
6581 else
6582 ac_cv_header_stdc=no
6584 rm -f conftest*
6588 if test $ac_cv_header_stdc = yes; then
6589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6590 if test "$cross_compiling" = yes; then :
6592 else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 #include <ctype.h>
6596 #include <stdlib.h>
6597 #if ((' ' & 0x0FF) == 0x020)
6598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6600 #else
6601 # define ISLOWER(c) \
6602 (('a' <= (c) && (c) <= 'i') \
6603 || ('j' <= (c) && (c) <= 'r') \
6604 || ('s' <= (c) && (c) <= 'z'))
6605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6606 #endif
6608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6610 main ()
6612 int i;
6613 for (i = 0; i < 256; i++)
6614 if (XOR (islower (i), ISLOWER (i))
6615 || toupper (i) != TOUPPER (i))
6616 return 2;
6617 return 0;
6619 _ACEOF
6620 if ac_fn_c_try_run "$LINENO"; then :
6622 else
6623 ac_cv_header_stdc=no
6625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6626 conftest.$ac_objext conftest.beam conftest.$ac_ext
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6632 $as_echo "$ac_cv_header_stdc" >&6; }
6633 if test $ac_cv_header_stdc = yes; then
6635 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6641 inttypes.h stdint.h unistd.h
6642 do :
6643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6644 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6646 eval as_val=\$$as_ac_Header
6647 if test "x$as_val" = x""yes; then :
6648 cat >>confdefs.h <<_ACEOF
6649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650 _ACEOF
6654 done
6658 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6659 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6660 MINIX=yes
6661 else
6662 MINIX=
6666 if test "$MINIX" = yes; then
6668 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6671 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6674 $as_echo "#define _MINIX 1" >>confdefs.h
6677 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6683 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6684 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6686 else
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6690 # define __EXTENSIONS__ 1
6691 $ac_includes_default
6693 main ()
6697 return 0;
6699 _ACEOF
6700 if ac_fn_c_try_compile "$LINENO"; then :
6701 ac_cv_safe_to_define___extensions__=yes
6702 else
6703 ac_cv_safe_to_define___extensions__=no
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6708 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6709 test $ac_cv_safe_to_define___extensions__ = yes &&
6710 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6712 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6714 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6716 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6718 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6720 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6723 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6724 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 ac_cv_should_define__xopen_source=no
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6731 #include <wchar.h>
6732 mbstate_t x;
6734 main ()
6738 return 0;
6740 _ACEOF
6741 if ac_fn_c_try_compile "$LINENO"; then :
6743 else
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6747 #define _XOPEN_SOURCE 500
6748 #include <wchar.h>
6749 mbstate_t x;
6751 main ()
6755 return 0;
6757 _ACEOF
6758 if ac_fn_c_try_compile "$LINENO"; then :
6759 ac_cv_should_define__xopen_source=yes
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6766 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6767 test $ac_cv_should_define__xopen_source = yes &&
6768 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6777 # Check whether --enable-largefile was given.
6778 if test "${enable_largefile+set}" = set; then :
6779 enableval=$enable_largefile;
6782 if test "$enable_largefile" != no; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6785 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6786 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 ac_cv_sys_largefile_CC=no
6790 if test "$GCC" != yes; then
6791 ac_save_CC=$CC
6792 while :; do
6793 # IRIX 6.2 and later do not support large files by default,
6794 # so use the C compiler's -n32 option if that helps.
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #include <sys/types.h>
6798 /* Check that off_t can represent 2**63 - 1 correctly.
6799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6800 since some C++ compilers masquerading as C compilers
6801 incorrectly reject 9223372036854775807. */
6802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6804 && LARGE_OFF_T % 2147483647 == 1)
6805 ? 1 : -1];
6807 main ()
6811 return 0;
6813 _ACEOF
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815 break
6817 rm -f core conftest.err conftest.$ac_objext
6818 CC="$CC -n32"
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 ac_cv_sys_largefile_CC=' -n32'; break
6822 rm -f core conftest.err conftest.$ac_objext
6823 break
6824 done
6825 CC=$ac_save_CC
6826 rm -f conftest.$ac_ext
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6830 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6831 if test "$ac_cv_sys_largefile_CC" != no; then
6832 CC=$CC$ac_cv_sys_largefile_CC
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6836 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6837 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 while :; do
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 #include <sys/types.h>
6844 /* Check that off_t can represent 2**63 - 1 correctly.
6845 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6846 since some C++ compilers masquerading as C compilers
6847 incorrectly reject 9223372036854775807. */
6848 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6850 && LARGE_OFF_T % 2147483647 == 1)
6851 ? 1 : -1];
6853 main ()
6857 return 0;
6859 _ACEOF
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 ac_cv_sys_file_offset_bits=no; break
6863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865 /* end confdefs.h. */
6866 #define _FILE_OFFSET_BITS 64
6867 #include <sys/types.h>
6868 /* Check that off_t can represent 2**63 - 1 correctly.
6869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6870 since some C++ compilers masquerading as C compilers
6871 incorrectly reject 9223372036854775807. */
6872 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6874 && LARGE_OFF_T % 2147483647 == 1)
6875 ? 1 : -1];
6877 main ()
6881 return 0;
6883 _ACEOF
6884 if ac_fn_c_try_compile "$LINENO"; then :
6885 ac_cv_sys_file_offset_bits=64; break
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 ac_cv_sys_file_offset_bits=unknown
6889 break
6890 done
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6893 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6894 case $ac_cv_sys_file_offset_bits in #(
6895 no | unknown) ;;
6897 cat >>confdefs.h <<_ACEOF
6898 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6899 _ACEOF
6901 esac
6902 rm -rf conftest*
6903 if test $ac_cv_sys_file_offset_bits = unknown; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6905 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6906 if test "${ac_cv_sys_large_files+set}" = set; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 while :; do
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6912 #include <sys/types.h>
6913 /* Check that off_t can represent 2**63 - 1 correctly.
6914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6915 since some C++ compilers masquerading as C compilers
6916 incorrectly reject 9223372036854775807. */
6917 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6919 && LARGE_OFF_T % 2147483647 == 1)
6920 ? 1 : -1];
6922 main ()
6926 return 0;
6928 _ACEOF
6929 if ac_fn_c_try_compile "$LINENO"; then :
6930 ac_cv_sys_large_files=no; break
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 #define _LARGE_FILES 1
6936 #include <sys/types.h>
6937 /* Check that off_t can represent 2**63 - 1 correctly.
6938 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6939 since some C++ compilers masquerading as C compilers
6940 incorrectly reject 9223372036854775807. */
6941 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6943 && LARGE_OFF_T % 2147483647 == 1)
6944 ? 1 : -1];
6946 main ()
6950 return 0;
6952 _ACEOF
6953 if ac_fn_c_try_compile "$LINENO"; then :
6954 ac_cv_sys_large_files=1; break
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 ac_cv_sys_large_files=unknown
6958 break
6959 done
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6962 $as_echo "$ac_cv_sys_large_files" >&6; }
6963 case $ac_cv_sys_large_files in #(
6964 no | unknown) ;;
6966 cat >>confdefs.h <<_ACEOF
6967 #define _LARGE_FILES $ac_cv_sys_large_files
6968 _ACEOF
6970 esac
6971 rm -rf conftest*
6975 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6979 case $ac_cv_prog_cc_stdc in #(
6980 no) :
6981 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6982 *) :
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6984 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6985 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 ac_cv_prog_cc_c99=no
6989 ac_save_CC=$CC
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 #include <stdarg.h>
6993 #include <stdbool.h>
6994 #include <stdlib.h>
6995 #include <wchar.h>
6996 #include <stdio.h>
6998 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6999 #define debug(...) fprintf (stderr, __VA_ARGS__)
7000 #define showlist(...) puts (#__VA_ARGS__)
7001 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7002 static void
7003 test_varargs_macros (void)
7005 int x = 1234;
7006 int y = 5678;
7007 debug ("Flag");
7008 debug ("X = %d\n", x);
7009 showlist (The first, second, and third items.);
7010 report (x>y, "x is %d but y is %d", x, y);
7013 // Check long long types.
7014 #define BIG64 18446744073709551615ull
7015 #define BIG32 4294967295ul
7016 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7017 #if !BIG_OK
7018 your preprocessor is broken;
7019 #endif
7020 #if BIG_OK
7021 #else
7022 your preprocessor is broken;
7023 #endif
7024 static long long int bignum = -9223372036854775807LL;
7025 static unsigned long long int ubignum = BIG64;
7027 struct incomplete_array
7029 int datasize;
7030 double data[];
7033 struct named_init {
7034 int number;
7035 const wchar_t *name;
7036 double average;
7039 typedef const char *ccp;
7041 static inline int
7042 test_restrict (ccp restrict text)
7044 // See if C++-style comments work.
7045 // Iterate through items via the restricted pointer.
7046 // Also check for declarations in for loops.
7047 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7048 continue;
7049 return 0;
7052 // Check varargs and va_copy.
7053 static void
7054 test_varargs (const char *format, ...)
7056 va_list args;
7057 va_start (args, format);
7058 va_list args_copy;
7059 va_copy (args_copy, args);
7061 const char *str;
7062 int number;
7063 float fnumber;
7065 while (*format)
7067 switch (*format++)
7069 case 's': // string
7070 str = va_arg (args_copy, const char *);
7071 break;
7072 case 'd': // int
7073 number = va_arg (args_copy, int);
7074 break;
7075 case 'f': // float
7076 fnumber = va_arg (args_copy, double);
7077 break;
7078 default:
7079 break;
7082 va_end (args_copy);
7083 va_end (args);
7087 main ()
7090 // Check bool.
7091 _Bool success = false;
7093 // Check restrict.
7094 if (test_restrict ("String literal") == 0)
7095 success = true;
7096 char *restrict newvar = "Another string";
7098 // Check varargs.
7099 test_varargs ("s, d' f .", "string", 65, 34.234);
7100 test_varargs_macros ();
7102 // Check flexible array members.
7103 struct incomplete_array *ia =
7104 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7105 ia->datasize = 10;
7106 for (int i = 0; i < ia->datasize; ++i)
7107 ia->data[i] = i * 1.234;
7109 // Check named initializers.
7110 struct named_init ni = {
7111 .number = 34,
7112 .name = L"Test wide string",
7113 .average = 543.34343,
7116 ni.number = 58;
7118 int dynamic_array[ni.number];
7119 dynamic_array[ni.number - 1] = 543;
7121 // work around unused variable warnings
7122 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7123 || dynamic_array[ni.number - 1] != 543);
7126 return 0;
7128 _ACEOF
7129 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7131 CC="$ac_save_CC $ac_arg"
7132 if ac_fn_c_try_compile "$LINENO"; then :
7133 ac_cv_prog_cc_c99=$ac_arg
7135 rm -f core conftest.err conftest.$ac_objext
7136 test "x$ac_cv_prog_cc_c99" != "xno" && break
7137 done
7138 rm -f conftest.$ac_ext
7139 CC=$ac_save_CC
7142 # AC_CACHE_VAL
7143 case "x$ac_cv_prog_cc_c99" in
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7146 $as_echo "none needed" >&6; } ;;
7147 xno)
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7149 $as_echo "unsupported" >&6; } ;;
7151 CC="$CC $ac_cv_prog_cc_c99"
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7153 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7154 esac
7155 if test "x$ac_cv_prog_cc_c99" != xno; then :
7156 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7159 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7160 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 ac_cv_prog_cc_c89=no
7164 ac_save_CC=$CC
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 #include <stdarg.h>
7168 #include <stdio.h>
7169 #include <sys/types.h>
7170 #include <sys/stat.h>
7171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7172 struct buf { int x; };
7173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7174 static char *e (p, i)
7175 char **p;
7176 int i;
7178 return p[i];
7180 static char *f (char * (*g) (char **, int), char **p, ...)
7182 char *s;
7183 va_list v;
7184 va_start (v,p);
7185 s = g (p, va_arg (v,int));
7186 va_end (v);
7187 return s;
7190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7191 function prototypes and stuff, but not '\xHH' hex character constants.
7192 These don't provoke an error unfortunately, instead are silently treated
7193 as 'x'. The following induces an error, until -std is added to get
7194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7195 array size at least. It's necessary to write '\x00'==0 to get something
7196 that's true only with -std. */
7197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7200 inside strings and character constants. */
7201 #define FOO(x) 'x'
7202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7204 int test (int i, double x);
7205 struct s1 {int (*f) (int a);};
7206 struct s2 {int (*f) (double a);};
7207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7208 int argc;
7209 char **argv;
7211 main ()
7213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7215 return 0;
7217 _ACEOF
7218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7221 CC="$ac_save_CC $ac_arg"
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 ac_cv_prog_cc_c89=$ac_arg
7225 rm -f core conftest.err conftest.$ac_objext
7226 test "x$ac_cv_prog_cc_c89" != "xno" && break
7227 done
7228 rm -f conftest.$ac_ext
7229 CC=$ac_save_CC
7232 # AC_CACHE_VAL
7233 case "x$ac_cv_prog_cc_c89" in
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7236 $as_echo "none needed" >&6; } ;;
7237 xno)
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7239 $as_echo "unsupported" >&6; } ;;
7241 CC="$CC $ac_cv_prog_cc_c89"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7243 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7244 esac
7245 if test "x$ac_cv_prog_cc_c89" != xno; then :
7246 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7247 else
7248 ac_cv_prog_cc_stdc=no
7253 esac
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7255 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7256 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7257 $as_echo_n "(cached) " >&6
7260 case $ac_cv_prog_cc_stdc in #(
7261 no) :
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7263 $as_echo "unsupported" >&6; } ;; #(
7264 '') :
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7266 $as_echo "none needed" >&6; } ;; #(
7267 *) :
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7269 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7270 esac
7274 # Code from module alloca-opt:
7275 # Code from module allocator:
7276 # Code from module at-internal:
7277 # Code from module binary-io:
7278 # Code from module c-ctype:
7279 # Code from module c-strcase:
7280 # Code from module careadlinkat:
7281 # Code from module clock-time:
7282 # Code from module close-stream:
7283 # Code from module crypto/md5:
7284 # Code from module crypto/sha1:
7285 # Code from module crypto/sha256:
7286 # Code from module crypto/sha512:
7287 # Code from module dirent:
7288 # Code from module dosname:
7289 # Code from module dtoastr:
7290 # Code from module dtotimespec:
7291 # Code from module dup2:
7292 # Code from module environ:
7293 # Code from module errno:
7294 # Code from module euidaccess:
7295 # Code from module execinfo:
7296 # Code from module extensions:
7298 # Code from module extern-inline:
7299 # Code from module faccessat:
7300 # Code from module fcntl:
7301 # Code from module fcntl-h:
7302 # Code from module fdatasync:
7303 # Code from module fdopendir:
7304 # Code from module filemode:
7305 # Code from module fpending:
7306 # Code from module fstatat:
7307 # Code from module fsync:
7308 # Code from module getdtablesize:
7309 # Code from module getgroups:
7310 # Code from module getloadavg:
7311 # Code from module getopt-gnu:
7312 # Code from module getopt-posix:
7313 # Code from module gettext-h:
7314 # Code from module gettime:
7315 # Code from module gettimeofday:
7316 # Code from module group-member:
7317 # Code from module include_next:
7318 # Code from module intprops:
7319 # Code from module inttypes-incomplete:
7320 # Code from module largefile:
7322 # Code from module lstat:
7323 # Code from module manywarnings:
7324 # Code from module memrchr:
7325 # Code from module mkostemp:
7326 # Code from module mktime:
7327 # Code from module multiarch:
7328 # Code from module nocrash:
7329 # Code from module openat-h:
7330 # Code from module pathmax:
7331 # Code from module pipe2:
7332 # Code from module pselect:
7333 # Code from module pthread_sigmask:
7334 # Code from module putenv:
7335 # Code from module qacl:
7336 # Code from module readlink:
7337 # Code from module readlinkat:
7338 # Code from module root-uid:
7339 # Code from module secure_getenv:
7340 # Code from module sig2str:
7341 # Code from module signal-h:
7342 # Code from module snippet/_Noreturn:
7343 # Code from module snippet/arg-nonnull:
7344 # Code from module snippet/c++defs:
7345 # Code from module snippet/warn-on-use:
7346 # Code from module socklen:
7347 # Code from module ssize_t:
7348 # Code from module stat:
7349 # Code from module stat-time:
7350 # Code from module stdalign:
7351 # Code from module stdarg:
7355 # Code from module stdbool:
7356 # Code from module stddef:
7357 # Code from module stdint:
7358 # Code from module stdio:
7359 # Code from module stdlib:
7360 # Code from module strftime:
7361 # Code from module string:
7362 # Code from module strtoimax:
7363 # Code from module strtoll:
7364 # Code from module strtoull:
7365 # Code from module strtoumax:
7366 # Code from module symlink:
7367 # Code from module sys_select:
7368 # Code from module sys_stat:
7369 # Code from module sys_time:
7370 # Code from module tempname:
7371 # Code from module time:
7372 # Code from module time_r:
7373 # Code from module timer-time:
7374 # Code from module timespec:
7375 # Code from module timespec-add:
7376 # Code from module timespec-sub:
7377 # Code from module u64:
7378 # Code from module unistd:
7379 # Code from module unsetenv:
7380 # Code from module utimens:
7381 # Code from module verify:
7382 # Code from module warnings:
7383 # Code from module xalloc-oversized:
7386 if test "$ac_test_CFLAGS" != set; then
7387 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7388 # if -g3 works and the user does not specify CFLAGS.
7389 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7390 case $CFLAGS in
7391 '-g')
7392 emacs_g3_CFLAGS='-g3';;
7393 '-g -O2')
7394 emacs_g3_CFLAGS='-g3 -O2';;
7396 emacs_g3_CFLAGS='';;
7397 esac
7398 if test -n "$emacs_g3_CFLAGS"; then
7399 emacs_save_CFLAGS=$CFLAGS
7400 CFLAGS=$emacs_g3_CFLAGS
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7402 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7403 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7410 main ()
7414 return 0;
7416 _ACEOF
7417 if ac_fn_c_try_link "$LINENO"; then :
7418 emacs_cv_prog_cc_g3=yes
7419 else
7420 emacs_cv_prog_cc_g3=no
7422 rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7426 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7427 if test $emacs_cv_prog_cc_g3 != yes; then
7428 CFLAGS=$emacs_save_CFLAGS
7430 if test $opsys = mingw32; then
7431 CFLAGS="$CFLAGS -gdwarf-2"
7435 case $CFLAGS in
7436 *-O*) ;;
7438 # No optimization flag was inferred for this non-GCC compiler.
7439 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7440 emacs_save_CFLAGS=$CFLAGS
7441 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7442 CFLAGS=${CFLAGS}-O
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7444 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7445 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7452 main ()
7456 return 0;
7458 _ACEOF
7459 if ac_fn_c_try_link "$LINENO"; then :
7460 emacs_cv_prog_cc_o=yes
7461 else
7462 emacs_cv_prog_cc_o=no
7464 rm -f core conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7468 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7469 if test $emacs_cv_prog_cc_o != yes; then
7470 CFLAGS=$emacs_save_CFLAGS
7471 fi ;;
7472 esac
7475 # Check whether --enable-gcc-warnings was given.
7476 if test "${enable_gcc_warnings+set}" = set; then :
7477 enableval=$enable_gcc_warnings; case $enableval in
7478 yes|no) ;;
7479 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7480 esac
7481 gl_gcc_warnings=$enableval
7482 else
7483 gl_gcc_warnings=no
7488 # Check whether --enable-link-time-optimization was given.
7489 if test "${enable_link_time_optimization+set}" = set; then :
7490 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7492 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7493 ac_lto_supported=no
7494 if test x$GCC = xyes; then
7495 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7496 if test x$CPUS != x; then
7497 LTO="-flto=$CPUS"
7498 else
7499 LTO="-flto"
7501 old_CFLAGS=$CFLAGS
7502 CFLAGS="$CFLAGS $LTO"
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7507 main ()
7511 return 0;
7513 _ACEOF
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515 ac_lto_supported=yes
7516 else
7517 ac_lto_supported=no
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 CFLAGS="$old_CFLAGS"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7523 $as_echo "$ac_lto_supported" >&6; }
7524 if test "$ac_lto_supported" = "yes"; then
7525 CFLAGS="$CFLAGS $LTO"
7531 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7532 # ------------------------------------------------
7533 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7534 # Otherwise, run RUN-IF-NOT-FOUND.
7537 # When compiling with GCC, prefer -isystem to -I when including system
7538 # include files, to avoid generating useless diagnostics for the files.
7539 if test "$gl_gcc_warnings" != yes; then
7540 isystem='-I'
7541 else
7542 isystem='-isystem '
7544 # This, $nw, is the list of warnings we disable.
7547 case $with_x_toolkit in
7548 lucid | athena | motif)
7549 # Old toolkits mishandle 'const'.
7550 nw="$nw -Wwrite-strings"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7554 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7555 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7559 gl_save_compiler_FLAGS="$CFLAGS"
7560 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7565 main ()
7569 return 0;
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7574 else
7575 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 CFLAGS="$gl_save_compiler_FLAGS"
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7582 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7583 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7584 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7585 else
7586 gl_unknown_warnings_are_errors=
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7591 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7592 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7596 gl_save_compiler_FLAGS="$CFLAGS"
7597 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7602 main ()
7606 return 0;
7608 _ACEOF
7609 if ac_fn_c_try_compile "$LINENO"; then :
7610 gl_cv_warn_c__Werror=yes
7611 else
7612 gl_cv_warn_c__Werror=no
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 CFLAGS="$gl_save_compiler_FLAGS"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7619 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7620 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7621 as_fn_append WERROR_CFLAGS " -Werror"
7626 esac
7629 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7630 nw="$nw -Woverlength-strings" # Not a problem these days
7631 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7632 nw="$nw -Wformat-nonliteral" # we do this a lot
7633 nw="$nw -Wvla" # warnings in gettext.h
7634 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7635 nw="$nw -Wswitch-default" # Too many warnings for now
7636 nw="$nw -Winline" # OK to ignore 'inline'
7637 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7638 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7639 # signed overflow has undefined behavior
7640 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7641 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7642 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7644 # Emacs doesn't care about shadowing; see
7645 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7646 nw="$nw -Wshadow"
7648 # Emacs's use of alloca inhibits protecting the stack.
7649 nw="$nw -Wstack-protector"
7651 # The following line should be removable at some point.
7652 nw="$nw -Wsuggest-attribute=pure"
7654 # This part is merely for shortening the command line,
7655 # since -Wno-FOO needs to be added below regardless.
7656 nw="$nw -Wmissing-field-initializers"
7657 nw="$nw -Wswitch"
7658 nw="$nw -Wtype-limits"
7659 nw="$nw -Wunused-parameter"
7661 # clang is unduly picky about some things.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7663 $as_echo_n "checking whether the compiler is clang... " >&6; }
7664 if test "${emacs_cv_clang+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7670 #ifndef __clang__
7671 #error "not clang"
7672 #endif
7675 main ()
7679 return 0;
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"; then :
7683 emacs_cv_clang=yes
7684 else
7685 emacs_cv_clang=no
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7690 $as_echo "$emacs_cv_clang" >&6; }
7691 if test $emacs_cv_clang = yes; then
7692 nw="$nw -Wcast-align"
7697 if test -n "$GCC"; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7700 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7701 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7705 gl_save_CFLAGS="$CFLAGS"
7706 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7711 main ()
7715 return 0;
7717 _ACEOF
7718 if ac_fn_c_try_compile "$LINENO"; then :
7719 gl_cv_cc_nomfi_supported=yes
7720 else
7721 gl_cv_cc_nomfi_supported=no
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 CFLAGS="$gl_save_CFLAGS"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7728 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7730 if test "$gl_cv_cc_nomfi_supported" = yes; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7732 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7733 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7737 gl_save_CFLAGS="$CFLAGS"
7738 CFLAGS="$CFLAGS -W -Werror"
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741 void f (void)
7743 typedef struct { int a; int b; } s_t;
7744 s_t s1 = { 0, };
7748 main ()
7752 return 0;
7754 _ACEOF
7755 if ac_fn_c_try_compile "$LINENO"; then :
7756 gl_cv_cc_nomfi_needed=no
7757 else
7758 gl_cv_cc_nomfi_needed=yes
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 CFLAGS="$gl_save_CFLAGS"
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7766 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7770 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7771 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7775 gl_save_CFLAGS="$CFLAGS"
7776 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7781 main ()
7785 return 0;
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 gl_cv_cc_uninitialized_supported=yes
7790 else
7791 gl_cv_cc_uninitialized_supported=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 CFLAGS="$gl_save_CFLAGS"
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7798 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7802 # List all gcc warning categories.
7803 gl_manywarn_set=
7804 for gl_manywarn_item in \
7805 -W \
7806 -Wabi \
7807 -Waddress \
7808 -Waggressive-loop-optimizations \
7809 -Wall \
7810 -Warray-bounds \
7811 -Wattributes \
7812 -Wbad-function-cast \
7813 -Wbuiltin-macro-redefined \
7814 -Wcast-align \
7815 -Wchar-subscripts \
7816 -Wclobbered \
7817 -Wcomment \
7818 -Wcomments \
7819 -Wcoverage-mismatch \
7820 -Wcpp \
7821 -Wdeprecated \
7822 -Wdeprecated-declarations \
7823 -Wdisabled-optimization \
7824 -Wdiv-by-zero \
7825 -Wdouble-promotion \
7826 -Wempty-body \
7827 -Wendif-labels \
7828 -Wenum-compare \
7829 -Wextra \
7830 -Wformat-contains-nul \
7831 -Wformat-extra-args \
7832 -Wformat-nonliteral \
7833 -Wformat-security \
7834 -Wformat-y2k \
7835 -Wformat-zero-length \
7836 -Wfree-nonheap-object \
7837 -Wignored-qualifiers \
7838 -Wimplicit \
7839 -Wimplicit-function-declaration \
7840 -Wimplicit-int \
7841 -Winit-self \
7842 -Winline \
7843 -Wint-to-pointer-cast \
7844 -Winvalid-memory-model \
7845 -Winvalid-pch \
7846 -Wjump-misses-init \
7847 -Wlogical-op \
7848 -Wmain \
7849 -Wmaybe-uninitialized \
7850 -Wmissing-braces \
7851 -Wmissing-declarations \
7852 -Wmissing-field-initializers \
7853 -Wmissing-include-dirs \
7854 -Wmissing-parameter-type \
7855 -Wmissing-prototypes \
7856 -Wmudflap \
7857 -Wmultichar \
7858 -Wnarrowing \
7859 -Wnested-externs \
7860 -Wnonnull \
7861 -Wnormalized=nfc \
7862 -Wold-style-declaration \
7863 -Wold-style-definition \
7864 -Woverflow \
7865 -Woverlength-strings \
7866 -Woverride-init \
7867 -Wpacked \
7868 -Wpacked-bitfield-compat \
7869 -Wparentheses \
7870 -Wpointer-arith \
7871 -Wpointer-sign \
7872 -Wpointer-to-int-cast \
7873 -Wpragmas \
7874 -Wreturn-local-addr \
7875 -Wreturn-type \
7876 -Wsequence-point \
7877 -Wshadow \
7878 -Wsizeof-pointer-memaccess \
7879 -Wstack-protector \
7880 -Wstrict-aliasing \
7881 -Wstrict-overflow \
7882 -Wstrict-prototypes \
7883 -Wsuggest-attribute=const \
7884 -Wsuggest-attribute=format \
7885 -Wsuggest-attribute=noreturn \
7886 -Wsuggest-attribute=pure \
7887 -Wswitch \
7888 -Wswitch-default \
7889 -Wsync-nand \
7890 -Wsystem-headers \
7891 -Wtrampolines \
7892 -Wtrigraphs \
7893 -Wtype-limits \
7894 -Wuninitialized \
7895 -Wunknown-pragmas \
7896 -Wunsafe-loop-optimizations \
7897 -Wunused \
7898 -Wunused-but-set-parameter \
7899 -Wunused-but-set-variable \
7900 -Wunused-function \
7901 -Wunused-label \
7902 -Wunused-local-typedefs \
7903 -Wunused-macros \
7904 -Wunused-parameter \
7905 -Wunused-result \
7906 -Wunused-value \
7907 -Wunused-variable \
7908 -Wvarargs \
7909 -Wvariadic-macros \
7910 -Wvector-operation-performance \
7911 -Wvla \
7912 -Wvolatile-register-var \
7913 -Wwrite-strings \
7915 ; do
7916 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7917 done
7919 # Disable specific options as needed.
7920 if test "$gl_cv_cc_nomfi_needed" = yes; then
7921 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7924 if test "$gl_cv_cc_uninitialized_supported" = no; then
7925 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7928 ws=$gl_manywarn_set
7931 gl_warn_set=
7932 set x $ws; shift
7933 for gl_warn_item
7935 case " $nw " in
7936 *" $gl_warn_item "*)
7939 gl_warn_set="$gl_warn_set $gl_warn_item"
7941 esac
7942 done
7943 ws=$gl_warn_set
7945 for w in $ws; do
7947 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7948 gl_positive="$w"
7949 case $gl_positive in
7950 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
7951 esac
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7953 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7954 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7958 gl_save_compiler_FLAGS="$CFLAGS"
7959 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7964 main ()
7968 return 0;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 eval "$as_gl_Warn=yes"
7973 else
7974 eval "$as_gl_Warn=no"
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 CFLAGS="$gl_save_compiler_FLAGS"
7980 eval ac_res=\$$as_gl_Warn
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7982 $as_echo "$ac_res" >&6; }
7983 eval as_val=\$$as_gl_Warn
7984 if test "x$as_val" = x""yes; then :
7985 as_fn_append WARN_CFLAGS " $w"
7989 done
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7992 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7993 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7997 gl_save_compiler_FLAGS="$CFLAGS"
7998 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8003 main ()
8007 return 0;
8009 _ACEOF
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011 gl_cv_warn_c__Wno_missing_field_initializers=yes
8012 else
8013 gl_cv_warn_c__Wno_missing_field_initializers=no
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 CFLAGS="$gl_save_compiler_FLAGS"
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8020 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8021 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
8022 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8025 # We need this one
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8028 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8029 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8033 gl_save_compiler_FLAGS="$CFLAGS"
8034 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8039 main ()
8043 return 0;
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047 gl_cv_warn_c__Wno_sign_compare=yes
8048 else
8049 gl_cv_warn_c__Wno_sign_compare=no
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 CFLAGS="$gl_save_compiler_FLAGS"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8056 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8057 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
8058 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
8061 # Too many warnings for now
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8064 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8065 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8069 gl_save_compiler_FLAGS="$CFLAGS"
8070 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8075 main ()
8079 return 0;
8081 _ACEOF
8082 if ac_fn_c_try_compile "$LINENO"; then :
8083 gl_cv_warn_c__Wno_type_limits=yes
8084 else
8085 gl_cv_warn_c__Wno_type_limits=no
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 CFLAGS="$gl_save_compiler_FLAGS"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8092 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8093 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8094 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8097 # Too many warnings for now
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8100 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8101 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8105 gl_save_compiler_FLAGS="$CFLAGS"
8106 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8111 main ()
8115 return 0;
8117 _ACEOF
8118 if ac_fn_c_try_compile "$LINENO"; then :
8119 gl_cv_warn_c__Wno_switch=yes
8120 else
8121 gl_cv_warn_c__Wno_switch=no
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 CFLAGS="$gl_save_compiler_FLAGS"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8128 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8129 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8130 as_fn_append WARN_CFLAGS " -Wno-switch"
8133 # Too many warnings for now
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8136 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8137 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8141 gl_save_compiler_FLAGS="$CFLAGS"
8142 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8147 main ()
8151 return 0;
8153 _ACEOF
8154 if ac_fn_c_try_compile "$LINENO"; then :
8155 gl_cv_warn_c__Wno_unused_parameter=yes
8156 else
8157 gl_cv_warn_c__Wno_unused_parameter=no
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 CFLAGS="$gl_save_compiler_FLAGS"
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8164 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8165 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8166 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8169 # Too many warnings for now
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8172 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8173 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8177 gl_save_compiler_FLAGS="$CFLAGS"
8178 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8183 main ()
8187 return 0;
8189 _ACEOF
8190 if ac_fn_c_try_compile "$LINENO"; then :
8191 gl_cv_warn_c__Wno_format_nonliteral=yes
8192 else
8193 gl_cv_warn_c__Wno_format_nonliteral=no
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 CFLAGS="$gl_save_compiler_FLAGS"
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8200 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8201 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8202 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8207 # In spite of excluding -Wlogical-op above, it is enabled, as of
8208 # gcc 4.5.0 20090517.
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8211 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8212 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8216 gl_save_compiler_FLAGS="$CFLAGS"
8217 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op"
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8222 main ()
8226 return 0;
8228 _ACEOF
8229 if ac_fn_c_try_compile "$LINENO"; then :
8230 gl_cv_warn_c__Wno_logical_op=yes
8231 else
8232 gl_cv_warn_c__Wno_logical_op=no
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235 CFLAGS="$gl_save_compiler_FLAGS"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8239 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8240 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8241 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8246 # More things that clang is unduly picky about.
8247 if test $emacs_cv_clang = yes; then
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8250 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8251 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8255 gl_save_compiler_FLAGS="$CFLAGS"
8256 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args"
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8261 main ()
8265 return 0;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"; then :
8269 gl_cv_warn_c__Wno_format_extra_args=yes
8270 else
8271 gl_cv_warn_c__Wno_format_extra_args=no
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 CFLAGS="$gl_save_compiler_FLAGS"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8278 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8279 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8280 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8286 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8287 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8291 gl_save_compiler_FLAGS="$CFLAGS"
8292 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8297 main ()
8301 return 0;
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8306 else
8307 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 CFLAGS="$gl_save_compiler_FLAGS"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8314 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8315 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8316 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8322 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8323 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8327 gl_save_compiler_FLAGS="$CFLAGS"
8328 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8330 /* end confdefs.h. */
8333 main ()
8337 return 0;
8339 _ACEOF
8340 if ac_fn_c_try_compile "$LINENO"; then :
8341 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8342 else
8343 gl_cv_warn_c__Wno_unused_command_line_argument=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 CFLAGS="$gl_save_compiler_FLAGS"
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8350 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8351 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8352 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8358 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8359 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8363 gl_save_compiler_FLAGS="$CFLAGS"
8364 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8369 main ()
8373 return 0;
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 gl_cv_warn_c__Wno_unused_value=yes
8378 else
8379 gl_cv_warn_c__Wno_unused_value=no
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 CFLAGS="$gl_save_compiler_FLAGS"
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8386 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8387 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8388 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8396 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8397 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8401 gl_save_compiler_FLAGS="$CFLAGS"
8402 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8407 main ()
8411 return 0;
8413 _ACEOF
8414 if ac_fn_c_try_compile "$LINENO"; then :
8415 gl_cv_warn_c__fdiagnostics_show_option=yes
8416 else
8417 gl_cv_warn_c__fdiagnostics_show_option=no
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 CFLAGS="$gl_save_compiler_FLAGS"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8424 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8425 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8426 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8432 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8433 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8437 gl_save_compiler_FLAGS="$CFLAGS"
8438 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time"
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8443 main ()
8447 return 0;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 gl_cv_warn_c__funit_at_a_time=yes
8452 else
8453 gl_cv_warn_c__funit_at_a_time=no
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 CFLAGS="$gl_save_compiler_FLAGS"
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8460 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8461 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8462 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8468 $as_echo "#define lint 1" >>confdefs.h
8472 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8475 # We use a slightly smaller set of warning options for lib/.
8476 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8478 nw="$nw -Wunused-macros"
8481 gl_warn_set=
8482 set x $WARN_CFLAGS; shift
8483 for gl_warn_item
8485 case " $nw " in
8486 *" $gl_warn_item "*)
8489 gl_warn_set="$gl_warn_set $gl_warn_item"
8491 esac
8492 done
8493 GNULIB_WARN_CFLAGS=$gl_warn_set
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8504 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8505 rm -f conf$$ conf$$.file
8507 LN_S_FILEONLY='cp -p'
8509 if (echo >conf$$.file) 2>/dev/null; then
8510 if ln -s conf$$.file conf$$ 2>/dev/null; then
8511 LN_S_FILEONLY='ln -s'
8512 elif ln conf$$.file conf$$ 2>/dev/null; then
8513 LN_S_FILEONLY=ln
8517 rm -f conf$$ conf$$.file
8519 if test "$LN_S_FILEONLY" = "ln -s"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8521 $as_echo "yes" >&6; }
8522 else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8524 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8530 if test "$opsys" = "mingw32"; then
8531 LN_S="ln"
8534 # Extract the first word of "install-info", so it can be a program name with args.
8535 set dummy install-info; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 case $INSTALL_INFO in
8542 [\\/]* | ?:[\\/]*)
8543 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8553 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555 break 2
8557 done
8558 done
8559 IFS=$as_save_IFS
8561 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8563 esac
8565 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8566 if test -n "$INSTALL_INFO"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8568 $as_echo "$INSTALL_INFO" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8575 # Extract the first word of "gzip", so it can be a program name with args.
8576 set dummy gzip; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 case $GZIP_PROG in
8583 [\\/]* | ?:[\\/]*)
8584 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8598 done
8599 done
8600 IFS=$as_save_IFS
8603 esac
8605 GZIP_PROG=$ac_cv_path_GZIP_PROG
8606 if test -n "$GZIP_PROG"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8608 $as_echo "$GZIP_PROG" >&6; }
8609 else
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8616 test $with_compress_install != yes && test -n "$GZIP_PROG" && \
8617 GZIP_PROG=" # $GZIP_PROG # (disabled by configure --without-compress-install)"
8619 if test $opsys = gnu-linux; then
8620 # Extract the first word of "paxctl", so it can be a program name with args.
8621 set dummy paxctl; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8625 $as_echo_n "(cached) " >&6
8626 else
8627 case $PAXCTL in
8628 [\\/]* | ?:[\\/]*)
8629 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8635 IFS=$as_save_IFS
8636 test -z "$as_dir" && as_dir=.
8637 for ac_exec_ext in '' $ac_executable_extensions; do
8638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8639 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 break 2
8643 done
8644 done
8645 IFS=$as_save_IFS
8648 esac
8650 PAXCTL=$ac_cv_path_PAXCTL
8651 if test -n "$PAXCTL"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8653 $as_echo "$PAXCTL" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8660 if test "X$PAXCTL" != X; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8662 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8667 main ()
8671 return 0;
8673 _ACEOF
8674 if ac_fn_c_try_link "$LINENO"; then :
8675 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8676 $as_echo "yes" >&6; }
8677 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }; PAXCTL=""; fi
8680 rm -f core conftest.err conftest.$ac_objext \
8681 conftest$ac_exeext conftest.$ac_ext
8685 ## Need makeinfo >= 4.7 (?) to build the manuals.
8686 # Extract the first word of "makeinfo", so it can be a program name with args.
8687 set dummy makeinfo; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 case $MAKEINFO in
8694 [\\/]* | ?:[\\/]*)
8695 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 break 2
8709 done
8710 done
8711 IFS=$as_save_IFS
8713 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8715 esac
8717 MAKEINFO=$ac_cv_path_MAKEINFO
8718 if test -n "$MAKEINFO"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8720 $as_echo "$MAKEINFO" >&6; }
8721 else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8727 if test "$MAKEINFO" != "no"; then
8728 case `
8729 $MAKEINFO --version 2> /dev/null |
8730 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8731 ` in
8732 '') MAKEINFO=no;;
8733 esac
8736 ## Makeinfo is unusual. For a released Emacs, the manuals are
8737 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8738 ## therefore in the category of "special tools" not normally required, which
8739 ## configure does not have to check for (eg autoconf itself).
8740 ## In a Bazaar checkout on the other hand, the manuals are not included.
8741 ## So makeinfo is a requirement to build from Bazaar, and configure
8742 ## should test for it as it does for any other build requirement.
8743 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8744 ## with pre-built manuals, from a Bazaar checkout.
8745 HAVE_MAKEINFO=yes
8747 if test "$MAKEINFO" = "no"; then
8748 MAKEINFO=makeinfo
8749 if test "x${with_makeinfo}" = "xno"; then
8750 HAVE_MAKEINFO=no
8751 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8752 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8753 source tree does not seem to have pre-built manuals in the \`info' directory.
8754 Either install a suitable version of makeinfo, or re-run configure
8755 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8760 INFO_EXT=.info
8761 INFO_OPTS=--no-split
8765 if test $opsys = mingw32; then
8766 DOCMISC_W32=efaq-w32
8767 else
8768 DOCMISC_W32=
8773 if test x$GCC = xyes; then
8774 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8775 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8776 else
8777 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8778 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8782 late_LDFLAGS=$LDFLAGS
8783 if test x$GCC = xyes; then
8784 LDFLAGS_NOCOMBRELOC="-Wl,-znocombreloc"
8785 else
8786 LDFLAGS_NOCOMBRELOC="-znocombreloc"
8789 LDFLAGS="$LDFLAGS $LDFLAGS_NOCOMBRELOC"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8792 $as_echo_n "checking for -znocombreloc... " >&6; }
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8797 main ()
8801 return 0;
8803 _ACEOF
8804 if ac_fn_c_try_link "$LINENO"; then :
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8806 $as_echo "yes" >&6; }
8807 else
8808 LDFLAGS_NOCOMBRELOC=
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8812 rm -f core conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8815 LDFLAGS=$late_LDFLAGS
8817 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8818 case "$opsys" in
8819 your-opsys-here) CANNOT_DUMP=yes ;;
8820 esac
8822 test "$CANNOT_DUMP" = "yes" && \
8824 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8830 UNEXEC_OBJ=unexelf.o
8831 case "$opsys" in
8832 # MSDOS uses unexcoff.o
8833 aix4-2)
8834 UNEXEC_OBJ=unexaix.o
8836 cygwin)
8837 UNEXEC_OBJ=unexcw.o
8839 darwin)
8840 UNEXEC_OBJ=unexmacosx.o
8842 hpux10-20 | hpux11)
8843 UNEXEC_OBJ=unexhp9k800.o
8845 mingw32)
8846 UNEXEC_OBJ=unexw32.o
8848 sol2-10)
8849 # Use the Solaris dldump() function, called from unexsol.c, to dump
8850 # emacs, instead of the generic ELF dump code found in unexelf.c.
8851 # The resulting binary has a complete symbol table, and is better
8852 # for debugging and other observability tools (debuggers, pstack, etc).
8854 # If you encounter a problem using dldump(), please consider sending
8855 # a message to the OpenSolaris tools-linking mailing list:
8856 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8858 # It is likely that dldump() works with older Solaris too, but this has
8859 # not been tested, so for now this change is for Solaris 10 or newer.
8860 UNEXEC_OBJ=unexsol.o
8862 esac
8864 LD_SWITCH_SYSTEM=
8865 case "$opsys" in
8866 freebsd|dragonfly)
8867 ## Let `ld' find image libs and similar things in /usr/local/lib.
8868 ## The system compiler, GCC, has apparently been modified to not
8869 ## look there, contrary to what a stock GCC would do.
8870 ### It's not our place to do this. See bug#10313#17.
8871 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8875 gnu-linux)
8876 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8877 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8880 netbsd)
8881 ### It's not our place to do this. See bug#10313#17.
8882 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8886 openbsd)
8887 ## Han Boetes <han@boetes.org> says this is necessary,
8888 ## otherwise Emacs dumps core on elf systems.
8889 LD_SWITCH_SYSTEM="-Z"
8891 esac
8894 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8896 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8897 ## which has not been defined yet. When this was handled with cpp,
8898 ## it was expanded to null when configure sourced the s/*.h file.
8899 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8900 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8901 ## (or somesuch), but because it is supposed to go at the _front_
8902 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8903 ## Compare with the gnu-linux case below, which added to the end
8904 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8905 ## LD_SWITCH_SYSTEM_TEMACS.
8906 case "$opsys" in
8907 netbsd|openbsd)
8908 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8909 esac
8912 C_SWITCH_MACHINE=
8913 case $canonical in
8914 alpha*)
8915 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8916 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8920 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8921 ## With ELF, make sure that all common symbols get allocated to in the
8922 ## data section. Otherwise, the dump of temacs may miss variables in
8923 ## the shared library that have been initialized. For example, with
8924 ## GNU libc, __malloc_initialized would normally be resolved to the
8925 ## shared library's .bss section, which is fatal.
8926 if test "x$GCC" = "xyes"; then
8927 C_SWITCH_MACHINE="-fno-common"
8928 else
8929 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8931 else
8932 UNEXEC_OBJ=unexalpha.o
8935 esac
8940 C_SWITCH_SYSTEM=
8941 ## Some programs in src produce warnings saying certain subprograms
8942 ## are too complex and need a MAXMEM value greater than 2000 for
8943 ## additional optimization. --nils@exp-math.uni-essen.de
8944 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8945 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8946 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
8947 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8948 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8952 LIBS_SYSTEM=
8953 case "$opsys" in
8954 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8955 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8957 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
8959 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8961 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8963 ## Motif needs -lgen.
8964 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8965 esac
8969 ### Make sure subsequent tests use flags consistent with the build flags.
8971 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8972 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8973 else
8974 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8977 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8979 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8983 LIB_MATH=-lm
8984 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8986 case $opsys in
8987 cygwin )
8988 LIB_MATH=
8990 darwin )
8991 ## Adding -lm confuses the dynamic linker, so omit it.
8992 LIB_MATH=
8994 freebsd | dragonfly )
8995 SYSTEM_TYPE=berkeley-unix
8997 gnu-linux | gnu-kfreebsd )
8999 hpux10-20 | hpux11 )
9001 mingw32 )
9002 LIB_MATH=
9003 SYSTEM_TYPE=windows-nt
9005 netbsd | openbsd )
9006 SYSTEM_TYPE=berkeley-unix
9009 sol2* | unixware )
9010 SYSTEM_TYPE=usg-unix-v
9013 esac
9017 cat >>confdefs.h <<_ACEOF
9018 #define SYSTEM_TYPE "$SYSTEM_TYPE"
9019 _ACEOF
9023 pre_PKG_CONFIG_CFLAGS=$CFLAGS
9024 pre_PKG_CONFIG_LIBS=$LIBS
9026 # Extract the first word of "pkg-config", so it can be a program name with args.
9027 set dummy pkg-config; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 case $PKG_CONFIG in
9034 [\\/]* | ?:[\\/]*)
9035 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 for as_dir in $PATH
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9045 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 break 2
9049 done
9050 done
9051 IFS=$as_save_IFS
9053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9055 esac
9057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9058 if test -n "$PKG_CONFIG"; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9060 $as_echo "$PKG_CONFIG" >&6; }
9061 else
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063 $as_echo "no" >&6; }
9070 HAVE_SOUND=no
9071 if test "${with_sound}" != "no"; then
9072 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9073 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
9074 do :
9075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9076 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9077 #ifdef __MINGW32__
9078 #define WIN32_LEAN_AND_MEAN
9079 #include <windows.h>
9080 #endif
9083 eval as_val=\$$as_ac_Header
9084 if test "x$as_val" = x""yes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9087 _ACEOF
9088 have_sound_header=yes
9091 done
9093 test "${with_sound}" = "oss" && test "${have_sound_header}" != "yes" && \
9094 as_fn_error "OSS sound support requested but not found." "$LINENO" 5
9096 if test "${with_sound}" = "bsd-ossaudio" || test "${with_sound}" = "yes"; then
9097 # Emulation library used on NetBSD.
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9099 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9100 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 ac_check_lib_save_LIBS=$LIBS
9104 LIBS="-lossaudio $LIBS"
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9108 /* Override any GCC internal prototype to avoid an error.
9109 Use char because int might match the return type of a GCC
9110 builtin and then its argument prototype would still apply. */
9111 #ifdef __cplusplus
9112 extern "C"
9113 #endif
9114 char _oss_ioctl ();
9116 main ()
9118 return _oss_ioctl ();
9120 return 0;
9122 _ACEOF
9123 if ac_fn_c_try_link "$LINENO"; then :
9124 ac_cv_lib_ossaudio__oss_ioctl=yes
9125 else
9126 ac_cv_lib_ossaudio__oss_ioctl=no
9128 rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9133 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9134 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9135 LIBSOUND=-lossaudio
9136 else
9137 LIBSOUND=
9140 test "${with_sound}" = "bsd-ossaudio" && test -z "$LIBSOUND" && \
9141 as_fn_error "bsd-ossaudio sound support requested but not found." "$LINENO" 5
9145 if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then
9146 ALSA_REQUIRED=1.0.0
9147 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9149 succeeded=no
9151 if test "$PKG_CONFIG" = "no" ; then
9152 HAVE_ALSA=no
9153 else
9154 PKG_CONFIG_MIN_VERSION=0.9.0
9155 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9157 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9159 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9160 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9161 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9162 edit_cflags="
9163 s,///*,/,g
9164 s/^/ /
9165 s/ -I/ $isystem/g
9166 s/^ //
9168 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9169 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9171 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9172 succeeded=yes
9173 else
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9176 ALSA_CFLAGS=""
9177 ALSA_LIBS=""
9178 ## If we have a custom action on failure, don't print errors, but
9179 ## do set a variable so people can do so. Do it in a subshell
9180 ## to capture any diagnostics in invoking pkg-config.
9181 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9187 else
9188 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9189 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9193 if test $succeeded = yes; then
9194 HAVE_ALSA=yes
9195 else
9196 HAVE_ALSA=no
9199 if test $HAVE_ALSA = yes; then
9200 SAVE_CFLAGS="$CFLAGS"
9201 SAVE_LIBS="$LIBS"
9202 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9203 LIBS="$ALSA_LIBS $LIBS"
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 #include <asoundlib.h>
9208 main ()
9210 snd_lib_error_set_handler (0);
9212 return 0;
9214 _ACEOF
9215 if ac_fn_c_try_compile "$LINENO"; then :
9216 emacs_alsa_normal=yes
9217 else
9218 emacs_alsa_normal=no
9220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221 if test "$emacs_alsa_normal" != yes; then
9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9224 #include <alsa/asoundlib.h>
9226 main ()
9228 snd_lib_error_set_handler (0);
9230 return 0;
9232 _ACEOF
9233 if ac_fn_c_try_compile "$LINENO"; then :
9234 emacs_alsa_subdir=yes
9235 else
9236 emacs_alsa_subdir=no
9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9239 if test "$emacs_alsa_subdir" != yes; then
9240 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9242 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9245 CFLAGS="$SAVE_CFLAGS"
9246 LIBS="$SAVE_LIBS"
9247 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9248 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9250 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9252 elif test "${with_sound}" = "alsa"; then
9253 as_fn_error "ALSA sound support requested but not found." "$LINENO" 5
9256 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9257 case "$opsys" in
9258 gnu-linux|freebsd|netbsd|mingw32)
9260 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9262 HAVE_SOUND=yes
9264 esac
9273 for ac_header in $ac_header_list
9274 do :
9275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9276 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9278 eval as_val=\$$as_ac_Header
9279 if test "x$as_val" = x""yes; then :
9280 cat >>confdefs.h <<_ACEOF
9281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9282 _ACEOF
9286 done
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9307 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9310 #include <sys/personality.h>
9312 main ()
9314 personality (PER_LINUX32)
9316 return 0;
9318 _ACEOF
9319 if ac_fn_c_try_compile "$LINENO"; then :
9320 emacs_cv_personality_linux32=yes
9321 else
9322 emacs_cv_personality_linux32=no
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9326 $as_echo "$emacs_cv_personality_linux32" >&6; }
9328 if test $emacs_cv_personality_linux32 = yes; then
9330 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9334 for ac_header in term.h
9335 do :
9336 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9337 if test "x$ac_cv_header_term_h" = x""yes; then :
9338 cat >>confdefs.h <<_ACEOF
9339 #define HAVE_TERM_H 1
9340 _ACEOF
9344 done
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9347 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9348 if test "${ac_cv_header_time+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 #include <sys/types.h>
9354 #include <sys/time.h>
9355 #include <time.h>
9358 main ()
9360 if ((struct tm *) 0)
9361 return 0;
9363 return 0;
9365 _ACEOF
9366 if ac_fn_c_try_compile "$LINENO"; then :
9367 ac_cv_header_time=yes
9368 else
9369 ac_cv_header_time=no
9371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9374 $as_echo "$ac_cv_header_time" >&6; }
9375 if test $ac_cv_header_time = yes; then
9377 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9381 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9384 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9385 ac_have_decl=1
9386 else
9387 ac_have_decl=0
9390 cat >>confdefs.h <<_ACEOF
9391 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9392 _ACEOF
9394 if test $ac_cv_have_decl_sys_siglist != yes; then
9395 # For Tru64, at least:
9396 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9399 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9400 ac_have_decl=1
9401 else
9402 ac_have_decl=0
9405 cat >>confdefs.h <<_ACEOF
9406 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9407 _ACEOF
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9411 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9412 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 #include <sys/types.h>
9418 #include <sys/wait.h>
9419 #ifndef WEXITSTATUS
9420 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9421 #endif
9422 #ifndef WIFEXITED
9423 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9424 #endif
9427 main ()
9429 int s;
9430 wait (&s);
9431 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9433 return 0;
9435 _ACEOF
9436 if ac_fn_c_try_compile "$LINENO"; then :
9437 ac_cv_header_sys_wait_h=yes
9438 else
9439 ac_cv_header_sys_wait_h=no
9441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9444 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9445 if test $ac_cv_header_sys_wait_h = yes; then
9447 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9455 for ac_header in net/if.h
9456 do :
9457 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9458 #if HAVE_SYS_SOCKET_H
9459 #include <sys/socket.h>
9460 #endif
9462 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9463 cat >>confdefs.h <<_ACEOF
9464 #define HAVE_NET_IF_H 1
9465 _ACEOF
9469 done
9471 for ac_header in ifaddrs.h
9472 do :
9473 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9474 #if HAVE_SYS_SOCKET_H
9475 #include <sys/socket.h>
9476 #endif
9478 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9479 cat >>confdefs.h <<_ACEOF
9480 #define HAVE_IFADDRS_H 1
9481 _ACEOF
9485 done
9487 for ac_header in net/if_dl.h
9488 do :
9489 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9490 #if HAVE_SYS_SOCKET_H
9491 #include <sys/socket.h>
9492 #endif
9494 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9495 cat >>confdefs.h <<_ACEOF
9496 #define HAVE_NET_IF_DL_H 1
9497 _ACEOF
9501 done
9504 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9505 #if HAVE_SYS_SOCKET_H
9506 #include <sys/socket.h>
9507 #endif
9508 #if HAVE_NET_IF_H
9509 #include <net/if.h>
9510 #endif
9512 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9514 cat >>confdefs.h <<_ACEOF
9515 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9516 _ACEOF
9520 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9521 #if HAVE_SYS_SOCKET_H
9522 #include <sys/socket.h>
9523 #endif
9524 #if HAVE_NET_IF_H
9525 #include <net/if.h>
9526 #endif
9528 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9530 cat >>confdefs.h <<_ACEOF
9531 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9532 _ACEOF
9536 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9537 #if HAVE_SYS_SOCKET_H
9538 #include <sys/socket.h>
9539 #endif
9540 #if HAVE_NET_IF_H
9541 #include <net/if.h>
9542 #endif
9544 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9546 cat >>confdefs.h <<_ACEOF
9547 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9548 _ACEOF
9552 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9553 #if HAVE_SYS_SOCKET_H
9554 #include <sys/socket.h>
9555 #endif
9556 #if HAVE_NET_IF_H
9557 #include <net/if.h>
9558 #endif
9560 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9562 cat >>confdefs.h <<_ACEOF
9563 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9564 _ACEOF
9568 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9569 #if HAVE_SYS_SOCKET_H
9570 #include <sys/socket.h>
9571 #endif
9572 #if HAVE_NET_IF_H
9573 #include <net/if.h>
9574 #endif
9576 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9578 cat >>confdefs.h <<_ACEOF
9579 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9580 _ACEOF
9584 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9585 #if HAVE_SYS_SOCKET_H
9586 #include <sys/socket.h>
9587 #endif
9588 #if HAVE_NET_IF_H
9589 #include <net/if.h>
9590 #endif
9592 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9594 cat >>confdefs.h <<_ACEOF
9595 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9596 _ACEOF
9604 DEPFLAGS=
9605 MKDEPDIR=":"
9606 deps_frag=deps.mk
9607 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9609 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9610 HAVE_GNU_MAKE=no
9611 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9612 if test "x$testval" != x; then
9613 HAVE_GNU_MAKE=yes
9614 else
9615 ac_enable_autodepend=no
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9618 $as_echo "$HAVE_GNU_MAKE" >&6; }
9619 if test $HAVE_GNU_MAKE = yes; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9621 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9622 SAVE_CFLAGS="$CFLAGS"
9623 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9628 main ()
9632 return 0;
9634 _ACEOF
9635 if ac_fn_c_try_compile "$LINENO"; then :
9637 else
9638 ac_enable_autodepend=no
9640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641 CFLAGS="$SAVE_CFLAGS"
9642 test -f deps.d || ac_enable_autodepend=no
9643 rm -rf deps.d
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9645 $as_echo "$ac_enable_autodepend" >&6; }
9647 if test $ac_enable_autodepend = yes; then
9648 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9649 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9650 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9651 deps_frag=autodeps.mk
9654 deps_frag=$srcdir/src/$deps_frag
9660 lisp_frag=$srcdir/src/lisp.mk
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9665 $as_echo_n "checking for long file names... " >&6; }
9666 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9667 $as_echo_n "(cached) " >&6
9668 else
9669 ac_cv_sys_long_file_names=yes
9670 # Test for long file names in all the places we know might matter:
9671 # . the current directory, where building will happen
9672 # $prefix/lib where we will be installing things
9673 # $exec_prefix/lib likewise
9674 # $TMPDIR if set, where it might want to write temporary files
9675 # /tmp where it might want to write temporary files
9676 # /var/tmp likewise
9677 # /usr/tmp likewise
9678 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9679 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9680 # in the usual case where exec_prefix is '${prefix}'.
9681 case $ac_dir in #(
9682 . | /* | ?:[\\/]*) ;; #(
9683 *) continue;;
9684 esac
9685 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9686 ac_xdir=$ac_dir/cf$$
9687 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9688 ac_tf1=$ac_xdir/conftest9012345
9689 ac_tf2=$ac_xdir/conftest9012346
9690 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9691 ac_cv_sys_long_file_names=no
9692 rm -f -r "$ac_xdir" 2>/dev/null
9693 test $ac_cv_sys_long_file_names = no && break
9694 done
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9697 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9698 if test $ac_cv_sys_long_file_names = yes; then
9700 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9705 #### Choose a window system.
9707 ## We leave window_system equal to none if
9708 ## we end up building without one. Any new window system should
9709 ## set window_system to an appropriate value and add objects to
9710 ## window-system-specific substs.
9712 window_system=none
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9714 $as_echo_n "checking for X... " >&6; }
9717 # Check whether --with-x was given.
9718 if test "${with_x+set}" = set; then :
9719 withval=$with_x;
9722 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9723 if test "x$with_x" = xno; then
9724 # The user explicitly disabled X.
9725 have_x=disabled
9726 else
9727 case $x_includes,$x_libraries in #(
9728 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9729 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 # One or both of the vars are not set, and there is no cached value.
9733 ac_x_includes=no ac_x_libraries=no
9734 rm -f -r conftest.dir
9735 if mkdir conftest.dir; then
9736 cd conftest.dir
9737 cat >Imakefile <<'_ACEOF'
9738 incroot:
9739 @echo incroot='${INCROOT}'
9740 usrlibdir:
9741 @echo usrlibdir='${USRLIBDIR}'
9742 libdir:
9743 @echo libdir='${LIBDIR}'
9744 _ACEOF
9745 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9746 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9747 for ac_var in incroot usrlibdir libdir; do
9748 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9749 done
9750 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9751 for ac_extension in a so sl dylib la dll; do
9752 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9753 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9754 ac_im_usrlibdir=$ac_im_libdir; break
9756 done
9757 # Screen out bogus values from the imake configuration. They are
9758 # bogus both because they are the default anyway, and because
9759 # using them would break gcc on systems where it needs fixed includes.
9760 case $ac_im_incroot in
9761 /usr/include) ac_x_includes= ;;
9762 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9763 esac
9764 case $ac_im_usrlibdir in
9765 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9766 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9767 esac
9769 cd ..
9770 rm -f -r conftest.dir
9773 # Standard set of common directories for X headers.
9774 # Check X11 before X11Rn because it is often a symlink to the current release.
9775 ac_x_header_dirs='
9776 /usr/X11/include
9777 /usr/X11R7/include
9778 /usr/X11R6/include
9779 /usr/X11R5/include
9780 /usr/X11R4/include
9782 /usr/include/X11
9783 /usr/include/X11R7
9784 /usr/include/X11R6
9785 /usr/include/X11R5
9786 /usr/include/X11R4
9788 /usr/local/X11/include
9789 /usr/local/X11R7/include
9790 /usr/local/X11R6/include
9791 /usr/local/X11R5/include
9792 /usr/local/X11R4/include
9794 /usr/local/include/X11
9795 /usr/local/include/X11R7
9796 /usr/local/include/X11R6
9797 /usr/local/include/X11R5
9798 /usr/local/include/X11R4
9800 /usr/X386/include
9801 /usr/x386/include
9802 /usr/XFree86/include/X11
9804 /usr/include
9805 /usr/local/include
9806 /usr/unsupported/include
9807 /usr/athena/include
9808 /usr/local/x11r5/include
9809 /usr/lpp/Xamples/include
9811 /usr/openwin/include
9812 /usr/openwin/share/include'
9814 if test "$ac_x_includes" = no; then
9815 # Guess where to find include files, by looking for Xlib.h.
9816 # First, try using that file with no special directory specified.
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 #include <X11/Xlib.h>
9820 _ACEOF
9821 if ac_fn_c_try_cpp "$LINENO"; then :
9822 # We can compile using X headers with no special include directory.
9823 ac_x_includes=
9824 else
9825 for ac_dir in $ac_x_header_dirs; do
9826 if test -r "$ac_dir/X11/Xlib.h"; then
9827 ac_x_includes=$ac_dir
9828 break
9830 done
9832 rm -f conftest.err conftest.$ac_ext
9833 fi # $ac_x_includes = no
9835 if test "$ac_x_libraries" = no; then
9836 # Check for the libraries.
9837 # See if we find them without any special options.
9838 # Don't add to $LIBS permanently.
9839 ac_save_LIBS=$LIBS
9840 LIBS="-lX11 $LIBS"
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 #include <X11/Xlib.h>
9845 main ()
9847 XrmInitialize ()
9849 return 0;
9851 _ACEOF
9852 if ac_fn_c_try_link "$LINENO"; then :
9853 LIBS=$ac_save_LIBS
9854 # We can link X programs with no special library path.
9855 ac_x_libraries=
9856 else
9857 LIBS=$ac_save_LIBS
9858 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9860 # Don't even attempt the hair of trying to link an X program!
9861 for ac_extension in a so sl dylib la dll; do
9862 if test -r "$ac_dir/libX11.$ac_extension"; then
9863 ac_x_libraries=$ac_dir
9864 break 2
9866 done
9867 done
9869 rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 fi # $ac_x_libraries = no
9873 case $ac_x_includes,$ac_x_libraries in #(
9874 no,* | *,no | *\'*)
9875 # Didn't find X, or a directory has "'" in its name.
9876 ac_cv_have_x="have_x=no";; #(
9878 # Record where we found X for the cache.
9879 ac_cv_have_x="have_x=yes\
9880 ac_x_includes='$ac_x_includes'\
9881 ac_x_libraries='$ac_x_libraries'"
9882 esac
9884 ;; #(
9885 *) have_x=yes;;
9886 esac
9887 eval "$ac_cv_have_x"
9888 fi # $with_x != no
9890 if test "$have_x" != yes; then
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9892 $as_echo "$have_x" >&6; }
9893 no_x=yes
9894 else
9895 # If each of the values was on the command line, it overrides each guess.
9896 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9897 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9898 # Update the cache value to reflect the command line values.
9899 ac_cv_have_x="have_x=yes\
9900 ac_x_includes='$x_includes'\
9901 ac_x_libraries='$x_libraries'"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9903 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9906 if test "$no_x" != yes; then
9907 window_system=x11
9910 LD_SWITCH_X_SITE_RPATH=
9911 if test "${x_libraries}" != NONE; then
9912 if test -n "${x_libraries}"; then
9913 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9914 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9916 x_default_search_path=""
9917 x_search_path=${x_libraries}
9918 if test -z "${x_search_path}"; then
9919 x_search_path=/usr/lib
9921 for x_library in `echo ${x_search_path}: | \
9922 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9923 x_search_path="\
9924 ${x_library}/X11/%L/%T/%N%C%S:\
9925 ${x_library}/X11/%l/%T/%N%C%S:\
9926 ${x_library}/X11/%T/%N%C%S:\
9927 ${x_library}/X11/%L/%T/%N%S:\
9928 ${x_library}/X11/%l/%T/%N%S:\
9929 ${x_library}/X11/%T/%N%S"
9930 if test x"${x_default_search_path}" = x; then
9931 x_default_search_path=${x_search_path}
9932 else
9933 x_default_search_path="${x_search_path}:${x_default_search_path}"
9935 done
9939 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9940 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9943 if test x"${x_includes}" = x; then
9944 bitmapdir=/usr/include/X11/bitmaps
9945 else
9946 # accumulate include directories that have X11 bitmap subdirectories
9947 bmd_acc="dummyval"
9948 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9949 if test -d "${bmd}/X11/bitmaps"; then
9950 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9952 if test -d "${bmd}/bitmaps"; then
9953 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9955 done
9956 if test ${bmd_acc} != "dummyval"; then
9957 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9961 HAVE_NS=no
9962 NS_IMPL_COCOA=no
9963 NS_IMPL_GNUSTEP=no
9964 tmp_CPPFLAGS="$CPPFLAGS"
9965 tmp_CFLAGS="$CFLAGS"
9966 CPPFLAGS="$CPPFLAGS -x objective-c"
9967 CFLAGS="$CFLAGS -x objective-c"
9968 GNU_OBJC_CFLAGS=
9969 LIBS_GNUSTEP=
9970 if test "${with_ns}" != no; then
9971 if test "${opsys}" = darwin; then
9972 NS_IMPL_COCOA=yes
9973 ns_appdir=`pwd`/nextstep/Emacs.app
9974 ns_appbindir=${ns_appdir}/Contents/MacOS
9975 ns_appresdir=${ns_appdir}/Contents/Resources
9976 ns_appsrc=Cocoa/Emacs.base
9977 elif test -f $GNUSTEP_CONFIG_FILE; then
9978 NS_IMPL_GNUSTEP=yes
9979 ns_appdir=`pwd`/nextstep/Emacs.app
9980 ns_appbindir=${ns_appdir}
9981 ns_appresdir=${ns_appdir}/Resources
9982 ns_appsrc=GNUstep/Emacs.base
9983 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9984 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9985 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9986 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9987 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9988 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9989 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9990 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9991 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9992 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9993 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9994 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9996 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9997 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9998 $as_echo_n "(cached) " >&6
9999 else
10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10002 #include <GNUstepBase/GSConfig.h>
10004 main ()
10006 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
10008 #else
10009 fail;
10010 #endif
10012 return 0;
10014 _ACEOF
10015 if ac_fn_c_try_compile "$LINENO"; then :
10016 emacs_cv_objc_exceptions=yes
10017 else
10018 emacs_cv_objc_exceptions=no
10020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
10023 $as_echo "$emacs_cv_objc_exceptions" >&6; }
10024 if test $emacs_cv_objc_exceptions = yes; then
10026 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
10028 GNU_OBJC_CFLAGS="-fobjc-exceptions"
10032 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
10034 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
10035 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
10036 HAVE_NS=yes
10037 else
10038 as_fn_error "\`--with-ns' was specified, but the include
10039 files are missing or cannot be compiled." "$LINENO" 5
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 #include <AppKit/AppKit.h>
10048 main ()
10051 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10052 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10053 ; /* OK */
10054 #else
10055 #error "OSX 10.4 or newer required"
10056 #endif
10057 #endif
10060 return 0;
10062 _ACEOF
10063 if ac_fn_c_try_compile "$LINENO"; then :
10064 ns_osx_have_104=yes
10065 else
10066 ns_osx_have_104=no
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h. */
10071 #include <Foundation/NSObjCRuntime.h>
10073 main ()
10075 NSInteger i;
10077 return 0;
10079 _ACEOF
10080 if ac_fn_c_try_compile "$LINENO"; then :
10081 ns_have_nsinteger=yes
10082 else
10083 ns_have_nsinteger=no
10085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 if test $ns_osx_have_104 = no; then
10087 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10089 if test $ns_have_nsinteger = yes; then
10091 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10098 INSTALL_ARCH_INDEP_EXTRA=install-etc
10099 ns_self_contained=no
10100 NS_OBJ=
10101 NS_OBJC_OBJ=
10102 if test "${HAVE_NS}" = yes; then
10103 if test "$with_toolkit_scroll_bars" = "no"; then
10104 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10107 window_system=nextstep
10108 # set up packaging dirs
10109 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10110 ns_self_contained=yes
10111 prefix=${ns_appresdir}
10112 exec_prefix=${ns_appbindir}
10113 libexecdir="\${ns_appbindir}/libexec"
10114 archlibdir="\${ns_appbindir}/libexec"
10115 etcdocdir="\${ns_appresdir}/etc"
10116 etcdir="\${ns_appresdir}/etc"
10117 infodir="\${ns_appresdir}/info"
10118 mandir="\${ns_appresdir}/man"
10119 lispdir="\${ns_appresdir}/lisp"
10120 leimdir="\${ns_appresdir}/leim"
10121 INSTALL_ARCH_INDEP_EXTRA=
10123 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10125 CFLAGS="$tmp_CFLAGS"
10126 CPPFLAGS="$tmp_CPPFLAGS"
10132 HAVE_W32=no
10133 W32_OBJ=
10134 W32_LIBS=
10135 EMACSRES=
10136 CLIENTRES=
10137 CLIENTW=
10138 W32_RES_LINK=
10139 EMACS_MANIFEST=
10140 UPDATE_MANIFEST=
10141 if test "${with_w32}" != no; then
10142 case "${opsys}" in
10143 cygwin)
10144 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10145 if test "x$ac_cv_header_windows_h" = x""yes; then :
10146 HAVE_W32=yes
10147 else
10148 as_fn_error "\`--with-w32' was specified, but windows.h
10149 cannot be found." "$LINENO" 5
10154 mingw32)
10155 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10158 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10160 esac
10163 if test "${opsys}" = "mingw32"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10165 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10169 #include <windows.h>
10170 #include <usp10.h>
10172 main ()
10174 PIMAGE_NT_HEADERS pHeader;
10175 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10177 return 0;
10179 _ACEOF
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181 emacs_cv_w32api=yes
10182 HAVE_W32=yes
10183 else
10184 emacs_cv_w32api=no
10186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10188 $as_echo "$emacs_cv_w32api" >&6; }
10189 if test "${emacs_cv_w32api}" = "no"; then
10190 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10194 FIRSTFILE_OBJ=
10195 NTDIR=
10196 LIBS_ECLIENT=
10197 LIB_WSOCK32=
10198 NTLIB=
10199 CM_OBJ="cm.o"
10200 XARGS_LIMIT=
10201 if test "${HAVE_W32}" = "yes"; then
10203 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10205 if test -n "$ac_tool_prefix"; then
10206 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10207 set dummy ${ac_tool_prefix}windres; ac_word=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 if test -n "$WINDRES"; then
10214 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10215 else
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10219 IFS=$as_save_IFS
10220 test -z "$as_dir" && as_dir=.
10221 for ac_exec_ext in '' $ac_executable_extensions; do
10222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10223 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10225 break 2
10227 done
10228 done
10229 IFS=$as_save_IFS
10233 WINDRES=$ac_cv_prog_WINDRES
10234 if test -n "$WINDRES"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10236 $as_echo "$WINDRES" >&6; }
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10244 if test -z "$ac_cv_prog_WINDRES"; then
10245 ac_ct_WINDRES=$WINDRES
10246 # Extract the first word of "windres", so it can be a program name with args.
10247 set dummy windres; ac_word=$2
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10249 $as_echo_n "checking for $ac_word... " >&6; }
10250 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10251 $as_echo_n "(cached) " >&6
10252 else
10253 if test -n "$ac_ct_WINDRES"; then
10254 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10255 else
10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $PATH
10259 IFS=$as_save_IFS
10260 test -z "$as_dir" && as_dir=.
10261 for ac_exec_ext in '' $ac_executable_extensions; do
10262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10263 ac_cv_prog_ac_ct_WINDRES="windres"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 break 2
10267 done
10268 done
10269 IFS=$as_save_IFS
10273 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10274 if test -n "$ac_ct_WINDRES"; then
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10276 $as_echo "$ac_ct_WINDRES" >&6; }
10277 else
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10282 if test "x$ac_ct_WINDRES" = x; then
10283 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10284 else
10285 case $cross_compiling:$ac_tool_warned in
10286 yes:)
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10289 ac_tool_warned=yes ;;
10290 esac
10291 WINDRES=$ac_ct_WINDRES
10293 else
10294 WINDRES="$ac_cv_prog_WINDRES"
10297 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10298 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10299 EMACSRES="emacs.res"
10300 case "$canonical" in
10301 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10302 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10303 esac
10304 UPDATE_MANIFEST=update-game-score.exe.manifest
10305 if test "${opsys}" = "cygwin"; then
10306 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10307 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10308 # Tell the linker that emacs.res is an object (which we compile from
10309 # the rc file), not a linker script.
10310 W32_RES_LINK="-Wl,emacs.res"
10311 else
10312 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10313 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10314 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10315 W32_RES_LINK="\$(EMACSRES)"
10316 CLIENTRES="emacsclient.res"
10317 CLIENTW="emacsclientw\$(EXEEXT)"
10318 FIRSTFILE_OBJ=firstfile.o
10319 NTDIR=nt
10320 CM_OBJ=
10321 LIBS_ECLIENT="-lcomctl32"
10322 LIB_WSOCK32="-lwsock32"
10323 NTLIB="ntlib.$ac_objext"
10324 XARGS_LIMIT="-s 10000"
10343 if test "${HAVE_W32}" = "yes"; then
10344 window_system=w32
10345 with_xft=no
10348 ## $window_system is now set to the window system we will
10349 ## ultimately use.
10351 if test "$window_system" = none && test "$gl_gcc_warnings" = yes; then
10352 # Too many warnings for now.
10354 nw="$nw -Wsuggest-attribute=const"
10355 nw="$nw -Wsuggest-attribute=noreturn"
10357 gl_warn_set=
10358 set x $WARN_CFLAGS; shift
10359 for gl_warn_item
10361 case " $nw " in
10362 *" $gl_warn_item "*)
10365 gl_warn_set="$gl_warn_set $gl_warn_item"
10367 esac
10368 done
10369 WARN_CFLAGS=$gl_warn_set
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-variable" >&5
10374 $as_echo_n "checking whether C compiler handles -Wno-unused-variable... " >&6; }
10375 if test "${gl_cv_warn_c__Wno_unused_variable+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10379 gl_save_compiler_FLAGS="$CFLAGS"
10380 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-variable"
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10385 main ()
10389 return 0;
10391 _ACEOF
10392 if ac_fn_c_try_compile "$LINENO"; then :
10393 gl_cv_warn_c__Wno_unused_variable=yes
10394 else
10395 gl_cv_warn_c__Wno_unused_variable=no
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 CFLAGS="$gl_save_compiler_FLAGS"
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_variable" >&5
10402 $as_echo "$gl_cv_warn_c__Wno_unused_variable" >&6; }
10403 if test "x$gl_cv_warn_c__Wno_unused_variable" = x""yes; then :
10404 as_fn_append WARN_CFLAGS " -Wno-unused-variable"
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-variable" >&5
10410 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-variable... " >&6; }
10411 if test "${gl_cv_warn_c__Wno_unused_but_set_variable+set}" = set; then :
10412 $as_echo_n "(cached) " >&6
10413 else
10415 gl_save_compiler_FLAGS="$CFLAGS"
10416 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-variable"
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10421 main ()
10425 return 0;
10427 _ACEOF
10428 if ac_fn_c_try_compile "$LINENO"; then :
10429 gl_cv_warn_c__Wno_unused_but_set_variable=yes
10430 else
10431 gl_cv_warn_c__Wno_unused_but_set_variable=no
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434 CFLAGS="$gl_save_compiler_FLAGS"
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_variable" >&5
10438 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_variable" >&6; }
10439 if test "x$gl_cv_warn_c__Wno_unused_but_set_variable" = x""yes; then :
10440 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-variable"
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-but-set-parameter" >&5
10446 $as_echo_n "checking whether C compiler handles -Wno-unused-but-set-parameter... " >&6; }
10447 if test "${gl_cv_warn_c__Wno_unused_but_set_parameter+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10451 gl_save_compiler_FLAGS="$CFLAGS"
10452 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-but-set-parameter"
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10457 main ()
10461 return 0;
10463 _ACEOF
10464 if ac_fn_c_try_compile "$LINENO"; then :
10465 gl_cv_warn_c__Wno_unused_but_set_parameter=yes
10466 else
10467 gl_cv_warn_c__Wno_unused_but_set_parameter=no
10469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 CFLAGS="$gl_save_compiler_FLAGS"
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_but_set_parameter" >&5
10474 $as_echo "$gl_cv_warn_c__Wno_unused_but_set_parameter" >&6; }
10475 if test "x$gl_cv_warn_c__Wno_unused_but_set_parameter" = x""yes; then :
10476 as_fn_append WARN_CFLAGS " -Wno-unused-but-set-parameter"
10482 term_header=
10483 HAVE_X_WINDOWS=no
10484 HAVE_X11=no
10485 USE_X_TOOLKIT=none
10487 case "${window_system}" in
10488 x11 )
10489 HAVE_X_WINDOWS=yes
10490 HAVE_X11=yes
10491 term_header=xterm.h
10492 case "${with_x_toolkit}" in
10493 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10494 motif ) USE_X_TOOLKIT=MOTIF ;;
10495 gtk ) with_gtk=yes
10496 term_header=gtkutil.h
10497 USE_X_TOOLKIT=none ;;
10498 gtk2 ) with_gtk2=yes
10499 term_header=gtkutil.h
10500 USE_X_TOOLKIT=none ;;
10501 gtk3 ) with_gtk3=yes
10502 term_header=gtkutil.h
10503 USE_X_TOOLKIT=none ;;
10504 no ) USE_X_TOOLKIT=none ;;
10505 * ) USE_X_TOOLKIT=maybe ;;
10506 esac
10508 nextstep )
10509 term_header=nsterm.h
10511 w32 )
10512 term_header=w32term.h
10514 esac
10516 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10517 # Extract the first word of "X", so it can be a program name with args.
10518 set dummy X; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10523 else
10524 if test -n "$HAVE_XSERVER"; then
10525 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10526 else
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10530 IFS=$as_save_IFS
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10534 ac_cv_prog_HAVE_XSERVER="true"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10536 break 2
10538 done
10539 done
10540 IFS=$as_save_IFS
10542 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10545 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10546 if test -n "$HAVE_XSERVER"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10548 $as_echo "$HAVE_XSERVER" >&6; }
10549 else
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10551 $as_echo "no" >&6; }
10555 if test "$HAVE_XSERVER" = true ||
10556 test -n "$DISPLAY" ||
10557 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10558 as_fn_error "You seem to be running X, but no X development libraries
10559 were found. You should install the relevant development files for X
10560 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10561 sure you have development files for image handling, i.e.
10562 tiff, gif, jpeg, png and xpm.
10563 If you are sure you want Emacs compiled without X window support, pass
10564 --without-x
10565 to configure." "$LINENO" 5
10569 ### If we're using X11, we should use the X menu package.
10570 HAVE_MENUS=no
10571 case ${HAVE_X11} in
10572 yes ) HAVE_MENUS=yes ;;
10573 esac
10575 # Does the opsystem file prohibit the use of the GNU malloc?
10576 # Assume not, until told otherwise.
10577 GNU_MALLOC=yes
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10580 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10581 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 #include <malloc.h>
10587 static void hook (void) {}
10589 main ()
10591 malloc_set_state (malloc_get_state ());
10592 __after_morecore_hook = hook;
10593 __malloc_initialize_hook = hook;
10595 return 0;
10597 _ACEOF
10598 if ac_fn_c_try_link "$LINENO"; then :
10599 emacs_cv_var_doug_lea_malloc=yes
10600 else
10601 emacs_cv_var_doug_lea_malloc=no
10603 rm -f core conftest.err conftest.$ac_objext \
10604 conftest$ac_exeext conftest.$ac_ext
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10607 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10608 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10611 system_malloc=no
10612 case "$opsys" in
10613 ## darwin ld insists on the use of malloc routines in the System framework.
10614 darwin|sol2-10) system_malloc=yes ;;
10615 esac
10617 if test "${system_malloc}" = "yes"; then
10619 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10621 GNU_MALLOC=no
10622 GNU_MALLOC_reason="
10623 (The GNU allocators don't work with this system configuration.)"
10624 GMALLOC_OBJ=
10625 VMLIMIT_OBJ=
10626 else
10627 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10628 VMLIMIT_OBJ=vm-limit.o
10630 for ac_header in sys/vlimit.h
10631 do :
10632 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10633 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10634 cat >>confdefs.h <<_ACEOF
10635 #define HAVE_SYS_VLIMIT_H 1
10636 _ACEOF
10640 done
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10643 $as_echo_n "checking for data_start... " >&6; }
10644 if test "${emacs_cv_data_start+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 extern char data_start[]; char ch;
10651 main ()
10653 return data_start < &ch;
10655 return 0;
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659 emacs_cv_data_start=yes
10660 else
10661 emacs_cv_data_start=no
10663 rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10667 $as_echo "$emacs_cv_data_start" >&6; }
10668 if test $emacs_cv_data_start = yes; then
10670 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10677 if test "$doug_lea_malloc" = "yes" ; then
10678 if test "$GNU_MALLOC" = yes ; then
10679 GNU_MALLOC_reason="
10680 (Using Doug Lea's new malloc from the GNU C Library.)"
10683 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10686 ## Use mmap directly for allocating larger buffers.
10687 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10688 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10689 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10690 case "$opsys" in
10691 gnu*) REL_ALLOC=no ;;
10692 esac
10695 if test x"${REL_ALLOC}" = x; then
10696 REL_ALLOC=${GNU_MALLOC}
10699 use_mmap_for_buffers=no
10700 case "$opsys" in
10701 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10702 esac
10711 for ac_func in getpagesize
10712 do :
10713 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10714 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10715 cat >>confdefs.h <<_ACEOF
10716 #define HAVE_GETPAGESIZE 1
10717 _ACEOF
10720 done
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10723 $as_echo_n "checking for working mmap... " >&6; }
10724 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 if test "$cross_compiling" = yes; then :
10728 ac_cv_func_mmap_fixed_mapped=no
10729 else
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 $ac_includes_default
10733 /* malloc might have been renamed as rpl_malloc. */
10734 #undef malloc
10736 /* Thanks to Mike Haertel and Jim Avera for this test.
10737 Here is a matrix of mmap possibilities:
10738 mmap private not fixed
10739 mmap private fixed at somewhere currently unmapped
10740 mmap private fixed at somewhere already mapped
10741 mmap shared not fixed
10742 mmap shared fixed at somewhere currently unmapped
10743 mmap shared fixed at somewhere already mapped
10744 For private mappings, we should verify that changes cannot be read()
10745 back from the file, nor mmap's back from the file at a different
10746 address. (There have been systems where private was not correctly
10747 implemented like the infamous i386 svr4.0, and systems where the
10748 VM page cache was not coherent with the file system buffer cache
10749 like early versions of FreeBSD and possibly contemporary NetBSD.)
10750 For shared mappings, we should conversely verify that changes get
10751 propagated back to all the places they're supposed to be.
10753 Grep wants private fixed already mapped.
10754 The main things grep needs to know about mmap are:
10755 * does it exist and is it safe to write into the mmap'd area
10756 * how to use it (BSD variants) */
10758 #include <fcntl.h>
10759 #include <sys/mman.h>
10761 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10762 char *malloc ();
10763 #endif
10765 /* This mess was copied from the GNU getpagesize.h. */
10766 #ifndef HAVE_GETPAGESIZE
10767 # ifdef _SC_PAGESIZE
10768 # define getpagesize() sysconf(_SC_PAGESIZE)
10769 # else /* no _SC_PAGESIZE */
10770 # ifdef HAVE_SYS_PARAM_H
10771 # include <sys/param.h>
10772 # ifdef EXEC_PAGESIZE
10773 # define getpagesize() EXEC_PAGESIZE
10774 # else /* no EXEC_PAGESIZE */
10775 # ifdef NBPG
10776 # define getpagesize() NBPG * CLSIZE
10777 # ifndef CLSIZE
10778 # define CLSIZE 1
10779 # endif /* no CLSIZE */
10780 # else /* no NBPG */
10781 # ifdef NBPC
10782 # define getpagesize() NBPC
10783 # else /* no NBPC */
10784 # ifdef PAGESIZE
10785 # define getpagesize() PAGESIZE
10786 # endif /* PAGESIZE */
10787 # endif /* no NBPC */
10788 # endif /* no NBPG */
10789 # endif /* no EXEC_PAGESIZE */
10790 # else /* no HAVE_SYS_PARAM_H */
10791 # define getpagesize() 8192 /* punt totally */
10792 # endif /* no HAVE_SYS_PARAM_H */
10793 # endif /* no _SC_PAGESIZE */
10795 #endif /* no HAVE_GETPAGESIZE */
10798 main ()
10800 char *data, *data2, *data3;
10801 const char *cdata2;
10802 int i, pagesize;
10803 int fd, fd2;
10805 pagesize = getpagesize ();
10807 /* First, make a file with some known garbage in it. */
10808 data = (char *) malloc (pagesize);
10809 if (!data)
10810 return 1;
10811 for (i = 0; i < pagesize; ++i)
10812 *(data + i) = rand ();
10813 umask (0);
10814 fd = creat ("conftest.mmap", 0600);
10815 if (fd < 0)
10816 return 2;
10817 if (write (fd, data, pagesize) != pagesize)
10818 return 3;
10819 close (fd);
10821 /* Next, check that the tail of a page is zero-filled. File must have
10822 non-zero length, otherwise we risk SIGBUS for entire page. */
10823 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10824 if (fd2 < 0)
10825 return 4;
10826 cdata2 = "";
10827 if (write (fd2, cdata2, 1) != 1)
10828 return 5;
10829 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10830 if (data2 == MAP_FAILED)
10831 return 6;
10832 for (i = 0; i < pagesize; ++i)
10833 if (*(data2 + i))
10834 return 7;
10835 close (fd2);
10836 if (munmap (data2, pagesize))
10837 return 8;
10839 /* Next, try to mmap the file at a fixed address which already has
10840 something else allocated at it. If we can, also make sure that
10841 we see the same garbage. */
10842 fd = open ("conftest.mmap", O_RDWR);
10843 if (fd < 0)
10844 return 9;
10845 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10846 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10847 return 10;
10848 for (i = 0; i < pagesize; ++i)
10849 if (*(data + i) != *(data2 + i))
10850 return 11;
10852 /* Finally, make sure that changes to the mapped area do not
10853 percolate back to the file as seen by read(). (This is a bug on
10854 some variants of i386 svr4.0.) */
10855 for (i = 0; i < pagesize; ++i)
10856 *(data2 + i) = *(data2 + i) + 1;
10857 data3 = (char *) malloc (pagesize);
10858 if (!data3)
10859 return 12;
10860 if (read (fd, data3, pagesize) != pagesize)
10861 return 13;
10862 for (i = 0; i < pagesize; ++i)
10863 if (*(data + i) != *(data3 + i))
10864 return 14;
10865 close (fd);
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_run "$LINENO"; then :
10870 ac_cv_func_mmap_fixed_mapped=yes
10871 else
10872 ac_cv_func_mmap_fixed_mapped=no
10874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10875 conftest.$ac_objext conftest.beam conftest.$ac_ext
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10880 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10881 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10883 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10886 rm -f conftest.mmap conftest.txt
10888 if test $use_mmap_for_buffers = yes; then
10890 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10892 REL_ALLOC=no
10895 LIBS="$LIBS_SYSTEM $LIBS"
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10898 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10899 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-ldnet $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char dnet_ntoa ();
10915 main ()
10917 return dnet_ntoa ();
10919 return 0;
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 ac_cv_lib_dnet_dnet_ntoa=yes
10924 else
10925 ac_cv_lib_dnet_dnet_ntoa=no
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10932 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10933 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10934 cat >>confdefs.h <<_ACEOF
10935 #define HAVE_LIBDNET 1
10936 _ACEOF
10938 LIBS="-ldnet $LIBS"
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10944 $as_echo_n "checking for main in -lXbsd... " >&6; }
10945 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-lXbsd $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10955 main ()
10957 return main ();
10959 return 0;
10961 _ACEOF
10962 if ac_fn_c_try_link "$LINENO"; then :
10963 ac_cv_lib_Xbsd_main=yes
10964 else
10965 ac_cv_lib_Xbsd_main=no
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 LIBS=$ac_check_lib_save_LIBS
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10972 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10973 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10974 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10978 LIB_PTHREAD=
10982 if test "$ac_cv_header_pthread_h"; then
10983 if test "$GMALLOC_OBJ" = gmalloc.o; then
10984 emacs_pthread_function=pthread_atfork
10985 else
10986 emacs_pthread_function=pthread_self
10988 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10990 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10991 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lpthread $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char $emacs_pthread_function ();
11007 main ()
11009 return $emacs_pthread_function ();
11011 return 0;
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 eval "$as_ac_Lib=yes"
11016 else
11017 eval "$as_ac_Lib=no"
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11023 eval ac_res=\$$as_ac_Lib
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11025 $as_echo "$ac_res" >&6; }
11026 eval as_val=\$$as_ac_Lib
11027 if test "x$as_val" = x""yes; then :
11028 HAVE_PTHREAD=yes
11032 if test "$HAVE_PTHREAD" = yes; then
11033 case "${canonical}" in
11034 *-hpux*) ;;
11035 *) LIB_PTHREAD="-lpthread"
11036 LIBS="$LIB_PTHREAD $LIBS" ;;
11037 esac
11039 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
11045 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11046 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
11048 else
11049 ac_check_lib_save_LIBS=$LIBS
11050 LIBS="-lpthreads $LIBS"
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11054 /* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11057 #ifdef __cplusplus
11058 extern "C"
11059 #endif
11060 char cma_open ();
11062 main ()
11064 return cma_open ();
11066 return 0;
11068 _ACEOF
11069 if ac_fn_c_try_link "$LINENO"; then :
11070 ac_cv_lib_pthreads_cma_open=yes
11071 else
11072 ac_cv_lib_pthreads_cma_open=no
11074 rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
11079 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11080 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
11081 cat >>confdefs.h <<_ACEOF
11082 #define HAVE_LIBPTHREADS 1
11083 _ACEOF
11085 LIBS="-lpthreads $LIBS"
11090 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11091 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11092 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11093 ## added to LIBS in configure would never contain the pthreads part,
11094 ## but the value used in Makefiles might. FIXME?
11096 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11097 ## be harmless on older versions of X where it happens to exist.
11098 test "$opsys" = "aix4-2" && \
11099 test $ac_cv_lib_pthreads_cma_open = yes && \
11100 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11103 case ${host_os} in
11104 aix*)
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11106 $as_echo_n "checking for -bbigtoc option... " >&6; }
11107 if test "${gdb_cv_bigtoc+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11111 case $GCC in
11112 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11113 *) gdb_cv_bigtoc=-bbigtoc ;;
11114 esac
11116 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11121 main ()
11123 int i;
11125 return 0;
11127 _ACEOF
11128 if ac_fn_c_try_link "$LINENO"; then :
11130 else
11131 gdb_cv_bigtoc=
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11138 $as_echo "$gdb_cv_bigtoc" >&6; }
11140 esac
11142 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11143 # used for the tests that follow. We set them back to REAL_CFLAGS and
11144 # REAL_CPPFLAGS later on.
11146 REAL_CFLAGS="$CFLAGS"
11147 REAL_CPPFLAGS="$CPPFLAGS"
11149 if test "${HAVE_X11}" = "yes"; then
11150 DEFS="$C_SWITCH_X_SITE $DEFS"
11151 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11152 LIBS="-lX11 $LIBS"
11153 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11154 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11156 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11157 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
11158 # but it's more convenient here to set LD_RUN_PATH since this
11159 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
11160 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11161 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11162 export LD_RUN_PATH
11165 if test "${opsys}" = "gnu-linux"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11167 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11169 /* end confdefs.h. */
11172 main ()
11174 XOpenDisplay ("foo");
11176 return 0;
11178 _ACEOF
11179 if ac_fn_c_try_link "$LINENO"; then :
11180 xgnu_linux_first_failure=no
11181 else
11182 xgnu_linux_first_failure=yes
11184 rm -f core conftest.err conftest.$ac_objext \
11185 conftest$ac_exeext conftest.$ac_ext
11186 if test "${xgnu_linux_first_failure}" = "yes"; then
11187 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11188 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11189 OLD_CPPFLAGS="$CPPFLAGS"
11190 OLD_LIBS="$LIBS"
11191 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11192 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11193 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11194 LIBS="$LIBS -b i486-linuxaout"
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11199 main ()
11201 XOpenDisplay ("foo");
11203 return 0;
11205 _ACEOF
11206 if ac_fn_c_try_link "$LINENO"; then :
11207 xgnu_linux_second_failure=no
11208 else
11209 xgnu_linux_second_failure=yes
11211 rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213 if test "${xgnu_linux_second_failure}" = "yes"; then
11214 # If we get the same failure with -b, there is no use adding -b.
11215 # So take it out. This plays safe.
11216 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11217 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11218 CPPFLAGS="$OLD_CPPFLAGS"
11219 LIBS="$OLD_LIBS"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11224 $as_echo "yes" >&6; }
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11232 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11233 # header files included from there.
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11235 $as_echo_n "checking for Xkb... " >&6; }
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 #include <X11/Xlib.h>
11239 #include <X11/XKBlib.h>
11241 main ()
11243 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11245 return 0;
11247 _ACEOF
11248 if ac_fn_c_try_link "$LINENO"; then :
11249 emacs_xkb=yes
11250 else
11251 emacs_xkb=no
11253 rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11256 $as_echo "$emacs_xkb" >&6; }
11257 if test $emacs_xkb = yes; then
11259 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11263 for ac_func in XrmSetDatabase XScreenResourceString \
11264 XScreenNumberOfScreen
11265 do :
11266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11268 eval as_val=\$$as_ac_var
11269 if test "x$as_val" = x""yes; then :
11270 cat >>confdefs.h <<_ACEOF
11271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11272 _ACEOF
11275 done
11279 if test "${window_system}" = "x11"; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11281 $as_echo_n "checking X11 version 6... " >&6; }
11282 if test "${emacs_cv_x11_version_6+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11287 #include <X11/Xlib.h>
11289 main ()
11291 #if XlibSpecificationRelease < 6
11292 fail;
11293 #endif
11296 return 0;
11298 _ACEOF
11299 if ac_fn_c_try_link "$LINENO"; then :
11300 emacs_cv_x11_version_6=yes
11301 else
11302 emacs_cv_x11_version_6=no
11304 rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11308 if test $emacs_cv_x11_version_6 = yes; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11310 $as_echo "6 or newer" >&6; }
11312 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11315 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11317 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11318 ## XIM support.
11319 case "$opsys" in
11320 sol2-*) : ;;
11322 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11325 esac
11326 else
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11328 $as_echo "before 6" >&6; }
11333 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11334 HAVE_RSVG=no
11335 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11336 if test "${with_rsvg}" != "no"; then
11337 RSVG_REQUIRED=2.11.0
11338 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11341 succeeded=no
11343 if test "$PKG_CONFIG" = "no" ; then
11345 else
11346 PKG_CONFIG_MIN_VERSION=0.9.0
11347 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11349 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11351 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11352 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11353 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11354 edit_cflags="
11355 s,///*,/,g
11356 s/^/ /
11357 s/ -I/ $isystem/g
11358 s/^ //
11360 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11361 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11363 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11364 succeeded=yes
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368 RSVG_CFLAGS=""
11369 RSVG_LIBS=""
11370 ## If we have a custom action on failure, don't print errors, but
11371 ## do set a variable so people can do so. Do it in a subshell
11372 ## to capture any diagnostics in invoking pkg-config.
11373 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11379 else
11380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11385 if test $succeeded = yes; then
11386 HAVE_RSVG=yes
11387 else
11394 if test $HAVE_RSVG = yes; then
11396 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11398 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11399 LIBS="$RSVG_LIBS $LIBS"
11404 HAVE_IMAGEMAGICK=no
11405 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11406 if test "${with_imagemagick}" != "no"; then
11407 ## 6.2.8 is the earliest version known to work, but earlier versions
11408 ## might work - let us know if you find one.
11409 ## 6.0.7 does not work. See bug#7955.
11410 ## 6.8.2 makes Emacs crash; see Bug#13867.
11411 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11413 succeeded=no
11415 if test "$PKG_CONFIG" = "no" ; then
11417 else
11418 PKG_CONFIG_MIN_VERSION=0.9.0
11419 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11421 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11423 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11424 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11425 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11426 edit_cflags="
11427 s,///*,/,g
11428 s/^/ /
11429 s/ -I/ $isystem/g
11430 s/^ //
11432 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11433 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11435 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11436 succeeded=yes
11437 else
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11440 IMAGEMAGICK_CFLAGS=""
11441 IMAGEMAGICK_LIBS=""
11442 ## If we have a custom action on failure, don't print errors, but
11443 ## do set a variable so people can do so. Do it in a subshell
11444 ## to capture any diagnostics in invoking pkg-config.
11445 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11451 else
11452 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11453 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11457 if test $succeeded = yes; then
11458 HAVE_IMAGEMAGICK=yes
11459 else
11466 if test $HAVE_IMAGEMAGICK = yes; then
11468 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11470 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11471 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11472 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11473 do :
11474 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11475 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11476 eval as_val=\$$as_ac_var
11477 if test "x$as_val" = x""yes; then :
11478 cat >>confdefs.h <<_ACEOF
11479 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480 _ACEOF
11483 done
11490 HAVE_GTK=no
11491 GTK_OBJ=
11492 gtk_term_header=$term_header
11493 check_gtk2=no
11494 gtk3_pkg_errors=
11495 if test "${opsys}" != "mingw32"; then
11496 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11497 GLIB_REQUIRED=2.28
11498 GTK_REQUIRED=3.0
11499 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11502 succeeded=no
11504 if test "$PKG_CONFIG" = "no" ; then
11505 pkg_check_gtk=no
11506 else
11507 PKG_CONFIG_MIN_VERSION=0.9.0
11508 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11510 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11512 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11513 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11514 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11515 edit_cflags="
11516 s,///*,/,g
11517 s/^/ /
11518 s/ -I/ $isystem/g
11519 s/^ //
11521 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11522 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11524 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11525 succeeded=yes
11526 else
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11529 GTK_CFLAGS=""
11530 GTK_LIBS=""
11531 ## If we have a custom action on failure, don't print errors, but
11532 ## do set a variable so people can do so. Do it in a subshell
11533 ## to capture any diagnostics in invoking pkg-config.
11534 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11540 else
11541 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11542 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11546 if test $succeeded = yes; then
11547 pkg_check_gtk=yes
11548 else
11549 pkg_check_gtk=no
11552 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11553 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11555 if test "$pkg_check_gtk" = "yes"; then
11557 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11559 GTK_OBJ=emacsgtkfixed.o
11560 gtk_term_header=gtkutil.h
11561 USE_GTK_TOOLKIT="GTK3"
11562 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11563 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11564 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11566 else
11567 check_gtk2=yes
11568 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11572 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11573 GLIB_REQUIRED=2.10
11574 GTK_REQUIRED=2.10
11575 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11578 succeeded=no
11580 if test "$PKG_CONFIG" = "no" ; then
11581 pkg_check_gtk=no
11582 else
11583 PKG_CONFIG_MIN_VERSION=0.9.0
11584 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11586 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11588 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11589 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11590 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11591 edit_cflags="
11592 s,///*,/,g
11593 s/^/ /
11594 s/ -I/ $isystem/g
11595 s/^ //
11597 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11598 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11600 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11601 succeeded=yes
11602 else
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11605 GTK_CFLAGS=""
11606 GTK_LIBS=""
11607 ## If we have a custom action on failure, don't print errors, but
11608 ## do set a variable so people can do so. Do it in a subshell
11609 ## to capture any diagnostics in invoking pkg-config.
11610 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11616 else
11617 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11618 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11622 if test $succeeded = yes; then
11623 pkg_check_gtk=yes
11624 else
11625 pkg_check_gtk=no
11628 if test "$pkg_check_gtk" = "no" &&
11629 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11630 then
11631 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11633 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11637 if test x"$pkg_check_gtk" = xyes; then
11641 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11642 CFLAGS="$CFLAGS $GTK_CFLAGS"
11643 LIBS="$GTK_LIBS $LIBS"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11645 $as_echo_n "checking whether GTK compiles... " >&6; }
11646 GTK_COMPILES=no
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11649 /* Check the Gtk and Glib APIs. */
11650 #include <gtk/gtk.h>
11651 #include <glib-object.h>
11652 static void
11653 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11657 main ()
11660 GtkSettings *gs = 0;
11661 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11662 strict C prohibits this. Use gtk_main_iteration to test that the
11663 libraries are there. */
11664 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11665 0, 0, 0, G_CALLBACK (callback), 0))
11666 gtk_main_iteration ();
11669 return 0;
11671 _ACEOF
11672 if ac_fn_c_try_link "$LINENO"; then :
11673 GTK_COMPILES=yes
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11678 $as_echo "$GTK_COMPILES" >&6; }
11679 if test "${GTK_COMPILES}" != "yes"; then
11680 GTK_OBJ=
11681 if test "$USE_X_TOOLKIT" != "maybe"; then
11682 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11684 else
11685 HAVE_GTK=yes
11687 $as_echo "#define USE_GTK 1" >>confdefs.h
11689 GTK_OBJ="gtkutil.o $GTK_OBJ"
11690 term_header=$gtk_term_header
11691 USE_X_TOOLKIT=none
11692 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11694 else
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11696 closing open displays. This is no problem if you just use
11697 one display, but if you use more than one and close one of them
11698 Emacs may crash." >&5
11699 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11700 closing open displays. This is no problem if you just use
11701 one display, but if you use more than one and close one of them
11702 Emacs may crash." >&2;}
11703 sleep 3
11711 if test "${HAVE_GTK}" = "yes"; then
11713 if test "$with_toolkit_scroll_bars" != no; then
11714 with_toolkit_scroll_bars=yes
11717 HAVE_GTK_FILE_SELECTION=no
11718 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11719 #include <gtk/gtk.h>
11721 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11722 HAVE_GTK_FILE_SELECTION=yes
11723 else
11724 HAVE_GTK_FILE_SELECTION=no
11727 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11728 for ac_func in gtk_file_selection_new
11729 do :
11730 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11731 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11732 cat >>confdefs.h <<_ACEOF
11733 #define HAVE_GTK_FILE_SELECTION_NEW 1
11734 _ACEOF
11737 done
11741 HAVE_GTK_HANDLE_BOX=no
11742 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11743 #include <gtk/gtk.h>
11745 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11746 HAVE_GTK_HANDLE_BOX=yes
11747 else
11748 HAVE_GTK_HANDLE_BOX=no
11751 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11752 for ac_func in gtk_handle_box_new
11753 do :
11754 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11755 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11756 cat >>confdefs.h <<_ACEOF
11757 #define HAVE_GTK_HANDLE_BOX_NEW 1
11758 _ACEOF
11761 done
11765 HAVE_GTK_TEAROFF_MENU_ITEM=no
11766 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11767 #include <gtk/gtk.h>
11769 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11770 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11771 else
11772 HAVE_GTK_TEAROFF_MENU_ITEM=no
11775 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11776 for ac_func in gtk_tearoff_menu_item_new
11777 do :
11778 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11779 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11780 cat >>confdefs.h <<_ACEOF
11781 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11782 _ACEOF
11785 done
11789 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11790 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11791 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11792 gtk_orientable_set_orientation \
11793 gtk_window_set_has_resize_grip
11794 do :
11795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11797 eval as_val=\$$as_ac_var
11798 if test "x$as_val" = x""yes; then :
11799 cat >>confdefs.h <<_ACEOF
11800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11801 _ACEOF
11804 done
11807 term_header=gtkutil.h
11810 HAVE_DBUS=no
11811 DBUS_OBJ=
11812 if test "${with_dbus}" = "yes"; then
11814 succeeded=no
11816 if test "$PKG_CONFIG" = "no" ; then
11817 HAVE_DBUS=no
11818 else
11819 PKG_CONFIG_MIN_VERSION=0.9.0
11820 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11822 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11824 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11825 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11826 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11827 edit_cflags="
11828 s,///*,/,g
11829 s/^/ /
11830 s/ -I/ $isystem/g
11831 s/^ //
11833 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11834 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11836 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11837 succeeded=yes
11838 else
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841 DBUS_CFLAGS=""
11842 DBUS_LIBS=""
11843 ## If we have a custom action on failure, don't print errors, but
11844 ## do set a variable so people can do so. Do it in a subshell
11845 ## to capture any diagnostics in invoking pkg-config.
11846 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11852 else
11853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11858 if test $succeeded = yes; then
11859 HAVE_DBUS=yes
11860 else
11861 HAVE_DBUS=no
11864 if test "$HAVE_DBUS" = yes; then
11865 LIBS="$LIBS $DBUS_LIBS"
11867 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11869 for ac_func in dbus_watch_get_unix_fd \
11870 dbus_type_is_valid \
11871 dbus_validate_bus_name \
11872 dbus_validate_path \
11873 dbus_validate_interface \
11874 dbus_validate_member
11875 do :
11876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11878 eval as_val=\$$as_ac_var
11879 if test "x$as_val" = x""yes; then :
11880 cat >>confdefs.h <<_ACEOF
11881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11882 _ACEOF
11885 done
11887 DBUS_OBJ=dbusbind.o
11892 HAVE_GSETTINGS=no
11893 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11895 succeeded=no
11897 if test "$PKG_CONFIG" = "no" ; then
11898 HAVE_GSETTINGS=no
11899 else
11900 PKG_CONFIG_MIN_VERSION=0.9.0
11901 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11903 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11905 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11906 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11907 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11908 edit_cflags="
11909 s,///*,/,g
11910 s/^/ /
11911 s/ -I/ $isystem/g
11912 s/^ //
11914 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11915 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11917 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11918 succeeded=yes
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 GSETTINGS_CFLAGS=""
11923 GSETTINGS_LIBS=""
11924 ## If we have a custom action on failure, don't print errors, but
11925 ## do set a variable so people can do so. Do it in a subshell
11926 ## to capture any diagnostics in invoking pkg-config.
11927 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11933 else
11934 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11935 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11939 if test $succeeded = yes; then
11940 HAVE_GSETTINGS=yes
11941 else
11942 HAVE_GSETTINGS=no
11945 if test "$HAVE_GSETTINGS" = "yes"; then
11947 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11949 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11950 SETTINGS_LIBS="$GSETTINGS_LIBS"
11954 HAVE_GCONF=no
11955 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11957 succeeded=no
11959 if test "$PKG_CONFIG" = "no" ; then
11960 HAVE_GCONF=no
11961 else
11962 PKG_CONFIG_MIN_VERSION=0.9.0
11963 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11965 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11967 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11968 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11969 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11970 edit_cflags="
11971 s,///*,/,g
11972 s/^/ /
11973 s/ -I/ $isystem/g
11974 s/^ //
11976 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11977 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11979 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11980 succeeded=yes
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 GCONF_CFLAGS=""
11985 GCONF_LIBS=""
11986 ## If we have a custom action on failure, don't print errors, but
11987 ## do set a variable so people can do so. Do it in a subshell
11988 ## to capture any diagnostics in invoking pkg-config.
11989 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11995 else
11996 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11997 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12001 if test $succeeded = yes; then
12002 HAVE_GCONF=yes
12003 else
12004 HAVE_GCONF=no
12007 if test "$HAVE_GCONF" = yes; then
12009 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12011 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
12012 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
12016 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
12018 succeeded=no
12020 if test "$PKG_CONFIG" = "no" ; then
12021 HAVE_GOBJECT=no
12022 else
12023 PKG_CONFIG_MIN_VERSION=0.9.0
12024 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
12026 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
12028 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
12029 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
12030 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
12031 edit_cflags="
12032 s,///*,/,g
12033 s/^/ /
12034 s/ -I/ $isystem/g
12035 s/^ //
12037 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
12038 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
12040 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
12041 succeeded=yes
12042 else
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044 $as_echo "no" >&6; }
12045 GOBJECT_CFLAGS=""
12046 GOBJECT_LIBS=""
12047 ## If we have a custom action on failure, don't print errors, but
12048 ## do set a variable so people can do so. Do it in a subshell
12049 ## to capture any diagnostics in invoking pkg-config.
12050 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
12056 else
12057 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12058 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12062 if test $succeeded = yes; then
12063 HAVE_GOBJECT=yes
12064 else
12065 HAVE_GOBJECT=no
12068 if test "$HAVE_GOBJECT" = "yes"; then
12069 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
12070 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
12072 SAVE_CFLAGS="$CFLAGS"
12073 SAVE_LIBS="$LIBS"
12074 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
12075 LIBS="$SETTINGS_LIBS $LIBS"
12076 for ac_func in g_type_init
12077 do :
12078 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
12079 if test "x$ac_cv_func_g_type_init" = x""yes; then :
12080 cat >>confdefs.h <<_ACEOF
12081 #define HAVE_G_TYPE_INIT 1
12082 _ACEOF
12085 done
12087 CFLAGS="$SAVE_CFLAGS"
12088 LIBS="$SAVE_LIBS"
12094 HAVE_LIBSELINUX=no
12095 LIBSELINUX_LIBS=
12096 if test "${with_selinux}" = "yes"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12098 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12099 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12100 $as_echo_n "(cached) " >&6
12101 else
12102 ac_check_lib_save_LIBS=$LIBS
12103 LIBS="-lselinux $LIBS"
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12107 /* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12110 #ifdef __cplusplus
12111 extern "C"
12112 #endif
12113 char lgetfilecon ();
12115 main ()
12117 return lgetfilecon ();
12119 return 0;
12121 _ACEOF
12122 if ac_fn_c_try_link "$LINENO"; then :
12123 ac_cv_lib_selinux_lgetfilecon=yes
12124 else
12125 ac_cv_lib_selinux_lgetfilecon=no
12127 rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 LIBS=$ac_check_lib_save_LIBS
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12132 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12133 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12134 HAVE_LIBSELINUX=yes
12135 else
12136 HAVE_LIBSELINUX=no
12139 if test "$HAVE_LIBSELINUX" = yes; then
12141 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12143 LIBSELINUX_LIBS=-lselinux
12148 HAVE_GNUTLS=no
12149 if test "${with_gnutls}" = "yes" ; then
12151 succeeded=no
12153 if test "$PKG_CONFIG" = "no" ; then
12154 HAVE_GNUTLS=no
12155 else
12156 PKG_CONFIG_MIN_VERSION=0.9.0
12157 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
12159 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
12161 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
12162 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
12163 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
12164 edit_cflags="
12165 s,///*,/,g
12166 s/^/ /
12167 s/ -I/ $isystem/g
12168 s/^ //
12170 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
12171 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12173 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12174 succeeded=yes
12175 else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12178 LIBGNUTLS_CFLAGS=""
12179 LIBGNUTLS_LIBS=""
12180 ## If we have a custom action on failure, don't print errors, but
12181 ## do set a variable so people can do so. Do it in a subshell
12182 ## to capture any diagnostics in invoking pkg-config.
12183 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12189 else
12190 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12191 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12195 if test $succeeded = yes; then
12196 HAVE_GNUTLS=yes
12197 else
12198 HAVE_GNUTLS=no
12201 if test "${HAVE_GNUTLS}" = "yes"; then
12203 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12207 # Windows loads GnuTLS dynamically
12208 if test "${opsys}" = "mingw32"; then
12209 LIBGNUTLS_LIBS=
12210 else
12211 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12212 LIBS="$LIBGNUTLS_LIBS $LIBS"
12219 NOTIFY_OBJ=
12220 NOTIFY_SUMMARY=no
12222 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12223 with_file_notification=no
12226 case $with_file_notification,$opsys in
12227 w32,* | yes,mingw32)
12228 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12229 if test "x$ac_cv_header_windows_h" = x""yes; then :
12234 if test "$ac_cv_header_windows_h" = yes ; then
12236 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12238 NOTIFY_OBJ=w32notify.o
12239 NOTIFY_SUMMARY="yes (w32)"
12240 fi ;;
12241 esac
12243 case $with_file_notification,$NOTIFY_OBJ in
12244 gfile, | yes,)
12246 succeeded=no
12248 if test "$PKG_CONFIG" = "no" ; then
12249 HAVE_GFILENOTIFY=no
12250 else
12251 PKG_CONFIG_MIN_VERSION=0.9.0
12252 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12254 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12256 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12257 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12258 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12259 edit_cflags="
12260 s,///*,/,g
12261 s/^/ /
12262 s/ -I/ $isystem/g
12263 s/^ //
12265 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12266 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12268 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12269 succeeded=yes
12270 else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 $as_echo "no" >&6; }
12273 GFILENOTIFY_CFLAGS=""
12274 GFILENOTIFY_LIBS=""
12275 ## If we have a custom action on failure, don't print errors, but
12276 ## do set a variable so people can do so. Do it in a subshell
12277 ## to capture any diagnostics in invoking pkg-config.
12278 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12284 else
12285 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12286 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12290 if test $succeeded = yes; then
12291 HAVE_GFILENOTIFY=yes
12292 else
12293 HAVE_GFILENOTIFY=no
12296 if test "$HAVE_GFILENOTIFY" = "yes"; then
12298 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12300 NOTIFY_OBJ=gfilenotify.o
12301 NOTIFY_SUMMARY="yes -lgio (gfile)"
12302 fi ;;
12303 esac
12305 case $with_file_notification,$NOTIFY_OBJ in
12306 inotify, | yes,)
12307 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12308 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12313 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12314 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12315 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12319 if test "$ac_cv_func_inotify_init1" = yes; then
12321 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12323 NOTIFY_OBJ=inotify.o
12324 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12326 fi ;;
12327 esac
12329 case $with_file_notification,$NOTIFY_OBJ in
12330 yes,* | no,* | *,?*) ;;
12331 *) as_fn_error "File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12332 esac
12334 if test -n "$NOTIFY_OBJ"; then
12336 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12343 HAVE_XAW3D=no
12344 LUCID_LIBW=
12345 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12346 if test "$with_xaw3d" != no; then
12347 if test "${emacs_cv_xaw3d+set}" = set; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12353 #include <X11/Intrinsic.h>
12354 #include <X11/Xaw3d/Simple.h>
12356 main ()
12360 return 0;
12362 _ACEOF
12363 if ac_fn_c_try_link "$LINENO"; then :
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12365 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12366 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lXaw3d $LIBS"
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12377 #ifdef __cplusplus
12378 extern "C"
12379 #endif
12380 char XawScrollbarSetThumb ();
12382 main ()
12384 return XawScrollbarSetThumb ();
12386 return 0;
12388 _ACEOF
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12391 else
12392 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12394 rm -f core conftest.err conftest.$ac_objext \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12399 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12400 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12401 emacs_cv_xaw3d=yes
12402 else
12403 emacs_cv_xaw3d=no
12406 else
12407 emacs_cv_xaw3d=no
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12413 else
12414 emacs_cv_xaw3d=no
12416 if test $emacs_cv_xaw3d = yes; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12418 $as_echo_n "checking for xaw3d... " >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12420 $as_echo "yes; using Lucid toolkit" >&6; }
12421 USE_X_TOOLKIT=LUCID
12422 HAVE_XAW3D=yes
12423 LUCID_LIBW=-lXaw3d
12425 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12427 else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12429 $as_echo_n "checking for xaw3d... " >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12433 $as_echo_n "checking for libXaw... " >&6; }
12434 if test "${emacs_cv_xaw+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12440 #include <X11/Intrinsic.h>
12441 #include <X11/Xaw/Simple.h>
12443 main ()
12447 return 0;
12449 _ACEOF
12450 if ac_fn_c_try_link "$LINENO"; then :
12451 emacs_cv_xaw=yes
12452 else
12453 emacs_cv_xaw=no
12455 rm -f core conftest.err conftest.$ac_objext \
12456 conftest$ac_exeext conftest.$ac_ext
12459 if test $emacs_cv_xaw = yes; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12461 $as_echo "yes; using Lucid toolkit" >&6; }
12462 USE_X_TOOLKIT=LUCID
12463 LUCID_LIBW=-lXaw
12464 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12465 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12466 else
12467 as_fn_error "No X toolkit could be found.
12468 If you are sure you want Emacs compiled without an X toolkit, pass
12469 --with-x-toolkit=no
12470 to configure. Otherwise, install the development libraries for the toolkit
12471 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12476 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12478 LIBXTR6=
12479 if test "${USE_X_TOOLKIT}" != "none"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12481 $as_echo_n "checking X11 toolkit version... " >&6; }
12482 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <X11/Intrinsic.h>
12489 main ()
12491 #if XtSpecificationRelease < 6
12492 fail;
12493 #endif
12496 return 0;
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 emacs_cv_x11_toolkit_version_6=yes
12501 else
12502 emacs_cv_x11_toolkit_version_6=no
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12508 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12509 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12511 $as_echo "6 or newer" >&6; }
12513 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12515 LIBXTR6="-lSM -lICE"
12516 case "$opsys" in
12517 ## Use libw.a along with X11R6 Xt.
12518 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12519 esac
12520 else
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12522 $as_echo "before 6" >&6; }
12525 OLDLIBS="$LIBS"
12526 if test x$HAVE_X11XTR6 = xyes; then
12527 LIBS="-lXt -lSM -lICE $LIBS"
12528 else
12529 LIBS="-lXt $LIBS"
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12532 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12533 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 ac_check_lib_save_LIBS=$LIBS
12537 LIBS="-lXmu $LIBS"
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h. */
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 char XmuConvertStandardSelection ();
12549 main ()
12551 return XmuConvertStandardSelection ();
12553 return 0;
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12558 else
12559 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext conftest.$ac_ext
12563 LIBS=$ac_check_lib_save_LIBS
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12566 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12567 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12568 cat >>confdefs.h <<_ACEOF
12569 #define HAVE_LIBXMU 1
12570 _ACEOF
12572 LIBS="-lXmu $LIBS"
12576 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12580 LIBXMU=-lXmu
12581 case $opsys in
12582 ## These systems don't supply Xmu.
12583 hpux* | aix4-2 )
12584 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12586 mingw32 )
12587 LIBXMU=
12589 esac
12592 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12593 if test "${HAVE_X11}" = "yes"; then
12594 if test "${USE_X_TOOLKIT}" != "none"; then
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12596 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12597 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 ac_check_lib_save_LIBS=$LIBS
12601 LIBS="-lXext $LIBS"
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 char XShapeQueryExtension ();
12613 main ()
12615 return XShapeQueryExtension ();
12617 return 0;
12619 _ACEOF
12620 if ac_fn_c_try_link "$LINENO"; then :
12621 ac_cv_lib_Xext_XShapeQueryExtension=yes
12622 else
12623 ac_cv_lib_Xext_XShapeQueryExtension=no
12625 rm -f core conftest.err conftest.$ac_objext \
12626 conftest$ac_exeext conftest.$ac_ext
12627 LIBS=$ac_check_lib_save_LIBS
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12630 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12631 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12632 cat >>confdefs.h <<_ACEOF
12633 #define HAVE_LIBXEXT 1
12634 _ACEOF
12636 LIBS="-lXext $LIBS"
12643 LIBXP=
12644 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12645 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12646 if test -d /usr/include/openmotif; then
12647 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12648 emacs_cv_openmotif=yes
12649 case "$canonical" in
12650 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12651 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12654 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12655 esac
12656 else
12657 emacs_cv_openmotif=no
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12660 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12661 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 #include <Xm/Xm.h>
12668 main ()
12670 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12671 int x = 5;
12672 #else
12673 Motif version prior to 2.1.
12674 #endif
12676 return 0;
12678 _ACEOF
12679 if ac_fn_c_try_compile "$LINENO"; then :
12680 emacs_cv_motif_version_2_1=yes
12681 else
12682 emacs_cv_motif_version_2_1=no
12684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12687 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12688 if test $emacs_cv_motif_version_2_1 = yes; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12690 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12691 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 ac_check_lib_save_LIBS=$LIBS
12695 LIBS="-lXp $LIBS"
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 char XpCreateContext ();
12707 main ()
12709 return XpCreateContext ();
12711 return 0;
12713 _ACEOF
12714 if ac_fn_c_try_link "$LINENO"; then :
12715 ac_cv_lib_Xp_XpCreateContext=yes
12716 else
12717 ac_cv_lib_Xp_XpCreateContext=no
12719 rm -f core conftest.err conftest.$ac_objext \
12720 conftest$ac_exeext conftest.$ac_ext
12721 LIBS=$ac_check_lib_save_LIBS
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12724 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12725 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12726 LIBXP=-lXp
12729 if test x$emacs_cv_openmotif = xyes; then
12730 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12734 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12735 if test "${emacs_cv_lesstif+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 # We put this in CFLAGS temporarily to precede other -I options
12739 # that might be in CFLAGS temporarily.
12740 # We put this in CPPFLAGS where it precedes the other -I options.
12741 OLD_CPPFLAGS=$CPPFLAGS
12742 OLD_CFLAGS=$CFLAGS
12743 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12744 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12749 main ()
12751 int x = 5;
12753 return 0;
12755 _ACEOF
12756 if ac_fn_c_try_compile "$LINENO"; then :
12757 emacs_cv_lesstif=yes
12758 else
12759 emacs_cv_lesstif=no
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12764 $as_echo "$emacs_cv_lesstif" >&6; }
12765 if test $emacs_cv_lesstif = yes; then
12766 # Make sure this -I option remains in CPPFLAGS after it is set
12767 # back to REAL_CPPFLAGS.
12768 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12769 # have those other -I options anyway. Ultimately, having this
12770 # directory ultimately in CPPFLAGS will be enough.
12771 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12772 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12773 else
12774 CFLAGS=$OLD_CFLAGS
12775 CPPFLAGS=$OLD_CPPFLAGS
12778 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12779 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12781 else
12782 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12789 USE_TOOLKIT_SCROLL_BARS=no
12790 if test "${with_toolkit_scroll_bars}" != "no"; then
12791 if test "${USE_X_TOOLKIT}" != "none"; then
12792 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12793 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12795 HAVE_XAW3D=no
12796 USE_TOOLKIT_SCROLL_BARS=yes
12797 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12798 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12800 USE_TOOLKIT_SCROLL_BARS=yes
12802 elif test "${HAVE_GTK}" = "yes"; then
12803 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12805 USE_TOOLKIT_SCROLL_BARS=yes
12806 elif test "${HAVE_NS}" = "yes"; then
12807 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12809 USE_TOOLKIT_SCROLL_BARS=yes
12810 elif test "${HAVE_W32}" = "yes"; then
12811 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12813 USE_TOOLKIT_SCROLL_BARS=yes
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12820 #include <X11/Xlib.h>
12821 #include <X11/Xresource.h>
12823 main ()
12825 XIMProc callback;
12827 return 0;
12829 _ACEOF
12830 if ac_fn_c_try_compile "$LINENO"; then :
12831 HAVE_XIM=yes
12833 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12835 else
12836 HAVE_XIM=no
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 if test "${with_xim}" != "no"; then
12843 $as_echo "#define USE_XIM 1" >>confdefs.h
12848 if test "${HAVE_XIM}" != "no"; then
12849 late_CFLAGS=$CFLAGS
12850 if test "$GCC" = yes; then
12851 CFLAGS="$CFLAGS --pedantic-errors"
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12856 #include <X11/Xlib.h>
12857 #include <X11/Xresource.h>
12859 main ()
12861 Display *display;
12862 XrmDatabase db;
12863 char *res_name;
12864 char *res_class;
12865 XIMProc callback;
12866 XPointer *client_data;
12867 #ifndef __GNUC__
12868 /* If we're not using GCC, it's probably not XFree86, and this is
12869 probably right, but we can't use something like --pedantic-errors. */
12870 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12871 char*, XIMProc, XPointer*);
12872 #endif
12873 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12874 client_data);
12876 return 0;
12878 _ACEOF
12879 if ac_fn_c_try_compile "$LINENO"; then :
12880 emacs_cv_arg6_star=yes
12882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12883 if test "$emacs_cv_arg6_star" = yes; then
12884 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12886 else
12887 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12890 CFLAGS=$late_CFLAGS
12893 ### Start of font-backend (under any platform) section.
12894 # (nothing here yet -- this is a placeholder)
12895 ### End of font-backend (under any platform) section.
12897 ### Start of font-backend (under X11) section.
12898 if test "${HAVE_X11}" = "yes"; then
12900 succeeded=no
12902 if test "$PKG_CONFIG" = "no" ; then
12903 HAVE_FC=no
12904 else
12905 PKG_CONFIG_MIN_VERSION=0.9.0
12906 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12908 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12910 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12911 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12912 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12913 edit_cflags="
12914 s,///*,/,g
12915 s/^/ /
12916 s/ -I/ $isystem/g
12917 s/^ //
12919 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12920 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12922 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12923 succeeded=yes
12924 else
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12927 FONTCONFIG_CFLAGS=""
12928 FONTCONFIG_LIBS=""
12929 ## If we have a custom action on failure, don't print errors, but
12930 ## do set a variable so people can do so. Do it in a subshell
12931 ## to capture any diagnostics in invoking pkg-config.
12932 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12938 else
12939 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12940 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12944 if test $succeeded = yes; then
12945 HAVE_FC=yes
12946 else
12947 HAVE_FC=no
12951 ## Use -lXft if available, unless `--with-xft=no'.
12952 HAVE_XFT=maybe
12953 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12954 with_xft="no";
12956 if test "x${with_xft}" != "xno"; then
12959 succeeded=no
12961 if test "$PKG_CONFIG" = "no" ; then
12962 HAVE_XFT=no
12963 else
12964 PKG_CONFIG_MIN_VERSION=0.9.0
12965 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12967 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12969 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12970 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12971 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12972 edit_cflags="
12973 s,///*,/,g
12974 s/^/ /
12975 s/ -I/ $isystem/g
12976 s/^ //
12978 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12979 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12981 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12982 succeeded=yes
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986 XFT_CFLAGS=""
12987 XFT_LIBS=""
12988 ## If we have a custom action on failure, don't print errors, but
12989 ## do set a variable so people can do so. Do it in a subshell
12990 ## to capture any diagnostics in invoking pkg-config.
12991 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12997 else
12998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13003 if test $succeeded = yes; then
13005 else
13006 HAVE_XFT=no
13009 ## Because xftfont.c uses XRenderQueryExtension, we also
13010 ## need to link to -lXrender.
13011 HAVE_XRENDER=no
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13013 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13014 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lXrender $LIBS"
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13025 #ifdef __cplusplus
13026 extern "C"
13027 #endif
13028 char XRenderQueryExtension ();
13030 main ()
13032 return XRenderQueryExtension ();
13034 return 0;
13036 _ACEOF
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13039 else
13040 ac_cv_lib_Xrender_XRenderQueryExtension=no
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13047 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13048 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13049 HAVE_XRENDER=yes
13052 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13053 OLD_CPPFLAGS="$CPPFLAGS"
13054 OLD_CFLAGS="$CFLAGS"
13055 OLD_LIBS="$LIBS"
13056 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13057 CFLAGS="$CFLAGS $XFT_CFLAGS"
13058 XFT_LIBS="-lXrender $XFT_LIBS"
13059 LIBS="$XFT_LIBS $LIBS"
13060 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
13062 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13064 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13065 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-lXft $XFT_LIBS $LIBS"
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13076 #ifdef __cplusplus
13077 extern "C"
13078 #endif
13079 char XftFontOpen ();
13081 main ()
13083 return XftFontOpen ();
13085 return 0;
13087 _ACEOF
13088 if ac_fn_c_try_link "$LINENO"; then :
13089 ac_cv_lib_Xft_XftFontOpen=yes
13090 else
13091 ac_cv_lib_Xft_XftFontOpen=no
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095 LIBS=$ac_check_lib_save_LIBS
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13098 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13099 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
13100 HAVE_XFT=yes
13107 if test "${HAVE_XFT}" = "yes"; then
13109 $as_echo "#define HAVE_XFT 1" >>confdefs.h
13112 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13113 else
13114 CPPFLAGS="$OLD_CPPFLAGS"
13115 CFLAGS="$OLD_CFLAGS"
13116 LIBS="$OLD_LIBS"
13117 fi # "${HAVE_XFT}" = "yes"
13118 fi # "$HAVE_XFT" != no
13119 fi # "x${with_xft}" != "xno"
13121 ## We used to allow building with FreeType and without Xft.
13122 ## However, the ftx font backend driver is not in good shape.
13123 if test "$HAVE_XFT" != "yes"; then
13124 HAVE_XFT=no
13125 HAVE_FREETYPE=no
13126 else
13128 succeeded=no
13130 if test "$PKG_CONFIG" = "no" ; then
13131 HAVE_FREETYPE=no
13132 else
13133 PKG_CONFIG_MIN_VERSION=0.9.0
13134 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
13136 $as_echo_n "checking for freetype2... " >&6; }
13138 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
13139 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
13140 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
13141 edit_cflags="
13142 s,///*,/,g
13143 s/^/ /
13144 s/ -I/ $isystem/g
13145 s/^ //
13147 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
13148 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
13150 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
13151 succeeded=yes
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 FREETYPE_CFLAGS=""
13156 FREETYPE_LIBS=""
13157 ## If we have a custom action on failure, don't print errors, but
13158 ## do set a variable so people can do so. Do it in a subshell
13159 ## to capture any diagnostics in invoking pkg-config.
13160 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
13166 else
13167 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13168 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13172 if test $succeeded = yes; then
13173 HAVE_FREETYPE=yes
13174 else
13175 HAVE_FREETYPE=no
13179 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13182 HAVE_LIBOTF=no
13183 if test "${HAVE_FREETYPE}" = "yes"; then
13185 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13187 if test "${with_libotf}" != "no"; then
13189 succeeded=no
13191 if test "$PKG_CONFIG" = "no" ; then
13192 HAVE_LIBOTF=no
13193 else
13194 PKG_CONFIG_MIN_VERSION=0.9.0
13195 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13197 $as_echo_n "checking for libotf... " >&6; }
13199 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13200 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13201 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13202 edit_cflags="
13203 s,///*,/,g
13204 s/^/ /
13205 s/ -I/ $isystem/g
13206 s/^ //
13208 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13209 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13211 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13212 succeeded=yes
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13216 LIBOTF_CFLAGS=""
13217 LIBOTF_LIBS=""
13218 ## If we have a custom action on failure, don't print errors, but
13219 ## do set a variable so people can do so. Do it in a subshell
13220 ## to capture any diagnostics in invoking pkg-config.
13221 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13227 else
13228 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13229 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13233 if test $succeeded = yes; then
13234 HAVE_LIBOTF=yes
13235 else
13236 HAVE_LIBOTF=no
13239 if test "$HAVE_LIBOTF" = "yes"; then
13241 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13244 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13245 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-lotf $LIBS"
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13256 #ifdef __cplusplus
13257 extern "C"
13258 #endif
13259 char OTF_get_variation_glyphs ();
13261 main ()
13263 return OTF_get_variation_glyphs ();
13265 return 0;
13267 _ACEOF
13268 if ac_fn_c_try_link "$LINENO"; then :
13269 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13270 else
13271 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13273 rm -f core conftest.err conftest.$ac_objext \
13274 conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13278 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13279 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13280 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13281 else
13282 HAVE_OTF_GET_VARIATION_GLYPHS=no
13285 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13287 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13294 HAVE_M17N_FLT=no
13295 if test "${HAVE_LIBOTF}" = yes; then
13296 if test "${with_m17n_flt}" != "no"; then
13298 succeeded=no
13300 if test "$PKG_CONFIG" = "no" ; then
13301 HAVE_M17N_FLT=no
13302 else
13303 PKG_CONFIG_MIN_VERSION=0.9.0
13304 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13306 $as_echo_n "checking for m17n-flt... " >&6; }
13308 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13309 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13310 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13311 edit_cflags="
13312 s,///*,/,g
13313 s/^/ /
13314 s/ -I/ $isystem/g
13315 s/^ //
13317 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13318 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13320 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13321 succeeded=yes
13322 else
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324 $as_echo "no" >&6; }
13325 M17N_FLT_CFLAGS=""
13326 M17N_FLT_LIBS=""
13327 ## If we have a custom action on failure, don't print errors, but
13328 ## do set a variable so people can do so. Do it in a subshell
13329 ## to capture any diagnostics in invoking pkg-config.
13330 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13336 else
13337 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13338 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13342 if test $succeeded = yes; then
13343 HAVE_M17N_FLT=yes
13344 else
13345 HAVE_M17N_FLT=no
13348 if test "$HAVE_M17N_FLT" = "yes"; then
13350 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13355 else
13356 HAVE_XFT=no
13357 HAVE_FREETYPE=no
13358 HAVE_LIBOTF=no
13359 HAVE_M17N_FLT=no
13362 ### End of font-backend (under X11) section.
13373 ### Use -lXpm if available, unless `--with-xpm=no'.
13374 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13375 HAVE_XPM=no
13376 LIBXPM=
13377 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13378 if test "${with_xpm}" != "no"; then
13379 SAVE_CPPFLAGS="$CPPFLAGS"
13380 SAVE_LDFLAGS="$LDFLAGS"
13381 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13382 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13383 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13384 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13386 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13387 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 ac_check_lib_save_LIBS=$LIBS
13391 LIBS="-lXpm $LIBS"
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13395 /* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply. */
13398 #ifdef __cplusplus
13399 extern "C"
13400 #endif
13401 char XpmReadFileToImage ();
13403 main ()
13405 return XpmReadFileToImage ();
13407 return 0;
13409 _ACEOF
13410 if ac_fn_c_try_link "$LINENO"; then :
13411 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13412 else
13413 ac_cv_lib_Xpm_XpmReadFileToImage=no
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 LIBS=$ac_check_lib_save_LIBS
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13420 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13421 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13422 HAVE_XPM=yes
13428 if test "${HAVE_XPM}" = "yes"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13430 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13433 #include "X11/xpm.h"
13434 #ifndef XpmReturnAllocPixels
13435 no_return_alloc_pixels
13436 #endif
13438 _ACEOF
13439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13440 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13441 HAVE_XPM=no
13442 else
13443 HAVE_XPM=yes
13445 rm -f conftest*
13448 if test "${HAVE_XPM}" = "yes"; then
13449 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13451 $as_echo "yes" >&6; }
13452 else
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13455 CPPFLAGS="$SAVE_CPPFLAGS"
13456 LDFLAGS="$SAVE_LDFLAGS"
13461 if test "${HAVE_XPM}" = "yes"; then
13463 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13465 LIBXPM=-lXpm
13469 if test "${HAVE_X11}" = "yes"; then
13470 if test "${with_xpm}" != "no"; then
13471 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13472 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13474 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13475 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lXpm -lX11 $LIBS"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13483 /* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13486 #ifdef __cplusplus
13487 extern "C"
13488 #endif
13489 char XpmReadFileToPixmap ();
13491 main ()
13493 return XpmReadFileToPixmap ();
13495 return 0;
13497 _ACEOF
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13500 else
13501 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13508 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13509 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13510 HAVE_XPM=yes
13516 if test "${HAVE_XPM}" = "yes"; then
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13518 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13521 #include "X11/xpm.h"
13522 #ifndef XpmReturnAllocPixels
13523 no_return_alloc_pixels
13524 #endif
13526 _ACEOF
13527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13528 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13529 HAVE_XPM=no
13530 else
13531 HAVE_XPM=yes
13533 rm -f conftest*
13536 if test "${HAVE_XPM}" = "yes"; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13538 $as_echo "yes" >&6; }
13539 else
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541 $as_echo "no" >&6; }
13546 if test "${HAVE_XPM}" = "yes"; then
13548 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13550 LIBXPM=-lXpm
13554 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13555 ### slightly different requirements wrt image libraries (it doesn't
13556 ### use -lXpm because it loads the xpm shared library dynamically at
13557 ### run time).
13558 if test "${opsys}" = "mingw32"; then
13559 if test "${with_xpm}" != "no"; then
13560 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13561 #define FOR_MSW 1
13563 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13564 HAVE_XPM=yes
13565 else
13566 HAVE_XPM=no
13572 if test "${HAVE_XPM}" = "yes"; then
13574 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13581 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13582 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13583 HAVE_JPEG=no
13584 LIBJPEG=
13585 if test "${opsys}" = "mingw32"; then
13586 if test "${with_jpeg}" != "no"; then
13587 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13588 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13589 HAVE_JPEG=yes
13590 else
13591 HAVE_JPEG=no
13596 if test "${HAVE_JPEG}" = "yes"; then
13597 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #include <jpeglib.h>
13602 version=JPEG_LIB_VERSION
13604 _ACEOF
13605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13606 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13607 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13609 else
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13611 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13612 HAVE_JPEG=no
13614 rm -f conftest*
13617 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13618 if test "${with_jpeg}" != "no"; then
13619 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13620 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13622 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13623 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 ac_check_lib_save_LIBS=$LIBS
13627 LIBS="-ljpeg $LIBS"
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13631 /* Override any GCC internal prototype to avoid an error.
13632 Use char because int might match the return type of a GCC
13633 builtin and then its argument prototype would still apply. */
13634 #ifdef __cplusplus
13635 extern "C"
13636 #endif
13637 char jpeg_destroy_compress ();
13639 main ()
13641 return jpeg_destroy_compress ();
13643 return 0;
13645 _ACEOF
13646 if ac_fn_c_try_link "$LINENO"; then :
13647 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13648 else
13649 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13651 rm -f core conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13653 LIBS=$ac_check_lib_save_LIBS
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13656 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13657 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13658 HAVE_JPEG=yes
13666 if test "${HAVE_JPEG}" = "yes"; then
13667 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 #include <jpeglib.h>
13672 version=JPEG_LIB_VERSION
13674 _ACEOF
13675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13676 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13677 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13679 else
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13681 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13682 HAVE_JPEG=no
13684 rm -f conftest*
13687 if test "${HAVE_JPEG}" = "yes"; then
13688 LIBJPEG=-ljpeg
13693 ### Use -lpng if available, unless `--with-png=no'.
13694 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13695 HAVE_PNG=no
13696 LIBPNG=
13697 if test "${opsys}" = "mingw32"; then
13698 if test "${with_png}" != "no"; then
13699 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13700 if test "x$ac_cv_header_png_h" = x""yes; then :
13701 HAVE_PNG=yes
13702 else
13703 HAVE_PNG=no
13708 if test "${HAVE_PNG}" = "yes"; then
13710 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13713 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13714 # include <libpng/png.h>
13715 #else
13716 # include <png.h>
13717 #endif
13720 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13722 else
13724 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13729 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13730 if test "${with_png}" != "no"; then
13731 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13732 # in /usr/include/libpng.
13733 for ac_header in png.h libpng/png.h
13734 do :
13735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13736 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13737 eval as_val=\$$as_ac_Header
13738 if test "x$as_val" = x""yes; then :
13739 cat >>confdefs.h <<_ACEOF
13740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13741 _ACEOF
13742 break
13745 done
13747 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13749 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13750 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 ac_check_lib_save_LIBS=$LIBS
13754 LIBS="-lpng -lz -lm $LIBS"
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13758 /* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13761 #ifdef __cplusplus
13762 extern "C"
13763 #endif
13764 char png_get_channels ();
13766 main ()
13768 return png_get_channels ();
13770 return 0;
13772 _ACEOF
13773 if ac_fn_c_try_link "$LINENO"; then :
13774 ac_cv_lib_png_png_get_channels=yes
13775 else
13776 ac_cv_lib_png_png_get_channels=no
13778 rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13780 LIBS=$ac_check_lib_save_LIBS
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13783 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13784 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13785 HAVE_PNG=yes
13791 if test "${HAVE_PNG}" = "yes"; then
13793 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13795 LIBPNG="-lpng -lz -lm"
13797 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13798 # include <libpng/png.h>
13799 #else
13800 # include <png.h>
13801 #endif
13804 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13806 else
13808 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13816 HAVE_ZLIB=no
13817 LIBZ=
13818 if test "${with_zlib}" != "no"; then
13819 OLIBS=$LIBS
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13821 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13822 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 ac_func_search_save_LIBS=$LIBS
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13829 /* Override any GCC internal prototype to avoid an error.
13830 Use char because int might match the return type of a GCC
13831 builtin and then its argument prototype would still apply. */
13832 #ifdef __cplusplus
13833 extern "C"
13834 #endif
13835 char inflateEnd ();
13837 main ()
13839 return inflateEnd ();
13841 return 0;
13843 _ACEOF
13844 for ac_lib in '' z; do
13845 if test -z "$ac_lib"; then
13846 ac_res="none required"
13847 else
13848 ac_res=-l$ac_lib
13849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13851 if ac_fn_c_try_link "$LINENO"; then :
13852 ac_cv_search_inflateEnd=$ac_res
13854 rm -f core conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext
13856 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13857 break
13859 done
13860 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13862 else
13863 ac_cv_search_inflateEnd=no
13865 rm conftest.$ac_ext
13866 LIBS=$ac_func_search_save_LIBS
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13869 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13870 ac_res=$ac_cv_search_inflateEnd
13871 if test "$ac_res" != no; then :
13872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13873 HAVE_ZLIB=yes
13876 LIBS=$OLIBS
13877 case $ac_cv_search_inflateEnd in
13878 -*) LIBZ=$ac_cv_search_inflateEnd ;;
13879 esac
13881 if test "${HAVE_ZLIB}" = "yes"; then
13883 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13885 ### mingw32 doesn't use -lz, since it loads the library dynamically.
13886 if test "${opsys}" = "mingw32"; then
13887 LIBZ=
13893 ### Use -ltiff if available, unless `--with-tiff=no'.
13894 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13895 HAVE_TIFF=no
13896 LIBTIFF=
13897 if test "${opsys}" = "mingw32"; then
13898 if test "${with_tiff}" != "no"; then
13899 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13900 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13901 HAVE_TIFF=yes
13902 else
13903 HAVE_TIFF=no
13908 if test "${HAVE_TIFF}" = "yes"; then
13910 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13913 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13914 if test "${with_tiff}" != "no"; then
13915 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13916 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13917 tifflibs="-lz -lm"
13918 # At least one tiff package requires the jpeg library.
13919 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13921 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13922 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 ac_check_lib_save_LIBS=$LIBS
13926 LIBS="-ltiff $tifflibs $LIBS"
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 char TIFFGetVersion ();
13938 main ()
13940 return TIFFGetVersion ();
13942 return 0;
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 ac_cv_lib_tiff_TIFFGetVersion=yes
13947 else
13948 ac_cv_lib_tiff_TIFFGetVersion=no
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13955 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13956 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13957 HAVE_TIFF=yes
13965 if test "${HAVE_TIFF}" = "yes"; then
13967 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13969 LIBTIFF=-ltiff
13974 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13975 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13976 HAVE_GIF=no
13977 LIBGIF=
13978 if test "${opsys}" = "mingw32"; then
13979 if test "${with_gif}" != "no"; then
13980 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13981 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13982 HAVE_GIF=yes
13983 else
13984 HAVE_GIF=no
13989 if test "${HAVE_GIF}" = "yes"; then
13991 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13994 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13995 || test "${HAVE_W32}" = "yes"; then
13996 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13997 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13998 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13999 # Earlier versions can crash Emacs.
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
14001 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14002 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14004 else
14005 ac_check_lib_save_LIBS=$LIBS
14006 LIBS="-lgif $LIBS"
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14013 #ifdef __cplusplus
14014 extern "C"
14015 #endif
14016 char EGifPutExtensionLast ();
14018 main ()
14020 return EGifPutExtensionLast ();
14022 return 0;
14024 _ACEOF
14025 if ac_fn_c_try_link "$LINENO"; then :
14026 ac_cv_lib_gif_EGifPutExtensionLast=yes
14027 else
14028 ac_cv_lib_gif_EGifPutExtensionLast=no
14030 rm -f core conftest.err conftest.$ac_objext \
14031 conftest$ac_exeext conftest.$ac_ext
14032 LIBS=$ac_check_lib_save_LIBS
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14035 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14036 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
14037 HAVE_GIF=yes
14038 else
14039 HAVE_GIF=maybe
14046 if test "$HAVE_GIF" = yes; then
14047 LIBGIF=-lgif
14048 elif test "$HAVE_GIF" = maybe; then
14049 # If gif_lib.h but no libgif, try libungif.
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
14051 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
14052 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 ac_check_lib_save_LIBS=$LIBS
14056 LIBS="-lungif $LIBS"
14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14060 /* Override any GCC internal prototype to avoid an error.
14061 Use char because int might match the return type of a GCC
14062 builtin and then its argument prototype would still apply. */
14063 #ifdef __cplusplus
14064 extern "C"
14065 #endif
14066 char EGifPutExtensionLast ();
14068 main ()
14070 return EGifPutExtensionLast ();
14072 return 0;
14074 _ACEOF
14075 if ac_fn_c_try_link "$LINENO"; then :
14076 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14077 else
14078 ac_cv_lib_ungif_EGifPutExtensionLast=no
14080 rm -f core conftest.err conftest.$ac_objext \
14081 conftest$ac_exeext conftest.$ac_ext
14082 LIBS=$ac_check_lib_save_LIBS
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14085 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14086 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
14087 HAVE_GIF=yes
14088 else
14089 HAVE_GIF=no
14092 test "$HAVE_GIF" = yes && LIBGIF=-lungif
14095 if test "${HAVE_GIF}" = "yes"; then
14097 $as_echo "#define HAVE_GIF 1" >>confdefs.h
14103 if test "${HAVE_X11}" = "yes"; then
14104 MISSING=""
14105 WITH_NO=""
14106 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14107 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14108 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14109 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14110 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14111 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14112 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14113 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14114 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14115 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14117 if test "X${MISSING}" != X; then
14118 as_fn_error "The following required libraries were not found:
14119 $MISSING
14120 Maybe some development libraries/packages are missing?
14121 If you don't want to link with them give
14122 $WITH_NO
14123 as options to configure" "$LINENO" 5
14127 ### Use -lgpm if available, unless `--with-gpm=no'.
14128 HAVE_GPM=no
14129 LIBGPM=
14130 if test "${with_gpm}" != "no"; then
14131 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
14132 if test "x$ac_cv_header_gpm_h" = x""yes; then :
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
14134 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
14135 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14138 ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lgpm $LIBS"
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char Gpm_Open ();
14151 main ()
14153 return Gpm_Open ();
14155 return 0;
14157 _ACEOF
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 ac_cv_lib_gpm_Gpm_Open=yes
14160 else
14161 ac_cv_lib_gpm_Gpm_Open=no
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 LIBS=$ac_check_lib_save_LIBS
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14168 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
14169 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
14170 HAVE_GPM=yes
14177 if test "${HAVE_GPM}" = "yes"; then
14179 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14181 LIBGPM=-lgpm
14190 GNUSTEP_CFLAGS=
14191 ### Use NeXTstep API to implement GUI.
14192 if test "${HAVE_NS}" = "yes"; then
14194 $as_echo "#define HAVE_NS 1" >>confdefs.h
14196 if test "${NS_IMPL_COCOA}" = "yes"; then
14198 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14201 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14203 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14205 # See also .m.o rule in Makefile.in */
14206 # FIXME: are all these flags really needed? Document here why. */
14207 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14208 ## Extra CFLAGS applied to src/*.m files.
14209 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"
14211 # We also have mouse menus.
14212 HAVE_MENUS=yes
14213 OTHER_FILES=ns-app
14216 if test "${HAVE_W32}" = "yes"; then
14217 HAVE_MENUS=yes
14220 ### Use session management (-lSM -lICE) if available
14221 HAVE_X_SM=no
14222 LIBXSM=
14223 if test "${HAVE_X11}" = "yes"; then
14224 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14225 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14227 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14228 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 ac_check_lib_save_LIBS=$LIBS
14232 LIBS="-lSM -lICE $LIBS"
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14236 /* Override any GCC internal prototype to avoid an error.
14237 Use char because int might match the return type of a GCC
14238 builtin and then its argument prototype would still apply. */
14239 #ifdef __cplusplus
14240 extern "C"
14241 #endif
14242 char SmcOpenConnection ();
14244 main ()
14246 return SmcOpenConnection ();
14248 return 0;
14250 _ACEOF
14251 if ac_fn_c_try_link "$LINENO"; then :
14252 ac_cv_lib_SM_SmcOpenConnection=yes
14253 else
14254 ac_cv_lib_SM_SmcOpenConnection=no
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14258 LIBS=$ac_check_lib_save_LIBS
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14261 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14262 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14263 HAVE_X_SM=yes
14270 if test "${HAVE_X_SM}" = "yes"; then
14272 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14274 LIBXSM="-lSM -lICE"
14275 case "$LIBS" in
14276 *-lSM*) ;;
14277 *) LIBS="$LIBXSM $LIBS" ;;
14278 esac
14283 ### Use XRandr (-lXrandr) if available
14284 HAVE_XRANDR=no
14285 if test "${HAVE_X11}" = "yes"; then
14286 XRANDR_REQUIRED=1.2.2
14287 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14289 succeeded=no
14291 if test "$PKG_CONFIG" = "no" ; then
14292 HAVE_XRANDR=no
14293 else
14294 PKG_CONFIG_MIN_VERSION=0.9.0
14295 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14297 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14299 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14300 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14301 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14302 edit_cflags="
14303 s,///*,/,g
14304 s/^/ /
14305 s/ -I/ $isystem/g
14306 s/^ //
14308 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14309 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14311 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14312 succeeded=yes
14313 else
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14316 XRANDR_CFLAGS=""
14317 XRANDR_LIBS=""
14318 ## If we have a custom action on failure, don't print errors, but
14319 ## do set a variable so people can do so. Do it in a subshell
14320 ## to capture any diagnostics in invoking pkg-config.
14321 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14327 else
14328 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14329 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14333 if test $succeeded = yes; then
14334 HAVE_XRANDR=yes
14335 else
14336 HAVE_XRANDR=no
14339 if test $HAVE_XRANDR = no; then
14340 # Test old way in case pkg-config doesn't have it (older machines).
14341 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14342 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14344 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14345 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 ac_check_lib_save_LIBS=$LIBS
14349 LIBS="-lXrandr $LIBS"
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14353 /* Override any GCC internal prototype to avoid an error.
14354 Use char because int might match the return type of a GCC
14355 builtin and then its argument prototype would still apply. */
14356 #ifdef __cplusplus
14357 extern "C"
14358 #endif
14359 char XRRGetScreenResources ();
14361 main ()
14363 return XRRGetScreenResources ();
14365 return 0;
14367 _ACEOF
14368 if ac_fn_c_try_link "$LINENO"; then :
14369 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14370 else
14371 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14373 rm -f core conftest.err conftest.$ac_objext \
14374 conftest$ac_exeext conftest.$ac_ext
14375 LIBS=$ac_check_lib_save_LIBS
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14378 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14379 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14380 HAVE_XRANDR=yes
14386 if test $HAVE_XRANDR = yes; then
14387 XRANDR_LIBS=-lXrandr
14391 if test $HAVE_XRANDR = yes; then
14392 SAVE_CFLAGS="$CFLAGS"
14393 SAVE_LIBS="$LIBS"
14394 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14395 LIBS="$XRANDR_LIBS $LIBS"
14396 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14397 do :
14398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14399 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14400 eval as_val=\$$as_ac_var
14401 if test "x$as_val" = x""yes; then :
14402 cat >>confdefs.h <<_ACEOF
14403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14404 _ACEOF
14407 done
14409 CFLAGS="$SAVE_CFLAGS"
14410 LIBS="$SAVE_LIBS"
14413 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14418 ### Use Xinerama (-lXinerama) if available
14419 HAVE_XINERAMA=no
14420 if test "${HAVE_X11}" = "yes"; then
14421 XINERAMA_REQUIRED=1.0.2
14422 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14424 succeeded=no
14426 if test "$PKG_CONFIG" = "no" ; then
14427 HAVE_XINERAMA=no
14428 else
14429 PKG_CONFIG_MIN_VERSION=0.9.0
14430 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14432 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14434 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14435 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14436 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14437 edit_cflags="
14438 s,///*,/,g
14439 s/^/ /
14440 s/ -I/ $isystem/g
14441 s/^ //
14443 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14444 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14446 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14447 succeeded=yes
14448 else
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14451 XINERAMA_CFLAGS=""
14452 XINERAMA_LIBS=""
14453 ## If we have a custom action on failure, don't print errors, but
14454 ## do set a variable so people can do so. Do it in a subshell
14455 ## to capture any diagnostics in invoking pkg-config.
14456 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14462 else
14463 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14464 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14468 if test $succeeded = yes; then
14469 HAVE_XINERAMA=yes
14470 else
14471 HAVE_XINERAMA=no
14474 if test $HAVE_XINERAMA = no; then
14475 # Test old way in case pkg-config doesn't have it (older machines).
14476 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14477 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14479 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14480 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-lXinerama $LIBS"
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14488 /* Override any GCC internal prototype to avoid an error.
14489 Use char because int might match the return type of a GCC
14490 builtin and then its argument prototype would still apply. */
14491 #ifdef __cplusplus
14492 extern "C"
14493 #endif
14494 char XineramaQueryExtension ();
14496 main ()
14498 return XineramaQueryExtension ();
14500 return 0;
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14505 else
14506 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14508 rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14513 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14514 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14515 HAVE_XINERAMA=yes
14521 if test $HAVE_XINERAMA = yes; then
14522 XINERAMA_LIBS=-lXinerama
14526 if test $HAVE_XINERAMA = yes; then
14528 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14534 ### Use libxml (-lxml2) if available
14535 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14536 HAVE_LIBXML2=no
14537 if test "${with_xml2}" != "no"; then
14538 ### I'm not sure what the version number should be, so I just guessed.
14540 succeeded=no
14542 if test "$PKG_CONFIG" = "no" ; then
14543 HAVE_LIBXML2=no
14544 else
14545 PKG_CONFIG_MIN_VERSION=0.9.0
14546 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14548 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14550 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14551 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14552 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14553 edit_cflags="
14554 s,///*,/,g
14555 s/^/ /
14556 s/ -I/ $isystem/g
14557 s/^ //
14559 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14560 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14562 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14563 succeeded=yes
14564 else
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14567 LIBXML2_CFLAGS=""
14568 LIBXML2_LIBS=""
14569 ## If we have a custom action on failure, don't print errors, but
14570 ## do set a variable so people can do so. Do it in a subshell
14571 ## to capture any diagnostics in invoking pkg-config.
14572 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14578 else
14579 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14580 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14584 if test $succeeded = yes; then
14585 HAVE_LIBXML2=yes
14586 else
14587 HAVE_LIBXML2=no
14590 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14591 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14592 SAVE_CPPFLAGS="$CPPFLAGS"
14593 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14594 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14595 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14596 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14598 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14599 HAVE_LIBXML2=yes
14605 CPPFLAGS="$SAVE_CPPFLAGS"
14606 if test "${HAVE_LIBXML2}" = "yes"; then
14607 LIBXML2_LIBS="-lxml2"
14608 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14611 if test "${HAVE_LIBXML2}" = "yes"; then
14612 if test "${opsys}" != "mingw32"; then
14613 LIBS="$LIBXML2_LIBS $LIBS"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14615 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14616 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 ac_check_lib_save_LIBS=$LIBS
14620 LIBS="-lxml2 $LIBS"
14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* end confdefs.h. */
14624 /* Override any GCC internal prototype to avoid an error.
14625 Use char because int might match the return type of a GCC
14626 builtin and then its argument prototype would still apply. */
14627 #ifdef __cplusplus
14628 extern "C"
14629 #endif
14630 char htmlReadMemory ();
14632 main ()
14634 return htmlReadMemory ();
14636 return 0;
14638 _ACEOF
14639 if ac_fn_c_try_link "$LINENO"; then :
14640 ac_cv_lib_xml2_htmlReadMemory=yes
14641 else
14642 ac_cv_lib_xml2_htmlReadMemory=no
14644 rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14646 LIBS=$ac_check_lib_save_LIBS
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14649 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14650 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14651 HAVE_LIBXML2=yes
14652 else
14653 HAVE_LIBXML2=no
14656 else
14657 LIBXML2_LIBS=""
14659 if test "${HAVE_LIBXML2}" = "yes"; then
14661 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14663 else
14664 LIBXML2_LIBS=""
14665 LIBXML2_CFLAGS=""
14672 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14673 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14674 if test "${opsys}" = "mingw32"; then
14675 emacs_cv_netdb_declares_h_errno=yes
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14678 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14679 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14680 $as_echo_n "(cached) " >&6
14681 else
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 #include <netdb.h>
14686 main ()
14688 return h_errno;
14690 return 0;
14692 _ACEOF
14693 if ac_fn_c_try_link "$LINENO"; then :
14694 emacs_cv_netdb_declares_h_errno=yes
14695 else
14696 emacs_cv_netdb_declares_h_errno=no
14698 rm -f core conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14702 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14703 if test $emacs_cv_netdb_declares_h_errno = yes; then
14705 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14709 # sqrt and other floating-point functions such as fmod and frexp
14710 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14711 if test "${opsys}" != "mingw32"; then
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14713 $as_echo_n "checking for sqrt in -lm... " >&6; }
14714 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717 ac_check_lib_save_LIBS=$LIBS
14718 LIBS="-lm $LIBS"
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14722 /* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14725 #ifdef __cplusplus
14726 extern "C"
14727 #endif
14728 char sqrt ();
14730 main ()
14732 return sqrt ();
14734 return 0;
14736 _ACEOF
14737 if ac_fn_c_try_link "$LINENO"; then :
14738 ac_cv_lib_m_sqrt=yes
14739 else
14740 ac_cv_lib_m_sqrt=no
14742 rm -f core conftest.err conftest.$ac_objext \
14743 conftest$ac_exeext conftest.$ac_ext
14744 LIBS=$ac_check_lib_save_LIBS
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14747 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14748 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14749 cat >>confdefs.h <<_ACEOF
14750 #define HAVE_LIBM 1
14751 _ACEOF
14753 LIBS="-lm $LIBS"
14759 # Check for mail-locking functions in a "mail" library. Probably this should
14760 # have the same check as for liblockfile below.
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14762 $as_echo_n "checking for maillock in -lmail... " >&6; }
14763 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 ac_check_lib_save_LIBS=$LIBS
14767 LIBS="-lmail $LIBS"
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14771 /* Override any GCC internal prototype to avoid an error.
14772 Use char because int might match the return type of a GCC
14773 builtin and then its argument prototype would still apply. */
14774 #ifdef __cplusplus
14775 extern "C"
14776 #endif
14777 char maillock ();
14779 main ()
14781 return maillock ();
14783 return 0;
14785 _ACEOF
14786 if ac_fn_c_try_link "$LINENO"; then :
14787 ac_cv_lib_mail_maillock=yes
14788 else
14789 ac_cv_lib_mail_maillock=no
14791 rm -f core conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14793 LIBS=$ac_check_lib_save_LIBS
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14796 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14797 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14798 have_mail=yes
14799 else
14800 have_mail=no
14803 if test $have_mail = yes; then
14804 LIBS_MAIL=-lmail
14805 LIBS="$LIBS_MAIL $LIBS"
14807 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14809 else
14810 LIBS_MAIL=
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14813 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14814 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-llockfile $LIBS"
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 char maillock ();
14830 main ()
14832 return maillock ();
14834 return 0;
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"; then :
14838 ac_cv_lib_lockfile_maillock=yes
14839 else
14840 ac_cv_lib_lockfile_maillock=no
14842 rm -f core conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14844 LIBS=$ac_check_lib_save_LIBS
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14847 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14848 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14849 have_lockfile=yes
14850 else
14851 have_lockfile=no
14854 if test $have_lockfile = yes; then
14855 LIBS_MAIL=-llockfile
14856 LIBS="$LIBS_MAIL $LIBS"
14858 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14860 else
14861 # If we have the shared liblockfile, assume we must use it for mail
14862 # locking (e.g. Debian). If we couldn't link against liblockfile
14863 # (no liblockfile.a installed), ensure that we don't need to.
14864 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14865 set dummy liblockfile.so; ac_word=$2
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14867 $as_echo_n "checking for $ac_word... " >&6; }
14868 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 if test -n "$liblockfile"; then
14872 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14873 else
14874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14875 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14876 for as_dir in $as_dummy
14878 IFS=$as_save_IFS
14879 test -z "$as_dir" && as_dir=.
14880 for ac_exec_ext in '' $ac_executable_extensions; do
14881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14882 ac_cv_prog_liblockfile="yes"
14883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14884 break 2
14886 done
14887 done
14888 IFS=$as_save_IFS
14890 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14893 liblockfile=$ac_cv_prog_liblockfile
14894 if test -n "$liblockfile"; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14896 $as_echo "$liblockfile" >&6; }
14897 else
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899 $as_echo "no" >&6; }
14903 if test $ac_cv_prog_liblockfile = yes; then
14904 as_fn_error "Shared liblockfile found but can't link against it.
14905 This probably means that movemail could lose mail.
14906 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14914 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14915 ## interlock access to the mail spool. The alternative is a lock file named
14916 ## /usr/spool/mail/$USER.lock.
14917 mail_lock=no
14918 case "$opsys" in
14919 aix4-2) mail_lock="lockf" ;;
14921 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14923 ## On GNU/Linux systems, both methods are used by various mail programs.
14924 ## I assume most people are using newer mailers that have heard of flock.
14925 ## Change this if you need to.
14926 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14927 ## configure gets the right answers, and that means *NOT* using flock.
14928 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14929 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14930 ## Debian maintainer hasn't provided a clean fix for Emacs.
14931 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14932 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14933 ## correct logic. -- fx
14934 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14935 ## liblockfile is a Free Software replacement for libmail, used on
14936 ## Debian systems and elsewhere. -rfr.
14937 gnu-*)
14938 mail_lock="flock"
14939 if test $have_mail = yes || test $have_lockfile = yes; then
14940 test $ac_cv_header_maillock_h = yes && mail_lock=no
14944 mingw32)
14945 mail_lock="none-needed" ;;
14946 esac
14948 BLESSMAIL_TARGET=
14949 case "$mail_lock" in
14950 flock)
14951 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14954 lockf)
14955 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14958 none-needed) ;;
14960 *) BLESSMAIL_TARGET="need-blessmail" ;;
14961 esac
14965 for ac_func in accept4 gethostname \
14966 getrusage get_current_dir_name \
14967 lrand48 \
14968 select getpagesize setlocale \
14969 getrlimit setrlimit shutdown getaddrinfo \
14970 strsignal setitimer \
14971 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14972 gai_strerror getline getdelim sync \
14973 difftime posix_memalign \
14974 getpwent endpwent getgrent endgrent \
14975 touchlock \
14976 cfmakeraw cfsetspeed copysign __executable_start log2
14977 do :
14978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14980 eval as_val=\$$as_ac_var
14981 if test "x$as_val" = x""yes; then :
14982 cat >>confdefs.h <<_ACEOF
14983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14984 _ACEOF
14987 done
14990 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14991 ## has a broken `rint' in some library versions including math library
14992 ## version number A.09.05.
14993 ## You can fix the math library by installing patch number PHSS_4630.
14994 ## But we can fix it more reliably for Emacs by just not using rint.
14995 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14996 case $opsys in
14997 hpux*) : ;;
14998 *) for ac_func in random rint
14999 do :
15000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15001 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15002 eval as_val=\$$as_ac_var
15003 if test "x$as_val" = x""yes; then :
15004 cat >>confdefs.h <<_ACEOF
15005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15006 _ACEOF
15009 done
15011 esac
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
15014 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
15015 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
15016 $as_echo_n "(cached) " >&6
15017 else
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15022 main ()
15024 __builtin_unwind_init ();
15026 return 0;
15028 _ACEOF
15029 if ac_fn_c_try_link "$LINENO"; then :
15030 emacs_cv_func___builtin_unwind_init=yes
15031 else
15032 emacs_cv_func___builtin_unwind_init=no
15034 rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
15038 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
15039 if test $emacs_cv_func___builtin_unwind_init = yes; then
15041 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15050 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15051 if test "${ac_cv_sys_largefile_source+set}" = set; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054 while :; do
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #include <sys/types.h> /* for off_t */
15058 #include <stdio.h>
15060 main ()
15062 int (*fp) (FILE *, off_t, int) = fseeko;
15063 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15065 return 0;
15067 _ACEOF
15068 if ac_fn_c_try_link "$LINENO"; then :
15069 ac_cv_sys_largefile_source=no; break
15071 rm -f core conftest.err conftest.$ac_objext \
15072 conftest$ac_exeext conftest.$ac_ext
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 #define _LARGEFILE_SOURCE 1
15076 #include <sys/types.h> /* for off_t */
15077 #include <stdio.h>
15079 main ()
15081 int (*fp) (FILE *, off_t, int) = fseeko;
15082 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15084 return 0;
15086 _ACEOF
15087 if ac_fn_c_try_link "$LINENO"; then :
15088 ac_cv_sys_largefile_source=1; break
15090 rm -f core conftest.err conftest.$ac_objext \
15091 conftest$ac_exeext conftest.$ac_ext
15092 ac_cv_sys_largefile_source=unknown
15093 break
15094 done
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15097 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15098 case $ac_cv_sys_largefile_source in #(
15099 no | unknown) ;;
15101 cat >>confdefs.h <<_ACEOF
15102 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15103 _ACEOF
15105 esac
15106 rm -rf conftest*
15108 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15109 # in glibc 2.1.3, but that breaks too many other things.
15110 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15111 if test $ac_cv_sys_largefile_source != unknown; then
15113 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15118 # UNIX98 PTYs.
15119 for ac_func in grantpt
15120 do :
15121 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15122 if test "x$ac_cv_func_grantpt" = x""yes; then :
15123 cat >>confdefs.h <<_ACEOF
15124 #define HAVE_GRANTPT 1
15125 _ACEOF
15128 done
15131 # PTY-related GNU extensions.
15132 for ac_func in getpt posix_openpt
15133 do :
15134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15136 eval as_val=\$$as_ac_var
15137 if test "x$as_val" = x""yes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15140 _ACEOF
15143 done
15146 # Check this now, so that we will NOT find the above functions in ncurses.
15147 # That is because we have not set up to link ncurses in lib-src.
15148 # It's better to believe a function is not available
15149 # than to expect to find it in ncurses.
15150 # Also we need tputs and friends to be able to build at all.
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15152 $as_echo_n "checking for library containing tputs... " >&6; }
15153 # Run a test program that contains a call to tputs, a call that is
15154 # never executed. This tests whether a pre-'main' dynamic linker
15155 # works with the library. It's too much trouble to actually call
15156 # tputs in the test program, due to portability hassles. When
15157 # cross-compiling, assume the test program will run if it links.
15159 if test "${opsys}" = "mingw32"; then
15160 msg='none required'
15161 else
15162 # Maybe curses should be tried earlier?
15163 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
15164 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
15165 OLIBS=$LIBS
15166 if test -z "$tputs_library"; then
15167 LIBS_TERMCAP=
15168 msg='none required'
15169 else
15170 LIBS_TERMCAP=-l$tputs_library
15171 msg=$LIBS_TERMCAP
15172 LIBS="$LIBS_TERMCAP $LIBS"
15174 if test "$cross_compiling" = yes; then :
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15178 extern void tputs (const char *, int, int (*)(int));
15179 int main (int argc, char **argv)
15181 if (argc == 10000)
15182 tputs (argv[0], 0, 0);
15183 return 0;
15186 _ACEOF
15187 if ac_fn_c_try_link "$LINENO"; then :
15189 else
15190 msg=no
15192 rm -f core conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15194 else
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15198 extern void tputs (const char *, int, int (*)(int));
15199 int main (int argc, char **argv)
15201 if (argc == 10000)
15202 tputs (argv[0], 0, 0);
15203 return 0;
15206 _ACEOF
15207 if ac_fn_c_try_run "$LINENO"; then :
15209 else
15210 msg=no
15212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15213 conftest.$ac_objext conftest.beam conftest.$ac_ext
15216 LIBS=$OLIBS
15217 if test "X$msg" != Xno; then
15218 break
15220 done
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15223 $as_echo "$msg" >&6; }
15224 if test "X$msg" = Xno; then
15225 as_fn_error "The required function \`tputs' was not found in any library.
15226 The following libraries were tried (in order):
15227 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15228 Please try installing whichever of these libraries is most appropriate
15229 for your system, together with its header files.
15230 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15233 ## Use termcap instead of terminfo?
15234 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15235 TERMINFO=yes
15236 ## FIXME? In the cases below where we unconditionally set
15237 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15238 ## if that was found above to have tputs.
15239 ## Should we use the gnu* logic everywhere?
15240 case "$opsys" in
15241 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15242 ## The ncurses library has been moved out of the System framework in
15243 ## Mac OS X 10.2. So if configure detects it, set the command-line
15244 ## option to use it.
15245 darwin) LIBS_TERMCAP="-lncurses" ;;
15247 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
15249 freebsd)
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15251 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15252 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 #include <osreldate.h>
15259 main ()
15261 #if __FreeBSD_version < 400000
15262 fail;
15263 #endif
15266 return 0;
15268 _ACEOF
15269 if ac_fn_c_try_link "$LINENO"; then :
15270 emacs_cv_freebsd_terminfo=yes
15271 else
15272 emacs_cv_freebsd_terminfo=no
15274 rm -f core conftest.err conftest.$ac_objext \
15275 conftest$ac_exeext conftest.$ac_ext
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15280 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15282 if test $emacs_cv_freebsd_terminfo = yes; then
15283 LIBS_TERMCAP="-lncurses"
15284 else
15285 TERMINFO=no
15286 LIBS_TERMCAP="-ltermcap"
15290 mingw32)
15291 TERMINFO=no
15292 LIBS_TERMCAP=
15295 netbsd)
15296 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15297 TERMINFO=no
15298 LIBS_TERMCAP="-ltermcap"
15302 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15304 ## hpux: Make sure we get select from libc rather than from libcurses
15305 ## because libcurses on HPUX 10.10 has a broken version of select.
15306 ## We used to use -lc -lcurses, but this may be cleaner.
15307 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15308 # set that way, now it uses the default). Isn't this a contradiction?
15309 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15311 esac
15313 TERMCAP_OBJ=tparam.o
15314 if test $TERMINFO = yes; then
15316 $as_echo "#define TERMINFO 1" >>confdefs.h
15318 TERMCAP_OBJ=terminfo.o
15320 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15322 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15329 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15330 # On Darwin, res_init appears not to be useful: see bug#562 and
15331 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15332 resolv=no
15334 if test $opsys != darwin; then
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 #include <netinet/in.h>
15339 #include <arpa/nameser.h>
15340 #include <resolv.h>
15342 main ()
15344 return res_init();
15346 return 0;
15348 _ACEOF
15349 if ac_fn_c_try_link "$LINENO"; then :
15350 have_res_init=yes
15351 else
15352 have_res_init=no
15354 rm -f core conftest.err conftest.$ac_objext \
15355 conftest$ac_exeext conftest.$ac_ext
15356 if test "$have_res_init" = no; then
15357 OLIBS="$LIBS"
15358 LIBS="$LIBS -lresolv"
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15360 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 #include <netinet/in.h>
15364 #include <arpa/nameser.h>
15365 #include <resolv.h>
15367 main ()
15369 return res_init();
15371 return 0;
15373 _ACEOF
15374 if ac_fn_c_try_link "$LINENO"; then :
15375 have_res_init=yes
15376 else
15377 have_res_init=no
15379 rm -f core conftest.err conftest.$ac_objext \
15380 conftest$ac_exeext conftest.$ac_ext
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15382 $as_echo "$have_res_init" >&6; }
15383 if test "$have_res_init" = yes ; then
15384 resolv=yes
15386 LIBS="$OLIBS"
15389 if test "$have_res_init" = yes; then
15391 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15395 # Do we need the Hesiod library to provide the support routines?
15396 LIBHESIOD=
15397 if test "$with_hesiod" != no ; then
15398 # Don't set $LIBS here -- see comments above. FIXME which comments?
15399 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15400 if test "x$ac_cv_func_res_send" = x""yes; then :
15402 else
15403 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15404 if test "x$ac_cv_func___res_send" = x""yes; then :
15406 else
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15408 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15409 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 ac_check_lib_save_LIBS=$LIBS
15413 LIBS="-lresolv $LIBS"
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15420 #ifdef __cplusplus
15421 extern "C"
15422 #endif
15423 char res_send ();
15425 main ()
15427 return res_send ();
15429 return 0;
15431 _ACEOF
15432 if ac_fn_c_try_link "$LINENO"; then :
15433 ac_cv_lib_resolv_res_send=yes
15434 else
15435 ac_cv_lib_resolv_res_send=no
15437 rm -f core conftest.err conftest.$ac_objext \
15438 conftest$ac_exeext conftest.$ac_ext
15439 LIBS=$ac_check_lib_save_LIBS
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15442 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15443 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15444 resolv=yes
15445 else
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15447 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15448 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15449 $as_echo_n "(cached) " >&6
15450 else
15451 ac_check_lib_save_LIBS=$LIBS
15452 LIBS="-lresolv $LIBS"
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15456 /* Override any GCC internal prototype to avoid an error.
15457 Use char because int might match the return type of a GCC
15458 builtin and then its argument prototype would still apply. */
15459 #ifdef __cplusplus
15460 extern "C"
15461 #endif
15462 char __res_send ();
15464 main ()
15466 return __res_send ();
15468 return 0;
15470 _ACEOF
15471 if ac_fn_c_try_link "$LINENO"; then :
15472 ac_cv_lib_resolv___res_send=yes
15473 else
15474 ac_cv_lib_resolv___res_send=no
15476 rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
15478 LIBS=$ac_check_lib_save_LIBS
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15481 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15482 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15483 resolv=yes
15492 if test "$resolv" = yes ; then
15493 RESOLVLIB=-lresolv
15494 else
15495 RESOLVLIB=
15497 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15498 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15500 else
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15502 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15503 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15504 $as_echo_n "(cached) " >&6
15505 else
15506 ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-lhesiod $RESOLVLIB $LIBS"
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15511 /* Override any GCC internal prototype to avoid an error.
15512 Use char because int might match the return type of a GCC
15513 builtin and then its argument prototype would still apply. */
15514 #ifdef __cplusplus
15515 extern "C"
15516 #endif
15517 char hes_getmailhost ();
15519 main ()
15521 return hes_getmailhost ();
15523 return 0;
15525 _ACEOF
15526 if ac_fn_c_try_link "$LINENO"; then :
15527 ac_cv_lib_hesiod_hes_getmailhost=yes
15528 else
15529 ac_cv_lib_hesiod_hes_getmailhost=no
15531 rm -f core conftest.err conftest.$ac_objext \
15532 conftest$ac_exeext conftest.$ac_ext
15533 LIBS=$ac_check_lib_save_LIBS
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15536 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15537 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15538 hesiod=yes
15539 else
15546 if test x"$hesiod" = xyes; then
15547 LIBHESIOD=-lhesiod
15552 # Do we need libresolv (due to res_init or Hesiod)?
15553 if test "$resolv" = yes && test $opsys != darwin; then
15554 LIBRESOLV=-lresolv
15555 else
15556 LIBRESOLV=
15560 # These tell us which Kerberos-related libraries to use.
15561 COM_ERRLIB=
15562 CRYPTOLIB=
15563 KRB5LIB=
15564 DESLIB=
15565 KRB4LIB=
15567 if test "${with_kerberos}" != no; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15569 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15570 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15571 $as_echo_n "(cached) " >&6
15572 else
15573 ac_check_lib_save_LIBS=$LIBS
15574 LIBS="-lcom_err $LIBS"
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15578 /* Override any GCC internal prototype to avoid an error.
15579 Use char because int might match the return type of a GCC
15580 builtin and then its argument prototype would still apply. */
15581 #ifdef __cplusplus
15582 extern "C"
15583 #endif
15584 char com_err ();
15586 main ()
15588 return com_err ();
15590 return 0;
15592 _ACEOF
15593 if ac_fn_c_try_link "$LINENO"; then :
15594 ac_cv_lib_com_err_com_err=yes
15595 else
15596 ac_cv_lib_com_err_com_err=no
15598 rm -f core conftest.err conftest.$ac_objext \
15599 conftest$ac_exeext conftest.$ac_ext
15600 LIBS=$ac_check_lib_save_LIBS
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15603 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15604 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15605 have_com_err=yes
15606 else
15607 have_com_err=no
15610 if test $have_com_err = yes; then
15611 COM_ERRLIB=-lcom_err
15612 LIBS="$COM_ERRLIB $LIBS"
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15615 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15616 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15617 $as_echo_n "(cached) " >&6
15618 else
15619 ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-lcrypto $LIBS"
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15624 /* Override any GCC internal prototype to avoid an error.
15625 Use char because int might match the return type of a GCC
15626 builtin and then its argument prototype would still apply. */
15627 #ifdef __cplusplus
15628 extern "C"
15629 #endif
15630 char mit_des_cbc_encrypt ();
15632 main ()
15634 return mit_des_cbc_encrypt ();
15636 return 0;
15638 _ACEOF
15639 if ac_fn_c_try_link "$LINENO"; then :
15640 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15641 else
15642 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15644 rm -f core conftest.err conftest.$ac_objext \
15645 conftest$ac_exeext conftest.$ac_ext
15646 LIBS=$ac_check_lib_save_LIBS
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15649 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15650 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15651 have_crypto=yes
15652 else
15653 have_crypto=no
15656 if test $have_crypto = yes; then
15657 CRYPTOLIB=-lcrypto
15658 LIBS="$CRYPTOLIB $LIBS"
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15661 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15662 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15663 $as_echo_n "(cached) " >&6
15664 else
15665 ac_check_lib_save_LIBS=$LIBS
15666 LIBS="-lk5crypto $LIBS"
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15673 #ifdef __cplusplus
15674 extern "C"
15675 #endif
15676 char mit_des_cbc_encrypt ();
15678 main ()
15680 return mit_des_cbc_encrypt ();
15682 return 0;
15684 _ACEOF
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15687 else
15688 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15692 LIBS=$ac_check_lib_save_LIBS
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15695 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15696 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15697 have_k5crypto=yes
15698 else
15699 have_k5crypto=no
15702 if test $have_k5crypto = yes; then
15703 CRYPTOLIB=-lk5crypto
15704 LIBS="$CRYPTOLIB $LIBS"
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15707 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15708 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15711 ac_check_lib_save_LIBS=$LIBS
15712 LIBS="-lkrb5 $LIBS"
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15716 /* Override any GCC internal prototype to avoid an error.
15717 Use char because int might match the return type of a GCC
15718 builtin and then its argument prototype would still apply. */
15719 #ifdef __cplusplus
15720 extern "C"
15721 #endif
15722 char krb5_init_context ();
15724 main ()
15726 return krb5_init_context ();
15728 return 0;
15730 _ACEOF
15731 if ac_fn_c_try_link "$LINENO"; then :
15732 ac_cv_lib_krb5_krb5_init_context=yes
15733 else
15734 ac_cv_lib_krb5_krb5_init_context=no
15736 rm -f core conftest.err conftest.$ac_objext \
15737 conftest$ac_exeext conftest.$ac_ext
15738 LIBS=$ac_check_lib_save_LIBS
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15741 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15742 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15743 have_krb5=yes
15744 else
15745 have_krb5=no
15748 if test $have_krb5=yes; then
15749 KRB5LIB=-lkrb5
15750 LIBS="$KRB5LIB $LIBS"
15752 if test "${with_kerberos5}" = no; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15754 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15755 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15756 $as_echo_n "(cached) " >&6
15757 else
15758 ac_check_lib_save_LIBS=$LIBS
15759 LIBS="-ldes425 $LIBS"
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15763 /* Override any GCC internal prototype to avoid an error.
15764 Use char because int might match the return type of a GCC
15765 builtin and then its argument prototype would still apply. */
15766 #ifdef __cplusplus
15767 extern "C"
15768 #endif
15769 char des_cbc_encrypt ();
15771 main ()
15773 return des_cbc_encrypt ();
15775 return 0;
15777 _ACEOF
15778 if ac_fn_c_try_link "$LINENO"; then :
15779 ac_cv_lib_des425_des_cbc_encrypt=yes
15780 else
15781 ac_cv_lib_des425_des_cbc_encrypt=no
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15788 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15789 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15790 have_des425=yes
15791 else
15792 have_des425=no
15795 if test $have_des425 = yes; then
15796 DESLIB=-ldes425
15797 LIBS="$DESLIB $LIBS"
15798 else
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15800 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15801 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15802 $as_echo_n "(cached) " >&6
15803 else
15804 ac_check_lib_save_LIBS=$LIBS
15805 LIBS="-ldes $LIBS"
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15809 /* Override any GCC internal prototype to avoid an error.
15810 Use char because int might match the return type of a GCC
15811 builtin and then its argument prototype would still apply. */
15812 #ifdef __cplusplus
15813 extern "C"
15814 #endif
15815 char des_cbc_encrypt ();
15817 main ()
15819 return des_cbc_encrypt ();
15821 return 0;
15823 _ACEOF
15824 if ac_fn_c_try_link "$LINENO"; then :
15825 ac_cv_lib_des_des_cbc_encrypt=yes
15826 else
15827 ac_cv_lib_des_des_cbc_encrypt=no
15829 rm -f core conftest.err conftest.$ac_objext \
15830 conftest$ac_exeext conftest.$ac_ext
15831 LIBS=$ac_check_lib_save_LIBS
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15834 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15835 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15836 have_des=yes
15837 else
15838 have_des=no
15841 if test $have_des = yes; then
15842 DESLIB=-ldes
15843 LIBS="$DESLIB $LIBS"
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15847 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15848 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-lkrb4 $LIBS"
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15856 /* Override any GCC internal prototype to avoid an error.
15857 Use char because int might match the return type of a GCC
15858 builtin and then its argument prototype would still apply. */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 char krb_get_cred ();
15864 main ()
15866 return krb_get_cred ();
15868 return 0;
15870 _ACEOF
15871 if ac_fn_c_try_link "$LINENO"; then :
15872 ac_cv_lib_krb4_krb_get_cred=yes
15873 else
15874 ac_cv_lib_krb4_krb_get_cred=no
15876 rm -f core conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15881 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15882 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15883 have_krb4=yes
15884 else
15885 have_krb4=no
15888 if test $have_krb4 = yes; then
15889 KRB4LIB=-lkrb4
15890 LIBS="$KRB4LIB $LIBS"
15891 else
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15893 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15894 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15895 $as_echo_n "(cached) " >&6
15896 else
15897 ac_check_lib_save_LIBS=$LIBS
15898 LIBS="-lkrb $LIBS"
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15902 /* Override any GCC internal prototype to avoid an error.
15903 Use char because int might match the return type of a GCC
15904 builtin and then its argument prototype would still apply. */
15905 #ifdef __cplusplus
15906 extern "C"
15907 #endif
15908 char krb_get_cred ();
15910 main ()
15912 return krb_get_cred ();
15914 return 0;
15916 _ACEOF
15917 if ac_fn_c_try_link "$LINENO"; then :
15918 ac_cv_lib_krb_krb_get_cred=yes
15919 else
15920 ac_cv_lib_krb_krb_get_cred=no
15922 rm -f core conftest.err conftest.$ac_objext \
15923 conftest$ac_exeext conftest.$ac_ext
15924 LIBS=$ac_check_lib_save_LIBS
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15927 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15928 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15929 have_krb=yes
15930 else
15931 have_krb=no
15934 if test $have_krb = yes; then
15935 KRB4LIB=-lkrb
15936 LIBS="$KRB4LIB $LIBS"
15941 if test "${with_kerberos5}" != no; then
15942 for ac_header in krb5.h
15943 do :
15944 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15945 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_KRB5_H 1
15948 _ACEOF
15949 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15951 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15953 cat >>confdefs.h <<_ACEOF
15954 #define HAVE_KRB5_ERROR_TEXT 1
15955 _ACEOF
15959 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15961 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15963 cat >>confdefs.h <<_ACEOF
15964 #define HAVE_KRB5_ERROR_E_TEXT 1
15965 _ACEOF
15972 done
15974 else
15975 for ac_header in krb.h
15976 do :
15977 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15978 if test "x$ac_cv_header_krb_h" = x""yes; then :
15979 cat >>confdefs.h <<_ACEOF
15980 #define HAVE_KRB_H 1
15981 _ACEOF
15983 else
15984 for ac_header in kerberosIV/krb.h
15985 do :
15986 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15987 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_KERBEROSIV_KRB_H 1
15990 _ACEOF
15992 else
15993 for ac_header in kerberos/krb.h
15994 do :
15995 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15996 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15997 cat >>confdefs.h <<_ACEOF
15998 #define HAVE_KERBEROS_KRB_H 1
15999 _ACEOF
16003 done
16007 done
16011 done
16014 for ac_header in com_err.h
16015 do :
16016 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16017 if test "x$ac_cv_header_com_err_h" = x""yes; then :
16018 cat >>confdefs.h <<_ACEOF
16019 #define HAVE_COM_ERR_H 1
16020 _ACEOF
16024 done
16037 for ac_func in $ac_func_list
16038 do :
16039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16040 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16041 eval as_val=\$$as_ac_var
16042 if test "x$as_val" = x""yes; then :
16043 cat >>confdefs.h <<_ACEOF
16044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16045 _ACEOF
16048 done
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16054 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16055 if test "${emacs_cv_localtime_cache+set}" = set; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 if test x$ac_cv_func_tzset = xyes; then
16059 if test "$cross_compiling" = yes; then :
16060 # If we have tzset, assume the worst when cross-compiling.
16061 emacs_cv_localtime_cache=yes
16062 else
16063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 #include <time.h>
16066 char TZ_GMT0[] = "TZ=GMT0";
16067 char TZ_PST8[] = "TZ=PST8";
16068 main()
16070 time_t now = time ((time_t *) 0);
16071 int hour_GMT0, hour_unset;
16072 if (putenv (TZ_GMT0) != 0)
16073 exit (1);
16074 hour_GMT0 = localtime (&now)->tm_hour;
16075 unsetenv("TZ");
16076 hour_unset = localtime (&now)->tm_hour;
16077 if (putenv (TZ_PST8) != 0)
16078 exit (1);
16079 if (localtime (&now)->tm_hour == hour_GMT0)
16080 exit (1);
16081 unsetenv("TZ");
16082 if (localtime (&now)->tm_hour != hour_unset)
16083 exit (1);
16084 exit (0);
16086 _ACEOF
16087 if ac_fn_c_try_run "$LINENO"; then :
16088 emacs_cv_localtime_cache=no
16089 else
16090 emacs_cv_localtime_cache=yes
16092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16093 conftest.$ac_objext conftest.beam conftest.$ac_ext
16096 else
16097 # If we lack tzset, report that localtime does not cache TZ,
16098 # since we can't invalidate the cache if we don't have tzset.
16099 emacs_cv_localtime_cache=no
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16103 $as_echo "$emacs_cv_localtime_cache" >&6; }
16104 if test $emacs_cv_localtime_cache = yes; then
16106 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16110 ok_so_far=yes
16111 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16112 if test "x$ac_cv_func_socket" = x""yes; then :
16114 else
16115 ok_so_far=no
16118 if test $ok_so_far = yes; then
16119 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16120 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
16122 else
16123 ok_so_far=no
16128 if test $ok_so_far = yes; then
16129 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16130 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
16132 else
16133 ok_so_far=no
16138 if test $ok_so_far = yes; then
16140 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16144 case $canonical in
16145 *-solaris2.4 | *-solaris2.4.*)
16146 : ${ac_cv_func_vfork_works=no};;
16147 esac
16149 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16150 if test "x$ac_cv_type_pid_t" = x""yes; then :
16152 else
16154 cat >>confdefs.h <<_ACEOF
16155 #define pid_t int
16156 _ACEOF
16160 for ac_header in vfork.h
16161 do :
16162 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16163 if test "x$ac_cv_header_vfork_h" = x""yes; then :
16164 cat >>confdefs.h <<_ACEOF
16165 #define HAVE_VFORK_H 1
16166 _ACEOF
16170 done
16172 for ac_func in fork vfork
16173 do :
16174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16176 eval as_val=\$$as_ac_var
16177 if test "x$as_val" = x""yes; then :
16178 cat >>confdefs.h <<_ACEOF
16179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16180 _ACEOF
16183 done
16185 if test "x$ac_cv_func_fork" = xyes; then
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16187 $as_echo_n "checking for working fork... " >&6; }
16188 if test "${ac_cv_func_fork_works+set}" = set; then :
16189 $as_echo_n "(cached) " >&6
16190 else
16191 if test "$cross_compiling" = yes; then :
16192 ac_cv_func_fork_works=cross
16193 else
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 $ac_includes_default
16198 main ()
16201 /* By Ruediger Kuhlmann. */
16202 return fork () < 0;
16205 return 0;
16207 _ACEOF
16208 if ac_fn_c_try_run "$LINENO"; then :
16209 ac_cv_func_fork_works=yes
16210 else
16211 ac_cv_func_fork_works=no
16213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16214 conftest.$ac_objext conftest.beam conftest.$ac_ext
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16219 $as_echo "$ac_cv_func_fork_works" >&6; }
16221 else
16222 ac_cv_func_fork_works=$ac_cv_func_fork
16224 if test "x$ac_cv_func_fork_works" = xcross; then
16225 case $host in
16226 *-*-amigaos* | *-*-msdosdjgpp*)
16227 # Override, as these systems have only a dummy fork() stub
16228 ac_cv_func_fork_works=no
16231 ac_cv_func_fork_works=yes
16233 esac
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16235 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16237 ac_cv_func_vfork_works=$ac_cv_func_vfork
16238 if test "x$ac_cv_func_vfork" = xyes; then
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16240 $as_echo_n "checking for working vfork... " >&6; }
16241 if test "${ac_cv_func_vfork_works+set}" = set; then :
16242 $as_echo_n "(cached) " >&6
16243 else
16244 if test "$cross_compiling" = yes; then :
16245 ac_cv_func_vfork_works=cross
16246 else
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 /* Thanks to Paul Eggert for this test. */
16250 $ac_includes_default
16251 #include <sys/wait.h>
16252 #ifdef HAVE_VFORK_H
16253 # include <vfork.h>
16254 #endif
16255 /* On some sparc systems, changes by the child to local and incoming
16256 argument registers are propagated back to the parent. The compiler
16257 is told about this with #include <vfork.h>, but some compilers
16258 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16259 static variable whose address is put into a register that is
16260 clobbered by the vfork. */
16261 static void
16262 #ifdef __cplusplus
16263 sparc_address_test (int arg)
16264 # else
16265 sparc_address_test (arg) int arg;
16266 #endif
16268 static pid_t child;
16269 if (!child) {
16270 child = vfork ();
16271 if (child < 0) {
16272 perror ("vfork");
16273 _exit(2);
16275 if (!child) {
16276 arg = getpid();
16277 write(-1, "", 0);
16278 _exit (arg);
16284 main ()
16286 pid_t parent = getpid ();
16287 pid_t child;
16289 sparc_address_test (0);
16291 child = vfork ();
16293 if (child == 0) {
16294 /* Here is another test for sparc vfork register problems. This
16295 test uses lots of local variables, at least as many local
16296 variables as main has allocated so far including compiler
16297 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16298 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16299 reuse the register of parent for one of the local variables,
16300 since it will think that parent can't possibly be used any more
16301 in this routine. Assigning to the local variable will thus
16302 munge parent in the parent process. */
16303 pid_t
16304 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16305 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16306 /* Convince the compiler that p..p7 are live; otherwise, it might
16307 use the same hardware register for all 8 local variables. */
16308 if (p != p1 || p != p2 || p != p3 || p != p4
16309 || p != p5 || p != p6 || p != p7)
16310 _exit(1);
16312 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16313 from child file descriptors. If the child closes a descriptor
16314 before it execs or exits, this munges the parent's descriptor
16315 as well. Test for this by closing stdout in the child. */
16316 _exit(close(fileno(stdout)) != 0);
16317 } else {
16318 int status;
16319 struct stat st;
16321 while (wait(&status) != child)
16323 return (
16324 /* Was there some problem with vforking? */
16325 child < 0
16327 /* Did the child fail? (This shouldn't happen.) */
16328 || status
16330 /* Did the vfork/compiler bug occur? */
16331 || parent != getpid()
16333 /* Did the file descriptor bug occur? */
16334 || fstat(fileno(stdout), &st) != 0
16338 _ACEOF
16339 if ac_fn_c_try_run "$LINENO"; then :
16340 ac_cv_func_vfork_works=yes
16341 else
16342 ac_cv_func_vfork_works=no
16344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16345 conftest.$ac_objext conftest.beam conftest.$ac_ext
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16350 $as_echo "$ac_cv_func_vfork_works" >&6; }
16353 if test "x$ac_cv_func_fork_works" = xcross; then
16354 ac_cv_func_vfork_works=$ac_cv_func_vfork
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16356 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16359 if test "x$ac_cv_func_vfork_works" = xyes; then
16361 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16363 else
16365 $as_echo "#define vfork fork" >>confdefs.h
16368 if test "x$ac_cv_func_fork_works" = xyes; then
16370 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16375 for ac_func in snprintf
16376 do :
16377 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16378 if test "x$ac_cv_func_snprintf" = x""yes; then :
16379 cat >>confdefs.h <<_ACEOF
16380 #define HAVE_SNPRINTF 1
16381 _ACEOF
16384 done
16387 XGSELOBJ=
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16389 $as_echo_n "checking whether GLib is linked in... " >&6; }
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 #include <glib.h>
16395 main ()
16397 g_print ("Hello world");
16399 return 0;
16401 _ACEOF
16402 if ac_fn_c_try_link "$LINENO"; then :
16403 links_glib=yes
16404 else
16405 links_glib=no
16407 rm -f core conftest.err conftest.$ac_objext \
16408 conftest$ac_exeext conftest.$ac_ext
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16410 $as_echo "$links_glib" >&6; }
16411 if test "${links_glib}" = "yes"; then
16413 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16415 if test "$HAVE_NS" = no;then
16416 XGSELOBJ=xgselect.o
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16422 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16423 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16424 $as_echo_n "(cached) " >&6
16425 else
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 #include <langinfo.h>
16430 main ()
16432 char* cs = nl_langinfo(CODESET);
16434 return 0;
16436 _ACEOF
16437 if ac_fn_c_try_link "$LINENO"; then :
16438 emacs_cv_langinfo_codeset=yes
16439 else
16440 emacs_cv_langinfo_codeset=no
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16447 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16448 if test $emacs_cv_langinfo_codeset = yes; then
16450 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16455 $as_echo_n "checking for mbstate_t... " >&6; }
16456 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16457 $as_echo_n "(cached) " >&6
16458 else
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 $ac_includes_default
16462 # include <wchar.h>
16464 main ()
16466 mbstate_t x; return sizeof x;
16468 return 0;
16470 _ACEOF
16471 if ac_fn_c_try_compile "$LINENO"; then :
16472 ac_cv_type_mbstate_t=yes
16473 else
16474 ac_cv_type_mbstate_t=no
16476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16479 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16480 if test $ac_cv_type_mbstate_t = yes; then
16482 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16484 else
16486 $as_echo "#define mbstate_t int" >>confdefs.h
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16491 $as_echo_n "checking for C restricted array declarations... " >&6; }
16492 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16493 $as_echo_n "(cached) " >&6
16494 else
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h. */
16497 void fred (int x[__restrict]);
16499 main ()
16503 return 0;
16505 _ACEOF
16506 if ac_fn_c_try_compile "$LINENO"; then :
16507 emacs_cv_c_restrict_arr=yes
16508 else
16509 emacs_cv_c_restrict_arr=no
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16514 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16515 if test "$emacs_cv_c_restrict_arr" = yes; then
16517 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16522 if test "${opsys}" != "mingw32"; then
16524 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16529 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16532 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16533 if test "${opsys}" != "mingw32"; then
16535 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16540 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16546 if test "${opsys}" = "mingw32"; then
16547 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16549 else
16550 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16555 if test "${opsys}" = "mingw32"; then
16556 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16558 else
16559 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16564 $as_echo "#define subprocesses 1" >>confdefs.h
16568 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16573 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16576 if test "${opsys}" = "mingw32"; then
16578 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16582 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16586 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16588 else
16590 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16594 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16598 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16604 case $opsys in
16605 aix4-2)
16606 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16607 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16612 hpux*)
16613 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16616 esac
16619 case $opsys in
16620 irix6-5 | sol2* | unixware )
16622 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16625 esac
16627 emacs_broken_SIGIO=no
16629 case $opsys in
16630 hpux* | irix6-5 | openbsd | sol2* | unixware )
16631 emacs_broken_SIGIO=yes
16634 aix4-2)
16636 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16640 freebsd)
16642 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16645 esac
16647 case $opsys in
16648 gnu-* | sol2-10 )
16650 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16653 esac
16655 case $opsys in
16656 darwin | dragonfly | freebsd | netbsd | openbsd )
16658 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16661 esac
16663 case $opsys in
16664 netbsd | openbsd) sound_device="/dev/audio" ;;
16665 *) sound_device="/dev/dsp" ;;
16666 esac
16669 cat >>confdefs.h <<_ACEOF
16670 #define DEFAULT_SOUND_DEVICE "$sound_device"
16671 _ACEOF
16675 case $opsys in
16676 darwin | gnu-linux | gnu-kfreebsd )
16678 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16681 esac
16684 case $opsys in
16685 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16687 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16690 esac
16699 case $opsys in
16700 aix4-2 )
16701 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16703 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16705 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16709 cygwin )
16710 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16712 $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
16714 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16716 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16720 darwin )
16721 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16723 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16725 $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
16727 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16729 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16733 gnu | openbsd )
16734 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16738 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16739 if test "x$ac_cv_func_grantpt" = xyes; then
16741 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16743 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16745 $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
16747 if test "x$ac_cv_func_posix_openpt" = xyes; then
16748 $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
16750 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16752 elif test "x$ac_cv_func_getpt" = xyes; then
16753 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16755 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16757 else
16758 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16761 else
16762 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16767 hpux*)
16768 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16770 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16772 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16776 irix6-5 )
16777 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16779 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16781 $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
16783 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16785 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16789 sol2* )
16790 $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
16794 unixware )
16795 $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
16798 esac
16801 case $opsys in
16802 sol2* | unixware )
16803 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16805 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16808 $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
16811 esac
16816 case $opsys in
16817 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
16818 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16822 gnu-linux | gnu-kfreebsd )
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16825 $as_echo_n "checking for signals via characters... " >&6; }
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16829 #include <linux/version.h>
16830 #if LINUX_VERSION_CODE < 0x20400
16831 # error "Linux version too old"
16832 #endif
16835 main ()
16839 return 0;
16841 _ACEOF
16842 if ac_fn_c_try_cpp "$LINENO"; then :
16843 emacs_signals_via_chars=yes
16844 else
16845 emacs_signals_via_chars=no
16847 rm -f conftest.err conftest.$ac_ext
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16850 $as_echo "$emacs_signals_via_chars" >&6; }
16851 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16854 esac
16859 case $opsys in
16860 aix*)
16861 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16864 hpux*)
16865 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16868 irix6-5)
16869 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16872 esac
16877 case $opsys in
16878 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16881 gnu | dragonfly | freebsd | netbsd | openbsd )
16883 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16885 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16889 gnu-linux | gnu-kfreebsd )
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16893 #ifndef __ia64__
16894 # error "not ia64"
16895 #endif
16898 main ()
16902 return 0;
16904 _ACEOF
16905 if ac_fn_c_try_cpp "$LINENO"; then :
16907 $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
16910 rm -f conftest.err conftest.$ac_ext
16913 hpux*)
16915 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16918 esac
16924 case $opsys in
16925 gnu-linux | gnu-kfreebsd )
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16929 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16930 || defined __alpha__ || defined __mips__ || defined __s390__ \
16931 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16932 || defined __ia64__ || defined __sh__
16933 /* ok */
16934 #else
16935 # error "setjmp not known to work on this arch"
16936 #endif
16939 main ()
16943 return 0;
16945 _ACEOF
16946 if ac_fn_c_try_cpp "$LINENO"; then :
16947 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16950 rm -f conftest.err conftest.$ac_ext
16952 esac
16955 if test x$GCC = xyes; then
16956 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16958 else
16959 case $opsys in
16960 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
16961 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16964 esac
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16967 $as_echo_n "checking for _setjmp... " >&6; }
16968 if test "${emacs_cv_func__setjmp+set}" = set; then :
16969 $as_echo_n "(cached) " >&6
16970 else
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16973 #include <setjmp.h>
16974 #ifdef __MINGW32__
16975 # define _longjmp longjmp
16976 #endif
16979 main ()
16981 jmp_buf j;
16982 if (! _setjmp (j))
16983 _longjmp (j, 1);
16985 return 0;
16987 _ACEOF
16988 if ac_fn_c_try_link "$LINENO"; then :
16989 emacs_cv_func__setjmp=yes
16990 else
16991 emacs_cv_func__setjmp=no
16993 rm -f core conftest.err conftest.$ac_objext \
16994 conftest$ac_exeext conftest.$ac_ext
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16997 $as_echo "$emacs_cv_func__setjmp" >&6; }
16998 if test $emacs_cv_func__setjmp = yes; then
17000 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
17002 else
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
17004 $as_echo_n "checking for sigsetjmp... " >&6; }
17005 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
17006 $as_echo_n "(cached) " >&6
17007 else
17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009 /* end confdefs.h. */
17010 #include <setjmp.h>
17013 main ()
17015 sigjmp_buf j;
17016 if (! sigsetjmp (j, 1))
17017 siglongjmp (j, 1);
17019 return 0;
17021 _ACEOF
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 emacs_cv_func_sigsetjmp=yes
17024 else
17025 emacs_cv_func_sigsetjmp=no
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
17031 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
17032 if test $emacs_cv_func_sigsetjmp = yes; then
17034 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
17039 case $opsys in
17040 sol2* | unixware )
17042 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
17045 esac
17048 case $opsys in
17049 hpux* | sol2* )
17051 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
17054 esac
17062 case $opsys in
17063 aix4-2)
17064 $as_echo "#define USG /**/" >>confdefs.h
17066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17067 /* end confdefs.h. */
17069 #ifndef _AIX
17070 # error "_AIX not defined"
17071 #endif
17074 main ()
17078 return 0;
17080 _ACEOF
17081 if ac_fn_c_try_cpp "$LINENO"; then :
17083 else
17085 $as_echo "#define _AIX /**/" >>confdefs.h
17088 rm -f conftest.err conftest.$ac_ext
17091 cygwin)
17093 $as_echo "#define CYGWIN 1" >>confdefs.h
17097 darwin)
17099 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
17103 gnu-linux | gnu-kfreebsd )
17104 $as_echo "#define USG /**/" >>confdefs.h
17107 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
17111 hpux*)
17112 $as_echo "#define USG /**/" >>confdefs.h
17115 $as_echo "#define HPUX /**/" >>confdefs.h
17119 irix6-5)
17120 $as_echo "#define USG /**/" >>confdefs.h
17122 $as_echo "#define USG5_4 /**/" >>confdefs.h
17125 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
17129 mingw32)
17130 $as_echo "#define DOS_NT /**/" >>confdefs.h
17133 $as_echo "#define WINDOWSNT 1" >>confdefs.h
17135 if test "x$ac_enable_checking" != "x" ; then
17137 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
17142 sol2*)
17143 $as_echo "#define USG /**/" >>confdefs.h
17145 $as_echo "#define USG5_4 /**/" >>confdefs.h
17148 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
17152 unixware)
17153 $as_echo "#define USG /**/" >>confdefs.h
17155 $as_echo "#define USG5_4 /**/" >>confdefs.h
17158 esac
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
17161 $as_echo_n "checking for usable FIONREAD... " >&6; }
17162 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
17163 $as_echo_n "(cached) " >&6
17164 else
17165 case $opsys in
17166 aix4-2)
17167 emacs_cv_usable_FIONREAD=no
17170 mingw32)
17171 emacs_cv_usable_FIONREAD=yes
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17177 #include <sys/types.h>
17178 #include <sys/ioctl.h>
17179 #ifdef USG5_4
17180 # include <sys/filio.h>
17181 #endif
17184 main ()
17186 int foo = ioctl (0, FIONREAD, &foo);
17188 return 0;
17190 _ACEOF
17191 if ac_fn_c_try_compile "$LINENO"; then :
17192 emacs_cv_usable_FIONREAD=yes
17193 else
17194 emacs_cv_usable_FIONREAD=no
17196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17198 esac
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17201 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17202 if test $emacs_cv_usable_FIONREAD = yes; then
17204 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17207 if test $emacs_broken_SIGIO = no; then
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17209 $as_echo_n "checking for usable SIGIO... " >&6; }
17210 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17211 $as_echo_n "(cached) " >&6
17212 else
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17215 #include <fcntl.h>
17216 #include <signal.h>
17219 main ()
17221 int foo = SIGIO | F_SETFL | FASYNC;
17223 return 0;
17225 _ACEOF
17226 if ac_fn_c_try_compile "$LINENO"; then :
17227 emacs_cv_usable_SIGIO=yes
17228 else
17229 emacs_cv_usable_SIGIO=no
17231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17234 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17235 if test $emacs_cv_usable_SIGIO = yes; then
17237 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17244 case $opsys in
17245 cygwin)
17247 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17251 hpux11)
17253 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17257 irix6-5)
17259 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17263 sol2-10)
17265 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17268 esac
17270 # Set up the CFLAGS for real compilation, so we can substitute it.
17271 CFLAGS="$REAL_CFLAGS"
17272 CPPFLAGS="$REAL_CPPFLAGS"
17274 ## Hack to detect a buggy GCC version.
17275 if test "x$GCC" = xyes \
17276 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17277 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17278 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17279 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17282 version=$PACKAGE_VERSION
17284 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17286 cat >>confdefs.h <<_ACEOF
17287 #define COPYRIGHT "$copyright"
17288 _ACEOF
17292 ### Specify what sort of things we'll be editing into Makefile and config.h.
17293 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17296 ## Unused?
17319 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17320 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17321 ## end of LIBX_BASE, but nothing ever set it.
17326 ## Used in lwlib/Makefile.in.
17335 if test -n "${term_header}"; then
17337 cat >>confdefs.h <<_ACEOF
17338 #define TERM_HEADER "${term_header}"
17339 _ACEOF
17344 cat >>confdefs.h <<_ACEOF
17345 #define EMACS_CONFIGURATION "${canonical}"
17346 _ACEOF
17349 cat >>confdefs.h <<_ACEOF
17350 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17351 _ACEOF
17355 case $opsys in
17356 mingw32)
17357 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17360 esac
17362 XMENU_OBJ=
17363 XOBJ=
17364 FONT_OBJ=
17365 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17367 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17369 XMENU_OBJ=xmenu.o
17370 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17371 FONT_OBJ=xfont.o
17372 if test "$HAVE_XFT" = "yes"; then
17373 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17374 elif test "$HAVE_FREETYPE" = "yes"; then
17375 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17383 WIDGET_OBJ=
17384 MOTIF_LIBW=
17385 if test "${USE_X_TOOLKIT}" != "none" ; then
17386 WIDGET_OBJ=widget.o
17388 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17390 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17392 $as_echo "#define USE_LUCID 1" >>confdefs.h
17394 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17396 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17398 MOTIF_LIBW=-lXm
17399 case "$opsys" in
17400 gnu-linux)
17401 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17402 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17405 unixware)
17406 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17407 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17408 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17411 aix4-2)
17412 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17413 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17415 esac
17416 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17421 TOOLKIT_LIBW=
17422 case "$USE_X_TOOLKIT" in
17423 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17424 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17425 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17426 esac
17429 if test "${opsys}" != "mingw32"; then
17430 if test "$USE_X_TOOLKIT" = "none"; then
17431 LIBXT_OTHER="\$(LIBXSM)"
17432 OLDXMENU_TARGET="really-oldXMenu"
17433 else
17434 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17435 OLDXMENU_TARGET="really-lwlib"
17440 ## The X Menu stuff is present in the X10 distribution, but missing
17441 ## from X11. If we have X10, just use the installed library;
17442 ## otherwise, use our own copy.
17443 if test "${HAVE_X11}" = "yes" ; then
17445 $as_echo "#define HAVE_X11 1" >>confdefs.h
17448 if test "$USE_X_TOOLKIT" = "none"; then
17449 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17450 else
17451 OLDXMENU="\${lwlibdir}/liblw.a"
17453 LIBXMENU="\$(OLDXMENU)"
17454 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17455 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17456 else
17457 ## For a syntactically valid Makefile; not actually used for anything.
17458 ## See comments in src/Makefile.in.
17459 OLDXMENU=nothing
17460 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17461 if test "${HAVE_X_WINDOWS}" = "yes"; then
17462 LIBXMENU="-lXMenu"
17463 else
17464 LIBXMENU=
17466 LIBX_OTHER=
17467 OLDXMENU_DEPS=
17470 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17471 OLDXMENU_TARGET=
17472 OLDXMENU=nothing
17473 LIBXMENU=
17474 OLDXMENU_DEPS=
17483 if test "${HAVE_MENUS}" = "yes" ; then
17485 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17489 if test "${GNU_MALLOC}" = "yes" ; then
17491 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17495 RALLOC_OBJ=
17496 if test "${REL_ALLOC}" = "yes" ; then
17498 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17501 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17505 if test "$opsys" = "cygwin"; then
17506 CYGWIN_OBJ="sheap.o cygw32.o"
17507 ## Cygwin differs because of its unexec().
17508 PRE_ALLOC_OBJ=
17509 POST_ALLOC_OBJ=lastfile.o
17510 elif test "$opsys" = "mingw32"; then
17511 CYGWIN_OBJ=
17512 PRE_ALLOC_OBJ=
17513 POST_ALLOC_OBJ=lastfile.o
17514 else
17515 CYGWIN_OBJ=
17516 PRE_ALLOC_OBJ=lastfile.o
17517 POST_ALLOC_OBJ=
17523 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17524 # it temporarily reverts them to their pre-pkg-config values,
17525 # because gnulib needs to work with both src (which uses the
17526 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17527 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17528 # and it therefore needs to run in an environment where LIBS does not
17529 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17530 # for some package unrelated to lib-src.
17531 SAVE_CFLAGS=$CFLAGS
17532 SAVE_LIBS=$LIBS
17533 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17534 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17546 LIBC_FATAL_STDERR_=1
17547 export LIBC_FATAL_STDERR_
17549 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17550 # for constant arguments. Useless!
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17552 $as_echo_n "checking for working alloca.h... " >&6; }
17553 if test "${ac_cv_working_alloca_h+set}" = set; then :
17554 $as_echo_n "(cached) " >&6
17555 else
17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557 /* end confdefs.h. */
17558 #include <alloca.h>
17560 main ()
17562 char *p = (char *) alloca (2 * sizeof (int));
17563 if (p) return 0;
17565 return 0;
17567 _ACEOF
17568 if ac_fn_c_try_link "$LINENO"; then :
17569 ac_cv_working_alloca_h=yes
17570 else
17571 ac_cv_working_alloca_h=no
17573 rm -f core conftest.err conftest.$ac_objext \
17574 conftest$ac_exeext conftest.$ac_ext
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17577 $as_echo "$ac_cv_working_alloca_h" >&6; }
17578 if test $ac_cv_working_alloca_h = yes; then
17580 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17585 $as_echo_n "checking for alloca... " >&6; }
17586 if test "${ac_cv_func_alloca_works+set}" = set; then :
17587 $as_echo_n "(cached) " >&6
17588 else
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591 #ifdef __GNUC__
17592 # define alloca __builtin_alloca
17593 #else
17594 # ifdef _MSC_VER
17595 # include <malloc.h>
17596 # define alloca _alloca
17597 # else
17598 # ifdef HAVE_ALLOCA_H
17599 # include <alloca.h>
17600 # else
17601 # ifdef _AIX
17602 #pragma alloca
17603 # else
17604 # ifndef alloca /* predefined by HP cc +Olibcalls */
17605 char *alloca ();
17606 # endif
17607 # endif
17608 # endif
17609 # endif
17610 #endif
17613 main ()
17615 char *p = (char *) alloca (1);
17616 if (p) return 0;
17618 return 0;
17620 _ACEOF
17621 if ac_fn_c_try_link "$LINENO"; then :
17622 ac_cv_func_alloca_works=yes
17623 else
17624 ac_cv_func_alloca_works=no
17626 rm -f core conftest.err conftest.$ac_objext \
17627 conftest$ac_exeext conftest.$ac_ext
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17630 $as_echo "$ac_cv_func_alloca_works" >&6; }
17632 if test $ac_cv_func_alloca_works = yes; then
17634 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17636 else
17637 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17638 # that cause trouble. Some versions do not even contain alloca or
17639 # contain a buggy version. If you still want to use their alloca,
17640 # use ar to extract alloca.o from them instead of compiling alloca.c.
17646 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17648 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17652 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17653 if test "${ac_cv_os_cray+set}" = set; then :
17654 $as_echo_n "(cached) " >&6
17655 else
17656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17658 #if defined CRAY && ! defined CRAY2
17659 webecray
17660 #else
17661 wenotbecray
17662 #endif
17664 _ACEOF
17665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17666 $EGREP "webecray" >/dev/null 2>&1; then :
17667 ac_cv_os_cray=yes
17668 else
17669 ac_cv_os_cray=no
17671 rm -f conftest*
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17675 $as_echo "$ac_cv_os_cray" >&6; }
17676 if test $ac_cv_os_cray = yes; then
17677 for ac_func in _getb67 GETB67 getb67; do
17678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17679 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17680 eval as_val=\$$as_ac_var
17681 if test "x$as_val" = x""yes; then :
17683 cat >>confdefs.h <<_ACEOF
17684 #define CRAY_STACKSEG_END $ac_func
17685 _ACEOF
17687 break
17690 done
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17694 $as_echo_n "checking stack direction for C alloca... " >&6; }
17695 if test "${ac_cv_c_stack_direction+set}" = set; then :
17696 $as_echo_n "(cached) " >&6
17697 else
17698 if test "$cross_compiling" = yes; then :
17699 ac_cv_c_stack_direction=0
17700 else
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17703 $ac_includes_default
17705 find_stack_direction (int *addr, int depth)
17707 int dir, dummy = 0;
17708 if (! addr)
17709 addr = &dummy;
17710 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17711 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17712 return dir + dummy;
17716 main (int argc, char **argv)
17718 return find_stack_direction (0, argc + !argv + 20) < 0;
17720 _ACEOF
17721 if ac_fn_c_try_run "$LINENO"; then :
17722 ac_cv_c_stack_direction=1
17723 else
17724 ac_cv_c_stack_direction=-1
17726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17727 conftest.$ac_objext conftest.beam conftest.$ac_ext
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17732 $as_echo "$ac_cv_c_stack_direction" >&6; }
17733 cat >>confdefs.h <<_ACEOF
17734 #define STACK_DIRECTION $ac_cv_c_stack_direction
17735 _ACEOF
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17744 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17745 if test "${ac_cv_c_bigendian+set}" = set; then :
17746 $as_echo_n "(cached) " >&6
17747 else
17748 ac_cv_c_bigendian=unknown
17749 # See if we're dealing with a universal compiler.
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17752 #ifndef __APPLE_CC__
17753 not a universal capable compiler
17754 #endif
17755 typedef int dummy;
17757 _ACEOF
17758 if ac_fn_c_try_compile "$LINENO"; then :
17760 # Check for potential -arch flags. It is not universal unless
17761 # there are at least two -arch flags with different values.
17762 ac_arch=
17763 ac_prev=
17764 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17765 if test -n "$ac_prev"; then
17766 case $ac_word in
17767 i?86 | x86_64 | ppc | ppc64)
17768 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17769 ac_arch=$ac_word
17770 else
17771 ac_cv_c_bigendian=universal
17772 break
17775 esac
17776 ac_prev=
17777 elif test "x$ac_word" = "x-arch"; then
17778 ac_prev=arch
17780 done
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783 if test $ac_cv_c_bigendian = unknown; then
17784 # See if sys/param.h defines the BYTE_ORDER macro.
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17787 #include <sys/types.h>
17788 #include <sys/param.h>
17791 main ()
17793 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17794 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17795 && LITTLE_ENDIAN)
17796 bogus endian macros
17797 #endif
17800 return 0;
17802 _ACEOF
17803 if ac_fn_c_try_compile "$LINENO"; then :
17804 # It does; now see whether it defined to BIG_ENDIAN or not.
17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17807 #include <sys/types.h>
17808 #include <sys/param.h>
17811 main ()
17813 #if BYTE_ORDER != BIG_ENDIAN
17814 not big endian
17815 #endif
17818 return 0;
17820 _ACEOF
17821 if ac_fn_c_try_compile "$LINENO"; then :
17822 ac_cv_c_bigendian=yes
17823 else
17824 ac_cv_c_bigendian=no
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17830 if test $ac_cv_c_bigendian = unknown; then
17831 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17834 #include <limits.h>
17837 main ()
17839 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17840 bogus endian macros
17841 #endif
17844 return 0;
17846 _ACEOF
17847 if ac_fn_c_try_compile "$LINENO"; then :
17848 # It does; now see whether it defined to _BIG_ENDIAN or not.
17849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h. */
17851 #include <limits.h>
17854 main ()
17856 #ifndef _BIG_ENDIAN
17857 not big endian
17858 #endif
17861 return 0;
17863 _ACEOF
17864 if ac_fn_c_try_compile "$LINENO"; then :
17865 ac_cv_c_bigendian=yes
17866 else
17867 ac_cv_c_bigendian=no
17869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873 if test $ac_cv_c_bigendian = unknown; then
17874 # Compile a test program.
17875 if test "$cross_compiling" = yes; then :
17876 # Try to guess by grepping values from an object file.
17877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17879 short int ascii_mm[] =
17880 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17881 short int ascii_ii[] =
17882 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17883 int use_ascii (int i) {
17884 return ascii_mm[i] + ascii_ii[i];
17886 short int ebcdic_ii[] =
17887 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17888 short int ebcdic_mm[] =
17889 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17890 int use_ebcdic (int i) {
17891 return ebcdic_mm[i] + ebcdic_ii[i];
17893 extern int foo;
17896 main ()
17898 return use_ascii (foo) == use_ebcdic (foo);
17900 return 0;
17902 _ACEOF
17903 if ac_fn_c_try_compile "$LINENO"; then :
17904 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17905 ac_cv_c_bigendian=yes
17907 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17908 if test "$ac_cv_c_bigendian" = unknown; then
17909 ac_cv_c_bigendian=no
17910 else
17911 # finding both strings is unlikely to happen, but who knows?
17912 ac_cv_c_bigendian=unknown
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 else
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920 $ac_includes_default
17922 main ()
17925 /* Are we little or big endian? From Harbison&Steele. */
17926 union
17928 long int l;
17929 char c[sizeof (long int)];
17930 } u;
17931 u.l = 1;
17932 return u.c[sizeof (long int) - 1] == 1;
17935 return 0;
17937 _ACEOF
17938 if ac_fn_c_try_run "$LINENO"; then :
17939 ac_cv_c_bigendian=no
17940 else
17941 ac_cv_c_bigendian=yes
17943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17944 conftest.$ac_objext conftest.beam conftest.$ac_ext
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17950 $as_echo "$ac_cv_c_bigendian" >&6; }
17951 case $ac_cv_c_bigendian in #(
17952 yes)
17953 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17954 ;; #(
17956 ;; #(
17957 universal)
17959 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17961 ;; #(
17963 as_fn_error "unknown endianness
17964 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17965 esac
17969 GNULIB_CHDIR=0;
17970 GNULIB_CHOWN=0;
17971 GNULIB_CLOSE=0;
17972 GNULIB_DUP=0;
17973 GNULIB_DUP2=0;
17974 GNULIB_DUP3=0;
17975 GNULIB_ENVIRON=0;
17976 GNULIB_EUIDACCESS=0;
17977 GNULIB_FACCESSAT=0;
17978 GNULIB_FCHDIR=0;
17979 GNULIB_FCHOWNAT=0;
17980 GNULIB_FDATASYNC=0;
17981 GNULIB_FSYNC=0;
17982 GNULIB_FTRUNCATE=0;
17983 GNULIB_GETCWD=0;
17984 GNULIB_GETDOMAINNAME=0;
17985 GNULIB_GETDTABLESIZE=0;
17986 GNULIB_GETGROUPS=0;
17987 GNULIB_GETHOSTNAME=0;
17988 GNULIB_GETLOGIN=0;
17989 GNULIB_GETLOGIN_R=0;
17990 GNULIB_GETPAGESIZE=0;
17991 GNULIB_GETUSERSHELL=0;
17992 GNULIB_GROUP_MEMBER=0;
17993 GNULIB_ISATTY=0;
17994 GNULIB_LCHOWN=0;
17995 GNULIB_LINK=0;
17996 GNULIB_LINKAT=0;
17997 GNULIB_LSEEK=0;
17998 GNULIB_PIPE=0;
17999 GNULIB_PIPE2=0;
18000 GNULIB_PREAD=0;
18001 GNULIB_PWRITE=0;
18002 GNULIB_READ=0;
18003 GNULIB_READLINK=0;
18004 GNULIB_READLINKAT=0;
18005 GNULIB_RMDIR=0;
18006 GNULIB_SETHOSTNAME=0;
18007 GNULIB_SLEEP=0;
18008 GNULIB_SYMLINK=0;
18009 GNULIB_SYMLINKAT=0;
18010 GNULIB_TTYNAME_R=0;
18011 GNULIB_UNISTD_H_NONBLOCKING=0;
18012 GNULIB_UNISTD_H_SIGPIPE=0;
18013 GNULIB_UNLINK=0;
18014 GNULIB_UNLINKAT=0;
18015 GNULIB_USLEEP=0;
18016 GNULIB_WRITE=0;
18017 HAVE_CHOWN=1;
18018 HAVE_DUP2=1;
18019 HAVE_DUP3=1;
18020 HAVE_EUIDACCESS=1;
18021 HAVE_FACCESSAT=1;
18022 HAVE_FCHDIR=1;
18023 HAVE_FCHOWNAT=1;
18024 HAVE_FDATASYNC=1;
18025 HAVE_FSYNC=1;
18026 HAVE_FTRUNCATE=1;
18027 HAVE_GETDTABLESIZE=1;
18028 HAVE_GETGROUPS=1;
18029 HAVE_GETHOSTNAME=1;
18030 HAVE_GETLOGIN=1;
18031 HAVE_GETPAGESIZE=1;
18032 HAVE_GROUP_MEMBER=1;
18033 HAVE_LCHOWN=1;
18034 HAVE_LINK=1;
18035 HAVE_LINKAT=1;
18036 HAVE_PIPE=1;
18037 HAVE_PIPE2=1;
18038 HAVE_PREAD=1;
18039 HAVE_PWRITE=1;
18040 HAVE_READLINK=1;
18041 HAVE_READLINKAT=1;
18042 HAVE_SETHOSTNAME=1;
18043 HAVE_SLEEP=1;
18044 HAVE_SYMLINK=1;
18045 HAVE_SYMLINKAT=1;
18046 HAVE_UNLINKAT=1;
18047 HAVE_USLEEP=1;
18048 HAVE_DECL_ENVIRON=1;
18049 HAVE_DECL_FCHDIR=1;
18050 HAVE_DECL_FDATASYNC=1;
18051 HAVE_DECL_GETDOMAINNAME=1;
18052 HAVE_DECL_GETLOGIN_R=1;
18053 HAVE_DECL_GETPAGESIZE=1;
18054 HAVE_DECL_GETUSERSHELL=1;
18055 HAVE_DECL_SETHOSTNAME=1;
18056 HAVE_DECL_TTYNAME_R=1;
18057 HAVE_OS_H=0;
18058 HAVE_SYS_PARAM_H=0;
18059 REPLACE_CHOWN=0;
18060 REPLACE_CLOSE=0;
18061 REPLACE_DUP=0;
18062 REPLACE_DUP2=0;
18063 REPLACE_FCHOWNAT=0;
18064 REPLACE_FTRUNCATE=0;
18065 REPLACE_GETCWD=0;
18066 REPLACE_GETDOMAINNAME=0;
18067 REPLACE_GETLOGIN_R=0;
18068 REPLACE_GETGROUPS=0;
18069 REPLACE_GETPAGESIZE=0;
18070 REPLACE_ISATTY=0;
18071 REPLACE_LCHOWN=0;
18072 REPLACE_LINK=0;
18073 REPLACE_LINKAT=0;
18074 REPLACE_LSEEK=0;
18075 REPLACE_PREAD=0;
18076 REPLACE_PWRITE=0;
18077 REPLACE_READ=0;
18078 REPLACE_READLINK=0;
18079 REPLACE_RMDIR=0;
18080 REPLACE_SLEEP=0;
18081 REPLACE_SYMLINK=0;
18082 REPLACE_TTYNAME_R=0;
18083 REPLACE_UNLINK=0;
18084 REPLACE_UNLINKAT=0;
18085 REPLACE_USLEEP=0;
18086 REPLACE_WRITE=0;
18087 UNISTD_H_HAVE_WINSOCK2_H=0;
18088 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
18092 GNULIB_OPENDIR=0;
18093 GNULIB_READDIR=0;
18094 GNULIB_REWINDDIR=0;
18095 GNULIB_CLOSEDIR=0;
18096 GNULIB_DIRFD=0;
18097 GNULIB_FDOPENDIR=0;
18098 GNULIB_SCANDIR=0;
18099 GNULIB_ALPHASORT=0;
18100 HAVE_OPENDIR=1;
18101 HAVE_READDIR=1;
18102 HAVE_REWINDDIR=1;
18103 HAVE_CLOSEDIR=1;
18104 HAVE_DECL_DIRFD=1;
18105 HAVE_DECL_FDOPENDIR=1;
18106 HAVE_FDOPENDIR=1;
18107 HAVE_SCANDIR=1;
18108 HAVE_ALPHASORT=1;
18109 REPLACE_OPENDIR=0;
18110 REPLACE_CLOSEDIR=0;
18111 REPLACE_DIRFD=0;
18112 REPLACE_FDOPENDIR=0;
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
18117 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
18118 if test "${gl_cv_have_include_next+set}" = set; then :
18119 $as_echo_n "(cached) " >&6
18120 else
18121 rm -rf conftestd1a conftestd1b conftestd2
18122 mkdir conftestd1a conftestd1b conftestd2
18123 cat <<EOF > conftestd1a/conftest.h
18124 #define DEFINED_IN_CONFTESTD1
18125 #include_next <conftest.h>
18126 #ifdef DEFINED_IN_CONFTESTD2
18127 int foo;
18128 #else
18129 #error "include_next doesn't work"
18130 #endif
18132 cat <<EOF > conftestd1b/conftest.h
18133 #define DEFINED_IN_CONFTESTD1
18134 #include <stdio.h>
18135 #include_next <conftest.h>
18136 #ifdef DEFINED_IN_CONFTESTD2
18137 int foo;
18138 #else
18139 #error "include_next doesn't work"
18140 #endif
18142 cat <<EOF > conftestd2/conftest.h
18143 #ifndef DEFINED_IN_CONFTESTD1
18144 #error "include_next test doesn't work"
18145 #endif
18146 #define DEFINED_IN_CONFTESTD2
18148 gl_save_CPPFLAGS="$CPPFLAGS"
18149 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
18150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151 /* end confdefs.h. */
18152 #include <conftest.h>
18153 _ACEOF
18154 if ac_fn_c_try_compile "$LINENO"; then :
18155 gl_cv_have_include_next=yes
18156 else
18157 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18160 #include <conftest.h>
18161 _ACEOF
18162 if ac_fn_c_try_compile "$LINENO"; then :
18163 gl_cv_have_include_next=buggy
18164 else
18165 gl_cv_have_include_next=no
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171 CPPFLAGS="$gl_save_CPPFLAGS"
18172 rm -rf conftestd1a conftestd1b conftestd2
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18176 $as_echo "$gl_cv_have_include_next" >&6; }
18177 PRAGMA_SYSTEM_HEADER=
18178 if test $gl_cv_have_include_next = yes; then
18179 INCLUDE_NEXT=include_next
18180 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18181 if test -n "$GCC"; then
18182 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18184 else
18185 if test $gl_cv_have_include_next = buggy; then
18186 INCLUDE_NEXT=include
18187 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18188 else
18189 INCLUDE_NEXT=include
18190 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18197 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18198 if test "${gl_cv_pragma_columns+set}" = set; then :
18199 $as_echo_n "(cached) " >&6
18200 else
18201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202 /* end confdefs.h. */
18204 #ifdef __TANDEM
18205 choke me
18206 #endif
18208 _ACEOF
18209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18210 $EGREP "choke me" >/dev/null 2>&1; then :
18211 gl_cv_pragma_columns=yes
18212 else
18213 gl_cv_pragma_columns=no
18215 rm -f conftest*
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18220 $as_echo "$gl_cv_pragma_columns" >&6; }
18221 if test $gl_cv_pragma_columns = yes; then
18222 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18223 else
18224 PRAGMA_COLUMNS=
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18232 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18233 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18234 $as_echo_n "(cached) " >&6
18235 else
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18238 /* On HP-UX before 11.23, strtold returns a struct instead of
18239 long double. Reject implementations like that, by requiring
18240 compatibility with the C99 prototype. */
18241 #include <stdlib.h>
18242 static long double (*p) (char const *, char **) = strtold;
18243 static long double
18244 test (char const *nptr, char **endptr)
18246 long double r;
18247 r = strtold (nptr, endptr);
18248 return r;
18251 main ()
18253 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18255 return 0;
18257 _ACEOF
18258 if ac_fn_c_try_link "$LINENO"; then :
18259 gl_cv_func_c99_strtold=yes
18260 else
18261 gl_cv_func_c99_strtold=no
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18267 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18268 if test $gl_cv_func_c99_strtold = yes; then
18270 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18282 $as_echo_n "checking if environ is properly declared... " >&6; }
18283 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18284 $as_echo_n "(cached) " >&6
18285 else
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289 #if HAVE_UNISTD_H
18290 #include <unistd.h>
18291 #endif
18292 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18293 #include <stdlib.h>
18295 extern struct { int foo; } environ;
18297 main ()
18299 environ.foo = 1;
18301 return 0;
18303 _ACEOF
18304 if ac_fn_c_try_compile "$LINENO"; then :
18305 gt_cv_var_environ_declaration=no
18306 else
18307 gt_cv_var_environ_declaration=yes
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18313 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18314 if test $gt_cv_var_environ_declaration = yes; then
18316 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18321 if test $gt_cv_var_environ_declaration != yes; then
18322 HAVE_DECL_ENVIRON=0
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18328 $as_echo_n "checking for complete errno.h... " >&6; }
18329 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18330 $as_echo_n "(cached) " >&6
18331 else
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18336 #include <errno.h>
18337 #if !defined ETXTBSY
18338 booboo
18339 #endif
18340 #if !defined ENOMSG
18341 booboo
18342 #endif
18343 #if !defined EIDRM
18344 booboo
18345 #endif
18346 #if !defined ENOLINK
18347 booboo
18348 #endif
18349 #if !defined EPROTO
18350 booboo
18351 #endif
18352 #if !defined EMULTIHOP
18353 booboo
18354 #endif
18355 #if !defined EBADMSG
18356 booboo
18357 #endif
18358 #if !defined EOVERFLOW
18359 booboo
18360 #endif
18361 #if !defined ENOTSUP
18362 booboo
18363 #endif
18364 #if !defined ENETRESET
18365 booboo
18366 #endif
18367 #if !defined ECONNABORTED
18368 booboo
18369 #endif
18370 #if !defined ESTALE
18371 booboo
18372 #endif
18373 #if !defined EDQUOT
18374 booboo
18375 #endif
18376 #if !defined ECANCELED
18377 booboo
18378 #endif
18379 #if !defined EOWNERDEAD
18380 booboo
18381 #endif
18382 #if !defined ENOTRECOVERABLE
18383 booboo
18384 #endif
18385 #if !defined EILSEQ
18386 booboo
18387 #endif
18389 _ACEOF
18390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18391 $EGREP "booboo" >/dev/null 2>&1; then :
18392 gl_cv_header_errno_h_complete=no
18393 else
18394 gl_cv_header_errno_h_complete=yes
18396 rm -f conftest*
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18401 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18402 if test $gl_cv_header_errno_h_complete = yes; then
18403 ERRNO_H=''
18404 else
18413 if test $gl_cv_have_include_next = yes; then
18414 gl_cv_next_errno_h='<'errno.h'>'
18415 else
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18417 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18418 if test "${gl_cv_next_errno_h+set}" = set; then :
18419 $as_echo_n "(cached) " >&6
18420 else
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18424 #include <errno.h>
18426 _ACEOF
18427 case "$host_os" in
18428 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18429 *) gl_absname_cpp="$ac_cpp" ;;
18430 esac
18432 case "$host_os" in
18433 mingw*)
18434 gl_dirsep_regex='[/\\]'
18437 gl_dirsep_regex='\/'
18439 esac
18440 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18442 gl_header_literal_regex=`echo 'errno.h' \
18443 | sed -e "$gl_make_literal_regex_sed"`
18444 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18445 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18446 s|^/[^/]|//&|
18450 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18451 sed -n "$gl_absolute_header_sed"`'"'
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18456 $as_echo "$gl_cv_next_errno_h" >&6; }
18458 NEXT_ERRNO_H=$gl_cv_next_errno_h
18460 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18461 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18462 gl_next_as_first_directive='<'errno.h'>'
18463 else
18464 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18465 gl_next_as_first_directive=$gl_cv_next_errno_h
18467 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18472 ERRNO_H='errno.h'
18475 if test -n "$ERRNO_H"; then
18476 GL_GENERATE_ERRNO_H_TRUE=
18477 GL_GENERATE_ERRNO_H_FALSE='#'
18478 else
18479 GL_GENERATE_ERRNO_H_TRUE='#'
18480 GL_GENERATE_ERRNO_H_FALSE=
18484 if test -n "$ERRNO_H"; then
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18486 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18487 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18488 $as_echo_n "(cached) " >&6
18489 else
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18494 #include <errno.h>
18495 #ifdef EMULTIHOP
18497 #endif
18499 _ACEOF
18500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18501 $EGREP "yes" >/dev/null 2>&1; then :
18502 gl_cv_header_errno_h_EMULTIHOP=yes
18503 else
18504 gl_cv_header_errno_h_EMULTIHOP=no
18506 rm -f conftest*
18508 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h. */
18512 #define _XOPEN_SOURCE_EXTENDED 1
18513 #include <errno.h>
18514 #ifdef EMULTIHOP
18516 #endif
18518 _ACEOF
18519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18520 $EGREP "yes" >/dev/null 2>&1; then :
18521 gl_cv_header_errno_h_EMULTIHOP=hidden
18523 rm -f conftest*
18525 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18526 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18527 #define _XOPEN_SOURCE_EXTENDED 1
18528 #include <errno.h>
18529 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18530 #include <stdio.h>
18531 #include <stdlib.h>
18532 "; then :
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18541 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18542 case $gl_cv_header_errno_h_EMULTIHOP in
18543 yes | no)
18544 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18547 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18549 esac
18555 if test -n "$ERRNO_H"; then
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18557 $as_echo_n "checking for ENOLINK value... " >&6; }
18558 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18559 $as_echo_n "(cached) " >&6
18560 else
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18565 #include <errno.h>
18566 #ifdef ENOLINK
18568 #endif
18570 _ACEOF
18571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18572 $EGREP "yes" >/dev/null 2>&1; then :
18573 gl_cv_header_errno_h_ENOLINK=yes
18574 else
18575 gl_cv_header_errno_h_ENOLINK=no
18577 rm -f conftest*
18579 if test $gl_cv_header_errno_h_ENOLINK = no; then
18580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h. */
18583 #define _XOPEN_SOURCE_EXTENDED 1
18584 #include <errno.h>
18585 #ifdef ENOLINK
18587 #endif
18589 _ACEOF
18590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18591 $EGREP "yes" >/dev/null 2>&1; then :
18592 gl_cv_header_errno_h_ENOLINK=hidden
18594 rm -f conftest*
18596 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18597 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18598 #define _XOPEN_SOURCE_EXTENDED 1
18599 #include <errno.h>
18600 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18601 #include <stdio.h>
18602 #include <stdlib.h>
18603 "; then :
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18612 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18613 case $gl_cv_header_errno_h_ENOLINK in
18614 yes | no)
18615 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18618 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18620 esac
18626 if test -n "$ERRNO_H"; then
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18628 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18629 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18630 $as_echo_n "(cached) " >&6
18631 else
18633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634 /* end confdefs.h. */
18636 #include <errno.h>
18637 #ifdef EOVERFLOW
18639 #endif
18641 _ACEOF
18642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18643 $EGREP "yes" >/dev/null 2>&1; then :
18644 gl_cv_header_errno_h_EOVERFLOW=yes
18645 else
18646 gl_cv_header_errno_h_EOVERFLOW=no
18648 rm -f conftest*
18650 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18654 #define _XOPEN_SOURCE_EXTENDED 1
18655 #include <errno.h>
18656 #ifdef EOVERFLOW
18658 #endif
18660 _ACEOF
18661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18662 $EGREP "yes" >/dev/null 2>&1; then :
18663 gl_cv_header_errno_h_EOVERFLOW=hidden
18665 rm -f conftest*
18667 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18668 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18669 #define _XOPEN_SOURCE_EXTENDED 1
18670 #include <errno.h>
18671 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18672 #include <stdio.h>
18673 #include <stdlib.h>
18674 "; then :
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18683 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18684 case $gl_cv_header_errno_h_EOVERFLOW in
18685 yes | no)
18686 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18689 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18691 esac
18705 GNULIB_FCNTL=0;
18706 GNULIB_NONBLOCKING=0;
18707 GNULIB_OPEN=0;
18708 GNULIB_OPENAT=0;
18709 HAVE_FCNTL=1;
18710 HAVE_OPENAT=1;
18711 REPLACE_FCNTL=0;
18712 REPLACE_OPEN=0;
18713 REPLACE_OPENAT=0;
18718 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18719 if test "x$ac_cv_type_mode_t" = x""yes; then :
18721 else
18723 cat >>confdefs.h <<_ACEOF
18724 #define mode_t int
18725 _ACEOF
18729 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18730 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
18731 ac_have_decl=1
18732 else
18733 ac_have_decl=0
18736 cat >>confdefs.h <<_ACEOF
18737 #define HAVE_DECL_FDATASYNC $ac_have_decl
18738 _ACEOF
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18743 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18744 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18745 $as_echo_n "(cached) " >&6
18746 else
18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18748 /* end confdefs.h. */
18750 #include <sys/types.h>
18751 #include <sys/stat.h>
18753 main ()
18755 struct stat s; s.st_dm_mode;
18757 return 0;
18759 _ACEOF
18760 if ac_fn_c_try_compile "$LINENO"; then :
18761 ac_cv_struct_st_dm_mode=yes
18762 else
18763 ac_cv_struct_st_dm_mode=no
18765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18768 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18770 if test $ac_cv_struct_st_dm_mode = yes; then
18772 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18777 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18778 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
18779 ac_have_decl=1
18780 else
18781 ac_have_decl=0
18784 cat >>confdefs.h <<_ACEOF
18785 #define HAVE_DECL_STRMODE $ac_have_decl
18786 _ACEOF
18791 GNULIB_FCHMODAT=0;
18792 GNULIB_FSTAT=0;
18793 GNULIB_FSTATAT=0;
18794 GNULIB_FUTIMENS=0;
18795 GNULIB_LCHMOD=0;
18796 GNULIB_LSTAT=0;
18797 GNULIB_MKDIRAT=0;
18798 GNULIB_MKFIFO=0;
18799 GNULIB_MKFIFOAT=0;
18800 GNULIB_MKNOD=0;
18801 GNULIB_MKNODAT=0;
18802 GNULIB_STAT=0;
18803 GNULIB_UTIMENSAT=0;
18804 HAVE_FCHMODAT=1;
18805 HAVE_FSTATAT=1;
18806 HAVE_FUTIMENS=1;
18807 HAVE_LCHMOD=1;
18808 HAVE_LSTAT=1;
18809 HAVE_MKDIRAT=1;
18810 HAVE_MKFIFO=1;
18811 HAVE_MKFIFOAT=1;
18812 HAVE_MKNOD=1;
18813 HAVE_MKNODAT=1;
18814 HAVE_UTIMENSAT=1;
18815 REPLACE_FSTAT=0;
18816 REPLACE_FSTATAT=0;
18817 REPLACE_FUTIMENS=0;
18818 REPLACE_LSTAT=0;
18819 REPLACE_MKDIR=0;
18820 REPLACE_MKFIFO=0;
18821 REPLACE_MKNOD=0;
18822 REPLACE_STAT=0;
18823 REPLACE_UTIMENSAT=0;
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18827 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18828 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18829 $as_echo_n "(cached) " >&6
18830 else
18831 rm -f conftest.sym conftest.file
18832 echo >conftest.file
18833 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18834 if test "$cross_compiling" = yes; then :
18835 case "$host_os" in
18836 # Guess yes on glibc systems.
18837 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18838 # If we don't know, assume the worst.
18839 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18840 esac
18842 else
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845 $ac_includes_default
18847 main ()
18849 struct stat sbuf;
18850 /* Linux will dereference the symlink and fail, as required by
18851 POSIX. That is better in the sense that it means we will not
18852 have to compile and use the lstat wrapper. */
18853 return lstat ("conftest.sym/", &sbuf) == 0;
18856 return 0;
18858 _ACEOF
18859 if ac_fn_c_try_run "$LINENO"; then :
18860 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18861 else
18862 gl_cv_func_lstat_dereferences_slashed_symlink=no
18864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18865 conftest.$ac_objext conftest.beam conftest.$ac_ext
18868 else
18869 # If the 'ln -s' command failed, then we probably don't even
18870 # have an lstat function.
18871 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18873 rm -f conftest.sym conftest.file
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18877 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18878 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18879 *yes)
18881 cat >>confdefs.h <<_ACEOF
18882 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18883 _ACEOF
18886 esac
18893 GNULIB__EXIT=0;
18894 GNULIB_ATOLL=0;
18895 GNULIB_CALLOC_POSIX=0;
18896 GNULIB_CANONICALIZE_FILE_NAME=0;
18897 GNULIB_GETLOADAVG=0;
18898 GNULIB_GETSUBOPT=0;
18899 GNULIB_GRANTPT=0;
18900 GNULIB_MALLOC_POSIX=0;
18901 GNULIB_MBTOWC=0;
18902 GNULIB_MKDTEMP=0;
18903 GNULIB_MKOSTEMP=0;
18904 GNULIB_MKOSTEMPS=0;
18905 GNULIB_MKSTEMP=0;
18906 GNULIB_MKSTEMPS=0;
18907 GNULIB_POSIX_OPENPT=0;
18908 GNULIB_PTSNAME=0;
18909 GNULIB_PTSNAME_R=0;
18910 GNULIB_PUTENV=0;
18911 GNULIB_RANDOM=0;
18912 GNULIB_RANDOM_R=0;
18913 GNULIB_REALLOC_POSIX=0;
18914 GNULIB_REALPATH=0;
18915 GNULIB_RPMATCH=0;
18916 GNULIB_SECURE_GETENV=0;
18917 GNULIB_SETENV=0;
18918 GNULIB_STRTOD=0;
18919 GNULIB_STRTOLL=0;
18920 GNULIB_STRTOULL=0;
18921 GNULIB_SYSTEM_POSIX=0;
18922 GNULIB_UNLOCKPT=0;
18923 GNULIB_UNSETENV=0;
18924 GNULIB_WCTOMB=0;
18925 HAVE__EXIT=1;
18926 HAVE_ATOLL=1;
18927 HAVE_CANONICALIZE_FILE_NAME=1;
18928 HAVE_DECL_GETLOADAVG=1;
18929 HAVE_GETSUBOPT=1;
18930 HAVE_GRANTPT=1;
18931 HAVE_MKDTEMP=1;
18932 HAVE_MKOSTEMP=1;
18933 HAVE_MKOSTEMPS=1;
18934 HAVE_MKSTEMP=1;
18935 HAVE_MKSTEMPS=1;
18936 HAVE_POSIX_OPENPT=1;
18937 HAVE_PTSNAME=1;
18938 HAVE_PTSNAME_R=1;
18939 HAVE_RANDOM=1;
18940 HAVE_RANDOM_H=1;
18941 HAVE_RANDOM_R=1;
18942 HAVE_REALPATH=1;
18943 HAVE_RPMATCH=1;
18944 HAVE_SECURE_GETENV=1;
18945 HAVE_SETENV=1;
18946 HAVE_DECL_SETENV=1;
18947 HAVE_STRTOD=1;
18948 HAVE_STRTOLL=1;
18949 HAVE_STRTOULL=1;
18950 HAVE_STRUCT_RANDOM_DATA=1;
18951 HAVE_SYS_LOADAVG_H=0;
18952 HAVE_UNLOCKPT=1;
18953 HAVE_DECL_UNSETENV=1;
18954 REPLACE_CALLOC=0;
18955 REPLACE_CANONICALIZE_FILE_NAME=0;
18956 REPLACE_MALLOC=0;
18957 REPLACE_MBTOWC=0;
18958 REPLACE_MKSTEMP=0;
18959 REPLACE_PTSNAME=0;
18960 REPLACE_PTSNAME_R=0;
18961 REPLACE_PUTENV=0;
18962 REPLACE_RANDOM_R=0;
18963 REPLACE_REALLOC=0;
18964 REPLACE_REALPATH=0;
18965 REPLACE_SETENV=0;
18966 REPLACE_STRTOD=0;
18967 REPLACE_UNSETENV=0;
18968 REPLACE_WCTOMB=0;
18985 if test $gl_cv_have_include_next = yes; then
18986 gl_cv_next_getopt_h='<'getopt.h'>'
18987 else
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18989 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18990 if test "${gl_cv_next_getopt_h+set}" = set; then :
18991 $as_echo_n "(cached) " >&6
18992 else
18994 if test $ac_cv_header_getopt_h = yes; then
18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h. */
18999 #include <getopt.h>
19001 _ACEOF
19002 case "$host_os" in
19003 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19004 *) gl_absname_cpp="$ac_cpp" ;;
19005 esac
19007 case "$host_os" in
19008 mingw*)
19009 gl_dirsep_regex='[/\\]'
19012 gl_dirsep_regex='\/'
19014 esac
19015 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19017 gl_header_literal_regex=`echo 'getopt.h' \
19018 | sed -e "$gl_make_literal_regex_sed"`
19019 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19020 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19021 s|^/[^/]|//&|
19025 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19026 sed -n "$gl_absolute_header_sed"`'"'
19027 else
19028 gl_cv_next_getopt_h='<'getopt.h'>'
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
19034 $as_echo "$gl_cv_next_getopt_h" >&6; }
19036 NEXT_GETOPT_H=$gl_cv_next_getopt_h
19038 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19039 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19040 gl_next_as_first_directive='<'getopt.h'>'
19041 else
19042 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19043 gl_next_as_first_directive=$gl_cv_next_getopt_h
19045 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
19050 if test $ac_cv_header_getopt_h = yes; then
19051 HAVE_GETOPT_H=1
19052 else
19053 HAVE_GETOPT_H=0
19057 gl_replace_getopt=
19059 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19060 for ac_header in getopt.h
19061 do :
19062 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
19063 if test "x$ac_cv_header_getopt_h" = x""yes; then :
19064 cat >>confdefs.h <<_ACEOF
19065 #define HAVE_GETOPT_H 1
19066 _ACEOF
19068 else
19069 gl_replace_getopt=yes
19072 done
19076 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19077 for ac_func in getopt_long_only
19078 do :
19079 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
19080 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
19081 cat >>confdefs.h <<_ACEOF
19082 #define HAVE_GETOPT_LONG_ONLY 1
19083 _ACEOF
19085 else
19086 gl_replace_getopt=yes
19088 done
19092 if test -z "$gl_replace_getopt"; then
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
19094 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
19095 if test "${gl_cv_func_getopt_posix+set}" = set; then :
19096 $as_echo_n "(cached) " >&6
19097 else
19099 if test $cross_compiling = no; then
19100 if test "$cross_compiling" = yes; then :
19101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19103 as_fn_error "cannot run test program while cross compiling
19104 See \`config.log' for more details." "$LINENO" 5; }
19105 else
19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19107 /* end confdefs.h. */
19109 #include <unistd.h>
19110 #include <stdlib.h>
19111 #include <string.h>
19114 main ()
19116 static char program[] = "program";
19117 static char a[] = "-a";
19118 static char foo[] = "foo";
19119 static char bar[] = "bar";
19120 char *argv[] = { program, a, foo, bar, NULL };
19121 int c;
19123 c = getopt (4, argv, "ab");
19124 if (!(c == 'a'))
19125 return 1;
19126 c = getopt (4, argv, "ab");
19127 if (!(c == -1))
19128 return 2;
19129 if (!(optind == 2))
19130 return 3;
19131 return 0;
19134 _ACEOF
19135 if ac_fn_c_try_run "$LINENO"; then :
19136 gl_cv_func_getopt_posix=maybe
19137 else
19138 gl_cv_func_getopt_posix=no
19140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19141 conftest.$ac_objext conftest.beam conftest.$ac_ext
19144 if test $gl_cv_func_getopt_posix = maybe; then
19145 if test "$cross_compiling" = yes; then :
19146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19148 as_fn_error "cannot run test program while cross compiling
19149 See \`config.log' for more details." "$LINENO" 5; }
19150 else
19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19154 #include <unistd.h>
19155 #include <stdlib.h>
19156 #include <string.h>
19159 main ()
19161 static char program[] = "program";
19162 static char donald[] = "donald";
19163 static char p[] = "-p";
19164 static char billy[] = "billy";
19165 static char duck[] = "duck";
19166 static char a[] = "-a";
19167 static char bar[] = "bar";
19168 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
19169 int c;
19171 c = getopt (7, argv, "+abp:q:");
19172 if (!(c == -1))
19173 return 4;
19174 if (!(strcmp (argv[0], "program") == 0))
19175 return 5;
19176 if (!(strcmp (argv[1], "donald") == 0))
19177 return 6;
19178 if (!(strcmp (argv[2], "-p") == 0))
19179 return 7;
19180 if (!(strcmp (argv[3], "billy") == 0))
19181 return 8;
19182 if (!(strcmp (argv[4], "duck") == 0))
19183 return 9;
19184 if (!(strcmp (argv[5], "-a") == 0))
19185 return 10;
19186 if (!(strcmp (argv[6], "bar") == 0))
19187 return 11;
19188 if (!(optind == 1))
19189 return 12;
19190 return 0;
19193 _ACEOF
19194 if ac_fn_c_try_run "$LINENO"; then :
19195 gl_cv_func_getopt_posix=maybe
19196 else
19197 gl_cv_func_getopt_posix=no
19199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19200 conftest.$ac_objext conftest.beam conftest.$ac_ext
19204 if test $gl_cv_func_getopt_posix = maybe; then
19205 if test "$cross_compiling" = yes; then :
19206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19208 as_fn_error "cannot run test program while cross compiling
19209 See \`config.log' for more details." "$LINENO" 5; }
19210 else
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19214 #include <unistd.h>
19215 #include <stdlib.h>
19216 #include <string.h>
19219 main ()
19221 static char program[] = "program";
19222 static char ab[] = "-ab";
19223 char *argv[3] = { program, ab, NULL };
19224 if (getopt (2, argv, "ab:") != 'a')
19225 return 13;
19226 if (getopt (2, argv, "ab:") != '?')
19227 return 14;
19228 if (optopt != 'b')
19229 return 15;
19230 if (optind != 2)
19231 return 16;
19232 return 0;
19235 _ACEOF
19236 if ac_fn_c_try_run "$LINENO"; then :
19237 gl_cv_func_getopt_posix=yes
19238 else
19239 gl_cv_func_getopt_posix=no
19241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19242 conftest.$ac_objext conftest.beam conftest.$ac_ext
19246 else
19247 case "$host_os" in
19248 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19249 *) gl_cv_func_getopt_posix="guessing yes";;
19250 esac
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19255 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19256 case "$gl_cv_func_getopt_posix" in
19257 *no) gl_replace_getopt=yes ;;
19258 esac
19261 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19263 $as_echo_n "checking for working GNU getopt function... " >&6; }
19264 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19265 $as_echo_n "(cached) " >&6
19266 else
19267 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19268 # optstring is necessary for programs like m4 that have POSIX-mandated
19269 # semantics for supporting options interspersed with files.
19270 # Also, since getopt_long is a GNU extension, we require optind=0.
19271 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19272 # so take care to revert to the correct (non-)export state.
19273 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19274 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19275 xx) gl_had_POSIXLY_CORRECT=exported ;;
19276 x) gl_had_POSIXLY_CORRECT=yes ;;
19277 *) gl_had_POSIXLY_CORRECT= ;;
19278 esac
19279 POSIXLY_CORRECT=1
19280 export POSIXLY_CORRECT
19281 if test "$cross_compiling" = yes; then :
19282 gl_cv_func_getopt_gnu="guessing no"
19284 else
19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h. */
19287 #include <getopt.h>
19288 #include <stddef.h>
19289 #include <string.h>
19291 #include <stdlib.h>
19292 #if defined __MACH__ && defined __APPLE__
19293 /* Avoid a crash on Mac OS X. */
19294 #include <mach/mach.h>
19295 #include <mach/mach_error.h>
19296 #include <mach/thread_status.h>
19297 #include <mach/exception.h>
19298 #include <mach/task.h>
19299 #include <pthread.h>
19300 /* The exception port on which our thread listens. */
19301 static mach_port_t our_exception_port;
19302 /* The main function of the thread listening for exceptions of type
19303 EXC_BAD_ACCESS. */
19304 static void *
19305 mach_exception_thread (void *arg)
19307 /* Buffer for a message to be received. */
19308 struct {
19309 mach_msg_header_t head;
19310 mach_msg_body_t msgh_body;
19311 char data[1024];
19312 } msg;
19313 mach_msg_return_t retval;
19314 /* Wait for a message on the exception port. */
19315 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19316 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19317 if (retval != MACH_MSG_SUCCESS)
19318 abort ();
19319 exit (1);
19321 static void
19322 nocrash_init (void)
19324 mach_port_t self = mach_task_self ();
19325 /* Allocate a port on which the thread shall listen for exceptions. */
19326 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19327 == KERN_SUCCESS) {
19328 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19329 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19330 MACH_MSG_TYPE_MAKE_SEND)
19331 == KERN_SUCCESS) {
19332 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19333 for us. */
19334 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19335 /* Create the thread listening on the exception port. */
19336 pthread_attr_t attr;
19337 pthread_t thread;
19338 if (pthread_attr_init (&attr) == 0
19339 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19340 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19341 pthread_attr_destroy (&attr);
19342 /* Replace the exception port info for these exceptions with our own.
19343 Note that we replace the exception port for the entire task, not only
19344 for a particular thread. This has the effect that when our exception
19345 port gets the message, the thread specific exception port has already
19346 been asked, and we don't need to bother about it.
19347 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19348 task_set_exception_ports (self, mask, our_exception_port,
19349 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19354 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19355 /* Avoid a crash on native Windows. */
19356 #define WIN32_LEAN_AND_MEAN
19357 #include <windows.h>
19358 #include <winerror.h>
19359 static LONG WINAPI
19360 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19362 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19364 case EXCEPTION_ACCESS_VIOLATION:
19365 case EXCEPTION_IN_PAGE_ERROR:
19366 case EXCEPTION_STACK_OVERFLOW:
19367 case EXCEPTION_GUARD_PAGE:
19368 case EXCEPTION_PRIV_INSTRUCTION:
19369 case EXCEPTION_ILLEGAL_INSTRUCTION:
19370 case EXCEPTION_DATATYPE_MISALIGNMENT:
19371 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19372 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19373 exit (1);
19375 return EXCEPTION_CONTINUE_SEARCH;
19377 static void
19378 nocrash_init (void)
19380 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19382 #else
19383 /* Avoid a crash on POSIX systems. */
19384 #include <signal.h>
19385 /* A POSIX signal handler. */
19386 static void
19387 exception_handler (int sig)
19389 exit (1);
19391 static void
19392 nocrash_init (void)
19394 #ifdef SIGSEGV
19395 signal (SIGSEGV, exception_handler);
19396 #endif
19397 #ifdef SIGBUS
19398 signal (SIGBUS, exception_handler);
19399 #endif
19401 #endif
19405 main ()
19408 int result = 0;
19410 nocrash_init();
19412 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19413 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19414 OSF/1 5.1, Solaris 10. */
19416 static char conftest[] = "conftest";
19417 static char plus[] = "-+";
19418 char *argv[3] = { conftest, plus, NULL };
19419 opterr = 0;
19420 if (getopt (2, argv, "+a") != '?')
19421 result |= 1;
19423 /* This code succeeds on glibc 2.8, mingw,
19424 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19425 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19427 static char program[] = "program";
19428 static char p[] = "-p";
19429 static char foo[] = "foo";
19430 static char bar[] = "bar";
19431 char *argv[] = { program, p, foo, bar, NULL };
19433 optind = 1;
19434 if (getopt (4, argv, "p::") != 'p')
19435 result |= 2;
19436 else if (optarg != NULL)
19437 result |= 4;
19438 else if (getopt (4, argv, "p::") != -1)
19439 result |= 6;
19440 else if (optind != 2)
19441 result |= 8;
19443 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19445 static char program[] = "program";
19446 static char foo[] = "foo";
19447 static char p[] = "-p";
19448 char *argv[] = { program, foo, p, NULL };
19449 optind = 0;
19450 if (getopt (3, argv, "-p") != 1)
19451 result |= 16;
19452 else if (getopt (3, argv, "-p") != 'p')
19453 result |= 16;
19455 /* This code fails on glibc 2.11. */
19457 static char program[] = "program";
19458 static char b[] = "-b";
19459 static char a[] = "-a";
19460 char *argv[] = { program, b, a, NULL };
19461 optind = opterr = 0;
19462 if (getopt (3, argv, "+:a:b") != 'b')
19463 result |= 32;
19464 else if (getopt (3, argv, "+:a:b") != ':')
19465 result |= 32;
19467 /* This code dumps core on glibc 2.14. */
19469 static char program[] = "program";
19470 static char w[] = "-W";
19471 static char dummy[] = "dummy";
19472 char *argv[] = { program, w, dummy, NULL };
19473 optind = opterr = 1;
19474 if (getopt (3, argv, "W;") != 'W')
19475 result |= 64;
19477 return result;
19480 return 0;
19482 _ACEOF
19483 if ac_fn_c_try_run "$LINENO"; then :
19484 gl_cv_func_getopt_gnu=yes
19485 else
19486 gl_cv_func_getopt_gnu=no
19488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19489 conftest.$ac_objext conftest.beam conftest.$ac_ext
19492 case $gl_had_POSIXLY_CORRECT in
19493 exported) ;;
19494 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19495 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19496 esac
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19500 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19501 if test "$gl_cv_func_getopt_gnu" != yes; then
19502 gl_replace_getopt=yes
19503 else
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19505 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19506 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19507 $as_echo_n "(cached) " >&6
19508 else
19509 if test "$cross_compiling" = yes; then :
19510 case "$host_os" in
19511 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19512 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19513 esac
19515 else
19516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19517 /* end confdefs.h. */
19518 #include <getopt.h>
19519 #include <stddef.h>
19520 #include <string.h>
19523 main ()
19525 static const struct option long_options[] =
19527 { "xtremely-",no_argument, NULL, 1003 },
19528 { "xtra", no_argument, NULL, 1001 },
19529 { "xtreme", no_argument, NULL, 1002 },
19530 { "xtremely", no_argument, NULL, 1003 },
19531 { NULL, 0, NULL, 0 }
19533 /* This code fails on OpenBSD 5.0. */
19535 static char program[] = "program";
19536 static char xtremel[] = "--xtremel";
19537 char *argv[] = { program, xtremel, NULL };
19538 int option_index;
19539 optind = 1; opterr = 0;
19540 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19541 return 1;
19543 return 0;
19546 return 0;
19548 _ACEOF
19549 if ac_fn_c_try_run "$LINENO"; then :
19550 gl_cv_func_getopt_long_gnu=yes
19551 else
19552 gl_cv_func_getopt_long_gnu=no
19554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19555 conftest.$ac_objext conftest.beam conftest.$ac_ext
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19561 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19562 case "$gl_cv_func_getopt_long_gnu" in
19563 *yes) ;;
19564 *) gl_replace_getopt=yes ;;
19565 esac
19574 REPLACE_GETOPT=0
19575 if test -n "$gl_replace_getopt"; then
19576 REPLACE_GETOPT=1
19579 if test $REPLACE_GETOPT = 1; then
19581 GETOPT_H=getopt.h
19583 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19589 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19590 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19591 ac_have_decl=1
19592 else
19593 ac_have_decl=0
19596 cat >>confdefs.h <<_ACEOF
19597 #define HAVE_DECL_GETENV $ac_have_decl
19598 _ACEOF
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19606 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19607 if test "${ac_cv_c_restrict+set}" = set; then :
19608 $as_echo_n "(cached) " >&6
19609 else
19610 ac_cv_c_restrict=no
19611 # The order here caters to the fact that C++ does not require restrict.
19612 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19614 /* end confdefs.h. */
19615 typedef int * int_ptr;
19616 int foo (int_ptr $ac_kw ip) {
19617 return ip[0];
19620 main ()
19622 int s[1];
19623 int * $ac_kw t = s;
19624 t[0] = 0;
19625 return foo(t)
19627 return 0;
19629 _ACEOF
19630 if ac_fn_c_try_compile "$LINENO"; then :
19631 ac_cv_c_restrict=$ac_kw
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634 test "$ac_cv_c_restrict" != no && break
19635 done
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19639 $as_echo "$ac_cv_c_restrict" >&6; }
19641 case $ac_cv_c_restrict in
19642 restrict) ;;
19643 no) $as_echo "#define restrict /**/" >>confdefs.h
19645 *) cat >>confdefs.h <<_ACEOF
19646 #define restrict $ac_cv_c_restrict
19647 _ACEOF
19649 esac
19652 GNULIB_GETTIMEOFDAY=0;
19653 HAVE_GETTIMEOFDAY=1;
19654 HAVE_STRUCT_TIMEVAL=1;
19655 HAVE_SYS_TIME_H=1;
19656 REPLACE_GETTIMEOFDAY=0;
19657 REPLACE_STRUCT_TIMEVAL=0;
19674 if test $gl_cv_have_include_next = yes; then
19675 gl_cv_next_sys_time_h='<'sys/time.h'>'
19676 else
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19678 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19679 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19680 $as_echo_n "(cached) " >&6
19681 else
19683 if test $ac_cv_header_sys_time_h = yes; then
19686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19687 /* end confdefs.h. */
19688 #include <sys/time.h>
19690 _ACEOF
19691 case "$host_os" in
19692 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19693 *) gl_absname_cpp="$ac_cpp" ;;
19694 esac
19696 case "$host_os" in
19697 mingw*)
19698 gl_dirsep_regex='[/\\]'
19701 gl_dirsep_regex='\/'
19703 esac
19704 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19706 gl_header_literal_regex=`echo 'sys/time.h' \
19707 | sed -e "$gl_make_literal_regex_sed"`
19708 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19709 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19710 s|^/[^/]|//&|
19714 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19715 sed -n "$gl_absolute_header_sed"`'"'
19716 else
19717 gl_cv_next_sys_time_h='<'sys/time.h'>'
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19723 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19725 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19727 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19728 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19729 gl_next_as_first_directive='<'sys/time.h'>'
19730 else
19731 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19732 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19734 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19740 if test $ac_cv_header_sys_time_h != yes; then
19741 HAVE_SYS_TIME_H=0
19748 if test $ac_cv_header_sys_socket_h != yes; then
19749 for ac_header in winsock2.h
19750 do :
19751 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19752 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19753 cat >>confdefs.h <<_ACEOF
19754 #define HAVE_WINSOCK2_H 1
19755 _ACEOF
19759 done
19762 if test "$ac_cv_header_winsock2_h" = yes; then
19763 HAVE_WINSOCK2_H=1
19764 UNISTD_H_HAVE_WINSOCK2_H=1
19765 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19766 else
19767 HAVE_WINSOCK2_H=0
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19772 $as_echo_n "checking for struct timeval... " >&6; }
19773 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19774 $as_echo_n "(cached) " >&6
19775 else
19776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777 /* end confdefs.h. */
19778 #if HAVE_SYS_TIME_H
19779 #include <sys/time.h>
19780 #endif
19781 #include <time.h>
19782 #if HAVE_WINSOCK2_H
19783 # include <winsock2.h>
19784 #endif
19787 main ()
19789 static struct timeval x; x.tv_sec = x.tv_usec;
19791 return 0;
19793 _ACEOF
19794 if ac_fn_c_try_compile "$LINENO"; then :
19795 gl_cv_sys_struct_timeval=yes
19796 else
19797 gl_cv_sys_struct_timeval=no
19799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19803 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19804 if test $gl_cv_sys_struct_timeval != yes; then
19805 HAVE_STRUCT_TIMEVAL=0
19806 else
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19808 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19809 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19810 $as_echo_n "(cached) " >&6
19811 else
19812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19813 /* end confdefs.h. */
19814 #if HAVE_SYS_TIME_H
19815 #include <sys/time.h>
19816 #endif
19817 #include <time.h>
19818 #if HAVE_WINSOCK2_H
19819 # include <winsock2.h>
19820 #endif
19823 main ()
19825 static struct timeval x;
19826 typedef int verify_tv_sec_type[
19827 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19831 return 0;
19833 _ACEOF
19834 if ac_fn_c_try_compile "$LINENO"; then :
19835 gl_cv_sys_struct_timeval_tv_sec=yes
19836 else
19837 gl_cv_sys_struct_timeval_tv_sec=no
19839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19843 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19844 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19845 REPLACE_STRUCT_TIMEVAL=1
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19856 $as_echo_n "checking for unsigned long long int... " >&6; }
19857 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19858 $as_echo_n "(cached) " >&6
19859 else
19860 ac_cv_type_unsigned_long_long_int=yes
19861 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19865 /* For now, do not test the preprocessor; as of 2007 there are too many
19866 implementations with broken preprocessors. Perhaps this can
19867 be revisited in 2012. In the meantime, code should not expect
19868 #if to work with literals wider than 32 bits. */
19869 /* Test literals. */
19870 long long int ll = 9223372036854775807ll;
19871 long long int nll = -9223372036854775807LL;
19872 unsigned long long int ull = 18446744073709551615ULL;
19873 /* Test constant expressions. */
19874 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19875 ? 1 : -1)];
19876 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19877 ? 1 : -1)];
19878 int i = 63;
19880 main ()
19882 /* Test availability of runtime routines for shift and division. */
19883 long long int llmax = 9223372036854775807ll;
19884 unsigned long long int ullmax = 18446744073709551615ull;
19885 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19886 | (llmax / ll) | (llmax % ll)
19887 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19888 | (ullmax / ull) | (ullmax % ull));
19890 return 0;
19893 _ACEOF
19894 if ac_fn_c_try_link "$LINENO"; then :
19896 else
19897 ac_cv_type_unsigned_long_long_int=no
19899 rm -f core conftest.err conftest.$ac_objext \
19900 conftest$ac_exeext conftest.$ac_ext
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19904 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19905 if test $ac_cv_type_unsigned_long_long_int = yes; then
19907 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19914 $as_echo_n "checking for long long int... " >&6; }
19915 if test "${ac_cv_type_long_long_int+set}" = set; then :
19916 $as_echo_n "(cached) " >&6
19917 else
19918 ac_cv_type_long_long_int=yes
19919 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19920 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19921 if test $ac_cv_type_long_long_int = yes; then
19922 if test "$cross_compiling" = yes; then :
19924 else
19925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19926 /* end confdefs.h. */
19927 #include <limits.h>
19928 #ifndef LLONG_MAX
19929 # define HALF \
19930 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19931 # define LLONG_MAX (HALF - 1 + HALF)
19932 #endif
19934 main ()
19936 long long int n = 1;
19937 int i;
19938 for (i = 0; ; i++)
19940 long long int m = n << i;
19941 if (m >> i != n)
19942 return 1;
19943 if (LLONG_MAX / 2 < m)
19944 break;
19946 return 0;
19948 return 0;
19950 _ACEOF
19951 if ac_fn_c_try_run "$LINENO"; then :
19953 else
19954 ac_cv_type_long_long_int=no
19956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19957 conftest.$ac_objext conftest.beam conftest.$ac_ext
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19964 $as_echo "$ac_cv_type_long_long_int" >&6; }
19965 if test $ac_cv_type_long_long_int = yes; then
19967 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19976 gl_cv_c_multiarch=no
19977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978 /* end confdefs.h. */
19979 #ifndef __APPLE_CC__
19980 not a universal capable compiler
19981 #endif
19982 typedef int dummy;
19984 _ACEOF
19985 if ac_fn_c_try_compile "$LINENO"; then :
19987 arch=
19988 prev=
19989 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19990 if test -n "$prev"; then
19991 case $word in
19992 i?86 | x86_64 | ppc | ppc64)
19993 if test -z "$arch" || test "$arch" = "$word"; then
19994 arch="$word"
19995 else
19996 gl_cv_c_multiarch=yes
19999 esac
20000 prev=
20001 else
20002 if test "x$word" = "x-arch"; then
20003 prev=arch
20006 done
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 if test $gl_cv_c_multiarch = yes; then
20011 APPLE_UNIVERSAL_BUILD=1
20012 else
20013 APPLE_UNIVERSAL_BUILD=0
20020 if test $ac_cv_type_long_long_int = yes; then
20021 HAVE_LONG_LONG_INT=1
20022 else
20023 HAVE_LONG_LONG_INT=0
20027 if test $ac_cv_type_unsigned_long_long_int = yes; then
20028 HAVE_UNSIGNED_LONG_LONG_INT=1
20029 else
20030 HAVE_UNSIGNED_LONG_LONG_INT=0
20035 if test $ac_cv_header_wchar_h = yes; then
20036 HAVE_WCHAR_H=1
20037 else
20038 HAVE_WCHAR_H=0
20042 if test $ac_cv_header_inttypes_h = yes; then
20043 HAVE_INTTYPES_H=1
20044 else
20045 HAVE_INTTYPES_H=0
20049 if test $ac_cv_header_sys_types_h = yes; then
20050 HAVE_SYS_TYPES_H=1
20051 else
20052 HAVE_SYS_TYPES_H=0
20065 if test $gl_cv_have_include_next = yes; then
20066 gl_cv_next_stdint_h='<'stdint.h'>'
20067 else
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20069 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20070 if test "${gl_cv_next_stdint_h+set}" = set; then :
20071 $as_echo_n "(cached) " >&6
20072 else
20074 if test $ac_cv_header_stdint_h = yes; then
20077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20078 /* end confdefs.h. */
20079 #include <stdint.h>
20081 _ACEOF
20082 case "$host_os" in
20083 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20084 *) gl_absname_cpp="$ac_cpp" ;;
20085 esac
20087 case "$host_os" in
20088 mingw*)
20089 gl_dirsep_regex='[/\\]'
20092 gl_dirsep_regex='\/'
20094 esac
20095 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20097 gl_header_literal_regex=`echo 'stdint.h' \
20098 | sed -e "$gl_make_literal_regex_sed"`
20099 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20100 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20101 s|^/[^/]|//&|
20105 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20106 sed -n "$gl_absolute_header_sed"`'"'
20107 else
20108 gl_cv_next_stdint_h='<'stdint.h'>'
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20114 $as_echo "$gl_cv_next_stdint_h" >&6; }
20116 NEXT_STDINT_H=$gl_cv_next_stdint_h
20118 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20120 gl_next_as_first_directive='<'stdint.h'>'
20121 else
20122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20123 gl_next_as_first_directive=$gl_cv_next_stdint_h
20125 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20130 if test $ac_cv_header_stdint_h = yes; then
20131 HAVE_STDINT_H=1
20132 else
20133 HAVE_STDINT_H=0
20137 if test $ac_cv_header_stdint_h = yes; then
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
20139 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
20140 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
20141 $as_echo_n "(cached) " >&6
20142 else
20143 gl_cv_header_working_stdint_h=no
20144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h. */
20148 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20149 #include <stdint.h>
20150 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
20151 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
20152 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
20153 #endif
20156 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20157 included before <wchar.h>. */
20158 #include <stddef.h>
20159 #include <signal.h>
20160 #if HAVE_WCHAR_H
20161 # include <stdio.h>
20162 # include <time.h>
20163 # include <wchar.h>
20164 #endif
20167 #ifdef INT8_MAX
20168 int8_t a1 = INT8_MAX;
20169 int8_t a1min = INT8_MIN;
20170 #endif
20171 #ifdef INT16_MAX
20172 int16_t a2 = INT16_MAX;
20173 int16_t a2min = INT16_MIN;
20174 #endif
20175 #ifdef INT32_MAX
20176 int32_t a3 = INT32_MAX;
20177 int32_t a3min = INT32_MIN;
20178 #endif
20179 #ifdef INT64_MAX
20180 int64_t a4 = INT64_MAX;
20181 int64_t a4min = INT64_MIN;
20182 #endif
20183 #ifdef UINT8_MAX
20184 uint8_t b1 = UINT8_MAX;
20185 #else
20186 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20187 #endif
20188 #ifdef UINT16_MAX
20189 uint16_t b2 = UINT16_MAX;
20190 #endif
20191 #ifdef UINT32_MAX
20192 uint32_t b3 = UINT32_MAX;
20193 #endif
20194 #ifdef UINT64_MAX
20195 uint64_t b4 = UINT64_MAX;
20196 #endif
20197 int_least8_t c1 = INT8_C (0x7f);
20198 int_least8_t c1max = INT_LEAST8_MAX;
20199 int_least8_t c1min = INT_LEAST8_MIN;
20200 int_least16_t c2 = INT16_C (0x7fff);
20201 int_least16_t c2max = INT_LEAST16_MAX;
20202 int_least16_t c2min = INT_LEAST16_MIN;
20203 int_least32_t c3 = INT32_C (0x7fffffff);
20204 int_least32_t c3max = INT_LEAST32_MAX;
20205 int_least32_t c3min = INT_LEAST32_MIN;
20206 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20207 int_least64_t c4max = INT_LEAST64_MAX;
20208 int_least64_t c4min = INT_LEAST64_MIN;
20209 uint_least8_t d1 = UINT8_C (0xff);
20210 uint_least8_t d1max = UINT_LEAST8_MAX;
20211 uint_least16_t d2 = UINT16_C (0xffff);
20212 uint_least16_t d2max = UINT_LEAST16_MAX;
20213 uint_least32_t d3 = UINT32_C (0xffffffff);
20214 uint_least32_t d3max = UINT_LEAST32_MAX;
20215 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20216 uint_least64_t d4max = UINT_LEAST64_MAX;
20217 int_fast8_t e1 = INT_FAST8_MAX;
20218 int_fast8_t e1min = INT_FAST8_MIN;
20219 int_fast16_t e2 = INT_FAST16_MAX;
20220 int_fast16_t e2min = INT_FAST16_MIN;
20221 int_fast32_t e3 = INT_FAST32_MAX;
20222 int_fast32_t e3min = INT_FAST32_MIN;
20223 int_fast64_t e4 = INT_FAST64_MAX;
20224 int_fast64_t e4min = INT_FAST64_MIN;
20225 uint_fast8_t f1 = UINT_FAST8_MAX;
20226 uint_fast16_t f2 = UINT_FAST16_MAX;
20227 uint_fast32_t f3 = UINT_FAST32_MAX;
20228 uint_fast64_t f4 = UINT_FAST64_MAX;
20229 #ifdef INTPTR_MAX
20230 intptr_t g = INTPTR_MAX;
20231 intptr_t gmin = INTPTR_MIN;
20232 #endif
20233 #ifdef UINTPTR_MAX
20234 uintptr_t h = UINTPTR_MAX;
20235 #endif
20236 intmax_t i = INTMAX_MAX;
20237 uintmax_t j = UINTMAX_MAX;
20239 #include <limits.h> /* for CHAR_BIT */
20240 #define TYPE_MINIMUM(t) \
20241 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20242 #define TYPE_MAXIMUM(t) \
20243 ((t) ((t) 0 < (t) -1 \
20244 ? (t) -1 \
20245 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20246 struct s {
20247 int check_PTRDIFF:
20248 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20249 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20250 ? 1 : -1;
20251 /* Detect bug in FreeBSD 6.0 / ia64. */
20252 int check_SIG_ATOMIC:
20253 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20254 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20255 ? 1 : -1;
20256 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20257 int check_WCHAR:
20258 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20259 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20260 ? 1 : -1;
20261 /* Detect bug in mingw. */
20262 int check_WINT:
20263 WINT_MIN == TYPE_MINIMUM (wint_t)
20264 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20265 ? 1 : -1;
20267 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20268 int check_UINT8_C:
20269 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20270 int check_UINT16_C:
20271 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20273 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20274 #ifdef UINT8_MAX
20275 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20276 #endif
20277 #ifdef UINT16_MAX
20278 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20279 #endif
20280 #ifdef UINT32_MAX
20281 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20282 #endif
20283 #ifdef UINT64_MAX
20284 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20285 #endif
20286 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20287 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20288 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20289 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20290 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20291 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20292 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20293 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20294 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20295 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20296 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20300 main ()
20304 return 0;
20306 _ACEOF
20307 if ac_fn_c_try_compile "$LINENO"; then :
20308 if test "$cross_compiling" = yes; then :
20309 gl_cv_header_working_stdint_h=yes
20311 else
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h. */
20316 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20317 #include <stdint.h>
20320 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20321 included before <wchar.h>. */
20322 #include <stddef.h>
20323 #include <signal.h>
20324 #if HAVE_WCHAR_H
20325 # include <stdio.h>
20326 # include <time.h>
20327 # include <wchar.h>
20328 #endif
20331 #include <stdio.h>
20332 #include <string.h>
20333 #define MVAL(macro) MVAL1(macro)
20334 #define MVAL1(expression) #expression
20335 static const char *macro_values[] =
20337 #ifdef INT8_MAX
20338 MVAL (INT8_MAX),
20339 #endif
20340 #ifdef INT16_MAX
20341 MVAL (INT16_MAX),
20342 #endif
20343 #ifdef INT32_MAX
20344 MVAL (INT32_MAX),
20345 #endif
20346 #ifdef INT64_MAX
20347 MVAL (INT64_MAX),
20348 #endif
20349 #ifdef UINT8_MAX
20350 MVAL (UINT8_MAX),
20351 #endif
20352 #ifdef UINT16_MAX
20353 MVAL (UINT16_MAX),
20354 #endif
20355 #ifdef UINT32_MAX
20356 MVAL (UINT32_MAX),
20357 #endif
20358 #ifdef UINT64_MAX
20359 MVAL (UINT64_MAX),
20360 #endif
20361 NULL
20365 main ()
20368 const char **mv;
20369 for (mv = macro_values; *mv != NULL; mv++)
20371 const char *value = *mv;
20372 /* Test whether it looks like a cast expression. */
20373 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20374 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20375 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20376 || strncmp (value, "((int)"/*)*/, 6) == 0
20377 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20378 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20379 return mv - macro_values + 1;
20381 return 0;
20384 return 0;
20386 _ACEOF
20387 if ac_fn_c_try_run "$LINENO"; then :
20388 gl_cv_header_working_stdint_h=yes
20390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20391 conftest.$ac_objext conftest.beam conftest.$ac_ext
20396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20400 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20402 if test "$gl_cv_header_working_stdint_h" = yes; then
20403 STDINT_H=
20404 else
20405 for ac_header in sys/inttypes.h sys/bitypes.h
20406 do :
20407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20408 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20409 eval as_val=\$$as_ac_Header
20410 if test "x$as_val" = x""yes; then :
20411 cat >>confdefs.h <<_ACEOF
20412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20413 _ACEOF
20417 done
20419 if test $ac_cv_header_sys_inttypes_h = yes; then
20420 HAVE_SYS_INTTYPES_H=1
20421 else
20422 HAVE_SYS_INTTYPES_H=0
20425 if test $ac_cv_header_sys_bitypes_h = yes; then
20426 HAVE_SYS_BITYPES_H=1
20427 else
20428 HAVE_SYS_BITYPES_H=0
20434 if test $APPLE_UNIVERSAL_BUILD = 0; then
20437 for gltype in ptrdiff_t size_t ; do
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20439 $as_echo_n "checking for bit size of $gltype... " >&6; }
20440 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20441 $as_echo_n "(cached) " >&6
20442 else
20443 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
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
20454 #include <limits.h>"; then :
20456 else
20457 result=unknown
20460 eval gl_cv_bitsizeof_${gltype}=\$result
20463 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20465 $as_echo "$ac_res" >&6; }
20466 eval result=\$gl_cv_bitsizeof_${gltype}
20467 if test $result = unknown; then
20468 result=0
20470 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20471 cat >>confdefs.h <<_ACEOF
20472 #define BITSIZEOF_${GLTYPE} $result
20473 _ACEOF
20475 eval BITSIZEOF_${GLTYPE}=\$result
20476 done
20482 for gltype in sig_atomic_t wchar_t wint_t ; do
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20484 $as_echo_n "checking for bit size of $gltype... " >&6; }
20485 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20486 $as_echo_n "(cached) " >&6
20487 else
20488 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20489 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20490 included before <wchar.h>. */
20491 #include <stddef.h>
20492 #include <signal.h>
20493 #if HAVE_WCHAR_H
20494 # include <stdio.h>
20495 # include <time.h>
20496 # include <wchar.h>
20497 #endif
20499 #include <limits.h>"; then :
20501 else
20502 result=unknown
20505 eval gl_cv_bitsizeof_${gltype}=\$result
20508 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20510 $as_echo "$ac_res" >&6; }
20511 eval result=\$gl_cv_bitsizeof_${gltype}
20512 if test $result = unknown; then
20513 result=0
20515 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20516 cat >>confdefs.h <<_ACEOF
20517 #define BITSIZEOF_${GLTYPE} $result
20518 _ACEOF
20520 eval BITSIZEOF_${GLTYPE}=\$result
20521 done
20526 for gltype in sig_atomic_t wchar_t wint_t ; do
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20528 $as_echo_n "checking whether $gltype is signed... " >&6; }
20529 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20530 $as_echo_n "(cached) " >&6
20531 else
20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20535 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20536 included before <wchar.h>. */
20537 #include <stddef.h>
20538 #include <signal.h>
20539 #if HAVE_WCHAR_H
20540 # include <stdio.h>
20541 # include <time.h>
20542 # include <wchar.h>
20543 #endif
20545 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20547 main ()
20551 return 0;
20553 _ACEOF
20554 if ac_fn_c_try_compile "$LINENO"; then :
20555 result=yes
20556 else
20557 result=no
20559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20560 eval gl_cv_type_${gltype}_signed=\$result
20563 eval ac_res=\$gl_cv_type_${gltype}_signed
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20565 $as_echo "$ac_res" >&6; }
20566 eval result=\$gl_cv_type_${gltype}_signed
20567 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20568 if test "$result" = yes; then
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_SIGNED_${GLTYPE} 1
20571 _ACEOF
20573 eval HAVE_SIGNED_${GLTYPE}=1
20574 else
20575 eval HAVE_SIGNED_${GLTYPE}=0
20577 done
20580 gl_cv_type_ptrdiff_t_signed=yes
20581 gl_cv_type_size_t_signed=no
20582 if test $APPLE_UNIVERSAL_BUILD = 0; then
20585 for gltype in ptrdiff_t size_t ; do
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20587 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20588 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20589 $as_echo_n "(cached) " >&6
20590 else
20591 eval gl_cv_type_${gltype}_suffix=no
20592 eval result=\$gl_cv_type_${gltype}_signed
20593 if test "$result" = yes; then
20594 glsufu=
20595 else
20596 glsufu=u
20598 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20599 case $glsuf in
20600 '') gltype1='int';;
20601 l) gltype1='long int';;
20602 ll) gltype1='long long int';;
20603 i64) gltype1='__int64';;
20604 u) gltype1='unsigned int';;
20605 ul) gltype1='unsigned long int';;
20606 ull) gltype1='unsigned long long int';;
20607 ui64)gltype1='unsigned __int64';;
20608 esac
20609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20610 /* end confdefs.h. */
20612 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20613 included before <wchar.h>. */
20614 #include <stddef.h>
20615 #include <signal.h>
20616 #if HAVE_WCHAR_H
20617 # include <stdio.h>
20618 # include <time.h>
20619 # include <wchar.h>
20620 #endif
20622 extern $gltype foo;
20623 extern $gltype1 foo;
20625 main ()
20629 return 0;
20631 _ACEOF
20632 if ac_fn_c_try_compile "$LINENO"; then :
20633 eval gl_cv_type_${gltype}_suffix=\$glsuf
20635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636 eval result=\$gl_cv_type_${gltype}_suffix
20637 test "$result" != no && break
20638 done
20640 eval ac_res=\$gl_cv_type_${gltype}_suffix
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20642 $as_echo "$ac_res" >&6; }
20643 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20644 eval result=\$gl_cv_type_${gltype}_suffix
20645 test "$result" = no && result=
20646 eval ${GLTYPE}_SUFFIX=\$result
20647 cat >>confdefs.h <<_ACEOF
20648 #define ${GLTYPE}_SUFFIX $result
20649 _ACEOF
20651 done
20657 for gltype in sig_atomic_t wchar_t wint_t ; do
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20659 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20660 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20661 $as_echo_n "(cached) " >&6
20662 else
20663 eval gl_cv_type_${gltype}_suffix=no
20664 eval result=\$gl_cv_type_${gltype}_signed
20665 if test "$result" = yes; then
20666 glsufu=
20667 else
20668 glsufu=u
20670 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20671 case $glsuf in
20672 '') gltype1='int';;
20673 l) gltype1='long int';;
20674 ll) gltype1='long long int';;
20675 i64) gltype1='__int64';;
20676 u) gltype1='unsigned int';;
20677 ul) gltype1='unsigned long int';;
20678 ull) gltype1='unsigned long long int';;
20679 ui64)gltype1='unsigned __int64';;
20680 esac
20681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h. */
20684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20685 included before <wchar.h>. */
20686 #include <stddef.h>
20687 #include <signal.h>
20688 #if HAVE_WCHAR_H
20689 # include <stdio.h>
20690 # include <time.h>
20691 # include <wchar.h>
20692 #endif
20694 extern $gltype foo;
20695 extern $gltype1 foo;
20697 main ()
20701 return 0;
20703 _ACEOF
20704 if ac_fn_c_try_compile "$LINENO"; then :
20705 eval gl_cv_type_${gltype}_suffix=\$glsuf
20707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708 eval result=\$gl_cv_type_${gltype}_suffix
20709 test "$result" != no && break
20710 done
20712 eval ac_res=\$gl_cv_type_${gltype}_suffix
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20714 $as_echo "$ac_res" >&6; }
20715 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20716 eval result=\$gl_cv_type_${gltype}_suffix
20717 test "$result" = no && result=
20718 eval ${GLTYPE}_SUFFIX=\$result
20719 cat >>confdefs.h <<_ACEOF
20720 #define ${GLTYPE}_SUFFIX $result
20721 _ACEOF
20723 done
20727 if test $BITSIZEOF_WINT_T -lt 32; then
20728 BITSIZEOF_WINT_T=32
20731 STDINT_H=stdint.h
20734 if test -n "$STDINT_H"; then
20735 GL_GENERATE_STDINT_H_TRUE=
20736 GL_GENERATE_STDINT_H_FALSE='#'
20737 else
20738 GL_GENERATE_STDINT_H_TRUE='#'
20739 GL_GENERATE_STDINT_H_FALSE=
20746 GNULIB_IMAXABS=0;
20747 GNULIB_IMAXDIV=0;
20748 GNULIB_STRTOIMAX=0;
20749 GNULIB_STRTOUMAX=0;
20750 HAVE_DECL_IMAXABS=1;
20751 HAVE_DECL_IMAXDIV=1;
20752 HAVE_DECL_STRTOIMAX=1;
20753 HAVE_DECL_STRTOUMAX=1;
20754 REPLACE_STRTOIMAX=0;
20755 INT32_MAX_LT_INTMAX_MAX=1;
20756 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20757 PRI_MACROS_BROKEN=0;
20758 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20759 UINT32_MAX_LT_UINTMAX_MAX=1;
20760 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20776 if test $gl_cv_have_include_next = yes; then
20777 gl_cv_next_inttypes_h='<'inttypes.h'>'
20778 else
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20780 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20781 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20782 $as_echo_n "(cached) " >&6
20783 else
20785 if test $ac_cv_header_inttypes_h = yes; then
20788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20789 /* end confdefs.h. */
20790 #include <inttypes.h>
20792 _ACEOF
20793 case "$host_os" in
20794 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20795 *) gl_absname_cpp="$ac_cpp" ;;
20796 esac
20798 case "$host_os" in
20799 mingw*)
20800 gl_dirsep_regex='[/\\]'
20803 gl_dirsep_regex='\/'
20805 esac
20806 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20808 gl_header_literal_regex=`echo 'inttypes.h' \
20809 | sed -e "$gl_make_literal_regex_sed"`
20810 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20811 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20812 s|^/[^/]|//&|
20816 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20817 sed -n "$gl_absolute_header_sed"`'"'
20818 else
20819 gl_cv_next_inttypes_h='<'inttypes.h'>'
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20825 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20827 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
20829 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20830 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20831 gl_next_as_first_directive='<'inttypes.h'>'
20832 else
20833 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20834 gl_next_as_first_directive=$gl_cv_next_inttypes_h
20836 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
20848 case "$host_os" in
20849 mingw*)
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20851 $as_echo_n "checking for 64-bit off_t... " >&6; }
20852 if test "${gl_cv_type_off_t_64+set}" = set; then :
20853 $as_echo_n "(cached) " >&6
20854 else
20855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20856 /* end confdefs.h. */
20857 #include <sys/types.h>
20858 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20861 main ()
20865 return 0;
20867 _ACEOF
20868 if ac_fn_c_try_compile "$LINENO"; then :
20869 gl_cv_type_off_t_64=yes
20870 else
20871 gl_cv_type_off_t_64=no
20873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20877 $as_echo "$gl_cv_type_off_t_64" >&6; }
20878 if test $gl_cv_type_off_t_64 = no; then
20879 WINDOWS_64_BIT_OFF_T=1
20880 else
20881 WINDOWS_64_BIT_OFF_T=0
20883 WINDOWS_64_BIT_ST_SIZE=1
20886 WINDOWS_64_BIT_OFF_T=0
20887 WINDOWS_64_BIT_ST_SIZE=0
20889 esac
20894 GNULIB_FFSL=0;
20895 GNULIB_FFSLL=0;
20896 GNULIB_MEMCHR=0;
20897 GNULIB_MEMMEM=0;
20898 GNULIB_MEMPCPY=0;
20899 GNULIB_MEMRCHR=0;
20900 GNULIB_RAWMEMCHR=0;
20901 GNULIB_STPCPY=0;
20902 GNULIB_STPNCPY=0;
20903 GNULIB_STRCHRNUL=0;
20904 GNULIB_STRDUP=0;
20905 GNULIB_STRNCAT=0;
20906 GNULIB_STRNDUP=0;
20907 GNULIB_STRNLEN=0;
20908 GNULIB_STRPBRK=0;
20909 GNULIB_STRSEP=0;
20910 GNULIB_STRSTR=0;
20911 GNULIB_STRCASESTR=0;
20912 GNULIB_STRTOK_R=0;
20913 GNULIB_MBSLEN=0;
20914 GNULIB_MBSNLEN=0;
20915 GNULIB_MBSCHR=0;
20916 GNULIB_MBSRCHR=0;
20917 GNULIB_MBSSTR=0;
20918 GNULIB_MBSCASECMP=0;
20919 GNULIB_MBSNCASECMP=0;
20920 GNULIB_MBSPCASECMP=0;
20921 GNULIB_MBSCASESTR=0;
20922 GNULIB_MBSCSPN=0;
20923 GNULIB_MBSPBRK=0;
20924 GNULIB_MBSSPN=0;
20925 GNULIB_MBSSEP=0;
20926 GNULIB_MBSTOK_R=0;
20927 GNULIB_STRERROR=0;
20928 GNULIB_STRERROR_R=0;
20929 GNULIB_STRSIGNAL=0;
20930 GNULIB_STRVERSCMP=0;
20931 HAVE_MBSLEN=0;
20932 HAVE_FFSL=1;
20933 HAVE_FFSLL=1;
20934 HAVE_MEMCHR=1;
20935 HAVE_DECL_MEMMEM=1;
20936 HAVE_MEMPCPY=1;
20937 HAVE_DECL_MEMRCHR=1;
20938 HAVE_RAWMEMCHR=1;
20939 HAVE_STPCPY=1;
20940 HAVE_STPNCPY=1;
20941 HAVE_STRCHRNUL=1;
20942 HAVE_DECL_STRDUP=1;
20943 HAVE_DECL_STRNDUP=1;
20944 HAVE_DECL_STRNLEN=1;
20945 HAVE_STRPBRK=1;
20946 HAVE_STRSEP=1;
20947 HAVE_STRCASESTR=1;
20948 HAVE_DECL_STRTOK_R=1;
20949 HAVE_DECL_STRERROR_R=1;
20950 HAVE_DECL_STRSIGNAL=1;
20951 HAVE_STRVERSCMP=1;
20952 REPLACE_MEMCHR=0;
20953 REPLACE_MEMMEM=0;
20954 REPLACE_STPNCPY=0;
20955 REPLACE_STRDUP=0;
20956 REPLACE_STRSTR=0;
20957 REPLACE_STRCASESTR=0;
20958 REPLACE_STRCHRNUL=0;
20959 REPLACE_STRERROR=0;
20960 REPLACE_STRERROR_R=0;
20961 REPLACE_STRNCAT=0;
20962 REPLACE_STRNDUP=0;
20963 REPLACE_STRNLEN=0;
20964 REPLACE_STRSIGNAL=0;
20965 REPLACE_STRTOK_R=0;
20966 UNDEFINE_STRTOK_R=0;
20968 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20969 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
20970 ac_have_decl=1
20971 else
20972 ac_have_decl=0
20975 cat >>confdefs.h <<_ACEOF
20976 #define HAVE_DECL_MEMRCHR $ac_have_decl
20977 _ACEOF
20982 GNULIB_MKTIME=0;
20983 GNULIB_NANOSLEEP=0;
20984 GNULIB_STRPTIME=0;
20985 GNULIB_TIMEGM=0;
20986 GNULIB_TIME_R=0;
20987 HAVE_DECL_LOCALTIME_R=1;
20988 HAVE_NANOSLEEP=1;
20989 HAVE_STRPTIME=1;
20990 HAVE_TIMEGM=1;
20991 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20992 REPLACE_MKTIME=GNULIB_PORTCHECK;
20993 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20994 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20996 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20997 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
20998 ac_have_decl=1
20999 else
21000 ac_have_decl=0
21003 cat >>confdefs.h <<_ACEOF
21004 #define HAVE_DECL_ALARM $ac_have_decl
21005 _ACEOF
21010 GNULIB_PSELECT=0;
21011 GNULIB_SELECT=0;
21012 HAVE_PSELECT=1;
21013 REPLACE_PSELECT=0;
21014 REPLACE_SELECT=0;
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21022 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21023 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
21025 else
21027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028 /* end confdefs.h. */
21029 #include <sys/select.h>
21031 main ()
21033 struct timeval b;
21035 return 0;
21037 _ACEOF
21038 if ac_fn_c_try_compile "$LINENO"; then :
21039 gl_cv_header_sys_select_h_selfcontained=yes
21040 else
21041 gl_cv_header_sys_select_h_selfcontained=no
21043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21044 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21046 /* end confdefs.h. */
21047 #include <sys/select.h>
21049 main ()
21051 int memset; int bzero;
21053 return 0;
21056 _ACEOF
21057 if ac_fn_c_try_compile "$LINENO"; then :
21058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h. */
21060 #include <sys/select.h>
21062 main ()
21065 #undef memset
21066 #define memset nonexistent_memset
21067 extern
21068 #ifdef __cplusplus
21070 #endif
21071 void *memset (void *, int, unsigned long);
21072 #undef bzero
21073 #define bzero nonexistent_bzero
21074 extern
21075 #ifdef __cplusplus
21077 #endif
21078 void bzero (void *, unsigned long);
21079 fd_set fds;
21080 FD_ZERO (&fds);
21083 return 0;
21086 _ACEOF
21087 if ac_fn_c_try_link "$LINENO"; then :
21089 else
21090 gl_cv_header_sys_select_h_selfcontained=no
21092 rm -f core conftest.err conftest.$ac_objext \
21093 conftest$ac_exeext conftest.$ac_ext
21096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
21101 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
21111 if test $gl_cv_have_include_next = yes; then
21112 gl_cv_next_sys_select_h='<'sys/select.h'>'
21113 else
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
21115 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
21116 if test "${gl_cv_next_sys_select_h+set}" = set; then :
21117 $as_echo_n "(cached) " >&6
21118 else
21120 if test $ac_cv_header_sys_select_h = yes; then
21123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21124 /* end confdefs.h. */
21125 #include <sys/select.h>
21127 _ACEOF
21128 case "$host_os" in
21129 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21130 *) gl_absname_cpp="$ac_cpp" ;;
21131 esac
21133 case "$host_os" in
21134 mingw*)
21135 gl_dirsep_regex='[/\\]'
21138 gl_dirsep_regex='\/'
21140 esac
21141 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21143 gl_header_literal_regex=`echo 'sys/select.h' \
21144 | sed -e "$gl_make_literal_regex_sed"`
21145 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21146 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21147 s|^/[^/]|//&|
21151 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21152 sed -n "$gl_absolute_header_sed"`'"'
21153 else
21154 gl_cv_next_sys_select_h='<'sys/select.h'>'
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
21160 $as_echo "$gl_cv_next_sys_select_h" >&6; }
21162 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
21164 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21166 gl_next_as_first_directive='<'sys/select.h'>'
21167 else
21168 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21169 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21171 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21176 if test $ac_cv_header_sys_select_h = yes; then
21177 HAVE_SYS_SELECT_H=1
21178 else
21179 HAVE_SYS_SELECT_H=0
21186 if test $ac_cv_header_sys_socket_h != yes; then
21187 for ac_header in winsock2.h
21188 do :
21189 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21190 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
21191 cat >>confdefs.h <<_ACEOF
21192 #define HAVE_WINSOCK2_H 1
21193 _ACEOF
21197 done
21200 if test "$ac_cv_header_winsock2_h" = yes; then
21201 HAVE_WINSOCK2_H=1
21202 UNISTD_H_HAVE_WINSOCK2_H=1
21203 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21204 else
21205 HAVE_WINSOCK2_H=0
21215 GNULIB_PTHREAD_SIGMASK=0;
21216 GNULIB_RAISE=0;
21217 GNULIB_SIGNAL_H_SIGPIPE=0;
21218 GNULIB_SIGPROCMASK=0;
21219 GNULIB_SIGACTION=0;
21220 HAVE_POSIX_SIGNALBLOCKING=1;
21221 HAVE_PTHREAD_SIGMASK=1;
21222 HAVE_RAISE=1;
21223 HAVE_SIGSET_T=1;
21224 HAVE_SIGINFO_T=1;
21225 HAVE_SIGACTION=1;
21226 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
21228 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
21230 HAVE_SIGHANDLER_T=1;
21231 REPLACE_PTHREAD_SIGMASK=0;
21232 REPLACE_RAISE=0;
21240 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21241 #include <signal.h>
21242 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21243 #include <sys/types.h>
21246 if test "x$ac_cv_type_sigset_t" = x""yes; then :
21248 cat >>confdefs.h <<_ACEOF
21249 #define HAVE_SIGSET_T 1
21250 _ACEOF
21252 gl_cv_type_sigset_t=yes
21253 else
21254 gl_cv_type_sigset_t=no
21257 if test $gl_cv_type_sigset_t != yes; then
21258 HAVE_SIGSET_T=0
21263 if test $ac_cv_header_sys_socket_h = no; then
21264 for ac_header in ws2tcpip.h
21265 do :
21266 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21267 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21268 cat >>confdefs.h <<_ACEOF
21269 #define HAVE_WS2TCPIP_H 1
21270 _ACEOF
21274 done
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21279 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21280 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21281 $as_echo_n "(cached) " >&6
21282 else
21283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21284 /* end confdefs.h. */
21286 #include <stdbool.h>
21287 #ifndef bool
21288 "error: bool is not defined"
21289 #endif
21290 #ifndef false
21291 "error: false is not defined"
21292 #endif
21293 #if false
21294 "error: false is not 0"
21295 #endif
21296 #ifndef true
21297 "error: true is not defined"
21298 #endif
21299 #if true != 1
21300 "error: true is not 1"
21301 #endif
21302 #ifndef __bool_true_false_are_defined
21303 "error: __bool_true_false_are_defined is not defined"
21304 #endif
21306 struct s { _Bool s: 1; _Bool t; } s;
21308 char a[true == 1 ? 1 : -1];
21309 char b[false == 0 ? 1 : -1];
21310 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21311 char d[(bool) 0.5 == true ? 1 : -1];
21312 /* See body of main program for 'e'. */
21313 char f[(_Bool) 0.0 == false ? 1 : -1];
21314 char g[true];
21315 char h[sizeof (_Bool)];
21316 char i[sizeof s.t];
21317 enum { j = false, k = true, l = false * true, m = true * 256 };
21318 /* The following fails for
21319 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21320 _Bool n[m];
21321 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21322 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21323 /* Catch a bug in an HP-UX C compiler. See
21324 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21325 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21327 _Bool q = true;
21328 _Bool *pq = &q;
21331 main ()
21334 bool e = &s;
21335 *pq |= q;
21336 *pq |= ! q;
21337 /* Refer to every declared value, to avoid compiler optimizations. */
21338 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21339 + !m + !n + !o + !p + !q + !pq);
21342 return 0;
21344 _ACEOF
21345 if ac_fn_c_try_compile "$LINENO"; then :
21346 ac_cv_header_stdbool_h=yes
21347 else
21348 ac_cv_header_stdbool_h=no
21350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21353 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21354 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21355 if test "x$ac_cv_type__Bool" = x""yes; then :
21357 cat >>confdefs.h <<_ACEOF
21358 #define HAVE__BOOL 1
21359 _ACEOF
21366 REPLACE_NULL=0;
21367 HAVE_WCHAR_T=1;
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21371 $as_echo_n "checking for wchar_t... " >&6; }
21372 if test "${gt_cv_c_wchar_t+set}" = set; then :
21373 $as_echo_n "(cached) " >&6
21374 else
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21377 #include <stddef.h>
21378 wchar_t foo = (wchar_t)'\0';
21380 main ()
21384 return 0;
21386 _ACEOF
21387 if ac_fn_c_try_compile "$LINENO"; then :
21388 gt_cv_c_wchar_t=yes
21389 else
21390 gt_cv_c_wchar_t=no
21392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21395 $as_echo "$gt_cv_c_wchar_t" >&6; }
21396 if test $gt_cv_c_wchar_t = yes; then
21398 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21403 GNULIB_DPRINTF=0;
21404 GNULIB_FCLOSE=0;
21405 GNULIB_FDOPEN=0;
21406 GNULIB_FFLUSH=0;
21407 GNULIB_FGETC=0;
21408 GNULIB_FGETS=0;
21409 GNULIB_FOPEN=0;
21410 GNULIB_FPRINTF=0;
21411 GNULIB_FPRINTF_POSIX=0;
21412 GNULIB_FPURGE=0;
21413 GNULIB_FPUTC=0;
21414 GNULIB_FPUTS=0;
21415 GNULIB_FREAD=0;
21416 GNULIB_FREOPEN=0;
21417 GNULIB_FSCANF=0;
21418 GNULIB_FSEEK=0;
21419 GNULIB_FSEEKO=0;
21420 GNULIB_FTELL=0;
21421 GNULIB_FTELLO=0;
21422 GNULIB_FWRITE=0;
21423 GNULIB_GETC=0;
21424 GNULIB_GETCHAR=0;
21425 GNULIB_GETDELIM=0;
21426 GNULIB_GETLINE=0;
21427 GNULIB_OBSTACK_PRINTF=0;
21428 GNULIB_OBSTACK_PRINTF_POSIX=0;
21429 GNULIB_PCLOSE=0;
21430 GNULIB_PERROR=0;
21431 GNULIB_POPEN=0;
21432 GNULIB_PRINTF=0;
21433 GNULIB_PRINTF_POSIX=0;
21434 GNULIB_PUTC=0;
21435 GNULIB_PUTCHAR=0;
21436 GNULIB_PUTS=0;
21437 GNULIB_REMOVE=0;
21438 GNULIB_RENAME=0;
21439 GNULIB_RENAMEAT=0;
21440 GNULIB_SCANF=0;
21441 GNULIB_SNPRINTF=0;
21442 GNULIB_SPRINTF_POSIX=0;
21443 GNULIB_STDIO_H_NONBLOCKING=0;
21444 GNULIB_STDIO_H_SIGPIPE=0;
21445 GNULIB_TMPFILE=0;
21446 GNULIB_VASPRINTF=0;
21447 GNULIB_VFSCANF=0;
21448 GNULIB_VSCANF=0;
21449 GNULIB_VDPRINTF=0;
21450 GNULIB_VFPRINTF=0;
21451 GNULIB_VFPRINTF_POSIX=0;
21452 GNULIB_VPRINTF=0;
21453 GNULIB_VPRINTF_POSIX=0;
21454 GNULIB_VSNPRINTF=0;
21455 GNULIB_VSPRINTF_POSIX=0;
21456 HAVE_DECL_FPURGE=1;
21457 HAVE_DECL_FSEEKO=1;
21458 HAVE_DECL_FTELLO=1;
21459 HAVE_DECL_GETDELIM=1;
21460 HAVE_DECL_GETLINE=1;
21461 HAVE_DECL_OBSTACK_PRINTF=1;
21462 HAVE_DECL_SNPRINTF=1;
21463 HAVE_DECL_VSNPRINTF=1;
21464 HAVE_DPRINTF=1;
21465 HAVE_FSEEKO=1;
21466 HAVE_FTELLO=1;
21467 HAVE_PCLOSE=1;
21468 HAVE_POPEN=1;
21469 HAVE_RENAMEAT=1;
21470 HAVE_VASPRINTF=1;
21471 HAVE_VDPRINTF=1;
21472 REPLACE_DPRINTF=0;
21473 REPLACE_FCLOSE=0;
21474 REPLACE_FDOPEN=0;
21475 REPLACE_FFLUSH=0;
21476 REPLACE_FOPEN=0;
21477 REPLACE_FPRINTF=0;
21478 REPLACE_FPURGE=0;
21479 REPLACE_FREOPEN=0;
21480 REPLACE_FSEEK=0;
21481 REPLACE_FSEEKO=0;
21482 REPLACE_FTELL=0;
21483 REPLACE_FTELLO=0;
21484 REPLACE_GETDELIM=0;
21485 REPLACE_GETLINE=0;
21486 REPLACE_OBSTACK_PRINTF=0;
21487 REPLACE_PERROR=0;
21488 REPLACE_POPEN=0;
21489 REPLACE_PRINTF=0;
21490 REPLACE_REMOVE=0;
21491 REPLACE_RENAME=0;
21492 REPLACE_RENAMEAT=0;
21493 REPLACE_SNPRINTF=0;
21494 REPLACE_SPRINTF=0;
21495 REPLACE_STDIO_READ_FUNCS=0;
21496 REPLACE_STDIO_WRITE_FUNCS=0;
21497 REPLACE_TMPFILE=0;
21498 REPLACE_VASPRINTF=0;
21499 REPLACE_VDPRINTF=0;
21500 REPLACE_VFPRINTF=0;
21501 REPLACE_VPRINTF=0;
21502 REPLACE_VSNPRINTF=0;
21503 REPLACE_VSPRINTF=0;
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21506 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21507 if test "${ac_cv_struct_tm+set}" = set; then :
21508 $as_echo_n "(cached) " >&6
21509 else
21510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511 /* end confdefs.h. */
21512 #include <sys/types.h>
21513 #include <time.h>
21516 main ()
21518 struct tm tm;
21519 int *p = &tm.tm_sec;
21520 return !p;
21522 return 0;
21524 _ACEOF
21525 if ac_fn_c_try_compile "$LINENO"; then :
21526 ac_cv_struct_tm=time.h
21527 else
21528 ac_cv_struct_tm=sys/time.h
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21533 $as_echo "$ac_cv_struct_tm" >&6; }
21534 if test $ac_cv_struct_tm = sys/time.h; then
21536 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21540 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21541 #include <$ac_cv_struct_tm>
21544 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21546 cat >>confdefs.h <<_ACEOF
21547 #define HAVE_STRUCT_TM_TM_ZONE 1
21548 _ACEOF
21553 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21555 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21557 else
21558 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21560 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21561 ac_have_decl=1
21562 else
21563 ac_have_decl=0
21566 cat >>confdefs.h <<_ACEOF
21567 #define HAVE_DECL_TZNAME $ac_have_decl
21568 _ACEOF
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21571 $as_echo_n "checking for tzname... " >&6; }
21572 if test "${ac_cv_var_tzname+set}" = set; then :
21573 $as_echo_n "(cached) " >&6
21574 else
21575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h. */
21577 #include <time.h>
21578 #if !HAVE_DECL_TZNAME
21579 extern char *tzname[];
21580 #endif
21583 main ()
21585 return tzname[0][0];
21587 return 0;
21589 _ACEOF
21590 if ac_fn_c_try_link "$LINENO"; then :
21591 ac_cv_var_tzname=yes
21592 else
21593 ac_cv_var_tzname=no
21595 rm -f core conftest.err conftest.$ac_objext \
21596 conftest$ac_exeext conftest.$ac_ext
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21599 $as_echo "$ac_cv_var_tzname" >&6; }
21600 if test $ac_cv_var_tzname = yes; then
21602 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21608 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21610 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21612 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21628 if test $gl_cv_have_include_next = yes; then
21629 gl_cv_next_string_h='<'string.h'>'
21630 else
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21632 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21633 if test "${gl_cv_next_string_h+set}" = set; then :
21634 $as_echo_n "(cached) " >&6
21635 else
21637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21638 /* end confdefs.h. */
21639 #include <string.h>
21641 _ACEOF
21642 case "$host_os" in
21643 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21644 *) gl_absname_cpp="$ac_cpp" ;;
21645 esac
21647 case "$host_os" in
21648 mingw*)
21649 gl_dirsep_regex='[/\\]'
21652 gl_dirsep_regex='\/'
21654 esac
21655 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21657 gl_header_literal_regex=`echo 'string.h' \
21658 | sed -e "$gl_make_literal_regex_sed"`
21659 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21660 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21661 s|^/[^/]|//&|
21665 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21666 sed -n "$gl_absolute_header_sed"`'"'
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21671 $as_echo "$gl_cv_next_string_h" >&6; }
21673 NEXT_STRING_H=$gl_cv_next_string_h
21675 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21677 gl_next_as_first_directive='<'string.h'>'
21678 else
21679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21680 gl_next_as_first_directive=$gl_cv_next_string_h
21682 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21692 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21693 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21694 ac_have_decl=1
21695 else
21696 ac_have_decl=0
21699 cat >>confdefs.h <<_ACEOF
21700 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21701 _ACEOF
21705 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21706 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21707 ac_have_decl=1
21708 else
21709 ac_have_decl=0
21712 cat >>confdefs.h <<_ACEOF
21713 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21714 _ACEOF
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21719 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21720 if test "${ac_cv_header_stat_broken+set}" = set; then :
21721 $as_echo_n "(cached) " >&6
21722 else
21723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724 /* end confdefs.h. */
21725 #include <sys/types.h>
21726 #include <sys/stat.h>
21728 #if defined S_ISBLK && defined S_IFDIR
21729 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21730 #endif
21732 #if defined S_ISBLK && defined S_IFCHR
21733 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21734 #endif
21736 #if defined S_ISLNK && defined S_IFREG
21737 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21738 #endif
21740 #if defined S_ISSOCK && defined S_IFREG
21741 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21742 #endif
21744 _ACEOF
21745 if ac_fn_c_try_compile "$LINENO"; then :
21746 ac_cv_header_stat_broken=no
21747 else
21748 ac_cv_header_stat_broken=yes
21750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21753 $as_echo "$ac_cv_header_stat_broken" >&6; }
21754 if test $ac_cv_header_stat_broken = yes; then
21756 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21765 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21766 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21767 $as_echo_n "(cached) " >&6
21768 else
21769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21770 /* end confdefs.h. */
21771 #include <time.h>
21774 main ()
21776 static struct timespec x; x.tv_sec = x.tv_nsec;
21778 return 0;
21780 _ACEOF
21781 if ac_fn_c_try_compile "$LINENO"; then :
21782 gl_cv_sys_struct_timespec_in_time_h=yes
21783 else
21784 gl_cv_sys_struct_timespec_in_time_h=no
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21789 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21791 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21792 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21793 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21794 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21795 TIME_H_DEFINES_STRUCT_TIMESPEC=1
21796 else
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21798 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21799 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21800 $as_echo_n "(cached) " >&6
21801 else
21802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803 /* end confdefs.h. */
21804 #include <sys/time.h>
21807 main ()
21809 static struct timespec x; x.tv_sec = x.tv_nsec;
21811 return 0;
21813 _ACEOF
21814 if ac_fn_c_try_compile "$LINENO"; then :
21815 gl_cv_sys_struct_timespec_in_sys_time_h=yes
21816 else
21817 gl_cv_sys_struct_timespec_in_sys_time_h=no
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21822 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21823 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21824 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21825 else
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21827 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21828 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21829 $as_echo_n "(cached) " >&6
21830 else
21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h. */
21833 #include <pthread.h>
21836 main ()
21838 static struct timespec x; x.tv_sec = x.tv_nsec;
21840 return 0;
21842 _ACEOF
21843 if ac_fn_c_try_compile "$LINENO"; then :
21844 gl_cv_sys_struct_timespec_in_pthread_h=yes
21845 else
21846 gl_cv_sys_struct_timespec_in_pthread_h=no
21848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21851 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21852 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21853 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21872 if test $gl_cv_have_include_next = yes; then
21873 gl_cv_next_time_h='<'time.h'>'
21874 else
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21876 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21877 if test "${gl_cv_next_time_h+set}" = set; then :
21878 $as_echo_n "(cached) " >&6
21879 else
21881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882 /* end confdefs.h. */
21883 #include <time.h>
21885 _ACEOF
21886 case "$host_os" in
21887 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21888 *) gl_absname_cpp="$ac_cpp" ;;
21889 esac
21891 case "$host_os" in
21892 mingw*)
21893 gl_dirsep_regex='[/\\]'
21896 gl_dirsep_regex='\/'
21898 esac
21899 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21901 gl_header_literal_regex=`echo 'time.h' \
21902 | sed -e "$gl_make_literal_regex_sed"`
21903 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21904 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21905 s|^/[^/]|//&|
21909 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21910 sed -n "$gl_absolute_header_sed"`'"'
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21915 $as_echo "$gl_cv_next_time_h" >&6; }
21917 NEXT_TIME_H=$gl_cv_next_time_h
21919 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21921 gl_next_as_first_directive='<'time.h'>'
21922 else
21923 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21924 gl_next_as_first_directive=$gl_cv_next_time_h
21926 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21941 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21942 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
21943 ac_have_decl=1
21944 else
21945 ac_have_decl=0
21948 cat >>confdefs.h <<_ACEOF
21949 #define HAVE_DECL_UNSETENV $ac_have_decl
21950 _ACEOF
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21954 $as_echo_n "checking whether the utimes function works... " >&6; }
21955 if test "${gl_cv_func_working_utimes+set}" = set; then :
21956 $as_echo_n "(cached) " >&6
21957 else
21959 if test "$cross_compiling" = yes; then :
21960 gl_cv_func_working_utimes=no
21961 else
21962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21963 /* end confdefs.h. */
21965 #include <sys/types.h>
21966 #include <sys/stat.h>
21967 #include <fcntl.h>
21968 #include <sys/time.h>
21969 #include <time.h>
21970 #include <unistd.h>
21971 #include <stdlib.h>
21972 #include <stdio.h>
21973 #include <utime.h>
21975 static int
21976 inorder (time_t a, time_t b, time_t c)
21978 return a <= b && b <= c;
21982 main ()
21984 int result = 0;
21985 char const *file = "conftest.utimes";
21986 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21988 /* Test whether utimes() essentially works. */
21990 struct stat sbuf;
21991 FILE *f = fopen (file, "w");
21992 if (f == NULL)
21993 result |= 1;
21994 else if (fclose (f) != 0)
21995 result |= 1;
21996 else if (utimes (file, timeval) != 0)
21997 result |= 2;
21998 else if (lstat (file, &sbuf) != 0)
21999 result |= 1;
22000 else if (!(sbuf.st_atime == timeval[0].tv_sec
22001 && sbuf.st_mtime == timeval[1].tv_sec))
22002 result |= 4;
22003 if (unlink (file) != 0)
22004 result |= 1;
22007 /* Test whether utimes() with a NULL argument sets the file's timestamp
22008 to the current time. Use 'fstat' as well as 'time' to
22009 determine the "current" time, to accommodate NFS file systems
22010 if there is a time skew between the host and the NFS server. */
22012 int fd = open (file, O_WRONLY|O_CREAT, 0644);
22013 if (fd < 0)
22014 result |= 1;
22015 else
22017 time_t t0, t2;
22018 struct stat st0, st1, st2;
22019 if (time (&t0) == (time_t) -1)
22020 result |= 1;
22021 else if (fstat (fd, &st0) != 0)
22022 result |= 1;
22023 else if (utimes (file, timeval) != 0)
22024 result |= 2;
22025 else if (utimes (file, NULL) != 0)
22026 result |= 8;
22027 else if (fstat (fd, &st1) != 0)
22028 result |= 1;
22029 else if (write (fd, "\n", 1) != 1)
22030 result |= 1;
22031 else if (fstat (fd, &st2) != 0)
22032 result |= 1;
22033 else if (time (&t2) == (time_t) -1)
22034 result |= 1;
22035 else
22037 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
22038 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
22039 if (! (st1.st_atime == st1.st_mtime))
22040 result |= 16;
22041 if (! (m_ok_POSIX || m_ok_NFS))
22042 result |= 32;
22044 if (close (fd) != 0)
22045 result |= 1;
22047 if (unlink (file) != 0)
22048 result |= 1;
22051 /* Test whether utimes() with a NULL argument works on read-only files. */
22053 int fd = open (file, O_WRONLY|O_CREAT, 0444);
22054 if (fd < 0)
22055 result |= 1;
22056 else if (close (fd) != 0)
22057 result |= 1;
22058 else if (utimes (file, NULL) != 0)
22059 result |= 64;
22060 if (unlink (file) != 0)
22061 result |= 1;
22064 return result;
22067 _ACEOF
22068 if ac_fn_c_try_run "$LINENO"; then :
22069 gl_cv_func_working_utimes=yes
22070 else
22071 gl_cv_func_working_utimes=no
22073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22074 conftest.$ac_objext conftest.beam conftest.$ac_ext
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
22079 $as_echo "$gl_cv_func_working_utimes" >&6; }
22081 if test $gl_cv_func_working_utimes = yes; then
22083 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
22092 $as_echo_n "checking for struct utimbuf... " >&6; }
22093 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
22094 $as_echo_n "(cached) " >&6
22095 else
22096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22097 /* end confdefs.h. */
22098 #if HAVE_SYS_TIME_H
22099 #include <sys/time.h>
22100 #endif
22101 #include <time.h>
22102 #ifdef HAVE_UTIME_H
22103 #include <utime.h>
22104 #endif
22107 main ()
22109 static struct utimbuf x; x.actime = x.modtime;
22111 return 0;
22113 _ACEOF
22114 if ac_fn_c_try_compile "$LINENO"; then :
22115 gl_cv_sys_struct_utimbuf=yes
22116 else
22117 gl_cv_sys_struct_utimbuf=no
22119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
22122 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22124 if test $gl_cv_sys_struct_utimbuf = yes; then
22126 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
22141 $as_echo_n "checking type of array argument to getgroups... " >&6; }
22142 if test "${ac_cv_type_getgroups+set}" = set; then :
22143 $as_echo_n "(cached) " >&6
22144 else
22145 if test "$cross_compiling" = yes; then :
22146 ac_cv_type_getgroups=cross
22147 else
22148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22149 /* end confdefs.h. */
22150 /* Thanks to Mike Rendell for this test. */
22151 $ac_includes_default
22152 #define NGID 256
22153 #undef MAX
22154 #define MAX(x, y) ((x) > (y) ? (x) : (y))
22157 main ()
22159 gid_t gidset[NGID];
22160 int i, n;
22161 union { gid_t gval; long int lval; } val;
22163 val.lval = -1;
22164 for (i = 0; i < NGID; i++)
22165 gidset[i] = val.gval;
22166 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22167 gidset);
22168 /* Exit non-zero if getgroups seems to require an array of ints. This
22169 happens when gid_t is short int but getgroups modifies an array
22170 of ints. */
22171 return n > 0 && gidset[n] != val.gval;
22173 _ACEOF
22174 if ac_fn_c_try_run "$LINENO"; then :
22175 ac_cv_type_getgroups=gid_t
22176 else
22177 ac_cv_type_getgroups=int
22179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22180 conftest.$ac_objext conftest.beam conftest.$ac_ext
22183 if test $ac_cv_type_getgroups = cross; then
22184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22185 /* end confdefs.h. */
22186 #include <unistd.h>
22188 _ACEOF
22189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22190 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
22191 ac_cv_type_getgroups=gid_t
22192 else
22193 ac_cv_type_getgroups=int
22195 rm -f conftest*
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22200 $as_echo "$ac_cv_type_getgroups" >&6; }
22202 cat >>confdefs.h <<_ACEOF
22203 #define GETGROUPS_T $ac_cv_type_getgroups
22204 _ACEOF
22213 if false; then
22214 GL_COND_LIBTOOL_TRUE=
22215 GL_COND_LIBTOOL_FALSE='#'
22216 else
22217 GL_COND_LIBTOOL_TRUE='#'
22218 GL_COND_LIBTOOL_FALSE=
22221 gl_cond_libtool=false
22222 gl_libdeps=
22223 gl_ltlibdeps=
22224 gl_m4_base='m4'
22234 gl_source_base='lib'
22237 if test $ac_cv_func_alloca_works = no; then
22241 # Define an additional variable used in the Makefile substitution.
22242 if test $ac_cv_working_alloca_h = yes; then
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22244 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22245 if test "${gl_cv_rpl_alloca+set}" = set; then :
22246 $as_echo_n "(cached) " >&6
22247 else
22249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22250 /* end confdefs.h. */
22252 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22253 Need own alloca
22254 #endif
22256 _ACEOF
22257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22258 $EGREP "Need own alloca" >/dev/null 2>&1; then :
22259 gl_cv_rpl_alloca=yes
22260 else
22261 gl_cv_rpl_alloca=no
22263 rm -f conftest*
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22268 $as_echo "$gl_cv_rpl_alloca" >&6; }
22269 if test $gl_cv_rpl_alloca = yes; then
22271 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22273 ALLOCA_H=alloca.h
22274 else
22275 ALLOCA_H=
22277 else
22278 ALLOCA_H=alloca.h
22281 if test -n "$ALLOCA_H"; then
22282 GL_GENERATE_ALLOCA_H_TRUE=
22283 GL_GENERATE_ALLOCA_H_FALSE='#'
22284 else
22285 GL_GENERATE_ALLOCA_H_TRUE='#'
22286 GL_GENERATE_ALLOCA_H_FALSE=
22294 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22295 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22297 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22298 # programs in the package would end up linked with that potentially-shared
22299 # library, inducing unnecessary run-time overhead.
22300 LIB_CLOCK_GETTIME=
22302 gl_saved_libs=$LIBS
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22304 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22305 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22306 $as_echo_n "(cached) " >&6
22307 else
22308 ac_func_search_save_LIBS=$LIBS
22309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22310 /* end confdefs.h. */
22312 /* Override any GCC internal prototype to avoid an error.
22313 Use char because int might match the return type of a GCC
22314 builtin and then its argument prototype would still apply. */
22315 #ifdef __cplusplus
22316 extern "C"
22317 #endif
22318 char clock_gettime ();
22320 main ()
22322 return clock_gettime ();
22324 return 0;
22326 _ACEOF
22327 for ac_lib in '' rt posix4; do
22328 if test -z "$ac_lib"; then
22329 ac_res="none required"
22330 else
22331 ac_res=-l$ac_lib
22332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22334 if ac_fn_c_try_link "$LINENO"; then :
22335 ac_cv_search_clock_gettime=$ac_res
22337 rm -f core conftest.err conftest.$ac_objext \
22338 conftest$ac_exeext
22339 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22340 break
22342 done
22343 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22345 else
22346 ac_cv_search_clock_gettime=no
22348 rm conftest.$ac_ext
22349 LIBS=$ac_func_search_save_LIBS
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22352 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22353 ac_res=$ac_cv_search_clock_gettime
22354 if test "$ac_res" != no; then :
22355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22356 test "$ac_cv_search_clock_gettime" = "none required" ||
22357 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22360 for ac_func in clock_gettime clock_settime
22361 do :
22362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22364 eval as_val=\$$as_ac_var
22365 if test "x$as_val" = x""yes; then :
22366 cat >>confdefs.h <<_ACEOF
22367 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22368 _ACEOF
22371 done
22373 LIBS=$gl_saved_libs
22380 cat >>confdefs.h <<_ACEOF
22381 #define GNULIB_CLOSE_STREAM 1
22382 _ACEOF
22413 if test $gl_cv_have_include_next = yes; then
22414 gl_cv_next_dirent_h='<'dirent.h'>'
22415 else
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22417 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22418 if test "${gl_cv_next_dirent_h+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22422 if test $ac_cv_header_dirent_h = yes; then
22425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22426 /* end confdefs.h. */
22427 #include <dirent.h>
22429 _ACEOF
22430 case "$host_os" in
22431 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22432 *) gl_absname_cpp="$ac_cpp" ;;
22433 esac
22435 case "$host_os" in
22436 mingw*)
22437 gl_dirsep_regex='[/\\]'
22440 gl_dirsep_regex='\/'
22442 esac
22443 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22445 gl_header_literal_regex=`echo 'dirent.h' \
22446 | sed -e "$gl_make_literal_regex_sed"`
22447 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22448 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22449 s|^/[^/]|//&|
22453 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22454 sed -n "$gl_absolute_header_sed"`'"'
22455 else
22456 gl_cv_next_dirent_h='<'dirent.h'>'
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22462 $as_echo "$gl_cv_next_dirent_h" >&6; }
22464 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22466 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22467 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22468 gl_next_as_first_directive='<'dirent.h'>'
22469 else
22470 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22471 gl_next_as_first_directive=$gl_cv_next_dirent_h
22473 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22478 if test $ac_cv_header_dirent_h = yes; then
22479 HAVE_DIRENT_H=1
22480 else
22481 HAVE_DIRENT_H=0
22493 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22496 if test $HAVE_DUP2 = 1; then
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22498 $as_echo_n "checking whether dup2 works... " >&6; }
22499 if test "${gl_cv_func_dup2_works+set}" = set; then :
22500 $as_echo_n "(cached) " >&6
22501 else
22502 if test "$cross_compiling" = yes; then :
22503 case "$host_os" in
22504 mingw*) # on this platform, dup2 always returns 0 for success
22505 gl_cv_func_dup2_works="guessing no" ;;
22506 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22507 gl_cv_func_dup2_works="guessing no" ;;
22508 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22509 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22510 gl_cv_func_dup2_works="guessing no" ;;
22511 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22512 gl_cv_func_dup2_works="guessing no" ;;
22513 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22514 gl_cv_func_dup2_works="guessing no" ;;
22515 *) gl_cv_func_dup2_works="guessing yes" ;;
22516 esac
22517 else
22518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h. */
22521 #include <unistd.h>
22522 #include <fcntl.h>
22523 #include <errno.h>
22525 main ()
22527 int result = 0;
22528 #ifdef FD_CLOEXEC
22529 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22530 result |= 1;
22531 #endif
22532 if (dup2 (1, 1) == 0)
22533 result |= 2;
22534 #ifdef FD_CLOEXEC
22535 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22536 result |= 4;
22537 #endif
22538 close (0);
22539 if (dup2 (0, 0) != -1)
22540 result |= 8;
22541 /* Many gnulib modules require POSIX conformance of EBADF. */
22542 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22543 result |= 16;
22544 /* Flush out a cygwin core dump. */
22545 if (dup2 (2, -1) != -1 || errno != EBADF)
22546 result |= 32;
22547 return result;
22550 return 0;
22553 _ACEOF
22554 if ac_fn_c_try_run "$LINENO"; then :
22555 gl_cv_func_dup2_works=yes
22556 else
22557 gl_cv_func_dup2_works=no
22559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22560 conftest.$ac_objext conftest.beam conftest.$ac_ext
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22566 $as_echo "$gl_cv_func_dup2_works" >&6; }
22567 case "$gl_cv_func_dup2_works" in
22568 *yes) ;;
22570 REPLACE_DUP2=1
22572 esac
22576 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22585 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22594 GNULIB_DUP2=1
22606 GNULIB_ENVIRON=1
22616 LIB_EXECINFO=''
22617 EXECINFO_H='execinfo.h'
22619 if test $ac_cv_header_execinfo_h = yes; then
22620 gl_saved_libs=$LIBS
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22622 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22623 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22624 $as_echo_n "(cached) " >&6
22625 else
22626 ac_func_search_save_LIBS=$LIBS
22627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22628 /* end confdefs.h. */
22630 /* Override any GCC internal prototype to avoid an error.
22631 Use char because int might match the return type of a GCC
22632 builtin and then its argument prototype would still apply. */
22633 #ifdef __cplusplus
22634 extern "C"
22635 #endif
22636 char backtrace_symbols_fd ();
22638 main ()
22640 return backtrace_symbols_fd ();
22642 return 0;
22644 _ACEOF
22645 for ac_lib in '' execinfo; do
22646 if test -z "$ac_lib"; then
22647 ac_res="none required"
22648 else
22649 ac_res=-l$ac_lib
22650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22652 if ac_fn_c_try_link "$LINENO"; then :
22653 ac_cv_search_backtrace_symbols_fd=$ac_res
22655 rm -f core conftest.err conftest.$ac_objext \
22656 conftest$ac_exeext
22657 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22658 break
22660 done
22661 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22663 else
22664 ac_cv_search_backtrace_symbols_fd=no
22666 rm conftest.$ac_ext
22667 LIBS=$ac_func_search_save_LIBS
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22670 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22671 ac_res=$ac_cv_search_backtrace_symbols_fd
22672 if test "$ac_res" != no; then :
22673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22674 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22675 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22678 LIBS=$gl_saved_libs
22679 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22682 if test -n "$EXECINFO_H"; then
22691 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22697 if test -n "$EXECINFO_H"; then
22698 GL_GENERATE_EXECINFO_H_TRUE=
22699 GL_GENERATE_EXECINFO_H_FALSE='#'
22700 else
22701 GL_GENERATE_EXECINFO_H_TRUE='#'
22702 GL_GENERATE_EXECINFO_H_FALSE=
22713 if test $ac_cv_func_faccessat = no; then
22714 HAVE_FACCESSAT=0
22717 if test $HAVE_FACCESSAT = 0; then
22726 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22729 for ac_func in access
22730 do :
22731 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22732 if test "x$ac_cv_func_access" = x""yes; then :
22733 cat >>confdefs.h <<_ACEOF
22734 #define HAVE_ACCESS 1
22735 _ACEOF
22738 done
22744 cat >>confdefs.h <<_ACEOF
22745 #define GNULIB_FACCESSAT 1
22746 _ACEOF
22754 GNULIB_FACCESSAT=1
22765 if test $ac_cv_func_fcntl = no; then
22769 if test $ac_cv_func_fcntl = no; then
22770 HAVE_FCNTL=0
22771 else
22772 REPLACE_FCNTL=1
22775 else
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22777 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22778 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22779 $as_echo_n "(cached) " >&6
22780 else
22781 if test "$cross_compiling" = yes; then :
22782 # Guess that it works on glibc systems
22783 case $host_os in #((
22784 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
22785 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
22786 esac
22787 else
22788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22789 /* end confdefs.h. */
22791 #include <fcntl.h>
22792 #include <errno.h>
22795 main ()
22797 int result = 0;
22798 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22799 if (errno != EINVAL) result |= 2;
22800 return result;
22803 return 0;
22805 _ACEOF
22806 if ac_fn_c_try_run "$LINENO"; then :
22807 gl_cv_func_fcntl_f_dupfd_works=yes
22808 else
22809 gl_cv_func_fcntl_f_dupfd_works=no
22811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22812 conftest.$ac_objext conftest.beam conftest.$ac_ext
22816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22817 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22818 case $gl_cv_func_fcntl_f_dupfd_works in
22819 *yes) ;;
22823 if test $ac_cv_func_fcntl = no; then
22824 HAVE_FCNTL=0
22825 else
22826 REPLACE_FCNTL=1
22830 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22832 esac
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22835 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22836 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22837 $as_echo_n "(cached) " >&6
22838 else
22839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h. */
22842 #include <fcntl.h>
22843 #ifndef F_DUPFD_CLOEXEC
22844 choke me
22845 #endif
22848 main ()
22852 return 0;
22854 _ACEOF
22855 if ac_fn_c_try_compile "$LINENO"; then :
22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h. */
22859 #ifdef __linux__
22860 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22861 it to support the semantics on older kernels that failed with EINVAL. */
22862 choke me
22863 #endif
22866 main ()
22870 return 0;
22872 _ACEOF
22873 if ac_fn_c_try_compile "$LINENO"; then :
22874 gl_cv_func_fcntl_f_dupfd_cloexec=yes
22875 else
22876 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
22878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879 else
22880 gl_cv_func_fcntl_f_dupfd_cloexec=no
22882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22885 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22886 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22890 if test $ac_cv_func_fcntl = no; then
22891 HAVE_FCNTL=0
22892 else
22893 REPLACE_FCNTL=1
22900 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
22909 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
22917 GNULIB_FCNTL=1
22934 if test $gl_cv_have_include_next = yes; then
22935 gl_cv_next_fcntl_h='<'fcntl.h'>'
22936 else
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22938 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22939 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22940 $as_echo_n "(cached) " >&6
22941 else
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944 /* end confdefs.h. */
22945 #include <fcntl.h>
22947 _ACEOF
22948 case "$host_os" in
22949 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22950 *) gl_absname_cpp="$ac_cpp" ;;
22951 esac
22953 case "$host_os" in
22954 mingw*)
22955 gl_dirsep_regex='[/\\]'
22958 gl_dirsep_regex='\/'
22960 esac
22961 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22963 gl_header_literal_regex=`echo 'fcntl.h' \
22964 | sed -e "$gl_make_literal_regex_sed"`
22965 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22966 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22967 s|^/[^/]|//&|
22971 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22972 sed -n "$gl_absolute_header_sed"`'"'
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22977 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22979 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22981 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22983 gl_next_as_first_directive='<'fcntl.h'>'
22984 else
22985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22986 gl_next_as_first_directive=$gl_cv_next_fcntl_h
22988 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23004 LIB_FDATASYNC=
23007 if test $ac_cv_have_decl_fdatasync = no; then
23008 HAVE_DECL_FDATASYNC=0
23009 for ac_func in fdatasync
23010 do :
23011 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
23012 if test "x$ac_cv_func_fdatasync" = x""yes; then :
23013 cat >>confdefs.h <<_ACEOF
23014 #define HAVE_FDATASYNC 1
23015 _ACEOF
23018 done
23020 if test $ac_cv_func_fdatasync = no; then
23021 HAVE_FDATASYNC=0
23023 else
23024 gl_saved_libs=$LIBS
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
23026 $as_echo_n "checking for library containing fdatasync... " >&6; }
23027 if test "${ac_cv_search_fdatasync+set}" = set; then :
23028 $as_echo_n "(cached) " >&6
23029 else
23030 ac_func_search_save_LIBS=$LIBS
23031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23032 /* end confdefs.h. */
23034 /* Override any GCC internal prototype to avoid an error.
23035 Use char because int might match the return type of a GCC
23036 builtin and then its argument prototype would still apply. */
23037 #ifdef __cplusplus
23038 extern "C"
23039 #endif
23040 char fdatasync ();
23042 main ()
23044 return fdatasync ();
23046 return 0;
23048 _ACEOF
23049 for ac_lib in '' rt posix4; do
23050 if test -z "$ac_lib"; then
23051 ac_res="none required"
23052 else
23053 ac_res=-l$ac_lib
23054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23056 if ac_fn_c_try_link "$LINENO"; then :
23057 ac_cv_search_fdatasync=$ac_res
23059 rm -f core conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext
23061 if test "${ac_cv_search_fdatasync+set}" = set; then :
23062 break
23064 done
23065 if test "${ac_cv_search_fdatasync+set}" = set; then :
23067 else
23068 ac_cv_search_fdatasync=no
23070 rm conftest.$ac_ext
23071 LIBS=$ac_func_search_save_LIBS
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
23074 $as_echo "$ac_cv_search_fdatasync" >&6; }
23075 ac_res=$ac_cv_search_fdatasync
23076 if test "$ac_res" != no; then :
23077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23078 test "$ac_cv_search_fdatasync" = "none required" ||
23079 LIB_FDATASYNC=$ac_cv_search_fdatasync
23082 LIBS=$gl_saved_libs
23085 if test $HAVE_FDATASYNC = 0; then
23094 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
23102 GNULIB_FDATASYNC=1
23113 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
23114 #include <dirent.h>
23117 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
23118 ac_have_decl=1
23119 else
23120 ac_have_decl=0
23123 cat >>confdefs.h <<_ACEOF
23124 #define HAVE_DECL_FDOPENDIR $ac_have_decl
23125 _ACEOF
23126 if test $ac_have_decl = 1; then :
23128 else
23129 HAVE_DECL_FDOPENDIR=0
23133 if test $ac_cv_func_fdopendir = no; then
23134 HAVE_FDOPENDIR=0
23135 else
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
23137 $as_echo_n "checking whether fdopendir works... " >&6; }
23138 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
23139 $as_echo_n "(cached) " >&6
23140 else
23141 if test "$cross_compiling" = yes; then :
23142 case "$host_os" in
23143 # Guess yes on glibc systems.
23144 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
23145 # If we don't know, assume the worst.
23146 *) gl_cv_func_fdopendir_works="guessing no" ;;
23147 esac
23149 else
23150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151 /* end confdefs.h. */
23153 #include <dirent.h>
23154 #include <fcntl.h>
23155 #include <unistd.h>
23156 #if !HAVE_DECL_FDOPENDIR
23157 extern
23158 # ifdef __cplusplus
23160 # endif
23161 DIR *fdopendir (int);
23162 #endif
23165 main ()
23167 int result = 0;
23168 int fd = open ("conftest.c", O_RDONLY);
23169 if (fd < 0) result |= 1;
23170 if (fdopendir (fd)) result |= 2;
23171 if (close (fd)) result |= 4;
23172 return result;
23174 return 0;
23176 _ACEOF
23177 if ac_fn_c_try_run "$LINENO"; then :
23178 gl_cv_func_fdopendir_works=yes
23179 else
23180 gl_cv_func_fdopendir_works=no
23182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23183 conftest.$ac_objext conftest.beam conftest.$ac_ext
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23188 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23189 case "$gl_cv_func_fdopendir_works" in
23190 *yes) ;;
23192 REPLACE_FDOPENDIR=1
23194 esac
23197 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
23206 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
23214 GNULIB_FDOPENDIR=1
23222 cat >>confdefs.h <<_ACEOF
23223 #define GNULIB_FDOPENDIR 1
23224 _ACEOF
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23234 $as_echo_n "checking for __fpending... " >&6; }
23235 if test "${gl_cv_func___fpending+set}" = set; then :
23236 $as_echo_n "(cached) " >&6
23237 else
23239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23240 /* end confdefs.h. */
23241 #include <stdio.h>
23242 #if HAVE_STDIO_EXT_H
23243 # include <stdio_ext.h>
23244 #endif
23247 main ()
23249 return ! __fpending (stdin);
23251 return 0;
23253 _ACEOF
23254 if ac_fn_c_try_link "$LINENO"; then :
23255 gl_cv_func___fpending=yes
23256 else
23257 gl_cv_func___fpending=no
23259 rm -f core conftest.err conftest.$ac_objext \
23260 conftest$ac_exeext conftest.$ac_ext
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23264 $as_echo "$gl_cv_func___fpending" >&6; }
23266 if test $gl_cv_func___fpending = no; then
23275 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23279 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23280 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23281 $as_echo_n "(cached) " >&6
23282 else
23284 for ac_expr in \
23286 '# glibc2' \
23287 'fp->_IO_write_ptr - fp->_IO_write_base' \
23289 '# traditional Unix' \
23290 'fp->_ptr - fp->_base' \
23292 '# BSD' \
23293 'fp->_p - fp->_bf._base' \
23295 '# SCO, Unixware' \
23296 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23298 '# QNX' \
23299 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23301 '# old glibc?' \
23302 'fp->__bufp - fp->__buffer' \
23304 '# old glibc iostream?' \
23305 'fp->_pptr - fp->_pbase' \
23307 '# emx+gcc' \
23308 'fp->_ptr - fp->_buffer' \
23310 '# Minix' \
23311 'fp->_ptr - fp->_buf' \
23313 '# Plan9' \
23314 'fp->wp - fp->buf' \
23316 '# VMS' \
23317 '(*fp)->_ptr - (*fp)->_base' \
23319 '# e.g., DGUX R4.11; the info is not available' \
23321 ; do
23323 # Skip each embedded comment.
23324 case "$ac_expr" in '#'*) continue;; esac
23326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h. */
23328 #include <stdio.h>
23330 main ()
23332 FILE *fp = stdin; (void) ($ac_expr);
23334 return 0;
23336 _ACEOF
23337 if ac_fn_c_try_compile "$LINENO"; then :
23338 fp_done=yes
23341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23342 test "$fp_done" = yes && break
23343 done
23345 ac_cv_sys_pending_output_n_bytes=$ac_expr
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23350 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23352 cat >>confdefs.h <<_ACEOF
23353 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23354 _ACEOF
23364 if test $ac_cv_func_fstatat = no; then
23365 HAVE_FSTATAT=0
23366 else
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23368 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23369 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23370 $as_echo_n "(cached) " >&6
23371 else
23372 if test "$cross_compiling" = yes; then :
23373 case "$host_os" in
23374 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23375 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23376 esac
23378 else
23379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23380 /* end confdefs.h. */
23382 #include <fcntl.h>
23383 #include <sys/stat.h>
23385 main (void)
23387 struct stat a;
23388 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23391 _ACEOF
23392 if ac_fn_c_try_run "$LINENO"; then :
23393 gl_cv_func_fstatat_zero_flag=yes
23394 else
23395 gl_cv_func_fstatat_zero_flag=no
23397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23398 conftest.$ac_objext conftest.beam conftest.$ac_ext
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23404 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23406 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23407 *yes+*yes) ;;
23408 *) REPLACE_FSTATAT=1
23409 case $gl_cv_func_fstatat_zero_flag in
23410 *yes)
23412 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23415 esac
23417 esac
23420 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23429 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23437 GNULIB_FSTATAT=1
23446 if test $ac_cv_func_fsync = no; then
23447 HAVE_FSYNC=0
23450 if test $HAVE_FSYNC = 0; then
23459 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23468 GNULIB_FSYNC=1
23476 # Persuade glibc <stdlib.h> to declare getloadavg().
23479 gl_save_LIBS=$LIBS
23481 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23482 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23483 HAVE_GETLOADAVG=1
23484 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23485 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23487 else
23488 gl_func_getloadavg_done=no
23490 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23491 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23492 # to get the right answer into the cache.
23493 # For kstat on solaris, we need to test for libelf and libkvm to force the
23494 # definition of SVR4 below.
23495 if test $gl_func_getloadavg_done = no; then
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23497 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23498 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
23500 else
23501 ac_check_lib_save_LIBS=$LIBS
23502 LIBS="-lelf $LIBS"
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h. */
23506 /* Override any GCC internal prototype to avoid an error.
23507 Use char because int might match the return type of a GCC
23508 builtin and then its argument prototype would still apply. */
23509 #ifdef __cplusplus
23510 extern "C"
23511 #endif
23512 char elf_begin ();
23514 main ()
23516 return elf_begin ();
23518 return 0;
23520 _ACEOF
23521 if ac_fn_c_try_link "$LINENO"; then :
23522 ac_cv_lib_elf_elf_begin=yes
23523 else
23524 ac_cv_lib_elf_elf_begin=no
23526 rm -f core conftest.err conftest.$ac_objext \
23527 conftest$ac_exeext conftest.$ac_ext
23528 LIBS=$ac_check_lib_save_LIBS
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23531 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23532 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23533 LIBS="-lelf $LIBS"
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23537 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23538 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23539 $as_echo_n "(cached) " >&6
23540 else
23541 ac_check_lib_save_LIBS=$LIBS
23542 LIBS="-lkvm $LIBS"
23543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23544 /* end confdefs.h. */
23546 /* Override any GCC internal prototype to avoid an error.
23547 Use char because int might match the return type of a GCC
23548 builtin and then its argument prototype would still apply. */
23549 #ifdef __cplusplus
23550 extern "C"
23551 #endif
23552 char kvm_open ();
23554 main ()
23556 return kvm_open ();
23558 return 0;
23560 _ACEOF
23561 if ac_fn_c_try_link "$LINENO"; then :
23562 ac_cv_lib_kvm_kvm_open=yes
23563 else
23564 ac_cv_lib_kvm_kvm_open=no
23566 rm -f core conftest.err conftest.$ac_objext \
23567 conftest$ac_exeext conftest.$ac_ext
23568 LIBS=$ac_check_lib_save_LIBS
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23571 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23572 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23573 LIBS="-lkvm $LIBS"
23576 # Check for the 4.4BSD definition of getloadavg.
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23578 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23579 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23581 else
23582 ac_check_lib_save_LIBS=$LIBS
23583 LIBS="-lutil $LIBS"
23584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23585 /* end confdefs.h. */
23587 /* Override any GCC internal prototype to avoid an error.
23588 Use char because int might match the return type of a GCC
23589 builtin and then its argument prototype would still apply. */
23590 #ifdef __cplusplus
23591 extern "C"
23592 #endif
23593 char getloadavg ();
23595 main ()
23597 return getloadavg ();
23599 return 0;
23601 _ACEOF
23602 if ac_fn_c_try_link "$LINENO"; then :
23603 ac_cv_lib_util_getloadavg=yes
23604 else
23605 ac_cv_lib_util_getloadavg=no
23607 rm -f core conftest.err conftest.$ac_objext \
23608 conftest$ac_exeext conftest.$ac_ext
23609 LIBS=$ac_check_lib_save_LIBS
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23612 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23613 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23614 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23619 if test $gl_func_getloadavg_done = no; then
23620 # There is a commonly available library for RS/6000 AIX.
23621 # Since it is not a standard part of AIX, it might be installed locally.
23622 gl_getloadavg_LIBS=$LIBS
23623 LIBS="-L/usr/local/lib $LIBS"
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23625 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23626 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23627 $as_echo_n "(cached) " >&6
23628 else
23629 ac_check_lib_save_LIBS=$LIBS
23630 LIBS="-lgetloadavg $LIBS"
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23634 /* Override any GCC internal prototype to avoid an error.
23635 Use char because int might match the return type of a GCC
23636 builtin and then its argument prototype would still apply. */
23637 #ifdef __cplusplus
23638 extern "C"
23639 #endif
23640 char getloadavg ();
23642 main ()
23644 return getloadavg ();
23646 return 0;
23648 _ACEOF
23649 if ac_fn_c_try_link "$LINENO"; then :
23650 ac_cv_lib_getloadavg_getloadavg=yes
23651 else
23652 ac_cv_lib_getloadavg_getloadavg=no
23654 rm -f core conftest.err conftest.$ac_objext \
23655 conftest$ac_exeext conftest.$ac_ext
23656 LIBS=$ac_check_lib_save_LIBS
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23659 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23660 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23661 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23662 else
23663 LIBS=$gl_getloadavg_LIBS
23668 # Set up the replacement function if necessary.
23669 if test $gl_func_getloadavg_done = no; then
23670 HAVE_GETLOADAVG=0
23672 # Solaris has libkstat which does not require root.
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23674 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23675 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23676 $as_echo_n "(cached) " >&6
23677 else
23678 ac_check_lib_save_LIBS=$LIBS
23679 LIBS="-lkstat $LIBS"
23680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23681 /* end confdefs.h. */
23683 /* Override any GCC internal prototype to avoid an error.
23684 Use char because int might match the return type of a GCC
23685 builtin and then its argument prototype would still apply. */
23686 #ifdef __cplusplus
23687 extern "C"
23688 #endif
23689 char kstat_open ();
23691 main ()
23693 return kstat_open ();
23695 return 0;
23697 _ACEOF
23698 if ac_fn_c_try_link "$LINENO"; then :
23699 ac_cv_lib_kstat_kstat_open=yes
23700 else
23701 ac_cv_lib_kstat_kstat_open=no
23703 rm -f core conftest.err conftest.$ac_objext \
23704 conftest$ac_exeext conftest.$ac_ext
23705 LIBS=$ac_check_lib_save_LIBS
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23708 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23709 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23710 cat >>confdefs.h <<_ACEOF
23711 #define HAVE_LIBKSTAT 1
23712 _ACEOF
23714 LIBS="-lkstat $LIBS"
23718 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23720 # AIX has libperfstat which does not require root
23721 if test $gl_func_getloadavg_done = no; then
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23723 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23724 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23725 $as_echo_n "(cached) " >&6
23726 else
23727 ac_check_lib_save_LIBS=$LIBS
23728 LIBS="-lperfstat $LIBS"
23729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23730 /* end confdefs.h. */
23732 /* Override any GCC internal prototype to avoid an error.
23733 Use char because int might match the return type of a GCC
23734 builtin and then its argument prototype would still apply. */
23735 #ifdef __cplusplus
23736 extern "C"
23737 #endif
23738 char perfstat_cpu_total ();
23740 main ()
23742 return perfstat_cpu_total ();
23744 return 0;
23746 _ACEOF
23747 if ac_fn_c_try_link "$LINENO"; then :
23748 ac_cv_lib_perfstat_perfstat_cpu_total=yes
23749 else
23750 ac_cv_lib_perfstat_perfstat_cpu_total=no
23752 rm -f core conftest.err conftest.$ac_objext \
23753 conftest$ac_exeext conftest.$ac_ext
23754 LIBS=$ac_check_lib_save_LIBS
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23757 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23758 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
23759 cat >>confdefs.h <<_ACEOF
23760 #define HAVE_LIBPERFSTAT 1
23761 _ACEOF
23763 LIBS="-lperfstat $LIBS"
23767 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
23770 if test $gl_func_getloadavg_done = no; then
23771 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23772 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
23773 gl_func_getloadavg_done=yes
23775 $as_echo "#define DGUX 1" >>confdefs.h
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23778 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23779 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23780 $as_echo_n "(cached) " >&6
23781 else
23782 ac_check_lib_save_LIBS=$LIBS
23783 LIBS="-ldgc $LIBS"
23784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h. */
23787 /* Override any GCC internal prototype to avoid an error.
23788 Use char because int might match the return type of a GCC
23789 builtin and then its argument prototype would still apply. */
23790 #ifdef __cplusplus
23791 extern "C"
23792 #endif
23793 char dg_sys_info ();
23795 main ()
23797 return dg_sys_info ();
23799 return 0;
23801 _ACEOF
23802 if ac_fn_c_try_link "$LINENO"; then :
23803 ac_cv_lib_dgc_dg_sys_info=yes
23804 else
23805 ac_cv_lib_dgc_dg_sys_info=no
23807 rm -f core conftest.err conftest.$ac_objext \
23808 conftest$ac_exeext conftest.$ac_ext
23809 LIBS=$ac_check_lib_save_LIBS
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23812 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23813 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
23814 cat >>confdefs.h <<_ACEOF
23815 #define HAVE_LIBDGC 1
23816 _ACEOF
23818 LIBS="-ldgc $LIBS"
23830 if test "x$gl_save_LIBS" = x; then
23831 GETLOADAVG_LIBS=$LIBS
23832 else
23833 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23835 LIBS=$gl_save_LIBS
23838 # Test whether the system declares getloadavg. Solaris has the function
23839 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23840 for ac_header in sys/loadavg.h
23841 do :
23842 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23843 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
23844 cat >>confdefs.h <<_ACEOF
23845 #define HAVE_SYS_LOADAVG_H 1
23846 _ACEOF
23850 done
23852 if test $ac_cv_header_sys_loadavg_h = yes; then
23853 HAVE_SYS_LOADAVG_H=1
23854 else
23855 HAVE_SYS_LOADAVG_H=0
23857 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23858 # include <sys/loadavg.h>
23859 #endif
23860 #include <stdlib.h>
23862 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
23864 else
23865 HAVE_DECL_GETLOADAVG=0
23869 if test $HAVE_GETLOADAVG = 0; then
23878 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
23881 # Figure out what our getloadavg.c needs.
23885 # On HPUX9, an unprivileged user can get load averages this way.
23886 if test $gl_func_getloadavg_done = no; then
23887 for ac_func in pstat_getdynamic
23888 do :
23889 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23890 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
23891 cat >>confdefs.h <<_ACEOF
23892 #define HAVE_PSTAT_GETDYNAMIC 1
23893 _ACEOF
23894 gl_func_getloadavg_done=yes
23896 done
23900 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23901 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23902 # Irix 4.0.5F has the header but not the library.
23903 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
23904 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23905 gl_func_getloadavg_done=yes
23907 $as_echo "#define SVR4 1" >>confdefs.h
23911 if test $gl_func_getloadavg_done = no; then
23912 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23913 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
23914 gl_func_getloadavg_done=yes
23916 $as_echo "#define UMAX 1" >>confdefs.h
23919 $as_echo "#define UMAX4_3 1" >>confdefs.h
23926 if test $gl_func_getloadavg_done = no; then
23927 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23928 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
23929 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
23936 if test $gl_func_getloadavg_done = no; then
23937 for ac_header in mach/mach.h
23938 do :
23939 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23940 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
23941 cat >>confdefs.h <<_ACEOF
23942 #define HAVE_MACH_MACH_H 1
23943 _ACEOF
23947 done
23951 for ac_header in nlist.h
23952 do :
23953 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23954 if test "x$ac_cv_header_nlist_h" = x""yes; then :
23955 cat >>confdefs.h <<_ACEOF
23956 #define HAVE_NLIST_H 1
23957 _ACEOF
23958 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23960 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
23962 cat >>confdefs.h <<_ACEOF
23963 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23964 _ACEOF
23969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23970 /* end confdefs.h. */
23971 #include <nlist.h>
23973 main ()
23975 struct nlist x;
23976 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23977 x.n_un.n_name = "";
23978 #else
23979 x.n_name = "";
23980 #endif
23982 return 0;
23984 _ACEOF
23985 if ac_fn_c_try_link "$LINENO"; then :
23987 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23990 rm -f core conftest.err conftest.$ac_objext \
23991 conftest$ac_exeext conftest.$ac_ext
23995 done
24003 GNULIB_GETLOADAVG=1
24014 if test $REPLACE_GETOPT = 1; then
24023 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24033 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24038 GNULIB_GL_UNISTD_H_GETOPT=1
24047 REPLACE_GETOPT=0
24048 if test -n "$gl_replace_getopt"; then
24049 REPLACE_GETOPT=1
24052 if test $REPLACE_GETOPT = 1; then
24054 GETOPT_H=getopt.h
24056 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
24062 if test $REPLACE_GETOPT = 1; then
24071 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24081 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24086 GNULIB_GL_UNISTD_H_GETOPT=1
24100 gl_gettimeofday_timezone=void
24101 if test $ac_cv_func_gettimeofday != yes; then
24102 HAVE_GETTIMEOFDAY=0
24103 else
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
24108 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
24109 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
24110 $as_echo_n "(cached) " >&6
24111 else
24112 if test "$cross_compiling" = yes; then :
24113 # When cross-compiling:
24114 case "$host_os" in
24115 # Guess all is fine on glibc systems.
24116 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
24117 # If we don't know, assume the worst.
24118 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
24119 esac
24121 else
24122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24123 /* end confdefs.h. */
24124 #include <string.h>
24125 #include <sys/time.h>
24126 #include <time.h>
24127 #include <stdlib.h>
24130 main ()
24133 time_t t = 0;
24134 struct tm *lt;
24135 struct tm saved_lt;
24136 struct timeval tv;
24137 lt = localtime (&t);
24138 saved_lt = *lt;
24139 gettimeofday (&tv, NULL);
24140 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
24143 return 0;
24145 _ACEOF
24146 if ac_fn_c_try_run "$LINENO"; then :
24147 gl_cv_func_gettimeofday_clobber=no
24148 else
24149 gl_cv_func_gettimeofday_clobber=yes
24151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24152 conftest.$ac_objext conftest.beam conftest.$ac_ext
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
24157 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
24159 case "$gl_cv_func_gettimeofday_clobber" in
24160 *yes)
24161 REPLACE_GETTIMEOFDAY=1
24164 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
24167 $as_echo "#define localtime rpl_localtime" >>confdefs.h
24171 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24174 esac
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24177 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24178 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24179 $as_echo_n "(cached) " >&6
24180 else
24181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24182 /* end confdefs.h. */
24183 #include <sys/time.h>
24184 struct timeval c;
24185 int gettimeofday (struct timeval *restrict, void *restrict);
24188 main ()
24190 /* glibc uses struct timezone * rather than the POSIX void *
24191 if _GNU_SOURCE is defined. However, since the only portable
24192 use of gettimeofday uses NULL as the second parameter, and
24193 since the glibc definition is actually more typesafe, it is
24194 not worth wrapping this to get a compliant signature. */
24195 int (*f) (struct timeval *restrict, void *restrict)
24196 = gettimeofday;
24197 int x = f (&c, 0);
24198 return !(x | c.tv_sec | c.tv_usec);
24201 return 0;
24203 _ACEOF
24204 if ac_fn_c_try_compile "$LINENO"; then :
24205 gl_cv_func_gettimeofday_posix_signature=yes
24206 else
24207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24208 /* end confdefs.h. */
24209 #include <sys/time.h>
24210 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24213 main ()
24217 return 0;
24219 _ACEOF
24220 if ac_fn_c_try_compile "$LINENO"; then :
24221 gl_cv_func_gettimeofday_posix_signature=almost
24222 else
24223 gl_cv_func_gettimeofday_posix_signature=no
24225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24230 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24231 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
24232 gl_gettimeofday_timezone='struct timezone'
24233 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24234 REPLACE_GETTIMEOFDAY=1
24236 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24237 REPLACE_GETTIMEOFDAY=1
24242 cat >>confdefs.h <<_ACEOF
24243 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24244 _ACEOF
24247 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
24256 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24259 for ac_header in sys/timeb.h
24260 do :
24261 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24262 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
24263 cat >>confdefs.h <<_ACEOF
24264 #define HAVE_SYS_TIMEB_H 1
24265 _ACEOF
24269 done
24271 for ac_func in _ftime
24272 do :
24273 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
24274 if test "x$ac_cv_func__ftime" = x""yes; then :
24275 cat >>confdefs.h <<_ACEOF
24276 #define HAVE__FTIME 1
24277 _ACEOF
24280 done
24289 GNULIB_GETTIMEOFDAY=1
24300 if test $ac_cv_func_lstat = yes; then
24302 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24303 *no)
24304 REPLACE_LSTAT=1
24306 esac
24307 else
24308 HAVE_LSTAT=0
24311 if test $REPLACE_LSTAT = 1; then
24320 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24329 GNULIB_LSTAT=1
24340 if test $ac_cv_have_decl_memrchr = no; then
24341 HAVE_DECL_MEMRCHR=0
24344 for ac_func in memrchr
24345 do :
24346 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24347 if test "x$ac_cv_func_memrchr" = x""yes; then :
24348 cat >>confdefs.h <<_ACEOF
24349 #define HAVE_MEMRCHR 1
24350 _ACEOF
24353 done
24356 if test $ac_cv_func_memrchr = no; then
24365 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24374 GNULIB_MEMRCHR=1
24386 if test $ac_cv_func_mkostemp != yes; then
24387 HAVE_MKOSTEMP=0
24390 if test $HAVE_MKOSTEMP = 0; then
24399 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
24406 cat >>confdefs.h <<_ACEOF
24407 #define GNULIB_MKOSTEMP 1
24408 _ACEOF
24416 GNULIB_MKOSTEMP=1
24428 if test $APPLE_UNIVERSAL_BUILD = 1; then
24429 # A universal build on Apple Mac OS X platforms.
24430 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24431 # But we need a configuration result that is valid in both modes.
24432 gl_cv_func_working_mktime=no
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24435 $as_echo_n "checking for working mktime... " >&6; }
24436 if test "${gl_cv_func_working_mktime+set}" = set; then :
24437 $as_echo_n "(cached) " >&6
24438 else
24439 if test "$cross_compiling" = yes; then :
24440 gl_cv_func_working_mktime=no
24441 else
24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h. */
24444 /* Test program from Paul Eggert and Tony Leneis. */
24445 #include <limits.h>
24446 #include <stdlib.h>
24447 #include <time.h>
24449 #ifdef HAVE_UNISTD_H
24450 # include <unistd.h>
24451 #endif
24453 #if HAVE_DECL_ALARM
24454 # include <signal.h>
24455 #endif
24457 /* Work around redefinition to rpl_putenv by other config tests. */
24458 #undef putenv
24460 static time_t time_t_max;
24461 static time_t time_t_min;
24463 /* Values we'll use to set the TZ environment variable. */
24464 static char *tz_strings[] = {
24465 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24466 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24468 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24470 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24471 Based on a problem report from Andreas Jaeger. */
24472 static int
24473 spring_forward_gap ()
24475 /* glibc (up to about 1998-10-07) failed this test. */
24476 struct tm tm;
24478 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24479 instead of "TZ=America/Vancouver" in order to detect the bug even
24480 on systems that don't support the Olson extension, or don't have the
24481 full zoneinfo tables installed. */
24482 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24484 tm.tm_year = 98;
24485 tm.tm_mon = 3;
24486 tm.tm_mday = 5;
24487 tm.tm_hour = 2;
24488 tm.tm_min = 0;
24489 tm.tm_sec = 0;
24490 tm.tm_isdst = -1;
24491 return mktime (&tm) != (time_t) -1;
24494 static int
24495 mktime_test1 (time_t now)
24497 struct tm *lt;
24498 return ! (lt = localtime (&now)) || mktime (lt) == now;
24501 static int
24502 mktime_test (time_t now)
24504 return (mktime_test1 (now)
24505 && mktime_test1 ((time_t) (time_t_max - now))
24506 && mktime_test1 ((time_t) (time_t_min + now)));
24509 static int
24510 irix_6_4_bug ()
24512 /* Based on code from Ariel Faigon. */
24513 struct tm tm;
24514 tm.tm_year = 96;
24515 tm.tm_mon = 3;
24516 tm.tm_mday = 0;
24517 tm.tm_hour = 0;
24518 tm.tm_min = 0;
24519 tm.tm_sec = 0;
24520 tm.tm_isdst = -1;
24521 mktime (&tm);
24522 return tm.tm_mon == 2 && tm.tm_mday == 31;
24525 static int
24526 bigtime_test (int j)
24528 struct tm tm;
24529 time_t now;
24530 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24531 now = mktime (&tm);
24532 if (now != (time_t) -1)
24534 struct tm *lt = localtime (&now);
24535 if (! (lt
24536 && lt->tm_year == tm.tm_year
24537 && lt->tm_mon == tm.tm_mon
24538 && lt->tm_mday == tm.tm_mday
24539 && lt->tm_hour == tm.tm_hour
24540 && lt->tm_min == tm.tm_min
24541 && lt->tm_sec == tm.tm_sec
24542 && lt->tm_yday == tm.tm_yday
24543 && lt->tm_wday == tm.tm_wday
24544 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24545 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24546 return 0;
24548 return 1;
24551 static int
24552 year_2050_test ()
24554 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24555 ignoring leap seconds. */
24556 unsigned long int answer = 2527315200UL;
24558 struct tm tm;
24559 time_t t;
24560 tm.tm_year = 2050 - 1900;
24561 tm.tm_mon = 2 - 1;
24562 tm.tm_mday = 1;
24563 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24564 tm.tm_isdst = -1;
24566 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24567 instead of "TZ=America/Vancouver" in order to detect the bug even
24568 on systems that don't support the Olson extension, or don't have the
24569 full zoneinfo tables installed. */
24570 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24572 t = mktime (&tm);
24574 /* Check that the result is either a failure, or close enough
24575 to the correct answer that we can assume the discrepancy is
24576 due to leap seconds. */
24577 return (t == (time_t) -1
24578 || (0 < t && answer - 120 <= t && t <= answer + 120));
24582 main ()
24584 int result = 0;
24585 time_t t, delta;
24586 int i, j;
24587 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24588 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24590 #if HAVE_DECL_ALARM
24591 /* This test makes some buggy mktime implementations loop.
24592 Give up after 60 seconds; a mktime slower than that
24593 isn't worth using anyway. */
24594 signal (SIGALRM, SIG_DFL);
24595 alarm (60);
24596 #endif
24598 time_t_max = (! time_t_signed
24599 ? (time_t) -1
24600 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24601 * 2 + 1));
24602 time_t_min = (! time_t_signed
24603 ? (time_t) 0
24604 : time_t_signed_magnitude
24605 ? ~ (time_t) 0
24606 : ~ time_t_max);
24608 delta = time_t_max / 997; /* a suitable prime number */
24609 for (i = 0; i < N_STRINGS; i++)
24611 if (tz_strings[i])
24612 putenv (tz_strings[i]);
24614 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24615 if (! mktime_test (t))
24616 result |= 1;
24617 if ((result & 2) == 0
24618 && ! (mktime_test ((time_t) 1)
24619 && mktime_test ((time_t) (60 * 60))
24620 && mktime_test ((time_t) (60 * 60 * 24))))
24621 result |= 2;
24623 for (j = 1; (result & 4) == 0; j <<= 1)
24625 if (! bigtime_test (j))
24626 result |= 4;
24627 if (INT_MAX / 2 < j)
24628 break;
24630 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24631 result |= 8;
24633 if (! irix_6_4_bug ())
24634 result |= 16;
24635 if (! spring_forward_gap ())
24636 result |= 32;
24637 if (! year_2050_test ())
24638 result |= 64;
24639 return result;
24641 _ACEOF
24642 if ac_fn_c_try_run "$LINENO"; then :
24643 gl_cv_func_working_mktime=yes
24644 else
24645 gl_cv_func_working_mktime=no
24647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24648 conftest.$ac_objext conftest.beam conftest.$ac_ext
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24654 $as_echo "$gl_cv_func_working_mktime" >&6; }
24656 if test $gl_cv_func_working_mktime = no; then
24657 REPLACE_MKTIME=1
24658 else
24659 REPLACE_MKTIME=0
24662 if test $REPLACE_MKTIME = 1; then
24671 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24680 GNULIB_MKTIME=1
24693 if test $ac_cv_func_pipe2 != yes; then
24694 HAVE_PIPE2=0
24702 GNULIB_PIPE2=1
24713 if test $ac_cv_func_pselect = yes; then
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24715 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24716 if test "${gl_cv_sig_pselect+set}" = set; then :
24717 $as_echo_n "(cached) " >&6
24718 else
24719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720 /* end confdefs.h. */
24721 #include <sys/select.h>
24724 main ()
24726 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24727 struct timespec const *restrict,
24728 sigset_t const *restrict) = pselect;
24729 return !p;
24731 return 0;
24733 _ACEOF
24734 if ac_fn_c_try_link "$LINENO"; then :
24735 gl_cv_sig_pselect=yes
24736 else
24737 gl_cv_sig_pselect=no
24739 rm -f core conftest.err conftest.$ac_objext \
24740 conftest$ac_exeext conftest.$ac_ext
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24743 $as_echo "$gl_cv_sig_pselect" >&6; }
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24746 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24747 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24748 $as_echo_n "(cached) " >&6
24749 else
24751 if test "$cross_compiling" = yes; then :
24753 case "$host_os" in
24754 # Guess yes on glibc systems.
24755 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
24756 # If we don't know, assume the worst.
24757 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
24758 esac
24760 else
24761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24762 /* end confdefs.h. */
24764 #include <sys/types.h>
24765 #include <sys/time.h>
24766 #if HAVE_SYS_SELECT_H
24767 # include <sys/select.h>
24768 #endif
24769 #include <unistd.h>
24770 #include <errno.h>
24773 main ()
24776 fd_set set;
24777 dup2(0, 16);
24778 FD_ZERO(&set);
24779 FD_SET(16, &set);
24780 close(16);
24781 struct timespec timeout;
24782 timeout.tv_sec = 0;
24783 timeout.tv_nsec = 5000;
24784 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24787 return 0;
24789 _ACEOF
24790 if ac_fn_c_try_run "$LINENO"; then :
24791 gl_cv_func_pselect_detects_ebadf=yes
24792 else
24793 gl_cv_func_pselect_detects_ebadf=no
24795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24796 conftest.$ac_objext conftest.beam conftest.$ac_ext
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24802 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24803 case $gl_cv_func_pselect_detects_ebadf in
24804 *yes) ;;
24805 *) REPLACE_PSELECT=1 ;;
24806 esac
24809 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
24810 REPLACE_PSELECT=1
24813 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
24822 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
24830 GNULIB_PSELECT=1
24840 LIB_PTHREAD_SIGMASK=
24845 if test "$gl_threads_api" = posix; then
24846 if test $ac_cv_func_pthread_sigmask = yes; then
24848 else
24849 if test -n "$LIBMULTITHREAD"; then
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24851 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24852 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24853 $as_echo_n "(cached) " >&6
24854 else
24855 gl_save_LIBS="$LIBS"
24856 LIBS="$LIBS $LIBMULTITHREAD"
24857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h. */
24859 #include <pthread.h>
24860 #include <signal.h>
24863 main ()
24865 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24867 return 0;
24870 _ACEOF
24871 if ac_fn_c_try_link "$LINENO"; then :
24872 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
24873 else
24874 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
24876 rm -f core conftest.err conftest.$ac_objext \
24877 conftest$ac_exeext conftest.$ac_ext
24878 LIBS="$gl_save_LIBS"
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24882 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24883 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24884 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
24885 else
24886 HAVE_PTHREAD_SIGMASK=0
24888 else
24889 HAVE_PTHREAD_SIGMASK=0
24892 else
24893 if test $ac_cv_func_pthread_sigmask = yes; then
24894 REPLACE_PTHREAD_SIGMASK=1
24895 else
24896 HAVE_PTHREAD_SIGMASK=0
24903 if test $HAVE_PTHREAD_SIGMASK = 1; then
24906 if test -z "$LIB_PTHREAD_SIGMASK"; then
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24908 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24909 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24910 $as_echo_n "(cached) " >&6
24911 else
24913 if test "$cross_compiling" = yes; then :
24915 case "$host_os" in
24916 freebsd* | hpux* | solaris | solaris2.[2-9]*)
24917 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
24919 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
24920 esac
24922 else
24923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924 /* end confdefs.h. */
24926 #include <pthread.h>
24927 #include <signal.h>
24928 #include <stddef.h>
24929 int main ()
24931 sigset_t set;
24932 sigemptyset (&set);
24933 return pthread_sigmask (1729, &set, NULL) != 0;
24935 _ACEOF
24936 if ac_fn_c_try_run "$LINENO"; then :
24937 gl_cv_func_pthread_sigmask_in_libc_works=no
24938 else
24939 gl_cv_func_pthread_sigmask_in_libc_works=yes
24941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24942 conftest.$ac_objext conftest.beam conftest.$ac_ext
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24948 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24949 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24950 *no)
24951 REPLACE_PTHREAD_SIGMASK=1
24953 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24956 esac
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24960 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24961 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24965 gl_save_LIBS="$LIBS"
24966 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
24967 if test "$cross_compiling" = yes; then :
24968 case "$host_os" in
24969 cygwin*)
24970 gl_cv_func_pthread_sigmask_return_works="guessing no";;
24972 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
24973 esac
24975 else
24976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h. */
24979 #include <pthread.h>
24980 #include <signal.h>
24981 #include <stddef.h>
24982 int main ()
24984 sigset_t set;
24985 sigemptyset (&set);
24986 if (pthread_sigmask (1729, &set, NULL) == -1)
24987 return 1;
24988 return 0;
24990 _ACEOF
24991 if ac_fn_c_try_run "$LINENO"; then :
24992 gl_cv_func_pthread_sigmask_return_works=yes
24993 else
24994 gl_cv_func_pthread_sigmask_return_works=no
24996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24997 conftest.$ac_objext conftest.beam conftest.$ac_ext
25000 LIBS="$gl_save_LIBS"
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
25004 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
25005 case "$gl_cv_func_pthread_sigmask_return_works" in
25006 *no)
25007 REPLACE_PTHREAD_SIGMASK=1
25009 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
25012 esac
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
25015 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
25016 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
25017 $as_echo_n "(cached) " >&6
25018 else
25020 case "$host_os" in
25021 irix*)
25022 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
25024 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
25025 esac
25026 gl_save_LIBS="$LIBS"
25027 LIBS="$LIBS $LIBMULTITHREAD"
25028 if test "$cross_compiling" = yes; then :
25030 else
25031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25032 /* end confdefs.h. */
25034 #include <pthread.h>
25035 #include <signal.h>
25036 #include <stdio.h>
25037 #include <stdlib.h>
25038 #include <unistd.h>
25039 static volatile int sigint_occurred;
25040 static void
25041 sigint_handler (int sig)
25043 sigint_occurred++;
25045 int main ()
25047 sigset_t set;
25048 int pid = getpid ();
25049 char command[80];
25050 signal (SIGINT, sigint_handler);
25051 sigemptyset (&set);
25052 sigaddset (&set, SIGINT);
25053 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
25054 return 1;
25055 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
25056 if (!(system (command) == 0))
25057 return 2;
25058 sleep (2);
25059 if (!(sigint_occurred == 0))
25060 return 3;
25061 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
25062 return 4;
25063 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
25064 return 5;
25065 return 0;
25067 _ACEOF
25068 if ac_fn_c_try_run "$LINENO"; then :
25070 else
25071 gl_cv_func_pthread_sigmask_unblock_works=no
25073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25074 conftest.$ac_objext conftest.beam conftest.$ac_ext
25077 LIBS="$gl_save_LIBS"
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
25081 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
25082 case "$gl_cv_func_pthread_sigmask_unblock_works" in
25083 *no)
25084 REPLACE_PTHREAD_SIGMASK=1
25086 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
25089 esac
25092 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
25101 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
25104 if test $HAVE_PTHREAD_SIGMASK = 1; then
25106 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
25116 GNULIB_PTHREAD_SIGMASK=1
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
25125 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
25126 if test "${gl_cv_func_svid_putenv+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25128 else
25129 if test "$cross_compiling" = yes; then :
25130 case "$host_os" in
25131 # Guess yes on glibc systems.
25132 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
25133 # If we don't know, assume the worst.
25134 *) gl_cv_func_svid_putenv="guessing no" ;;
25135 esac
25137 else
25138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25139 /* end confdefs.h. */
25140 $ac_includes_default
25142 main ()
25145 /* Put it in env. */
25146 if (putenv ("CONFTEST_putenv=val"))
25147 return 1;
25149 /* Try to remove it. */
25150 if (putenv ("CONFTEST_putenv"))
25151 return 2;
25153 /* Make sure it was deleted. */
25154 if (getenv ("CONFTEST_putenv") != 0)
25155 return 3;
25157 return 0;
25160 return 0;
25162 _ACEOF
25163 if ac_fn_c_try_run "$LINENO"; then :
25164 gl_cv_func_svid_putenv=yes
25165 else
25166 gl_cv_func_svid_putenv=no
25168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25169 conftest.$ac_objext conftest.beam conftest.$ac_ext
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25175 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25176 case "$gl_cv_func_svid_putenv" in
25177 *yes) ;;
25179 REPLACE_PUTENV=1
25181 esac
25183 if test $REPLACE_PUTENV = 1; then
25192 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
25195 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25196 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
25197 ac_have_decl=1
25198 else
25199 ac_have_decl=0
25202 cat >>confdefs.h <<_ACEOF
25203 #define HAVE_DECL__PUTENV $ac_have_decl
25204 _ACEOF
25213 GNULIB_PUTENV=1
25220 # Check whether --enable-acl was given.
25221 if test "${enable_acl+set}" = set; then :
25222 enableval=$enable_acl;
25223 else
25224 enable_acl=auto
25228 LIB_ACL=
25229 use_acl=0
25230 if test "x$enable_acl" != "xno"; then
25231 for ac_header in sys/acl.h
25232 do :
25233 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25234 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
25235 cat >>confdefs.h <<_ACEOF
25236 #define HAVE_SYS_ACL_H 1
25237 _ACEOF
25241 done
25243 if test $ac_cv_header_sys_acl_h = yes; then
25244 ac_save_LIBS=$LIBS
25246 if test $use_acl = 0; then
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25248 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25249 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25250 $as_echo_n "(cached) " >&6
25251 else
25252 ac_func_search_save_LIBS=$LIBS
25253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25254 /* end confdefs.h. */
25256 /* Override any GCC internal prototype to avoid an error.
25257 Use char because int might match the return type of a GCC
25258 builtin and then its argument prototype would still apply. */
25259 #ifdef __cplusplus
25260 extern "C"
25261 #endif
25262 char acl_get_file ();
25264 main ()
25266 return acl_get_file ();
25268 return 0;
25270 _ACEOF
25271 for ac_lib in '' acl pacl; do
25272 if test -z "$ac_lib"; then
25273 ac_res="none required"
25274 else
25275 ac_res=-l$ac_lib
25276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25278 if ac_fn_c_try_link "$LINENO"; then :
25279 ac_cv_search_acl_get_file=$ac_res
25281 rm -f core conftest.err conftest.$ac_objext \
25282 conftest$ac_exeext
25283 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25284 break
25286 done
25287 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25289 else
25290 ac_cv_search_acl_get_file=no
25292 rm conftest.$ac_ext
25293 LIBS=$ac_func_search_save_LIBS
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25296 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25297 ac_res=$ac_cv_search_acl_get_file
25298 if test "$ac_res" != no; then :
25299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25300 if test "$ac_cv_search_acl_get_file" != "none required"; then
25301 LIB_ACL=$ac_cv_search_acl_get_file
25303 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25304 acl_free acl_from_mode acl_from_text \
25305 acl_delete_def_file acl_extended_file \
25306 acl_delete_fd_np acl_delete_file_np \
25307 acl_copy_ext_native acl_create_entry_np \
25308 acl_to_short_text acl_free_text
25309 do :
25310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25311 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25312 eval as_val=\$$as_ac_var
25313 if test "x$as_val" = x""yes; then :
25314 cat >>confdefs.h <<_ACEOF
25315 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25316 _ACEOF
25319 done
25321 # If the acl_get_file bug is detected, don't enable the ACL support.
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25324 $as_echo_n "checking for working acl_get_file... " >&6; }
25325 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25326 $as_echo_n "(cached) " >&6
25327 else
25328 if test "$cross_compiling" = yes; then :
25329 gl_cv_func_working_acl_get_file=cross-compiling
25330 else
25331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25332 /* end confdefs.h. */
25333 #include <sys/types.h>
25334 #include <sys/acl.h>
25335 #include <errno.h>
25338 main ()
25340 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25341 return 1;
25342 return 0;
25345 return 0;
25347 _ACEOF
25348 if ac_fn_c_try_run "$LINENO"; then :
25349 gl_cv_func_working_acl_get_file=yes
25350 else
25351 gl_cv_func_working_acl_get_file=no
25353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25354 conftest.$ac_objext conftest.beam conftest.$ac_ext
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25359 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25361 if test $gl_cv_func_working_acl_get_file = yes; then :
25362 use_acl=1
25365 if test $use_acl = 1; then
25366 for ac_header in acl/libacl.h
25367 do :
25368 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25369 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
25370 cat >>confdefs.h <<_ACEOF
25371 #define HAVE_ACL_LIBACL_H 1
25372 _ACEOF
25376 done
25386 for ac_func in acl_entries
25387 do :
25388 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25389 if test "x$ac_cv_func_acl_entries" = x""yes; then :
25390 cat >>confdefs.h <<_ACEOF
25391 #define HAVE_ACL_ENTRIES 1
25392 _ACEOF
25394 else
25396 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25399 done
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25403 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25404 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25405 $as_echo_n "(cached) " >&6
25406 else
25407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25408 /* end confdefs.h. */
25409 #include <sys/types.h>
25410 #include <sys/acl.h>
25411 int type = ACL_FIRST_ENTRY;
25413 main ()
25417 return 0;
25419 _ACEOF
25420 if ac_fn_c_try_compile "$LINENO"; then :
25421 gl_cv_acl_ACL_FIRST_ENTRY=yes
25422 else
25423 gl_cv_acl_ACL_FIRST_ENTRY=no
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25428 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25429 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25431 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25435 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25436 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25437 $as_echo_n "(cached) " >&6
25438 else
25439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25440 /* end confdefs.h. */
25441 #include <sys/types.h>
25442 #include <sys/acl.h>
25443 int type = ACL_TYPE_EXTENDED;
25445 main ()
25449 return 0;
25451 _ACEOF
25452 if ac_fn_c_try_compile "$LINENO"; then :
25453 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25454 else
25455 gl_cv_acl_ACL_TYPE_EXTENDED=no
25457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25460 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25461 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25463 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25466 else
25467 LIB_ACL=
25474 if test $use_acl = 0; then
25475 for ac_func in facl
25476 do :
25477 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25478 if test "x$ac_cv_func_facl" = x""yes; then :
25479 cat >>confdefs.h <<_ACEOF
25480 #define HAVE_FACL 1
25481 _ACEOF
25484 done
25486 if test $ac_cv_func_facl = yes; then
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25488 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25489 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25491 else
25492 ac_func_search_save_LIBS=$LIBS
25493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25494 /* end confdefs.h. */
25496 /* Override any GCC internal prototype to avoid an error.
25497 Use char because int might match the return type of a GCC
25498 builtin and then its argument prototype would still apply. */
25499 #ifdef __cplusplus
25500 extern "C"
25501 #endif
25502 char acl_trivial ();
25504 main ()
25506 return acl_trivial ();
25508 return 0;
25510 _ACEOF
25511 for ac_lib in '' sec; do
25512 if test -z "$ac_lib"; then
25513 ac_res="none required"
25514 else
25515 ac_res=-l$ac_lib
25516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25518 if ac_fn_c_try_link "$LINENO"; then :
25519 ac_cv_search_acl_trivial=$ac_res
25521 rm -f core conftest.err conftest.$ac_objext \
25522 conftest$ac_exeext
25523 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25524 break
25526 done
25527 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25529 else
25530 ac_cv_search_acl_trivial=no
25532 rm conftest.$ac_ext
25533 LIBS=$ac_func_search_save_LIBS
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25536 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25537 ac_res=$ac_cv_search_acl_trivial
25538 if test "$ac_res" != no; then :
25539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25540 if test "$ac_cv_search_acl_trivial" != "none required"; then
25541 LIB_ACL=$ac_cv_search_acl_trivial
25546 for ac_func in acl_trivial
25547 do :
25548 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25549 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25550 cat >>confdefs.h <<_ACEOF
25551 #define HAVE_ACL_TRIVIAL 1
25552 _ACEOF
25555 done
25557 use_acl=1
25561 if test $use_acl = 0; then
25562 for ac_func in getacl
25563 do :
25564 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25565 if test "x$ac_cv_func_getacl" = x""yes; then :
25566 cat >>confdefs.h <<_ACEOF
25567 #define HAVE_GETACL 1
25568 _ACEOF
25571 done
25573 if test $ac_cv_func_getacl = yes; then
25574 use_acl=1
25576 for ac_header in aclv.h
25577 do :
25578 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25580 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25581 cat >>confdefs.h <<_ACEOF
25582 #define HAVE_ACLV_H 1
25583 _ACEOF
25587 done
25591 if test $use_acl = 0; then
25592 for ac_func in aclx_get
25593 do :
25594 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25595 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25596 cat >>confdefs.h <<_ACEOF
25597 #define HAVE_ACLX_GET 1
25598 _ACEOF
25601 done
25603 if test $ac_cv_func_aclx_get = yes; then
25604 use_acl=1
25608 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25609 for ac_func in statacl
25610 do :
25611 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25612 if test "x$ac_cv_func_statacl" = x""yes; then :
25613 cat >>confdefs.h <<_ACEOF
25614 #define HAVE_STATACL 1
25615 _ACEOF
25618 done
25620 if test $ac_cv_func_statacl = yes; then
25621 use_acl=1
25625 if test $use_acl = 0; then
25626 for ac_func in aclsort
25627 do :
25628 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25629 if test "x$ac_cv_func_aclsort" = x""yes; then :
25630 cat >>confdefs.h <<_ACEOF
25631 #define HAVE_ACLSORT 1
25632 _ACEOF
25635 done
25637 if test $ac_cv_func_aclsort = yes; then
25638 use_acl=1
25642 LIBS=$ac_save_LIBS
25644 if test "x$enable_acl$use_acl" = "xyes0"; then
25645 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25646 elif test "x$enable_acl$use_acl" = "xauto0"; then
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25648 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25650 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25655 cat >>confdefs.h <<_ACEOF
25656 #define USE_ACL $use_acl
25657 _ACEOF
25659 USE_ACL=$use_acl
25665 if test $ac_cv_func_readlink = no; then
25666 HAVE_READLINK=0
25667 else
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25669 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25670 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25671 $as_echo_n "(cached) " >&6
25672 else
25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25674 /* end confdefs.h. */
25675 #include <unistd.h>
25676 /* Cause compilation failure if original declaration has wrong type. */
25677 ssize_t readlink (const char *, char *, size_t);
25679 main ()
25683 return 0;
25685 _ACEOF
25686 if ac_fn_c_try_compile "$LINENO"; then :
25687 gl_cv_decl_readlink_works=yes
25688 else
25689 gl_cv_decl_readlink_works=no
25691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25694 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25696 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25697 if test "${gl_cv_func_readlink_works+set}" = set; then :
25698 $as_echo_n "(cached) " >&6
25699 else
25700 # We have readlink, so assume ln -s works.
25701 ln -s conftest.no-such conftest.link
25702 ln -s conftest.link conftest.lnk2
25703 if test "$cross_compiling" = yes; then :
25704 case "$host_os" in
25705 # Guess yes on glibc systems.
25706 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25707 # If we don't know, assume the worst.
25708 *) gl_cv_func_readlink_works="guessing no" ;;
25709 esac
25711 else
25712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25713 /* end confdefs.h. */
25714 #include <unistd.h>
25717 main ()
25719 char buf[20];
25720 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25722 return 0;
25724 _ACEOF
25725 if ac_fn_c_try_run "$LINENO"; then :
25726 gl_cv_func_readlink_works=yes
25727 else
25728 gl_cv_func_readlink_works=no
25730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25731 conftest.$ac_objext conftest.beam conftest.$ac_ext
25734 rm -f conftest.link conftest.lnk2
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25737 $as_echo "$gl_cv_func_readlink_works" >&6; }
25738 case "$gl_cv_func_readlink_works" in
25739 *yes)
25740 if test "$gl_cv_decl_readlink_works" != yes; then
25741 REPLACE_READLINK=1
25746 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25748 REPLACE_READLINK=1
25750 esac
25753 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25762 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25773 GNULIB_READLINK=1
25783 if test $ac_cv_func_readlinkat = no; then
25784 HAVE_READLINKAT=0
25787 if test $HAVE_READLINKAT = 0; then
25796 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
25804 GNULIB_READLINKAT=1
25811 for ac_func in sig2str
25812 do :
25813 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
25814 if test "x$ac_cv_func_sig2str" = x""yes; then :
25815 cat >>confdefs.h <<_ACEOF
25816 #define HAVE_SIG2STR 1
25817 _ACEOF
25820 done
25823 if test $ac_cv_func_sig2str = no; then
25832 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
25849 if test $gl_cv_have_include_next = yes; then
25850 gl_cv_next_signal_h='<'signal.h'>'
25851 else
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25853 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25854 if test "${gl_cv_next_signal_h+set}" = set; then :
25855 $as_echo_n "(cached) " >&6
25856 else
25858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25859 /* end confdefs.h. */
25860 #include <signal.h>
25862 _ACEOF
25863 case "$host_os" in
25864 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25865 *) gl_absname_cpp="$ac_cpp" ;;
25866 esac
25868 case "$host_os" in
25869 mingw*)
25870 gl_dirsep_regex='[/\\]'
25873 gl_dirsep_regex='\/'
25875 esac
25876 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25878 gl_header_literal_regex=`echo 'signal.h' \
25879 | sed -e "$gl_make_literal_regex_sed"`
25880 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25881 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25882 s|^/[^/]|//&|
25886 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25887 sed -n "$gl_absolute_header_sed"`'"'
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25892 $as_echo "$gl_cv_next_signal_h" >&6; }
25894 NEXT_SIGNAL_H=$gl_cv_next_signal_h
25896 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25897 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25898 gl_next_as_first_directive='<'signal.h'>'
25899 else
25900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25901 gl_next_as_first_directive=$gl_cv_next_signal_h
25903 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
25909 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25910 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25911 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25912 #include <signal.h>
25915 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
25917 else
25918 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
25927 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25928 #include <signal.h>
25931 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
25933 else
25934 HAVE_SIGHANDLER_T=0
25940 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25941 /* <sys/types.h> is not needed according to POSIX, but the
25942 <sys/socket.h> in i386-unknown-freebsd4.10 and
25943 powerpc-apple-darwin5.5 required it. */
25944 #include <sys/types.h>
25945 #if HAVE_SYS_SOCKET_H
25946 # include <sys/socket.h>
25947 #elif HAVE_WS2TCPIP_H
25948 # include <ws2tcpip.h>
25949 #endif
25952 if test "x$ac_cv_type_socklen_t" = x""yes; then :
25954 else
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25956 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25957 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25958 $as_echo_n "(cached) " >&6
25959 else
25960 # Systems have either "struct sockaddr *" or
25961 # "void *" as the second argument to getpeername
25962 gl_cv_socklen_t_equiv=
25963 for arg2 in "struct sockaddr" void; do
25964 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h. */
25967 #include <sys/types.h>
25968 #include <sys/socket.h>
25970 int getpeername (int, $arg2 *, $t *);
25972 main ()
25974 $t len;
25975 getpeername (0, 0, &len);
25977 return 0;
25979 _ACEOF
25980 if ac_fn_c_try_compile "$LINENO"; then :
25981 gl_cv_socklen_t_equiv="$t"
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25984 test "$gl_cv_socklen_t_equiv" != "" && break
25985 done
25986 test "$gl_cv_socklen_t_equiv" != "" && break
25987 done
25991 if test "$gl_cv_socklen_t_equiv" = ""; then
25992 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25995 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25997 cat >>confdefs.h <<_ACEOF
25998 #define socklen_t $gl_cv_socklen_t_equiv
25999 _ACEOF
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
26005 $as_echo_n "checking for ssize_t... " >&6; }
26006 if test "${gt_cv_ssize_t+set}" = set; then :
26007 $as_echo_n "(cached) " >&6
26008 else
26009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26010 /* end confdefs.h. */
26011 #include <sys/types.h>
26013 main ()
26015 int x = sizeof (ssize_t *) + sizeof (ssize_t);
26016 return !x;
26018 return 0;
26020 _ACEOF
26021 if ac_fn_c_try_compile "$LINENO"; then :
26022 gt_cv_ssize_t=yes
26023 else
26024 gt_cv_ssize_t=no
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
26029 $as_echo "$gt_cv_ssize_t" >&6; }
26030 if test $gt_cv_ssize_t = no; then
26032 $as_echo "#define ssize_t int" >>confdefs.h
26040 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>
26041 #include <sys/stat.h>
26043 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
26045 cat >>confdefs.h <<_ACEOF
26046 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
26047 _ACEOF
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
26050 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
26051 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26053 else
26054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26055 /* end confdefs.h. */
26057 #include <sys/types.h>
26058 #include <sys/stat.h>
26059 #if HAVE_SYS_TIME_H
26060 # include <sys/time.h>
26061 #endif
26062 #include <time.h>
26063 struct timespec ts;
26064 struct stat st;
26067 main ()
26070 st.st_atim = ts;
26073 return 0;
26075 _ACEOF
26076 if ac_fn_c_try_compile "$LINENO"; then :
26077 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
26078 else
26079 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
26081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
26084 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
26085 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
26087 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
26090 else
26091 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>
26092 #include <sys/stat.h>
26094 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
26096 cat >>confdefs.h <<_ACEOF
26097 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
26098 _ACEOF
26101 else
26102 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
26103 #include <sys/stat.h>
26105 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
26107 cat >>confdefs.h <<_ACEOF
26108 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
26109 _ACEOF
26112 else
26113 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>
26114 #include <sys/stat.h>
26116 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
26118 cat >>confdefs.h <<_ACEOF
26119 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
26120 _ACEOF
26135 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>
26136 #include <sys/stat.h>
26138 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
26140 cat >>confdefs.h <<_ACEOF
26141 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
26142 _ACEOF
26145 else
26146 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
26147 #include <sys/stat.h>
26149 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
26151 cat >>confdefs.h <<_ACEOF
26152 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
26153 _ACEOF
26156 else
26157 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>
26158 #include <sys/stat.h>
26160 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
26162 cat >>confdefs.h <<_ACEOF
26163 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
26164 _ACEOF
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26176 $as_echo_n "checking for working stdalign.h... " >&6; }
26177 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26178 $as_echo_n "(cached) " >&6
26179 else
26180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26181 /* end confdefs.h. */
26182 #include <stdalign.h>
26183 #include <stddef.h>
26185 /* Test that alignof yields a result consistent with offsetof.
26186 This catches GCC bug 52023
26187 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26188 #ifdef __cplusplus
26189 template <class t> struct alignof_helper { char a; t b; };
26190 # define ao(type) offsetof (alignof_helper<type>, b)
26191 #else
26192 # define ao(type) offsetof (struct { char a; type b; }, b)
26193 #endif
26194 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26195 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26196 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26198 /* Test _Alignas only on platforms where gnulib can help. */
26199 #if \
26200 ((defined __cplusplus && 201103 <= __cplusplus) \
26201 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26202 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26203 struct alignas_test { char c; char alignas (8) alignas_8; };
26204 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26205 ? 1 : -1];
26206 #endif
26209 main ()
26213 return 0;
26215 _ACEOF
26216 if ac_fn_c_try_compile "$LINENO"; then :
26217 gl_cv_header_working_stdalign_h=yes
26218 else
26219 gl_cv_header_working_stdalign_h=no
26221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26224 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26226 if test $gl_cv_header_working_stdalign_h = yes; then
26227 STDALIGN_H=''
26228 else
26229 STDALIGN_H='stdalign.h'
26233 if test -n "$STDALIGN_H"; then
26234 GL_GENERATE_STDALIGN_H_TRUE=
26235 GL_GENERATE_STDALIGN_H_FALSE='#'
26236 else
26237 GL_GENERATE_STDALIGN_H_TRUE='#'
26238 GL_GENERATE_STDALIGN_H_FALSE=
26243 STDARG_H=''
26244 NEXT_STDARG_H='<stdarg.h>'
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26246 $as_echo_n "checking for va_copy... " >&6; }
26247 if test "${gl_cv_func_va_copy+set}" = set; then :
26248 $as_echo_n "(cached) " >&6
26249 else
26251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26252 /* end confdefs.h. */
26253 #include <stdarg.h>
26255 main ()
26258 #ifndef va_copy
26259 void (*func) (va_list, va_list) = va_copy;
26260 #endif
26263 return 0;
26265 _ACEOF
26266 if ac_fn_c_try_compile "$LINENO"; then :
26267 gl_cv_func_va_copy=yes
26268 else
26269 gl_cv_func_va_copy=no
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26275 $as_echo "$gl_cv_func_va_copy" >&6; }
26276 if test $gl_cv_func_va_copy = no; then
26277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278 /* end confdefs.h. */
26279 #if defined _AIX && !defined __GNUC__
26280 AIX vaccine
26281 #endif
26283 _ACEOF
26284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26285 $EGREP "vaccine" >/dev/null 2>&1; then :
26286 gl_aixcc=yes
26287 else
26288 gl_aixcc=no
26290 rm -f conftest*
26292 if test $gl_aixcc = yes; then
26293 STDARG_H=stdarg.h
26302 if test $gl_cv_have_include_next = yes; then
26303 gl_cv_next_stdarg_h='<'stdarg.h'>'
26304 else
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26306 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26307 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26308 $as_echo_n "(cached) " >&6
26309 else
26311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h. */
26313 #include <stdarg.h>
26315 _ACEOF
26316 case "$host_os" in
26317 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26318 *) gl_absname_cpp="$ac_cpp" ;;
26319 esac
26321 case "$host_os" in
26322 mingw*)
26323 gl_dirsep_regex='[/\\]'
26326 gl_dirsep_regex='\/'
26328 esac
26329 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26331 gl_header_literal_regex=`echo 'stdarg.h' \
26332 | sed -e "$gl_make_literal_regex_sed"`
26333 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26334 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26335 s|^/[^/]|//&|
26339 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26340 sed -n "$gl_absolute_header_sed"`'"'
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26345 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26347 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26349 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26350 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26351 gl_next_as_first_directive='<'stdarg.h'>'
26352 else
26353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26354 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26356 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26361 if test "$gl_cv_next_stdarg_h" = '""'; then
26362 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26363 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26365 else
26367 saved_as_echo_n="$as_echo_n"
26368 as_echo_n=':'
26369 if test "${gl_cv_func___va_copy+set}" = set; then :
26370 $as_echo_n "(cached) " >&6
26371 else
26373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26374 /* end confdefs.h. */
26375 #include <stdarg.h>
26377 main ()
26380 #ifndef __va_copy
26381 error, bail out
26382 #endif
26385 return 0;
26387 _ACEOF
26388 if ac_fn_c_try_compile "$LINENO"; then :
26389 gl_cv_func___va_copy=yes
26390 else
26391 gl_cv_func___va_copy=no
26393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26396 as_echo_n="$saved_as_echo_n"
26398 if test $gl_cv_func___va_copy = yes; then
26400 $as_echo "#define va_copy __va_copy" >>confdefs.h
26402 else
26405 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26411 if test -n "$STDARG_H"; then
26412 GL_GENERATE_STDARG_H_TRUE=
26413 GL_GENERATE_STDARG_H_FALSE='#'
26414 else
26415 GL_GENERATE_STDARG_H_TRUE='#'
26416 GL_GENERATE_STDARG_H_FALSE=
26424 # Define two additional variables used in the Makefile substitution.
26426 if test "$ac_cv_header_stdbool_h" = yes; then
26427 STDBOOL_H=''
26428 else
26429 STDBOOL_H='stdbool.h'
26432 if test -n "$STDBOOL_H"; then
26433 GL_GENERATE_STDBOOL_H_TRUE=
26434 GL_GENERATE_STDBOOL_H_FALSE='#'
26435 else
26436 GL_GENERATE_STDBOOL_H_TRUE='#'
26437 GL_GENERATE_STDBOOL_H_FALSE=
26441 if test "$ac_cv_type__Bool" = yes; then
26442 HAVE__BOOL=1
26443 else
26444 HAVE__BOOL=0
26451 STDDEF_H=
26452 if test $gt_cv_c_wchar_t = no; then
26453 HAVE_WCHAR_T=0
26454 STDDEF_H=stddef.h
26456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26457 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26458 if test "${gl_cv_decl_null_works+set}" = set; then :
26459 $as_echo_n "(cached) " >&6
26460 else
26461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462 /* end confdefs.h. */
26463 #include <stddef.h>
26464 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26467 main ()
26471 return 0;
26473 _ACEOF
26474 if ac_fn_c_try_compile "$LINENO"; then :
26475 gl_cv_decl_null_works=yes
26476 else
26477 gl_cv_decl_null_works=no
26479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26482 $as_echo "$gl_cv_decl_null_works" >&6; }
26483 if test $gl_cv_decl_null_works = no; then
26484 REPLACE_NULL=1
26485 STDDEF_H=stddef.h
26488 if test -n "$STDDEF_H"; then
26489 GL_GENERATE_STDDEF_H_TRUE=
26490 GL_GENERATE_STDDEF_H_FALSE='#'
26491 else
26492 GL_GENERATE_STDDEF_H_TRUE='#'
26493 GL_GENERATE_STDDEF_H_FALSE=
26496 if test -n "$STDDEF_H"; then
26505 if test $gl_cv_have_include_next = yes; then
26506 gl_cv_next_stddef_h='<'stddef.h'>'
26507 else
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26509 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26510 if test "${gl_cv_next_stddef_h+set}" = set; then :
26511 $as_echo_n "(cached) " >&6
26512 else
26514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26515 /* end confdefs.h. */
26516 #include <stddef.h>
26518 _ACEOF
26519 case "$host_os" in
26520 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26521 *) gl_absname_cpp="$ac_cpp" ;;
26522 esac
26524 case "$host_os" in
26525 mingw*)
26526 gl_dirsep_regex='[/\\]'
26529 gl_dirsep_regex='\/'
26531 esac
26532 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26534 gl_header_literal_regex=`echo 'stddef.h' \
26535 | sed -e "$gl_make_literal_regex_sed"`
26536 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26537 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26538 s|^/[^/]|//&|
26542 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26543 sed -n "$gl_absolute_header_sed"`'"'
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26548 $as_echo "$gl_cv_next_stddef_h" >&6; }
26550 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26552 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26553 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26554 gl_next_as_first_directive='<'stddef.h'>'
26555 else
26556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26557 gl_next_as_first_directive=$gl_cv_next_stddef_h
26559 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26577 if test $gl_cv_have_include_next = yes; then
26578 gl_cv_next_stdio_h='<'stdio.h'>'
26579 else
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26581 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26582 if test "${gl_cv_next_stdio_h+set}" = set; then :
26583 $as_echo_n "(cached) " >&6
26584 else
26586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26587 /* end confdefs.h. */
26588 #include <stdio.h>
26590 _ACEOF
26591 case "$host_os" in
26592 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26593 *) gl_absname_cpp="$ac_cpp" ;;
26594 esac
26596 case "$host_os" in
26597 mingw*)
26598 gl_dirsep_regex='[/\\]'
26601 gl_dirsep_regex='\/'
26603 esac
26604 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26606 gl_header_literal_regex=`echo 'stdio.h' \
26607 | sed -e "$gl_make_literal_regex_sed"`
26608 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26609 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26610 s|^/[^/]|//&|
26614 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26615 sed -n "$gl_absolute_header_sed"`'"'
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26620 $as_echo "$gl_cv_next_stdio_h" >&6; }
26622 NEXT_STDIO_H=$gl_cv_next_stdio_h
26624 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26625 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26626 gl_next_as_first_directive='<'stdio.h'>'
26627 else
26628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26629 gl_next_as_first_directive=$gl_cv_next_stdio_h
26631 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26637 GNULIB_FSCANF=1
26640 cat >>confdefs.h <<_ACEOF
26641 #define GNULIB_FSCANF 1
26642 _ACEOF
26645 GNULIB_SCANF=1
26648 cat >>confdefs.h <<_ACEOF
26649 #define GNULIB_SCANF 1
26650 _ACEOF
26653 GNULIB_FGETC=1
26654 GNULIB_GETC=1
26655 GNULIB_GETCHAR=1
26656 GNULIB_FGETS=1
26657 GNULIB_FREAD=1
26660 GNULIB_FPRINTF=1
26661 GNULIB_PRINTF=1
26662 GNULIB_VFPRINTF=1
26663 GNULIB_VPRINTF=1
26664 GNULIB_FPUTC=1
26665 GNULIB_PUTC=1
26666 GNULIB_PUTCHAR=1
26667 GNULIB_FPUTS=1
26668 GNULIB_PUTS=1
26669 GNULIB_FWRITE=1
26685 if test $gl_cv_have_include_next = yes; then
26686 gl_cv_next_stdlib_h='<'stdlib.h'>'
26687 else
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26689 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26690 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26691 $as_echo_n "(cached) " >&6
26692 else
26694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h. */
26696 #include <stdlib.h>
26698 _ACEOF
26699 case "$host_os" in
26700 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26701 *) gl_absname_cpp="$ac_cpp" ;;
26702 esac
26704 case "$host_os" in
26705 mingw*)
26706 gl_dirsep_regex='[/\\]'
26709 gl_dirsep_regex='\/'
26711 esac
26712 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26714 gl_header_literal_regex=`echo 'stdlib.h' \
26715 | sed -e "$gl_make_literal_regex_sed"`
26716 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26717 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26718 s|^/[^/]|//&|
26722 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26723 sed -n "$gl_absolute_header_sed"`'"'
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26728 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26730 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26732 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26733 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26734 gl_next_as_first_directive='<'stdlib.h'>'
26735 else
26736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26737 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26739 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26749 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26757 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26769 if test "$ac_cv_have_decl_strtoimax" != yes; then
26770 HAVE_DECL_STRTOIMAX=0
26773 if test $ac_cv_func_strtoimax = yes; then
26774 HAVE_STRTOIMAX=1
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26776 $as_echo_n "checking whether strtoimax works... " >&6; }
26777 if test "${gl_cv_func_strtoimax+set}" = set; then :
26778 $as_echo_n "(cached) " >&6
26779 else
26780 if test "$cross_compiling" = yes; then :
26781 case "$host_os" in
26782 # Guess no on AIX 5.
26783 aix5*) gl_cv_func_strtoimax="guessing no" ;;
26784 # Guess yes otherwise.
26785 *) gl_cv_func_strtoimax="guessing yes" ;;
26786 esac
26788 else
26789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26790 /* end confdefs.h. */
26792 #include <errno.h>
26793 #include <string.h>
26794 #include <inttypes.h>
26795 int main ()
26797 if (sizeof (intmax_t) > sizeof (int))
26799 const char *s = "4294967295";
26800 char *p;
26801 intmax_t res;
26802 errno = 0;
26803 res = strtoimax (s, &p, 10);
26804 if (p != s + strlen (s))
26805 return 1;
26806 if (errno != 0)
26807 return 2;
26808 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26809 return 3;
26811 else
26813 const char *s = "2147483647";
26814 char *p;
26815 intmax_t res;
26816 errno = 0;
26817 res = strtoimax (s, &p, 10);
26818 if (p != s + strlen (s))
26819 return 1;
26820 if (errno != 0)
26821 return 2;
26822 if (res != 2147483647)
26823 return 3;
26825 return 0;
26828 _ACEOF
26829 if ac_fn_c_try_run "$LINENO"; then :
26830 gl_cv_func_strtoimax=yes
26831 else
26832 gl_cv_func_strtoimax=no
26834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26835 conftest.$ac_objext conftest.beam conftest.$ac_ext
26840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26841 $as_echo "$gl_cv_func_strtoimax" >&6; }
26842 case "$gl_cv_func_strtoimax" in
26843 *no) REPLACE_STRTOIMAX=1 ;;
26844 esac
26845 else
26846 HAVE_STRTOIMAX=0
26849 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26858 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
26861 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26862 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
26863 ac_have_decl=1
26864 else
26865 ac_have_decl=0
26868 cat >>confdefs.h <<_ACEOF
26869 #define HAVE_DECL_STRTOLL $ac_have_decl
26870 _ACEOF
26880 GNULIB_STRTOIMAX=1
26890 if test "$ac_cv_have_decl_strtoumax" != yes; then
26891 HAVE_DECL_STRTOUMAX=0
26894 if test $ac_cv_func_strtoumax = no; then
26903 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
26906 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26907 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
26908 ac_have_decl=1
26909 else
26910 ac_have_decl=0
26913 cat >>confdefs.h <<_ACEOF
26914 #define HAVE_DECL_STRTOULL $ac_have_decl
26915 _ACEOF
26925 GNULIB_STRTOUMAX=1
26933 if test $ac_cv_func_symlink = no; then
26934 HAVE_SYMLINK=0
26935 else
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26937 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26938 if test "${gl_cv_func_symlink_works+set}" = set; then :
26939 $as_echo_n "(cached) " >&6
26940 else
26941 if test "$cross_compiling" = yes; then :
26942 case "$host_os" in
26943 # Guess yes on glibc systems.
26944 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
26945 # If we don't know, assume the worst.
26946 *) gl_cv_func_symlink_works="guessing no" ;;
26947 esac
26949 else
26950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26951 /* end confdefs.h. */
26952 #include <unistd.h>
26955 main ()
26957 int result = 0;
26958 if (!symlink ("a", "conftest.link/"))
26959 result |= 1;
26960 if (symlink ("conftest.f", "conftest.lnk2"))
26961 result |= 2;
26962 else if (!symlink ("a", "conftest.lnk2/"))
26963 result |= 4;
26964 return result;
26967 return 0;
26969 _ACEOF
26970 if ac_fn_c_try_run "$LINENO"; then :
26971 gl_cv_func_symlink_works=yes
26972 else
26973 gl_cv_func_symlink_works=no
26975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26976 conftest.$ac_objext conftest.beam conftest.$ac_ext
26979 rm -f conftest.f conftest.link conftest.lnk2
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26982 $as_echo "$gl_cv_func_symlink_works" >&6; }
26983 case "$gl_cv_func_symlink_works" in
26984 *yes) ;;
26986 REPLACE_SYMLINK=1
26988 esac
26991 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
27000 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
27008 GNULIB_SYMLINK=1
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27018 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27019 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
27020 $as_echo_n "(cached) " >&6
27021 else
27023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27024 /* end confdefs.h. */
27025 #include <sys/select.h>
27027 main ()
27029 struct timeval b;
27031 return 0;
27033 _ACEOF
27034 if ac_fn_c_try_compile "$LINENO"; then :
27035 gl_cv_header_sys_select_h_selfcontained=yes
27036 else
27037 gl_cv_header_sys_select_h_selfcontained=no
27039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27040 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27042 /* end confdefs.h. */
27043 #include <sys/select.h>
27045 main ()
27047 int memset; int bzero;
27049 return 0;
27052 _ACEOF
27053 if ac_fn_c_try_compile "$LINENO"; then :
27054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27055 /* end confdefs.h. */
27056 #include <sys/select.h>
27058 main ()
27061 #undef memset
27062 #define memset nonexistent_memset
27063 extern
27064 #ifdef __cplusplus
27066 #endif
27067 void *memset (void *, int, unsigned long);
27068 #undef bzero
27069 #define bzero nonexistent_bzero
27070 extern
27071 #ifdef __cplusplus
27073 #endif
27074 void bzero (void *, unsigned long);
27075 fd_set fds;
27076 FD_ZERO (&fds);
27079 return 0;
27082 _ACEOF
27083 if ac_fn_c_try_link "$LINENO"; then :
27085 else
27086 gl_cv_header_sys_select_h_selfcontained=no
27088 rm -f core conftest.err conftest.$ac_objext \
27089 conftest$ac_exeext conftest.$ac_ext
27092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27097 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27107 if test $gl_cv_have_include_next = yes; then
27108 gl_cv_next_sys_select_h='<'sys/select.h'>'
27109 else
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27111 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27112 if test "${gl_cv_next_sys_select_h+set}" = set; then :
27113 $as_echo_n "(cached) " >&6
27114 else
27116 if test $ac_cv_header_sys_select_h = yes; then
27119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27120 /* end confdefs.h. */
27121 #include <sys/select.h>
27123 _ACEOF
27124 case "$host_os" in
27125 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27126 *) gl_absname_cpp="$ac_cpp" ;;
27127 esac
27129 case "$host_os" in
27130 mingw*)
27131 gl_dirsep_regex='[/\\]'
27134 gl_dirsep_regex='\/'
27136 esac
27137 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27139 gl_header_literal_regex=`echo 'sys/select.h' \
27140 | sed -e "$gl_make_literal_regex_sed"`
27141 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27142 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27143 s|^/[^/]|//&|
27147 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27148 sed -n "$gl_absolute_header_sed"`'"'
27149 else
27150 gl_cv_next_sys_select_h='<'sys/select.h'>'
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27156 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27158 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27160 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27161 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27162 gl_next_as_first_directive='<'sys/select.h'>'
27163 else
27164 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27165 gl_next_as_first_directive=$gl_cv_next_sys_select_h
27167 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27172 if test $ac_cv_header_sys_select_h = yes; then
27173 HAVE_SYS_SELECT_H=1
27174 else
27175 HAVE_SYS_SELECT_H=0
27182 if test $ac_cv_header_sys_socket_h != yes; then
27183 for ac_header in winsock2.h
27184 do :
27185 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27186 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27187 cat >>confdefs.h <<_ACEOF
27188 #define HAVE_WINSOCK2_H 1
27189 _ACEOF
27193 done
27196 if test "$ac_cv_header_winsock2_h" = yes; then
27197 HAVE_WINSOCK2_H=1
27198 UNISTD_H_HAVE_WINSOCK2_H=1
27199 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27200 else
27201 HAVE_WINSOCK2_H=0
27223 if test $gl_cv_have_include_next = yes; then
27224 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27225 else
27226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27227 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27228 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27229 $as_echo_n "(cached) " >&6
27230 else
27232 if test $ac_cv_header_sys_stat_h = yes; then
27235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27236 /* end confdefs.h. */
27237 #include <sys/stat.h>
27239 _ACEOF
27240 case "$host_os" in
27241 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27242 *) gl_absname_cpp="$ac_cpp" ;;
27243 esac
27245 case "$host_os" in
27246 mingw*)
27247 gl_dirsep_regex='[/\\]'
27250 gl_dirsep_regex='\/'
27252 esac
27253 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27255 gl_header_literal_regex=`echo 'sys/stat.h' \
27256 | sed -e "$gl_make_literal_regex_sed"`
27257 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27258 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27259 s|^/[^/]|//&|
27263 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27264 sed -n "$gl_absolute_header_sed"`'"'
27265 else
27266 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27272 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27274 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27276 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27277 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27278 gl_next_as_first_directive='<'sys/stat.h'>'
27279 else
27280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27281 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27283 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27295 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27297 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27301 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27302 #include <sys/stat.h>
27304 if test "x$ac_cv_type_nlink_t" = x""yes; then :
27306 else
27308 $as_echo "#define nlink_t int" >>confdefs.h
27329 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27331 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
27332 ac_have_decl=1
27333 else
27334 ac_have_decl=0
27337 cat >>confdefs.h <<_ACEOF
27338 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27339 _ACEOF
27341 if test $ac_cv_have_decl_localtime_r = no; then
27342 HAVE_DECL_LOCALTIME_R=0
27346 if test $ac_cv_func_localtime_r = yes; then
27347 HAVE_LOCALTIME_R=1
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27349 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27350 if test "${gl_cv_time_r_posix+set}" = set; then :
27351 $as_echo_n "(cached) " >&6
27352 else
27353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27354 /* end confdefs.h. */
27355 #include <time.h>
27357 main ()
27359 /* We don't need to append 'restrict's to the argument types,
27360 even though the POSIX signature has the 'restrict's,
27361 since C99 says they can't affect type compatibility. */
27362 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27363 if (ptr) return 0;
27364 /* Check the return type is a pointer.
27365 On HP-UX 10 it is 'int'. */
27366 *localtime_r (0, 0);
27368 return 0;
27371 _ACEOF
27372 if ac_fn_c_try_compile "$LINENO"; then :
27373 gl_cv_time_r_posix=yes
27374 else
27375 gl_cv_time_r_posix=no
27377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27381 $as_echo "$gl_cv_time_r_posix" >&6; }
27382 if test $gl_cv_time_r_posix = yes; then
27383 REPLACE_LOCALTIME_R=0
27384 else
27385 REPLACE_LOCALTIME_R=1
27387 else
27388 HAVE_LOCALTIME_R=0
27391 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
27400 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
27411 GNULIB_TIME_R=1
27422 LIB_TIMER_TIME=
27424 gl_saved_libs=$LIBS
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27426 $as_echo_n "checking for library containing timer_settime... " >&6; }
27427 if test "${ac_cv_search_timer_settime+set}" = set; then :
27428 $as_echo_n "(cached) " >&6
27429 else
27430 ac_func_search_save_LIBS=$LIBS
27431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27432 /* end confdefs.h. */
27434 /* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
27437 #ifdef __cplusplus
27438 extern "C"
27439 #endif
27440 char timer_settime ();
27442 main ()
27444 return timer_settime ();
27446 return 0;
27448 _ACEOF
27449 for ac_lib in '' rt posix4; do
27450 if test -z "$ac_lib"; then
27451 ac_res="none required"
27452 else
27453 ac_res=-l$ac_lib
27454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27456 if ac_fn_c_try_link "$LINENO"; then :
27457 ac_cv_search_timer_settime=$ac_res
27459 rm -f core conftest.err conftest.$ac_objext \
27460 conftest$ac_exeext
27461 if test "${ac_cv_search_timer_settime+set}" = set; then :
27462 break
27464 done
27465 if test "${ac_cv_search_timer_settime+set}" = set; then :
27467 else
27468 ac_cv_search_timer_settime=no
27470 rm conftest.$ac_ext
27471 LIBS=$ac_func_search_save_LIBS
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27474 $as_echo "$ac_cv_search_timer_settime" >&6; }
27475 ac_res=$ac_cv_search_timer_settime
27476 if test "$ac_res" != no; then :
27477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27478 test "$ac_cv_search_timer_settime" = "none required" ||
27479 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483 /* end confdefs.h. */
27485 #include <features.h>
27486 #ifdef __GNU_LIBRARY__
27487 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27488 && !defined __UCLIBC__
27489 Thread emulation available
27490 #endif
27491 #endif
27493 _ACEOF
27494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27495 $EGREP "Thread" >/dev/null 2>&1; then :
27496 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27498 rm -f conftest*
27500 for ac_func in timer_settime
27501 do :
27502 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27503 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27504 cat >>confdefs.h <<_ACEOF
27505 #define HAVE_TIMER_SETTIME 1
27506 _ACEOF
27509 done
27511 LIBS=$gl_saved_libs
27526 if test $gl_cv_have_include_next = yes; then
27527 gl_cv_next_unistd_h='<'unistd.h'>'
27528 else
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27530 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27531 if test "${gl_cv_next_unistd_h+set}" = set; then :
27532 $as_echo_n "(cached) " >&6
27533 else
27535 if test $ac_cv_header_unistd_h = yes; then
27538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27539 /* end confdefs.h. */
27540 #include <unistd.h>
27542 _ACEOF
27543 case "$host_os" in
27544 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27545 *) gl_absname_cpp="$ac_cpp" ;;
27546 esac
27548 case "$host_os" in
27549 mingw*)
27550 gl_dirsep_regex='[/\\]'
27553 gl_dirsep_regex='\/'
27555 esac
27556 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27558 gl_header_literal_regex=`echo 'unistd.h' \
27559 | sed -e "$gl_make_literal_regex_sed"`
27560 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27561 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27562 s|^/[^/]|//&|
27566 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27567 sed -n "$gl_absolute_header_sed"`'"'
27568 else
27569 gl_cv_next_unistd_h='<'unistd.h'>'
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27575 $as_echo "$gl_cv_next_unistd_h" >&6; }
27577 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27579 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27580 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27581 gl_next_as_first_directive='<'unistd.h'>'
27582 else
27583 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27584 gl_next_as_first_directive=$gl_cv_next_unistd_h
27586 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27591 if test $ac_cv_header_unistd_h = yes; then
27592 HAVE_UNISTD_H=1
27593 else
27594 HAVE_UNISTD_H=0
27607 if test $ac_cv_have_decl_unsetenv = no; then
27608 HAVE_DECL_UNSETENV=0
27610 for ac_func in unsetenv
27611 do :
27612 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27613 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27614 cat >>confdefs.h <<_ACEOF
27615 #define HAVE_UNSETENV 1
27616 _ACEOF
27619 done
27621 if test $ac_cv_func_unsetenv = no; then
27622 HAVE_UNSETENV=0
27623 else
27624 HAVE_UNSETENV=1
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27626 $as_echo_n "checking for unsetenv() return type... " >&6; }
27627 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27628 $as_echo_n "(cached) " >&6
27629 else
27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27631 /* end confdefs.h. */
27633 #undef _BSD
27634 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27635 #include <stdlib.h>
27636 extern
27637 #ifdef __cplusplus
27639 #endif
27640 int unsetenv (const char *name);
27643 main ()
27647 return 0;
27649 _ACEOF
27650 if ac_fn_c_try_compile "$LINENO"; then :
27651 gt_cv_func_unsetenv_ret='int'
27652 else
27653 gt_cv_func_unsetenv_ret='void'
27655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27658 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27659 if test $gt_cv_func_unsetenv_ret = 'void'; then
27661 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27663 REPLACE_UNSETENV=1
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27667 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27668 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27669 $as_echo_n "(cached) " >&6
27670 else
27671 if test "$cross_compiling" = yes; then :
27672 case "$host_os" in
27673 # Guess yes on glibc systems.
27674 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27675 # If we don't know, assume the worst.
27676 *) gl_cv_func_unsetenv_works="guessing no" ;;
27677 esac
27679 else
27680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27681 /* end confdefs.h. */
27683 #include <stdlib.h>
27684 #include <errno.h>
27685 extern char **environ;
27688 main ()
27691 char entry1[] = "a=1";
27692 char entry2[] = "b=2";
27693 char *env[] = { entry1, entry2, NULL };
27694 if (putenv ((char *) "a=1")) return 1;
27695 if (putenv (entry2)) return 2;
27696 entry2[0] = 'a';
27697 unsetenv ("a");
27698 if (getenv ("a")) return 3;
27699 if (!unsetenv ("") || errno != EINVAL) return 4;
27700 entry2[0] = 'b';
27701 environ = env;
27702 if (!getenv ("a")) return 5;
27703 entry2[0] = 'a';
27704 unsetenv ("a");
27705 if (getenv ("a")) return 6;
27708 return 0;
27710 _ACEOF
27711 if ac_fn_c_try_run "$LINENO"; then :
27712 gl_cv_func_unsetenv_works=yes
27713 else
27714 gl_cv_func_unsetenv_works=no
27716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27717 conftest.$ac_objext conftest.beam conftest.$ac_ext
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27722 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27723 case "$gl_cv_func_unsetenv_works" in
27724 *yes) ;;
27726 REPLACE_UNSETENV=1
27728 esac
27731 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27740 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27752 GNULIB_UNSETENV=1
27764 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27766 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27767 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27768 $as_echo_n "(cached) " >&6
27769 else
27770 touch conftest.file
27771 if test "$cross_compiling" = yes; then :
27772 case "$host_os" in
27773 # Guess yes on glibc systems.
27774 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
27775 # If we don't know, assume the worst.
27776 *) gl_cv_func_futimesat_works="guessing no" ;;
27777 esac
27779 else
27780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27781 /* end confdefs.h. */
27783 #include <stddef.h>
27784 #include <sys/times.h>
27785 #include <fcntl.h>
27788 main ()
27790 int fd = open ("conftest.file", O_RDWR);
27791 if (fd < 0) return 1;
27792 if (futimesat (fd, NULL, NULL)) return 2;
27795 return 0;
27797 _ACEOF
27798 if ac_fn_c_try_run "$LINENO"; then :
27799 gl_cv_func_futimesat_works=yes
27800 else
27801 gl_cv_func_futimesat_works=no
27803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27804 conftest.$ac_objext conftest.beam conftest.$ac_ext
27807 rm -f conftest.file
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27810 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27811 case "$gl_cv_func_futimesat_works" in
27812 *yes) ;;
27815 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27818 esac
27821 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
27822 gl_gnulib_enabled_dosname=false
27823 gl_gnulib_enabled_euidaccess=false
27824 gl_gnulib_enabled_getdtablesize=false
27825 gl_gnulib_enabled_getgroups=false
27826 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
27827 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
27828 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
27829 gl_gnulib_enabled_pathmax=false
27830 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
27831 gl_gnulib_enabled_secure_getenv=false
27832 gl_gnulib_enabled_stat=false
27833 gl_gnulib_enabled_strtoll=false
27834 gl_gnulib_enabled_strtoull=false
27835 gl_gnulib_enabled_tempname=false
27836 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
27837 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
27839 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27848 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27850 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
27853 func_gl_gnulib_m4code_dosname ()
27855 if ! $gl_gnulib_enabled_dosname; then
27856 gl_gnulib_enabled_dosname=true
27859 func_gl_gnulib_m4code_euidaccess ()
27861 if ! $gl_gnulib_enabled_euidaccess; then
27867 for ac_func in euidaccess
27868 do :
27869 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27870 if test "x$ac_cv_func_euidaccess" = x""yes; then :
27871 cat >>confdefs.h <<_ACEOF
27872 #define HAVE_EUIDACCESS 1
27873 _ACEOF
27876 done
27878 if test $ac_cv_func_euidaccess = no; then
27879 HAVE_EUIDACCESS=0
27882 if test $HAVE_EUIDACCESS = 0; then
27891 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
27895 for ac_header in libgen.h
27896 do :
27897 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27898 if test "x$ac_cv_header_libgen_h" = x""yes; then :
27899 cat >>confdefs.h <<_ACEOF
27900 #define HAVE_LIBGEN_H 1
27901 _ACEOF
27905 done
27908 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
27909 if test "x$ac_cv_func_getgroups" = x""yes; then :
27914 # If we don't yet have getgroups, see if it's in -lbsd.
27915 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27916 ac_save_LIBS=$LIBS
27917 if test $ac_cv_func_getgroups = no; then
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27919 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27920 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27921 $as_echo_n "(cached) " >&6
27922 else
27923 ac_check_lib_save_LIBS=$LIBS
27924 LIBS="-lbsd $LIBS"
27925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h. */
27928 /* Override any GCC internal prototype to avoid an error.
27929 Use char because int might match the return type of a GCC
27930 builtin and then its argument prototype would still apply. */
27931 #ifdef __cplusplus
27932 extern "C"
27933 #endif
27934 char getgroups ();
27936 main ()
27938 return getgroups ();
27940 return 0;
27942 _ACEOF
27943 if ac_fn_c_try_link "$LINENO"; then :
27944 ac_cv_lib_bsd_getgroups=yes
27945 else
27946 ac_cv_lib_bsd_getgroups=no
27948 rm -f core conftest.err conftest.$ac_objext \
27949 conftest$ac_exeext conftest.$ac_ext
27950 LIBS=$ac_check_lib_save_LIBS
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27953 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27954 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
27955 GETGROUPS_LIB=-lbsd
27960 # Run the program to test the functionality of the system-supplied
27961 # getgroups function only if there is such a function.
27962 if test $ac_cv_func_getgroups = yes; then
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27964 $as_echo_n "checking for working getgroups... " >&6; }
27965 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27966 $as_echo_n "(cached) " >&6
27967 else
27968 if test "$cross_compiling" = yes; then :
27969 case "$host_os" in # ((
27970 # Guess yes on glibc systems.
27971 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
27972 # If we don't know, assume the worst.
27973 *) ac_cv_func_getgroups_works="guessing no" ;;
27974 esac
27976 else
27977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27978 /* end confdefs.h. */
27979 $ac_includes_default
27981 main ()
27983 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27984 return getgroups (0, 0) == -1;
27986 return 0;
27989 _ACEOF
27990 if ac_fn_c_try_run "$LINENO"; then :
27991 ac_cv_func_getgroups_works=yes
27992 else
27993 ac_cv_func_getgroups_works=no
27995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27996 conftest.$ac_objext conftest.beam conftest.$ac_ext
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28002 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28003 else
28004 ac_cv_func_getgroups_works=no
28006 case "$ac_cv_func_getgroups_works" in
28007 *yes)
28009 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28012 esac
28013 LIBS=$ac_save_LIBS
28016 # Solaris 9 and 10 need -lgen to get the eaccess function.
28017 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
28018 # programs in the package would end up linked with that potentially-shared
28019 # library, inducing unnecessary run-time overhead.
28020 LIB_EACCESS=
28022 gl_saved_libs=$LIBS
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
28024 $as_echo_n "checking for library containing eaccess... " >&6; }
28025 if test "${ac_cv_search_eaccess+set}" = set; then :
28026 $as_echo_n "(cached) " >&6
28027 else
28028 ac_func_search_save_LIBS=$LIBS
28029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28030 /* end confdefs.h. */
28032 /* Override any GCC internal prototype to avoid an error.
28033 Use char because int might match the return type of a GCC
28034 builtin and then its argument prototype would still apply. */
28035 #ifdef __cplusplus
28036 extern "C"
28037 #endif
28038 char eaccess ();
28040 main ()
28042 return eaccess ();
28044 return 0;
28046 _ACEOF
28047 for ac_lib in '' gen; do
28048 if test -z "$ac_lib"; then
28049 ac_res="none required"
28050 else
28051 ac_res=-l$ac_lib
28052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28054 if ac_fn_c_try_link "$LINENO"; then :
28055 ac_cv_search_eaccess=$ac_res
28057 rm -f core conftest.err conftest.$ac_objext \
28058 conftest$ac_exeext
28059 if test "${ac_cv_search_eaccess+set}" = set; then :
28060 break
28062 done
28063 if test "${ac_cv_search_eaccess+set}" = set; then :
28065 else
28066 ac_cv_search_eaccess=no
28068 rm conftest.$ac_ext
28069 LIBS=$ac_func_search_save_LIBS
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
28072 $as_echo "$ac_cv_search_eaccess" >&6; }
28073 ac_res=$ac_cv_search_eaccess
28074 if test "$ac_res" != no; then :
28075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28076 test "$ac_cv_search_eaccess" = "none required" ||
28077 LIB_EACCESS=$ac_cv_search_eaccess
28080 for ac_func in eaccess
28081 do :
28082 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
28083 if test "x$ac_cv_func_eaccess" = x""yes; then :
28084 cat >>confdefs.h <<_ACEOF
28085 #define HAVE_EACCESS 1
28086 _ACEOF
28089 done
28091 LIBS=$gl_saved_libs
28099 GNULIB_EUIDACCESS=1
28105 gl_gnulib_enabled_euidaccess=true
28106 if test $HAVE_EUIDACCESS = 0; then
28107 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
28109 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
28110 if test $HAVE_EUIDACCESS = 0; then
28111 func_gl_gnulib_m4code_stat
28115 func_gl_gnulib_m4code_getdtablesize ()
28117 if ! $gl_gnulib_enabled_getdtablesize; then
28121 if test $ac_cv_func_getdtablesize != yes; then
28122 HAVE_GETDTABLESIZE=0
28125 if test $HAVE_GETDTABLESIZE = 0; then
28134 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
28143 GNULIB_GETDTABLESIZE=1
28149 gl_gnulib_enabled_getdtablesize=true
28152 func_gl_gnulib_m4code_getgroups ()
28154 if ! $gl_gnulib_enabled_getgroups; then
28160 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
28161 if test "x$ac_cv_func_getgroups" = x""yes; then :
28166 # If we don't yet have getgroups, see if it's in -lbsd.
28167 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28168 ac_save_LIBS=$LIBS
28169 if test $ac_cv_func_getgroups = no; then
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
28171 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
28172 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28173 $as_echo_n "(cached) " >&6
28174 else
28175 ac_check_lib_save_LIBS=$LIBS
28176 LIBS="-lbsd $LIBS"
28177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28178 /* end confdefs.h. */
28180 /* Override any GCC internal prototype to avoid an error.
28181 Use char because int might match the return type of a GCC
28182 builtin and then its argument prototype would still apply. */
28183 #ifdef __cplusplus
28184 extern "C"
28185 #endif
28186 char getgroups ();
28188 main ()
28190 return getgroups ();
28192 return 0;
28194 _ACEOF
28195 if ac_fn_c_try_link "$LINENO"; then :
28196 ac_cv_lib_bsd_getgroups=yes
28197 else
28198 ac_cv_lib_bsd_getgroups=no
28200 rm -f core conftest.err conftest.$ac_objext \
28201 conftest$ac_exeext conftest.$ac_ext
28202 LIBS=$ac_check_lib_save_LIBS
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28205 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28206 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28207 GETGROUPS_LIB=-lbsd
28212 # Run the program to test the functionality of the system-supplied
28213 # getgroups function only if there is such a function.
28214 if test $ac_cv_func_getgroups = yes; then
28215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28216 $as_echo_n "checking for working getgroups... " >&6; }
28217 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28218 $as_echo_n "(cached) " >&6
28219 else
28220 if test "$cross_compiling" = yes; then :
28221 case "$host_os" in # ((
28222 # Guess yes on glibc systems.
28223 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28224 # If we don't know, assume the worst.
28225 *) ac_cv_func_getgroups_works="guessing no" ;;
28226 esac
28228 else
28229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28230 /* end confdefs.h. */
28231 $ac_includes_default
28233 main ()
28235 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28236 return getgroups (0, 0) == -1;
28238 return 0;
28241 _ACEOF
28242 if ac_fn_c_try_run "$LINENO"; then :
28243 ac_cv_func_getgroups_works=yes
28244 else
28245 ac_cv_func_getgroups_works=no
28247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28248 conftest.$ac_objext conftest.beam conftest.$ac_ext
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28254 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28255 else
28256 ac_cv_func_getgroups_works=no
28258 case "$ac_cv_func_getgroups_works" in
28259 *yes)
28261 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28264 esac
28265 LIBS=$ac_save_LIBS
28267 if test $ac_cv_func_getgroups != yes; then
28268 HAVE_GETGROUPS=0
28269 else
28270 if test "$ac_cv_type_getgroups" != gid_t \
28271 || { case "$ac_cv_func_getgroups_works" in
28272 *yes) false;;
28273 *) true;;
28274 esac
28275 }; then
28276 REPLACE_GETGROUPS=1
28278 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28280 else
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28282 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28283 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28284 $as_echo_n "(cached) " >&6
28285 else
28286 if test "$cross_compiling" = yes; then :
28287 case "$host_os" in
28288 # Guess yes on glibc systems.
28289 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
28290 # If we don't know, assume the worst.
28291 *) gl_cv_func_getgroups_works="guessing no" ;;
28292 esac
28294 else
28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h. */
28297 $ac_includes_default
28299 main ()
28301 int size = getgroups (0, 0);
28302 gid_t *list = malloc (size * sizeof *list);
28303 return getgroups (-1, list) != -1;
28305 return 0;
28307 _ACEOF
28308 if ac_fn_c_try_run "$LINENO"; then :
28309 gl_cv_func_getgroups_works=yes
28310 else
28311 gl_cv_func_getgroups_works=no
28313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28314 conftest.$ac_objext conftest.beam conftest.$ac_ext
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28319 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28320 case "$gl_cv_func_getgroups_works" in
28321 *yes) ;;
28322 *) REPLACE_GETGROUPS=1 ;;
28323 esac
28326 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28328 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
28337 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
28345 GNULIB_GETGROUPS=1
28351 gl_gnulib_enabled_getgroups=true
28354 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
28356 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28359 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
28362 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
28364 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28370 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
28371 if test "x$ac_cv_func_group_member" = x""yes; then :
28373 else
28375 HAVE_GROUP_MEMBER=0
28380 if test $HAVE_GROUP_MEMBER = 0; then
28389 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
28400 GNULIB_GROUP_MEMBER=1
28406 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
28407 if test $HAVE_GROUP_MEMBER = 0; then
28408 func_gl_gnulib_m4code_getgroups
28410 if test $HAVE_GROUP_MEMBER = 0; then
28411 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28415 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
28417 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28418 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
28421 func_gl_gnulib_m4code_pathmax ()
28423 if ! $gl_gnulib_enabled_pathmax; then
28427 gl_gnulib_enabled_pathmax=true
28430 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
28432 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28433 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
28436 func_gl_gnulib_m4code_secure_getenv ()
28438 if ! $gl_gnulib_enabled_secure_getenv; then
28444 if test $ac_cv_func_secure_getenv = no; then
28445 HAVE_SECURE_GETENV=0
28448 if test $HAVE_SECURE_GETENV = 0; then
28457 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
28460 for ac_func in __secure_getenv
28461 do :
28462 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28463 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
28464 cat >>confdefs.h <<_ACEOF
28465 #define HAVE___SECURE_GETENV 1
28466 _ACEOF
28469 done
28471 if test $ac_cv_func___secure_getenv = no; then
28472 for ac_func in issetugid
28473 do :
28474 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28475 if test "x$ac_cv_func_issetugid" = x""yes; then :
28476 cat >>confdefs.h <<_ACEOF
28477 #define HAVE_ISSETUGID 1
28478 _ACEOF
28481 done
28491 GNULIB_SECURE_GETENV=1
28497 gl_gnulib_enabled_secure_getenv=true
28500 func_gl_gnulib_m4code_stat ()
28502 if ! $gl_gnulib_enabled_stat; then
28506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28507 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28508 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28509 $as_echo_n "(cached) " >&6
28510 else
28511 if test "$cross_compiling" = yes; then :
28512 case $host_os in
28513 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28514 *) gl_cv_func_stat_dir_slash="guessing yes";;
28515 esac
28516 else
28517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28518 /* end confdefs.h. */
28519 #include <sys/stat.h>
28522 main ()
28524 struct stat st; return stat (".", &st) != stat ("./", &st);
28526 return 0;
28528 _ACEOF
28529 if ac_fn_c_try_run "$LINENO"; then :
28530 gl_cv_func_stat_dir_slash=yes
28531 else
28532 gl_cv_func_stat_dir_slash=no
28534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28535 conftest.$ac_objext conftest.beam conftest.$ac_ext
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28540 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28542 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28543 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28544 $as_echo_n "(cached) " >&6
28545 else
28546 touch conftest.tmp
28547 # Assume that if we have lstat, we can also check symlinks.
28548 if test $ac_cv_func_lstat = yes; then
28549 ln -s conftest.tmp conftest.lnk
28551 if test "$cross_compiling" = yes; then :
28552 case "$host_os" in
28553 # Guess yes on glibc systems.
28554 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28555 # If we don't know, assume the worst.
28556 *) gl_cv_func_stat_file_slash="guessing no" ;;
28557 esac
28559 else
28560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28561 /* end confdefs.h. */
28562 #include <sys/stat.h>
28565 main ()
28567 int result = 0;
28568 struct stat st;
28569 if (!stat ("conftest.tmp/", &st))
28570 result |= 1;
28571 #if HAVE_LSTAT
28572 if (!stat ("conftest.lnk/", &st))
28573 result |= 2;
28574 #endif
28575 return result;
28578 return 0;
28580 _ACEOF
28581 if ac_fn_c_try_run "$LINENO"; then :
28582 gl_cv_func_stat_file_slash=yes
28583 else
28584 gl_cv_func_stat_file_slash=no
28586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28587 conftest.$ac_objext conftest.beam conftest.$ac_ext
28590 rm -f conftest.tmp conftest.lnk
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28593 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28594 case $gl_cv_func_stat_dir_slash in
28595 *no) REPLACE_STAT=1
28597 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28599 esac
28600 case $gl_cv_func_stat_file_slash in
28601 *no) REPLACE_STAT=1
28603 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28605 esac
28607 if test $REPLACE_STAT = 1; then
28616 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28625 GNULIB_STAT=1
28631 gl_gnulib_enabled_stat=true
28632 if test $REPLACE_STAT = 1; then
28633 func_gl_gnulib_m4code_dosname
28635 if test $REPLACE_STAT = 1; then
28636 func_gl_gnulib_m4code_pathmax
28640 func_gl_gnulib_m4code_strtoll ()
28642 if ! $gl_gnulib_enabled_strtoll; then
28646 if test "$ac_cv_type_long_long_int" = yes; then
28647 for ac_func in strtoll
28648 do :
28649 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28650 if test "x$ac_cv_func_strtoll" = x""yes; then :
28651 cat >>confdefs.h <<_ACEOF
28652 #define HAVE_STRTOLL 1
28653 _ACEOF
28656 done
28658 if test $ac_cv_func_strtoll = no; then
28659 HAVE_STRTOLL=0
28663 if test $HAVE_STRTOLL = 0; then
28672 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
28683 GNULIB_STRTOLL=1
28689 gl_gnulib_enabled_strtoll=true
28692 func_gl_gnulib_m4code_strtoull ()
28694 if ! $gl_gnulib_enabled_strtoull; then
28698 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28699 for ac_func in strtoull
28700 do :
28701 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
28702 if test "x$ac_cv_func_strtoull" = x""yes; then :
28703 cat >>confdefs.h <<_ACEOF
28704 #define HAVE_STRTOULL 1
28705 _ACEOF
28708 done
28710 if test $ac_cv_func_strtoull = no; then
28711 HAVE_STRTOULL=0
28715 if test $HAVE_STRTOULL = 0; then
28724 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
28735 GNULIB_STRTOULL=1
28741 gl_gnulib_enabled_strtoull=true
28744 func_gl_gnulib_m4code_tempname ()
28746 if ! $gl_gnulib_enabled_tempname; then
28752 gl_gnulib_enabled_tempname=true
28753 func_gl_gnulib_m4code_secure_getenv
28756 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
28758 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28759 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
28762 if test $HAVE_FACCESSAT = 0; then
28763 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28765 if test $HAVE_FACCESSAT = 0; then
28766 func_gl_gnulib_m4code_dosname
28768 if test $HAVE_FACCESSAT = 0; then
28769 func_gl_gnulib_m4code_euidaccess
28771 if test $HAVE_FACCESSAT = 0; then
28772 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28774 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
28775 func_gl_gnulib_m4code_getdtablesize
28777 if test $HAVE_FDOPENDIR = 0; then
28778 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28780 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28781 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28783 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28784 func_gl_gnulib_m4code_dosname
28786 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28787 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28789 if test $REPLACE_GETOPT = 1; then
28790 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28792 if test $REPLACE_LSTAT = 1; then
28793 func_gl_gnulib_m4code_dosname
28795 if test $REPLACE_LSTAT = 1; then
28796 func_gl_gnulib_m4code_stat
28798 if test $HAVE_MKOSTEMP = 0; then
28799 func_gl_gnulib_m4code_tempname
28801 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
28802 func_gl_gnulib_m4code_stat
28804 if test $HAVE_READLINKAT = 0; then
28805 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28807 if test $HAVE_READLINKAT = 0; then
28808 func_gl_gnulib_m4code_dosname
28810 if test $HAVE_READLINKAT = 0; then
28811 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28813 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28814 func_gl_gnulib_m4code_strtoll
28816 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
28817 func_gl_gnulib_m4code_strtoull
28820 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28821 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
28822 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
28823 else
28824 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
28825 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
28828 if $gl_gnulib_enabled_dosname; then
28829 gl_GNULIB_ENABLED_dosname_TRUE=
28830 gl_GNULIB_ENABLED_dosname_FALSE='#'
28831 else
28832 gl_GNULIB_ENABLED_dosname_TRUE='#'
28833 gl_GNULIB_ENABLED_dosname_FALSE=
28836 if $gl_gnulib_enabled_euidaccess; then
28837 gl_GNULIB_ENABLED_euidaccess_TRUE=
28838 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
28839 else
28840 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
28841 gl_GNULIB_ENABLED_euidaccess_FALSE=
28844 if $gl_gnulib_enabled_getdtablesize; then
28845 gl_GNULIB_ENABLED_getdtablesize_TRUE=
28846 gl_GNULIB_ENABLED_getdtablesize_FALSE='#'
28847 else
28848 gl_GNULIB_ENABLED_getdtablesize_TRUE='#'
28849 gl_GNULIB_ENABLED_getdtablesize_FALSE=
28852 if $gl_gnulib_enabled_getgroups; then
28853 gl_GNULIB_ENABLED_getgroups_TRUE=
28854 gl_GNULIB_ENABLED_getgroups_FALSE='#'
28855 else
28856 gl_GNULIB_ENABLED_getgroups_TRUE='#'
28857 gl_GNULIB_ENABLED_getgroups_FALSE=
28860 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28861 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
28862 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
28863 else
28864 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
28865 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
28868 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28869 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
28870 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
28871 else
28872 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
28873 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
28876 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28877 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
28878 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
28879 else
28880 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
28881 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
28884 if $gl_gnulib_enabled_pathmax; then
28885 gl_GNULIB_ENABLED_pathmax_TRUE=
28886 gl_GNULIB_ENABLED_pathmax_FALSE='#'
28887 else
28888 gl_GNULIB_ENABLED_pathmax_TRUE='#'
28889 gl_GNULIB_ENABLED_pathmax_FALSE=
28892 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28893 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
28894 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
28895 else
28896 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
28897 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
28900 if $gl_gnulib_enabled_secure_getenv; then
28901 gl_GNULIB_ENABLED_secure_getenv_TRUE=
28902 gl_GNULIB_ENABLED_secure_getenv_FALSE='#'
28903 else
28904 gl_GNULIB_ENABLED_secure_getenv_TRUE='#'
28905 gl_GNULIB_ENABLED_secure_getenv_FALSE=
28908 if $gl_gnulib_enabled_stat; then
28909 gl_GNULIB_ENABLED_stat_TRUE=
28910 gl_GNULIB_ENABLED_stat_FALSE='#'
28911 else
28912 gl_GNULIB_ENABLED_stat_TRUE='#'
28913 gl_GNULIB_ENABLED_stat_FALSE=
28916 if $gl_gnulib_enabled_strtoll; then
28917 gl_GNULIB_ENABLED_strtoll_TRUE=
28918 gl_GNULIB_ENABLED_strtoll_FALSE='#'
28919 else
28920 gl_GNULIB_ENABLED_strtoll_TRUE='#'
28921 gl_GNULIB_ENABLED_strtoll_FALSE=
28924 if $gl_gnulib_enabled_strtoull; then
28925 gl_GNULIB_ENABLED_strtoull_TRUE=
28926 gl_GNULIB_ENABLED_strtoull_FALSE='#'
28927 else
28928 gl_GNULIB_ENABLED_strtoull_TRUE='#'
28929 gl_GNULIB_ENABLED_strtoull_FALSE=
28932 if $gl_gnulib_enabled_tempname; then
28933 gl_GNULIB_ENABLED_tempname_TRUE=
28934 gl_GNULIB_ENABLED_tempname_FALSE='#'
28935 else
28936 gl_GNULIB_ENABLED_tempname_TRUE='#'
28937 gl_GNULIB_ENABLED_tempname_FALSE=
28940 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28941 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
28942 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
28943 else
28944 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
28945 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
28948 # End of code from modules
28958 gltests_libdeps=
28959 gltests_ltlibdeps=
28969 gl_source_base='tests'
28970 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
28972 gl_module_indicator_condition=$gltests_WITNESS
28983 LIBGNU_LIBDEPS="$gl_libdeps"
28985 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
28988 CFLAGS=$SAVE_CFLAGS
28989 LIBS=$SAVE_LIBS
28991 if test "${opsys}" = "mingw32"; then
28992 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28993 # Remove unneeded switches from the value of CC that goes to Makefiles
28994 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28997 case "$opsys" in
28998 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
29000 darwin)
29001 ## The -headerpad option tells ld (see man page) to leave room at the
29002 ## end of the header for adding load commands. Needed for dumping.
29003 ## 0x690 is the total size of 30 segment load commands (at 56
29004 ## each); under Cocoa 31 commands are required.
29005 if test "$HAVE_NS" = "yes"; then
29006 libs_nsgui="-framework AppKit"
29007 if test "$NS_IMPL_COCOA" = "yes"; then
29008 libs_nsgui="$libs_nsgui -framework IOKit"
29010 headerpad_extra=6C8
29011 else
29012 libs_nsgui=
29013 headerpad_extra=690
29015 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
29017 ## This is here because src/Makefile.in did some extra fiddling around
29018 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
29019 ## LD_SWITCH_SYSTEM_TEMACS instead,
29020 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
29021 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
29024 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
29025 ## find X at run-time.
29026 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
29027 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
29028 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
29029 ## had different values in configure (in ac_link) and src/Makefile.in.
29030 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
29031 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
29033 mingw32)
29034 ## MinGW64 does not prepend an underscore to symbols, so we must
29035 ## pass a different -entry switch to linker. FIXME: It is better
29036 ## to make the entry points the same by changing unexw32.c.
29037 case "$canonical" in
29038 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
29039 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
29040 esac
29043 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
29045 *) LD_SWITCH_SYSTEM_TEMACS= ;;
29046 esac
29048 if test x$ac_enable_profiling != x ; then
29049 case $opsys in
29050 *freebsd | gnu-linux) ;;
29051 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
29052 esac
29055 LD_SWITCH_SYSTEM_TEMACS="$LDFLAGS_NOCOMBRELOC $LD_SWITCH_SYSTEM_TEMACS"
29059 ## MinGW-specific post-link processing of temacs.
29060 TEMACS_POST_LINK=":"
29061 ADDSECTION=
29062 EMACS_HEAPSIZE=
29063 if test "${opsys}" = "mingw32"; then
29064 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
29065 ADDSECTION="../nt/addsection\$(EXEEXT)"
29066 ## Preload heap size of temacs.exe in MB.
29067 case "$canonical" in
29068 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
29069 *) EMACS_HEAPSIZE=27 ;;
29070 esac
29077 ## Common for all window systems
29078 if test "$window_system" != "none"; then
29080 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
29082 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
29089 #### Report on what we decided to do.
29090 #### Report GTK as a toolkit, even if it doesn't use Xt.
29091 #### It makes printing result more understandable as using GTK sets
29092 #### toolkit_scroll_bars to yes by default.
29093 if test "${HAVE_GTK}" = "yes"; then
29094 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
29097 if test $USE_ACL -ne 0; then
29098 acl_summary="yes $LIB_ACL"
29099 else
29100 acl_summary=no
29103 echo "
29104 Configured for \`${canonical}'.
29106 Where should the build process find the source code? ${srcdir}
29107 What compiler should emacs be built with? ${CC} ${CFLAGS}
29108 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
29109 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
29110 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
29111 What window system should Emacs use? ${window_system}
29112 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
29114 if test -n "${x_includes}"; then
29115 echo " Where do we find X Windows header files? ${x_includes}"
29116 else
29117 echo " Where do we find X Windows header files? Standard dirs"
29119 if test -n "${x_libraries}"; then
29120 echo " Where do we find X Windows libraries? ${x_libraries}"
29121 else
29122 echo " Where do we find X Windows libraries? Standard dirs"
29125 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
29126 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
29127 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
29128 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
29129 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
29130 echo " Does Emacs use -lpng? ${HAVE_PNG}"
29131 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
29132 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
29134 echo " Does Emacs support sound? ${HAVE_SOUND}"
29136 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
29137 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
29138 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
29139 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
29140 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
29141 echo " Does Emacs use access control lists? ${acl_summary}"
29142 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
29143 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
29144 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
29146 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
29147 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
29148 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
29149 echo " Does Emacs use -lxft? ${HAVE_XFT}"
29150 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
29152 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
29153 echo
29155 if test -n "${EMACSDATA}"; then
29156 echo " Environment variable EMACSDATA set to: $EMACSDATA"
29158 if test -n "${EMACSDOC}"; then
29159 echo " Environment variable EMACSDOC set to: $EMACSDOC"
29162 echo
29164 if test "$HAVE_NS" = "yes"; then
29165 echo
29166 echo "You must run \"${MAKE-make} install\" in order to test the built application.
29167 The installed application will go to nextstep/Emacs.app and can be
29168 run or moved from there."
29169 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
29170 echo "The application will be fully self-contained."
29171 else
29172 echo "The lisp resources for the application will be installed under ${prefix}.
29173 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
29174 to run if these resources are not installed."
29176 echo
29179 if test "${opsys}" = "cygwin"; then
29180 case `uname -r` in
29181 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29182 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29183 echo
29185 esac
29188 # Remove any trailing slashes in these variables.
29189 test "${prefix}" != NONE &&
29190 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29191 test "${exec_prefix}" != NONE &&
29192 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29194 if test "$HAVE_NS" = "yes"; then
29195 if test "$NS_IMPL_GNUSTEP" = yes; then
29196 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"
29198 ns_check_file=Resources/Info-gnustep.plist
29199 else
29200 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"
29202 ns_check_file=Contents/Info.plist
29207 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"
29209 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"
29212 opt_makefile=test/automated/Makefile
29214 if test -f "$srcdir/$opt_makefile.in"; then
29215 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29216 ac_config_files="$ac_config_files test/automated/Makefile"
29221 opt_makefile=admin/unidata/Makefile
29223 if test -f "$srcdir/$opt_makefile.in"; then
29224 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29225 ac_config_files="$ac_config_files admin/unidata/Makefile"
29230 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29234 ac_config_commands="$ac_config_commands src/epaths.h"
29237 ac_config_commands="$ac_config_commands src/.gdbinit"
29240 cat >confcache <<\_ACEOF
29241 # This file is a shell script that caches the results of configure
29242 # tests run on this system so they can be shared between configure
29243 # scripts and configure runs, see configure's option --config-cache.
29244 # It is not useful on other systems. If it contains results you don't
29245 # want to keep, you may remove or edit it.
29247 # config.status only pays attention to the cache file if you give it
29248 # the --recheck option to rerun configure.
29250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29252 # following values.
29254 _ACEOF
29256 # The following way of writing the cache mishandles newlines in values,
29257 # but we know of no workaround that is simple, portable, and efficient.
29258 # So, we kill variables containing newlines.
29259 # Ultrix sh set writes to stderr and can't be redirected directly,
29260 # and sets the high bit in the cache file unless we assign to the vars.
29262 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29263 eval ac_val=\$$ac_var
29264 case $ac_val in #(
29265 *${as_nl}*)
29266 case $ac_var in #(
29267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29269 esac
29270 case $ac_var in #(
29271 _ | IFS | as_nl) ;; #(
29272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29273 *) { eval $ac_var=; unset $ac_var;} ;;
29274 esac ;;
29275 esac
29276 done
29278 (set) 2>&1 |
29279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29280 *${as_nl}ac_space=\ *)
29281 # `set' does not quote correctly, so add quotes: double-quote
29282 # substitution turns \\\\ into \\, and sed turns \\ into \.
29283 sed -n \
29284 "s/'/'\\\\''/g;
29285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29286 ;; #(
29288 # `set' quotes correctly as required by POSIX, so do not add quotes.
29289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29291 esac |
29292 sort
29294 sed '
29295 /^ac_cv_env_/b end
29296 t clear
29297 :clear
29298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29299 t end
29300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29301 :end' >>confcache
29302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29303 if test -w "$cache_file"; then
29304 test "x$cache_file" != "x/dev/null" &&
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29306 $as_echo "$as_me: updating cache $cache_file" >&6;}
29307 cat confcache >$cache_file
29308 else
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29310 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29313 rm -f confcache
29315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29316 # Let make expand exec_prefix.
29317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29319 DEFS=-DHAVE_CONFIG_H
29321 ac_libobjs=
29322 ac_ltlibobjs=
29323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29324 # 1. Remove the extension, and $U if already installed.
29325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29326 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29328 # will be set to the directory where LIBOBJS objects are built.
29329 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29330 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29331 done
29332 LIBOBJS=$ac_libobjs
29334 LTLIBOBJS=$ac_ltlibobjs
29337 if test -n "$EXEEXT"; then
29338 am__EXEEXT_TRUE=
29339 am__EXEEXT_FALSE='#'
29340 else
29341 am__EXEEXT_TRUE='#'
29342 am__EXEEXT_FALSE=
29345 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29346 as_fn_error "conditional \"AMDEP\" was never defined.
29347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29349 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29350 as_fn_error "conditional \"am__fastdepCC\" was never defined.
29351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29353 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29354 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29357 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29358 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
29359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29361 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29362 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29366 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29367 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29370 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29371 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29374 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29375 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29378 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29379 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29382 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29383 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29386 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29387 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29390 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29391 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29394 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29395 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29398 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29399 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29402 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29403 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29406 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29407 as_fn_error "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29410 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29411 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29414 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29415 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29418 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29419 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29422 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29423 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29426 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29427 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29430 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29431 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29434 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29435 as_fn_error "conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29438 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29439 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29442 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29443 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29446 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29447 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29450 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29451 as_fn_error "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29454 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29455 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29459 gl_libobjs=
29460 gl_ltlibobjs=
29461 if test -n "$gl_LIBOBJS"; then
29462 # Remove the extension.
29463 sed_drop_objext='s/\.o$//;s/\.obj$//'
29464 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29465 gl_libobjs="$gl_libobjs $i.$ac_objext"
29466 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29467 done
29469 gl_LIBOBJS=$gl_libobjs
29471 gl_LTLIBOBJS=$gl_ltlibobjs
29475 gltests_libobjs=
29476 gltests_ltlibobjs=
29477 if test -n "$gltests_LIBOBJS"; then
29478 # Remove the extension.
29479 sed_drop_objext='s/\.o$//;s/\.obj$//'
29480 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29481 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29482 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29483 done
29485 gltests_LIBOBJS=$gltests_libobjs
29487 gltests_LTLIBOBJS=$gltests_ltlibobjs
29491 : ${CONFIG_STATUS=./config.status}
29492 ac_write_fail=0
29493 ac_clean_files_save=$ac_clean_files
29494 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29496 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29497 as_write_fail=0
29498 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29499 #! $SHELL
29500 # Generated by $as_me.
29501 # Run this file to recreate the current configuration.
29502 # Compiler output produced by configure, useful for debugging
29503 # configure, is in config.log if it exists.
29505 debug=false
29506 ac_cs_recheck=false
29507 ac_cs_silent=false
29509 SHELL=\${CONFIG_SHELL-$SHELL}
29510 export SHELL
29511 _ASEOF
29512 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29513 ## -------------------- ##
29514 ## M4sh Initialization. ##
29515 ## -------------------- ##
29517 # Be more Bourne compatible
29518 DUALCASE=1; export DUALCASE # for MKS sh
29519 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29520 emulate sh
29521 NULLCMD=:
29522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29523 # is contrary to our usage. Disable this feature.
29524 alias -g '${1+"$@"}'='"$@"'
29525 setopt NO_GLOB_SUBST
29526 else
29527 case `(set -o) 2>/dev/null` in #(
29528 *posix*) :
29529 set -o posix ;; #(
29530 *) :
29532 esac
29536 as_nl='
29538 export as_nl
29539 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29540 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29541 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29542 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29543 # Prefer a ksh shell builtin over an external printf program on Solaris,
29544 # but without wasting forks for bash or zsh.
29545 if test -z "$BASH_VERSION$ZSH_VERSION" \
29546 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29547 as_echo='print -r --'
29548 as_echo_n='print -rn --'
29549 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29550 as_echo='printf %s\n'
29551 as_echo_n='printf %s'
29552 else
29553 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29554 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29555 as_echo_n='/usr/ucb/echo -n'
29556 else
29557 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29558 as_echo_n_body='eval
29559 arg=$1;
29560 case $arg in #(
29561 *"$as_nl"*)
29562 expr "X$arg" : "X\\(.*\\)$as_nl";
29563 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29564 esac;
29565 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29567 export as_echo_n_body
29568 as_echo_n='sh -c $as_echo_n_body as_echo'
29570 export as_echo_body
29571 as_echo='sh -c $as_echo_body as_echo'
29574 # The user is always right.
29575 if test "${PATH_SEPARATOR+set}" != set; then
29576 PATH_SEPARATOR=:
29577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29579 PATH_SEPARATOR=';'
29584 # IFS
29585 # We need space, tab and new line, in precisely that order. Quoting is
29586 # there to prevent editors from complaining about space-tab.
29587 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29588 # splitting by setting IFS to empty value.)
29589 IFS=" "" $as_nl"
29591 # Find who we are. Look in the path if we contain no directory separator.
29592 case $0 in #((
29593 *[\\/]* ) as_myself=$0 ;;
29594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29595 for as_dir in $PATH
29597 IFS=$as_save_IFS
29598 test -z "$as_dir" && as_dir=.
29599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29600 done
29601 IFS=$as_save_IFS
29604 esac
29605 # We did not find ourselves, most probably we were run as `sh COMMAND'
29606 # in which case we are not to be found in the path.
29607 if test "x$as_myself" = x; then
29608 as_myself=$0
29610 if test ! -f "$as_myself"; then
29611 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29612 exit 1
29615 # Unset variables that we do not need and which cause bugs (e.g. in
29616 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29617 # suppresses any "Segmentation fault" message there. '((' could
29618 # trigger a bug in pdksh 5.2.14.
29619 for as_var in BASH_ENV ENV MAIL MAILPATH
29620 do eval test x\${$as_var+set} = xset \
29621 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29622 done
29623 PS1='$ '
29624 PS2='> '
29625 PS4='+ '
29627 # NLS nuisances.
29628 LC_ALL=C
29629 export LC_ALL
29630 LANGUAGE=C
29631 export LANGUAGE
29633 # CDPATH.
29634 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29637 # as_fn_error ERROR [LINENO LOG_FD]
29638 # ---------------------------------
29639 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29640 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29641 # script with status $?, using 1 if that was 0.
29642 as_fn_error ()
29644 as_status=$?; test $as_status -eq 0 && as_status=1
29645 if test "$3"; then
29646 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29647 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29649 $as_echo "$as_me: error: $1" >&2
29650 as_fn_exit $as_status
29651 } # as_fn_error
29654 # as_fn_set_status STATUS
29655 # -----------------------
29656 # Set $? to STATUS, without forking.
29657 as_fn_set_status ()
29659 return $1
29660 } # as_fn_set_status
29662 # as_fn_exit STATUS
29663 # -----------------
29664 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29665 as_fn_exit ()
29667 set +e
29668 as_fn_set_status $1
29669 exit $1
29670 } # as_fn_exit
29672 # as_fn_unset VAR
29673 # ---------------
29674 # Portably unset VAR.
29675 as_fn_unset ()
29677 { eval $1=; unset $1;}
29679 as_unset=as_fn_unset
29680 # as_fn_append VAR VALUE
29681 # ----------------------
29682 # Append the text in VALUE to the end of the definition contained in VAR. Take
29683 # advantage of any shell optimizations that allow amortized linear growth over
29684 # repeated appends, instead of the typical quadratic growth present in naive
29685 # implementations.
29686 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29687 eval 'as_fn_append ()
29689 eval $1+=\$2
29691 else
29692 as_fn_append ()
29694 eval $1=\$$1\$2
29696 fi # as_fn_append
29698 # as_fn_arith ARG...
29699 # ------------------
29700 # Perform arithmetic evaluation on the ARGs, and store the result in the
29701 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29702 # must be portable across $(()) and expr.
29703 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29704 eval 'as_fn_arith ()
29706 as_val=$(( $* ))
29708 else
29709 as_fn_arith ()
29711 as_val=`expr "$@" || test $? -eq 1`
29713 fi # as_fn_arith
29716 if expr a : '\(a\)' >/dev/null 2>&1 &&
29717 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29718 as_expr=expr
29719 else
29720 as_expr=false
29723 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29724 as_basename=basename
29725 else
29726 as_basename=false
29729 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29730 as_dirname=dirname
29731 else
29732 as_dirname=false
29735 as_me=`$as_basename -- "$0" ||
29736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29737 X"$0" : 'X\(//\)$' \| \
29738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29739 $as_echo X/"$0" |
29740 sed '/^.*\/\([^/][^/]*\)\/*$/{
29741 s//\1/
29744 /^X\/\(\/\/\)$/{
29745 s//\1/
29748 /^X\/\(\/\).*/{
29749 s//\1/
29752 s/.*/./; q'`
29754 # Avoid depending upon Character Ranges.
29755 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29756 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29757 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29758 as_cr_digits='0123456789'
29759 as_cr_alnum=$as_cr_Letters$as_cr_digits
29761 ECHO_C= ECHO_N= ECHO_T=
29762 case `echo -n x` in #(((((
29763 -n*)
29764 case `echo 'xy\c'` in
29765 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29766 xy) ECHO_C='\c';;
29767 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29768 ECHO_T=' ';;
29769 esac;;
29771 ECHO_N='-n';;
29772 esac
29774 rm -f conf$$ conf$$.exe conf$$.file
29775 if test -d conf$$.dir; then
29776 rm -f conf$$.dir/conf$$.file
29777 else
29778 rm -f conf$$.dir
29779 mkdir conf$$.dir 2>/dev/null
29781 if (echo >conf$$.file) 2>/dev/null; then
29782 if ln -s conf$$.file conf$$ 2>/dev/null; then
29783 as_ln_s='ln -s'
29784 # ... but there are two gotchas:
29785 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29786 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29787 # In both cases, we have to default to `cp -p'.
29788 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29789 as_ln_s='cp -p'
29790 elif ln conf$$.file conf$$ 2>/dev/null; then
29791 as_ln_s=ln
29792 else
29793 as_ln_s='cp -p'
29795 else
29796 as_ln_s='cp -p'
29798 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29799 rmdir conf$$.dir 2>/dev/null
29802 # as_fn_mkdir_p
29803 # -------------
29804 # Create "$as_dir" as a directory, including parents if necessary.
29805 as_fn_mkdir_p ()
29808 case $as_dir in #(
29809 -*) as_dir=./$as_dir;;
29810 esac
29811 test -d "$as_dir" || eval $as_mkdir_p || {
29812 as_dirs=
29813 while :; do
29814 case $as_dir in #(
29815 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29816 *) as_qdir=$as_dir;;
29817 esac
29818 as_dirs="'$as_qdir' $as_dirs"
29819 as_dir=`$as_dirname -- "$as_dir" ||
29820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29821 X"$as_dir" : 'X\(//\)[^/]' \| \
29822 X"$as_dir" : 'X\(//\)$' \| \
29823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29824 $as_echo X"$as_dir" |
29825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29826 s//\1/
29829 /^X\(\/\/\)[^/].*/{
29830 s//\1/
29833 /^X\(\/\/\)$/{
29834 s//\1/
29837 /^X\(\/\).*/{
29838 s//\1/
29841 s/.*/./; q'`
29842 test -d "$as_dir" && break
29843 done
29844 test -z "$as_dirs" || eval "mkdir $as_dirs"
29845 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29848 } # as_fn_mkdir_p
29849 if mkdir -p . 2>/dev/null; then
29850 as_mkdir_p='mkdir -p "$as_dir"'
29851 else
29852 test -d ./-p && rmdir ./-p
29853 as_mkdir_p=false
29856 if test -x / >/dev/null 2>&1; then
29857 as_test_x='test -x'
29858 else
29859 if ls -dL / >/dev/null 2>&1; then
29860 as_ls_L_option=L
29861 else
29862 as_ls_L_option=
29864 as_test_x='
29865 eval sh -c '\''
29866 if test -d "$1"; then
29867 test -d "$1/.";
29868 else
29869 case $1 in #(
29870 -*)set "./$1";;
29871 esac;
29872 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29873 ???[sx]*):;;*)false;;esac;fi
29874 '\'' sh
29877 as_executable_p=$as_test_x
29879 # Sed expression to map a string onto a valid CPP name.
29880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29882 # Sed expression to map a string onto a valid variable name.
29883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29886 exec 6>&1
29887 ## ----------------------------------- ##
29888 ## Main body of $CONFIG_STATUS script. ##
29889 ## ----------------------------------- ##
29890 _ASEOF
29891 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29894 # Save the log message, to keep $0 and so on meaningful, and to
29895 # report actual input values of CONFIG_FILES etc. instead of their
29896 # values after options handling.
29897 ac_log="
29898 This file was extended by emacs $as_me 24.3.50, which was
29899 generated by GNU Autoconf 2.65. Invocation command line was
29901 CONFIG_FILES = $CONFIG_FILES
29902 CONFIG_HEADERS = $CONFIG_HEADERS
29903 CONFIG_LINKS = $CONFIG_LINKS
29904 CONFIG_COMMANDS = $CONFIG_COMMANDS
29905 $ $0 $@
29907 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29910 _ACEOF
29912 case $ac_config_files in *"
29913 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29914 esac
29916 case $ac_config_headers in *"
29917 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29918 esac
29921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29922 # Files that config.status was made for.
29923 config_files="$ac_config_files"
29924 config_headers="$ac_config_headers"
29925 config_commands="$ac_config_commands"
29927 _ACEOF
29929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29930 ac_cs_usage="\
29931 \`$as_me' instantiates files and other configuration actions
29932 from templates according to the current configuration. Unless the files
29933 and actions are specified as TAGs, all are instantiated by default.
29935 Usage: $0 [OPTION]... [TAG]...
29937 -h, --help print this help, then exit
29938 -V, --version print version number and configuration settings, then exit
29939 --config print configuration, then exit
29940 -q, --quiet, --silent
29941 do not print progress messages
29942 -d, --debug don't remove temporary files
29943 --recheck update $as_me by reconfiguring in the same conditions
29944 --file=FILE[:TEMPLATE]
29945 instantiate the configuration file FILE
29946 --header=FILE[:TEMPLATE]
29947 instantiate the configuration header FILE
29949 Configuration files:
29950 $config_files
29952 Configuration headers:
29953 $config_headers
29955 Configuration commands:
29956 $config_commands
29958 Report bugs to the package provider."
29960 _ACEOF
29961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29962 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29963 ac_cs_version="\\
29964 emacs config.status 24.3.50
29965 configured by $0, generated by GNU Autoconf 2.65,
29966 with options \\"\$ac_cs_config\\"
29968 Copyright (C) 2009 Free Software Foundation, Inc.
29969 This config.status script is free software; the Free Software Foundation
29970 gives unlimited permission to copy, distribute and modify it."
29972 ac_pwd='$ac_pwd'
29973 srcdir='$srcdir'
29974 INSTALL='$INSTALL'
29975 MKDIR_P='$MKDIR_P'
29976 AWK='$AWK'
29977 test -n "\$AWK" || AWK=awk
29978 _ACEOF
29980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29981 # The default lists apply if the user does not specify any file.
29982 ac_need_defaults=:
29983 while test $# != 0
29985 case $1 in
29986 --*=*)
29987 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29988 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29989 ac_shift=:
29992 ac_option=$1
29993 ac_optarg=$2
29994 ac_shift=shift
29996 esac
29998 case $ac_option in
29999 # Handling of the options.
30000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30001 ac_cs_recheck=: ;;
30002 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30003 $as_echo "$ac_cs_version"; exit ;;
30004 --config | --confi | --conf | --con | --co | --c )
30005 $as_echo "$ac_cs_config"; exit ;;
30006 --debug | --debu | --deb | --de | --d | -d )
30007 debug=: ;;
30008 --file | --fil | --fi | --f )
30009 $ac_shift
30010 case $ac_optarg in
30011 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30012 esac
30013 as_fn_append CONFIG_FILES " '$ac_optarg'"
30014 ac_need_defaults=false;;
30015 --header | --heade | --head | --hea )
30016 $ac_shift
30017 case $ac_optarg in
30018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30019 esac
30020 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30021 ac_need_defaults=false;;
30022 --he | --h)
30023 # Conflict between --help and --header
30024 as_fn_error "ambiguous option: \`$1'
30025 Try \`$0 --help' for more information.";;
30026 --help | --hel | -h )
30027 $as_echo "$ac_cs_usage"; exit ;;
30028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30029 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30030 ac_cs_silent=: ;;
30032 # This is an error.
30033 -*) as_fn_error "unrecognized option: \`$1'
30034 Try \`$0 --help' for more information." ;;
30036 *) as_fn_append ac_config_targets " $1"
30037 ac_need_defaults=false ;;
30039 esac
30040 shift
30041 done
30043 ac_configure_extra_args=
30045 if $ac_cs_silent; then
30046 exec 6>/dev/null
30047 ac_configure_extra_args="$ac_configure_extra_args --silent"
30050 _ACEOF
30051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30052 if \$ac_cs_recheck; then
30053 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30054 shift
30055 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30056 CONFIG_SHELL='$SHELL'
30057 export CONFIG_SHELL
30058 exec "\$@"
30061 _ACEOF
30062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30063 exec 5>>config.log
30065 echo
30066 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30067 ## Running $as_me. ##
30068 _ASBOX
30069 $as_echo "$ac_log"
30070 } >&5
30072 _ACEOF
30073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30075 # INIT-COMMANDS
30077 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30078 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
30080 _ACEOF
30082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30084 # Handling of arguments.
30085 for ac_config_target in $ac_config_targets
30087 case $ac_config_target in
30088 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
30089 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30090 "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" ;;
30091 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
30092 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
30093 "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" ;;
30094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30095 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
30096 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
30097 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
30098 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
30099 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
30100 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
30101 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
30102 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30103 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
30104 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
30105 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
30106 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
30107 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
30108 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
30109 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
30110 "src/epaths.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/epaths.h" ;;
30111 "src/.gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS src/.gdbinit" ;;
30113 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30114 esac
30115 done
30118 # If the user did not use the arguments to specify the items to instantiate,
30119 # then the envvar interface is used. Set only those that are not.
30120 # We use the long form for the default assignment because of an extremely
30121 # bizarre bug on SunOS 4.1.3.
30122 if $ac_need_defaults; then
30123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30125 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30128 # Have a temporary directory for convenience. Make it in the build tree
30129 # simply because there is no reason against having it here, and in addition,
30130 # creating and moving files from /tmp can sometimes cause problems.
30131 # Hook for its removal unless debugging.
30132 # Note that there is a small window in which the directory will not be cleaned:
30133 # after its creation but before its name has been assigned to `$tmp'.
30134 $debug ||
30136 tmp=
30137 trap 'exit_status=$?
30138 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30140 trap 'as_fn_exit 1' 1 2 13 15
30142 # Create a (secure) tmp directory for tmp files.
30145 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30146 test -n "$tmp" && test -d "$tmp"
30147 } ||
30149 tmp=./conf$$-$RANDOM
30150 (umask 077 && mkdir "$tmp")
30151 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30153 # Set up the scripts for CONFIG_FILES section.
30154 # No need to generate them if there are no CONFIG_FILES.
30155 # This happens for instance with `./config.status config.h'.
30156 if test -n "$CONFIG_FILES"; then
30158 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30159 ac_cs_awk_getline=:
30160 ac_cs_awk_pipe_init=
30161 ac_cs_awk_read_file='
30162 while ((getline aline < (F[key])) > 0)
30163 print(aline)
30164 close(F[key])'
30165 ac_cs_awk_pipe_fini=
30166 else
30167 ac_cs_awk_getline=false
30168 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30169 ac_cs_awk_read_file='
30170 print "|#_!!_#|"
30171 print "cat " F[key] " &&"
30172 '$ac_cs_awk_pipe_init
30173 # The final `:' finishes the AND list.
30174 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30176 ac_cr=`echo X | tr X '\015'`
30177 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30178 # But we know of no other shell where ac_cr would be empty at this
30179 # point, so we can use a bashism as a fallback.
30180 if test "x$ac_cr" = x; then
30181 eval ac_cr=\$\'\\r\'
30183 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30184 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30185 ac_cs_awk_cr='\r'
30186 else
30187 ac_cs_awk_cr=$ac_cr
30190 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30191 _ACEOF
30193 # Create commands to substitute file output variables.
30195 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30196 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30197 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30198 echo "_ACAWK" &&
30199 echo "_ACEOF"
30200 } >conf$$files.sh &&
30201 . ./conf$$files.sh ||
30202 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30203 rm -f conf$$files.sh
30206 echo "cat >conf$$subs.awk <<_ACEOF" &&
30207 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30208 echo "_ACEOF"
30209 } >conf$$subs.sh ||
30210 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30211 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30212 ac_delim='%!_!# '
30213 for ac_last_try in false false false false false :; do
30214 . ./conf$$subs.sh ||
30215 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30217 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30218 if test $ac_delim_n = $ac_delim_num; then
30219 break
30220 elif $ac_last_try; then
30221 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30222 else
30223 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30225 done
30226 rm -f conf$$subs.sh
30228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30229 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30230 _ACEOF
30231 sed -n '
30233 s/^/S["/; s/!.*/"]=/
30236 s/^[^!]*!//
30237 :repl
30238 t repl
30239 s/'"$ac_delim"'$//
30240 t delim
30243 s/\(.\{148\}\)..*/\1/
30244 t more1
30245 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30248 b repl
30249 :more1
30250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30253 s/.\{148\}//
30254 t nl
30255 :delim
30257 s/\(.\{148\}\)..*/\1/
30258 t more2
30259 s/["\\]/\\&/g; s/^/"/; s/$/"/
30262 :more2
30263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30266 s/.\{148\}//
30267 t delim
30268 ' <conf$$subs.awk | sed '
30269 /^[^""]/{
30271 s/\n//
30273 ' >>$CONFIG_STATUS || ac_write_fail=1
30274 rm -f conf$$subs.awk
30275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30276 _ACAWK
30277 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30278 for (key in S) S_is_set[key] = 1
30279 FS = "\a"
30280 \$ac_cs_awk_pipe_init
30283 line = $ 0
30284 nfields = split(line, field, "@")
30285 substed = 0
30286 len = length(field[1])
30287 for (i = 2; i < nfields; i++) {
30288 key = field[i]
30289 keylen = length(key)
30290 if (S_is_set[key]) {
30291 value = S[key]
30292 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30293 len += length(value) + length(field[++i])
30294 substed = 1
30295 } else
30296 len += 1 + keylen
30298 if (nfields == 3 && !substed) {
30299 key = field[2]
30300 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30301 \$ac_cs_awk_read_file
30302 next
30305 print line
30307 \$ac_cs_awk_pipe_fini
30308 _ACAWK
30309 _ACEOF
30310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30311 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30312 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30313 else
30315 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30316 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30317 _ACEOF
30319 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30320 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30321 # trailing colons and then remove the whole line if VPATH becomes empty
30322 # (actually we leave an empty line to preserve line numbers).
30323 if test "x$srcdir" = x.; then
30324 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30325 s/:*\$(srcdir):*/:/
30326 s/:*\${srcdir}:*/:/
30327 s/:*@srcdir@:*/:/
30328 s/^\([^=]*=[ ]*\):*/\1/
30329 s/:*$//
30330 s/^[^=]*=[ ]*$//
30334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30335 fi # test -n "$CONFIG_FILES"
30337 # Set up the scripts for CONFIG_HEADERS section.
30338 # No need to generate them if there are no CONFIG_HEADERS.
30339 # This happens for instance with `./config.status Makefile'.
30340 if test -n "$CONFIG_HEADERS"; then
30341 cat >"$tmp/defines.awk" <<\_ACAWK ||
30342 BEGIN {
30343 _ACEOF
30345 # Transform confdefs.h into an awk script `defines.awk', embedded as
30346 # here-document in config.status, that substitutes the proper values into
30347 # config.h.in to produce config.h.
30349 # Create a delimiter string that does not exist in confdefs.h, to ease
30350 # handling of long lines.
30351 ac_delim='%!_!# '
30352 for ac_last_try in false false :; do
30353 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30354 if test -z "$ac_t"; then
30355 break
30356 elif $ac_last_try; then
30357 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30358 else
30359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30361 done
30363 # For the awk script, D is an array of macro values keyed by name,
30364 # likewise P contains macro parameters if any. Preserve backslash
30365 # newline sequences.
30367 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30368 sed -n '
30369 s/.\{148\}/&'"$ac_delim"'/g
30370 t rset
30371 :rset
30372 s/^[ ]*#[ ]*define[ ][ ]*/ /
30373 t def
30375 :def
30376 s/\\$//
30377 t bsnl
30378 s/["\\]/\\&/g
30379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30380 D["\1"]=" \3"/p
30381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30383 :bsnl
30384 s/["\\]/\\&/g
30385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30386 D["\1"]=" \3\\\\\\n"\\/p
30387 t cont
30388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30389 t cont
30391 :cont
30393 s/.\{148\}/&'"$ac_delim"'/g
30394 t clear
30395 :clear
30396 s/\\$//
30397 t bsnlc
30398 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30400 :bsnlc
30401 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30402 b cont
30403 ' <confdefs.h | sed '
30404 s/'"$ac_delim"'/"\\\
30405 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30408 for (key in D) D_is_set[key] = 1
30409 FS = "\a"
30411 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30412 line = \$ 0
30413 split(line, arg, " ")
30414 if (arg[1] == "#") {
30415 defundef = arg[2]
30416 mac1 = arg[3]
30417 } else {
30418 defundef = substr(arg[1], 2)
30419 mac1 = arg[2]
30421 split(mac1, mac2, "(") #)
30422 macro = mac2[1]
30423 prefix = substr(line, 1, index(line, defundef) - 1)
30424 if (D_is_set[macro]) {
30425 # Preserve the white space surrounding the "#".
30426 print prefix "define", macro P[macro] D[macro]
30427 next
30428 } else {
30429 # Replace #undef with comments. This is necessary, for example,
30430 # in the case of _POSIX_SOURCE, which is predefined and required
30431 # on some systems where configure will not decide to define it.
30432 if (defundef == "undef") {
30433 print "/*", prefix defundef, macro, "*/"
30434 next
30438 { print }
30439 _ACAWK
30440 _ACEOF
30441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30442 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30443 fi # test -n "$CONFIG_HEADERS"
30446 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30447 shift
30448 for ac_tag
30450 case $ac_tag in
30451 :[FHLC]) ac_mode=$ac_tag; continue;;
30452 esac
30453 case $ac_mode$ac_tag in
30454 :[FHL]*:*);;
30455 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30456 :[FH]-) ac_tag=-:-;;
30457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30458 esac
30459 ac_save_IFS=$IFS
30460 IFS=:
30461 set x $ac_tag
30462 IFS=$ac_save_IFS
30463 shift
30464 ac_file=$1
30465 shift
30467 case $ac_mode in
30468 :L) ac_source=$1;;
30469 :[FH])
30470 ac_file_inputs=
30471 for ac_f
30473 case $ac_f in
30474 -) ac_f="$tmp/stdin";;
30475 *) # Look for the file first in the build tree, then in the source tree
30476 # (if the path is not absolute). The absolute path cannot be DOS-style,
30477 # because $ac_f cannot contain `:'.
30478 test -f "$ac_f" ||
30479 case $ac_f in
30480 [\\/$]*) false;;
30481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30482 esac ||
30483 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30484 esac
30485 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30486 as_fn_append ac_file_inputs " '$ac_f'"
30487 done
30489 # Let's still pretend it is `configure' which instantiates (i.e., don't
30490 # use $as_me), people would be surprised to read:
30491 # /* config.h. Generated by config.status. */
30492 configure_input='Generated from '`
30493 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30494 `' by configure.'
30495 if test x"$ac_file" != x-; then
30496 configure_input="$ac_file. $configure_input"
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30498 $as_echo "$as_me: creating $ac_file" >&6;}
30500 # Neutralize special characters interpreted by sed in replacement strings.
30501 case $configure_input in #(
30502 *\&* | *\|* | *\\* )
30503 ac_sed_conf_input=`$as_echo "$configure_input" |
30504 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30505 *) ac_sed_conf_input=$configure_input;;
30506 esac
30508 case $ac_tag in
30509 *:-:* | *:-) cat >"$tmp/stdin" \
30510 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30511 esac
30513 esac
30515 ac_dir=`$as_dirname -- "$ac_file" ||
30516 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30517 X"$ac_file" : 'X\(//\)[^/]' \| \
30518 X"$ac_file" : 'X\(//\)$' \| \
30519 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30520 $as_echo X"$ac_file" |
30521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30522 s//\1/
30525 /^X\(\/\/\)[^/].*/{
30526 s//\1/
30529 /^X\(\/\/\)$/{
30530 s//\1/
30533 /^X\(\/\).*/{
30534 s//\1/
30537 s/.*/./; q'`
30538 as_dir="$ac_dir"; as_fn_mkdir_p
30539 ac_builddir=.
30541 case "$ac_dir" in
30542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30545 # A ".." for each directory in $ac_dir_suffix.
30546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30547 case $ac_top_builddir_sub in
30548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30550 esac ;;
30551 esac
30552 ac_abs_top_builddir=$ac_pwd
30553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30554 # for backward compatibility:
30555 ac_top_builddir=$ac_top_build_prefix
30557 case $srcdir in
30558 .) # We are building in place.
30559 ac_srcdir=.
30560 ac_top_srcdir=$ac_top_builddir_sub
30561 ac_abs_top_srcdir=$ac_pwd ;;
30562 [\\/]* | ?:[\\/]* ) # Absolute name.
30563 ac_srcdir=$srcdir$ac_dir_suffix;
30564 ac_top_srcdir=$srcdir
30565 ac_abs_top_srcdir=$srcdir ;;
30566 *) # Relative name.
30567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30568 ac_top_srcdir=$ac_top_build_prefix$srcdir
30569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30570 esac
30571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30574 case $ac_mode in
30577 # CONFIG_FILE
30580 case $INSTALL in
30581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30582 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30583 esac
30584 ac_MKDIR_P=$MKDIR_P
30585 case $MKDIR_P in
30586 [\\/$]* | ?:[\\/]* ) ;;
30587 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30588 esac
30589 _ACEOF
30591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30592 # If the template does not know about datarootdir, expand it.
30593 # FIXME: This hack should be removed a few years after 2.60.
30594 ac_datarootdir_hack=; ac_datarootdir_seen=
30595 ac_sed_dataroot='
30596 /datarootdir/ {
30600 /@datadir@/p
30601 /@docdir@/p
30602 /@infodir@/p
30603 /@localedir@/p
30604 /@mandir@/p'
30605 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30606 *datarootdir*) ac_datarootdir_seen=yes;;
30607 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30609 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30610 _ACEOF
30611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30612 ac_datarootdir_hack='
30613 s&@datadir@&$datadir&g
30614 s&@docdir@&$docdir&g
30615 s&@infodir@&$infodir&g
30616 s&@localedir@&$localedir&g
30617 s&@mandir@&$mandir&g
30618 s&\\\${datarootdir}&$datarootdir&g' ;;
30619 esac
30620 _ACEOF
30622 # Neutralize VPATH when `$srcdir' = `.'.
30623 # Shell code in configure.ac might set extrasub.
30624 # FIXME: do we really want to maintain this feature?
30625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30626 ac_sed_extra="$ac_vpsub
30627 $extrasub
30628 _ACEOF
30629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30632 s|@configure_input@|$ac_sed_conf_input|;t t
30633 s&@top_builddir@&$ac_top_builddir_sub&;t t
30634 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30635 s&@srcdir@&$ac_srcdir&;t t
30636 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30637 s&@top_srcdir@&$ac_top_srcdir&;t t
30638 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30639 s&@builddir@&$ac_builddir&;t t
30640 s&@abs_builddir@&$ac_abs_builddir&;t t
30641 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30642 s&@INSTALL@&$ac_INSTALL&;t t
30643 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30644 $ac_datarootdir_hack
30646 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30647 if $ac_cs_awk_getline; then
30648 $AWK -f "$tmp/subs.awk"
30649 else
30650 $AWK -f "$tmp/subs.awk" | $SHELL
30651 fi >$tmp/out \
30652 || as_fn_error "could not create $ac_file" "$LINENO" 5
30654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30655 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30656 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30658 which seems to be undefined. Please make sure it is defined." >&5
30659 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30660 which seems to be undefined. Please make sure it is defined." >&2;}
30662 rm -f "$tmp/stdin"
30663 case $ac_file in
30664 -) cat "$tmp/out" && rm -f "$tmp/out";;
30665 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30666 esac \
30667 || as_fn_error "could not create $ac_file" "$LINENO" 5
30671 # CONFIG_HEADER
30673 if test x"$ac_file" != x-; then
30675 $as_echo "/* $configure_input */" \
30676 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30677 } >"$tmp/config.h" \
30678 || as_fn_error "could not create $ac_file" "$LINENO" 5
30679 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30680 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30681 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30682 else
30683 rm -f "$ac_file"
30684 mv "$tmp/config.h" "$ac_file" \
30685 || as_fn_error "could not create $ac_file" "$LINENO" 5
30687 else
30688 $as_echo "/* $configure_input */" \
30689 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30690 || as_fn_error "could not create -" "$LINENO" 5
30692 # Compute "$ac_file"'s index in $config_headers.
30693 _am_arg="$ac_file"
30694 _am_stamp_count=1
30695 for _am_header in $config_headers :; do
30696 case $_am_header in
30697 $_am_arg | $_am_arg:* )
30698 break ;;
30700 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30701 esac
30702 done
30703 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30704 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30705 X"$_am_arg" : 'X\(//\)[^/]' \| \
30706 X"$_am_arg" : 'X\(//\)$' \| \
30707 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30708 $as_echo X"$_am_arg" |
30709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30710 s//\1/
30713 /^X\(\/\/\)[^/].*/{
30714 s//\1/
30717 /^X\(\/\/\)$/{
30718 s//\1/
30721 /^X\(\/\).*/{
30722 s//\1/
30725 s/.*/./; q'`/stamp-h$_am_stamp_count
30728 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30729 $as_echo "$as_me: executing $ac_file commands" >&6;}
30731 esac
30734 case $ac_file$ac_mode in
30735 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30736 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30737 # are listed without --file. Let's play safe and only enable the eval
30738 # if we detect the quoting.
30739 case $CONFIG_FILES in
30740 *\'*) eval set x "$CONFIG_FILES" ;;
30741 *) set x $CONFIG_FILES ;;
30742 esac
30743 shift
30744 for mf
30746 # Strip MF so we end up with the name of the file.
30747 mf=`echo "$mf" | sed -e 's/:.*$//'`
30748 # Check whether this is an Automake generated Makefile or not.
30749 # We used to match only the files named `Makefile.in', but
30750 # some people rename them; so instead we look at the file content.
30751 # Grep'ing the first line is not enough: some people post-process
30752 # each Makefile.in and add a new line on top of each file to say so.
30753 # Grep'ing the whole file is not good either: AIX grep has a line
30754 # limit of 2048, but all sed's we know have understand at least 4000.
30755 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30756 dirpart=`$as_dirname -- "$mf" ||
30757 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30758 X"$mf" : 'X\(//\)[^/]' \| \
30759 X"$mf" : 'X\(//\)$' \| \
30760 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30761 $as_echo X"$mf" |
30762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30763 s//\1/
30766 /^X\(\/\/\)[^/].*/{
30767 s//\1/
30770 /^X\(\/\/\)$/{
30771 s//\1/
30774 /^X\(\/\).*/{
30775 s//\1/
30778 s/.*/./; q'`
30779 else
30780 continue
30782 # Extract the definition of DEPDIR, am__include, and am__quote
30783 # from the Makefile without running `make'.
30784 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30785 test -z "$DEPDIR" && continue
30786 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30787 test -z "am__include" && continue
30788 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30789 # When using ansi2knr, U may be empty or an underscore; expand it
30790 U=`sed -n 's/^U = //p' < "$mf"`
30791 # Find all dependency output files, they are included files with
30792 # $(DEPDIR) in their names. We invoke sed twice because it is the
30793 # simplest approach to changing $(DEPDIR) to its actual value in the
30794 # expansion.
30795 for file in `sed -n "
30796 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30797 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30798 # Make sure the directory exists.
30799 test -f "$dirpart/$file" && continue
30800 fdir=`$as_dirname -- "$file" ||
30801 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30802 X"$file" : 'X\(//\)[^/]' \| \
30803 X"$file" : 'X\(//\)$' \| \
30804 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30805 $as_echo X"$file" |
30806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30807 s//\1/
30810 /^X\(\/\/\)[^/].*/{
30811 s//\1/
30814 /^X\(\/\/\)$/{
30815 s//\1/
30818 /^X\(\/\).*/{
30819 s//\1/
30822 s/.*/./; q'`
30823 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30824 # echo "creating $dirpart/$file"
30825 echo '# dummy' > "$dirpart/$file"
30826 done
30827 done
30830 "src/epaths.h":C)
30831 if test "${opsys}" = "mingw32"; then
30832 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
30833 else
30834 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
30837 "src/.gdbinit":C)
30838 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
30839 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
30843 esac
30844 done # for ac_tag
30847 as_fn_exit 0
30848 _ACEOF
30849 ac_clean_files=$ac_clean_files_save
30851 test $ac_write_fail = 0 ||
30852 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30855 # configure is writing to config.log, and then calls config.status.
30856 # config.status does its own redirection, appending to config.log.
30857 # Unfortunately, on DOS this fails, as config.log is still kept open
30858 # by configure, so config.status won't be able to write to it; its
30859 # output is simply discarded. So we exec the FD to /dev/null,
30860 # effectively closing config.log, so it can be properly (re)opened and
30861 # appended to by config.status. When coming back to configure, we
30862 # need to make the FD available again.
30863 if test "$no_create" != yes; then
30864 ac_cs_success=:
30865 ac_config_status_args=
30866 test "$silent" = yes &&
30867 ac_config_status_args="$ac_config_status_args --quiet"
30868 exec 5>/dev/null
30869 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30870 exec 5>>config.log
30871 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30872 # would make configure fail if this is the last instruction.
30873 $ac_cs_success || as_fn_exit $?
30875 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30877 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}