Document problems with Windows file names that end in blanks.
[emacs.git] / autogen / configure
bloba82c52daf982cf1406f9253ff2d231ee81e4eaa5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.3.50'
553 PACKAGE_STRING='emacs 24.3.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 WINDOW_SYSTEM_OBJ
608 EMACS_HEAPSIZE
609 TEMACS_POST_LINK
610 ADDSECTION
611 LD_SWITCH_SYSTEM_TEMACS
612 LIBGNU_LTLIBDEPS
613 LIBGNU_LIBDEPS
614 gltests_WITNESS
615 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
616 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
617 gl_GNULIB_ENABLED_tempname_FALSE
618 gl_GNULIB_ENABLED_tempname_TRUE
619 gl_GNULIB_ENABLED_strtoull_FALSE
620 gl_GNULIB_ENABLED_strtoull_TRUE
621 gl_GNULIB_ENABLED_strtoll_FALSE
622 gl_GNULIB_ENABLED_strtoll_TRUE
623 gl_GNULIB_ENABLED_stat_FALSE
624 gl_GNULIB_ENABLED_stat_TRUE
625 gl_GNULIB_ENABLED_secure_getenv_FALSE
626 gl_GNULIB_ENABLED_secure_getenv_TRUE
627 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
628 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
629 gl_GNULIB_ENABLED_pathmax_FALSE
630 gl_GNULIB_ENABLED_pathmax_TRUE
631 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
632 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
633 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
634 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
635 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
636 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
637 gl_GNULIB_ENABLED_getgroups_FALSE
638 gl_GNULIB_ENABLED_getgroups_TRUE
639 gl_GNULIB_ENABLED_getdtablesize_FALSE
640 gl_GNULIB_ENABLED_getdtablesize_TRUE
641 gl_GNULIB_ENABLED_euidaccess_FALSE
642 gl_GNULIB_ENABLED_euidaccess_TRUE
643 gl_GNULIB_ENABLED_dosname_FALSE
644 gl_GNULIB_ENABLED_dosname_TRUE
645 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
646 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
647 LTLIBINTL
648 LIBINTL
649 LIB_EACCESS
650 WINDOWS_64_BIT_OFF_T
651 HAVE_UNISTD_H
652 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
653 NEXT_UNISTD_H
654 LIB_TIMER_TIME
655 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
656 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
657 TIME_H_DEFINES_STRUCT_TIMESPEC
658 NEXT_AS_FIRST_DIRECTIVE_TIME_H
659 NEXT_TIME_H
660 WINDOWS_64_BIT_ST_SIZE
661 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
662 NEXT_SYS_STAT_H
663 NEXT_AS_FIRST_DIRECTIVE_STRING_H
664 NEXT_STRING_H
665 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
666 NEXT_STDLIB_H
667 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
668 NEXT_STDIO_H
669 REPLACE_VSPRINTF
670 REPLACE_VSNPRINTF
671 REPLACE_VPRINTF
672 REPLACE_VFPRINTF
673 REPLACE_VDPRINTF
674 REPLACE_VASPRINTF
675 REPLACE_TMPFILE
676 REPLACE_STDIO_WRITE_FUNCS
677 REPLACE_STDIO_READ_FUNCS
678 REPLACE_SPRINTF
679 REPLACE_SNPRINTF
680 REPLACE_RENAMEAT
681 REPLACE_RENAME
682 REPLACE_REMOVE
683 REPLACE_PRINTF
684 REPLACE_POPEN
685 REPLACE_PERROR
686 REPLACE_OBSTACK_PRINTF
687 REPLACE_GETLINE
688 REPLACE_GETDELIM
689 REPLACE_FTELLO
690 REPLACE_FTELL
691 REPLACE_FSEEKO
692 REPLACE_FSEEK
693 REPLACE_FREOPEN
694 REPLACE_FPURGE
695 REPLACE_FPRINTF
696 REPLACE_FOPEN
697 REPLACE_FFLUSH
698 REPLACE_FDOPEN
699 REPLACE_FCLOSE
700 REPLACE_DPRINTF
701 HAVE_VDPRINTF
702 HAVE_VASPRINTF
703 HAVE_RENAMEAT
704 HAVE_POPEN
705 HAVE_PCLOSE
706 HAVE_FTELLO
707 HAVE_FSEEKO
708 HAVE_DPRINTF
709 HAVE_DECL_VSNPRINTF
710 HAVE_DECL_SNPRINTF
711 HAVE_DECL_OBSTACK_PRINTF
712 HAVE_DECL_GETLINE
713 HAVE_DECL_GETDELIM
714 HAVE_DECL_FTELLO
715 HAVE_DECL_FSEEKO
716 HAVE_DECL_FPURGE
717 GNULIB_VSPRINTF_POSIX
718 GNULIB_VSNPRINTF
719 GNULIB_VPRINTF_POSIX
720 GNULIB_VPRINTF
721 GNULIB_VFPRINTF_POSIX
722 GNULIB_VFPRINTF
723 GNULIB_VDPRINTF
724 GNULIB_VSCANF
725 GNULIB_VFSCANF
726 GNULIB_VASPRINTF
727 GNULIB_TMPFILE
728 GNULIB_STDIO_H_SIGPIPE
729 GNULIB_STDIO_H_NONBLOCKING
730 GNULIB_SPRINTF_POSIX
731 GNULIB_SNPRINTF
732 GNULIB_SCANF
733 GNULIB_RENAMEAT
734 GNULIB_RENAME
735 GNULIB_REMOVE
736 GNULIB_PUTS
737 GNULIB_PUTCHAR
738 GNULIB_PUTC
739 GNULIB_PRINTF_POSIX
740 GNULIB_PRINTF
741 GNULIB_POPEN
742 GNULIB_PERROR
743 GNULIB_PCLOSE
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
746 GNULIB_GETLINE
747 GNULIB_GETDELIM
748 GNULIB_GETCHAR
749 GNULIB_GETC
750 GNULIB_FWRITE
751 GNULIB_FTELLO
752 GNULIB_FTELL
753 GNULIB_FSEEKO
754 GNULIB_FSEEK
755 GNULIB_FSCANF
756 GNULIB_FREOPEN
757 GNULIB_FREAD
758 GNULIB_FPUTS
759 GNULIB_FPUTC
760 GNULIB_FPURGE
761 GNULIB_FPRINTF_POSIX
762 GNULIB_FPRINTF
763 GNULIB_FOPEN
764 GNULIB_FGETS
765 GNULIB_FGETC
766 GNULIB_FFLUSH
767 GNULIB_FDOPEN
768 GNULIB_FCLOSE
769 GNULIB_DPRINTF
770 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
771 NEXT_STDDEF_H
772 GL_GENERATE_STDDEF_H_FALSE
773 GL_GENERATE_STDDEF_H_TRUE
774 STDDEF_H
775 HAVE_WCHAR_T
776 REPLACE_NULL
777 HAVE__BOOL
778 GL_GENERATE_STDBOOL_H_FALSE
779 GL_GENERATE_STDBOOL_H_TRUE
780 STDBOOL_H
781 GL_GENERATE_STDARG_H_FALSE
782 GL_GENERATE_STDARG_H_TRUE
783 STDARG_H
784 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
785 NEXT_STDARG_H
786 GL_GENERATE_STDALIGN_H_FALSE
787 GL_GENERATE_STDALIGN_H_TRUE
788 STDALIGN_H
789 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
790 NEXT_SIGNAL_H
791 USE_ACL
792 LIB_ACL
793 LIB_PTHREAD_SIGMASK
794 REPLACE_RAISE
795 REPLACE_PTHREAD_SIGMASK
796 HAVE_SIGHANDLER_T
797 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
798 HAVE_STRUCT_SIGACTION_SA_SIGACTION
799 HAVE_SIGACTION
800 HAVE_SIGINFO_T
801 HAVE_SIGSET_T
802 HAVE_RAISE
803 HAVE_PTHREAD_SIGMASK
804 HAVE_POSIX_SIGNALBLOCKING
805 GNULIB_SIGACTION
806 GNULIB_SIGPROCMASK
807 GNULIB_SIGNAL_H_SIGPIPE
808 GNULIB_RAISE
809 GNULIB_PTHREAD_SIGMASK
810 HAVE_SYS_SELECT_H
811 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
812 NEXT_SYS_SELECT_H
813 REPLACE_SELECT
814 REPLACE_PSELECT
815 HAVE_PSELECT
816 GNULIB_SELECT
817 GNULIB_PSELECT
818 REPLACE_TIMEGM
819 REPLACE_NANOSLEEP
820 REPLACE_MKTIME
821 REPLACE_LOCALTIME_R
822 HAVE_TIMEGM
823 HAVE_STRPTIME
824 HAVE_NANOSLEEP
825 HAVE_DECL_LOCALTIME_R
826 GNULIB_TIME_R
827 GNULIB_TIMEGM
828 GNULIB_STRPTIME
829 GNULIB_NANOSLEEP
830 GNULIB_MKTIME
831 UNDEFINE_STRTOK_R
832 REPLACE_STRTOK_R
833 REPLACE_STRSIGNAL
834 REPLACE_STRNLEN
835 REPLACE_STRNDUP
836 REPLACE_STRNCAT
837 REPLACE_STRERROR_R
838 REPLACE_STRERROR
839 REPLACE_STRCHRNUL
840 REPLACE_STRCASESTR
841 REPLACE_STRSTR
842 REPLACE_STRDUP
843 REPLACE_STPNCPY
844 REPLACE_MEMMEM
845 REPLACE_MEMCHR
846 HAVE_STRVERSCMP
847 HAVE_DECL_STRSIGNAL
848 HAVE_DECL_STRERROR_R
849 HAVE_DECL_STRTOK_R
850 HAVE_STRCASESTR
851 HAVE_STRSEP
852 HAVE_STRPBRK
853 HAVE_DECL_STRNLEN
854 HAVE_DECL_STRNDUP
855 HAVE_DECL_STRDUP
856 HAVE_STRCHRNUL
857 HAVE_STPNCPY
858 HAVE_STPCPY
859 HAVE_RAWMEMCHR
860 HAVE_DECL_MEMRCHR
861 HAVE_MEMPCPY
862 HAVE_DECL_MEMMEM
863 HAVE_MEMCHR
864 HAVE_FFSLL
865 HAVE_FFSL
866 HAVE_MBSLEN
867 GNULIB_STRVERSCMP
868 GNULIB_STRSIGNAL
869 GNULIB_STRERROR_R
870 GNULIB_STRERROR
871 GNULIB_MBSTOK_R
872 GNULIB_MBSSEP
873 GNULIB_MBSSPN
874 GNULIB_MBSPBRK
875 GNULIB_MBSCSPN
876 GNULIB_MBSCASESTR
877 GNULIB_MBSPCASECMP
878 GNULIB_MBSNCASECMP
879 GNULIB_MBSCASECMP
880 GNULIB_MBSSTR
881 GNULIB_MBSRCHR
882 GNULIB_MBSCHR
883 GNULIB_MBSNLEN
884 GNULIB_MBSLEN
885 GNULIB_STRTOK_R
886 GNULIB_STRCASESTR
887 GNULIB_STRSTR
888 GNULIB_STRSEP
889 GNULIB_STRPBRK
890 GNULIB_STRNLEN
891 GNULIB_STRNDUP
892 GNULIB_STRNCAT
893 GNULIB_STRDUP
894 GNULIB_STRCHRNUL
895 GNULIB_STPNCPY
896 GNULIB_STPCPY
897 GNULIB_RAWMEMCHR
898 GNULIB_MEMRCHR
899 GNULIB_MEMPCPY
900 GNULIB_MEMMEM
901 GNULIB_MEMCHR
902 GNULIB_FFSLL
903 GNULIB_FFSL
904 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
905 NEXT_INTTYPES_H
906 UINT64_MAX_EQ_ULONG_MAX
907 UINT32_MAX_LT_UINTMAX_MAX
908 PRIPTR_PREFIX
909 PRI_MACROS_BROKEN
910 INT64_MAX_EQ_LONG_MAX
911 INT32_MAX_LT_INTMAX_MAX
912 REPLACE_STRTOIMAX
913 HAVE_DECL_STRTOUMAX
914 HAVE_DECL_STRTOIMAX
915 HAVE_DECL_IMAXDIV
916 HAVE_DECL_IMAXABS
917 GNULIB_STRTOUMAX
918 GNULIB_STRTOIMAX
919 GNULIB_IMAXDIV
920 GNULIB_IMAXABS
921 GL_GENERATE_STDINT_H_FALSE
922 GL_GENERATE_STDINT_H_TRUE
923 STDINT_H
924 WINT_T_SUFFIX
925 WCHAR_T_SUFFIX
926 SIG_ATOMIC_T_SUFFIX
927 SIZE_T_SUFFIX
928 PTRDIFF_T_SUFFIX
929 HAVE_SIGNED_WINT_T
930 HAVE_SIGNED_WCHAR_T
931 HAVE_SIGNED_SIG_ATOMIC_T
932 BITSIZEOF_WINT_T
933 BITSIZEOF_WCHAR_T
934 BITSIZEOF_SIG_ATOMIC_T
935 BITSIZEOF_SIZE_T
936 BITSIZEOF_PTRDIFF_T
937 APPLE_UNIVERSAL_BUILD
938 HAVE_SYS_BITYPES_H
939 HAVE_SYS_INTTYPES_H
940 HAVE_STDINT_H
941 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
942 NEXT_STDINT_H
943 HAVE_SYS_TYPES_H
944 HAVE_INTTYPES_H
945 HAVE_WCHAR_H
946 HAVE_UNSIGNED_LONG_LONG_INT
947 HAVE_LONG_LONG_INT
948 HAVE_WINSOCK2_H
949 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
950 NEXT_SYS_TIME_H
951 REPLACE_STRUCT_TIMEVAL
952 REPLACE_GETTIMEOFDAY
953 HAVE_SYS_TIME_H
954 HAVE_STRUCT_TIMEVAL
955 HAVE_GETTIMEOFDAY
956 GNULIB_GETTIMEOFDAY
957 GNULIB_GL_UNISTD_H_GETOPT
958 GETOPT_H
959 HAVE_GETOPT_H
960 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
961 NEXT_GETOPT_H
962 GETLOADAVG_LIBS
963 REPLACE_WCTOMB
964 REPLACE_UNSETENV
965 REPLACE_STRTOD
966 REPLACE_SETENV
967 REPLACE_REALPATH
968 REPLACE_REALLOC
969 REPLACE_RANDOM_R
970 REPLACE_PUTENV
971 REPLACE_PTSNAME_R
972 REPLACE_PTSNAME
973 REPLACE_MKSTEMP
974 REPLACE_MBTOWC
975 REPLACE_MALLOC
976 REPLACE_CANONICALIZE_FILE_NAME
977 REPLACE_CALLOC
978 HAVE_DECL_UNSETENV
979 HAVE_UNLOCKPT
980 HAVE_SYS_LOADAVG_H
981 HAVE_STRUCT_RANDOM_DATA
982 HAVE_STRTOULL
983 HAVE_STRTOLL
984 HAVE_STRTOD
985 HAVE_DECL_SETENV
986 HAVE_SETENV
987 HAVE_SECURE_GETENV
988 HAVE_RPMATCH
989 HAVE_REALPATH
990 HAVE_RANDOM_R
991 HAVE_RANDOM_H
992 HAVE_RANDOM
993 HAVE_PTSNAME_R
994 HAVE_PTSNAME
995 HAVE_POSIX_OPENPT
996 HAVE_MKSTEMPS
997 HAVE_MKSTEMP
998 HAVE_MKOSTEMPS
999 HAVE_MKOSTEMP
1000 HAVE_MKDTEMP
1001 HAVE_GRANTPT
1002 HAVE_GETSUBOPT
1003 HAVE_DECL_GETLOADAVG
1004 HAVE_CANONICALIZE_FILE_NAME
1005 HAVE_ATOLL
1006 HAVE__EXIT
1007 GNULIB_WCTOMB
1008 GNULIB_UNSETENV
1009 GNULIB_UNLOCKPT
1010 GNULIB_SYSTEM_POSIX
1011 GNULIB_STRTOULL
1012 GNULIB_STRTOLL
1013 GNULIB_STRTOD
1014 GNULIB_SETENV
1015 GNULIB_SECURE_GETENV
1016 GNULIB_RPMATCH
1017 GNULIB_REALPATH
1018 GNULIB_REALLOC_POSIX
1019 GNULIB_RANDOM_R
1020 GNULIB_RANDOM
1021 GNULIB_PUTENV
1022 GNULIB_PTSNAME_R
1023 GNULIB_PTSNAME
1024 GNULIB_POSIX_OPENPT
1025 GNULIB_MKSTEMPS
1026 GNULIB_MKSTEMP
1027 GNULIB_MKOSTEMPS
1028 GNULIB_MKOSTEMP
1029 GNULIB_MKDTEMP
1030 GNULIB_MBTOWC
1031 GNULIB_MALLOC_POSIX
1032 GNULIB_GRANTPT
1033 GNULIB_GETSUBOPT
1034 GNULIB_GETLOADAVG
1035 GNULIB_CANONICALIZE_FILE_NAME
1036 GNULIB_CALLOC_POSIX
1037 GNULIB_ATOLL
1038 GNULIB__EXIT
1039 REPLACE_UTIMENSAT
1040 REPLACE_STAT
1041 REPLACE_MKNOD
1042 REPLACE_MKFIFO
1043 REPLACE_MKDIR
1044 REPLACE_LSTAT
1045 REPLACE_FUTIMENS
1046 REPLACE_FSTATAT
1047 REPLACE_FSTAT
1048 HAVE_UTIMENSAT
1049 HAVE_MKNODAT
1050 HAVE_MKNOD
1051 HAVE_MKFIFOAT
1052 HAVE_MKFIFO
1053 HAVE_MKDIRAT
1054 HAVE_LSTAT
1055 HAVE_LCHMOD
1056 HAVE_FUTIMENS
1057 HAVE_FSTATAT
1058 HAVE_FCHMODAT
1059 GNULIB_UTIMENSAT
1060 GNULIB_STAT
1061 GNULIB_MKNODAT
1062 GNULIB_MKNOD
1063 GNULIB_MKFIFOAT
1064 GNULIB_MKFIFO
1065 GNULIB_MKDIRAT
1066 GNULIB_LSTAT
1067 GNULIB_LCHMOD
1068 GNULIB_FUTIMENS
1069 GNULIB_FSTATAT
1070 GNULIB_FSTAT
1071 GNULIB_FCHMODAT
1072 LIB_FDATASYNC
1073 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1074 NEXT_FCNTL_H
1075 REPLACE_OPENAT
1076 REPLACE_OPEN
1077 REPLACE_FCNTL
1078 HAVE_OPENAT
1079 HAVE_FCNTL
1080 GNULIB_OPENAT
1081 GNULIB_OPEN
1082 GNULIB_NONBLOCKING
1083 GNULIB_FCNTL
1084 GL_GENERATE_EXECINFO_H_FALSE
1085 GL_GENERATE_EXECINFO_H_TRUE
1086 LIB_EXECINFO
1087 EXECINFO_H
1088 EOVERFLOW_VALUE
1089 EOVERFLOW_HIDDEN
1090 ENOLINK_VALUE
1091 ENOLINK_HIDDEN
1092 EMULTIHOP_VALUE
1093 EMULTIHOP_HIDDEN
1094 GL_GENERATE_ERRNO_H_FALSE
1095 GL_GENERATE_ERRNO_H_TRUE
1096 ERRNO_H
1097 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1098 NEXT_ERRNO_H
1099 HAVE_DIRENT_H
1100 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1101 NEXT_DIRENT_H
1102 PRAGMA_COLUMNS
1103 PRAGMA_SYSTEM_HEADER
1104 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1105 INCLUDE_NEXT
1106 REPLACE_FDOPENDIR
1107 REPLACE_DIRFD
1108 REPLACE_CLOSEDIR
1109 REPLACE_OPENDIR
1110 HAVE_ALPHASORT
1111 HAVE_SCANDIR
1112 HAVE_FDOPENDIR
1113 HAVE_DECL_FDOPENDIR
1114 HAVE_DECL_DIRFD
1115 HAVE_CLOSEDIR
1116 HAVE_REWINDDIR
1117 HAVE_READDIR
1118 HAVE_OPENDIR
1119 GNULIB_ALPHASORT
1120 GNULIB_SCANDIR
1121 GNULIB_FDOPENDIR
1122 GNULIB_DIRFD
1123 GNULIB_CLOSEDIR
1124 GNULIB_REWINDDIR
1125 GNULIB_READDIR
1126 GNULIB_OPENDIR
1127 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1128 UNISTD_H_HAVE_WINSOCK2_H
1129 REPLACE_WRITE
1130 REPLACE_USLEEP
1131 REPLACE_UNLINKAT
1132 REPLACE_UNLINK
1133 REPLACE_TTYNAME_R
1134 REPLACE_SYMLINK
1135 REPLACE_SLEEP
1136 REPLACE_RMDIR
1137 REPLACE_READLINK
1138 REPLACE_READ
1139 REPLACE_PWRITE
1140 REPLACE_PREAD
1141 REPLACE_LSEEK
1142 REPLACE_LINKAT
1143 REPLACE_LINK
1144 REPLACE_LCHOWN
1145 REPLACE_ISATTY
1146 REPLACE_GETPAGESIZE
1147 REPLACE_GETGROUPS
1148 REPLACE_GETLOGIN_R
1149 REPLACE_GETDOMAINNAME
1150 REPLACE_GETCWD
1151 REPLACE_FTRUNCATE
1152 REPLACE_FCHOWNAT
1153 REPLACE_DUP2
1154 REPLACE_DUP
1155 REPLACE_CLOSE
1156 REPLACE_CHOWN
1157 HAVE_SYS_PARAM_H
1158 HAVE_OS_H
1159 HAVE_DECL_TTYNAME_R
1160 HAVE_DECL_SETHOSTNAME
1161 HAVE_DECL_GETUSERSHELL
1162 HAVE_DECL_GETPAGESIZE
1163 HAVE_DECL_GETLOGIN_R
1164 HAVE_DECL_GETDOMAINNAME
1165 HAVE_DECL_FDATASYNC
1166 HAVE_DECL_FCHDIR
1167 HAVE_DECL_ENVIRON
1168 HAVE_USLEEP
1169 HAVE_UNLINKAT
1170 HAVE_SYMLINKAT
1171 HAVE_SYMLINK
1172 HAVE_SLEEP
1173 HAVE_SETHOSTNAME
1174 HAVE_READLINKAT
1175 HAVE_READLINK
1176 HAVE_PWRITE
1177 HAVE_PREAD
1178 HAVE_PIPE2
1179 HAVE_PIPE
1180 HAVE_LINKAT
1181 HAVE_LINK
1182 HAVE_LCHOWN
1183 HAVE_GROUP_MEMBER
1184 HAVE_GETPAGESIZE
1185 HAVE_GETLOGIN
1186 HAVE_GETHOSTNAME
1187 HAVE_GETGROUPS
1188 HAVE_GETDTABLESIZE
1189 HAVE_FTRUNCATE
1190 HAVE_FSYNC
1191 HAVE_FDATASYNC
1192 HAVE_FCHOWNAT
1193 HAVE_FCHDIR
1194 HAVE_FACCESSAT
1195 HAVE_EUIDACCESS
1196 HAVE_DUP3
1197 HAVE_DUP2
1198 HAVE_CHOWN
1199 GNULIB_WRITE
1200 GNULIB_USLEEP
1201 GNULIB_UNLINKAT
1202 GNULIB_UNLINK
1203 GNULIB_UNISTD_H_SIGPIPE
1204 GNULIB_UNISTD_H_NONBLOCKING
1205 GNULIB_TTYNAME_R
1206 GNULIB_SYMLINKAT
1207 GNULIB_SYMLINK
1208 GNULIB_SLEEP
1209 GNULIB_SETHOSTNAME
1210 GNULIB_RMDIR
1211 GNULIB_READLINKAT
1212 GNULIB_READLINK
1213 GNULIB_READ
1214 GNULIB_PWRITE
1215 GNULIB_PREAD
1216 GNULIB_PIPE2
1217 GNULIB_PIPE
1218 GNULIB_LSEEK
1219 GNULIB_LINKAT
1220 GNULIB_LINK
1221 GNULIB_LCHOWN
1222 GNULIB_ISATTY
1223 GNULIB_GROUP_MEMBER
1224 GNULIB_GETUSERSHELL
1225 GNULIB_GETPAGESIZE
1226 GNULIB_GETLOGIN_R
1227 GNULIB_GETLOGIN
1228 GNULIB_GETHOSTNAME
1229 GNULIB_GETGROUPS
1230 GNULIB_GETDTABLESIZE
1231 GNULIB_GETDOMAINNAME
1232 GNULIB_GETCWD
1233 GNULIB_FTRUNCATE
1234 GNULIB_FSYNC
1235 GNULIB_FDATASYNC
1236 GNULIB_FCHOWNAT
1237 GNULIB_FCHDIR
1238 GNULIB_FACCESSAT
1239 GNULIB_EUIDACCESS
1240 GNULIB_ENVIRON
1241 GNULIB_DUP3
1242 GNULIB_DUP2
1243 GNULIB_DUP
1244 GNULIB_CLOSE
1245 GNULIB_CHOWN
1246 GNULIB_CHDIR
1247 LIB_CLOCK_GETTIME
1248 GL_GENERATE_ALLOCA_H_FALSE
1249 GL_GENERATE_ALLOCA_H_TRUE
1250 ALLOCA_H
1251 ALLOCA
1252 GL_COND_LIBTOOL_FALSE
1253 GL_COND_LIBTOOL_TRUE
1254 POST_ALLOC_OBJ
1255 PRE_ALLOC_OBJ
1256 CYGWIN_OBJ
1257 RALLOC_OBJ
1258 OLDXMENU_DEPS
1259 LIBX_OTHER
1260 LIBXMENU
1261 OLDXMENU
1262 OLDXMENU_TARGET
1263 LIBXT_OTHER
1264 TOOLKIT_LIBW
1265 WIDGET_OBJ
1266 XOBJ
1267 XMENU_OBJ
1268 FONT_OBJ
1269 OTHER_FILES
1270 GNU_OBJC_CFLAGS
1271 ns_appsrc
1272 ns_appresdir
1273 ns_appbindir
1274 ns_appdir
1275 X_TOOLKIT_TYPE
1276 GNUSTEP_CFLAGS
1277 C_SWITCH_X_SITE
1278 LD_SWITCH_X_SITE
1279 gameuser
1280 gamedir
1281 bitmapdir
1282 etcdocdir
1283 archlibdir
1284 etcdir
1285 x_default_search_path
1286 lisppath
1287 locallisppath
1288 standardlisppath
1289 leimdir
1290 lispdir
1291 srcdir
1292 canonical
1293 configuration
1294 version
1295 copyright
1296 XGSELOBJ
1297 KRB4LIB
1298 DESLIB
1299 KRB5LIB
1300 CRYPTOLIB
1301 COM_ERRLIB
1302 LIBRESOLV
1303 LIBHESIOD
1304 TERMCAP_OBJ
1305 LIBS_TERMCAP
1306 BLESSMAIL_TARGET
1307 LIBS_MAIL
1308 liblockfile
1309 LIBXML2_LIBS
1310 LIBXML2_CFLAGS
1311 XINERAMA_LIBS
1312 XINERAMA_CFLAGS
1313 XRANDR_LIBS
1314 XRANDR_CFLAGS
1315 LIBXSM
1316 LIBGPM
1317 LIBGIF
1318 LIBTIFF
1319 LIBZ
1320 LIBPNG
1321 LIBJPEG
1322 LIBXPM
1323 M17N_FLT_LIBS
1324 M17N_FLT_CFLAGS
1325 LIBOTF_LIBS
1326 LIBOTF_CFLAGS
1327 FREETYPE_LIBS
1328 FREETYPE_CFLAGS
1329 XFT_LIBS
1330 XFT_CFLAGS
1331 FONTCONFIG_LIBS
1332 FONTCONFIG_CFLAGS
1333 LIBXMU
1334 LIBXTR6
1335 NOTIFY_OBJ
1336 GFILENOTIFY_LIBS
1337 GFILENOTIFY_CFLAGS
1338 LIBGNUTLS_LIBS
1339 LIBGNUTLS_CFLAGS
1340 LIBSELINUX_LIBS
1341 SETTINGS_LIBS
1342 SETTINGS_CFLAGS
1343 GOBJECT_LIBS
1344 GOBJECT_CFLAGS
1345 GCONF_LIBS
1346 GCONF_CFLAGS
1347 GSETTINGS_LIBS
1348 GSETTINGS_CFLAGS
1349 DBUS_OBJ
1350 DBUS_LIBS
1351 DBUS_CFLAGS
1352 GTK_OBJ
1353 GTK_LIBS
1354 GTK_CFLAGS
1355 IMAGEMAGICK_LIBS
1356 IMAGEMAGICK_CFLAGS
1357 RSVG_LIBS
1358 RSVG_CFLAGS
1359 LIB_PTHREAD
1360 VMLIMIT_OBJ
1361 GMALLOC_OBJ
1362 HAVE_XSERVER
1363 XARGS_LIMIT
1364 NTLIB
1365 LIB_WSOCK32
1366 LIBS_ECLIENT
1367 CM_OBJ
1368 NTDIR
1369 FIRSTFILE_OBJ
1370 W32_RES_LINK
1371 CLIENTW
1372 CLIENTRES
1373 UPDATE_MANIFEST
1374 EMACS_MANIFEST
1375 EMACSRES
1376 W32_LIBS
1377 W32_OBJ
1378 WINDRES
1379 NS_OBJC_OBJ
1380 NS_OBJ
1381 ns_self_contained
1382 INSTALL_ARCH_INDEP_EXTRA
1383 LIBS_GNUSTEP
1384 LD_SWITCH_X_SITE_RPATH
1385 XMKMF
1386 DEPFLAGS
1387 MKDEPDIR
1388 CFLAGS_SOUND
1389 ALSA_LIBS
1390 ALSA_CFLAGS
1391 LIBSOUND
1392 PKG_CONFIG
1393 LIB_MATH
1394 LIBS_SYSTEM
1395 C_SWITCH_SYSTEM
1396 UNEXEC_OBJ
1397 C_SWITCH_MACHINE
1398 LD_SWITCH_SYSTEM
1399 CANNOT_DUMP
1400 INFO_OPTS
1401 INFO_EXT
1402 HAVE_MAKEINFO
1403 PAXCTL
1404 GZIP_PROG
1405 INSTALL_INFO
1406 LN_S_FILEONLY
1407 GNULIB_WARN_CFLAGS
1408 WARN_CFLAGS
1409 WERROR_CFLAGS
1410 RANLIB
1411 ARFLAGS
1413 EGREP
1414 GREP
1416 BUILDING_FOR_WINDOWSNT_FALSE
1417 BUILDING_FOR_WINDOWSNT_TRUE
1418 am__fastdepCC_FALSE
1419 am__fastdepCC_TRUE
1420 CCDEPMODE
1421 AMDEPBACKSLASH
1422 AMDEP_FALSE
1423 AMDEP_TRUE
1424 am__quote
1425 am__include
1426 DEPDIR
1427 OBJEXT
1428 EXEEXT
1429 ac_ct_CC
1430 CPPFLAGS
1431 LDFLAGS
1432 CFLAGS
1434 host_os
1435 host_vendor
1436 host_cpu
1437 host
1438 build_os
1439 build_vendor
1440 build_cpu
1441 build
1442 PROFILING_CFLAGS
1443 GZIP_INFO
1444 cache_file
1445 am__untar
1446 am__tar
1447 AMTAR
1448 am__leading_dot
1449 SET_MAKE
1451 mkdir_p
1452 MKDIR_P
1453 INSTALL_STRIP_PROGRAM
1454 STRIP
1455 install_sh
1456 MAKEINFO
1457 AUTOHEADER
1458 AUTOMAKE
1459 AUTOCONF
1460 ACLOCAL
1461 VERSION
1462 PACKAGE
1463 CYGPATH_W
1464 am__isrc
1465 INSTALL_DATA
1466 INSTALL_SCRIPT
1467 INSTALL_PROGRAM
1468 target_alias
1469 host_alias
1470 build_alias
1471 LIBS
1472 ECHO_T
1473 ECHO_N
1474 ECHO_C
1475 DEFS
1476 mandir
1477 localedir
1478 libdir
1479 psdir
1480 pdfdir
1481 dvidir
1482 htmldir
1483 infodir
1484 docdir
1485 oldincludedir
1486 includedir
1487 localstatedir
1488 sharedstatedir
1489 sysconfdir
1490 datadir
1491 datarootdir
1492 libexecdir
1493 sbindir
1494 bindir
1495 program_transform_name
1496 prefix
1497 exec_prefix
1498 PACKAGE_URL
1499 PACKAGE_BUGREPORT
1500 PACKAGE_STRING
1501 PACKAGE_VERSION
1502 PACKAGE_TARNAME
1503 PACKAGE_NAME
1504 PATH_SEPARATOR
1505 SHELL'
1506 ac_subst_files='deps_frag
1507 lisp_frag'
1508 ac_user_opts='
1509 enable_option_checking
1510 with_all
1511 with_pop
1512 with_kerberos
1513 with_kerberos5
1514 with_hesiod
1515 with_mmdf
1516 with_mail_unlink
1517 with_mailhost
1518 with_sound
1519 with_x_toolkit
1520 with_wide_int
1521 with_xpm
1522 with_jpeg
1523 with_tiff
1524 with_gif
1525 with_png
1526 with_rsvg
1527 with_xml2
1528 with_imagemagick
1529 with_xft
1530 with_libotf
1531 with_m17n_flt
1532 with_toolkit_scroll_bars
1533 with_xaw3d
1534 with_xim
1535 with_ns
1536 with_w32
1537 with_gpm
1538 with_dbus
1539 with_gconf
1540 with_gsettings
1541 with_selinux
1542 with_gnutls
1543 with_zlib
1544 with_file_notification
1545 with_makeinfo
1546 with_compress_info
1547 with_pkg_config_prog
1548 with_gameuser
1549 with_gnustep_conf
1550 enable_ns_self_contained
1551 enable_locallisppath
1552 enable_checking
1553 enable_check_lisp_object_type
1554 enable_profiling
1555 enable_autodepend
1556 enable_gtk_deprecation_warnings
1557 enable_dependency_tracking
1558 enable_largefile
1559 enable_gcc_warnings
1560 enable_link_time_optimization
1561 with_x
1562 enable_acl
1564 ac_precious_vars='build_alias
1565 host_alias
1566 target_alias
1568 CFLAGS
1569 LDFLAGS
1570 LIBS
1571 CPPFLAGS
1573 XMKMF'
1576 # Initialize some variables set by options.
1577 ac_init_help=
1578 ac_init_version=false
1579 ac_unrecognized_opts=
1580 ac_unrecognized_sep=
1581 # The variables have the same names as the options, with
1582 # dashes changed to underlines.
1583 cache_file=/dev/null
1584 exec_prefix=NONE
1585 no_create=
1586 no_recursion=
1587 prefix=NONE
1588 program_prefix=NONE
1589 program_suffix=NONE
1590 program_transform_name=s,x,x,
1591 silent=
1592 site=
1593 srcdir=
1594 verbose=
1595 x_includes=NONE
1596 x_libraries=NONE
1598 # Installation directory options.
1599 # These are left unexpanded so users can "make install exec_prefix=/foo"
1600 # and all the variables that are supposed to be based on exec_prefix
1601 # by default will actually change.
1602 # Use braces instead of parens because sh, perl, etc. also accept them.
1603 # (The list follows the same order as the GNU Coding Standards.)
1604 bindir='${exec_prefix}/bin'
1605 sbindir='${exec_prefix}/sbin'
1606 libexecdir='${exec_prefix}/libexec'
1607 datarootdir='${prefix}/share'
1608 datadir='${datarootdir}'
1609 sysconfdir='${prefix}/etc'
1610 sharedstatedir='${prefix}/com'
1611 localstatedir='${prefix}/var'
1612 includedir='${prefix}/include'
1613 oldincludedir='/usr/include'
1614 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1615 infodir='${datarootdir}/info'
1616 htmldir='${docdir}'
1617 dvidir='${docdir}'
1618 pdfdir='${docdir}'
1619 psdir='${docdir}'
1620 libdir='${exec_prefix}/lib'
1621 localedir='${datarootdir}/locale'
1622 mandir='${datarootdir}/man'
1624 ac_prev=
1625 ac_dashdash=
1626 for ac_option
1628 # If the previous option needs an argument, assign it.
1629 if test -n "$ac_prev"; then
1630 eval $ac_prev=\$ac_option
1631 ac_prev=
1632 continue
1635 case $ac_option in
1636 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1637 *) ac_optarg=yes ;;
1638 esac
1640 # Accept the important Cygnus configure options, so we can diagnose typos.
1642 case $ac_dashdash$ac_option in
1644 ac_dashdash=yes ;;
1646 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1647 ac_prev=bindir ;;
1648 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1649 bindir=$ac_optarg ;;
1651 -build | --build | --buil | --bui | --bu)
1652 ac_prev=build_alias ;;
1653 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1654 build_alias=$ac_optarg ;;
1656 -cache-file | --cache-file | --cache-fil | --cache-fi \
1657 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1658 ac_prev=cache_file ;;
1659 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1660 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1661 cache_file=$ac_optarg ;;
1663 --config-cache | -C)
1664 cache_file=config.cache ;;
1666 -datadir | --datadir | --datadi | --datad)
1667 ac_prev=datadir ;;
1668 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1669 datadir=$ac_optarg ;;
1671 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1672 | --dataroo | --dataro | --datar)
1673 ac_prev=datarootdir ;;
1674 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1675 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1676 datarootdir=$ac_optarg ;;
1678 -disable-* | --disable-*)
1679 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1680 # Reject names that are not valid shell variable names.
1681 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1682 as_fn_error "invalid feature name: $ac_useropt"
1683 ac_useropt_orig=$ac_useropt
1684 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1685 case $ac_user_opts in
1687 "enable_$ac_useropt"
1688 "*) ;;
1689 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1690 ac_unrecognized_sep=', ';;
1691 esac
1692 eval enable_$ac_useropt=no ;;
1694 -docdir | --docdir | --docdi | --doc | --do)
1695 ac_prev=docdir ;;
1696 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1697 docdir=$ac_optarg ;;
1699 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1700 ac_prev=dvidir ;;
1701 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1702 dvidir=$ac_optarg ;;
1704 -enable-* | --enable-*)
1705 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1706 # Reject names that are not valid shell variable names.
1707 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1708 as_fn_error "invalid feature name: $ac_useropt"
1709 ac_useropt_orig=$ac_useropt
1710 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1711 case $ac_user_opts in
1713 "enable_$ac_useropt"
1714 "*) ;;
1715 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1716 ac_unrecognized_sep=', ';;
1717 esac
1718 eval enable_$ac_useropt=\$ac_optarg ;;
1720 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1721 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1722 | --exec | --exe | --ex)
1723 ac_prev=exec_prefix ;;
1724 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1725 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1726 | --exec=* | --exe=* | --ex=*)
1727 exec_prefix=$ac_optarg ;;
1729 -gas | --gas | --ga | --g)
1730 # Obsolete; use --with-gas.
1731 with_gas=yes ;;
1733 -help | --help | --hel | --he | -h)
1734 ac_init_help=long ;;
1735 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1736 ac_init_help=recursive ;;
1737 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1738 ac_init_help=short ;;
1740 -host | --host | --hos | --ho)
1741 ac_prev=host_alias ;;
1742 -host=* | --host=* | --hos=* | --ho=*)
1743 host_alias=$ac_optarg ;;
1745 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1746 ac_prev=htmldir ;;
1747 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1748 | --ht=*)
1749 htmldir=$ac_optarg ;;
1751 -includedir | --includedir | --includedi | --included | --include \
1752 | --includ | --inclu | --incl | --inc)
1753 ac_prev=includedir ;;
1754 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1755 | --includ=* | --inclu=* | --incl=* | --inc=*)
1756 includedir=$ac_optarg ;;
1758 -infodir | --infodir | --infodi | --infod | --info | --inf)
1759 ac_prev=infodir ;;
1760 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1761 infodir=$ac_optarg ;;
1763 -libdir | --libdir | --libdi | --libd)
1764 ac_prev=libdir ;;
1765 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1766 libdir=$ac_optarg ;;
1768 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1769 | --libexe | --libex | --libe)
1770 ac_prev=libexecdir ;;
1771 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1772 | --libexe=* | --libex=* | --libe=*)
1773 libexecdir=$ac_optarg ;;
1775 -localedir | --localedir | --localedi | --localed | --locale)
1776 ac_prev=localedir ;;
1777 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1778 localedir=$ac_optarg ;;
1780 -localstatedir | --localstatedir | --localstatedi | --localstated \
1781 | --localstate | --localstat | --localsta | --localst | --locals)
1782 ac_prev=localstatedir ;;
1783 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1784 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1785 localstatedir=$ac_optarg ;;
1787 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1788 ac_prev=mandir ;;
1789 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1790 mandir=$ac_optarg ;;
1792 -nfp | --nfp | --nf)
1793 # Obsolete; use --without-fp.
1794 with_fp=no ;;
1796 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1797 | --no-cr | --no-c | -n)
1798 no_create=yes ;;
1800 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1801 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1802 no_recursion=yes ;;
1804 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1805 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1806 | --oldin | --oldi | --old | --ol | --o)
1807 ac_prev=oldincludedir ;;
1808 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1809 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1810 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1811 oldincludedir=$ac_optarg ;;
1813 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1814 ac_prev=prefix ;;
1815 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1816 prefix=$ac_optarg ;;
1818 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1819 | --program-pre | --program-pr | --program-p)
1820 ac_prev=program_prefix ;;
1821 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1822 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1823 program_prefix=$ac_optarg ;;
1825 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1826 | --program-suf | --program-su | --program-s)
1827 ac_prev=program_suffix ;;
1828 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1829 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1830 program_suffix=$ac_optarg ;;
1832 -program-transform-name | --program-transform-name \
1833 | --program-transform-nam | --program-transform-na \
1834 | --program-transform-n | --program-transform- \
1835 | --program-transform | --program-transfor \
1836 | --program-transfo | --program-transf \
1837 | --program-trans | --program-tran \
1838 | --progr-tra | --program-tr | --program-t)
1839 ac_prev=program_transform_name ;;
1840 -program-transform-name=* | --program-transform-name=* \
1841 | --program-transform-nam=* | --program-transform-na=* \
1842 | --program-transform-n=* | --program-transform-=* \
1843 | --program-transform=* | --program-transfor=* \
1844 | --program-transfo=* | --program-transf=* \
1845 | --program-trans=* | --program-tran=* \
1846 | --progr-tra=* | --program-tr=* | --program-t=*)
1847 program_transform_name=$ac_optarg ;;
1849 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1850 ac_prev=pdfdir ;;
1851 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1852 pdfdir=$ac_optarg ;;
1854 -psdir | --psdir | --psdi | --psd | --ps)
1855 ac_prev=psdir ;;
1856 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1857 psdir=$ac_optarg ;;
1859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1860 | -silent | --silent | --silen | --sile | --sil)
1861 silent=yes ;;
1863 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1864 ac_prev=sbindir ;;
1865 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1866 | --sbi=* | --sb=*)
1867 sbindir=$ac_optarg ;;
1869 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1870 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1871 | --sharedst | --shareds | --shared | --share | --shar \
1872 | --sha | --sh)
1873 ac_prev=sharedstatedir ;;
1874 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1875 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1876 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1877 | --sha=* | --sh=*)
1878 sharedstatedir=$ac_optarg ;;
1880 -site | --site | --sit)
1881 ac_prev=site ;;
1882 -site=* | --site=* | --sit=*)
1883 site=$ac_optarg ;;
1885 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1886 ac_prev=srcdir ;;
1887 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1888 srcdir=$ac_optarg ;;
1890 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1891 | --syscon | --sysco | --sysc | --sys | --sy)
1892 ac_prev=sysconfdir ;;
1893 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1894 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1895 sysconfdir=$ac_optarg ;;
1897 -target | --target | --targe | --targ | --tar | --ta | --t)
1898 ac_prev=target_alias ;;
1899 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1900 target_alias=$ac_optarg ;;
1902 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1903 verbose=yes ;;
1905 -version | --version | --versio | --versi | --vers | -V)
1906 ac_init_version=: ;;
1908 -with-* | --with-*)
1909 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1910 # Reject names that are not valid shell variable names.
1911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1912 as_fn_error "invalid package name: $ac_useropt"
1913 ac_useropt_orig=$ac_useropt
1914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1915 case $ac_user_opts in
1917 "with_$ac_useropt"
1918 "*) ;;
1919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1920 ac_unrecognized_sep=', ';;
1921 esac
1922 eval with_$ac_useropt=\$ac_optarg ;;
1924 -without-* | --without-*)
1925 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1926 # Reject names that are not valid shell variable names.
1927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1928 as_fn_error "invalid package name: $ac_useropt"
1929 ac_useropt_orig=$ac_useropt
1930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1931 case $ac_user_opts in
1933 "with_$ac_useropt"
1934 "*) ;;
1935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1936 ac_unrecognized_sep=', ';;
1937 esac
1938 eval with_$ac_useropt=no ;;
1940 --x)
1941 # Obsolete; use --with-x.
1942 with_x=yes ;;
1944 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1945 | --x-incl | --x-inc | --x-in | --x-i)
1946 ac_prev=x_includes ;;
1947 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1948 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1949 x_includes=$ac_optarg ;;
1951 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1952 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1953 ac_prev=x_libraries ;;
1954 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1955 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1956 x_libraries=$ac_optarg ;;
1958 -*) as_fn_error "unrecognized option: \`$ac_option'
1959 Try \`$0 --help' for more information."
1962 *=*)
1963 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1964 # Reject names that are not valid shell variable names.
1965 case $ac_envvar in #(
1966 '' | [0-9]* | *[!_$as_cr_alnum]* )
1967 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1968 esac
1969 eval $ac_envvar=\$ac_optarg
1970 export $ac_envvar ;;
1973 # FIXME: should be removed in autoconf 3.0.
1974 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1975 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1976 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1977 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1980 esac
1981 done
1983 if test -n "$ac_prev"; then
1984 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1985 as_fn_error "missing argument to $ac_option"
1988 if test -n "$ac_unrecognized_opts"; then
1989 case $enable_option_checking in
1990 no) ;;
1991 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1992 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1993 esac
1996 # Check all directory arguments for consistency.
1997 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1998 datadir sysconfdir sharedstatedir localstatedir includedir \
1999 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2000 libdir localedir mandir
2002 eval ac_val=\$$ac_var
2003 # Remove trailing slashes.
2004 case $ac_val in
2005 */ )
2006 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2007 eval $ac_var=\$ac_val;;
2008 esac
2009 # Be sure to have absolute directory names.
2010 case $ac_val in
2011 [\\/$]* | ?:[\\/]* ) continue;;
2012 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2013 esac
2014 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2015 done
2017 # There might be people who depend on the old broken behavior: `$host'
2018 # used to hold the argument of --host etc.
2019 # FIXME: To remove some day.
2020 build=$build_alias
2021 host=$host_alias
2022 target=$target_alias
2024 # FIXME: To remove some day.
2025 if test "x$host_alias" != x; then
2026 if test "x$build_alias" = x; then
2027 cross_compiling=maybe
2028 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2029 If a cross compiler is detected then cross compile mode will be used." >&2
2030 elif test "x$build_alias" != "x$host_alias"; then
2031 cross_compiling=yes
2035 ac_tool_prefix=
2036 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2038 test "$silent" = yes && exec 6>/dev/null
2041 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2042 ac_ls_di=`ls -di .` &&
2043 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2044 as_fn_error "working directory cannot be determined"
2045 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2046 as_fn_error "pwd does not report name of working directory"
2049 # Find the source files, if location was not specified.
2050 if test -z "$srcdir"; then
2051 ac_srcdir_defaulted=yes
2052 # Try the directory containing this script, then the parent directory.
2053 ac_confdir=`$as_dirname -- "$as_myself" ||
2054 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2055 X"$as_myself" : 'X\(//\)[^/]' \| \
2056 X"$as_myself" : 'X\(//\)$' \| \
2057 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2058 $as_echo X"$as_myself" |
2059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2060 s//\1/
2063 /^X\(\/\/\)[^/].*/{
2064 s//\1/
2067 /^X\(\/\/\)$/{
2068 s//\1/
2071 /^X\(\/\).*/{
2072 s//\1/
2075 s/.*/./; q'`
2076 srcdir=$ac_confdir
2077 if test ! -r "$srcdir/$ac_unique_file"; then
2078 srcdir=..
2080 else
2081 ac_srcdir_defaulted=no
2083 if test ! -r "$srcdir/$ac_unique_file"; then
2084 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2085 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2087 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2088 ac_abs_confdir=`(
2089 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2090 pwd)`
2091 # When building in place, set srcdir=.
2092 if test "$ac_abs_confdir" = "$ac_pwd"; then
2093 srcdir=.
2095 # Remove unnecessary trailing slashes from srcdir.
2096 # Double slashes in file names in object file debugging info
2097 # mess up M-x gdb in Emacs.
2098 case $srcdir in
2099 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2100 esac
2101 for ac_var in $ac_precious_vars; do
2102 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2103 eval ac_env_${ac_var}_value=\$${ac_var}
2104 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2105 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2106 done
2109 # Report the --help message.
2111 if test "$ac_init_help" = "long"; then
2112 # Omit some internal or obsolete options to make the list less imposing.
2113 # This message is too long to be a string in the A/UX 3.1 sh.
2114 cat <<_ACEOF
2115 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2117 Usage: $0 [OPTION]... [VAR=VALUE]...
2119 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2120 VAR=VALUE. See below for descriptions of some of the useful variables.
2122 Defaults for the options are specified in brackets.
2124 Configuration:
2125 -h, --help display this help and exit
2126 --help=short display options specific to this package
2127 --help=recursive display the short help of all the included packages
2128 -V, --version display version information and exit
2129 -q, --quiet, --silent do not print \`checking...' messages
2130 --cache-file=FILE cache test results in FILE [disabled]
2131 -C, --config-cache alias for \`--cache-file=config.cache'
2132 -n, --no-create do not create output files
2133 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2135 Installation directories:
2136 --prefix=PREFIX install architecture-independent files in PREFIX
2137 [$ac_default_prefix]
2138 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2139 [PREFIX]
2141 By default, \`make install' will install all the files in
2142 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2143 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2144 for instance \`--prefix=\$HOME'.
2146 For better control, use the options below.
2148 Fine tuning of the installation directories:
2149 --bindir=DIR user executables [EPREFIX/bin]
2150 --sbindir=DIR system admin executables [EPREFIX/sbin]
2151 --libexecdir=DIR program executables [EPREFIX/libexec]
2152 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2153 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2154 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2155 --libdir=DIR object code libraries [EPREFIX/lib]
2156 --includedir=DIR C header files [PREFIX/include]
2157 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2158 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2159 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2160 --infodir=DIR info documentation [DATAROOTDIR/info]
2161 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2162 --mandir=DIR man documentation [DATAROOTDIR/man]
2163 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2164 --htmldir=DIR html documentation [DOCDIR]
2165 --dvidir=DIR dvi documentation [DOCDIR]
2166 --pdfdir=DIR pdf documentation [DOCDIR]
2167 --psdir=DIR ps documentation [DOCDIR]
2168 _ACEOF
2170 cat <<\_ACEOF
2172 Program names:
2173 --program-prefix=PREFIX prepend PREFIX to installed program names
2174 --program-suffix=SUFFIX append SUFFIX to installed program names
2175 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2177 X features:
2178 --x-includes=DIR X include files are in DIR
2179 --x-libraries=DIR X library files are in DIR
2181 System types:
2182 --build=BUILD configure for building on BUILD [guessed]
2183 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2184 _ACEOF
2187 if test -n "$ac_init_help"; then
2188 case $ac_init_help in
2189 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2190 esac
2191 cat <<\_ACEOF
2193 Optional Features:
2194 --disable-option-checking ignore unrecognized --enable/--with options
2195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2197 --disable-ns-self-contained
2198 disable self contained build under NeXTstep
2199 --enable-locallisppath=PATH
2200 directories Emacs should search for lisp files
2201 specific to this site
2202 --enable-checking[=LIST]
2203 enable expensive run-time checks. With LIST, enable
2204 only specific categories of checks. Categories are:
2205 all,yes,no. Flags are: stringbytes, stringoverrun,
2206 stringfreelist, xmallocoverrun, conslist, glyphs
2207 --enable-check-lisp-object-type
2208 enable compile time checks for the Lisp_Object data
2209 type. This is useful for development for catching
2210 certain types of bugs.
2211 --enable-profiling build emacs with low-level, gprof profiling support.
2212 Mainly useful for debugging Emacs itself. May not
2213 work on all platforms. Stops profiler.el working.
2214 --enable-autodepend automatically generate dependencies to .h-files.
2215 Requires GNU Make and Gcc. Enabled if GNU Make and
2216 Gcc is found
2217 --enable-gtk-deprecation-warnings
2218 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2219 --disable-dependency-tracking speeds up one-time build
2220 --enable-dependency-tracking do not reject slow dependency extractors
2221 --disable-largefile omit support for large files
2222 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2223 intended for developers, and may generate false
2224 alarms when used with older or non-GNU development
2225 tools.
2226 --enable-link-time-optimization
2227 build emacs with link-time optimization. This is
2228 supported only for GCC since 4.5.0.
2229 --disable-acl do not support ACLs
2231 Optional Packages:
2232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2234 --without-all omit almost all features and build small executable
2235 with minimal dependencies
2236 --without-pop don't support POP mail retrieval with movemail
2237 --with-kerberos support Kerberos-authenticated POP
2238 --with-kerberos5 support Kerberos version 5 authenticated POP
2239 --with-hesiod support Hesiod to get the POP server host
2240 --with-mmdf support MMDF mailboxes
2241 --with-mail-unlink unlink, rather than empty, mail spool after reading
2242 --with-mailhost=HOSTNAME
2243 string giving default POP mail host
2244 --with-sound=VALUE compile with sound support (VALUE one of: yes,
2245 ossaudio, alsa, no; default yes). Only for
2246 GNU/Linux, FreeBSD, NetBSD, MinGW.
2247 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2248 gtk3, lucid or athena, motif, no)
2249 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2250 --without-xpm don't compile with XPM image support
2251 --without-jpeg don't compile with JPEG image support
2252 --without-tiff don't compile with TIFF image support
2253 --without-gif don't compile with GIF image support
2254 --without-png don't compile with PNG image support
2255 --without-rsvg don't compile with SVG image support
2256 --without-xml2 don't compile with XML parsing support
2257 --without-imagemagick don't compile with ImageMagick image support
2258 --without-xft don't use XFT for anti aliased fonts
2259 --without-libotf don't use libotf for OpenType font support
2260 --without-m17n-flt don't use m17n-flt for text shaping
2261 --without-toolkit-scroll-bars
2262 don't use Motif or Xaw3d scroll bars
2263 --without-xaw3d don't use Xaw3d
2264 --without-xim don't use X11 XIM
2265 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2266 --with-w32 use native MS Windows GUI in a Cygwin build
2267 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2268 console
2269 --without-dbus don't compile with D-Bus support
2270 --without-gconf don't compile with GConf support
2271 --without-gsettings don't compile with GSettings support
2272 --without-selinux don't compile with SELinux support
2273 --without-gnutls don't use -lgnutls for SSL/TLS support
2274 --without-zlib don't compile with zlib decompression support
2275 --with-file-notification=LIB
2276 use a file notification library (LIB one of: yes,
2277 gfile, inotify, w32, no)
2278 --without-makeinfo don't require makeinfo for building manuals
2279 --without-compress-info don't compress the installed Info pages
2280 --with-pkg-config-prog=FILENAME
2281 file name of pkg-config for finding GTK and librsvg
2282 --with-gameuser=USER user for shared game score files
2283 --with-gnustep-conf=FILENAME
2284 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2285 or /etc/GNUstep/GNUstep.conf
2286 --with-x use the X Window System
2288 Some influential environment variables:
2289 CC C compiler command
2290 CFLAGS C compiler flags
2291 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2292 nonstandard directory <lib dir>
2293 LIBS libraries to pass to the linker, e.g. -l<library>
2294 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2295 you have headers in a nonstandard directory <include dir>
2296 CPP C preprocessor
2297 XMKMF Path to xmkmf, Makefile generator for X Window System
2299 Use these variables to override the choices made by `configure' or to help
2300 it to find libraries and programs with nonstandard names/locations.
2302 Report bugs to the package provider.
2303 _ACEOF
2304 ac_status=$?
2307 if test "$ac_init_help" = "recursive"; then
2308 # If there are subdirs, report their specific --help.
2309 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2310 test -d "$ac_dir" ||
2311 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2312 continue
2313 ac_builddir=.
2315 case "$ac_dir" in
2316 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2318 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2319 # A ".." for each directory in $ac_dir_suffix.
2320 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2321 case $ac_top_builddir_sub in
2322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2324 esac ;;
2325 esac
2326 ac_abs_top_builddir=$ac_pwd
2327 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2328 # for backward compatibility:
2329 ac_top_builddir=$ac_top_build_prefix
2331 case $srcdir in
2332 .) # We are building in place.
2333 ac_srcdir=.
2334 ac_top_srcdir=$ac_top_builddir_sub
2335 ac_abs_top_srcdir=$ac_pwd ;;
2336 [\\/]* | ?:[\\/]* ) # Absolute name.
2337 ac_srcdir=$srcdir$ac_dir_suffix;
2338 ac_top_srcdir=$srcdir
2339 ac_abs_top_srcdir=$srcdir ;;
2340 *) # Relative name.
2341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2342 ac_top_srcdir=$ac_top_build_prefix$srcdir
2343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2344 esac
2345 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2347 cd "$ac_dir" || { ac_status=$?; continue; }
2348 # Check for guested configure.
2349 if test -f "$ac_srcdir/configure.gnu"; then
2350 echo &&
2351 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2352 elif test -f "$ac_srcdir/configure"; then
2353 echo &&
2354 $SHELL "$ac_srcdir/configure" --help=recursive
2355 else
2356 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2357 fi || ac_status=$?
2358 cd "$ac_pwd" || { ac_status=$?; break; }
2359 done
2362 test -n "$ac_init_help" && exit $ac_status
2363 if $ac_init_version; then
2364 cat <<\_ACEOF
2365 emacs configure 24.3.50
2366 generated by GNU Autoconf 2.65
2368 Copyright (C) 2009 Free Software Foundation, Inc.
2369 This configure script is free software; the Free Software Foundation
2370 gives unlimited permission to copy, distribute and modify it.
2371 _ACEOF
2372 exit
2375 ## ------------------------ ##
2376 ## Autoconf initialization. ##
2377 ## ------------------------ ##
2379 # ac_fn_c_try_compile LINENO
2380 # --------------------------
2381 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2382 ac_fn_c_try_compile ()
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 rm -f conftest.$ac_objext
2386 if { { ac_try="$ac_compile"
2387 case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390 esac
2391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2392 $as_echo "$ac_try_echo"; } >&5
2393 (eval "$ac_compile") 2>conftest.err
2394 ac_status=$?
2395 if test -s conftest.err; then
2396 grep -v '^ *+' conftest.err >conftest.er1
2397 cat conftest.er1 >&5
2398 mv -f conftest.er1 conftest.err
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; } && {
2402 test -z "$ac_c_werror_flag" ||
2403 test ! -s conftest.err
2404 } && test -s conftest.$ac_objext; then :
2405 ac_retval=0
2406 else
2407 $as_echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2410 ac_retval=1
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2413 as_fn_set_status $ac_retval
2415 } # ac_fn_c_try_compile
2417 # ac_fn_c_try_cpp LINENO
2418 # ----------------------
2419 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2420 ac_fn_c_try_cpp ()
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 if { { ac_try="$ac_cpp conftest.$ac_ext"
2424 case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427 esac
2428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2429 $as_echo "$ac_try_echo"; } >&5
2430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2431 ac_status=$?
2432 if test -s conftest.err; then
2433 grep -v '^ *+' conftest.err >conftest.er1
2434 cat conftest.er1 >&5
2435 mv -f conftest.er1 conftest.err
2437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2438 test $ac_status = 0; } >/dev/null && {
2439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2440 test ! -s conftest.err
2441 }; then :
2442 ac_retval=0
2443 else
2444 $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2447 ac_retval=1
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450 as_fn_set_status $ac_retval
2452 } # ac_fn_c_try_cpp
2454 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2455 # -------------------------------------------------------
2456 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2457 # the include files in INCLUDES and setting the cache variable VAR
2458 # accordingly.
2459 ac_fn_c_check_header_mongrel ()
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2462 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2464 $as_echo_n "checking for $2... " >&6; }
2465 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2466 $as_echo_n "(cached) " >&6
2468 eval ac_res=\$$3
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 else
2472 # Is the header compilable?
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2474 $as_echo_n "checking $2 usability... " >&6; }
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2478 #include <$2>
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481 ac_header_compiler=yes
2482 else
2483 ac_header_compiler=no
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2487 $as_echo "$ac_header_compiler" >&6; }
2489 # Is the header present?
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2491 $as_echo_n "checking $2 presence... " >&6; }
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2494 #include <$2>
2495 _ACEOF
2496 if ac_fn_c_try_cpp "$LINENO"; then :
2497 ac_header_preproc=yes
2498 else
2499 ac_header_preproc=no
2501 rm -f conftest.err conftest.$ac_ext
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2503 $as_echo "$ac_header_preproc" >&6; }
2505 # So? What about this header?
2506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2507 yes:no: )
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2509 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2511 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2513 no:yes:* )
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2515 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2517 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2519 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2521 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2523 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2525 esac
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 eval "$3=\$ac_header_compiler"
2533 eval ac_res=\$$3
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539 } # ac_fn_c_check_header_mongrel
2541 # ac_fn_c_try_run LINENO
2542 # ----------------------
2543 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2544 # that executables *can* be run.
2545 ac_fn_c_try_run ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 if { { ac_try="$ac_link"
2549 case "(($ac_try" in
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2552 esac
2553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2554 $as_echo "$ac_try_echo"; } >&5
2555 (eval "$ac_link") 2>&5
2556 ac_status=$?
2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2558 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2559 { { case "(($ac_try" in
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2562 esac
2563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2564 $as_echo "$ac_try_echo"; } >&5
2565 (eval "$ac_try") 2>&5
2566 ac_status=$?
2567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2568 test $ac_status = 0; }; }; then :
2569 ac_retval=0
2570 else
2571 $as_echo "$as_me: program exited with status $ac_status" >&5
2572 $as_echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2575 ac_retval=$ac_status
2577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579 as_fn_set_status $ac_retval
2581 } # ac_fn_c_try_run
2583 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2584 # -------------------------------------------------------
2585 # Tests whether HEADER exists and can be compiled using the include files in
2586 # INCLUDES, setting the cache variable VAR accordingly.
2587 ac_fn_c_check_header_compile ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2598 #include <$2>
2599 _ACEOF
2600 if ac_fn_c_try_compile "$LINENO"; then :
2601 eval "$3=yes"
2602 else
2603 eval "$3=no"
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 eval ac_res=\$$3
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 } # ac_fn_c_check_header_compile
2614 # ac_fn_c_try_link LINENO
2615 # -----------------------
2616 # Try to link conftest.$ac_ext, and return whether this succeeded.
2617 ac_fn_c_try_link ()
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 rm -f conftest.$ac_objext conftest$ac_exeext
2621 if { { ac_try="$ac_link"
2622 case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2625 esac
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link") 2>conftest.err
2629 ac_status=$?
2630 if test -s conftest.err; then
2631 grep -v '^ *+' conftest.err >conftest.er1
2632 cat conftest.er1 >&5
2633 mv -f conftest.er1 conftest.err
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; } && {
2637 test -z "$ac_c_werror_flag" ||
2638 test ! -s conftest.err
2639 } && test -s conftest$ac_exeext && {
2640 test "$cross_compiling" = yes ||
2641 $as_test_x conftest$ac_exeext
2642 }; then :
2643 ac_retval=0
2644 else
2645 $as_echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2648 ac_retval=1
2650 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2651 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2652 # interfere with the next link command; also delete a directory that is
2653 # left behind by Apple's compiler. We do this before executing the actions.
2654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656 as_fn_set_status $ac_retval
2658 } # ac_fn_c_try_link
2660 # ac_fn_c_check_decl LINENO SYMBOL VAR
2661 # ------------------------------------
2662 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2663 ac_fn_c_check_decl ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2667 $as_echo_n "checking whether $2 is declared... " >&6; }
2668 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2675 main ()
2677 #ifndef $2
2678 (void) $2;
2679 #endif
2682 return 0;
2684 _ACEOF
2685 if ac_fn_c_try_compile "$LINENO"; then :
2686 eval "$3=yes"
2687 else
2688 eval "$3=no"
2690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 eval ac_res=\$$3
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2694 $as_echo "$ac_res" >&6; }
2695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2697 } # ac_fn_c_check_decl
2699 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2700 # ----------------------------------------------
2701 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2702 ac_fn_c_check_header_preproc ()
2704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2706 $as_echo_n "checking for $2... " >&6; }
2707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h. */
2712 #include <$2>
2713 _ACEOF
2714 if ac_fn_c_try_cpp "$LINENO"; then :
2715 eval "$3=yes"
2716 else
2717 eval "$3=no"
2719 rm -f conftest.err conftest.$ac_ext
2721 eval ac_res=\$$3
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2723 $as_echo "$ac_res" >&6; }
2724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2726 } # ac_fn_c_check_header_preproc
2728 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2729 # ----------------------------------------------------
2730 # Tries to find if the field MEMBER exists in type AGGR, after including
2731 # INCLUDES, setting cache variable VAR accordingly.
2732 ac_fn_c_check_member ()
2734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2736 $as_echo_n "checking for $2.$3... " >&6; }
2737 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2744 main ()
2746 static $2 ac_aggr;
2747 if (ac_aggr.$3)
2748 return 0;
2750 return 0;
2752 _ACEOF
2753 if ac_fn_c_try_compile "$LINENO"; then :
2754 eval "$4=yes"
2755 else
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2760 main ()
2762 static $2 ac_aggr;
2763 if (sizeof ac_aggr.$3)
2764 return 0;
2766 return 0;
2768 _ACEOF
2769 if ac_fn_c_try_compile "$LINENO"; then :
2770 eval "$4=yes"
2771 else
2772 eval "$4=no"
2774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 eval ac_res=\$$4
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780 $as_echo "$ac_res" >&6; }
2781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2783 } # ac_fn_c_check_member
2785 # ac_fn_c_check_func LINENO FUNC VAR
2786 # ----------------------------------
2787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2788 ac_fn_c_check_func ()
2790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2792 $as_echo_n "checking for $2... " >&6; }
2793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2797 /* end confdefs.h. */
2798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2800 #define $2 innocuous_$2
2802 /* System header to define __stub macros and hopefully few prototypes,
2803 which can conflict with char $2 (); below.
2804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2805 <limits.h> exists even on freestanding compilers. */
2807 #ifdef __STDC__
2808 # include <limits.h>
2809 #else
2810 # include <assert.h>
2811 #endif
2813 #undef $2
2815 /* Override any GCC internal prototype to avoid an error.
2816 Use char because int might match the return type of a GCC
2817 builtin and then its argument prototype would still apply. */
2818 #ifdef __cplusplus
2819 extern "C"
2820 #endif
2821 char $2 ();
2822 /* The GNU C library defines this for functions which it implements
2823 to always fail with ENOSYS. Some functions are actually named
2824 something starting with __ and the normal name is an alias. */
2825 #if defined __stub_$2 || defined __stub___$2
2826 choke me
2827 #endif
2830 main ()
2832 return $2 ();
2834 return 0;
2836 _ACEOF
2837 if ac_fn_c_try_link "$LINENO"; then :
2838 eval "$3=yes"
2839 else
2840 eval "$3=no"
2842 rm -f core conftest.err conftest.$ac_objext \
2843 conftest$ac_exeext conftest.$ac_ext
2845 eval ac_res=\$$3
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2847 $as_echo "$ac_res" >&6; }
2848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2850 } # ac_fn_c_check_func
2852 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2853 # -------------------------------------------
2854 # Tests whether TYPE exists after having included INCLUDES, setting cache
2855 # variable VAR accordingly.
2856 ac_fn_c_check_type ()
2858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2860 $as_echo_n "checking for $2... " >&6; }
2861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 eval "$3=no"
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2869 main ()
2871 if (sizeof ($2))
2872 return 0;
2874 return 0;
2876 _ACEOF
2877 if ac_fn_c_try_compile "$LINENO"; then :
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2882 main ()
2884 if (sizeof (($2)))
2885 return 0;
2887 return 0;
2889 _ACEOF
2890 if ac_fn_c_try_compile "$LINENO"; then :
2892 else
2893 eval "$3=yes"
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 eval ac_res=\$$3
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2901 $as_echo "$ac_res" >&6; }
2902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2904 } # ac_fn_c_check_type
2906 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2907 # --------------------------------------------
2908 # Tries to find the compile-time value of EXPR in a program that includes
2909 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2910 # computed
2911 ac_fn_c_compute_int ()
2913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2914 if test "$cross_compiling" = yes; then
2915 # Depending upon the size, compute the lo and hi bounds.
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2920 main ()
2922 static int test_array [1 - 2 * !(($2) >= 0)];
2923 test_array [0] = 0
2926 return 0;
2928 _ACEOF
2929 if ac_fn_c_try_compile "$LINENO"; then :
2930 ac_lo=0 ac_mid=0
2931 while :; do
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2936 main ()
2938 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2939 test_array [0] = 0
2942 return 0;
2944 _ACEOF
2945 if ac_fn_c_try_compile "$LINENO"; then :
2946 ac_hi=$ac_mid; break
2947 else
2948 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2949 if test $ac_lo -le $ac_mid; then
2950 ac_lo= ac_hi=
2951 break
2953 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 done
2957 else
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h. */
2962 main ()
2964 static int test_array [1 - 2 * !(($2) < 0)];
2965 test_array [0] = 0
2968 return 0;
2970 _ACEOF
2971 if ac_fn_c_try_compile "$LINENO"; then :
2972 ac_hi=-1 ac_mid=-1
2973 while :; do
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2978 main ()
2980 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2981 test_array [0] = 0
2984 return 0;
2986 _ACEOF
2987 if ac_fn_c_try_compile "$LINENO"; then :
2988 ac_lo=$ac_mid; break
2989 else
2990 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2991 if test $ac_mid -le $ac_hi; then
2992 ac_lo= ac_hi=
2993 break
2995 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 done
2999 else
3000 ac_lo= ac_hi=
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 # Binary search between lo and hi bounds.
3006 while test "x$ac_lo" != "x$ac_hi"; do
3007 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3012 main ()
3014 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3015 test_array [0] = 0
3018 return 0;
3020 _ACEOF
3021 if ac_fn_c_try_compile "$LINENO"; then :
3022 ac_hi=$ac_mid
3023 else
3024 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3027 done
3028 case $ac_lo in #((
3029 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3030 '') ac_retval=1 ;;
3031 esac
3032 else
3033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 /* end confdefs.h. */
3036 static long int longval () { return $2; }
3037 static unsigned long int ulongval () { return $2; }
3038 #include <stdio.h>
3039 #include <stdlib.h>
3041 main ()
3044 FILE *f = fopen ("conftest.val", "w");
3045 if (! f)
3046 return 1;
3047 if (($2) < 0)
3049 long int i = longval ();
3050 if (i != ($2))
3051 return 1;
3052 fprintf (f, "%ld", i);
3054 else
3056 unsigned long int i = ulongval ();
3057 if (i != ($2))
3058 return 1;
3059 fprintf (f, "%lu", i);
3061 /* Do not output a trailing newline, as this causes \r\n confusion
3062 on some platforms. */
3063 return ferror (f) || fclose (f) != 0;
3066 return 0;
3068 _ACEOF
3069 if ac_fn_c_try_run "$LINENO"; then :
3070 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3071 else
3072 ac_retval=1
3074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3075 conftest.$ac_objext conftest.beam conftest.$ac_ext
3076 rm -f conftest.val
3079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3080 as_fn_set_status $ac_retval
3082 } # ac_fn_c_compute_int
3083 cat >config.log <<_ACEOF
3084 This file contains any messages produced by compilers while
3085 running configure, to aid debugging if configure makes a mistake.
3087 It was created by emacs $as_me 24.3.50, which was
3088 generated by GNU Autoconf 2.65. Invocation command line was
3090 $ $0 $@
3092 _ACEOF
3093 exec 5>>config.log
3095 cat <<_ASUNAME
3096 ## --------- ##
3097 ## Platform. ##
3098 ## --------- ##
3100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3101 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3102 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3103 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3104 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3107 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3109 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3110 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3112 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3113 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3114 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3115 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3117 _ASUNAME
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 $as_echo "PATH: $as_dir"
3125 done
3126 IFS=$as_save_IFS
3128 } >&5
3130 cat >&5 <<_ACEOF
3133 ## ----------- ##
3134 ## Core tests. ##
3135 ## ----------- ##
3137 _ACEOF
3140 # Keep a trace of the command line.
3141 # Strip out --no-create and --no-recursion so they do not pile up.
3142 # Strip out --silent because we don't want to record it for future runs.
3143 # Also quote any args containing shell meta-characters.
3144 # Make two passes to allow for proper duplicate-argument suppression.
3145 ac_configure_args=
3146 ac_configure_args0=
3147 ac_configure_args1=
3148 ac_must_keep_next=false
3149 for ac_pass in 1 2
3151 for ac_arg
3153 case $ac_arg in
3154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3156 | -silent | --silent | --silen | --sile | --sil)
3157 continue ;;
3158 *\'*)
3159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3160 esac
3161 case $ac_pass in
3162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3164 as_fn_append ac_configure_args1 " '$ac_arg'"
3165 if test $ac_must_keep_next = true; then
3166 ac_must_keep_next=false # Got value, back to normal.
3167 else
3168 case $ac_arg in
3169 *=* | --config-cache | -C | -disable-* | --disable-* \
3170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3172 | -with-* | --with-* | -without-* | --without-* | --x)
3173 case "$ac_configure_args0 " in
3174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3175 esac
3177 -* ) ac_must_keep_next=true ;;
3178 esac
3180 as_fn_append ac_configure_args " '$ac_arg'"
3182 esac
3183 done
3184 done
3185 { ac_configure_args0=; unset ac_configure_args0;}
3186 { ac_configure_args1=; unset ac_configure_args1;}
3188 # When interrupted or exit'd, cleanup temporary files, and complete
3189 # config.log. We remove comments because anyway the quotes in there
3190 # would cause problems or look ugly.
3191 # WARNING: Use '\'' to represent an apostrophe within the trap.
3192 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3193 trap 'exit_status=$?
3194 # Save into config.log some information that might help in debugging.
3196 echo
3198 cat <<\_ASBOX
3199 ## ---------------- ##
3200 ## Cache variables. ##
3201 ## ---------------- ##
3202 _ASBOX
3203 echo
3204 # The following way of writing the cache mishandles newlines in values,
3206 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3207 eval ac_val=\$$ac_var
3208 case $ac_val in #(
3209 *${as_nl}*)
3210 case $ac_var in #(
3211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3213 esac
3214 case $ac_var in #(
3215 _ | IFS | as_nl) ;; #(
3216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3217 *) { eval $ac_var=; unset $ac_var;} ;;
3218 esac ;;
3219 esac
3220 done
3221 (set) 2>&1 |
3222 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3223 *${as_nl}ac_space=\ *)
3224 sed -n \
3225 "s/'\''/'\''\\\\'\'''\''/g;
3226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3227 ;; #(
3229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3231 esac |
3232 sort
3234 echo
3236 cat <<\_ASBOX
3237 ## ----------------- ##
3238 ## Output variables. ##
3239 ## ----------------- ##
3240 _ASBOX
3241 echo
3242 for ac_var in $ac_subst_vars
3244 eval ac_val=\$$ac_var
3245 case $ac_val in
3246 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3247 esac
3248 $as_echo "$ac_var='\''$ac_val'\''"
3249 done | sort
3250 echo
3252 if test -n "$ac_subst_files"; then
3253 cat <<\_ASBOX
3254 ## ------------------- ##
3255 ## File substitutions. ##
3256 ## ------------------- ##
3257 _ASBOX
3258 echo
3259 for ac_var in $ac_subst_files
3261 eval ac_val=\$$ac_var
3262 case $ac_val in
3263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3264 esac
3265 $as_echo "$ac_var='\''$ac_val'\''"
3266 done | sort
3267 echo
3270 if test -s confdefs.h; then
3271 cat <<\_ASBOX
3272 ## ----------- ##
3273 ## confdefs.h. ##
3274 ## ----------- ##
3275 _ASBOX
3276 echo
3277 cat confdefs.h
3278 echo
3280 test "$ac_signal" != 0 &&
3281 $as_echo "$as_me: caught signal $ac_signal"
3282 $as_echo "$as_me: exit $exit_status"
3283 } >&5
3284 rm -f core *.core core.conftest.* &&
3285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3286 exit $exit_status
3288 for ac_signal in 1 2 13 15; do
3289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3290 done
3291 ac_signal=0
3293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3294 rm -f -r conftest* confdefs.h
3296 $as_echo "/* confdefs.h */" > confdefs.h
3298 # Predefined preprocessor variables.
3300 cat >>confdefs.h <<_ACEOF
3301 #define PACKAGE_NAME "$PACKAGE_NAME"
3302 _ACEOF
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3306 _ACEOF
3308 cat >>confdefs.h <<_ACEOF
3309 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3310 _ACEOF
3312 cat >>confdefs.h <<_ACEOF
3313 #define PACKAGE_STRING "$PACKAGE_STRING"
3314 _ACEOF
3316 cat >>confdefs.h <<_ACEOF
3317 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3318 _ACEOF
3320 cat >>confdefs.h <<_ACEOF
3321 #define PACKAGE_URL "$PACKAGE_URL"
3322 _ACEOF
3325 # Let the site file select an alternate cache file if it wants to.
3326 # Prefer an explicitly selected file to automatically selected ones.
3327 ac_site_file1=NONE
3328 ac_site_file2=NONE
3329 if test -n "$CONFIG_SITE"; then
3330 ac_site_file1=$CONFIG_SITE
3331 elif test "x$prefix" != xNONE; then
3332 ac_site_file1=$prefix/share/config.site
3333 ac_site_file2=$prefix/etc/config.site
3334 else
3335 ac_site_file1=$ac_default_prefix/share/config.site
3336 ac_site_file2=$ac_default_prefix/etc/config.site
3338 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3340 test "x$ac_site_file" = xNONE && continue
3341 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3343 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3344 sed 's/^/| /' "$ac_site_file" >&5
3345 . "$ac_site_file"
3347 done
3349 if test -r "$cache_file"; then
3350 # Some versions of bash will fail to source /dev/null (special files
3351 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3352 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3354 $as_echo "$as_me: loading cache $cache_file" >&6;}
3355 case $cache_file in
3356 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3357 *) . "./$cache_file";;
3358 esac
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3362 $as_echo "$as_me: creating cache $cache_file" >&6;}
3363 >$cache_file
3366 as_fn_append ac_header_list " sys/systeminfo.h"
3367 as_fn_append ac_header_list " coff.h"
3368 as_fn_append ac_header_list " pty.h"
3369 as_fn_append ac_header_list " sys/resource.h"
3370 as_fn_append ac_header_list " sys/utsname.h"
3371 as_fn_append ac_header_list " pwd.h"
3372 as_fn_append ac_header_list " utmp.h"
3373 as_fn_append ac_header_list " util.h"
3374 as_fn_append ac_header_list " sys/socket.h"
3375 as_fn_append ac_header_list " stdlib.h"
3376 as_fn_append ac_header_list " unistd.h"
3377 as_fn_append ac_header_list " sys/param.h"
3378 as_fn_append ac_header_list " pthread.h"
3379 as_fn_append ac_header_list " malloc/malloc.h"
3380 as_fn_append ac_header_list " maillock.h"
3381 as_fn_append ac_header_list " sys/un.h"
3382 as_fn_append ac_func_list " tzset"
3383 as_fn_append ac_func_list " readlinkat"
3384 as_fn_append ac_header_list " dirent.h"
3385 as_fn_append ac_header_list " execinfo.h"
3386 as_fn_append ac_func_list " faccessat"
3387 as_fn_append ac_func_list " fcntl"
3388 as_fn_append ac_func_list " fdopendir"
3389 as_fn_append ac_header_list " stdio_ext.h"
3390 as_fn_append ac_func_list " fstatat"
3391 as_fn_append ac_func_list " fsync"
3392 gl_getopt_required=GNU
3393 as_fn_append ac_header_list " getopt.h"
3394 as_fn_append ac_func_list " gettimeofday"
3395 as_fn_append ac_func_list " nanotime"
3396 as_fn_append ac_header_list " sys/time.h"
3397 as_fn_append ac_header_list " wchar.h"
3398 as_fn_append ac_header_list " stdint.h"
3399 as_fn_append ac_header_list " inttypes.h"
3400 as_fn_append ac_func_list " lstat"
3401 as_fn_append ac_func_list " mkostemp"
3402 as_fn_append ac_func_list " pipe2"
3403 as_fn_append ac_header_list " sys/select.h"
3404 as_fn_append ac_func_list " pselect"
3405 as_fn_append ac_func_list " pthread_sigmask"
3406 as_fn_append ac_func_list " readlink"
3407 as_fn_append ac_func_list " strtoimax"
3408 as_fn_append ac_func_list " strtoumax"
3409 as_fn_append ac_func_list " symlink"
3410 as_fn_append ac_header_list " sys/stat.h"
3411 as_fn_append ac_func_list " localtime_r"
3412 as_fn_append ac_header_list " utime.h"
3413 as_fn_append ac_func_list " futimes"
3414 as_fn_append ac_func_list " futimesat"
3415 as_fn_append ac_func_list " futimens"
3416 as_fn_append ac_func_list " utimensat"
3417 as_fn_append ac_func_list " lutimes"
3418 as_fn_append ac_func_list " getdtablesize"
3419 as_fn_append ac_func_list " secure_getenv"
3420 # Check that the precious variables saved in the cache have kept the same
3421 # value.
3422 ac_cache_corrupted=false
3423 for ac_var in $ac_precious_vars; do
3424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3425 eval ac_new_set=\$ac_env_${ac_var}_set
3426 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3427 eval ac_new_val=\$ac_env_${ac_var}_value
3428 case $ac_old_set,$ac_new_set in
3429 set,)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3431 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3432 ac_cache_corrupted=: ;;
3433 ,set)
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3435 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3436 ac_cache_corrupted=: ;;
3437 ,);;
3439 if test "x$ac_old_val" != "x$ac_new_val"; then
3440 # differences in whitespace do not lead to failure.
3441 ac_old_val_w=`echo x $ac_old_val`
3442 ac_new_val_w=`echo x $ac_new_val`
3443 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3446 ac_cache_corrupted=:
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3450 eval $ac_var=\$ac_old_val
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3453 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3455 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3456 fi;;
3457 esac
3458 # Pass precious variables to config.status.
3459 if test "$ac_new_set" = set; then
3460 case $ac_new_val in
3461 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3462 *) ac_arg=$ac_var=$ac_new_val ;;
3463 esac
3464 case " $ac_configure_args " in
3465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3466 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3467 esac
3469 done
3470 if $ac_cache_corrupted; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3475 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3477 ## -------------------- ##
3478 ## Main body of script. ##
3479 ## -------------------- ##
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 emacs_config_options="$@"
3490 ## Add some environment variables, if they were passed via the environment
3491 ## rather than on the command-line.
3492 for var in CFLAGS CPPFLAGS LDFLAGS; do
3493 case "$emacs_config_options" in
3494 *$var=*) continue ;;
3495 esac
3496 eval val="\$${var}"
3497 test x"$val" = x && continue
3498 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3499 done
3501 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3504 ac_aux_dir=
3505 for ac_dir in build-aux "$srcdir"/build-aux; do
3506 for ac_t in install-sh install.sh shtool; do
3507 if test -f "$ac_dir/$ac_t"; then
3508 ac_aux_dir=$ac_dir
3509 ac_install_sh="$ac_aux_dir/$ac_t -c"
3510 break 2
3512 done
3513 done
3514 if test -z "$ac_aux_dir"; then
3515 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3518 # These three variables are undocumented and unsupported,
3519 # and are intended to be withdrawn in a future Autoconf release.
3520 # They can cause serious problems if a builder's source tree is in a directory
3521 # whose full name contains unusual characters.
3522 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3523 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3524 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3527 am__api_version='1.11'
3529 # Find a good install program. We prefer a C program (faster),
3530 # so one script is as good as another. But avoid the broken or
3531 # incompatible versions:
3532 # SysV /etc/install, /usr/sbin/install
3533 # SunOS /usr/etc/install
3534 # IRIX /sbin/install
3535 # AIX /bin/install
3536 # AmigaOS /C/install, which installs bootblocks on floppy discs
3537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3540 # OS/2's system install, which has a completely different semantic
3541 # ./install, which can be erroneously created by make from ./install.sh.
3542 # Reject install programs that cannot install multiple files.
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3545 if test -z "$INSTALL"; then
3546 if test "${ac_cv_path_install+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 # Account for people who put trailing slashes in PATH elements.
3555 case $as_dir/ in #((
3556 ./ | .// | /[cC]/* | \
3557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3559 /usr/ucb/* ) ;;
3561 # OSF1 and SCO ODT 3.0 have their own names for install.
3562 # Don't use installbsd from OSF since it installs stuff as root
3563 # by default.
3564 for ac_prog in ginstall scoinst install; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3567 if test $ac_prog = install &&
3568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3569 # AIX install. It has an incompatible calling convention.
3571 elif test $ac_prog = install &&
3572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3573 # program-specific install script used by HP pwplus--don't use.
3575 else
3576 rm -rf conftest.one conftest.two conftest.dir
3577 echo one > conftest.one
3578 echo two > conftest.two
3579 mkdir conftest.dir
3580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3581 test -s conftest.one && test -s conftest.two &&
3582 test -s conftest.dir/conftest.one &&
3583 test -s conftest.dir/conftest.two
3584 then
3585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3586 break 3
3590 done
3591 done
3593 esac
3595 done
3596 IFS=$as_save_IFS
3598 rm -rf conftest.one conftest.two conftest.dir
3601 if test "${ac_cv_path_install+set}" = set; then
3602 INSTALL=$ac_cv_path_install
3603 else
3604 # As a last resort, use the slow shell script. Don't cache a
3605 # value for INSTALL within a source directory, because that will
3606 # break other packages using the cache if that directory is
3607 # removed, or if the value is a relative name.
3608 INSTALL=$ac_install_sh
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3612 $as_echo "$INSTALL" >&6; }
3614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3615 # It thinks the first close brace ends the variable substitution.
3616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3623 $as_echo_n "checking whether build environment is sane... " >&6; }
3624 # Just in case
3625 sleep 1
3626 echo timestamp > conftest.file
3627 # Reject unsafe characters in $srcdir or the absolute working directory
3628 # name. Accept space and tab only in the latter.
3629 am_lf='
3631 case `pwd` in
3632 *[\\\"\#\$\&\'\`$am_lf]*)
3633 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3634 esac
3635 case $srcdir in
3636 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3637 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3638 esac
3640 # Do `set' in a subshell so we don't clobber the current shell's
3641 # arguments. Must try -L first in case configure is actually a
3642 # symlink; some systems play weird games with the mod time of symlinks
3643 # (eg FreeBSD returns the mod time of the symlink's containing
3644 # directory).
3645 if (
3646 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3647 if test "$*" = "X"; then
3648 # -L didn't work.
3649 set X `ls -t "$srcdir/configure" conftest.file`
3651 rm -f conftest.file
3652 if test "$*" != "X $srcdir/configure conftest.file" \
3653 && test "$*" != "X conftest.file $srcdir/configure"; then
3655 # If neither matched, then we have a broken ls. This can happen
3656 # if, for instance, CONFIG_SHELL is bash and it inherits a
3657 # broken ls alias from the environment. This has actually
3658 # happened. Such a system could not be considered "sane".
3659 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3660 alias in your environment" "$LINENO" 5
3663 test "$2" = conftest.file
3665 then
3666 # Ok.
3668 else
3669 as_fn_error "newly created file is older than distributed files!
3670 Check your system clock" "$LINENO" 5
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 $as_echo "yes" >&6; }
3674 test "$program_prefix" != NONE &&
3675 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3676 # Use a double $ so make ignores it.
3677 test "$program_suffix" != NONE &&
3678 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3679 # Double any \ or $.
3680 # By default was `s,x,x', remove it if useless.
3681 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3682 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3684 # expand $ac_aux_dir to an absolute path
3685 am_aux_dir=`cd $ac_aux_dir && pwd`
3687 if test x"${MISSING+set}" != xset; then
3688 case $am_aux_dir in
3689 *\ * | *\ *)
3690 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3692 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3693 esac
3695 # Use eval to expand $SHELL
3696 if eval "$MISSING --run true"; then
3697 am_missing_run="$MISSING --run "
3698 else
3699 am_missing_run=
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3701 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3704 if test x"${install_sh}" != xset; then
3705 case $am_aux_dir in
3706 *\ * | *\ *)
3707 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3709 install_sh="\${SHELL} $am_aux_dir/install-sh"
3710 esac
3713 # Installed binaries are usually stripped using `strip' when the user
3714 # run `make install-strip'. However `strip' might not be the right
3715 # tool to use in cross-compilation environments, therefore Automake
3716 # will honor the `STRIP' environment variable to overrule this program.
3717 if test "$cross_compiling" != no; then
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}strip; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_STRIP+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -n "$STRIP"; then
3727 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3742 IFS=$as_save_IFS
3746 STRIP=$ac_cv_prog_STRIP
3747 if test -n "$STRIP"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3749 $as_echo "$STRIP" >&6; }
3750 else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3757 if test -z "$ac_cv_prog_STRIP"; then
3758 ac_ct_STRIP=$STRIP
3759 # Extract the first word of "strip", so it can be a program name with args.
3760 set dummy strip; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -n "$ac_ct_STRIP"; then
3767 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_ac_ct_STRIP="strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3780 done
3781 done
3782 IFS=$as_save_IFS
3786 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3787 if test -n "$ac_ct_STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3789 $as_echo "$ac_ct_STRIP" >&6; }
3790 else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3795 if test "x$ac_ct_STRIP" = x; then
3796 STRIP=":"
3797 else
3798 case $cross_compiling:$ac_tool_warned in
3799 yes:)
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3803 esac
3804 STRIP=$ac_ct_STRIP
3806 else
3807 STRIP="$ac_cv_prog_STRIP"
3811 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3814 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3815 if test -z "$MKDIR_P"; then
3816 if test "${ac_cv_path_mkdir+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_prog in mkdir gmkdir; do
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3827 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3828 'mkdir (GNU coreutils) '* | \
3829 'mkdir (coreutils) '* | \
3830 'mkdir (fileutils) '4.1*)
3831 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3832 break 3;;
3833 esac
3834 done
3835 done
3836 done
3837 IFS=$as_save_IFS
3841 test -d ./--version && rmdir ./--version
3842 if test "${ac_cv_path_mkdir+set}" = set; then
3843 MKDIR_P="$ac_cv_path_mkdir -p"
3844 else
3845 # As a last resort, use the slow shell script. Don't cache a
3846 # value for MKDIR_P within a source directory, because that will
3847 # break other packages using the cache if that directory is
3848 # removed, or if the value is a relative name.
3849 MKDIR_P="$ac_install_sh -d"
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3853 $as_echo "$MKDIR_P" >&6; }
3855 mkdir_p="$MKDIR_P"
3856 case $mkdir_p in
3857 [\\/$]* | ?:[\\/]*) ;;
3858 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3859 esac
3861 for ac_prog in gawk mawk nawk awk
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if test "${ac_cv_prog_AWK+set}" = set; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 if test -n "$AWK"; then
3871 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3880 ac_cv_prog_AWK="$ac_prog"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3884 done
3885 done
3886 IFS=$as_save_IFS
3890 AWK=$ac_cv_prog_AWK
3891 if test -n "$AWK"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3893 $as_echo "$AWK" >&6; }
3894 else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3900 test -n "$AWK" && break
3901 done
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3904 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3905 set x ${MAKE-make}
3906 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3907 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat >conftest.make <<\_ACEOF
3911 SHELL = /bin/sh
3912 all:
3913 @echo '@@@%%%=$(MAKE)=@@@%%%'
3914 _ACEOF
3915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3916 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3917 *@@@%%%=?*=@@@%%%*)
3918 eval ac_cv_prog_make_${ac_make}_set=yes;;
3920 eval ac_cv_prog_make_${ac_make}_set=no;;
3921 esac
3922 rm -f conftest.make
3924 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3927 SET_MAKE=
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3931 SET_MAKE="MAKE=${MAKE-make}"
3934 rm -rf .tst 2>/dev/null
3935 mkdir .tst 2>/dev/null
3936 if test -d .tst; then
3937 am__leading_dot=.
3938 else
3939 am__leading_dot=_
3941 rmdir .tst 2>/dev/null
3943 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3944 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3945 # is not polluted with repeated "-I."
3946 am__isrc=' -I$(srcdir)'
3947 # test to see if srcdir already configured
3948 if test -f $srcdir/config.status; then
3949 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3953 # test whether we have cygpath
3954 if test -z "$CYGPATH_W"; then
3955 if (cygpath --version) >/dev/null 2>/dev/null; then
3956 CYGPATH_W='cygpath -w'
3957 else
3958 CYGPATH_W=echo
3963 # Define the identity of the package.
3964 PACKAGE='emacs'
3965 VERSION='24.3.50'
3968 cat >>confdefs.h <<_ACEOF
3969 #define PACKAGE "$PACKAGE"
3970 _ACEOF
3973 cat >>confdefs.h <<_ACEOF
3974 #define VERSION "$VERSION"
3975 _ACEOF
3977 # Some tools Automake needs.
3979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3993 # We need awk for the "check" target. The system "awk" is bad on
3994 # some platforms.
3995 # Always define AMTAR for backward compatibility.
3997 AMTAR=${AMTAR-"${am_missing_run}tar"}
3999 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4008 lispdir='${datadir}/emacs/${version}/lisp'
4009 leimdir='${datadir}/emacs/${version}/leim'
4010 standardlisppath='${lispdir}:${leimdir}'
4011 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
4012 '${datadir}/emacs/site-lisp'
4013 lisppath='${locallisppath}:${standardlisppath}'
4014 etcdir='${datadir}/emacs/${version}/etc'
4015 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
4016 etcdocdir='${datadir}/emacs/${version}/etc'
4017 gamedir='${localstatedir}/games/emacs'
4020 # Check whether --with-all was given.
4021 if test "${with_all+set}" = set; then :
4022 withval=$with_all; with_features=$withval
4023 else
4024 with_features=yes
4031 # Check whether --with-pop was given.
4032 if test "${with_pop+set}" = set; then :
4033 withval=$with_pop;
4034 else
4035 with_pop=$with_features
4038 if test "$with_pop" = yes; then
4039 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
4044 # Check whether --with-kerberos was given.
4045 if test "${with_kerberos+set}" = set; then :
4046 withval=$with_kerberos;
4047 else
4048 with_kerberos=no
4051 if test "$with_kerberos" != no; then
4052 $as_echo "#define KERBEROS 1" >>confdefs.h
4057 # Check whether --with-kerberos5 was given.
4058 if test "${with_kerberos5+set}" = set; then :
4059 withval=$with_kerberos5;
4060 else
4061 with_kerberos5=no
4064 if test "${with_kerberos5}" != no; then
4065 if test "${with_kerberos}" = no; then
4066 with_kerberos=yes
4067 $as_echo "#define KERBEROS 1" >>confdefs.h
4071 $as_echo "#define KERBEROS5 1" >>confdefs.h
4076 # Check whether --with-hesiod was given.
4077 if test "${with_hesiod+set}" = set; then :
4078 withval=$with_hesiod;
4079 else
4080 with_hesiod=no
4083 if test "$with_hesiod" != no; then
4085 $as_echo "#define HESIOD 1" >>confdefs.h
4090 # Check whether --with-mmdf was given.
4091 if test "${with_mmdf+set}" = set; then :
4092 withval=$with_mmdf;
4093 else
4094 with_mmdf=no
4097 if test "$with_mmdf" != no; then
4099 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4104 # Check whether --with-mail-unlink was given.
4105 if test "${with_mail_unlink+set}" = set; then :
4106 withval=$with_mail_unlink;
4107 else
4108 with_mail_unlink=no
4111 if test "$with_mail_unlink" != no; then
4113 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4118 # Check whether --with-mailhost was given.
4119 if test "${with_mailhost+set}" = set; then :
4120 withval=$with_mailhost;
4121 cat >>confdefs.h <<_ACEOF
4122 #define MAILHOST "$withval"
4123 _ACEOF
4129 # Check whether --with-sound was given.
4130 if test "${with_sound+set}" = set; then :
4131 withval=$with_sound; case "${withval}" in
4132 yes|no|ossaudio|alsa) val=$withval ;;
4133 *) as_fn_error "\`--with-sound=$withval' is invalid;
4134 this option's value should be \`yes', \`no', \`ossaudio', or \`alsa'." "$LINENO" 5
4136 esac
4137 with_sound=$val
4139 else
4140 with_sound=$with_features
4145 # Check whether --with-x-toolkit was given.
4146 if test "${with_x_toolkit+set}" = set; then :
4147 withval=$with_x_toolkit; case "${withval}" in
4148 y | ye | yes ) val=gtk ;;
4149 n | no ) val=no ;;
4150 l | lu | luc | luci | lucid ) val=lucid ;;
4151 a | at | ath | athe | athen | athena ) val=athena ;;
4152 m | mo | mot | moti | motif ) val=motif ;;
4153 g | gt | gtk ) val=gtk ;;
4154 gtk2 ) val=gtk2 ;;
4155 gtk3 ) val=gtk3 ;;
4157 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4158 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4159 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4160 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4162 esac
4163 with_x_toolkit=$val
4169 # Check whether --with-wide-int was given.
4170 if test "${with_wide_int+set}" = set; then :
4171 withval=$with_wide_int;
4172 else
4173 with_wide_int=no
4176 if test "$with_wide_int" = yes; then
4178 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4183 # Check whether --with-xpm was given.
4184 if test "${with_xpm+set}" = set; then :
4185 withval=$with_xpm;
4186 else
4187 with_xpm=$with_features
4191 # Check whether --with-jpeg was given.
4192 if test "${with_jpeg+set}" = set; then :
4193 withval=$with_jpeg;
4194 else
4195 with_jpeg=$with_features
4199 # Check whether --with-tiff was given.
4200 if test "${with_tiff+set}" = set; then :
4201 withval=$with_tiff;
4202 else
4203 with_tiff=$with_features
4207 # Check whether --with-gif was given.
4208 if test "${with_gif+set}" = set; then :
4209 withval=$with_gif;
4210 else
4211 with_gif=$with_features
4215 # Check whether --with-png was given.
4216 if test "${with_png+set}" = set; then :
4217 withval=$with_png;
4218 else
4219 with_png=$with_features
4223 # Check whether --with-rsvg was given.
4224 if test "${with_rsvg+set}" = set; then :
4225 withval=$with_rsvg;
4226 else
4227 with_rsvg=$with_features
4231 # Check whether --with-xml2 was given.
4232 if test "${with_xml2+set}" = set; then :
4233 withval=$with_xml2;
4234 else
4235 with_xml2=$with_features
4239 # Check whether --with-imagemagick was given.
4240 if test "${with_imagemagick+set}" = set; then :
4241 withval=$with_imagemagick;
4242 else
4243 with_imagemagick=$with_features
4248 # Check whether --with-xft was given.
4249 if test "${with_xft+set}" = set; then :
4250 withval=$with_xft;
4251 else
4252 with_xft=$with_features
4256 # Check whether --with-libotf was given.
4257 if test "${with_libotf+set}" = set; then :
4258 withval=$with_libotf;
4259 else
4260 with_libotf=$with_features
4264 # Check whether --with-m17n-flt was given.
4265 if test "${with_m17n_flt+set}" = set; then :
4266 withval=$with_m17n_flt;
4267 else
4268 with_m17n_flt=$with_features
4273 # Check whether --with-toolkit-scroll-bars was given.
4274 if test "${with_toolkit_scroll_bars+set}" = set; then :
4275 withval=$with_toolkit_scroll_bars;
4276 else
4277 with_toolkit_scroll_bars=$with_features
4281 # Check whether --with-xaw3d was given.
4282 if test "${with_xaw3d+set}" = set; then :
4283 withval=$with_xaw3d;
4284 else
4285 with_xaw3d=$with_features
4289 # Check whether --with-xim was given.
4290 if test "${with_xim+set}" = set; then :
4291 withval=$with_xim;
4292 else
4293 with_xim=$with_features
4297 # Check whether --with-ns was given.
4298 if test "${with_ns+set}" = set; then :
4299 withval=$with_ns;
4300 else
4301 with_ns=no
4305 # Check whether --with-w32 was given.
4306 if test "${with_w32+set}" = set; then :
4307 withval=$with_w32;
4308 else
4309 with_w32=no
4314 # Check whether --with-gpm was given.
4315 if test "${with_gpm+set}" = set; then :
4316 withval=$with_gpm;
4317 else
4318 with_gpm=$with_features
4322 # Check whether --with-dbus was given.
4323 if test "${with_dbus+set}" = set; then :
4324 withval=$with_dbus;
4325 else
4326 with_dbus=$with_features
4330 # Check whether --with-gconf was given.
4331 if test "${with_gconf+set}" = set; then :
4332 withval=$with_gconf;
4333 else
4334 with_gconf=$with_features
4338 # Check whether --with-gsettings was given.
4339 if test "${with_gsettings+set}" = set; then :
4340 withval=$with_gsettings;
4341 else
4342 with_gsettings=$with_features
4346 # Check whether --with-selinux was given.
4347 if test "${with_selinux+set}" = set; then :
4348 withval=$with_selinux;
4349 else
4350 with_selinux=$with_features
4354 # Check whether --with-gnutls was given.
4355 if test "${with_gnutls+set}" = set; then :
4356 withval=$with_gnutls;
4357 else
4358 with_gnutls=$with_features
4362 # Check whether --with-zlib was given.
4363 if test "${with_zlib+set}" = set; then :
4364 withval=$with_zlib;
4365 else
4366 with_zlib=$with_features
4371 # Check whether --with-file-notification was given.
4372 if test "${with_file_notification+set}" = set; then :
4373 withval=$with_file_notification; case "${withval}" in
4374 y | ye | yes ) val=yes ;;
4375 n | no ) val=no ;;
4376 g | gf | gfi | gfil | gfile ) val=gfile ;;
4377 i | in | ino | inot | inoti | inotif | inotify ) val=inotify ;;
4378 w | w3 | w32 ) val=w32 ;;
4379 * ) as_fn_error "\`--with-file-notification=$withval' is invalid;
4380 this option's value should be \`yes', \`no', \`gfile', \`inotify' or \`w32'.
4381 \`yes' is a synonym for \`w32' on MS-Windows, for \`no' on Nextstep,
4382 otherwise for the first of \`gfile' or \`inotify' that is usable." "$LINENO" 5
4384 esac
4385 with_file_notification=$val
4387 else
4388 with_file_notification=$with_features
4392 ## For the times when you want to build Emacs but don't have
4393 ## a suitable makeinfo, and can live without the manuals.
4395 # Check whether --with-makeinfo was given.
4396 if test "${with_makeinfo+set}" = set; then :
4397 withval=$with_makeinfo;
4398 else
4399 with_makeinfo=$with_features
4403 ## Makefile.in needs the cache file name.
4406 ## This is an option because I do not know if all info/man support
4407 ## compressed files, nor how to test if they do so.
4409 # Check whether --with-compress-info was given.
4410 if test "${with_compress_info+set}" = set; then :
4411 withval=$with_compress_info;
4412 else
4413 with_compress_info=$with_features
4416 if test $with_compress_info = yes; then
4417 GZIP_INFO=yes
4418 else
4419 GZIP_INFO=
4424 # Check whether --with-pkg-config-prog was given.
4425 if test "${with_pkg_config_prog+set}" = set; then :
4426 withval=$with_pkg_config_prog;
4429 if test "X${with_pkg_config_prog}" != X; then
4430 if test "${with_pkg_config_prog}" != yes; then
4431 PKG_CONFIG="${with_pkg_config_prog}"
4436 # Check whether --with-gameuser was given.
4437 if test "${with_gameuser+set}" = set; then :
4438 withval=$with_gameuser;
4441 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4442 && gameuser="${with_gameuser}"
4443 test "X$gameuser" = X && gameuser=games
4446 # Check whether --with-gnustep-conf was given.
4447 if test "${with_gnustep_conf+set}" = set; then :
4448 withval=$with_gnustep_conf;
4451 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4452 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4453 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4454 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4456 # Check whether --enable-ns-self-contained was given.
4457 if test "${enable_ns_self_contained+set}" = set; then :
4458 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4459 else
4460 EN_NS_SELF_CONTAINED=yes
4464 # Check whether --enable-locallisppath was given.
4465 if test "${enable_locallisppath+set}" = set; then :
4466 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4467 locallisppath=
4468 elif test "${enableval}" != "yes"; then
4469 locallisppath=${enableval}
4474 # Check whether --enable-checking was given.
4475 if test "${enable_checking+set}" = set; then :
4476 enableval=$enable_checking; ac_checking_flags="${enableval}"
4479 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4480 for check in $ac_checking_flags
4482 case $check in
4483 # these set all the flags to specific states
4484 yes) ac_enable_checking=1 ;;
4485 no) ac_enable_checking= ;
4486 ac_gc_check_stringbytes= ;
4487 ac_gc_check_string_overrun= ;
4488 ac_gc_check_string_free_list= ;
4489 ac_xmalloc_overrun= ;
4490 ac_gc_check_cons_list= ;
4491 ac_glyphs_debug= ;;
4492 all) ac_enable_checking=1 ;
4493 ac_gc_check_stringbytes=1 ;
4494 ac_gc_check_string_overrun=1 ;
4495 ac_gc_check_string_free_list=1 ;
4496 ac_xmalloc_overrun=1 ;
4497 ac_gc_check_cons_list=1 ;
4498 ac_glyphs_debug=1 ;;
4499 # these enable particular checks
4500 stringbytes) ac_gc_check_stringbytes=1 ;;
4501 stringoverrun) ac_gc_check_string_overrun=1 ;;
4502 stringfreelist) ac_gc_check_string_free_list=1 ;;
4503 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4504 conslist) ac_gc_check_cons_list=1 ;;
4505 glyphs) ac_glyphs_debug=1 ;;
4506 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4507 esac
4508 done
4509 IFS="$ac_save_IFS"
4511 if test x$ac_enable_checking != x ; then
4513 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4516 if test x$ac_gc_check_stringbytes != x ; then
4518 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4521 if test x$ac_gc_check_string_overrun != x ; then
4523 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4526 if test x$ac_gc_check_string_free_list != x ; then
4528 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4531 if test x$ac_xmalloc_overrun != x ; then
4533 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4536 if test x$ac_gc_check_cons_list != x ; then
4538 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4541 if test x$ac_glyphs_debug != x ; then
4543 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4547 # Check whether --enable-check-lisp-object-type was given.
4548 if test "${enable_check_lisp_object_type+set}" = set; then :
4549 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4551 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4558 # Check whether --enable-profiling was given.
4559 if test "${enable_profiling+set}" = set; then :
4560 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4563 if test x$ac_enable_profiling != x ; then
4564 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4565 else
4566 PROFILING_CFLAGS=
4570 # Check whether --enable-autodepend was given.
4571 if test "${enable_autodepend+set}" = set; then :
4572 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4573 else
4574 ac_enable_autodepend=yes
4578 # Check whether --enable-gtk-deprecation-warnings was given.
4579 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4580 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4584 #### Make srcdir absolute, if it isn't already. It's important to
4585 #### avoid running the file name through pwd unnecessarily, since pwd can
4586 #### give you automounter prefixes, which can go away. We do all this
4587 #### so Emacs can find its files when run uninstalled.
4588 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4589 unset CDPATH
4590 case "${srcdir}" in
4591 [\\/]* | ?:[\\/]*) ;;
4593 ## We may be able to use the $PWD environment variable to make this
4594 ## absolute. But sometimes PWD is inaccurate.
4595 ## Note: we used to use $PWD at the end instead of `pwd`,
4596 ## but that tested only for a well-formed and valid PWD,
4597 ## it did not object when PWD was well-formed and valid but just wrong.
4598 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4599 then
4600 srcdir="$PWD"
4601 else
4602 srcdir=`(cd "$srcdir"; pwd)`
4605 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4606 esac
4608 ### Canonicalize the configuration name.
4610 # Make sure we can run config.sub.
4611 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4612 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4615 $as_echo_n "checking build system type... " >&6; }
4616 if test "${ac_cv_build+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 ac_build_alias=$build_alias
4620 test "x$ac_build_alias" = x &&
4621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4622 test "x$ac_build_alias" = x &&
4623 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4624 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4625 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4629 $as_echo "$ac_cv_build" >&6; }
4630 case $ac_cv_build in
4631 *-*-*) ;;
4632 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4633 esac
4634 build=$ac_cv_build
4635 ac_save_IFS=$IFS; IFS='-'
4636 set x $ac_cv_build
4637 shift
4638 build_cpu=$1
4639 build_vendor=$2
4640 shift; shift
4641 # Remember, the first character of IFS is used to create $*,
4642 # except with old shells:
4643 build_os=$*
4644 IFS=$ac_save_IFS
4645 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4649 $as_echo_n "checking host system type... " >&6; }
4650 if test "${ac_cv_host+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test "x$host_alias" = x; then
4654 ac_cv_host=$ac_cv_build
4655 else
4656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4657 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4662 $as_echo "$ac_cv_host" >&6; }
4663 case $ac_cv_host in
4664 *-*-*) ;;
4665 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4666 esac
4667 host=$ac_cv_host
4668 ac_save_IFS=$IFS; IFS='-'
4669 set x $ac_cv_host
4670 shift
4671 host_cpu=$1
4672 host_vendor=$2
4673 shift; shift
4674 # Remember, the first character of IFS is used to create $*,
4675 # except with old shells:
4676 host_os=$*
4677 IFS=$ac_save_IFS
4678 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4681 canonical=$host
4682 configuration=${host_alias-${build_alias-$host}}
4686 ### If you add support for a new configuration, add code to this
4687 ### switch statement to recognize your configuration name and select
4688 ### the appropriate operating system file.
4690 ### You would hope that you could choose an s/*.h
4691 ### file based on the operating system portion. However, it turns out
4692 ### that each s/*.h file is pretty manufacturer-specific.
4693 ### So we basically have to have a special case for each
4694 ### configuration name.
4696 ### As far as handling version numbers on operating systems is
4697 ### concerned, make sure things will fail in a fixable way. If
4698 ### /etc/MACHINES doesn't say anything about version numbers, be
4699 ### prepared to handle anything reasonably. If version numbers
4700 ### matter, be sure /etc/MACHINES says something about it.
4702 opsys='' unported=no
4703 case "${canonical}" in
4705 ## GNU/Linux and similar ports
4706 *-*-linux* )
4707 opsys=gnu-linux
4710 ## FreeBSD ports
4711 *-*-freebsd* )
4712 opsys=freebsd
4715 ## DragonFly ports
4716 *-*-dragonfly* )
4717 opsys=dragonfly
4720 ## FreeBSD kernel + glibc based userland
4721 *-*-kfreebsd*gnu* )
4722 opsys=gnu-kfreebsd
4725 ## NetBSD ports
4726 *-*-netbsd* )
4727 opsys=netbsd
4730 ## OpenBSD ports
4731 *-*-openbsd* )
4732 opsys=openbsd
4735 ## Apple Darwin / Mac OS X
4736 *-apple-darwin* )
4737 case "${canonical}" in
4738 i[3456]86-* ) ;;
4739 powerpc-* ) ;;
4740 x86_64-* ) ;;
4741 * ) unported=yes ;;
4742 esac
4743 opsys=darwin
4744 ## Use fink packages if available.
4745 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4746 ## if test -d /sw/include && test -d /sw/lib; then
4747 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4748 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4749 ## fi
4752 ## Cygwin ports
4753 *-*-cygwin )
4754 opsys=cygwin
4757 ## HP 9000 series 700 and 800, running HP/UX
4758 hppa*-hp-hpux10.2* )
4759 opsys=hpux10-20
4761 hppa*-hp-hpux1[1-9]* )
4762 opsys=hpux11
4763 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4766 ## IBM machines
4767 rs6000-ibm-aix4.[23]* )
4768 opsys=aix4-2
4770 powerpc-ibm-aix4.[23]* )
4771 opsys=aix4-2
4773 rs6000-ibm-aix[56]* )
4774 opsys=aix4-2
4776 powerpc-ibm-aix[56]* )
4777 opsys=aix4-2
4780 ## Silicon Graphics machines
4781 ## Iris 4D
4782 mips-sgi-irix6.5 )
4783 opsys=irix6-5
4784 # Without defining _LANGUAGE_C, things get masked out in the headers
4785 # so that, for instance, grepping for `free' in stdlib.h fails and
4786 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4787 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4790 ## Suns
4791 *-sun-solaris* \
4792 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4793 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4794 case "${canonical}" in
4795 i[3456]86-*-* ) ;;
4796 amd64-*-*|x86_64-*-*) ;;
4797 sparc* ) ;;
4798 * ) unported=yes ;;
4799 esac
4800 case "${canonical}" in
4801 *-sunos5.6* | *-solaris2.6* )
4802 opsys=sol2-6
4803 RANLIB="ar -ts"
4805 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4806 opsys=sol2-6
4807 emacs_check_sunpro_c=yes
4809 *-sunos5* | *-solaris* )
4810 opsys=sol2-10
4811 emacs_check_sunpro_c=yes
4813 esac
4814 ## Watch out for a compiler that we know will not work.
4815 case "${canonical}" in
4816 *-solaris* | *-sunos5* )
4817 if [ "x$CC" = x/usr/ucb/cc ]; then
4818 ## /usr/ucb/cc doesn't work;
4819 ## we should find some other compiler that does work.
4820 unset CC
4823 *) ;;
4824 esac
4827 ## Intel 386 machines where we don't care about the manufacturer.
4828 i[3456]86-*-* )
4829 case "${canonical}" in
4830 *-darwin* ) opsys=darwin ;;
4831 *-mingw32 )
4832 opsys=mingw32
4833 # MinGW overrides and adds some system headers in nt/inc.
4834 GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
4836 *-sysv4.2uw* ) opsys=unixware ;;
4837 *-sysv5uw* ) opsys=unixware ;;
4838 *-sysv5OpenUNIX* ) opsys=unixware ;;
4839 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4840 esac
4844 unported=yes
4846 esac
4848 ### If the code above didn't choose an operating system, just choose
4849 ### an operating system based on the configuration name. You really
4850 ### only want to use this when you have no idea what the right
4851 ### operating system is; if you know what operating systems a machine
4852 ### runs, it's cleaner to make it explicit in the case statement
4853 ### above.
4854 if test x"${opsys}" = x; then
4855 case "${canonical}" in
4856 *-gnu* ) opsys=gnu ;;
4858 unported=yes
4860 esac
4865 if test $unported = yes; then
4866 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4867 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4871 #### Choose a compiler.
4873 ac_ext=c
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_CC+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 if test -n "$CC"; then
4887 ac_cv_prog_CC="$CC" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4892 IFS=$as_save_IFS
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 break 2
4900 done
4901 done
4902 IFS=$as_save_IFS
4906 CC=$ac_cv_prog_CC
4907 if test -n "$CC"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4909 $as_echo "$CC" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4917 if test -z "$ac_cv_prog_CC"; then
4918 ac_ct_CC=$CC
4919 # Extract the first word of "gcc", so it can be a program name with args.
4920 set dummy gcc; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$ac_ct_CC"; then
4927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_ac_ct_CC="gcc"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4947 if test -n "$ac_ct_CC"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4949 $as_echo "$ac_ct_CC" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4955 if test "x$ac_ct_CC" = x; then
4956 CC=""
4957 else
4958 case $cross_compiling:$ac_tool_warned in
4959 yes:)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned=yes ;;
4963 esac
4964 CC=$ac_ct_CC
4966 else
4967 CC="$ac_cv_prog_CC"
4970 if test -z "$CC"; then
4971 if test -n "$ac_tool_prefix"; then
4972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4973 set dummy ${ac_tool_prefix}cc; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if test "${ac_cv_prog_CC+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -n "$CC"; then
4980 ac_cv_prog_CC="$CC" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4989 ac_cv_prog_CC="${ac_tool_prefix}cc"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4993 done
4994 done
4995 IFS=$as_save_IFS
4999 CC=$ac_cv_prog_CC
5000 if test -n "$CC"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5002 $as_echo "$CC" >&6; }
5003 else
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5011 if test -z "$CC"; then
5012 # Extract the first word of "cc", so it can be a program name with args.
5013 set dummy cc; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if test "${ac_cv_prog_CC+set}" = set; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC="$CC" # Let the user override the test.
5021 else
5022 ac_prog_rejected=no
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5031 ac_prog_rejected=yes
5032 continue
5034 ac_cv_prog_CC="cc"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5040 IFS=$as_save_IFS
5042 if test $ac_prog_rejected = yes; then
5043 # We found a bogon in the path, so make sure we never use it.
5044 set dummy $ac_cv_prog_CC
5045 shift
5046 if test $# != 0; then
5047 # We chose a different compiler from the bogus one.
5048 # However, it has the same basename, so the bogon will be chosen
5049 # first if we set CC to just the basename; use the full file name.
5050 shift
5051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5056 CC=$ac_cv_prog_CC
5057 if test -n "$CC"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5059 $as_echo "$CC" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5067 if test -z "$CC"; then
5068 if test -n "$ac_tool_prefix"; then
5069 for ac_prog in cl.exe
5071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if test "${ac_cv_prog_CC+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -n "$CC"; then
5079 ac_cv_prog_CC="$CC" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5092 done
5093 done
5094 IFS=$as_save_IFS
5098 CC=$ac_cv_prog_CC
5099 if test -n "$CC"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5101 $as_echo "$CC" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 test -n "$CC" && break
5109 done
5111 if test -z "$CC"; then
5112 ac_ct_CC=$CC
5113 for ac_prog in cl.exe
5115 # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 if test -n "$ac_ct_CC"; then
5123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 ac_cv_prog_ac_ct_CC="$ac_prog"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 break 2
5136 done
5137 done
5138 IFS=$as_save_IFS
5142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5143 if test -n "$ac_ct_CC"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5145 $as_echo "$ac_ct_CC" >&6; }
5146 else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 test -n "$ac_ct_CC" && break
5153 done
5155 if test "x$ac_ct_CC" = x; then
5156 CC=""
5157 else
5158 case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164 CC=$ac_ct_CC
5171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 as_fn_error "no acceptable C compiler found in \$PATH
5174 See \`config.log' for more details." "$LINENO" 5; }
5176 # Provide some information about the compiler.
5177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5178 set X $ac_compile
5179 ac_compiler=$2
5180 for ac_option in --version -v -V -qversion; do
5181 { { ac_try="$ac_compiler $ac_option >&5"
5182 case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5185 esac
5186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5187 $as_echo "$ac_try_echo"; } >&5
5188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5189 ac_status=$?
5190 if test -s conftest.err; then
5191 sed '10a\
5192 ... rest of stderr output deleted ...
5193 10q' conftest.err >conftest.er1
5194 cat conftest.er1 >&5
5196 rm -f conftest.er1 conftest.err
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; }
5199 done
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5205 main ()
5209 return 0;
5211 _ACEOF
5212 ac_clean_files_save=$ac_clean_files
5213 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5214 # Try to create an executable without -o first, disregard a.out.
5215 # It will help us diagnose broken compilers, and finding out an intuition
5216 # of exeext.
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5218 $as_echo_n "checking whether the C compiler works... " >&6; }
5219 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5221 # The possible output files:
5222 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5224 ac_rmfiles=
5225 for ac_file in $ac_files
5227 case $ac_file in
5228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5229 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5230 esac
5231 done
5232 rm -f $ac_rmfiles
5234 if { { ac_try="$ac_link_default"
5235 case "(($ac_try" in
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5238 esac
5239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5240 $as_echo "$ac_try_echo"; } >&5
5241 (eval "$ac_link_default") 2>&5
5242 ac_status=$?
5243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5244 test $ac_status = 0; }; then :
5245 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5246 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5247 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5248 # so that the user can short-circuit this test for compilers unknown to
5249 # Autoconf.
5250 for ac_file in $ac_files ''
5252 test -f "$ac_file" || continue
5253 case $ac_file in
5254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5256 [ab].out )
5257 # We found the default executable, but exeext='' is most
5258 # certainly right.
5259 break;;
5260 *.* )
5261 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5262 then :; else
5263 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5265 # We set ac_cv_exeext here because the later test for it is not
5266 # safe: cross compilers may not add the suffix if given an `-o'
5267 # argument, so we may need to know it at that point already.
5268 # Even if this section looks crufty: it has the advantage of
5269 # actually working.
5270 break;;
5272 break;;
5273 esac
5274 done
5275 test "$ac_cv_exeext" = no && ac_cv_exeext=
5277 else
5278 ac_file=''
5280 if test -z "$ac_file"; then :
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282 $as_echo "no" >&6; }
5283 $as_echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5288 { as_fn_set_status 77
5289 as_fn_error "C compiler cannot create executables
5290 See \`config.log' for more details." "$LINENO" 5; }; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293 $as_echo "yes" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5296 $as_echo_n "checking for C compiler default output file name... " >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5298 $as_echo "$ac_file" >&6; }
5299 ac_exeext=$ac_cv_exeext
5301 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5302 ac_clean_files=$ac_clean_files_save
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5304 $as_echo_n "checking for suffix of executables... " >&6; }
5305 if { { ac_try="$ac_link"
5306 case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309 esac
5310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5311 $as_echo "$ac_try_echo"; } >&5
5312 (eval "$ac_link") 2>&5
5313 ac_status=$?
5314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5315 test $ac_status = 0; }; then :
5316 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5317 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5318 # work properly (i.e., refer to `conftest.exe'), while it won't with
5319 # `rm'.
5320 for ac_file in conftest.exe conftest conftest.*; do
5321 test -f "$ac_file" || continue
5322 case $ac_file in
5323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5324 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5325 break;;
5326 * ) break;;
5327 esac
5328 done
5329 else
5330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5332 as_fn_error "cannot compute suffix of executables: cannot compile and link
5333 See \`config.log' for more details." "$LINENO" 5; }
5335 rm -f conftest conftest$ac_cv_exeext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5337 $as_echo "$ac_cv_exeext" >&6; }
5339 rm -f conftest.$ac_ext
5340 EXEEXT=$ac_cv_exeext
5341 ac_exeext=$EXEEXT
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <stdio.h>
5346 main ()
5348 FILE *f = fopen ("conftest.out", "w");
5349 return ferror (f) || fclose (f) != 0;
5352 return 0;
5354 _ACEOF
5355 ac_clean_files="$ac_clean_files conftest.out"
5356 # Check that the compiler produces executables we can run. If not, either
5357 # the compiler is broken, or we cross compile.
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5359 $as_echo_n "checking whether we are cross compiling... " >&6; }
5360 if test "$cross_compiling" != yes; then
5361 { { ac_try="$ac_link"
5362 case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365 esac
5366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5367 $as_echo "$ac_try_echo"; } >&5
5368 (eval "$ac_link") 2>&5
5369 ac_status=$?
5370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371 test $ac_status = 0; }
5372 if { ac_try='./conftest$ac_cv_exeext'
5373 { { case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5378 $as_echo "$ac_try_echo"; } >&5
5379 (eval "$ac_try") 2>&5
5380 ac_status=$?
5381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5382 test $ac_status = 0; }; }; then
5383 cross_compiling=no
5384 else
5385 if test "$cross_compiling" = maybe; then
5386 cross_compiling=yes
5387 else
5388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5390 as_fn_error "cannot run C compiled programs.
5391 If you meant to cross compile, use \`--host'.
5392 See \`config.log' for more details." "$LINENO" 5; }
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5397 $as_echo "$cross_compiling" >&6; }
5399 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5400 ac_clean_files=$ac_clean_files_save
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5402 $as_echo_n "checking for suffix of object files... " >&6; }
5403 if test "${ac_cv_objext+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5410 main ()
5414 return 0;
5416 _ACEOF
5417 rm -f conftest.o conftest.obj
5418 if { { ac_try="$ac_compile"
5419 case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422 esac
5423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5424 $as_echo "$ac_try_echo"; } >&5
5425 (eval "$ac_compile") 2>&5
5426 ac_status=$?
5427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428 test $ac_status = 0; }; then :
5429 for ac_file in conftest.o conftest.obj conftest.*; do
5430 test -f "$ac_file" || continue;
5431 case $ac_file in
5432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5434 break;;
5435 esac
5436 done
5437 else
5438 $as_echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5443 as_fn_error "cannot compute suffix of object files: cannot compile
5444 See \`config.log' for more details." "$LINENO" 5; }
5446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5449 $as_echo "$ac_cv_objext" >&6; }
5450 OBJEXT=$ac_cv_objext
5451 ac_objext=$OBJEXT
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5453 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5454 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5461 main ()
5463 #ifndef __GNUC__
5464 choke me
5465 #endif
5468 return 0;
5470 _ACEOF
5471 if ac_fn_c_try_compile "$LINENO"; then :
5472 ac_compiler_gnu=yes
5473 else
5474 ac_compiler_gnu=no
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5481 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5482 if test $ac_compiler_gnu = yes; then
5483 GCC=yes
5484 else
5485 GCC=
5487 ac_test_CFLAGS=${CFLAGS+set}
5488 ac_save_CFLAGS=$CFLAGS
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5490 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5491 if test "${ac_cv_prog_cc_g+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 ac_save_c_werror_flag=$ac_c_werror_flag
5495 ac_c_werror_flag=yes
5496 ac_cv_prog_cc_g=no
5497 CFLAGS="-g"
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5502 main ()
5506 return 0;
5508 _ACEOF
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 ac_cv_prog_cc_g=yes
5511 else
5512 CFLAGS=""
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5517 main ()
5521 return 0;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5526 else
5527 ac_c_werror_flag=$ac_save_c_werror_flag
5528 CFLAGS="-g"
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5533 main ()
5537 return 0;
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 ac_cv_prog_cc_g=yes
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 ac_c_werror_flag=$ac_save_c_werror_flag
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5551 $as_echo "$ac_cv_prog_cc_g" >&6; }
5552 if test "$ac_test_CFLAGS" = set; then
5553 CFLAGS=$ac_save_CFLAGS
5554 elif test $ac_cv_prog_cc_g = yes; then
5555 if test "$GCC" = yes; then
5556 CFLAGS="-g -O2"
5557 else
5558 CFLAGS="-g"
5560 else
5561 if test "$GCC" = yes; then
5562 CFLAGS="-O2"
5563 else
5564 CFLAGS=
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5568 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5569 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 ac_cv_prog_cc_c89=no
5573 ac_save_CC=$CC
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #include <stdarg.h>
5577 #include <stdio.h>
5578 #include <sys/types.h>
5579 #include <sys/stat.h>
5580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5581 struct buf { int x; };
5582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5583 static char *e (p, i)
5584 char **p;
5585 int i;
5587 return p[i];
5589 static char *f (char * (*g) (char **, int), char **p, ...)
5591 char *s;
5592 va_list v;
5593 va_start (v,p);
5594 s = g (p, va_arg (v,int));
5595 va_end (v);
5596 return s;
5599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5600 function prototypes and stuff, but not '\xHH' hex character constants.
5601 These don't provoke an error unfortunately, instead are silently treated
5602 as 'x'. The following induces an error, until -std is added to get
5603 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5604 array size at least. It's necessary to write '\x00'==0 to get something
5605 that's true only with -std. */
5606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5609 inside strings and character constants. */
5610 #define FOO(x) 'x'
5611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5613 int test (int i, double x);
5614 struct s1 {int (*f) (int a);};
5615 struct s2 {int (*f) (double a);};
5616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5617 int argc;
5618 char **argv;
5620 main ()
5622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5624 return 0;
5626 _ACEOF
5627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5628 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5630 CC="$ac_save_CC $ac_arg"
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632 ac_cv_prog_cc_c89=$ac_arg
5634 rm -f core conftest.err conftest.$ac_objext
5635 test "x$ac_cv_prog_cc_c89" != "xno" && break
5636 done
5637 rm -f conftest.$ac_ext
5638 CC=$ac_save_CC
5641 # AC_CACHE_VAL
5642 case "x$ac_cv_prog_cc_c89" in
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5645 $as_echo "none needed" >&6; } ;;
5646 xno)
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5648 $as_echo "unsupported" >&6; } ;;
5650 CC="$CC $ac_cv_prog_cc_c89"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5652 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5653 esac
5654 if test "x$ac_cv_prog_cc_c89" != xno; then :
5658 ac_ext=c
5659 ac_cpp='$CPP $CPPFLAGS'
5660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5663 DEPDIR="${am__leading_dot}deps"
5665 ac_config_commands="$ac_config_commands depfiles"
5668 am_make=${MAKE-make}
5669 cat > confinc << 'END'
5670 am__doit:
5671 @echo this is the am__doit target
5672 .PHONY: am__doit
5674 # If we don't find an include directive, just comment out the code.
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5676 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5677 am__include="#"
5678 am__quote=
5679 _am_result=none
5680 # First try GNU make style include.
5681 echo "include confinc" > confmf
5682 # Ignore all kinds of additional output from `make'.
5683 case `$am_make -s -f confmf 2> /dev/null` in #(
5684 *the\ am__doit\ target*)
5685 am__include=include
5686 am__quote=
5687 _am_result=GNU
5689 esac
5690 # Now try BSD make style include.
5691 if test "$am__include" = "#"; then
5692 echo '.include "confinc"' > confmf
5693 case `$am_make -s -f confmf 2> /dev/null` in #(
5694 *the\ am__doit\ target*)
5695 am__include=.include
5696 am__quote="\""
5697 _am_result=BSD
5699 esac
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5704 $as_echo "$_am_result" >&6; }
5705 rm -f confinc confmf
5707 # Check whether --enable-dependency-tracking was given.
5708 if test "${enable_dependency_tracking+set}" = set; then :
5709 enableval=$enable_dependency_tracking;
5712 if test "x$enable_dependency_tracking" != xno; then
5713 am_depcomp="$ac_aux_dir/depcomp"
5714 AMDEPBACKSLASH='\'
5716 if test "x$enable_dependency_tracking" != xno; then
5717 AMDEP_TRUE=
5718 AMDEP_FALSE='#'
5719 else
5720 AMDEP_TRUE='#'
5721 AMDEP_FALSE=
5726 depcc="$CC" am_compiler_list=
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5729 $as_echo_n "checking dependency style of $depcc... " >&6; }
5730 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5734 # We make a subdir and do the tests there. Otherwise we can end up
5735 # making bogus files that we don't know about and never remove. For
5736 # instance it was reported that on HP-UX the gcc test will end up
5737 # making a dummy file named `D' -- because `-MD' means `put the output
5738 # in D'.
5739 mkdir conftest.dir
5740 # Copy depcomp to subdir because otherwise we won't find it if we're
5741 # using a relative directory.
5742 cp "$am_depcomp" conftest.dir
5743 cd conftest.dir
5744 # We will build objects and dependencies in a subdirectory because
5745 # it helps to detect inapplicable dependency modes. For instance
5746 # both Tru64's cc and ICC support -MD to output dependencies as a
5747 # side effect of compilation, but ICC will put the dependencies in
5748 # the current directory while Tru64 will put them in the object
5749 # directory.
5750 mkdir sub
5752 am_cv_CC_dependencies_compiler_type=none
5753 if test "$am_compiler_list" = ""; then
5754 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5756 am__universal=false
5757 case " $depcc " in #(
5758 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5759 esac
5761 for depmode in $am_compiler_list; do
5762 # Setup a source with many dependencies, because some compilers
5763 # like to wrap large dependency lists on column 80 (with \), and
5764 # we should not choose a depcomp mode which is confused by this.
5766 # We need to recreate these files for each test, as the compiler may
5767 # overwrite some of them when testing with obscure command lines.
5768 # This happens at least with the AIX C compiler.
5769 : > sub/conftest.c
5770 for i in 1 2 3 4 5 6; do
5771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773 # Solaris 8's {/usr,}/bin/sh.
5774 touch sub/conftst$i.h
5775 done
5776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5778 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5779 # mode. It turns out that the SunPro C++ compiler does not properly
5780 # handle `-M -o', and we need to detect this. Also, some Intel
5781 # versions had trouble with output in subdirs
5782 am__obj=sub/conftest.${OBJEXT-o}
5783 am__minus_obj="-o $am__obj"
5784 case $depmode in
5785 gcc)
5786 # This depmode causes a compiler race in universal mode.
5787 test "$am__universal" = false || continue
5789 nosideeffect)
5790 # after this tag, mechanisms are not by side-effect, so they'll
5791 # only be used when explicitly requested
5792 if test "x$enable_dependency_tracking" = xyes; then
5793 continue
5794 else
5795 break
5798 msvisualcpp | msvcmsys)
5799 # This compiler won't grok `-c -o', but also, the minuso test has
5800 # not run yet. These depmodes are late enough in the game, and
5801 # so weak that their functioning should not be impacted.
5802 am__obj=conftest.${OBJEXT-o}
5803 am__minus_obj=
5805 none) break ;;
5806 esac
5807 if depmode=$depmode \
5808 source=sub/conftest.c object=$am__obj \
5809 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5810 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5811 >/dev/null 2>conftest.err &&
5812 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5813 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5814 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5815 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5816 # icc doesn't choke on unknown options, it will just issue warnings
5817 # or remarks (even with -Werror). So we grep stderr for any message
5818 # that says an option was ignored or not supported.
5819 # When given -MP, icc 7.0 and 7.1 complain thusly:
5820 # icc: Command line warning: ignoring option '-M'; no argument required
5821 # The diagnosis changed in icc 8.0:
5822 # icc: Command line remark: option '-MP' not supported
5823 if (grep 'ignoring option' conftest.err ||
5824 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5825 am_cv_CC_dependencies_compiler_type=$depmode
5826 break
5829 done
5831 cd ..
5832 rm -rf conftest.dir
5833 else
5834 am_cv_CC_dependencies_compiler_type=none
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5839 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5840 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5843 test "x$enable_dependency_tracking" != xno \
5844 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5845 am__fastdepCC_TRUE=
5846 am__fastdepCC_FALSE='#'
5847 else
5848 am__fastdepCC_TRUE='#'
5849 am__fastdepCC_FALSE=
5853 if test "x$CC" != xcc; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5855 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5856 else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5858 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5860 set dummy $CC; ac_cc=`$as_echo "$2" |
5861 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5862 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5869 main ()
5873 return 0;
5875 _ACEOF
5876 # Make sure it works both with $CC and with simple cc.
5877 # We do the test twice because some compilers refuse to overwrite an
5878 # existing .o file with -o, though they will create one.
5879 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5880 rm -f conftest2.*
5881 if { { case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5886 $as_echo "$ac_try_echo"; } >&5
5887 (eval "$ac_try") 2>&5
5888 ac_status=$?
5889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890 test $ac_status = 0; } &&
5891 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5896 $as_echo "$ac_try_echo"; } >&5
5897 (eval "$ac_try") 2>&5
5898 ac_status=$?
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; };
5901 then
5902 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5903 if test "x$CC" != xcc; then
5904 # Test first that cc exists at all.
5905 if { ac_try='cc -c conftest.$ac_ext >&5'
5906 { { case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909 esac
5910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5911 $as_echo "$ac_try_echo"; } >&5
5912 (eval "$ac_try") 2>&5
5913 ac_status=$?
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; }; }; then
5916 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5917 rm -f conftest2.*
5918 if { { case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5923 $as_echo "$ac_try_echo"; } >&5
5924 (eval "$ac_try") 2>&5
5925 ac_status=$?
5926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5927 test $ac_status = 0; } &&
5928 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5933 $as_echo "$ac_try_echo"; } >&5
5934 (eval "$ac_try") 2>&5
5935 ac_status=$?
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; };
5938 then
5939 # cc works too.
5941 else
5942 # cc exists but doesn't like -o.
5943 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5947 else
5948 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5950 rm -f core conftest*
5953 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5955 $as_echo "yes" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5960 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5964 # FIXME: we rely on the cache variable name because
5965 # there is no other way.
5966 set dummy $CC
5967 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5968 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5969 if test "$am_t" != yes; then
5970 # Losing compiler, so override with the script.
5971 # FIXME: It is wrong to rewrite CC.
5972 # But if we don't then we get into trouble of one sort or another.
5973 # A longer-term fix would be to have automake use am__CC in this case,
5974 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5975 CC="$am_aux_dir/compile $CC"
5980 if test x$GCC = xyes; then
5981 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5982 else
5983 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5986 if test "x$opsys" = "xmingw32"; then
5987 BUILDING_FOR_WINDOWSNT_TRUE=
5988 BUILDING_FOR_WINDOWSNT_FALSE='#'
5989 else
5990 BUILDING_FOR_WINDOWSNT_TRUE='#'
5991 BUILDING_FOR_WINDOWSNT_FALSE=
5995 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5996 # as we don't use them.
5998 # Avoid gnulib's threadlib module, as we do threads our own way.
6001 # Initialize gnulib right after choosing the compiler.
6003 ac_ext=c
6004 ac_cpp='$CPP $CPPFLAGS'
6005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6009 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6010 # On Suns, sometimes $CPP names a directory.
6011 if test -n "$CPP" && test -d "$CPP"; then
6012 CPP=
6014 if test -z "$CPP"; then
6015 if test "${ac_cv_prog_CPP+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 # Double quotes because CPP needs to be expanded
6019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6021 ac_preproc_ok=false
6022 for ac_c_preproc_warn_flag in '' yes
6024 # Use a header file that comes with gcc, so configuring glibc
6025 # with a fresh cross-compiler works.
6026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6027 # <limits.h> exists even on freestanding compilers.
6028 # On the NeXT, cc -E runs the code through the compiler's parser,
6029 # not just through cpp. "Syntax error" is here to catch this case.
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 #ifdef __STDC__
6033 # include <limits.h>
6034 #else
6035 # include <assert.h>
6036 #endif
6037 Syntax error
6038 _ACEOF
6039 if ac_fn_c_try_cpp "$LINENO"; then :
6041 else
6042 # Broken: fails on valid input.
6043 continue
6045 rm -f conftest.err conftest.$ac_ext
6047 # OK, works on sane cases. Now check whether nonexistent headers
6048 # can be detected and how.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <ac_nonexistent.h>
6052 _ACEOF
6053 if ac_fn_c_try_cpp "$LINENO"; then :
6054 # Broken: success on invalid input.
6055 continue
6056 else
6057 # Passes both tests.
6058 ac_preproc_ok=:
6059 break
6061 rm -f conftest.err conftest.$ac_ext
6063 done
6064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065 rm -f conftest.err conftest.$ac_ext
6066 if $ac_preproc_ok; then :
6067 break
6070 done
6071 ac_cv_prog_CPP=$CPP
6074 CPP=$ac_cv_prog_CPP
6075 else
6076 ac_cv_prog_CPP=$CPP
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6079 $as_echo "$CPP" >&6; }
6080 ac_preproc_ok=false
6081 for ac_c_preproc_warn_flag in '' yes
6083 # Use a header file that comes with gcc, so configuring glibc
6084 # with a fresh cross-compiler works.
6085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6086 # <limits.h> exists even on freestanding compilers.
6087 # On the NeXT, cc -E runs the code through the compiler's parser,
6088 # not just through cpp. "Syntax error" is here to catch this case.
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #ifdef __STDC__
6092 # include <limits.h>
6093 #else
6094 # include <assert.h>
6095 #endif
6096 Syntax error
6097 _ACEOF
6098 if ac_fn_c_try_cpp "$LINENO"; then :
6100 else
6101 # Broken: fails on valid input.
6102 continue
6104 rm -f conftest.err conftest.$ac_ext
6106 # OK, works on sane cases. Now check whether nonexistent headers
6107 # can be detected and how.
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <ac_nonexistent.h>
6111 _ACEOF
6112 if ac_fn_c_try_cpp "$LINENO"; then :
6113 # Broken: success on invalid input.
6114 continue
6115 else
6116 # Passes both tests.
6117 ac_preproc_ok=:
6118 break
6120 rm -f conftest.err conftest.$ac_ext
6122 done
6123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6124 rm -f conftest.err conftest.$ac_ext
6125 if $ac_preproc_ok; then :
6127 else
6128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6130 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6131 See \`config.log' for more details." "$LINENO" 5; }
6134 ac_ext=c
6135 ac_cpp='$CPP $CPPFLAGS'
6136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6142 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6143 if test "${ac_cv_path_GREP+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -z "$GREP"; then
6147 ac_path_GREP_found=false
6148 # Loop through the user's path and test for each of PROGNAME-LIST
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_prog in grep ggrep; do
6155 for ac_exec_ext in '' $ac_executable_extensions; do
6156 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6157 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6158 # Check for GNU ac_path_GREP and select it if it is found.
6159 # Check for GNU $ac_path_GREP
6160 case `"$ac_path_GREP" --version 2>&1` in
6161 *GNU*)
6162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6164 ac_count=0
6165 $as_echo_n 0123456789 >"conftest.in"
6166 while :
6168 cat "conftest.in" "conftest.in" >"conftest.tmp"
6169 mv "conftest.tmp" "conftest.in"
6170 cp "conftest.in" "conftest.nl"
6171 $as_echo 'GREP' >> "conftest.nl"
6172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6174 as_fn_arith $ac_count + 1 && ac_count=$as_val
6175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6176 # Best one so far, save it but keep looking for a better one
6177 ac_cv_path_GREP="$ac_path_GREP"
6178 ac_path_GREP_max=$ac_count
6180 # 10*(2^10) chars as input seems more than enough
6181 test $ac_count -gt 10 && break
6182 done
6183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6184 esac
6186 $ac_path_GREP_found && break 3
6187 done
6188 done
6189 done
6190 IFS=$as_save_IFS
6191 if test -z "$ac_cv_path_GREP"; then
6192 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6194 else
6195 ac_cv_path_GREP=$GREP
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6200 $as_echo "$ac_cv_path_GREP" >&6; }
6201 GREP="$ac_cv_path_GREP"
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6205 $as_echo_n "checking for egrep... " >&6; }
6206 if test "${ac_cv_path_EGREP+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6210 then ac_cv_path_EGREP="$GREP -E"
6211 else
6212 if test -z "$EGREP"; then
6213 ac_path_EGREP_found=false
6214 # Loop through the user's path and test for each of PROGNAME-LIST
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_prog in egrep; do
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6223 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6224 # Check for GNU ac_path_EGREP and select it if it is found.
6225 # Check for GNU $ac_path_EGREP
6226 case `"$ac_path_EGREP" --version 2>&1` in
6227 *GNU*)
6228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6230 ac_count=0
6231 $as_echo_n 0123456789 >"conftest.in"
6232 while :
6234 cat "conftest.in" "conftest.in" >"conftest.tmp"
6235 mv "conftest.tmp" "conftest.in"
6236 cp "conftest.in" "conftest.nl"
6237 $as_echo 'EGREP' >> "conftest.nl"
6238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6240 as_fn_arith $ac_count + 1 && ac_count=$as_val
6241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6242 # Best one so far, save it but keep looking for a better one
6243 ac_cv_path_EGREP="$ac_path_EGREP"
6244 ac_path_EGREP_max=$ac_count
6246 # 10*(2^10) chars as input seems more than enough
6247 test $ac_count -gt 10 && break
6248 done
6249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6250 esac
6252 $ac_path_EGREP_found && break 3
6253 done
6254 done
6255 done
6256 IFS=$as_save_IFS
6257 if test -z "$ac_cv_path_EGREP"; then
6258 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6260 else
6261 ac_cv_path_EGREP=$EGREP
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6267 $as_echo "$ac_cv_path_EGREP" >&6; }
6268 EGREP="$ac_cv_path_EGREP"
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6274 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6275 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6282 #ifdef __ACK__
6283 Amsterdam
6284 #endif
6286 _ACEOF
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6289 gl_cv_c_amsterdam_compiler=yes
6290 else
6291 gl_cv_c_amsterdam_compiler=no
6293 rm -f conftest*
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6298 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6299 if test -z "$AR"; then
6300 if test $gl_cv_c_amsterdam_compiler = yes; then
6301 AR='cc -c.a'
6302 if test -z "$ARFLAGS"; then
6303 ARFLAGS='-o'
6305 else
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}ar; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if test "${ac_cv_prog_AR+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$AR"; then
6315 ac_cv_prog_AR="$AR" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_AR="${ac_tool_prefix}ar"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 AR=$ac_cv_prog_AR
6335 if test -n "$AR"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6337 $as_echo "$AR" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6345 if test -z "$ac_cv_prog_AR"; then
6346 ac_ct_AR=$AR
6347 # Extract the first word of "ar", so it can be a program name with args.
6348 set dummy ar; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$ac_ct_AR"; then
6355 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_AR="ar"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6375 if test -n "$ac_ct_AR"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6377 $as_echo "$ac_ct_AR" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6383 if test "x$ac_ct_AR" = x; then
6384 AR="ar"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392 AR=$ac_ct_AR
6394 else
6395 AR="$ac_cv_prog_AR"
6398 if test -z "$ARFLAGS"; then
6399 ARFLAGS='cru'
6402 else
6403 if test -z "$ARFLAGS"; then
6404 ARFLAGS='cru'
6409 if test -z "$RANLIB"; then
6410 if test $gl_cv_c_amsterdam_compiler = yes; then
6411 RANLIB=':'
6412 else
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 if test -n "$RANLIB"; then
6422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6435 done
6436 done
6437 IFS=$as_save_IFS
6441 RANLIB=$ac_cv_prog_RANLIB
6442 if test -n "$RANLIB"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6444 $as_echo "$RANLIB" >&6; }
6445 else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6452 if test -z "$ac_cv_prog_RANLIB"; then
6453 ac_ct_RANLIB=$RANLIB
6454 # Extract the first word of "ranlib", so it can be a program name with args.
6455 set dummy ranlib; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 if test -n "$ac_ct_RANLIB"; then
6462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_RANLIB="ranlib"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6475 done
6476 done
6477 IFS=$as_save_IFS
6481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6482 if test -n "$ac_ct_RANLIB"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6484 $as_echo "$ac_ct_RANLIB" >&6; }
6485 else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6490 if test "x$ac_ct_RANLIB" = x; then
6491 RANLIB=":"
6492 else
6493 case $cross_compiling:$ac_tool_warned in
6494 yes:)
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6498 esac
6499 RANLIB=$ac_ct_RANLIB
6501 else
6502 RANLIB="$ac_cv_prog_RANLIB"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6510 $as_echo_n "checking for ANSI C header files... " >&6; }
6511 if test "${ac_cv_header_stdc+set}" = set; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6516 #include <stdlib.h>
6517 #include <stdarg.h>
6518 #include <string.h>
6519 #include <float.h>
6522 main ()
6526 return 0;
6528 _ACEOF
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_header_stdc=yes
6531 else
6532 ac_cv_header_stdc=no
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 if test $ac_cv_header_stdc = yes; then
6537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539 /* end confdefs.h. */
6540 #include <string.h>
6542 _ACEOF
6543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6544 $EGREP "memchr" >/dev/null 2>&1; then :
6546 else
6547 ac_cv_header_stdc=no
6549 rm -f conftest*
6553 if test $ac_cv_header_stdc = yes; then
6554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6557 #include <stdlib.h>
6559 _ACEOF
6560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6561 $EGREP "free" >/dev/null 2>&1; then :
6563 else
6564 ac_cv_header_stdc=no
6566 rm -f conftest*
6570 if test $ac_cv_header_stdc = yes; then
6571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6572 if test "$cross_compiling" = yes; then :
6574 else
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6577 #include <ctype.h>
6578 #include <stdlib.h>
6579 #if ((' ' & 0x0FF) == 0x020)
6580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6582 #else
6583 # define ISLOWER(c) \
6584 (('a' <= (c) && (c) <= 'i') \
6585 || ('j' <= (c) && (c) <= 'r') \
6586 || ('s' <= (c) && (c) <= 'z'))
6587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6588 #endif
6590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6592 main ()
6594 int i;
6595 for (i = 0; i < 256; i++)
6596 if (XOR (islower (i), ISLOWER (i))
6597 || toupper (i) != TOUPPER (i))
6598 return 2;
6599 return 0;
6601 _ACEOF
6602 if ac_fn_c_try_run "$LINENO"; then :
6604 else
6605 ac_cv_header_stdc=no
6607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6608 conftest.$ac_objext conftest.beam conftest.$ac_ext
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6614 $as_echo "$ac_cv_header_stdc" >&6; }
6615 if test $ac_cv_header_stdc = yes; then
6617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6623 inttypes.h stdint.h unistd.h
6624 do :
6625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6628 eval as_val=\$$as_ac_Header
6629 if test "x$as_val" = x""yes; then :
6630 cat >>confdefs.h <<_ACEOF
6631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6632 _ACEOF
6636 done
6640 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6641 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6642 MINIX=yes
6643 else
6644 MINIX=
6648 if test "$MINIX" = yes; then
6650 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6653 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6656 $as_echo "#define _MINIX 1" >>confdefs.h
6659 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6665 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6666 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6672 # define __EXTENSIONS__ 1
6673 $ac_includes_default
6675 main ()
6679 return 0;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 ac_cv_safe_to_define___extensions__=yes
6684 else
6685 ac_cv_safe_to_define___extensions__=no
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6690 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6691 test $ac_cv_safe_to_define___extensions__ = yes &&
6692 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6694 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6696 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6698 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6700 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6702 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6705 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6706 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 ac_cv_should_define__xopen_source=no
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6713 #include <wchar.h>
6714 mbstate_t x;
6716 main ()
6720 return 0;
6722 _ACEOF
6723 if ac_fn_c_try_compile "$LINENO"; then :
6725 else
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6729 #define _XOPEN_SOURCE 500
6730 #include <wchar.h>
6731 mbstate_t x;
6733 main ()
6737 return 0;
6739 _ACEOF
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741 ac_cv_should_define__xopen_source=yes
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6748 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6749 test $ac_cv_should_define__xopen_source = yes &&
6750 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6759 # Check whether --enable-largefile was given.
6760 if test "${enable_largefile+set}" = set; then :
6761 enableval=$enable_largefile;
6764 if test "$enable_largefile" != no; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6767 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6768 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 ac_cv_sys_largefile_CC=no
6772 if test "$GCC" != yes; then
6773 ac_save_CC=$CC
6774 while :; do
6775 # IRIX 6.2 and later do not support large files by default,
6776 # so use the C compiler's -n32 option if that helps.
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6779 #include <sys/types.h>
6780 /* Check that off_t can represent 2**63 - 1 correctly.
6781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6782 since some C++ compilers masquerading as C compilers
6783 incorrectly reject 9223372036854775807. */
6784 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6786 && LARGE_OFF_T % 2147483647 == 1)
6787 ? 1 : -1];
6789 main ()
6793 return 0;
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 break
6799 rm -f core conftest.err conftest.$ac_objext
6800 CC="$CC -n32"
6801 if ac_fn_c_try_compile "$LINENO"; then :
6802 ac_cv_sys_largefile_CC=' -n32'; break
6804 rm -f core conftest.err conftest.$ac_objext
6805 break
6806 done
6807 CC=$ac_save_CC
6808 rm -f conftest.$ac_ext
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6812 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6813 if test "$ac_cv_sys_largefile_CC" != no; then
6814 CC=$CC$ac_cv_sys_largefile_CC
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6818 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 while :; do
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <sys/types.h>
6826 /* Check that off_t can represent 2**63 - 1 correctly.
6827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6828 since some C++ compilers masquerading as C compilers
6829 incorrectly reject 9223372036854775807. */
6830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6832 && LARGE_OFF_T % 2147483647 == 1)
6833 ? 1 : -1];
6835 main ()
6839 return 0;
6841 _ACEOF
6842 if ac_fn_c_try_compile "$LINENO"; then :
6843 ac_cv_sys_file_offset_bits=no; break
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #define _FILE_OFFSET_BITS 64
6849 #include <sys/types.h>
6850 /* Check that off_t can represent 2**63 - 1 correctly.
6851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6852 since some C++ compilers masquerading as C compilers
6853 incorrectly reject 9223372036854775807. */
6854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6856 && LARGE_OFF_T % 2147483647 == 1)
6857 ? 1 : -1];
6859 main ()
6863 return 0;
6865 _ACEOF
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867 ac_cv_sys_file_offset_bits=64; break
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 ac_cv_sys_file_offset_bits=unknown
6871 break
6872 done
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6875 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6876 case $ac_cv_sys_file_offset_bits in #(
6877 no | unknown) ;;
6879 cat >>confdefs.h <<_ACEOF
6880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6881 _ACEOF
6883 esac
6884 rm -rf conftest*
6885 if test $ac_cv_sys_file_offset_bits = unknown; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6887 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6888 if test "${ac_cv_sys_large_files+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 while :; do
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 #include <sys/types.h>
6895 /* Check that off_t can represent 2**63 - 1 correctly.
6896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6897 since some C++ compilers masquerading as C compilers
6898 incorrectly reject 9223372036854775807. */
6899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6901 && LARGE_OFF_T % 2147483647 == 1)
6902 ? 1 : -1];
6904 main ()
6908 return 0;
6910 _ACEOF
6911 if ac_fn_c_try_compile "$LINENO"; then :
6912 ac_cv_sys_large_files=no; break
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 #define _LARGE_FILES 1
6918 #include <sys/types.h>
6919 /* Check that off_t can represent 2**63 - 1 correctly.
6920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6921 since some C++ compilers masquerading as C compilers
6922 incorrectly reject 9223372036854775807. */
6923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6925 && LARGE_OFF_T % 2147483647 == 1)
6926 ? 1 : -1];
6928 main ()
6932 return 0;
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"; then :
6936 ac_cv_sys_large_files=1; break
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 ac_cv_sys_large_files=unknown
6940 break
6941 done
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6944 $as_echo "$ac_cv_sys_large_files" >&6; }
6945 case $ac_cv_sys_large_files in #(
6946 no | unknown) ;;
6948 cat >>confdefs.h <<_ACEOF
6949 #define _LARGE_FILES $ac_cv_sys_large_files
6950 _ACEOF
6952 esac
6953 rm -rf conftest*
6957 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6961 case $ac_cv_prog_cc_stdc in #(
6962 no) :
6963 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6964 *) :
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6966 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6967 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 ac_cv_prog_cc_c99=no
6971 ac_save_CC=$CC
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 #include <stdarg.h>
6975 #include <stdbool.h>
6976 #include <stdlib.h>
6977 #include <wchar.h>
6978 #include <stdio.h>
6980 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6981 #define debug(...) fprintf (stderr, __VA_ARGS__)
6982 #define showlist(...) puts (#__VA_ARGS__)
6983 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6984 static void
6985 test_varargs_macros (void)
6987 int x = 1234;
6988 int y = 5678;
6989 debug ("Flag");
6990 debug ("X = %d\n", x);
6991 showlist (The first, second, and third items.);
6992 report (x>y, "x is %d but y is %d", x, y);
6995 // Check long long types.
6996 #define BIG64 18446744073709551615ull
6997 #define BIG32 4294967295ul
6998 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6999 #if !BIG_OK
7000 your preprocessor is broken;
7001 #endif
7002 #if BIG_OK
7003 #else
7004 your preprocessor is broken;
7005 #endif
7006 static long long int bignum = -9223372036854775807LL;
7007 static unsigned long long int ubignum = BIG64;
7009 struct incomplete_array
7011 int datasize;
7012 double data[];
7015 struct named_init {
7016 int number;
7017 const wchar_t *name;
7018 double average;
7021 typedef const char *ccp;
7023 static inline int
7024 test_restrict (ccp restrict text)
7026 // See if C++-style comments work.
7027 // Iterate through items via the restricted pointer.
7028 // Also check for declarations in for loops.
7029 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7030 continue;
7031 return 0;
7034 // Check varargs and va_copy.
7035 static void
7036 test_varargs (const char *format, ...)
7038 va_list args;
7039 va_start (args, format);
7040 va_list args_copy;
7041 va_copy (args_copy, args);
7043 const char *str;
7044 int number;
7045 float fnumber;
7047 while (*format)
7049 switch (*format++)
7051 case 's': // string
7052 str = va_arg (args_copy, const char *);
7053 break;
7054 case 'd': // int
7055 number = va_arg (args_copy, int);
7056 break;
7057 case 'f': // float
7058 fnumber = va_arg (args_copy, double);
7059 break;
7060 default:
7061 break;
7064 va_end (args_copy);
7065 va_end (args);
7069 main ()
7072 // Check bool.
7073 _Bool success = false;
7075 // Check restrict.
7076 if (test_restrict ("String literal") == 0)
7077 success = true;
7078 char *restrict newvar = "Another string";
7080 // Check varargs.
7081 test_varargs ("s, d' f .", "string", 65, 34.234);
7082 test_varargs_macros ();
7084 // Check flexible array members.
7085 struct incomplete_array *ia =
7086 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7087 ia->datasize = 10;
7088 for (int i = 0; i < ia->datasize; ++i)
7089 ia->data[i] = i * 1.234;
7091 // Check named initializers.
7092 struct named_init ni = {
7093 .number = 34,
7094 .name = L"Test wide string",
7095 .average = 543.34343,
7098 ni.number = 58;
7100 int dynamic_array[ni.number];
7101 dynamic_array[ni.number - 1] = 543;
7103 // work around unused variable warnings
7104 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7105 || dynamic_array[ni.number - 1] != 543);
7108 return 0;
7110 _ACEOF
7111 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7113 CC="$ac_save_CC $ac_arg"
7114 if ac_fn_c_try_compile "$LINENO"; then :
7115 ac_cv_prog_cc_c99=$ac_arg
7117 rm -f core conftest.err conftest.$ac_objext
7118 test "x$ac_cv_prog_cc_c99" != "xno" && break
7119 done
7120 rm -f conftest.$ac_ext
7121 CC=$ac_save_CC
7124 # AC_CACHE_VAL
7125 case "x$ac_cv_prog_cc_c99" in
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7128 $as_echo "none needed" >&6; } ;;
7129 xno)
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7131 $as_echo "unsupported" >&6; } ;;
7133 CC="$CC $ac_cv_prog_cc_c99"
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7135 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7136 esac
7137 if test "x$ac_cv_prog_cc_c99" != xno; then :
7138 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7141 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7142 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 ac_cv_prog_cc_c89=no
7146 ac_save_CC=$CC
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #include <stdarg.h>
7150 #include <stdio.h>
7151 #include <sys/types.h>
7152 #include <sys/stat.h>
7153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7154 struct buf { int x; };
7155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7156 static char *e (p, i)
7157 char **p;
7158 int i;
7160 return p[i];
7162 static char *f (char * (*g) (char **, int), char **p, ...)
7164 char *s;
7165 va_list v;
7166 va_start (v,p);
7167 s = g (p, va_arg (v,int));
7168 va_end (v);
7169 return s;
7172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7173 function prototypes and stuff, but not '\xHH' hex character constants.
7174 These don't provoke an error unfortunately, instead are silently treated
7175 as 'x'. The following induces an error, until -std is added to get
7176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7177 array size at least. It's necessary to write '\x00'==0 to get something
7178 that's true only with -std. */
7179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7182 inside strings and character constants. */
7183 #define FOO(x) 'x'
7184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7186 int test (int i, double x);
7187 struct s1 {int (*f) (int a);};
7188 struct s2 {int (*f) (double a);};
7189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7190 int argc;
7191 char **argv;
7193 main ()
7195 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7197 return 0;
7199 _ACEOF
7200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7201 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7203 CC="$ac_save_CC $ac_arg"
7204 if ac_fn_c_try_compile "$LINENO"; then :
7205 ac_cv_prog_cc_c89=$ac_arg
7207 rm -f core conftest.err conftest.$ac_objext
7208 test "x$ac_cv_prog_cc_c89" != "xno" && break
7209 done
7210 rm -f conftest.$ac_ext
7211 CC=$ac_save_CC
7214 # AC_CACHE_VAL
7215 case "x$ac_cv_prog_cc_c89" in
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7218 $as_echo "none needed" >&6; } ;;
7219 xno)
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7221 $as_echo "unsupported" >&6; } ;;
7223 CC="$CC $ac_cv_prog_cc_c89"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7225 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7226 esac
7227 if test "x$ac_cv_prog_cc_c89" != xno; then :
7228 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7229 else
7230 ac_cv_prog_cc_stdc=no
7235 esac
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7237 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7238 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7242 case $ac_cv_prog_cc_stdc in #(
7243 no) :
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7245 $as_echo "unsupported" >&6; } ;; #(
7246 '') :
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7248 $as_echo "none needed" >&6; } ;; #(
7249 *) :
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7251 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7252 esac
7256 # Code from module alloca-opt:
7257 # Code from module allocator:
7258 # Code from module at-internal:
7259 # Code from module binary-io:
7260 # Code from module c-ctype:
7261 # Code from module c-strcase:
7262 # Code from module careadlinkat:
7263 # Code from module clock-time:
7264 # Code from module close-stream:
7265 # Code from module crypto/md5:
7266 # Code from module crypto/sha1:
7267 # Code from module crypto/sha256:
7268 # Code from module crypto/sha512:
7269 # Code from module dirent:
7270 # Code from module dosname:
7271 # Code from module dtoastr:
7272 # Code from module dtotimespec:
7273 # Code from module dup2:
7274 # Code from module environ:
7275 # Code from module errno:
7276 # Code from module euidaccess:
7277 # Code from module execinfo:
7278 # Code from module extensions:
7280 # Code from module extern-inline:
7281 # Code from module faccessat:
7282 # Code from module fcntl:
7283 # Code from module fcntl-h:
7284 # Code from module fdatasync:
7285 # Code from module fdopendir:
7286 # Code from module filemode:
7287 # Code from module fpending:
7288 # Code from module fstatat:
7289 # Code from module fsync:
7290 # Code from module getdtablesize:
7291 # Code from module getgroups:
7292 # Code from module getloadavg:
7293 # Code from module getopt-gnu:
7294 # Code from module getopt-posix:
7295 # Code from module gettext-h:
7296 # Code from module gettime:
7297 # Code from module gettimeofday:
7298 # Code from module group-member:
7299 # Code from module include_next:
7300 # Code from module intprops:
7301 # Code from module inttypes-incomplete:
7302 # Code from module largefile:
7304 # Code from module lstat:
7305 # Code from module manywarnings:
7306 # Code from module memrchr:
7307 # Code from module mkostemp:
7308 # Code from module mktime:
7309 # Code from module multiarch:
7310 # Code from module nocrash:
7311 # Code from module openat-h:
7312 # Code from module pathmax:
7313 # Code from module pipe2:
7314 # Code from module pselect:
7315 # Code from module pthread_sigmask:
7316 # Code from module putenv:
7317 # Code from module qacl:
7318 # Code from module readlink:
7319 # Code from module readlinkat:
7320 # Code from module root-uid:
7321 # Code from module secure_getenv:
7322 # Code from module sig2str:
7323 # Code from module signal-h:
7324 # Code from module snippet/_Noreturn:
7325 # Code from module snippet/arg-nonnull:
7326 # Code from module snippet/c++defs:
7327 # Code from module snippet/warn-on-use:
7328 # Code from module socklen:
7329 # Code from module ssize_t:
7330 # Code from module stat:
7331 # Code from module stat-time:
7332 # Code from module stdalign:
7333 # Code from module stdarg:
7337 # Code from module stdbool:
7338 # Code from module stddef:
7339 # Code from module stdint:
7340 # Code from module stdio:
7341 # Code from module stdlib:
7342 # Code from module strftime:
7343 # Code from module string:
7344 # Code from module strtoimax:
7345 # Code from module strtoll:
7346 # Code from module strtoull:
7347 # Code from module strtoumax:
7348 # Code from module symlink:
7349 # Code from module sys_select:
7350 # Code from module sys_stat:
7351 # Code from module sys_time:
7352 # Code from module tempname:
7353 # Code from module time:
7354 # Code from module time_r:
7355 # Code from module timer-time:
7356 # Code from module timespec:
7357 # Code from module timespec-add:
7358 # Code from module timespec-sub:
7359 # Code from module u64:
7360 # Code from module unistd:
7361 # Code from module unsetenv:
7362 # Code from module utimens:
7363 # Code from module verify:
7364 # Code from module warnings:
7365 # Code from module xalloc-oversized:
7368 if test "$ac_test_CFLAGS" != set; then
7369 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7370 # if -g3 works and the user does not specify CFLAGS.
7371 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7372 case $CFLAGS in
7373 '-g')
7374 emacs_g3_CFLAGS='-g3';;
7375 '-g -O2')
7376 emacs_g3_CFLAGS='-g3 -O2';;
7378 emacs_g3_CFLAGS='';;
7379 esac
7380 if test -n "$emacs_g3_CFLAGS"; then
7381 emacs_save_CFLAGS=$CFLAGS
7382 CFLAGS=$emacs_g3_CFLAGS
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7384 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7385 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7392 main ()
7396 return 0;
7398 _ACEOF
7399 if ac_fn_c_try_link "$LINENO"; then :
7400 emacs_cv_prog_cc_g3=yes
7401 else
7402 emacs_cv_prog_cc_g3=no
7404 rm -f core conftest.err conftest.$ac_objext \
7405 conftest$ac_exeext conftest.$ac_ext
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7408 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7409 if test $emacs_cv_prog_cc_g3 != yes; then
7410 CFLAGS=$emacs_save_CFLAGS
7412 if test $opsys = mingw32; then
7413 CFLAGS="$CFLAGS -gdwarf-2"
7417 case $CFLAGS in
7418 *-O*) ;;
7420 # No optimization flag was inferred for this non-GCC compiler.
7421 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7422 emacs_save_CFLAGS=$CFLAGS
7423 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7424 CFLAGS=${CFLAGS}-O
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7426 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7427 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7434 main ()
7438 return 0;
7440 _ACEOF
7441 if ac_fn_c_try_link "$LINENO"; then :
7442 emacs_cv_prog_cc_o=yes
7443 else
7444 emacs_cv_prog_cc_o=no
7446 rm -f core conftest.err conftest.$ac_objext \
7447 conftest$ac_exeext conftest.$ac_ext
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7450 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7451 if test $emacs_cv_prog_cc_o != yes; then
7452 CFLAGS=$emacs_save_CFLAGS
7453 fi ;;
7454 esac
7457 # Check whether --enable-gcc-warnings was given.
7458 if test "${enable_gcc_warnings+set}" = set; then :
7459 enableval=$enable_gcc_warnings; case $enableval in
7460 yes|no) ;;
7461 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7462 esac
7463 gl_gcc_warnings=$enableval
7464 else
7465 gl_gcc_warnings=no
7470 # Check whether --enable-link-time-optimization was given.
7471 if test "${enable_link_time_optimization+set}" = set; then :
7472 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7474 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7475 ac_lto_supported=no
7476 if test x$GCC = xyes; then
7477 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7478 if test x$CPUS != x; then
7479 LTO="-flto=$CPUS"
7480 else
7481 LTO="-flto"
7483 old_CFLAGS=$CFLAGS
7484 CFLAGS="$CFLAGS $LTO"
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7489 main ()
7493 return 0;
7495 _ACEOF
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497 ac_lto_supported=yes
7498 else
7499 ac_lto_supported=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 CFLAGS="$old_CFLAGS"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7505 $as_echo "$ac_lto_supported" >&6; }
7506 if test "$ac_lto_supported" = "yes"; then
7507 CFLAGS="$CFLAGS $LTO"
7513 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7514 # ------------------------------------------------
7515 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7516 # Otherwise, run RUN-IF-NOT-FOUND.
7519 # When compiling with GCC, prefer -isystem to -I when including system
7520 # include files, to avoid generating useless diagnostics for the files.
7521 if test "$gl_gcc_warnings" != yes; then
7522 isystem='-I'
7523 else
7524 isystem='-isystem '
7526 # This, $nw, is the list of warnings we disable.
7529 case $with_x_toolkit in
7530 lucid | athena | motif)
7531 # Old toolkits mishandle 'const'.
7532 nw="$nw -Wwrite-strings"
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7536 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
7537 if test "${gl_cv_warn_c__Werror__Wunknown_warning_option+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7541 gl_save_compiler_FLAGS="$CFLAGS"
7542 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
7543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544 /* end confdefs.h. */
7547 main ()
7551 return 0;
7553 _ACEOF
7554 if ac_fn_c_try_compile "$LINENO"; then :
7555 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
7556 else
7557 gl_cv_warn_c__Werror__Wunknown_warning_option=no
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 CFLAGS="$gl_save_compiler_FLAGS"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
7564 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
7565 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = x""yes; then :
7566 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
7567 else
7568 gl_unknown_warnings_are_errors=
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7573 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7574 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7578 gl_save_compiler_FLAGS="$CFLAGS"
7579 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7584 main ()
7588 return 0;
7590 _ACEOF
7591 if ac_fn_c_try_compile "$LINENO"; then :
7592 gl_cv_warn_c__Werror=yes
7593 else
7594 gl_cv_warn_c__Werror=no
7596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 CFLAGS="$gl_save_compiler_FLAGS"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7601 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7602 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7603 as_fn_append WERROR_CFLAGS " -Werror"
7608 esac
7611 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7612 nw="$nw -Woverlength-strings" # Not a problem these days
7613 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7614 nw="$nw -Wformat-nonliteral" # we do this a lot
7615 nw="$nw -Wvla" # warnings in gettext.h
7616 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7617 nw="$nw -Wswitch-default" # Too many warnings for now
7618 nw="$nw -Winline" # OK to ignore 'inline'
7619 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7620 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7621 # signed overflow has undefined behavior
7622 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7623 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7624 nw="$nw -Wbad-function-cast" # These casts are no worse than others.
7626 # Emacs doesn't care about shadowing; see
7627 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7628 nw="$nw -Wshadow"
7630 # Emacs's use of alloca inhibits protecting the stack.
7631 nw="$nw -Wstack-protector"
7633 # The following line should be removable at some point.
7634 nw="$nw -Wsuggest-attribute=pure"
7636 # clang is unduly picky about some things.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7638 $as_echo_n "checking whether the compiler is clang... " >&6; }
7639 if test "${emacs_cv_clang+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7645 #ifndef __clang__
7646 #error "not clang"
7647 #endif
7650 main ()
7654 return 0;
7656 _ACEOF
7657 if ac_fn_c_try_compile "$LINENO"; then :
7658 emacs_cv_clang=yes
7659 else
7660 emacs_cv_clang=no
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_clang" >&5
7665 $as_echo "$emacs_cv_clang" >&6; }
7666 if test $emacs_cv_clang = yes; then
7667 nw="$nw -Wcast-align"
7672 if test -n "$GCC"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7675 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7676 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7680 gl_save_CFLAGS="$CFLAGS"
7681 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7686 main ()
7690 return 0;
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 gl_cv_cc_nomfi_supported=yes
7695 else
7696 gl_cv_cc_nomfi_supported=no
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 CFLAGS="$gl_save_CFLAGS"
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7703 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7705 if test "$gl_cv_cc_nomfi_supported" = yes; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7707 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7708 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7712 gl_save_CFLAGS="$CFLAGS"
7713 CFLAGS="$CFLAGS -W -Werror"
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 void f (void)
7718 typedef struct { int a; int b; } s_t;
7719 s_t s1 = { 0, };
7723 main ()
7727 return 0;
7729 _ACEOF
7730 if ac_fn_c_try_compile "$LINENO"; then :
7731 gl_cv_cc_nomfi_needed=no
7732 else
7733 gl_cv_cc_nomfi_needed=yes
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 CFLAGS="$gl_save_CFLAGS"
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7741 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7745 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7746 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7750 gl_save_CFLAGS="$CFLAGS"
7751 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7756 main ()
7760 return 0;
7762 _ACEOF
7763 if ac_fn_c_try_compile "$LINENO"; then :
7764 gl_cv_cc_uninitialized_supported=yes
7765 else
7766 gl_cv_cc_uninitialized_supported=no
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 CFLAGS="$gl_save_CFLAGS"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7773 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7777 # List all gcc warning categories.
7778 gl_manywarn_set=
7779 for gl_manywarn_item in \
7780 -W \
7781 -Wabi \
7782 -Waddress \
7783 -Waggressive-loop-optimizations \
7784 -Wall \
7785 -Warray-bounds \
7786 -Wattributes \
7787 -Wbad-function-cast \
7788 -Wbuiltin-macro-redefined \
7789 -Wcast-align \
7790 -Wchar-subscripts \
7791 -Wclobbered \
7792 -Wcomment \
7793 -Wcomments \
7794 -Wcoverage-mismatch \
7795 -Wcpp \
7796 -Wdeprecated \
7797 -Wdeprecated-declarations \
7798 -Wdisabled-optimization \
7799 -Wdiv-by-zero \
7800 -Wdouble-promotion \
7801 -Wempty-body \
7802 -Wendif-labels \
7803 -Wenum-compare \
7804 -Wextra \
7805 -Wformat-contains-nul \
7806 -Wformat-extra-args \
7807 -Wformat-nonliteral \
7808 -Wformat-security \
7809 -Wformat-y2k \
7810 -Wformat-zero-length \
7811 -Wfree-nonheap-object \
7812 -Wignored-qualifiers \
7813 -Wimplicit \
7814 -Wimplicit-function-declaration \
7815 -Wimplicit-int \
7816 -Winit-self \
7817 -Winline \
7818 -Wint-to-pointer-cast \
7819 -Winvalid-memory-model \
7820 -Winvalid-pch \
7821 -Wjump-misses-init \
7822 -Wlogical-op \
7823 -Wmain \
7824 -Wmaybe-uninitialized \
7825 -Wmissing-braces \
7826 -Wmissing-declarations \
7827 -Wmissing-field-initializers \
7828 -Wmissing-include-dirs \
7829 -Wmissing-parameter-type \
7830 -Wmissing-prototypes \
7831 -Wmudflap \
7832 -Wmultichar \
7833 -Wnarrowing \
7834 -Wnested-externs \
7835 -Wnonnull \
7836 -Wnormalized=nfc \
7837 -Wold-style-declaration \
7838 -Wold-style-definition \
7839 -Woverflow \
7840 -Woverlength-strings \
7841 -Woverride-init \
7842 -Wpacked \
7843 -Wpacked-bitfield-compat \
7844 -Wparentheses \
7845 -Wpointer-arith \
7846 -Wpointer-sign \
7847 -Wpointer-to-int-cast \
7848 -Wpragmas \
7849 -Wreturn-local-addr \
7850 -Wreturn-type \
7851 -Wsequence-point \
7852 -Wshadow \
7853 -Wsizeof-pointer-memaccess \
7854 -Wstack-protector \
7855 -Wstrict-aliasing \
7856 -Wstrict-overflow \
7857 -Wstrict-prototypes \
7858 -Wsuggest-attribute=const \
7859 -Wsuggest-attribute=format \
7860 -Wsuggest-attribute=noreturn \
7861 -Wsuggest-attribute=pure \
7862 -Wswitch \
7863 -Wswitch-default \
7864 -Wsync-nand \
7865 -Wsystem-headers \
7866 -Wtrampolines \
7867 -Wtrigraphs \
7868 -Wtype-limits \
7869 -Wuninitialized \
7870 -Wunknown-pragmas \
7871 -Wunsafe-loop-optimizations \
7872 -Wunused \
7873 -Wunused-but-set-parameter \
7874 -Wunused-but-set-variable \
7875 -Wunused-function \
7876 -Wunused-label \
7877 -Wunused-local-typedefs \
7878 -Wunused-macros \
7879 -Wunused-parameter \
7880 -Wunused-result \
7881 -Wunused-value \
7882 -Wunused-variable \
7883 -Wvarargs \
7884 -Wvariadic-macros \
7885 -Wvector-operation-performance \
7886 -Wvla \
7887 -Wvolatile-register-var \
7888 -Wwrite-strings \
7890 ; do
7891 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7892 done
7894 # Disable specific options as needed.
7895 if test "$gl_cv_cc_nomfi_needed" = yes; then
7896 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7899 if test "$gl_cv_cc_uninitialized_supported" = no; then
7900 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7903 ws=$gl_manywarn_set
7906 gl_warn_set=
7907 set x $ws; shift
7908 for gl_warn_item
7910 case " $nw " in
7911 *" $gl_warn_item "*)
7914 gl_warn_set="$gl_warn_set $gl_warn_item"
7916 esac
7917 done
7918 ws=$gl_warn_set
7920 for w in $ws; do
7922 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7923 gl_positive="$w"
7924 case $gl_positive in
7925 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
7926 esac
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7928 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7929 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7933 gl_save_compiler_FLAGS="$CFLAGS"
7934 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7939 main ()
7943 return 0;
7945 _ACEOF
7946 if ac_fn_c_try_compile "$LINENO"; then :
7947 eval "$as_gl_Warn=yes"
7948 else
7949 eval "$as_gl_Warn=no"
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 CFLAGS="$gl_save_compiler_FLAGS"
7955 eval ac_res=\$$as_gl_Warn
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7957 $as_echo "$ac_res" >&6; }
7958 eval as_val=\$$as_gl_Warn
7959 if test "x$as_val" = x""yes; then :
7960 as_fn_append WARN_CFLAGS " $w"
7964 done
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7967 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7968 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7972 gl_save_compiler_FLAGS="$CFLAGS"
7973 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7978 main ()
7982 return 0;
7984 _ACEOF
7985 if ac_fn_c_try_compile "$LINENO"; then :
7986 gl_cv_warn_c__Wno_missing_field_initializers=yes
7987 else
7988 gl_cv_warn_c__Wno_missing_field_initializers=no
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 CFLAGS="$gl_save_compiler_FLAGS"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7995 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7996 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7997 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8000 # We need this one
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
8003 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
8004 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8008 gl_save_compiler_FLAGS="$CFLAGS"
8009 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8014 main ()
8018 return 0;
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022 gl_cv_warn_c__Wno_sign_compare=yes
8023 else
8024 gl_cv_warn_c__Wno_sign_compare=no
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 CFLAGS="$gl_save_compiler_FLAGS"
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
8031 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
8032 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
8033 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
8036 # Too many warnings for now
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
8039 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
8040 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8044 gl_save_compiler_FLAGS="$CFLAGS"
8045 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits"
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8050 main ()
8054 return 0;
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058 gl_cv_warn_c__Wno_type_limits=yes
8059 else
8060 gl_cv_warn_c__Wno_type_limits=no
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 CFLAGS="$gl_save_compiler_FLAGS"
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
8067 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
8068 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
8069 as_fn_append WARN_CFLAGS " -Wno-type-limits"
8072 # Too many warnings for now
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
8075 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
8076 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8080 gl_save_compiler_FLAGS="$CFLAGS"
8081 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wswitch"
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8086 main ()
8090 return 0;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"; then :
8094 gl_cv_warn_c__Wno_switch=yes
8095 else
8096 gl_cv_warn_c__Wno_switch=no
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 CFLAGS="$gl_save_compiler_FLAGS"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
8103 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
8104 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
8105 as_fn_append WARN_CFLAGS " -Wno-switch"
8108 # Too many warnings for now
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
8111 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
8112 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8116 gl_save_compiler_FLAGS="$CFLAGS"
8117 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8122 main ()
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 gl_cv_warn_c__Wno_unused_parameter=yes
8131 else
8132 gl_cv_warn_c__Wno_unused_parameter=no
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 CFLAGS="$gl_save_compiler_FLAGS"
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
8139 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
8140 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
8141 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
8144 # Too many warnings for now
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
8147 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
8148 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8152 gl_save_compiler_FLAGS="$CFLAGS"
8153 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8158 main ()
8162 return 0;
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166 gl_cv_warn_c__Wno_format_nonliteral=yes
8167 else
8168 gl_cv_warn_c__Wno_format_nonliteral=no
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 CFLAGS="$gl_save_compiler_FLAGS"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8175 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8176 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8177 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8182 # In spite of excluding -Wlogical-op above, it is enabled, as of
8183 # gcc 4.5.0 20090517.
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8186 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8187 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8191 gl_save_compiler_FLAGS="$CFLAGS"
8192 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op"
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8197 main ()
8201 return 0;
8203 _ACEOF
8204 if ac_fn_c_try_compile "$LINENO"; then :
8205 gl_cv_warn_c__Wno_logical_op=yes
8206 else
8207 gl_cv_warn_c__Wno_logical_op=no
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 CFLAGS="$gl_save_compiler_FLAGS"
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8214 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8215 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8216 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8221 # More things that clang is unduly picky about.
8222 if test $emacs_cv_clang = yes; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-extra-args" >&5
8225 $as_echo_n "checking whether C compiler handles -Wno-format-extra-args... " >&6; }
8226 if test "${gl_cv_warn_c__Wno_format_extra_args+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8230 gl_save_compiler_FLAGS="$CFLAGS"
8231 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-extra-args"
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8236 main ()
8240 return 0;
8242 _ACEOF
8243 if ac_fn_c_try_compile "$LINENO"; then :
8244 gl_cv_warn_c__Wno_format_extra_args=yes
8245 else
8246 gl_cv_warn_c__Wno_format_extra_args=no
8248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 CFLAGS="$gl_save_compiler_FLAGS"
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_extra_args" >&5
8253 $as_echo "$gl_cv_warn_c__Wno_format_extra_args" >&6; }
8254 if test "x$gl_cv_warn_c__Wno_format_extra_args" = x""yes; then :
8255 as_fn_append WARN_CFLAGS " -Wno-format-extra-args"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare" >&5
8261 $as_echo_n "checking whether C compiler handles -Wno-tautological-constant-out-of-range-compare... " >&6; }
8262 if test "${gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8266 gl_save_compiler_FLAGS="$CFLAGS"
8267 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtautological-constant-out-of-range-compare"
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8272 main ()
8276 return 0;
8278 _ACEOF
8279 if ac_fn_c_try_compile "$LINENO"; then :
8280 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=yes
8281 else
8282 gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare=no
8284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 CFLAGS="$gl_save_compiler_FLAGS"
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&5
8289 $as_echo "$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" >&6; }
8290 if test "x$gl_cv_warn_c__Wno_tautological_constant_out_of_range_compare" = x""yes; then :
8291 as_fn_append WARN_CFLAGS " -Wno-tautological-constant-out-of-range-compare"
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-command-line-argument" >&5
8297 $as_echo_n "checking whether C compiler handles -Wno-unused-command-line-argument... " >&6; }
8298 if test "${gl_cv_warn_c__Wno_unused_command_line_argument+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8302 gl_save_compiler_FLAGS="$CFLAGS"
8303 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-command-line-argument"
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8308 main ()
8312 return 0;
8314 _ACEOF
8315 if ac_fn_c_try_compile "$LINENO"; then :
8316 gl_cv_warn_c__Wno_unused_command_line_argument=yes
8317 else
8318 gl_cv_warn_c__Wno_unused_command_line_argument=no
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 CFLAGS="$gl_save_compiler_FLAGS"
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_command_line_argument" >&5
8325 $as_echo "$gl_cv_warn_c__Wno_unused_command_line_argument" >&6; }
8326 if test "x$gl_cv_warn_c__Wno_unused_command_line_argument" = x""yes; then :
8327 as_fn_append WARN_CFLAGS " -Wno-unused-command-line-argument"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
8333 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
8334 if test "${gl_cv_warn_c__Wno_unused_value+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8338 gl_save_compiler_FLAGS="$CFLAGS"
8339 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8344 main ()
8348 return 0;
8350 _ACEOF
8351 if ac_fn_c_try_compile "$LINENO"; then :
8352 gl_cv_warn_c__Wno_unused_value=yes
8353 else
8354 gl_cv_warn_c__Wno_unused_value=no
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 CFLAGS="$gl_save_compiler_FLAGS"
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
8361 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
8362 if test "x$gl_cv_warn_c__Wno_unused_value" = x""yes; then :
8363 as_fn_append WARN_CFLAGS " -Wno-unused-value"
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8371 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8372 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8376 gl_save_compiler_FLAGS="$CFLAGS"
8377 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8382 main ()
8386 return 0;
8388 _ACEOF
8389 if ac_fn_c_try_compile "$LINENO"; then :
8390 gl_cv_warn_c__fdiagnostics_show_option=yes
8391 else
8392 gl_cv_warn_c__fdiagnostics_show_option=no
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 CFLAGS="$gl_save_compiler_FLAGS"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8399 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8400 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8401 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8407 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8408 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8412 gl_save_compiler_FLAGS="$CFLAGS"
8413 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time"
8414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8418 main ()
8422 return 0;
8424 _ACEOF
8425 if ac_fn_c_try_compile "$LINENO"; then :
8426 gl_cv_warn_c__funit_at_a_time=yes
8427 else
8428 gl_cv_warn_c__funit_at_a_time=no
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 CFLAGS="$gl_save_compiler_FLAGS"
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8435 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8436 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8437 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8443 $as_echo "#define lint 1" >>confdefs.h
8447 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8450 # We use a slightly smaller set of warning options for lib/.
8451 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8453 nw="$nw -Wunused-macros"
8456 gl_warn_set=
8457 set x $WARN_CFLAGS; shift
8458 for gl_warn_item
8460 case " $nw " in
8461 *" $gl_warn_item "*)
8464 gl_warn_set="$gl_warn_set $gl_warn_item"
8466 esac
8467 done
8468 GNULIB_WARN_CFLAGS=$gl_warn_set
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8479 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8480 rm -f conf$$ conf$$.file
8482 LN_S_FILEONLY='cp -p'
8484 if (echo >conf$$.file) 2>/dev/null; then
8485 if ln -s conf$$.file conf$$ 2>/dev/null; then
8486 LN_S_FILEONLY='ln -s'
8487 elif ln conf$$.file conf$$ 2>/dev/null; then
8488 LN_S_FILEONLY=ln
8492 rm -f conf$$ conf$$.file
8494 if test "$LN_S_FILEONLY" = "ln -s"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8496 $as_echo "yes" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8499 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8505 if test "$opsys" = "mingw32"; then
8506 LN_S="ln"
8509 # Extract the first word of "install-info", so it can be a program name with args.
8510 set dummy install-info; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 case $INSTALL_INFO in
8517 [\\/]* | ?:[\\/]*)
8518 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8532 done
8533 done
8534 IFS=$as_save_IFS
8536 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8538 esac
8540 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8541 if test -n "$INSTALL_INFO"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8543 $as_echo "$INSTALL_INFO" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8550 # Extract the first word of "gzip", so it can be a program name with args.
8551 set dummy gzip; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 case $GZIP_PROG in
8558 [\\/]* | ?:[\\/]*)
8559 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8573 done
8574 done
8575 IFS=$as_save_IFS
8578 esac
8580 GZIP_PROG=$ac_cv_path_GZIP_PROG
8581 if test -n "$GZIP_PROG"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8583 $as_echo "$GZIP_PROG" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8591 if test $opsys = gnu-linux; then
8592 # Extract the first word of "paxctl", so it can be a program name with args.
8593 set dummy paxctl; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 case $PAXCTL in
8600 [\\/]* | ?:[\\/]*)
8601 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8615 done
8616 done
8617 IFS=$as_save_IFS
8620 esac
8622 PAXCTL=$ac_cv_path_PAXCTL
8623 if test -n "$PAXCTL"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8625 $as_echo "$PAXCTL" >&6; }
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8632 if test "X$PAXCTL" != X; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8634 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8639 main ()
8643 return 0;
8645 _ACEOF
8646 if ac_fn_c_try_link "$LINENO"; then :
8647 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8648 $as_echo "yes" >&6; }
8649 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }; PAXCTL=""; fi
8652 rm -f core conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8657 ## Need makeinfo >= 4.7 (?) to build the manuals.
8658 # Extract the first word of "makeinfo", so it can be a program name with args.
8659 set dummy makeinfo; ac_word=$2
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8661 $as_echo_n "checking for $ac_word... " >&6; }
8662 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 case $MAKEINFO in
8666 [\\/]* | ?:[\\/]*)
8667 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $PATH
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8677 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8681 done
8682 done
8683 IFS=$as_save_IFS
8685 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8687 esac
8689 MAKEINFO=$ac_cv_path_MAKEINFO
8690 if test -n "$MAKEINFO"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8692 $as_echo "$MAKEINFO" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8699 if test "$MAKEINFO" != "no"; then
8700 case `
8701 $MAKEINFO --version 2> /dev/null |
8702 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8703 ` in
8704 '') MAKEINFO=no;;
8705 esac
8708 ## Makeinfo is unusual. For a released Emacs, the manuals are
8709 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8710 ## therefore in the category of "special tools" not normally required, which
8711 ## configure does not have to check for (eg autoconf itself).
8712 ## In a Bazaar checkout on the other hand, the manuals are not included.
8713 ## So makeinfo is a requirement to build from Bazaar, and configure
8714 ## should test for it as it does for any other build requirement.
8715 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8716 ## with pre-built manuals, from a Bazaar checkout.
8717 HAVE_MAKEINFO=yes
8719 if test "$MAKEINFO" = "no"; then
8720 MAKEINFO=makeinfo
8721 if test "x${with_makeinfo}" = "xno"; then
8722 HAVE_MAKEINFO=no
8723 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8724 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8725 source tree does not seem to have pre-built manuals in the \`info' directory.
8726 Either install a suitable version of makeinfo, or re-run configure
8727 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8732 INFO_EXT=.info
8733 INFO_OPTS=--no-split
8738 if test x$GCC = xyes; then
8739 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8740 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8741 else
8742 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8743 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8747 late_LDFLAGS=$LDFLAGS
8748 if test x$GCC = xyes; then
8749 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8750 else
8751 LDFLAGS="$LDFLAGS -znocombreloc"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8755 $as_echo_n "checking for -znocombreloc... " >&6; }
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8760 main ()
8764 return 0;
8766 _ACEOF
8767 if ac_fn_c_try_link "$LINENO"; then :
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8769 $as_echo "yes" >&6; }
8770 else
8771 LDFLAGS=$late_LDFLAGS
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8775 rm -f core conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8779 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8780 case "$opsys" in
8781 your-opsys-here) CANNOT_DUMP=yes ;;
8782 esac
8784 test "$CANNOT_DUMP" = "yes" && \
8786 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8792 UNEXEC_OBJ=unexelf.o
8793 case "$opsys" in
8794 # MSDOS uses unexcoff.o
8795 aix4-2)
8796 UNEXEC_OBJ=unexaix.o
8798 cygwin)
8799 UNEXEC_OBJ=unexcw.o
8801 darwin)
8802 UNEXEC_OBJ=unexmacosx.o
8804 hpux10-20 | hpux11)
8805 UNEXEC_OBJ=unexhp9k800.o
8807 mingw32)
8808 UNEXEC_OBJ=unexw32.o
8810 sol2-10)
8811 # Use the Solaris dldump() function, called from unexsol.c, to dump
8812 # emacs, instead of the generic ELF dump code found in unexelf.c.
8813 # The resulting binary has a complete symbol table, and is better
8814 # for debugging and other observability tools (debuggers, pstack, etc).
8816 # If you encounter a problem using dldump(), please consider sending
8817 # a message to the OpenSolaris tools-linking mailing list:
8818 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8820 # It is likely that dldump() works with older Solaris too, but this has
8821 # not been tested, so for now this change is for Solaris 10 or newer.
8822 UNEXEC_OBJ=unexsol.o
8824 esac
8826 LD_SWITCH_SYSTEM=
8827 case "$opsys" in
8828 freebsd|dragonfly)
8829 ## Let `ld' find image libs and similar things in /usr/local/lib.
8830 ## The system compiler, GCC, has apparently been modified to not
8831 ## look there, contrary to what a stock GCC would do.
8832 ### It's not our place to do this. See bug#10313#17.
8833 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8837 gnu-linux)
8838 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8839 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8842 netbsd)
8843 ### It's not our place to do this. See bug#10313#17.
8844 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8848 openbsd)
8849 ## Han Boetes <han@boetes.org> says this is necessary,
8850 ## otherwise Emacs dumps core on elf systems.
8851 LD_SWITCH_SYSTEM="-Z"
8853 esac
8856 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8858 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8859 ## which has not been defined yet. When this was handled with cpp,
8860 ## it was expanded to null when configure sourced the s/*.h file.
8861 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8862 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8863 ## (or somesuch), but because it is supposed to go at the _front_
8864 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8865 ## Compare with the gnu-linux case below, which added to the end
8866 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8867 ## LD_SWITCH_SYSTEM_TEMACS.
8868 case "$opsys" in
8869 netbsd|openbsd)
8870 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8871 esac
8874 C_SWITCH_MACHINE=
8875 case $canonical in
8876 alpha*)
8877 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8878 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8882 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8883 ## With ELF, make sure that all common symbols get allocated to in the
8884 ## data section. Otherwise, the dump of temacs may miss variables in
8885 ## the shared library that have been initialized. For example, with
8886 ## GNU libc, __malloc_initialized would normally be resolved to the
8887 ## shared library's .bss section, which is fatal.
8888 if test "x$GCC" = "xyes"; then
8889 C_SWITCH_MACHINE="-fno-common"
8890 else
8891 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8893 else
8894 UNEXEC_OBJ=unexalpha.o
8897 esac
8902 C_SWITCH_SYSTEM=
8903 ## Some programs in src produce warnings saying certain subprograms
8904 ## are too complex and need a MAXMEM value greater than 2000 for
8905 ## additional optimization. --nils@exp-math.uni-essen.de
8906 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8907 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8908 test "$opsys" = "mingw32" && C_SWITCH_SYSTEM="-mtune=pentium4"
8909 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8910 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8914 LIBS_SYSTEM=
8915 case "$opsys" in
8916 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8917 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8919 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
8921 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8923 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8925 ## Motif needs -lgen.
8926 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8927 esac
8931 ### Make sure subsequent tests use flags consistent with the build flags.
8933 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8934 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8935 else
8936 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8939 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8941 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8945 LIB_MATH=-lm
8946 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8948 case $opsys in
8949 cygwin )
8950 LIB_MATH=
8952 darwin )
8953 ## Adding -lm confuses the dynamic linker, so omit it.
8954 LIB_MATH=
8956 freebsd | dragonfly )
8957 SYSTEM_TYPE=berkeley-unix
8959 gnu-linux | gnu-kfreebsd )
8961 hpux10-20 | hpux11 )
8963 mingw32 )
8964 LIB_MATH=
8965 SYSTEM_TYPE=windows-nt
8967 netbsd | openbsd )
8968 SYSTEM_TYPE=berkeley-unix
8971 sol2* | unixware )
8972 SYSTEM_TYPE=usg-unix-v
8975 esac
8979 cat >>confdefs.h <<_ACEOF
8980 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8981 _ACEOF
8985 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8986 pre_PKG_CONFIG_LIBS=$LIBS
8988 # Extract the first word of "pkg-config", so it can be a program name with args.
8989 set dummy pkg-config; ac_word=$2
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8991 $as_echo_n "checking for $ac_word... " >&6; }
8992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8993 $as_echo_n "(cached) " >&6
8994 else
8995 case $PKG_CONFIG in
8996 [\\/]* | ?:[\\/]*)
8997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9011 done
9012 done
9013 IFS=$as_save_IFS
9015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9017 esac
9019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9020 if test -n "$PKG_CONFIG"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9022 $as_echo "$PKG_CONFIG" >&6; }
9023 else
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9032 HAVE_SOUND=no
9033 if test "${with_sound}" != "no"; then
9034 # Sound support for GNU/Linux, the free BSDs, and MinGW.
9035 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
9036 do :
9037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9039 #ifdef __MINGW32__
9040 #define WIN32_LEAN_AND_MEAN
9041 #include <windows.h>
9042 #endif
9045 eval as_val=\$$as_ac_Header
9046 if test "x$as_val" = x""yes; then :
9047 cat >>confdefs.h <<_ACEOF
9048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9049 _ACEOF
9050 have_sound_header=yes
9053 done
9055 if test "${with_sound}" = "ossaudio" || test "${with_sound}" = "yes"; then
9056 # Emulation library used on NetBSD.
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
9058 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
9059 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9061 else
9062 ac_check_lib_save_LIBS=$LIBS
9063 LIBS="-lossaudio $LIBS"
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9070 #ifdef __cplusplus
9071 extern "C"
9072 #endif
9073 char _oss_ioctl ();
9075 main ()
9077 return _oss_ioctl ();
9079 return 0;
9081 _ACEOF
9082 if ac_fn_c_try_link "$LINENO"; then :
9083 ac_cv_lib_ossaudio__oss_ioctl=yes
9084 else
9085 ac_cv_lib_ossaudio__oss_ioctl=no
9087 rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9089 LIBS=$ac_check_lib_save_LIBS
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9092 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
9093 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
9094 LIBSOUND=-lossaudio
9095 else
9096 LIBSOUND=
9099 test "${with_sound}" = "ossaudio" && test -z "$LIBSOUND" && \
9100 as_fn_error "ossaudio sound support requested but not found." "$LINENO" 5
9104 if test "${with_sound}" = "alsa" || test "${with_sound}" = "yes"; then
9105 ALSA_REQUIRED=1.0.0
9106 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
9108 succeeded=no
9110 if test "$PKG_CONFIG" = "no" ; then
9111 HAVE_ALSA=no
9112 else
9113 PKG_CONFIG_MIN_VERSION=0.9.0
9114 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
9116 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
9118 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
9119 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
9120 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
9121 edit_cflags="
9122 s,///*,/,g
9123 s/^/ /
9124 s/ -I/ $isystem/g
9125 s/^ //
9127 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
9128 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
9130 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
9131 succeeded=yes
9132 else
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9135 ALSA_CFLAGS=""
9136 ALSA_LIBS=""
9137 ## If we have a custom action on failure, don't print errors, but
9138 ## do set a variable so people can do so. Do it in a subshell
9139 ## to capture any diagnostics in invoking pkg-config.
9140 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
9146 else
9147 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9148 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9152 if test $succeeded = yes; then
9153 HAVE_ALSA=yes
9154 else
9155 HAVE_ALSA=no
9158 if test $HAVE_ALSA = yes; then
9159 SAVE_CFLAGS="$CFLAGS"
9160 SAVE_LIBS="$LIBS"
9161 CFLAGS="$ALSA_CFLAGS $CFLAGS"
9162 LIBS="$ALSA_LIBS $LIBS"
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9165 #include <asoundlib.h>
9167 main ()
9169 snd_lib_error_set_handler (0);
9171 return 0;
9173 _ACEOF
9174 if ac_fn_c_try_compile "$LINENO"; then :
9175 emacs_alsa_normal=yes
9176 else
9177 emacs_alsa_normal=no
9179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 if test "$emacs_alsa_normal" != yes; then
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9183 #include <alsa/asoundlib.h>
9185 main ()
9187 snd_lib_error_set_handler (0);
9189 return 0;
9191 _ACEOF
9192 if ac_fn_c_try_compile "$LINENO"; then :
9193 emacs_alsa_subdir=yes
9194 else
9195 emacs_alsa_subdir=no
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 if test "$emacs_alsa_subdir" != yes; then
9199 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
9201 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
9204 CFLAGS="$SAVE_CFLAGS"
9205 LIBS="$SAVE_LIBS"
9206 LIBSOUND="$LIBSOUND $ALSA_LIBS"
9207 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
9209 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
9211 elif test "${with_sound}" = "alsa"; then
9212 as_fn_error "ALSA sound support requested but not found." "$LINENO" 5
9215 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
9216 case "$opsys" in
9217 gnu-linux|freebsd|netbsd|mingw32)
9219 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
9221 HAVE_SOUND=yes
9223 esac
9232 for ac_header in $ac_header_list
9233 do :
9234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9237 eval as_val=\$$as_ac_Header
9238 if test "x$as_val" = x""yes; then :
9239 cat >>confdefs.h <<_ACEOF
9240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9241 _ACEOF
9245 done
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
9266 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 #include <sys/personality.h>
9271 main ()
9273 personality (PER_LINUX32)
9275 return 0;
9277 _ACEOF
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 emacs_cv_personality_linux32=yes
9280 else
9281 emacs_cv_personality_linux32=no
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
9285 $as_echo "$emacs_cv_personality_linux32" >&6; }
9287 if test $emacs_cv_personality_linux32 = yes; then
9289 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
9293 for ac_header in term.h
9294 do :
9295 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
9296 if test "x$ac_cv_header_term_h" = x""yes; then :
9297 cat >>confdefs.h <<_ACEOF
9298 #define HAVE_TERM_H 1
9299 _ACEOF
9303 done
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9306 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9307 if test "${ac_cv_header_time+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 #include <sys/types.h>
9313 #include <sys/time.h>
9314 #include <time.h>
9317 main ()
9319 if ((struct tm *) 0)
9320 return 0;
9322 return 0;
9324 _ACEOF
9325 if ac_fn_c_try_compile "$LINENO"; then :
9326 ac_cv_header_time=yes
9327 else
9328 ac_cv_header_time=no
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9333 $as_echo "$ac_cv_header_time" >&6; }
9334 if test $ac_cv_header_time = yes; then
9336 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9340 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9343 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9344 ac_have_decl=1
9345 else
9346 ac_have_decl=0
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9351 _ACEOF
9353 if test $ac_cv_have_decl_sys_siglist != yes; then
9354 # For Tru64, at least:
9355 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9358 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9359 ac_have_decl=1
9360 else
9361 ac_have_decl=0
9364 cat >>confdefs.h <<_ACEOF
9365 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9366 _ACEOF
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9370 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9371 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9372 $as_echo_n "(cached) " >&6
9373 else
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 #include <sys/types.h>
9377 #include <sys/wait.h>
9378 #ifndef WEXITSTATUS
9379 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9380 #endif
9381 #ifndef WIFEXITED
9382 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9383 #endif
9386 main ()
9388 int s;
9389 wait (&s);
9390 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9392 return 0;
9394 _ACEOF
9395 if ac_fn_c_try_compile "$LINENO"; then :
9396 ac_cv_header_sys_wait_h=yes
9397 else
9398 ac_cv_header_sys_wait_h=no
9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9403 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9404 if test $ac_cv_header_sys_wait_h = yes; then
9406 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9414 for ac_header in net/if.h
9415 do :
9416 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9417 #if HAVE_SYS_SOCKET_H
9418 #include <sys/socket.h>
9419 #endif
9421 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9422 cat >>confdefs.h <<_ACEOF
9423 #define HAVE_NET_IF_H 1
9424 _ACEOF
9428 done
9430 for ac_header in ifaddrs.h
9431 do :
9432 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9433 #if HAVE_SYS_SOCKET_H
9434 #include <sys/socket.h>
9435 #endif
9437 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9438 cat >>confdefs.h <<_ACEOF
9439 #define HAVE_IFADDRS_H 1
9440 _ACEOF
9444 done
9446 for ac_header in net/if_dl.h
9447 do :
9448 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9449 #if HAVE_SYS_SOCKET_H
9450 #include <sys/socket.h>
9451 #endif
9453 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9454 cat >>confdefs.h <<_ACEOF
9455 #define HAVE_NET_IF_DL_H 1
9456 _ACEOF
9460 done
9463 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9464 #if HAVE_SYS_SOCKET_H
9465 #include <sys/socket.h>
9466 #endif
9467 #if HAVE_NET_IF_H
9468 #include <net/if.h>
9469 #endif
9471 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9473 cat >>confdefs.h <<_ACEOF
9474 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9475 _ACEOF
9479 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9480 #if HAVE_SYS_SOCKET_H
9481 #include <sys/socket.h>
9482 #endif
9483 #if HAVE_NET_IF_H
9484 #include <net/if.h>
9485 #endif
9487 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9489 cat >>confdefs.h <<_ACEOF
9490 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9491 _ACEOF
9495 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9496 #if HAVE_SYS_SOCKET_H
9497 #include <sys/socket.h>
9498 #endif
9499 #if HAVE_NET_IF_H
9500 #include <net/if.h>
9501 #endif
9503 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9505 cat >>confdefs.h <<_ACEOF
9506 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9507 _ACEOF
9511 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9512 #if HAVE_SYS_SOCKET_H
9513 #include <sys/socket.h>
9514 #endif
9515 #if HAVE_NET_IF_H
9516 #include <net/if.h>
9517 #endif
9519 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9521 cat >>confdefs.h <<_ACEOF
9522 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9523 _ACEOF
9527 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9528 #if HAVE_SYS_SOCKET_H
9529 #include <sys/socket.h>
9530 #endif
9531 #if HAVE_NET_IF_H
9532 #include <net/if.h>
9533 #endif
9535 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9539 _ACEOF
9543 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9544 #if HAVE_SYS_SOCKET_H
9545 #include <sys/socket.h>
9546 #endif
9547 #if HAVE_NET_IF_H
9548 #include <net/if.h>
9549 #endif
9551 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9553 cat >>confdefs.h <<_ACEOF
9554 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9555 _ACEOF
9563 DEPFLAGS=
9564 MKDEPDIR=":"
9565 deps_frag=deps.mk
9566 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9568 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9569 HAVE_GNU_MAKE=no
9570 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9571 if test "x$testval" != x; then
9572 HAVE_GNU_MAKE=yes
9573 else
9574 ac_enable_autodepend=no
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9577 $as_echo "$HAVE_GNU_MAKE" >&6; }
9578 if test $HAVE_GNU_MAKE = yes; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9580 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9581 SAVE_CFLAGS="$CFLAGS"
9582 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9587 main ()
9591 return 0;
9593 _ACEOF
9594 if ac_fn_c_try_compile "$LINENO"; then :
9596 else
9597 ac_enable_autodepend=no
9599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 CFLAGS="$SAVE_CFLAGS"
9601 test -f deps.d || ac_enable_autodepend=no
9602 rm -rf deps.d
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9604 $as_echo "$ac_enable_autodepend" >&6; }
9606 if test $ac_enable_autodepend = yes; then
9607 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9608 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9609 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9610 deps_frag=autodeps.mk
9613 deps_frag=$srcdir/src/$deps_frag
9619 lisp_frag=$srcdir/src/lisp.mk
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9624 $as_echo_n "checking for long file names... " >&6; }
9625 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 ac_cv_sys_long_file_names=yes
9629 # Test for long file names in all the places we know might matter:
9630 # . the current directory, where building will happen
9631 # $prefix/lib where we will be installing things
9632 # $exec_prefix/lib likewise
9633 # $TMPDIR if set, where it might want to write temporary files
9634 # /tmp where it might want to write temporary files
9635 # /var/tmp likewise
9636 # /usr/tmp likewise
9637 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9638 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9639 # in the usual case where exec_prefix is '${prefix}'.
9640 case $ac_dir in #(
9641 . | /* | ?:[\\/]*) ;; #(
9642 *) continue;;
9643 esac
9644 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9645 ac_xdir=$ac_dir/cf$$
9646 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9647 ac_tf1=$ac_xdir/conftest9012345
9648 ac_tf2=$ac_xdir/conftest9012346
9649 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9650 ac_cv_sys_long_file_names=no
9651 rm -f -r "$ac_xdir" 2>/dev/null
9652 test $ac_cv_sys_long_file_names = no && break
9653 done
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9656 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9657 if test $ac_cv_sys_long_file_names = yes; then
9659 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9664 #### Choose a window system.
9666 ## We leave window_system equal to none if
9667 ## we end up building without one. Any new window system should
9668 ## set window_system to an appropriate value and add objects to
9669 ## window-system-specific substs.
9671 window_system=none
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9673 $as_echo_n "checking for X... " >&6; }
9676 # Check whether --with-x was given.
9677 if test "${with_x+set}" = set; then :
9678 withval=$with_x;
9681 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9682 if test "x$with_x" = xno; then
9683 # The user explicitly disabled X.
9684 have_x=disabled
9685 else
9686 case $x_includes,$x_libraries in #(
9687 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9688 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 # One or both of the vars are not set, and there is no cached value.
9692 ac_x_includes=no ac_x_libraries=no
9693 rm -f -r conftest.dir
9694 if mkdir conftest.dir; then
9695 cd conftest.dir
9696 cat >Imakefile <<'_ACEOF'
9697 incroot:
9698 @echo incroot='${INCROOT}'
9699 usrlibdir:
9700 @echo usrlibdir='${USRLIBDIR}'
9701 libdir:
9702 @echo libdir='${LIBDIR}'
9703 _ACEOF
9704 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9706 for ac_var in incroot usrlibdir libdir; do
9707 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9708 done
9709 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9710 for ac_extension in a so sl dylib la dll; do
9711 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9712 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9713 ac_im_usrlibdir=$ac_im_libdir; break
9715 done
9716 # Screen out bogus values from the imake configuration. They are
9717 # bogus both because they are the default anyway, and because
9718 # using them would break gcc on systems where it needs fixed includes.
9719 case $ac_im_incroot in
9720 /usr/include) ac_x_includes= ;;
9721 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9722 esac
9723 case $ac_im_usrlibdir in
9724 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9725 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9726 esac
9728 cd ..
9729 rm -f -r conftest.dir
9732 # Standard set of common directories for X headers.
9733 # Check X11 before X11Rn because it is often a symlink to the current release.
9734 ac_x_header_dirs='
9735 /usr/X11/include
9736 /usr/X11R7/include
9737 /usr/X11R6/include
9738 /usr/X11R5/include
9739 /usr/X11R4/include
9741 /usr/include/X11
9742 /usr/include/X11R7
9743 /usr/include/X11R6
9744 /usr/include/X11R5
9745 /usr/include/X11R4
9747 /usr/local/X11/include
9748 /usr/local/X11R7/include
9749 /usr/local/X11R6/include
9750 /usr/local/X11R5/include
9751 /usr/local/X11R4/include
9753 /usr/local/include/X11
9754 /usr/local/include/X11R7
9755 /usr/local/include/X11R6
9756 /usr/local/include/X11R5
9757 /usr/local/include/X11R4
9759 /usr/X386/include
9760 /usr/x386/include
9761 /usr/XFree86/include/X11
9763 /usr/include
9764 /usr/local/include
9765 /usr/unsupported/include
9766 /usr/athena/include
9767 /usr/local/x11r5/include
9768 /usr/lpp/Xamples/include
9770 /usr/openwin/include
9771 /usr/openwin/share/include'
9773 if test "$ac_x_includes" = no; then
9774 # Guess where to find include files, by looking for Xlib.h.
9775 # First, try using that file with no special directory specified.
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 #include <X11/Xlib.h>
9779 _ACEOF
9780 if ac_fn_c_try_cpp "$LINENO"; then :
9781 # We can compile using X headers with no special include directory.
9782 ac_x_includes=
9783 else
9784 for ac_dir in $ac_x_header_dirs; do
9785 if test -r "$ac_dir/X11/Xlib.h"; then
9786 ac_x_includes=$ac_dir
9787 break
9789 done
9791 rm -f conftest.err conftest.$ac_ext
9792 fi # $ac_x_includes = no
9794 if test "$ac_x_libraries" = no; then
9795 # Check for the libraries.
9796 # See if we find them without any special options.
9797 # Don't add to $LIBS permanently.
9798 ac_save_LIBS=$LIBS
9799 LIBS="-lX11 $LIBS"
9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9801 /* end confdefs.h. */
9802 #include <X11/Xlib.h>
9804 main ()
9806 XrmInitialize ()
9808 return 0;
9810 _ACEOF
9811 if ac_fn_c_try_link "$LINENO"; then :
9812 LIBS=$ac_save_LIBS
9813 # We can link X programs with no special library path.
9814 ac_x_libraries=
9815 else
9816 LIBS=$ac_save_LIBS
9817 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9819 # Don't even attempt the hair of trying to link an X program!
9820 for ac_extension in a so sl dylib la dll; do
9821 if test -r "$ac_dir/libX11.$ac_extension"; then
9822 ac_x_libraries=$ac_dir
9823 break 2
9825 done
9826 done
9828 rm -f core conftest.err conftest.$ac_objext \
9829 conftest$ac_exeext conftest.$ac_ext
9830 fi # $ac_x_libraries = no
9832 case $ac_x_includes,$ac_x_libraries in #(
9833 no,* | *,no | *\'*)
9834 # Didn't find X, or a directory has "'" in its name.
9835 ac_cv_have_x="have_x=no";; #(
9837 # Record where we found X for the cache.
9838 ac_cv_have_x="have_x=yes\
9839 ac_x_includes='$ac_x_includes'\
9840 ac_x_libraries='$ac_x_libraries'"
9841 esac
9843 ;; #(
9844 *) have_x=yes;;
9845 esac
9846 eval "$ac_cv_have_x"
9847 fi # $with_x != no
9849 if test "$have_x" != yes; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9851 $as_echo "$have_x" >&6; }
9852 no_x=yes
9853 else
9854 # If each of the values was on the command line, it overrides each guess.
9855 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9856 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9857 # Update the cache value to reflect the command line values.
9858 ac_cv_have_x="have_x=yes\
9859 ac_x_includes='$x_includes'\
9860 ac_x_libraries='$x_libraries'"
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9862 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9865 if test "$no_x" != yes; then
9866 window_system=x11
9869 LD_SWITCH_X_SITE_RPATH=
9870 if test "${x_libraries}" != NONE; then
9871 if test -n "${x_libraries}"; then
9872 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9873 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9875 x_default_search_path=""
9876 x_search_path=${x_libraries}
9877 if test -z "${x_search_path}"; then
9878 x_search_path=/usr/lib
9880 for x_library in `echo ${x_search_path}: | \
9881 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9882 x_search_path="\
9883 ${x_library}/X11/%L/%T/%N%C%S:\
9884 ${x_library}/X11/%l/%T/%N%C%S:\
9885 ${x_library}/X11/%T/%N%C%S:\
9886 ${x_library}/X11/%L/%T/%N%S:\
9887 ${x_library}/X11/%l/%T/%N%S:\
9888 ${x_library}/X11/%T/%N%S"
9889 if test x"${x_default_search_path}" = x; then
9890 x_default_search_path=${x_search_path}
9891 else
9892 x_default_search_path="${x_search_path}:${x_default_search_path}"
9894 done
9898 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9899 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9902 if test x"${x_includes}" = x; then
9903 bitmapdir=/usr/include/X11/bitmaps
9904 else
9905 # accumulate include directories that have X11 bitmap subdirectories
9906 bmd_acc="dummyval"
9907 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9908 if test -d "${bmd}/X11/bitmaps"; then
9909 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9911 if test -d "${bmd}/bitmaps"; then
9912 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9914 done
9915 if test ${bmd_acc} != "dummyval"; then
9916 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9920 HAVE_NS=no
9921 NS_IMPL_COCOA=no
9922 NS_IMPL_GNUSTEP=no
9923 tmp_CPPFLAGS="$CPPFLAGS"
9924 tmp_CFLAGS="$CFLAGS"
9925 CPPFLAGS="$CPPFLAGS -x objective-c"
9926 CFLAGS="$CFLAGS -x objective-c"
9927 GNU_OBJC_CFLAGS=
9928 LIBS_GNUSTEP=
9929 if test "${with_ns}" != no; then
9930 if test "${opsys}" = darwin; then
9931 NS_IMPL_COCOA=yes
9932 ns_appdir=`pwd`/nextstep/Emacs.app
9933 ns_appbindir=${ns_appdir}/Contents/MacOS
9934 ns_appresdir=${ns_appdir}/Contents/Resources
9935 ns_appsrc=Cocoa/Emacs.base
9936 elif test -f $GNUSTEP_CONFIG_FILE; then
9937 NS_IMPL_GNUSTEP=yes
9938 ns_appdir=`pwd`/nextstep/Emacs.app
9939 ns_appbindir=${ns_appdir}
9940 ns_appresdir=${ns_appdir}/Resources
9941 ns_appsrc=GNUstep/Emacs.base
9942 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9943 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9944 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9945 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9946 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9947 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9948 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9949 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9950 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9951 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9952 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9953 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9955 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9956 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961 #include <GNUstepBase/GSConfig.h>
9963 main ()
9965 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9967 #else
9968 fail;
9969 #endif
9971 return 0;
9973 _ACEOF
9974 if ac_fn_c_try_compile "$LINENO"; then :
9975 emacs_cv_objc_exceptions=yes
9976 else
9977 emacs_cv_objc_exceptions=no
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9982 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9983 if test $emacs_cv_objc_exceptions = yes; then
9985 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9987 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9991 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9993 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9994 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9995 HAVE_NS=yes
9996 else
9997 as_fn_error "\`--with-ns' was specified, but the include
9998 files are missing or cannot be compiled." "$LINENO" 5
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 #include <AppKit/AppKit.h>
10007 main ()
10010 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
10011 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
10012 ; /* OK */
10013 #else
10014 #error "OSX 10.4 or newer required"
10015 #endif
10016 #endif
10019 return 0;
10021 _ACEOF
10022 if ac_fn_c_try_compile "$LINENO"; then :
10023 ns_osx_have_104=yes
10024 else
10025 ns_osx_have_104=no
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 #include <Foundation/NSObjCRuntime.h>
10032 main ()
10034 NSInteger i;
10036 return 0;
10038 _ACEOF
10039 if ac_fn_c_try_compile "$LINENO"; then :
10040 ns_have_nsinteger=yes
10041 else
10042 ns_have_nsinteger=no
10044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045 if test $ns_osx_have_104 = no; then
10046 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
10048 if test $ns_have_nsinteger = yes; then
10050 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10057 INSTALL_ARCH_INDEP_EXTRA=install-etc
10058 ns_self_contained=no
10059 NS_OBJ=
10060 NS_OBJC_OBJ=
10061 if test "${HAVE_NS}" = yes; then
10062 if test "$with_toolkit_scroll_bars" = "no"; then
10063 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
10066 window_system=nextstep
10067 # set up packaging dirs
10068 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10069 ns_self_contained=yes
10070 prefix=${ns_appresdir}
10071 exec_prefix=${ns_appbindir}
10072 libexecdir="\${ns_appbindir}/libexec"
10073 archlibdir="\${ns_appbindir}/libexec"
10074 etcdocdir="\${ns_appresdir}/etc"
10075 etcdir="\${ns_appresdir}/etc"
10076 infodir="\${ns_appresdir}/info"
10077 mandir="\${ns_appresdir}/man"
10078 lispdir="\${ns_appresdir}/lisp"
10079 leimdir="\${ns_appresdir}/leim"
10080 INSTALL_ARCH_INDEP_EXTRA=
10082 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
10084 CFLAGS="$tmp_CFLAGS"
10085 CPPFLAGS="$tmp_CPPFLAGS"
10091 HAVE_W32=no
10092 W32_OBJ=
10093 W32_LIBS=
10094 EMACSRES=
10095 CLIENTRES=
10096 CLIENTW=
10097 W32_RES_LINK=
10098 EMACS_MANIFEST=
10099 UPDATE_MANIFEST=
10100 if test "${with_w32}" != no; then
10101 case "${opsys}" in
10102 cygwin)
10103 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10104 if test "x$ac_cv_header_windows_h" = x""yes; then :
10105 HAVE_W32=yes
10106 else
10107 as_fn_error "\`--with-w32' was specified, but windows.h
10108 cannot be found." "$LINENO" 5
10113 mingw32)
10114 ## Using --with-w32 with MinGW is a no-op, but we allow it.
10117 as_fn_error "Using w32 with an autotools build is only supported for Cygwin and MinGW32." "$LINENO" 5
10119 esac
10122 if test "${opsys}" = "mingw32"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Windows API headers are recent enough" >&5
10124 $as_echo_n "checking whether Windows API headers are recent enough... " >&6; }
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10128 #include <windows.h>
10129 #include <usp10.h>
10131 main ()
10133 PIMAGE_NT_HEADERS pHeader;
10134 PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader)
10136 return 0;
10138 _ACEOF
10139 if ac_fn_c_try_compile "$LINENO"; then :
10140 emacs_cv_w32api=yes
10141 HAVE_W32=yes
10142 else
10143 emacs_cv_w32api=no
10145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_w32api" >&5
10147 $as_echo "$emacs_cv_w32api" >&6; }
10148 if test "${emacs_cv_w32api}" = "no"; then
10149 as_fn_error "the Windows API headers are too old to support this build." "$LINENO" 5
10153 FIRSTFILE_OBJ=
10154 NTDIR=
10155 LIBS_ECLIENT=
10156 LIB_WSOCK32=
10157 NTLIB=
10158 CM_OBJ="cm.o"
10159 XARGS_LIMIT=
10160 if test "${HAVE_W32}" = "yes"; then
10162 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
10164 if test -n "$ac_tool_prefix"; then
10165 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10166 set dummy ${ac_tool_prefix}windres; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10170 $as_echo_n "(cached) " >&6
10171 else
10172 if test -n "$WINDRES"; then
10173 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10174 else
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10182 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10186 done
10187 done
10188 IFS=$as_save_IFS
10192 WINDRES=$ac_cv_prog_WINDRES
10193 if test -n "$WINDRES"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10195 $as_echo "$WINDRES" >&6; }
10196 else
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10203 if test -z "$ac_cv_prog_WINDRES"; then
10204 ac_ct_WINDRES=$WINDRES
10205 # Extract the first word of "windres", so it can be a program name with args.
10206 set dummy windres; ac_word=$2
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 $as_echo_n "checking for $ac_word... " >&6; }
10209 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 if test -n "$ac_ct_WINDRES"; then
10213 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10214 else
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10222 ac_cv_prog_ac_ct_WINDRES="windres"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10226 done
10227 done
10228 IFS=$as_save_IFS
10232 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10233 if test -n "$ac_ct_WINDRES"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10235 $as_echo "$ac_ct_WINDRES" >&6; }
10236 else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10241 if test "x$ac_ct_WINDRES" = x; then
10242 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
10243 else
10244 case $cross_compiling:$ac_tool_warned in
10245 yes:)
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10248 ac_tool_warned=yes ;;
10249 esac
10250 WINDRES=$ac_ct_WINDRES
10252 else
10253 WINDRES="$ac_cv_prog_WINDRES"
10256 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
10257 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
10258 EMACSRES="emacs.res"
10259 case "$canonical" in
10260 x86_64-*-*) EMACS_MANIFEST="emacs-x64.manifest" ;;
10261 *) EMACS_MANIFEST="emacs-x86.manifest" ;;
10262 esac
10263 UPDATE_MANIFEST=update-game-score.exe.manifest
10264 if test "${opsys}" = "cygwin"; then
10265 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
10266 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
10267 # Tell the linker that emacs.res is an object (which we compile from
10268 # the rc file), not a linker script.
10269 W32_RES_LINK="-Wl,emacs.res"
10270 else
10271 W32_OBJ="$W32_OBJ w32.o w32console.o w32heap.o w32inevt.o w32proc.o"
10272 W32_LIBS="$W32_LIBS -lwinmm -lgdi32 -lcomdlg32"
10273 W32_LIBS="$W32_LIBS -lmpr -lwinspool -lole32 -lcomctl32 -lusp10"
10274 W32_RES_LINK="\$(EMACSRES)"
10275 CLIENTRES="emacsclient.res"
10276 CLIENTW="emacsclientw\$(EXEEXT)"
10277 FIRSTFILE_OBJ=firstfile.o
10278 NTDIR=nt
10279 CM_OBJ=
10280 LIBS_ECLIENT="-lcomctl32"
10281 LIB_WSOCK32="-lwsock32"
10282 NTLIB="ntlib.$ac_objext"
10283 XARGS_LIMIT="-s 10000"
10302 if test "${HAVE_W32}" = "yes"; then
10303 window_system=w32
10304 with_xft=no
10307 ## $window_system is now set to the window system we will
10308 ## ultimately use.
10310 term_header=
10311 HAVE_X_WINDOWS=no
10312 HAVE_X11=no
10313 USE_X_TOOLKIT=none
10315 case "${window_system}" in
10316 x11 )
10317 HAVE_X_WINDOWS=yes
10318 HAVE_X11=yes
10319 term_header=xterm.h
10320 case "${with_x_toolkit}" in
10321 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10322 motif ) USE_X_TOOLKIT=MOTIF ;;
10323 gtk ) with_gtk=yes
10324 term_header=gtkutil.h
10325 USE_X_TOOLKIT=none ;;
10326 gtk2 ) with_gtk2=yes
10327 term_header=gtkutil.h
10328 USE_X_TOOLKIT=none ;;
10329 gtk3 ) with_gtk3=yes
10330 term_header=gtkutil.h
10331 USE_X_TOOLKIT=none ;;
10332 no ) USE_X_TOOLKIT=none ;;
10333 * ) USE_X_TOOLKIT=maybe ;;
10334 esac
10336 nextstep )
10337 term_header=nsterm.h
10339 w32 )
10340 term_header=w32term.h
10342 esac
10344 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10345 # Extract the first word of "X", so it can be a program name with args.
10346 set dummy X; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 if test -n "$HAVE_XSERVER"; then
10353 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10354 else
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362 ac_cv_prog_HAVE_XSERVER="true"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 break 2
10366 done
10367 done
10368 IFS=$as_save_IFS
10370 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10373 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10374 if test -n "$HAVE_XSERVER"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
10376 $as_echo "$HAVE_XSERVER" >&6; }
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10383 if test "$HAVE_XSERVER" = true ||
10384 test -n "$DISPLAY" ||
10385 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10386 as_fn_error "You seem to be running X, but no X development libraries
10387 were found. You should install the relevant development files for X
10388 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10389 sure you have development files for image handling, i.e.
10390 tiff, gif, jpeg, png and xpm.
10391 If you are sure you want Emacs compiled without X window support, pass
10392 --without-x
10393 to configure." "$LINENO" 5
10397 ### If we're using X11, we should use the X menu package.
10398 HAVE_MENUS=no
10399 case ${HAVE_X11} in
10400 yes ) HAVE_MENUS=yes ;;
10401 esac
10403 # Does the opsystem file prohibit the use of the GNU malloc?
10404 # Assume not, until told otherwise.
10405 GNU_MALLOC=yes
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10408 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10409 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 #include <malloc.h>
10415 static void hook (void) {}
10417 main ()
10419 malloc_set_state (malloc_get_state ());
10420 __after_morecore_hook = hook;
10421 __malloc_initialize_hook = hook;
10423 return 0;
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 emacs_cv_var_doug_lea_malloc=yes
10428 else
10429 emacs_cv_var_doug_lea_malloc=no
10431 rm -f core conftest.err conftest.$ac_objext \
10432 conftest$ac_exeext conftest.$ac_ext
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10435 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10436 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10439 system_malloc=no
10440 case "$opsys" in
10441 ## darwin ld insists on the use of malloc routines in the System framework.
10442 darwin|sol2-10) system_malloc=yes ;;
10443 esac
10445 if test "${system_malloc}" = "yes"; then
10447 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10449 GNU_MALLOC=no
10450 GNU_MALLOC_reason="
10451 (The GNU allocators don't work with this system configuration.)"
10452 GMALLOC_OBJ=
10453 VMLIMIT_OBJ=
10454 else
10455 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10456 VMLIMIT_OBJ=vm-limit.o
10458 for ac_header in sys/vlimit.h
10459 do :
10460 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10461 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_SYS_VLIMIT_H 1
10464 _ACEOF
10468 done
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10471 $as_echo_n "checking for data_start... " >&6; }
10472 if test "${emacs_cv_data_start+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477 extern char data_start[]; char ch;
10479 main ()
10481 return data_start < &ch;
10483 return 0;
10485 _ACEOF
10486 if ac_fn_c_try_link "$LINENO"; then :
10487 emacs_cv_data_start=yes
10488 else
10489 emacs_cv_data_start=no
10491 rm -f core conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10495 $as_echo "$emacs_cv_data_start" >&6; }
10496 if test $emacs_cv_data_start = yes; then
10498 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10505 if test "$doug_lea_malloc" = "yes" ; then
10506 if test "$GNU_MALLOC" = yes ; then
10507 GNU_MALLOC_reason="
10508 (Using Doug Lea's new malloc from the GNU C Library.)"
10511 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10514 ## Use mmap directly for allocating larger buffers.
10515 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10516 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10517 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10518 case "$opsys" in
10519 gnu*) REL_ALLOC=no ;;
10520 esac
10523 if test x"${REL_ALLOC}" = x; then
10524 REL_ALLOC=${GNU_MALLOC}
10527 use_mmap_for_buffers=no
10528 case "$opsys" in
10529 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10530 esac
10539 for ac_func in getpagesize
10540 do :
10541 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10542 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10543 cat >>confdefs.h <<_ACEOF
10544 #define HAVE_GETPAGESIZE 1
10545 _ACEOF
10548 done
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10551 $as_echo_n "checking for working mmap... " >&6; }
10552 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 if test "$cross_compiling" = yes; then :
10556 ac_cv_func_mmap_fixed_mapped=no
10557 else
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560 $ac_includes_default
10561 /* malloc might have been renamed as rpl_malloc. */
10562 #undef malloc
10564 /* Thanks to Mike Haertel and Jim Avera for this test.
10565 Here is a matrix of mmap possibilities:
10566 mmap private not fixed
10567 mmap private fixed at somewhere currently unmapped
10568 mmap private fixed at somewhere already mapped
10569 mmap shared not fixed
10570 mmap shared fixed at somewhere currently unmapped
10571 mmap shared fixed at somewhere already mapped
10572 For private mappings, we should verify that changes cannot be read()
10573 back from the file, nor mmap's back from the file at a different
10574 address. (There have been systems where private was not correctly
10575 implemented like the infamous i386 svr4.0, and systems where the
10576 VM page cache was not coherent with the file system buffer cache
10577 like early versions of FreeBSD and possibly contemporary NetBSD.)
10578 For shared mappings, we should conversely verify that changes get
10579 propagated back to all the places they're supposed to be.
10581 Grep wants private fixed already mapped.
10582 The main things grep needs to know about mmap are:
10583 * does it exist and is it safe to write into the mmap'd area
10584 * how to use it (BSD variants) */
10586 #include <fcntl.h>
10587 #include <sys/mman.h>
10589 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10590 char *malloc ();
10591 #endif
10593 /* This mess was copied from the GNU getpagesize.h. */
10594 #ifndef HAVE_GETPAGESIZE
10595 # ifdef _SC_PAGESIZE
10596 # define getpagesize() sysconf(_SC_PAGESIZE)
10597 # else /* no _SC_PAGESIZE */
10598 # ifdef HAVE_SYS_PARAM_H
10599 # include <sys/param.h>
10600 # ifdef EXEC_PAGESIZE
10601 # define getpagesize() EXEC_PAGESIZE
10602 # else /* no EXEC_PAGESIZE */
10603 # ifdef NBPG
10604 # define getpagesize() NBPG * CLSIZE
10605 # ifndef CLSIZE
10606 # define CLSIZE 1
10607 # endif /* no CLSIZE */
10608 # else /* no NBPG */
10609 # ifdef NBPC
10610 # define getpagesize() NBPC
10611 # else /* no NBPC */
10612 # ifdef PAGESIZE
10613 # define getpagesize() PAGESIZE
10614 # endif /* PAGESIZE */
10615 # endif /* no NBPC */
10616 # endif /* no NBPG */
10617 # endif /* no EXEC_PAGESIZE */
10618 # else /* no HAVE_SYS_PARAM_H */
10619 # define getpagesize() 8192 /* punt totally */
10620 # endif /* no HAVE_SYS_PARAM_H */
10621 # endif /* no _SC_PAGESIZE */
10623 #endif /* no HAVE_GETPAGESIZE */
10626 main ()
10628 char *data, *data2, *data3;
10629 const char *cdata2;
10630 int i, pagesize;
10631 int fd, fd2;
10633 pagesize = getpagesize ();
10635 /* First, make a file with some known garbage in it. */
10636 data = (char *) malloc (pagesize);
10637 if (!data)
10638 return 1;
10639 for (i = 0; i < pagesize; ++i)
10640 *(data + i) = rand ();
10641 umask (0);
10642 fd = creat ("conftest.mmap", 0600);
10643 if (fd < 0)
10644 return 2;
10645 if (write (fd, data, pagesize) != pagesize)
10646 return 3;
10647 close (fd);
10649 /* Next, check that the tail of a page is zero-filled. File must have
10650 non-zero length, otherwise we risk SIGBUS for entire page. */
10651 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10652 if (fd2 < 0)
10653 return 4;
10654 cdata2 = "";
10655 if (write (fd2, cdata2, 1) != 1)
10656 return 5;
10657 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10658 if (data2 == MAP_FAILED)
10659 return 6;
10660 for (i = 0; i < pagesize; ++i)
10661 if (*(data2 + i))
10662 return 7;
10663 close (fd2);
10664 if (munmap (data2, pagesize))
10665 return 8;
10667 /* Next, try to mmap the file at a fixed address which already has
10668 something else allocated at it. If we can, also make sure that
10669 we see the same garbage. */
10670 fd = open ("conftest.mmap", O_RDWR);
10671 if (fd < 0)
10672 return 9;
10673 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10674 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10675 return 10;
10676 for (i = 0; i < pagesize; ++i)
10677 if (*(data + i) != *(data2 + i))
10678 return 11;
10680 /* Finally, make sure that changes to the mapped area do not
10681 percolate back to the file as seen by read(). (This is a bug on
10682 some variants of i386 svr4.0.) */
10683 for (i = 0; i < pagesize; ++i)
10684 *(data2 + i) = *(data2 + i) + 1;
10685 data3 = (char *) malloc (pagesize);
10686 if (!data3)
10687 return 12;
10688 if (read (fd, data3, pagesize) != pagesize)
10689 return 13;
10690 for (i = 0; i < pagesize; ++i)
10691 if (*(data + i) != *(data3 + i))
10692 return 14;
10693 close (fd);
10694 return 0;
10696 _ACEOF
10697 if ac_fn_c_try_run "$LINENO"; then :
10698 ac_cv_func_mmap_fixed_mapped=yes
10699 else
10700 ac_cv_func_mmap_fixed_mapped=no
10702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10703 conftest.$ac_objext conftest.beam conftest.$ac_ext
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10708 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10709 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10711 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10714 rm -f conftest.mmap conftest.txt
10716 if test $use_mmap_for_buffers = yes; then
10718 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10720 REL_ALLOC=no
10723 LIBS="$LIBS_SYSTEM $LIBS"
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10726 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10727 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 ac_check_lib_save_LIBS=$LIBS
10731 LIBS="-ldnet $LIBS"
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10735 /* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
10738 #ifdef __cplusplus
10739 extern "C"
10740 #endif
10741 char dnet_ntoa ();
10743 main ()
10745 return dnet_ntoa ();
10747 return 0;
10749 _ACEOF
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 ac_cv_lib_dnet_dnet_ntoa=yes
10752 else
10753 ac_cv_lib_dnet_dnet_ntoa=no
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10760 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10761 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10762 cat >>confdefs.h <<_ACEOF
10763 #define HAVE_LIBDNET 1
10764 _ACEOF
10766 LIBS="-ldnet $LIBS"
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10772 $as_echo_n "checking for main in -lXbsd... " >&6; }
10773 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lXbsd $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10783 main ()
10785 return main ();
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 ac_cv_lib_Xbsd_main=yes
10792 else
10793 ac_cv_lib_Xbsd_main=no
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10800 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10801 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10802 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10806 LIB_PTHREAD=
10810 if test "$ac_cv_header_pthread_h"; then
10811 if test "$GMALLOC_OBJ" = gmalloc.o; then
10812 emacs_pthread_function=pthread_atfork
10813 else
10814 emacs_pthread_function=pthread_self
10816 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10818 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10819 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-lpthread $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char $emacs_pthread_function ();
10835 main ()
10837 return $emacs_pthread_function ();
10839 return 0;
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 eval "$as_ac_Lib=yes"
10844 else
10845 eval "$as_ac_Lib=no"
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10851 eval ac_res=\$$as_ac_Lib
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10853 $as_echo "$ac_res" >&6; }
10854 eval as_val=\$$as_ac_Lib
10855 if test "x$as_val" = x""yes; then :
10856 HAVE_PTHREAD=yes
10860 if test "$HAVE_PTHREAD" = yes; then
10861 case "${canonical}" in
10862 *-hpux*) ;;
10863 *) LIB_PTHREAD="-lpthread"
10864 LIBS="$LIB_PTHREAD $LIBS" ;;
10865 esac
10867 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10873 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10874 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-lpthreads $LIBS"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 char cma_open ();
10890 main ()
10892 return cma_open ();
10894 return 0;
10896 _ACEOF
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 ac_cv_lib_pthreads_cma_open=yes
10899 else
10900 ac_cv_lib_pthreads_cma_open=no
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10907 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10908 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10909 cat >>confdefs.h <<_ACEOF
10910 #define HAVE_LIBPTHREADS 1
10911 _ACEOF
10913 LIBS="-lpthreads $LIBS"
10918 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10919 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10920 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10921 ## added to LIBS in configure would never contain the pthreads part,
10922 ## but the value used in Makefiles might. FIXME?
10924 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10925 ## be harmless on older versions of X where it happens to exist.
10926 test "$opsys" = "aix4-2" && \
10927 test $ac_cv_lib_pthreads_cma_open = yes && \
10928 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10931 case ${host_os} in
10932 aix*)
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10934 $as_echo_n "checking for -bbigtoc option... " >&6; }
10935 if test "${gdb_cv_bigtoc+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10939 case $GCC in
10940 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10941 *) gdb_cv_bigtoc=-bbigtoc ;;
10942 esac
10944 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10949 main ()
10951 int i;
10953 return 0;
10955 _ACEOF
10956 if ac_fn_c_try_link "$LINENO"; then :
10958 else
10959 gdb_cv_bigtoc=
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10966 $as_echo "$gdb_cv_bigtoc" >&6; }
10968 esac
10970 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10971 # used for the tests that follow. We set them back to REAL_CFLAGS and
10972 # REAL_CPPFLAGS later on.
10974 REAL_CFLAGS="$CFLAGS"
10975 REAL_CPPFLAGS="$CPPFLAGS"
10977 if test "${HAVE_X11}" = "yes"; then
10978 DEFS="$C_SWITCH_X_SITE $DEFS"
10979 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10980 LIBS="-lX11 $LIBS"
10981 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10982 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10984 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10985 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10986 # but it's more convenient here to set LD_RUN_PATH since this
10987 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10988 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10989 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10990 export LD_RUN_PATH
10993 if test "${opsys}" = "gnu-linux"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10995 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
11000 main ()
11002 XOpenDisplay ("foo");
11004 return 0;
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 xgnu_linux_first_failure=no
11009 else
11010 xgnu_linux_first_failure=yes
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 if test "${xgnu_linux_first_failure}" = "yes"; then
11015 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11016 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11017 OLD_CPPFLAGS="$CPPFLAGS"
11018 OLD_LIBS="$LIBS"
11019 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11020 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11021 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11022 LIBS="$LIBS -b i486-linuxaout"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11027 main ()
11029 XOpenDisplay ("foo");
11031 return 0;
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"; then :
11035 xgnu_linux_second_failure=no
11036 else
11037 xgnu_linux_second_failure=yes
11039 rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041 if test "${xgnu_linux_second_failure}" = "yes"; then
11042 # If we get the same failure with -b, there is no use adding -b.
11043 # So take it out. This plays safe.
11044 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11045 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11046 CPPFLAGS="$OLD_CPPFLAGS"
11047 LIBS="$OLD_LIBS"
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049 $as_echo "no" >&6; }
11050 else
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11052 $as_echo "yes" >&6; }
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056 $as_echo "no" >&6; }
11060 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11061 # header files included from there.
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11063 $as_echo_n "checking for Xkb... " >&6; }
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 #include <X11/Xlib.h>
11067 #include <X11/XKBlib.h>
11069 main ()
11071 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11073 return 0;
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 emacs_xkb=yes
11078 else
11079 emacs_xkb=no
11081 rm -f core conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11084 $as_echo "$emacs_xkb" >&6; }
11085 if test $emacs_xkb = yes; then
11087 $as_echo "#define HAVE_XKB 1" >>confdefs.h
11091 for ac_func in XrmSetDatabase XScreenResourceString \
11092 XScreenNumberOfScreen
11093 do :
11094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11096 eval as_val=\$$as_ac_var
11097 if test "x$as_val" = x""yes; then :
11098 cat >>confdefs.h <<_ACEOF
11099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 _ACEOF
11103 done
11107 if test "${window_system}" = "x11"; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11109 $as_echo_n "checking X11 version 6... " >&6; }
11110 if test "${emacs_cv_x11_version_6+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11115 #include <X11/Xlib.h>
11117 main ()
11119 #if XlibSpecificationRelease < 6
11120 fail;
11121 #endif
11124 return 0;
11126 _ACEOF
11127 if ac_fn_c_try_link "$LINENO"; then :
11128 emacs_cv_x11_version_6=yes
11129 else
11130 emacs_cv_x11_version_6=no
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11136 if test $emacs_cv_x11_version_6 = yes; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11138 $as_echo "6 or newer" >&6; }
11140 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11143 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
11145 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
11146 ## XIM support.
11147 case "$opsys" in
11148 sol2-*) : ;;
11150 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
11153 esac
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11156 $as_echo "before 6" >&6; }
11161 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11162 HAVE_RSVG=no
11163 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
11164 if test "${with_rsvg}" != "no"; then
11165 RSVG_REQUIRED=2.11.0
11166 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11169 succeeded=no
11171 if test "$PKG_CONFIG" = "no" ; then
11173 else
11174 PKG_CONFIG_MIN_VERSION=0.9.0
11175 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11177 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11179 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
11180 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
11181 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
11182 edit_cflags="
11183 s,///*,/,g
11184 s/^/ /
11185 s/ -I/ $isystem/g
11186 s/^ //
11188 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
11189 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
11191 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
11192 succeeded=yes
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 $as_echo "no" >&6; }
11196 RSVG_CFLAGS=""
11197 RSVG_LIBS=""
11198 ## If we have a custom action on failure, don't print errors, but
11199 ## do set a variable so people can do so. Do it in a subshell
11200 ## to capture any diagnostics in invoking pkg-config.
11201 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
11207 else
11208 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11209 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11213 if test $succeeded = yes; then
11214 HAVE_RSVG=yes
11215 else
11222 if test $HAVE_RSVG = yes; then
11224 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11226 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11227 LIBS="$RSVG_LIBS $LIBS"
11232 HAVE_IMAGEMAGICK=no
11233 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11234 if test "${with_imagemagick}" != "no"; then
11235 ## 6.2.8 is the earliest version known to work, but earlier versions
11236 ## might work - let us know if you find one.
11237 ## 6.0.7 does not work. See bug#7955.
11238 ## 6.8.2 makes Emacs crash; see Bug#13867.
11239 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
11241 succeeded=no
11243 if test "$PKG_CONFIG" = "no" ; then
11245 else
11246 PKG_CONFIG_MIN_VERSION=0.9.0
11247 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
11249 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11251 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
11252 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
11253 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
11254 edit_cflags="
11255 s,///*,/,g
11256 s/^/ /
11257 s/ -I/ $isystem/g
11258 s/^ //
11260 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
11261 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
11263 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
11264 succeeded=yes
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267 $as_echo "no" >&6; }
11268 IMAGEMAGICK_CFLAGS=""
11269 IMAGEMAGICK_LIBS=""
11270 ## If we have a custom action on failure, don't print errors, but
11271 ## do set a variable so people can do so. Do it in a subshell
11272 ## to capture any diagnostics in invoking pkg-config.
11273 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
11279 else
11280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11285 if test $succeeded = yes; then
11286 HAVE_IMAGEMAGICK=yes
11287 else
11294 if test $HAVE_IMAGEMAGICK = yes; then
11296 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
11298 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11299 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11300 for ac_func in MagickExportImagePixels MagickMergeImageLayers
11301 do :
11302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11304 eval as_val=\$$as_ac_var
11305 if test "x$as_val" = x""yes; then :
11306 cat >>confdefs.h <<_ACEOF
11307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 _ACEOF
11311 done
11318 HAVE_GTK=no
11319 GTK_OBJ=
11320 gtk_term_header=$term_header
11321 check_gtk2=no
11322 gtk3_pkg_errors=
11323 if test "${opsys}" != "mingw32"; then
11324 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11325 GLIB_REQUIRED=2.28
11326 GTK_REQUIRED=3.0
11327 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11330 succeeded=no
11332 if test "$PKG_CONFIG" = "no" ; then
11333 pkg_check_gtk=no
11334 else
11335 PKG_CONFIG_MIN_VERSION=0.9.0
11336 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11338 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11340 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11341 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11342 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11343 edit_cflags="
11344 s,///*,/,g
11345 s/^/ /
11346 s/ -I/ $isystem/g
11347 s/^ //
11349 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11350 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11352 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11353 succeeded=yes
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11357 GTK_CFLAGS=""
11358 GTK_LIBS=""
11359 ## If we have a custom action on failure, don't print errors, but
11360 ## do set a variable so people can do so. Do it in a subshell
11361 ## to capture any diagnostics in invoking pkg-config.
11362 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11368 else
11369 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11370 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11374 if test $succeeded = yes; then
11375 pkg_check_gtk=yes
11376 else
11377 pkg_check_gtk=no
11380 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
11381 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11383 if test "$pkg_check_gtk" = "yes"; then
11385 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
11387 GTK_OBJ=emacsgtkfixed.o
11388 gtk_term_header=gtkutil.h
11389 USE_GTK_TOOLKIT="GTK3"
11390 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11391 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11392 GTK_CFLAGS="$GTK_CFLAGS -DGLIB_DISABLE_DEPRECATION_WARNINGS"
11394 else
11395 check_gtk2=yes
11396 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11400 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11401 GLIB_REQUIRED=2.10
11402 GTK_REQUIRED=2.10
11403 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11406 succeeded=no
11408 if test "$PKG_CONFIG" = "no" ; then
11409 pkg_check_gtk=no
11410 else
11411 PKG_CONFIG_MIN_VERSION=0.9.0
11412 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11414 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11416 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11417 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11418 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11419 edit_cflags="
11420 s,///*,/,g
11421 s/^/ /
11422 s/ -I/ $isystem/g
11423 s/^ //
11425 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11426 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11428 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11429 succeeded=yes
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433 GTK_CFLAGS=""
11434 GTK_LIBS=""
11435 ## If we have a custom action on failure, don't print errors, but
11436 ## do set a variable so people can do so. Do it in a subshell
11437 ## to capture any diagnostics in invoking pkg-config.
11438 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11444 else
11445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11450 if test $succeeded = yes; then
11451 pkg_check_gtk=yes
11452 else
11453 pkg_check_gtk=no
11456 if test "$pkg_check_gtk" = "no" &&
11457 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11458 then
11459 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11461 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11465 if test x"$pkg_check_gtk" = xyes; then
11469 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11470 CFLAGS="$CFLAGS $GTK_CFLAGS"
11471 LIBS="$GTK_LIBS $LIBS"
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GTK compiles" >&5
11473 $as_echo_n "checking whether GTK compiles... " >&6; }
11474 GTK_COMPILES=no
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477 /* Check the Gtk and Glib APIs. */
11478 #include <gtk/gtk.h>
11479 #include <glib-object.h>
11480 static void
11481 callback (GObject *go, GParamSpec *spec, gpointer user_data)
11485 main ()
11488 GtkSettings *gs = 0;
11489 /* Use G_CALLBACK to make sure function pointers can be cast to void *;
11490 strict C prohibits this. Use gtk_main_iteration to test that the
11491 libraries are there. */
11492 if (g_signal_handler_find (G_OBJECT (gs), G_SIGNAL_MATCH_FUNC,
11493 0, 0, 0, G_CALLBACK (callback), 0))
11494 gtk_main_iteration ();
11497 return 0;
11499 _ACEOF
11500 if ac_fn_c_try_link "$LINENO"; then :
11501 GTK_COMPILES=yes
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_COMPILES" >&5
11506 $as_echo "$GTK_COMPILES" >&6; }
11507 if test "${GTK_COMPILES}" != "yes"; then
11508 GTK_OBJ=
11509 if test "$USE_X_TOOLKIT" != "maybe"; then
11510 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11512 else
11513 HAVE_GTK=yes
11515 $as_echo "#define USE_GTK 1" >>confdefs.h
11517 GTK_OBJ="gtkutil.o $GTK_OBJ"
11518 term_header=$gtk_term_header
11519 USE_X_TOOLKIT=none
11520 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11524 closing open displays. This is no problem if you just use
11525 one display, but if you use more than one and close one of them
11526 Emacs may crash." >&5
11527 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11528 closing open displays. This is no problem if you just use
11529 one display, but if you use more than one and close one of them
11530 Emacs may crash." >&2;}
11531 sleep 3
11539 if test "${HAVE_GTK}" = "yes"; then
11541 if test "$with_toolkit_scroll_bars" != no; then
11542 with_toolkit_scroll_bars=yes
11545 HAVE_GTK_FILE_SELECTION=no
11546 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11547 #include <gtk/gtk.h>
11549 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11550 HAVE_GTK_FILE_SELECTION=yes
11551 else
11552 HAVE_GTK_FILE_SELECTION=no
11555 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11556 for ac_func in gtk_file_selection_new
11557 do :
11558 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11559 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11560 cat >>confdefs.h <<_ACEOF
11561 #define HAVE_GTK_FILE_SELECTION_NEW 1
11562 _ACEOF
11565 done
11569 HAVE_GTK_HANDLE_BOX=no
11570 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11571 #include <gtk/gtk.h>
11573 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11574 HAVE_GTK_HANDLE_BOX=yes
11575 else
11576 HAVE_GTK_HANDLE_BOX=no
11579 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11580 for ac_func in gtk_handle_box_new
11581 do :
11582 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11583 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_GTK_HANDLE_BOX_NEW 1
11586 _ACEOF
11589 done
11593 HAVE_GTK_TEAROFF_MENU_ITEM=no
11594 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11595 #include <gtk/gtk.h>
11597 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11598 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11599 else
11600 HAVE_GTK_TEAROFF_MENU_ITEM=no
11603 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11604 for ac_func in gtk_tearoff_menu_item_new
11605 do :
11606 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11607 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11608 cat >>confdefs.h <<_ACEOF
11609 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11610 _ACEOF
11613 done
11617 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11618 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11619 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11620 gtk_orientable_set_orientation \
11621 gtk_window_set_has_resize_grip
11622 do :
11623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11624 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11625 eval as_val=\$$as_ac_var
11626 if test "x$as_val" = x""yes; then :
11627 cat >>confdefs.h <<_ACEOF
11628 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11629 _ACEOF
11632 done
11635 term_header=gtkutil.h
11638 HAVE_DBUS=no
11639 DBUS_OBJ=
11640 if test "${with_dbus}" = "yes"; then
11642 succeeded=no
11644 if test "$PKG_CONFIG" = "no" ; then
11645 HAVE_DBUS=no
11646 else
11647 PKG_CONFIG_MIN_VERSION=0.9.0
11648 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11650 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11652 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11653 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11654 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11655 edit_cflags="
11656 s,///*,/,g
11657 s/^/ /
11658 s/ -I/ $isystem/g
11659 s/^ //
11661 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11662 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11664 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11665 succeeded=yes
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11669 DBUS_CFLAGS=""
11670 DBUS_LIBS=""
11671 ## If we have a custom action on failure, don't print errors, but
11672 ## do set a variable so people can do so. Do it in a subshell
11673 ## to capture any diagnostics in invoking pkg-config.
11674 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11680 else
11681 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11682 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11686 if test $succeeded = yes; then
11687 HAVE_DBUS=yes
11688 else
11689 HAVE_DBUS=no
11692 if test "$HAVE_DBUS" = yes; then
11693 LIBS="$LIBS $DBUS_LIBS"
11695 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11697 for ac_func in dbus_watch_get_unix_fd \
11698 dbus_type_is_valid \
11699 dbus_validate_bus_name \
11700 dbus_validate_path \
11701 dbus_validate_interface \
11702 dbus_validate_member
11703 do :
11704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11706 eval as_val=\$$as_ac_var
11707 if test "x$as_val" = x""yes; then :
11708 cat >>confdefs.h <<_ACEOF
11709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11710 _ACEOF
11713 done
11715 DBUS_OBJ=dbusbind.o
11720 HAVE_GSETTINGS=no
11721 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11723 succeeded=no
11725 if test "$PKG_CONFIG" = "no" ; then
11726 HAVE_GSETTINGS=no
11727 else
11728 PKG_CONFIG_MIN_VERSION=0.9.0
11729 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11731 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11733 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11734 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11735 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11736 edit_cflags="
11737 s,///*,/,g
11738 s/^/ /
11739 s/ -I/ $isystem/g
11740 s/^ //
11742 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11743 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11745 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11746 succeeded=yes
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11750 GSETTINGS_CFLAGS=""
11751 GSETTINGS_LIBS=""
11752 ## If we have a custom action on failure, don't print errors, but
11753 ## do set a variable so people can do so. Do it in a subshell
11754 ## to capture any diagnostics in invoking pkg-config.
11755 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11761 else
11762 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11763 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11767 if test $succeeded = yes; then
11768 HAVE_GSETTINGS=yes
11769 else
11770 HAVE_GSETTINGS=no
11773 if test "$HAVE_GSETTINGS" = "yes"; then
11775 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11777 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11778 SETTINGS_LIBS="$GSETTINGS_LIBS"
11782 HAVE_GCONF=no
11783 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11785 succeeded=no
11787 if test "$PKG_CONFIG" = "no" ; then
11788 HAVE_GCONF=no
11789 else
11790 PKG_CONFIG_MIN_VERSION=0.9.0
11791 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11793 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11795 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11796 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11797 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11798 edit_cflags="
11799 s,///*,/,g
11800 s/^/ /
11801 s/ -I/ $isystem/g
11802 s/^ //
11804 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11805 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11807 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11808 succeeded=yes
11809 else
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811 $as_echo "no" >&6; }
11812 GCONF_CFLAGS=""
11813 GCONF_LIBS=""
11814 ## If we have a custom action on failure, don't print errors, but
11815 ## do set a variable so people can do so. Do it in a subshell
11816 ## to capture any diagnostics in invoking pkg-config.
11817 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11823 else
11824 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11825 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11829 if test $succeeded = yes; then
11830 HAVE_GCONF=yes
11831 else
11832 HAVE_GCONF=no
11835 if test "$HAVE_GCONF" = yes; then
11837 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11839 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11840 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11844 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11846 succeeded=no
11848 if test "$PKG_CONFIG" = "no" ; then
11849 HAVE_GOBJECT=no
11850 else
11851 PKG_CONFIG_MIN_VERSION=0.9.0
11852 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11854 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11856 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11857 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11858 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11859 edit_cflags="
11860 s,///*,/,g
11861 s/^/ /
11862 s/ -I/ $isystem/g
11863 s/^ //
11865 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11866 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11868 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11869 succeeded=yes
11870 else
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872 $as_echo "no" >&6; }
11873 GOBJECT_CFLAGS=""
11874 GOBJECT_LIBS=""
11875 ## If we have a custom action on failure, don't print errors, but
11876 ## do set a variable so people can do so. Do it in a subshell
11877 ## to capture any diagnostics in invoking pkg-config.
11878 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11884 else
11885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11890 if test $succeeded = yes; then
11891 HAVE_GOBJECT=yes
11892 else
11893 HAVE_GOBJECT=no
11896 if test "$HAVE_GOBJECT" = "yes"; then
11897 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11898 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11900 SAVE_CFLAGS="$CFLAGS"
11901 SAVE_LIBS="$LIBS"
11902 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11903 LIBS="$SETTINGS_LIBS $LIBS"
11904 for ac_func in g_type_init
11905 do :
11906 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11907 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11908 cat >>confdefs.h <<_ACEOF
11909 #define HAVE_G_TYPE_INIT 1
11910 _ACEOF
11913 done
11915 CFLAGS="$SAVE_CFLAGS"
11916 LIBS="$SAVE_LIBS"
11922 HAVE_LIBSELINUX=no
11923 LIBSELINUX_LIBS=
11924 if test "${with_selinux}" = "yes"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11926 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11927 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 ac_check_lib_save_LIBS=$LIBS
11931 LIBS="-lselinux $LIBS"
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char lgetfilecon ();
11943 main ()
11945 return lgetfilecon ();
11947 return 0;
11949 _ACEOF
11950 if ac_fn_c_try_link "$LINENO"; then :
11951 ac_cv_lib_selinux_lgetfilecon=yes
11952 else
11953 ac_cv_lib_selinux_lgetfilecon=no
11955 rm -f core conftest.err conftest.$ac_objext \
11956 conftest$ac_exeext conftest.$ac_ext
11957 LIBS=$ac_check_lib_save_LIBS
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11960 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11961 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11962 HAVE_LIBSELINUX=yes
11963 else
11964 HAVE_LIBSELINUX=no
11967 if test "$HAVE_LIBSELINUX" = yes; then
11969 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11971 LIBSELINUX_LIBS=-lselinux
11976 HAVE_GNUTLS=no
11977 if test "${with_gnutls}" = "yes" ; then
11979 succeeded=no
11981 if test "$PKG_CONFIG" = "no" ; then
11982 HAVE_GNUTLS=no
11983 else
11984 PKG_CONFIG_MIN_VERSION=0.9.0
11985 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11987 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11989 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11990 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11991 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11992 edit_cflags="
11993 s,///*,/,g
11994 s/^/ /
11995 s/ -I/ $isystem/g
11996 s/^ //
11998 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11999 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
12001 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
12002 succeeded=yes
12003 else
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006 LIBGNUTLS_CFLAGS=""
12007 LIBGNUTLS_LIBS=""
12008 ## If we have a custom action on failure, don't print errors, but
12009 ## do set a variable so people can do so. Do it in a subshell
12010 ## to capture any diagnostics in invoking pkg-config.
12011 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
12017 else
12018 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12019 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12023 if test $succeeded = yes; then
12024 HAVE_GNUTLS=yes
12025 else
12026 HAVE_GNUTLS=no
12029 if test "${HAVE_GNUTLS}" = "yes"; then
12031 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
12035 # Windows loads GnuTLS dynamically
12036 if test "${opsys}" = "mingw32"; then
12037 LIBGNUTLS_LIBS=
12038 else
12039 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12040 LIBS="$LIBGNUTLS_LIBS $LIBS"
12047 NOTIFY_OBJ=
12048 NOTIFY_SUMMARY=no
12050 if test "${with_ns}" = yes && test ${with_file_notification} = yes; then
12051 with_file_notification=no
12054 case $with_file_notification,$opsys in
12055 w32,* | yes,mingw32)
12056 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12057 if test "x$ac_cv_header_windows_h" = x""yes; then :
12062 if test "$ac_cv_header_windows_h" = yes ; then
12064 $as_echo "#define HAVE_W32NOTIFY 1" >>confdefs.h
12066 NOTIFY_OBJ=w32notify.o
12067 NOTIFY_SUMMARY="yes (w32)"
12068 fi ;;
12069 esac
12071 case $with_file_notification,$NOTIFY_OBJ in
12072 gfile, | yes,)
12074 succeeded=no
12076 if test "$PKG_CONFIG" = "no" ; then
12077 HAVE_GFILENOTIFY=no
12078 else
12079 PKG_CONFIG_MIN_VERSION=0.9.0
12080 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.24" >&5
12082 $as_echo_n "checking for gio-2.0 >= 2.24... " >&6; }
12084 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.24" 2>&5 &&
12085 GFILENOTIFY_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.24" 2>&5` &&
12086 GFILENOTIFY_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.24" 2>&5`; then
12087 edit_cflags="
12088 s,///*,/,g
12089 s/^/ /
12090 s/ -I/ $isystem/g
12091 s/^ //
12093 GFILENOTIFY_CFLAGS=`$as_echo "$GFILENOTIFY_CFLAGS" | sed -e "$edit_cflags"`
12094 GFILENOTIFY_LIBS=`$as_echo "$GFILENOTIFY_LIBS" | sed -e 's,///*,/,g'`
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&5
12096 $as_echo "yes CFLAGS='$GFILENOTIFY_CFLAGS' LIBS='$GFILENOTIFY_LIBS'" >&6; }
12097 succeeded=yes
12098 else
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12100 $as_echo "no" >&6; }
12101 GFILENOTIFY_CFLAGS=""
12102 GFILENOTIFY_LIBS=""
12103 ## If we have a custom action on failure, don't print errors, but
12104 ## do set a variable so people can do so. Do it in a subshell
12105 ## to capture any diagnostics in invoking pkg-config.
12106 GFILENOTIFY_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.24") 2>&1`
12112 else
12113 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12114 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12118 if test $succeeded = yes; then
12119 HAVE_GFILENOTIFY=yes
12120 else
12121 HAVE_GFILENOTIFY=no
12124 if test "$HAVE_GFILENOTIFY" = "yes"; then
12126 $as_echo "#define HAVE_GFILENOTIFY 1" >>confdefs.h
12128 NOTIFY_OBJ=gfilenotify.o
12129 NOTIFY_SUMMARY="yes -lgio (gfile)"
12130 fi ;;
12131 esac
12133 case $with_file_notification,$NOTIFY_OBJ in
12134 inotify, | yes,)
12135 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
12136 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
12141 if test "$ac_cv_header_sys_inotify_h" = yes ; then
12142 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
12143 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
12147 if test "$ac_cv_func_inotify_init1" = yes; then
12149 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
12151 NOTIFY_OBJ=inotify.o
12152 NOTIFY_SUMMARY="yes -lglibc (inotify)"
12154 fi ;;
12155 esac
12157 case $with_file_notification,$NOTIFY_OBJ in
12158 yes,* | no,* | *,?*) ;;
12159 *) as_fn_error "File notification \`$with_file_notification' requested but requirements not found." "$LINENO" 5 ;;
12160 esac
12162 if test -n "$NOTIFY_OBJ"; then
12164 $as_echo "#define USE_FILE_NOTIFY 1" >>confdefs.h
12171 HAVE_XAW3D=no
12172 LUCID_LIBW=
12173 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12174 if test "$with_xaw3d" != no; then
12175 if test "${emacs_cv_xaw3d+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12181 #include <X11/Intrinsic.h>
12182 #include <X11/Xaw3d/Simple.h>
12184 main ()
12188 return 0;
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12193 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
12194 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 ac_check_lib_save_LIBS=$LIBS
12198 LIBS="-lXaw3d $LIBS"
12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200 /* end confdefs.h. */
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12205 #ifdef __cplusplus
12206 extern "C"
12207 #endif
12208 char XawScrollbarSetThumb ();
12210 main ()
12212 return XawScrollbarSetThumb ();
12214 return 0;
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12219 else
12220 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12224 LIBS=$ac_check_lib_save_LIBS
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12227 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12228 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
12229 emacs_cv_xaw3d=yes
12230 else
12231 emacs_cv_xaw3d=no
12234 else
12235 emacs_cv_xaw3d=no
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12241 else
12242 emacs_cv_xaw3d=no
12244 if test $emacs_cv_xaw3d = yes; then
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12246 $as_echo_n "checking for xaw3d... " >&6; }
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12248 $as_echo "yes; using Lucid toolkit" >&6; }
12249 USE_X_TOOLKIT=LUCID
12250 HAVE_XAW3D=yes
12251 LUCID_LIBW=-lXaw3d
12253 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12257 $as_echo_n "checking for xaw3d... " >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12261 $as_echo_n "checking for libXaw... " >&6; }
12262 if test "${emacs_cv_xaw+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12268 #include <X11/Intrinsic.h>
12269 #include <X11/Xaw/Simple.h>
12271 main ()
12275 return 0;
12277 _ACEOF
12278 if ac_fn_c_try_link "$LINENO"; then :
12279 emacs_cv_xaw=yes
12280 else
12281 emacs_cv_xaw=no
12283 rm -f core conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12287 if test $emacs_cv_xaw = yes; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12289 $as_echo "yes; using Lucid toolkit" >&6; }
12290 USE_X_TOOLKIT=LUCID
12291 LUCID_LIBW=-lXaw
12292 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12293 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12294 else
12295 as_fn_error "No X toolkit could be found.
12296 If you are sure you want Emacs compiled without an X toolkit, pass
12297 --with-x-toolkit=no
12298 to configure. Otherwise, install the development libraries for the toolkit
12299 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
12304 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12306 LIBXTR6=
12307 if test "${USE_X_TOOLKIT}" != "none"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12309 $as_echo_n "checking X11 toolkit version... " >&6; }
12310 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12312 else
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12315 #include <X11/Intrinsic.h>
12317 main ()
12319 #if XtSpecificationRelease < 6
12320 fail;
12321 #endif
12324 return 0;
12326 _ACEOF
12327 if ac_fn_c_try_link "$LINENO"; then :
12328 emacs_cv_x11_toolkit_version_6=yes
12329 else
12330 emacs_cv_x11_toolkit_version_6=no
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12336 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12337 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
12339 $as_echo "6 or newer" >&6; }
12341 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
12343 LIBXTR6="-lSM -lICE"
12344 case "$opsys" in
12345 ## Use libw.a along with X11R6 Xt.
12346 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
12347 esac
12348 else
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
12350 $as_echo "before 6" >&6; }
12353 OLDLIBS="$LIBS"
12354 if test x$HAVE_X11XTR6 = xyes; then
12355 LIBS="-lXt -lSM -lICE $LIBS"
12356 else
12357 LIBS="-lXt $LIBS"
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
12360 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12361 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364 ac_check_lib_save_LIBS=$LIBS
12365 LIBS="-lXmu $LIBS"
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12369 /* Override any GCC internal prototype to avoid an error.
12370 Use char because int might match the return type of a GCC
12371 builtin and then its argument prototype would still apply. */
12372 #ifdef __cplusplus
12373 extern "C"
12374 #endif
12375 char XmuConvertStandardSelection ();
12377 main ()
12379 return XmuConvertStandardSelection ();
12381 return 0;
12383 _ACEOF
12384 if ac_fn_c_try_link "$LINENO"; then :
12385 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12386 else
12387 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12389 rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391 LIBS=$ac_check_lib_save_LIBS
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12394 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12395 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
12396 cat >>confdefs.h <<_ACEOF
12397 #define HAVE_LIBXMU 1
12398 _ACEOF
12400 LIBS="-lXmu $LIBS"
12404 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12408 LIBXMU=-lXmu
12409 case $opsys in
12410 ## These systems don't supply Xmu.
12411 hpux* | aix4-2 )
12412 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
12414 mingw32 )
12415 LIBXMU=
12417 esac
12420 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12421 if test "${HAVE_X11}" = "yes"; then
12422 if test "${USE_X_TOOLKIT}" != "none"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
12424 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12425 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lXext $LIBS"
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char XShapeQueryExtension ();
12441 main ()
12443 return XShapeQueryExtension ();
12445 return 0;
12447 _ACEOF
12448 if ac_fn_c_try_link "$LINENO"; then :
12449 ac_cv_lib_Xext_XShapeQueryExtension=yes
12450 else
12451 ac_cv_lib_Xext_XShapeQueryExtension=no
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12458 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12459 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12460 cat >>confdefs.h <<_ACEOF
12461 #define HAVE_LIBXEXT 1
12462 _ACEOF
12464 LIBS="-lXext $LIBS"
12471 LIBXP=
12472 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12473 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12474 if test -d /usr/include/openmotif; then
12475 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12476 emacs_cv_openmotif=yes
12477 case "$canonical" in
12478 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12479 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12482 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12483 esac
12484 else
12485 emacs_cv_openmotif=no
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12488 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12489 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12490 $as_echo_n "(cached) " >&6
12491 else
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12494 #include <Xm/Xm.h>
12496 main ()
12498 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12499 int x = 5;
12500 #else
12501 Motif version prior to 2.1.
12502 #endif
12504 return 0;
12506 _ACEOF
12507 if ac_fn_c_try_compile "$LINENO"; then :
12508 emacs_cv_motif_version_2_1=yes
12509 else
12510 emacs_cv_motif_version_2_1=no
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12515 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12516 if test $emacs_cv_motif_version_2_1 = yes; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12518 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12519 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 ac_check_lib_save_LIBS=$LIBS
12523 LIBS="-lXp $LIBS"
12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h. */
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char XpCreateContext ();
12535 main ()
12537 return XpCreateContext ();
12539 return 0;
12541 _ACEOF
12542 if ac_fn_c_try_link "$LINENO"; then :
12543 ac_cv_lib_Xp_XpCreateContext=yes
12544 else
12545 ac_cv_lib_Xp_XpCreateContext=no
12547 rm -f core conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549 LIBS=$ac_check_lib_save_LIBS
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12552 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12553 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12554 LIBXP=-lXp
12557 if test x$emacs_cv_openmotif = xyes; then
12558 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12560 else
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12562 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12563 if test "${emacs_cv_lesstif+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 # We put this in CFLAGS temporarily to precede other -I options
12567 # that might be in CFLAGS temporarily.
12568 # We put this in CPPFLAGS where it precedes the other -I options.
12569 OLD_CPPFLAGS=$CPPFLAGS
12570 OLD_CFLAGS=$CFLAGS
12571 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12572 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12577 main ()
12579 int x = 5;
12581 return 0;
12583 _ACEOF
12584 if ac_fn_c_try_compile "$LINENO"; then :
12585 emacs_cv_lesstif=yes
12586 else
12587 emacs_cv_lesstif=no
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12592 $as_echo "$emacs_cv_lesstif" >&6; }
12593 if test $emacs_cv_lesstif = yes; then
12594 # Make sure this -I option remains in CPPFLAGS after it is set
12595 # back to REAL_CPPFLAGS.
12596 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12597 # have those other -I options anyway. Ultimately, having this
12598 # directory ultimately in CPPFLAGS will be enough.
12599 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12600 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12601 else
12602 CFLAGS=$OLD_CFLAGS
12603 CPPFLAGS=$OLD_CPPFLAGS
12606 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12607 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12609 else
12610 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12617 USE_TOOLKIT_SCROLL_BARS=no
12618 if test "${with_toolkit_scroll_bars}" != "no"; then
12619 if test "${USE_X_TOOLKIT}" != "none"; then
12620 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12621 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12623 HAVE_XAW3D=no
12624 USE_TOOLKIT_SCROLL_BARS=yes
12625 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12626 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12628 USE_TOOLKIT_SCROLL_BARS=yes
12630 elif test "${HAVE_GTK}" = "yes"; then
12631 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12633 USE_TOOLKIT_SCROLL_BARS=yes
12634 elif test "${HAVE_NS}" = "yes"; then
12635 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12637 USE_TOOLKIT_SCROLL_BARS=yes
12638 elif test "${HAVE_W32}" = "yes"; then
12639 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12641 USE_TOOLKIT_SCROLL_BARS=yes
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12648 #include <X11/Xlib.h>
12649 #include <X11/Xresource.h>
12651 main ()
12653 XIMProc callback;
12655 return 0;
12657 _ACEOF
12658 if ac_fn_c_try_compile "$LINENO"; then :
12659 HAVE_XIM=yes
12661 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12663 else
12664 HAVE_XIM=no
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 if test "${with_xim}" != "no"; then
12671 $as_echo "#define USE_XIM 1" >>confdefs.h
12676 if test "${HAVE_XIM}" != "no"; then
12677 late_CFLAGS=$CFLAGS
12678 if test "$GCC" = yes; then
12679 CFLAGS="$CFLAGS --pedantic-errors"
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 #include <X11/Xlib.h>
12685 #include <X11/Xresource.h>
12687 main ()
12689 Display *display;
12690 XrmDatabase db;
12691 char *res_name;
12692 char *res_class;
12693 XIMProc callback;
12694 XPointer *client_data;
12695 #ifndef __GNUC__
12696 /* If we're not using GCC, it's probably not XFree86, and this is
12697 probably right, but we can't use something like --pedantic-errors. */
12698 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12699 char*, XIMProc, XPointer*);
12700 #endif
12701 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12702 client_data);
12704 return 0;
12706 _ACEOF
12707 if ac_fn_c_try_compile "$LINENO"; then :
12708 emacs_cv_arg6_star=yes
12710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12711 if test "$emacs_cv_arg6_star" = yes; then
12712 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12714 else
12715 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12718 CFLAGS=$late_CFLAGS
12721 ### Start of font-backend (under any platform) section.
12722 # (nothing here yet -- this is a placeholder)
12723 ### End of font-backend (under any platform) section.
12725 ### Start of font-backend (under X11) section.
12726 if test "${HAVE_X11}" = "yes"; then
12728 succeeded=no
12730 if test "$PKG_CONFIG" = "no" ; then
12731 HAVE_FC=no
12732 else
12733 PKG_CONFIG_MIN_VERSION=0.9.0
12734 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12736 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12738 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12739 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12740 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12741 edit_cflags="
12742 s,///*,/,g
12743 s/^/ /
12744 s/ -I/ $isystem/g
12745 s/^ //
12747 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12748 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12750 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12751 succeeded=yes
12752 else
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754 $as_echo "no" >&6; }
12755 FONTCONFIG_CFLAGS=""
12756 FONTCONFIG_LIBS=""
12757 ## If we have a custom action on failure, don't print errors, but
12758 ## do set a variable so people can do so. Do it in a subshell
12759 ## to capture any diagnostics in invoking pkg-config.
12760 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12766 else
12767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12772 if test $succeeded = yes; then
12773 HAVE_FC=yes
12774 else
12775 HAVE_FC=no
12779 ## Use -lXft if available, unless `--with-xft=no'.
12780 HAVE_XFT=maybe
12781 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12782 with_xft="no";
12784 if test "x${with_xft}" != "xno"; then
12787 succeeded=no
12789 if test "$PKG_CONFIG" = "no" ; then
12790 HAVE_XFT=no
12791 else
12792 PKG_CONFIG_MIN_VERSION=0.9.0
12793 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12795 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12797 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12798 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12799 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12800 edit_cflags="
12801 s,///*,/,g
12802 s/^/ /
12803 s/ -I/ $isystem/g
12804 s/^ //
12806 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12807 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12809 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12810 succeeded=yes
12811 else
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12813 $as_echo "no" >&6; }
12814 XFT_CFLAGS=""
12815 XFT_LIBS=""
12816 ## If we have a custom action on failure, don't print errors, but
12817 ## do set a variable so people can do so. Do it in a subshell
12818 ## to capture any diagnostics in invoking pkg-config.
12819 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12825 else
12826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12831 if test $succeeded = yes; then
12833 else
12834 HAVE_XFT=no
12837 ## Because xftfont.c uses XRenderQueryExtension, we also
12838 ## need to link to -lXrender.
12839 HAVE_XRENDER=no
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12841 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12842 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12845 ac_check_lib_save_LIBS=$LIBS
12846 LIBS="-lXrender $LIBS"
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char XRenderQueryExtension ();
12858 main ()
12860 return XRenderQueryExtension ();
12862 return 0;
12864 _ACEOF
12865 if ac_fn_c_try_link "$LINENO"; then :
12866 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12867 else
12868 ac_cv_lib_Xrender_XRenderQueryExtension=no
12870 rm -f core conftest.err conftest.$ac_objext \
12871 conftest$ac_exeext conftest.$ac_ext
12872 LIBS=$ac_check_lib_save_LIBS
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12875 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12876 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12877 HAVE_XRENDER=yes
12880 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12881 OLD_CPPFLAGS="$CPPFLAGS"
12882 OLD_CFLAGS="$CFLAGS"
12883 OLD_LIBS="$LIBS"
12884 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12885 CFLAGS="$CFLAGS $XFT_CFLAGS"
12886 XFT_LIBS="-lXrender $XFT_LIBS"
12887 LIBS="$XFT_LIBS $LIBS"
12888 ac_fn_c_check_header_compile "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "#include <X11/X.h>
12890 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12892 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12893 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 ac_check_lib_save_LIBS=$LIBS
12897 LIBS="-lXft $XFT_LIBS $LIBS"
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12901 /* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12904 #ifdef __cplusplus
12905 extern "C"
12906 #endif
12907 char XftFontOpen ();
12909 main ()
12911 return XftFontOpen ();
12913 return 0;
12915 _ACEOF
12916 if ac_fn_c_try_link "$LINENO"; then :
12917 ac_cv_lib_Xft_XftFontOpen=yes
12918 else
12919 ac_cv_lib_Xft_XftFontOpen=no
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12923 LIBS=$ac_check_lib_save_LIBS
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12926 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12927 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12928 HAVE_XFT=yes
12935 if test "${HAVE_XFT}" = "yes"; then
12937 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12940 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12941 else
12942 CPPFLAGS="$OLD_CPPFLAGS"
12943 CFLAGS="$OLD_CFLAGS"
12944 LIBS="$OLD_LIBS"
12945 fi # "${HAVE_XFT}" = "yes"
12946 fi # "$HAVE_XFT" != no
12947 fi # "x${with_xft}" != "xno"
12949 ## We used to allow building with FreeType and without Xft.
12950 ## However, the ftx font backend driver is not in good shape.
12951 if test "$HAVE_XFT" != "yes"; then
12952 HAVE_XFT=no
12953 HAVE_FREETYPE=no
12954 else
12956 succeeded=no
12958 if test "$PKG_CONFIG" = "no" ; then
12959 HAVE_FREETYPE=no
12960 else
12961 PKG_CONFIG_MIN_VERSION=0.9.0
12962 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12964 $as_echo_n "checking for freetype2... " >&6; }
12966 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12967 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12968 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12969 edit_cflags="
12970 s,///*,/,g
12971 s/^/ /
12972 s/ -I/ $isystem/g
12973 s/^ //
12975 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12976 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12978 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12979 succeeded=yes
12980 else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982 $as_echo "no" >&6; }
12983 FREETYPE_CFLAGS=""
12984 FREETYPE_LIBS=""
12985 ## If we have a custom action on failure, don't print errors, but
12986 ## do set a variable so people can do so. Do it in a subshell
12987 ## to capture any diagnostics in invoking pkg-config.
12988 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12994 else
12995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13000 if test $succeeded = yes; then
13001 HAVE_FREETYPE=yes
13002 else
13003 HAVE_FREETYPE=no
13007 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
13010 HAVE_LIBOTF=no
13011 if test "${HAVE_FREETYPE}" = "yes"; then
13013 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
13015 if test "${with_libotf}" != "no"; then
13017 succeeded=no
13019 if test "$PKG_CONFIG" = "no" ; then
13020 HAVE_LIBOTF=no
13021 else
13022 PKG_CONFIG_MIN_VERSION=0.9.0
13023 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
13025 $as_echo_n "checking for libotf... " >&6; }
13027 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
13028 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
13029 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
13030 edit_cflags="
13031 s,///*,/,g
13032 s/^/ /
13033 s/ -I/ $isystem/g
13034 s/^ //
13036 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
13037 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
13039 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
13040 succeeded=yes
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044 LIBOTF_CFLAGS=""
13045 LIBOTF_LIBS=""
13046 ## If we have a custom action on failure, don't print errors, but
13047 ## do set a variable so people can do so. Do it in a subshell
13048 ## to capture any diagnostics in invoking pkg-config.
13049 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
13055 else
13056 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13057 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13061 if test $succeeded = yes; then
13062 HAVE_LIBOTF=yes
13063 else
13064 HAVE_LIBOTF=no
13067 if test "$HAVE_LIBOTF" = "yes"; then
13069 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
13072 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13073 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 ac_check_lib_save_LIBS=$LIBS
13077 LIBS="-lotf $LIBS"
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char OTF_get_variation_glyphs ();
13089 main ()
13091 return OTF_get_variation_glyphs ();
13093 return 0;
13095 _ACEOF
13096 if ac_fn_c_try_link "$LINENO"; then :
13097 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13098 else
13099 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13106 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13107 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
13108 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13109 else
13110 HAVE_OTF_GET_VARIATION_GLYPHS=no
13113 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13115 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
13122 HAVE_M17N_FLT=no
13123 if test "${HAVE_LIBOTF}" = yes; then
13124 if test "${with_m17n_flt}" != "no"; then
13126 succeeded=no
13128 if test "$PKG_CONFIG" = "no" ; then
13129 HAVE_M17N_FLT=no
13130 else
13131 PKG_CONFIG_MIN_VERSION=0.9.0
13132 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
13134 $as_echo_n "checking for m17n-flt... " >&6; }
13136 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
13137 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
13138 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
13139 edit_cflags="
13140 s,///*,/,g
13141 s/^/ /
13142 s/ -I/ $isystem/g
13143 s/^ //
13145 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
13146 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
13148 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
13149 succeeded=yes
13150 else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152 $as_echo "no" >&6; }
13153 M17N_FLT_CFLAGS=""
13154 M17N_FLT_LIBS=""
13155 ## If we have a custom action on failure, don't print errors, but
13156 ## do set a variable so people can do so. Do it in a subshell
13157 ## to capture any diagnostics in invoking pkg-config.
13158 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
13164 else
13165 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13166 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13170 if test $succeeded = yes; then
13171 HAVE_M17N_FLT=yes
13172 else
13173 HAVE_M17N_FLT=no
13176 if test "$HAVE_M17N_FLT" = "yes"; then
13178 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
13183 else
13184 HAVE_XFT=no
13185 HAVE_FREETYPE=no
13186 HAVE_LIBOTF=no
13187 HAVE_M17N_FLT=no
13190 ### End of font-backend (under X11) section.
13201 ### Use -lXpm if available, unless `--with-xpm=no'.
13202 ### mingw32 doesn't use -lXpm, since it loads the library dynamically.
13203 HAVE_XPM=no
13204 LIBXPM=
13205 if test "${HAVE_W32}" = "yes" && test "${opsys}" = "cygwin"; then
13206 if test "${with_xpm}" != "no"; then
13207 SAVE_CPPFLAGS="$CPPFLAGS"
13208 SAVE_LDFLAGS="$LDFLAGS"
13209 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
13210 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
13211 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13212 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
13214 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
13215 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 ac_check_lib_save_LIBS=$LIBS
13219 LIBS="-lXpm $LIBS"
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13223 /* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13226 #ifdef __cplusplus
13227 extern "C"
13228 #endif
13229 char XpmReadFileToImage ();
13231 main ()
13233 return XpmReadFileToImage ();
13235 return 0;
13237 _ACEOF
13238 if ac_fn_c_try_link "$LINENO"; then :
13239 ac_cv_lib_Xpm_XpmReadFileToImage=yes
13240 else
13241 ac_cv_lib_Xpm_XpmReadFileToImage=no
13243 rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
13248 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
13249 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
13250 HAVE_XPM=yes
13256 if test "${HAVE_XPM}" = "yes"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13258 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261 #include "X11/xpm.h"
13262 #ifndef XpmReturnAllocPixels
13263 no_return_alloc_pixels
13264 #endif
13266 _ACEOF
13267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13269 HAVE_XPM=no
13270 else
13271 HAVE_XPM=yes
13273 rm -f conftest*
13276 if test "${HAVE_XPM}" = "yes"; then
13277 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279 $as_echo "yes" >&6; }
13280 else
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282 $as_echo "no" >&6; }
13283 CPPFLAGS="$SAVE_CPPFLAGS"
13284 LDFLAGS="$SAVE_LDFLAGS"
13289 if test "${HAVE_XPM}" = "yes"; then
13291 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13293 LIBXPM=-lXpm
13297 if test "${HAVE_X11}" = "yes"; then
13298 if test "${with_xpm}" != "no"; then
13299 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
13300 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
13302 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13303 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
13304 $as_echo_n "(cached) " >&6
13305 else
13306 ac_check_lib_save_LIBS=$LIBS
13307 LIBS="-lXpm -lX11 $LIBS"
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13311 /* Override any GCC internal prototype to avoid an error.
13312 Use char because int might match the return type of a GCC
13313 builtin and then its argument prototype would still apply. */
13314 #ifdef __cplusplus
13315 extern "C"
13316 #endif
13317 char XpmReadFileToPixmap ();
13319 main ()
13321 return XpmReadFileToPixmap ();
13323 return 0;
13325 _ACEOF
13326 if ac_fn_c_try_link "$LINENO"; then :
13327 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13328 else
13329 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13331 rm -f core conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13336 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13337 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
13338 HAVE_XPM=yes
13344 if test "${HAVE_XPM}" = "yes"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
13346 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 #include "X11/xpm.h"
13350 #ifndef XpmReturnAllocPixels
13351 no_return_alloc_pixels
13352 #endif
13354 _ACEOF
13355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13356 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
13357 HAVE_XPM=no
13358 else
13359 HAVE_XPM=yes
13361 rm -f conftest*
13364 if test "${HAVE_XPM}" = "yes"; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13366 $as_echo "yes" >&6; }
13367 else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369 $as_echo "no" >&6; }
13374 if test "${HAVE_XPM}" = "yes"; then
13376 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13378 LIBXPM=-lXpm
13382 ### FIXME: Perhaps regroup to minimize code duplication due to MinGW's
13383 ### slightly different requirements wrt image libraries (it doesn't
13384 ### use -lXpm because it loads the xpm shared library dynamically at
13385 ### run time).
13386 if test "${opsys}" = "mingw32"; then
13387 if test "${with_xpm}" != "no"; then
13388 ac_fn_c_check_header_compile "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "
13389 #define FOR_MSW 1
13391 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
13392 HAVE_XPM=yes
13393 else
13394 HAVE_XPM=no
13400 if test "${HAVE_XPM}" = "yes"; then
13402 $as_echo "#define HAVE_XPM 1" >>confdefs.h
13409 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13410 ### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
13411 HAVE_JPEG=no
13412 LIBJPEG=
13413 if test "${opsys}" = "mingw32"; then
13414 if test "${with_jpeg}" != "no"; then
13415 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13416 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13417 HAVE_JPEG=yes
13418 else
13419 HAVE_JPEG=no
13424 if test "${HAVE_JPEG}" = "yes"; then
13425 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 #include <jpeglib.h>
13430 version=JPEG_LIB_VERSION
13432 _ACEOF
13433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13434 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13435 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13437 else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13439 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13440 HAVE_JPEG=no
13442 rm -f conftest*
13445 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13446 if test "${with_jpeg}" != "no"; then
13447 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
13448 if test "x$ac_cv_header_jerror_h" = x""yes; then :
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
13450 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
13451 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454 ac_check_lib_save_LIBS=$LIBS
13455 LIBS="-ljpeg $LIBS"
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13459 /* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13462 #ifdef __cplusplus
13463 extern "C"
13464 #endif
13465 char jpeg_destroy_compress ();
13467 main ()
13469 return jpeg_destroy_compress ();
13471 return 0;
13473 _ACEOF
13474 if ac_fn_c_try_link "$LINENO"; then :
13475 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13476 else
13477 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13479 rm -f core conftest.err conftest.$ac_objext \
13480 conftest$ac_exeext conftest.$ac_ext
13481 LIBS=$ac_check_lib_save_LIBS
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13484 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13485 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
13486 HAVE_JPEG=yes
13494 if test "${HAVE_JPEG}" = "yes"; then
13495 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 #include <jpeglib.h>
13500 version=JPEG_LIB_VERSION
13502 _ACEOF
13503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13504 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13505 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13507 else
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13509 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13510 HAVE_JPEG=no
13512 rm -f conftest*
13515 if test "${HAVE_JPEG}" = "yes"; then
13516 LIBJPEG=-ljpeg
13521 ### Use -lpng if available, unless `--with-png=no'.
13522 ### mingw32 doesn't use -lpng, since it loads the library dynamically.
13523 HAVE_PNG=no
13524 LIBPNG=
13525 if test "${opsys}" = "mingw32"; then
13526 if test "${with_png}" != "no"; then
13527 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13528 if test "x$ac_cv_header_png_h" = x""yes; then :
13529 HAVE_PNG=yes
13530 else
13531 HAVE_PNG=no
13536 if test "${HAVE_PNG}" = "yes"; then
13538 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13541 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13542 # include <libpng/png.h>
13543 #else
13544 # include <png.h>
13545 #endif
13548 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13550 else
13552 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13557 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13558 if test "${with_png}" != "no"; then
13559 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13560 # in /usr/include/libpng.
13561 for ac_header in png.h libpng/png.h
13562 do :
13563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13564 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13565 eval as_val=\$$as_ac_Header
13566 if test "x$as_val" = x""yes; then :
13567 cat >>confdefs.h <<_ACEOF
13568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13569 _ACEOF
13570 break
13573 done
13575 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13577 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13578 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 ac_check_lib_save_LIBS=$LIBS
13582 LIBS="-lpng -lz -lm $LIBS"
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13586 /* Override any GCC internal prototype to avoid an error.
13587 Use char because int might match the return type of a GCC
13588 builtin and then its argument prototype would still apply. */
13589 #ifdef __cplusplus
13590 extern "C"
13591 #endif
13592 char png_get_channels ();
13594 main ()
13596 return png_get_channels ();
13598 return 0;
13600 _ACEOF
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 ac_cv_lib_png_png_get_channels=yes
13603 else
13604 ac_cv_lib_png_png_get_channels=no
13606 rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 LIBS=$ac_check_lib_save_LIBS
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13611 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13612 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13613 HAVE_PNG=yes
13619 if test "${HAVE_PNG}" = "yes"; then
13621 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13623 LIBPNG="-lpng -lz -lm"
13625 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13626 # include <libpng/png.h>
13627 #else
13628 # include <png.h>
13629 #endif
13632 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13634 else
13636 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13644 HAVE_ZLIB=no
13645 LIBZ=
13646 if test "${with_zlib}" != "no"; then
13647 OLIBS=$LIBS
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13649 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13650 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 ac_func_search_save_LIBS=$LIBS
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13660 #ifdef __cplusplus
13661 extern "C"
13662 #endif
13663 char inflateEnd ();
13665 main ()
13667 return inflateEnd ();
13669 return 0;
13671 _ACEOF
13672 for ac_lib in '' z; do
13673 if test -z "$ac_lib"; then
13674 ac_res="none required"
13675 else
13676 ac_res=-l$ac_lib
13677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 ac_cv_search_inflateEnd=$ac_res
13682 rm -f core conftest.err conftest.$ac_objext \
13683 conftest$ac_exeext
13684 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13685 break
13687 done
13688 if test "${ac_cv_search_inflateEnd+set}" = set; then :
13690 else
13691 ac_cv_search_inflateEnd=no
13693 rm conftest.$ac_ext
13694 LIBS=$ac_func_search_save_LIBS
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13697 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13698 ac_res=$ac_cv_search_inflateEnd
13699 if test "$ac_res" != no; then :
13700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13701 HAVE_ZLIB=yes
13704 LIBS=$OLIBS
13705 case $ac_cv_search_inflateEnd in
13706 -*) LIBZ=$ac_cv_search_inflateEnd ;;
13707 esac
13709 if test "${HAVE_ZLIB}" = "yes"; then
13711 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13713 ### mingw32 doesn't use -lz, since it loads the library dynamically.
13714 if test "${opsys}" = "mingw32"; then
13715 LIBZ=
13721 ### Use -ltiff if available, unless `--with-tiff=no'.
13722 ### mingw32 doesn't use -ltiff, since it loads the library dynamically.
13723 HAVE_TIFF=no
13724 LIBTIFF=
13725 if test "${opsys}" = "mingw32"; then
13726 if test "${with_tiff}" != "no"; then
13727 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13728 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13729 HAVE_TIFF=yes
13730 else
13731 HAVE_TIFF=no
13736 if test "${HAVE_TIFF}" = "yes"; then
13738 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13741 elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13742 if test "${with_tiff}" != "no"; then
13743 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13744 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13745 tifflibs="-lz -lm"
13746 # At least one tiff package requires the jpeg library.
13747 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13749 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13750 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 ac_check_lib_save_LIBS=$LIBS
13754 LIBS="-ltiff $tifflibs $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 TIFFGetVersion ();
13766 main ()
13768 return TIFFGetVersion ();
13770 return 0;
13772 _ACEOF
13773 if ac_fn_c_try_link "$LINENO"; then :
13774 ac_cv_lib_tiff_TIFFGetVersion=yes
13775 else
13776 ac_cv_lib_tiff_TIFFGetVersion=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_tiff_TIFFGetVersion" >&5
13783 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13784 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13785 HAVE_TIFF=yes
13793 if test "${HAVE_TIFF}" = "yes"; then
13795 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13797 LIBTIFF=-ltiff
13802 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13803 ### mingw32 doesn't use -lgif/-lungif, since it loads the library dynamically.
13804 HAVE_GIF=no
13805 LIBGIF=
13806 if test "${opsys}" = "mingw32"; then
13807 if test "${with_gif}" != "no"; then
13808 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13809 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13810 HAVE_GIF=yes
13811 else
13812 HAVE_GIF=no
13817 if test "${HAVE_GIF}" = "yes"; then
13819 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13822 elif test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13823 || test "${HAVE_W32}" = "yes"; then
13824 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13825 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13826 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13827 # Earlier versions can crash Emacs.
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13829 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13830 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13832 else
13833 ac_check_lib_save_LIBS=$LIBS
13834 LIBS="-lgif $LIBS"
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13838 /* Override any GCC internal prototype to avoid an error.
13839 Use char because int might match the return type of a GCC
13840 builtin and then its argument prototype would still apply. */
13841 #ifdef __cplusplus
13842 extern "C"
13843 #endif
13844 char EGifPutExtensionLast ();
13846 main ()
13848 return EGifPutExtensionLast ();
13850 return 0;
13852 _ACEOF
13853 if ac_fn_c_try_link "$LINENO"; then :
13854 ac_cv_lib_gif_EGifPutExtensionLast=yes
13855 else
13856 ac_cv_lib_gif_EGifPutExtensionLast=no
13858 rm -f core conftest.err conftest.$ac_objext \
13859 conftest$ac_exeext conftest.$ac_ext
13860 LIBS=$ac_check_lib_save_LIBS
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13863 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13864 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13865 HAVE_GIF=yes
13866 else
13867 HAVE_GIF=maybe
13874 if test "$HAVE_GIF" = yes; then
13875 LIBGIF=-lgif
13876 elif test "$HAVE_GIF" = maybe; then
13877 # If gif_lib.h but no libgif, try libungif.
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13879 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13880 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 ac_check_lib_save_LIBS=$LIBS
13884 LIBS="-lungif $LIBS"
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13888 /* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 char EGifPutExtensionLast ();
13896 main ()
13898 return EGifPutExtensionLast ();
13900 return 0;
13902 _ACEOF
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13905 else
13906 ac_cv_lib_ungif_EGifPutExtensionLast=no
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13913 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13914 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13915 HAVE_GIF=yes
13916 else
13917 HAVE_GIF=no
13920 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13923 if test "${HAVE_GIF}" = "yes"; then
13925 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13931 if test "${HAVE_X11}" = "yes"; then
13932 MISSING=""
13933 WITH_NO=""
13934 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13935 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13936 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13937 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13938 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13939 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13940 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13941 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13942 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13943 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13945 if test "X${MISSING}" != X; then
13946 as_fn_error "The following required libraries were not found:
13947 $MISSING
13948 Maybe some development libraries/packages are missing?
13949 If you don't want to link with them give
13950 $WITH_NO
13951 as options to configure" "$LINENO" 5
13955 ### Use -lgpm if available, unless `--with-gpm=no'.
13956 HAVE_GPM=no
13957 LIBGPM=
13958 if test "${with_gpm}" != "no"; then
13959 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13960 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13962 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13963 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 ac_check_lib_save_LIBS=$LIBS
13967 LIBS="-lgpm $LIBS"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char Gpm_Open ();
13979 main ()
13981 return Gpm_Open ();
13983 return 0;
13985 _ACEOF
13986 if ac_fn_c_try_link "$LINENO"; then :
13987 ac_cv_lib_gpm_Gpm_Open=yes
13988 else
13989 ac_cv_lib_gpm_Gpm_Open=no
13991 rm -f core conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 LIBS=$ac_check_lib_save_LIBS
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13996 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13997 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13998 HAVE_GPM=yes
14005 if test "${HAVE_GPM}" = "yes"; then
14007 $as_echo "#define HAVE_GPM 1" >>confdefs.h
14009 LIBGPM=-lgpm
14018 GNUSTEP_CFLAGS=
14019 ### Use NeXTstep API to implement GUI.
14020 if test "${HAVE_NS}" = "yes"; then
14022 $as_echo "#define HAVE_NS 1" >>confdefs.h
14024 if test "${NS_IMPL_COCOA}" = "yes"; then
14026 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
14029 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14031 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
14033 # See also .m.o rule in Makefile.in */
14034 # FIXME: are all these flags really needed? Document here why. */
14035 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
14036 ## Extra CFLAGS applied to src/*.m files.
14037 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"
14039 # We also have mouse menus.
14040 HAVE_MENUS=yes
14041 OTHER_FILES=ns-app
14044 if test "${HAVE_W32}" = "yes"; then
14045 HAVE_MENUS=yes
14048 ### Use session management (-lSM -lICE) if available
14049 HAVE_X_SM=no
14050 LIBXSM=
14051 if test "${HAVE_X11}" = "yes"; then
14052 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
14053 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
14055 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
14056 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
14057 $as_echo_n "(cached) " >&6
14058 else
14059 ac_check_lib_save_LIBS=$LIBS
14060 LIBS="-lSM -lICE $LIBS"
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14064 /* Override any GCC internal prototype to avoid an error.
14065 Use char because int might match the return type of a GCC
14066 builtin and then its argument prototype would still apply. */
14067 #ifdef __cplusplus
14068 extern "C"
14069 #endif
14070 char SmcOpenConnection ();
14072 main ()
14074 return SmcOpenConnection ();
14076 return 0;
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"; then :
14080 ac_cv_lib_SM_SmcOpenConnection=yes
14081 else
14082 ac_cv_lib_SM_SmcOpenConnection=no
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14086 LIBS=$ac_check_lib_save_LIBS
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14089 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14090 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
14091 HAVE_X_SM=yes
14098 if test "${HAVE_X_SM}" = "yes"; then
14100 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
14102 LIBXSM="-lSM -lICE"
14103 case "$LIBS" in
14104 *-lSM*) ;;
14105 *) LIBS="$LIBXSM $LIBS" ;;
14106 esac
14111 ### Use XRandr (-lXrandr) if available
14112 HAVE_XRANDR=no
14113 if test "${HAVE_X11}" = "yes"; then
14114 XRANDR_REQUIRED=1.2.2
14115 XRANDR_MODULES="xrandr >= $XRANDR_REQUIRED"
14117 succeeded=no
14119 if test "$PKG_CONFIG" = "no" ; then
14120 HAVE_XRANDR=no
14121 else
14122 PKG_CONFIG_MIN_VERSION=0.9.0
14123 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XRANDR_MODULES" >&5
14125 $as_echo_n "checking for $XRANDR_MODULES... " >&6; }
14127 if "$PKG_CONFIG" --exists "$XRANDR_MODULES" 2>&5 &&
14128 XRANDR_CFLAGS=`"$PKG_CONFIG" --cflags "$XRANDR_MODULES" 2>&5` &&
14129 XRANDR_LIBS=`"$PKG_CONFIG" --libs "$XRANDR_MODULES" 2>&5`; then
14130 edit_cflags="
14131 s,///*,/,g
14132 s/^/ /
14133 s/ -I/ $isystem/g
14134 s/^ //
14136 XRANDR_CFLAGS=`$as_echo "$XRANDR_CFLAGS" | sed -e "$edit_cflags"`
14137 XRANDR_LIBS=`$as_echo "$XRANDR_LIBS" | sed -e 's,///*,/,g'`
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&5
14139 $as_echo "yes CFLAGS='$XRANDR_CFLAGS' LIBS='$XRANDR_LIBS'" >&6; }
14140 succeeded=yes
14141 else
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143 $as_echo "no" >&6; }
14144 XRANDR_CFLAGS=""
14145 XRANDR_LIBS=""
14146 ## If we have a custom action on failure, don't print errors, but
14147 ## do set a variable so people can do so. Do it in a subshell
14148 ## to capture any diagnostics in invoking pkg-config.
14149 XRANDR_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XRANDR_MODULES") 2>&1`
14155 else
14156 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14157 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14161 if test $succeeded = yes; then
14162 HAVE_XRANDR=yes
14163 else
14164 HAVE_XRANDR=no
14167 if test $HAVE_XRANDR = no; then
14168 # Test old way in case pkg-config doesn't have it (older machines).
14169 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default"
14170 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then :
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRGetScreenResources in -lXrandr" >&5
14172 $as_echo_n "checking for XRRGetScreenResources in -lXrandr... " >&6; }
14173 if test "${ac_cv_lib_Xrandr_XRRGetScreenResources+set}" = set; then :
14174 $as_echo_n "(cached) " >&6
14175 else
14176 ac_check_lib_save_LIBS=$LIBS
14177 LIBS="-lXrandr $LIBS"
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14181 /* Override any GCC internal prototype to avoid an error.
14182 Use char because int might match the return type of a GCC
14183 builtin and then its argument prototype would still apply. */
14184 #ifdef __cplusplus
14185 extern "C"
14186 #endif
14187 char XRRGetScreenResources ();
14189 main ()
14191 return XRRGetScreenResources ();
14193 return 0;
14195 _ACEOF
14196 if ac_fn_c_try_link "$LINENO"; then :
14197 ac_cv_lib_Xrandr_XRRGetScreenResources=yes
14198 else
14199 ac_cv_lib_Xrandr_XRRGetScreenResources=no
14201 rm -f core conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
14203 LIBS=$ac_check_lib_save_LIBS
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRGetScreenResources" >&5
14206 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenResources" >&6; }
14207 if test "x$ac_cv_lib_Xrandr_XRRGetScreenResources" = x""yes; then :
14208 HAVE_XRANDR=yes
14214 if test $HAVE_XRANDR = yes; then
14215 XRANDR_LIBS=-lXrandr
14219 if test $HAVE_XRANDR = yes; then
14220 SAVE_CFLAGS="$CFLAGS"
14221 SAVE_LIBS="$LIBS"
14222 CFLAGS="$XRANDR_CFLAGS $CFLAGS"
14223 LIBS="$XRANDR_LIBS $LIBS"
14224 for ac_func in XRRGetOutputPrimary XRRGetScreenResourcesCurrent
14225 do :
14226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14228 eval as_val=\$$as_ac_var
14229 if test "x$as_val" = x""yes; then :
14230 cat >>confdefs.h <<_ACEOF
14231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14232 _ACEOF
14235 done
14237 CFLAGS="$SAVE_CFLAGS"
14238 LIBS="$SAVE_LIBS"
14241 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
14246 ### Use Xinerama (-lXinerama) if available
14247 HAVE_XINERAMA=no
14248 if test "${HAVE_X11}" = "yes"; then
14249 XINERAMA_REQUIRED=1.0.2
14250 XINERAMA_MODULES="xinerama >= $XINERAMA_REQUIRED"
14252 succeeded=no
14254 if test "$PKG_CONFIG" = "no" ; then
14255 HAVE_XINERAMA=no
14256 else
14257 PKG_CONFIG_MIN_VERSION=0.9.0
14258 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $XINERAMA_MODULES" >&5
14260 $as_echo_n "checking for $XINERAMA_MODULES... " >&6; }
14262 if "$PKG_CONFIG" --exists "$XINERAMA_MODULES" 2>&5 &&
14263 XINERAMA_CFLAGS=`"$PKG_CONFIG" --cflags "$XINERAMA_MODULES" 2>&5` &&
14264 XINERAMA_LIBS=`"$PKG_CONFIG" --libs "$XINERAMA_MODULES" 2>&5`; then
14265 edit_cflags="
14266 s,///*,/,g
14267 s/^/ /
14268 s/ -I/ $isystem/g
14269 s/^ //
14271 XINERAMA_CFLAGS=`$as_echo "$XINERAMA_CFLAGS" | sed -e "$edit_cflags"`
14272 XINERAMA_LIBS=`$as_echo "$XINERAMA_LIBS" | sed -e 's,///*,/,g'`
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&5
14274 $as_echo "yes CFLAGS='$XINERAMA_CFLAGS' LIBS='$XINERAMA_LIBS'" >&6; }
14275 succeeded=yes
14276 else
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14278 $as_echo "no" >&6; }
14279 XINERAMA_CFLAGS=""
14280 XINERAMA_LIBS=""
14281 ## If we have a custom action on failure, don't print errors, but
14282 ## do set a variable so people can do so. Do it in a subshell
14283 ## to capture any diagnostics in invoking pkg-config.
14284 XINERAMA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$XINERAMA_MODULES") 2>&1`
14290 else
14291 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14292 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14296 if test $succeeded = yes; then
14297 HAVE_XINERAMA=yes
14298 else
14299 HAVE_XINERAMA=no
14302 if test $HAVE_XINERAMA = no; then
14303 # Test old way in case pkg-config doesn't have it (older machines).
14304 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "$ac_includes_default"
14305 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then :
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
14307 $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
14308 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-lXinerama $LIBS"
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14316 /* Override any GCC internal prototype to avoid an error.
14317 Use char because int might match the return type of a GCC
14318 builtin and then its argument prototype would still apply. */
14319 #ifdef __cplusplus
14320 extern "C"
14321 #endif
14322 char XineramaQueryExtension ();
14324 main ()
14326 return XineramaQueryExtension ();
14328 return 0;
14330 _ACEOF
14331 if ac_fn_c_try_link "$LINENO"; then :
14332 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
14333 else
14334 ac_cv_lib_Xinerama_XineramaQueryExtension=no
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14338 LIBS=$ac_check_lib_save_LIBS
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
14341 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
14342 if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = x""yes; then :
14343 HAVE_XINERAMA=yes
14349 if test $HAVE_XINERAMA = yes; then
14350 XINERAMA_LIBS=-lXinerama
14354 if test $HAVE_XINERAMA = yes; then
14356 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h
14362 ### Use libxml (-lxml2) if available
14363 ### mingw32 doesn't use -lxml2, since it loads the library dynamically.
14364 HAVE_LIBXML2=no
14365 if test "${with_xml2}" != "no"; then
14366 ### I'm not sure what the version number should be, so I just guessed.
14368 succeeded=no
14370 if test "$PKG_CONFIG" = "no" ; then
14371 HAVE_LIBXML2=no
14372 else
14373 PKG_CONFIG_MIN_VERSION=0.9.0
14374 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
14376 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
14378 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
14379 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
14380 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
14381 edit_cflags="
14382 s,///*,/,g
14383 s/^/ /
14384 s/ -I/ $isystem/g
14385 s/^ //
14387 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
14388 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
14390 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
14391 succeeded=yes
14392 else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14394 $as_echo "no" >&6; }
14395 LIBXML2_CFLAGS=""
14396 LIBXML2_LIBS=""
14397 ## If we have a custom action on failure, don't print errors, but
14398 ## do set a variable so people can do so. Do it in a subshell
14399 ## to capture any diagnostics in invoking pkg-config.
14400 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
14406 else
14407 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14408 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14412 if test $succeeded = yes; then
14413 HAVE_LIBXML2=yes
14414 else
14415 HAVE_LIBXML2=no
14418 # Built-in libxml2 on OS X 10.8 lacks libxml-2.0.pc.
14419 if test "${HAVE_LIBXML2}" != "yes" -a "$opsys" = "darwin"; then
14420 SAVE_CPPFLAGS="$CPPFLAGS"
14421 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
14422 ac_fn_c_check_header_mongrel "$LINENO" "libxml/HTMLparser.h" "ac_cv_header_libxml_HTMLparser_h" "$ac_includes_default"
14423 if test "x$ac_cv_header_libxml_HTMLparser_h" = x""yes; then :
14424 ac_fn_c_check_decl "$LINENO" "HTML_PARSE_RECOVER" "ac_cv_have_decl_HTML_PARSE_RECOVER" "#include <libxml/HTMLparser.h>
14426 if test "x$ac_cv_have_decl_HTML_PARSE_RECOVER" = x""yes; then :
14427 HAVE_LIBXML2=yes
14433 CPPFLAGS="$SAVE_CPPFLAGS"
14434 if test "${HAVE_LIBXML2}" = "yes"; then
14435 LIBXML2_LIBS="-lxml2"
14436 LIBXML2_CFLAGS="-I/usr/include/libxml2"
14439 if test "${HAVE_LIBXML2}" = "yes"; then
14440 if test "${opsys}" != "mingw32"; then
14441 LIBS="$LIBXML2_LIBS $LIBS"
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
14443 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
14444 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-lxml2 $LIBS"
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14452 /* Override any GCC internal prototype to avoid an error.
14453 Use char because int might match the return type of a GCC
14454 builtin and then its argument prototype would still apply. */
14455 #ifdef __cplusplus
14456 extern "C"
14457 #endif
14458 char htmlReadMemory ();
14460 main ()
14462 return htmlReadMemory ();
14464 return 0;
14466 _ACEOF
14467 if ac_fn_c_try_link "$LINENO"; then :
14468 ac_cv_lib_xml2_htmlReadMemory=yes
14469 else
14470 ac_cv_lib_xml2_htmlReadMemory=no
14472 rm -f core conftest.err conftest.$ac_objext \
14473 conftest$ac_exeext conftest.$ac_ext
14474 LIBS=$ac_check_lib_save_LIBS
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
14477 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
14478 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
14479 HAVE_LIBXML2=yes
14480 else
14481 HAVE_LIBXML2=no
14484 else
14485 LIBXML2_LIBS=""
14487 if test "${HAVE_LIBXML2}" = "yes"; then
14489 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
14491 else
14492 LIBXML2_LIBS=""
14493 LIBXML2_CFLAGS=""
14500 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14501 # On MinGW, that is provided by nt/inc/sys/socket.h and w32.c.
14502 if test "${opsys}" = "mingw32"; then
14503 emacs_cv_netdb_declares_h_errno=yes
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
14506 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
14507 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
14508 $as_echo_n "(cached) " >&6
14509 else
14510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14512 #include <netdb.h>
14514 main ()
14516 return h_errno;
14518 return 0;
14520 _ACEOF
14521 if ac_fn_c_try_link "$LINENO"; then :
14522 emacs_cv_netdb_declares_h_errno=yes
14523 else
14524 emacs_cv_netdb_declares_h_errno=no
14526 rm -f core conftest.err conftest.$ac_objext \
14527 conftest$ac_exeext conftest.$ac_ext
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
14530 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
14531 if test $emacs_cv_netdb_declares_h_errno = yes; then
14533 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
14537 # sqrt and other floating-point functions such as fmod and frexp
14538 # are found in -lm on most systems, but mingw32 doesn't use -lm.
14539 if test "${opsys}" != "mingw32"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14541 $as_echo_n "checking for sqrt in -lm... " >&6; }
14542 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14545 ac_check_lib_save_LIBS=$LIBS
14546 LIBS="-lm $LIBS"
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14550 /* Override any GCC internal prototype to avoid an error.
14551 Use char because int might match the return type of a GCC
14552 builtin and then its argument prototype would still apply. */
14553 #ifdef __cplusplus
14554 extern "C"
14555 #endif
14556 char sqrt ();
14558 main ()
14560 return sqrt ();
14562 return 0;
14564 _ACEOF
14565 if ac_fn_c_try_link "$LINENO"; then :
14566 ac_cv_lib_m_sqrt=yes
14567 else
14568 ac_cv_lib_m_sqrt=no
14570 rm -f core conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14572 LIBS=$ac_check_lib_save_LIBS
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14575 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14576 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14577 cat >>confdefs.h <<_ACEOF
14578 #define HAVE_LIBM 1
14579 _ACEOF
14581 LIBS="-lm $LIBS"
14587 # Check for mail-locking functions in a "mail" library. Probably this should
14588 # have the same check as for liblockfile below.
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
14590 $as_echo_n "checking for maillock in -lmail... " >&6; }
14591 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 ac_check_lib_save_LIBS=$LIBS
14595 LIBS="-lmail $LIBS"
14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h. */
14599 /* Override any GCC internal prototype to avoid an error.
14600 Use char because int might match the return type of a GCC
14601 builtin and then its argument prototype would still apply. */
14602 #ifdef __cplusplus
14603 extern "C"
14604 #endif
14605 char maillock ();
14607 main ()
14609 return maillock ();
14611 return 0;
14613 _ACEOF
14614 if ac_fn_c_try_link "$LINENO"; then :
14615 ac_cv_lib_mail_maillock=yes
14616 else
14617 ac_cv_lib_mail_maillock=no
14619 rm -f core conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
14621 LIBS=$ac_check_lib_save_LIBS
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
14624 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
14625 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
14626 have_mail=yes
14627 else
14628 have_mail=no
14631 if test $have_mail = yes; then
14632 LIBS_MAIL=-lmail
14633 LIBS="$LIBS_MAIL $LIBS"
14635 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
14637 else
14638 LIBS_MAIL=
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
14641 $as_echo_n "checking for maillock in -llockfile... " >&6; }
14642 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
14643 $as_echo_n "(cached) " >&6
14644 else
14645 ac_check_lib_save_LIBS=$LIBS
14646 LIBS="-llockfile $LIBS"
14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h. */
14650 /* Override any GCC internal prototype to avoid an error.
14651 Use char because int might match the return type of a GCC
14652 builtin and then its argument prototype would still apply. */
14653 #ifdef __cplusplus
14654 extern "C"
14655 #endif
14656 char maillock ();
14658 main ()
14660 return maillock ();
14662 return 0;
14664 _ACEOF
14665 if ac_fn_c_try_link "$LINENO"; then :
14666 ac_cv_lib_lockfile_maillock=yes
14667 else
14668 ac_cv_lib_lockfile_maillock=no
14670 rm -f core conftest.err conftest.$ac_objext \
14671 conftest$ac_exeext conftest.$ac_ext
14672 LIBS=$ac_check_lib_save_LIBS
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
14675 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
14676 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
14677 have_lockfile=yes
14678 else
14679 have_lockfile=no
14682 if test $have_lockfile = yes; then
14683 LIBS_MAIL=-llockfile
14684 LIBS="$LIBS_MAIL $LIBS"
14686 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
14688 else
14689 # If we have the shared liblockfile, assume we must use it for mail
14690 # locking (e.g. Debian). If we couldn't link against liblockfile
14691 # (no liblockfile.a installed), ensure that we don't need to.
14692 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14693 set dummy liblockfile.so; ac_word=$2
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14695 $as_echo_n "checking for $ac_word... " >&6; }
14696 if test "${ac_cv_prog_liblockfile+set}" = set; then :
14697 $as_echo_n "(cached) " >&6
14698 else
14699 if test -n "$liblockfile"; then
14700 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14701 else
14702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14703 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14704 for as_dir in $as_dummy
14706 IFS=$as_save_IFS
14707 test -z "$as_dir" && as_dir=.
14708 for ac_exec_ext in '' $ac_executable_extensions; do
14709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14710 ac_cv_prog_liblockfile="yes"
14711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14712 break 2
14714 done
14715 done
14716 IFS=$as_save_IFS
14718 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14721 liblockfile=$ac_cv_prog_liblockfile
14722 if test -n "$liblockfile"; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
14724 $as_echo "$liblockfile" >&6; }
14725 else
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14727 $as_echo "no" >&6; }
14731 if test $ac_cv_prog_liblockfile = yes; then
14732 as_fn_error "Shared liblockfile found but can't link against it.
14733 This probably means that movemail could lose mail.
14734 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
14742 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
14743 ## interlock access to the mail spool. The alternative is a lock file named
14744 ## /usr/spool/mail/$USER.lock.
14745 mail_lock=no
14746 case "$opsys" in
14747 aix4-2) mail_lock="lockf" ;;
14749 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
14751 ## On GNU/Linux systems, both methods are used by various mail programs.
14752 ## I assume most people are using newer mailers that have heard of flock.
14753 ## Change this if you need to.
14754 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
14755 ## configure gets the right answers, and that means *NOT* using flock.
14756 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
14757 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
14758 ## Debian maintainer hasn't provided a clean fix for Emacs.
14759 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
14760 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
14761 ## correct logic. -- fx
14762 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
14763 ## liblockfile is a Free Software replacement for libmail, used on
14764 ## Debian systems and elsewhere. -rfr.
14765 gnu-*)
14766 mail_lock="flock"
14767 if test $have_mail = yes || test $have_lockfile = yes; then
14768 test $ac_cv_header_maillock_h = yes && mail_lock=no
14772 mingw32)
14773 mail_lock="none-needed" ;;
14774 esac
14776 BLESSMAIL_TARGET=
14777 case "$mail_lock" in
14778 flock)
14779 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
14782 lockf)
14783 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
14786 none-needed) ;;
14788 *) BLESSMAIL_TARGET="need-blessmail" ;;
14789 esac
14793 for ac_func in accept4 gethostname \
14794 getrusage get_current_dir_name \
14795 lrand48 \
14796 select getpagesize setlocale \
14797 getrlimit setrlimit shutdown getaddrinfo \
14798 strsignal setitimer \
14799 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
14800 gai_strerror getline getdelim sync \
14801 difftime posix_memalign \
14802 getpwent endpwent getgrent endgrent \
14803 touchlock \
14804 cfmakeraw cfsetspeed copysign __executable_start log2
14805 do :
14806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14808 eval as_val=\$$as_ac_var
14809 if test "x$as_val" = x""yes; then :
14810 cat >>confdefs.h <<_ACEOF
14811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14812 _ACEOF
14815 done
14818 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
14819 ## has a broken `rint' in some library versions including math library
14820 ## version number A.09.05.
14821 ## You can fix the math library by installing patch number PHSS_4630.
14822 ## But we can fix it more reliably for Emacs by just not using rint.
14823 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
14824 case $opsys in
14825 hpux*) : ;;
14826 *) for ac_func in random rint
14827 do :
14828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14830 eval as_val=\$$as_ac_var
14831 if test "x$as_val" = x""yes; then :
14832 cat >>confdefs.h <<_ACEOF
14833 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14834 _ACEOF
14837 done
14839 esac
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
14842 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
14843 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14850 main ()
14852 __builtin_unwind_init ();
14854 return 0;
14856 _ACEOF
14857 if ac_fn_c_try_link "$LINENO"; then :
14858 emacs_cv_func___builtin_unwind_init=yes
14859 else
14860 emacs_cv_func___builtin_unwind_init=no
14862 rm -f core conftest.err conftest.$ac_objext \
14863 conftest$ac_exeext conftest.$ac_ext
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
14866 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
14867 if test $emacs_cv_func___builtin_unwind_init = yes; then
14869 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14878 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14879 if test "${ac_cv_sys_largefile_source+set}" = set; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882 while :; do
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885 #include <sys/types.h> /* for off_t */
14886 #include <stdio.h>
14888 main ()
14890 int (*fp) (FILE *, off_t, int) = fseeko;
14891 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14893 return 0;
14895 _ACEOF
14896 if ac_fn_c_try_link "$LINENO"; then :
14897 ac_cv_sys_largefile_source=no; break
14899 rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14903 #define _LARGEFILE_SOURCE 1
14904 #include <sys/types.h> /* for off_t */
14905 #include <stdio.h>
14907 main ()
14909 int (*fp) (FILE *, off_t, int) = fseeko;
14910 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14912 return 0;
14914 _ACEOF
14915 if ac_fn_c_try_link "$LINENO"; then :
14916 ac_cv_sys_largefile_source=1; break
14918 rm -f core conftest.err conftest.$ac_objext \
14919 conftest$ac_exeext conftest.$ac_ext
14920 ac_cv_sys_largefile_source=unknown
14921 break
14922 done
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14925 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14926 case $ac_cv_sys_largefile_source in #(
14927 no | unknown) ;;
14929 cat >>confdefs.h <<_ACEOF
14930 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14931 _ACEOF
14933 esac
14934 rm -rf conftest*
14936 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14937 # in glibc 2.1.3, but that breaks too many other things.
14938 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14939 if test $ac_cv_sys_largefile_source != unknown; then
14941 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14946 # UNIX98 PTYs.
14947 for ac_func in grantpt
14948 do :
14949 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14950 if test "x$ac_cv_func_grantpt" = x""yes; then :
14951 cat >>confdefs.h <<_ACEOF
14952 #define HAVE_GRANTPT 1
14953 _ACEOF
14956 done
14959 # PTY-related GNU extensions.
14960 for ac_func in getpt posix_openpt
14961 do :
14962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14963 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14964 eval as_val=\$$as_ac_var
14965 if test "x$as_val" = x""yes; then :
14966 cat >>confdefs.h <<_ACEOF
14967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14968 _ACEOF
14971 done
14974 # Check this now, so that we will NOT find the above functions in ncurses.
14975 # That is because we have not set up to link ncurses in lib-src.
14976 # It's better to believe a function is not available
14977 # than to expect to find it in ncurses.
14978 # Also we need tputs and friends to be able to build at all.
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14980 $as_echo_n "checking for library containing tputs... " >&6; }
14981 # Run a test program that contains a call to tputs, a call that is
14982 # never executed. This tests whether a pre-'main' dynamic linker
14983 # works with the library. It's too much trouble to actually call
14984 # tputs in the test program, due to portability hassles. When
14985 # cross-compiling, assume the test program will run if it links.
14987 if test "${opsys}" = "mingw32"; then
14988 msg='none required'
14989 else
14990 # Maybe curses should be tried earlier?
14991 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14992 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14993 OLIBS=$LIBS
14994 if test -z "$tputs_library"; then
14995 LIBS_TERMCAP=
14996 msg='none required'
14997 else
14998 LIBS_TERMCAP=-l$tputs_library
14999 msg=$LIBS_TERMCAP
15000 LIBS="$LIBS_TERMCAP $LIBS"
15002 if test "$cross_compiling" = yes; then :
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15006 extern void tputs (const char *, int, int (*)(int));
15007 int main (int argc, char **argv)
15009 if (argc == 10000)
15010 tputs (argv[0], 0, 0);
15011 return 0;
15014 _ACEOF
15015 if ac_fn_c_try_link "$LINENO"; then :
15017 else
15018 msg=no
15020 rm -f core conftest.err conftest.$ac_objext \
15021 conftest$ac_exeext conftest.$ac_ext
15022 else
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15026 extern void tputs (const char *, int, int (*)(int));
15027 int main (int argc, char **argv)
15029 if (argc == 10000)
15030 tputs (argv[0], 0, 0);
15031 return 0;
15034 _ACEOF
15035 if ac_fn_c_try_run "$LINENO"; then :
15037 else
15038 msg=no
15040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15041 conftest.$ac_objext conftest.beam conftest.$ac_ext
15044 LIBS=$OLIBS
15045 if test "X$msg" != Xno; then
15046 break
15048 done
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
15051 $as_echo "$msg" >&6; }
15052 if test "X$msg" = Xno; then
15053 as_fn_error "The required function \`tputs' was not found in any library.
15054 The following libraries were tried (in order):
15055 libtinfo, libncurses, libterminfo, libtermcap, libcurses
15056 Please try installing whichever of these libraries is most appropriate
15057 for your system, together with its header files.
15058 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
15061 ## Use termcap instead of terminfo?
15062 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
15063 TERMINFO=yes
15064 ## FIXME? In the cases below where we unconditionally set
15065 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
15066 ## if that was found above to have tputs.
15067 ## Should we use the gnu* logic everywhere?
15068 case "$opsys" in
15069 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15070 ## The ncurses library has been moved out of the System framework in
15071 ## Mac OS X 10.2. So if configure detects it, set the command-line
15072 ## option to use it.
15073 darwin) LIBS_TERMCAP="-lncurses" ;;
15075 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
15077 freebsd)
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15079 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15080 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085 #include <osreldate.h>
15087 main ()
15089 #if __FreeBSD_version < 400000
15090 fail;
15091 #endif
15094 return 0;
15096 _ACEOF
15097 if ac_fn_c_try_link "$LINENO"; then :
15098 emacs_cv_freebsd_terminfo=yes
15099 else
15100 emacs_cv_freebsd_terminfo=no
15102 rm -f core conftest.err conftest.$ac_objext \
15103 conftest$ac_exeext conftest.$ac_ext
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15108 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15110 if test $emacs_cv_freebsd_terminfo = yes; then
15111 LIBS_TERMCAP="-lncurses"
15112 else
15113 TERMINFO=no
15114 LIBS_TERMCAP="-ltermcap"
15118 mingw32)
15119 TERMINFO=no
15120 LIBS_TERMCAP=
15123 netbsd)
15124 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
15125 TERMINFO=no
15126 LIBS_TERMCAP="-ltermcap"
15130 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
15132 ## hpux: Make sure we get select from libc rather than from libcurses
15133 ## because libcurses on HPUX 10.10 has a broken version of select.
15134 ## We used to use -lc -lcurses, but this may be cleaner.
15135 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
15136 # set that way, now it uses the default). Isn't this a contradiction?
15137 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15139 esac
15141 TERMCAP_OBJ=tparam.o
15142 if test $TERMINFO = yes; then
15144 $as_echo "#define TERMINFO 1" >>confdefs.h
15146 TERMCAP_OBJ=terminfo.o
15148 if test "X$LIBS_TERMCAP" = "X-lncurses"; then
15150 $as_echo "#define USE_NCURSES 1" >>confdefs.h
15157 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15158 # On Darwin, res_init appears not to be useful: see bug#562 and
15159 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
15160 resolv=no
15162 if test $opsys != darwin; then
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #include <netinet/in.h>
15167 #include <arpa/nameser.h>
15168 #include <resolv.h>
15170 main ()
15172 return res_init();
15174 return 0;
15176 _ACEOF
15177 if ac_fn_c_try_link "$LINENO"; then :
15178 have_res_init=yes
15179 else
15180 have_res_init=no
15182 rm -f core conftest.err conftest.$ac_objext \
15183 conftest$ac_exeext conftest.$ac_ext
15184 if test "$have_res_init" = no; then
15185 OLIBS="$LIBS"
15186 LIBS="$LIBS -lresolv"
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15188 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191 #include <netinet/in.h>
15192 #include <arpa/nameser.h>
15193 #include <resolv.h>
15195 main ()
15197 return res_init();
15199 return 0;
15201 _ACEOF
15202 if ac_fn_c_try_link "$LINENO"; then :
15203 have_res_init=yes
15204 else
15205 have_res_init=no
15207 rm -f core conftest.err conftest.$ac_objext \
15208 conftest$ac_exeext conftest.$ac_ext
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15210 $as_echo "$have_res_init" >&6; }
15211 if test "$have_res_init" = yes ; then
15212 resolv=yes
15214 LIBS="$OLIBS"
15217 if test "$have_res_init" = yes; then
15219 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15223 # Do we need the Hesiod library to provide the support routines?
15224 LIBHESIOD=
15225 if test "$with_hesiod" != no ; then
15226 # Don't set $LIBS here -- see comments above. FIXME which comments?
15227 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15228 if test "x$ac_cv_func_res_send" = x""yes; then :
15230 else
15231 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15232 if test "x$ac_cv_func___res_send" = x""yes; then :
15234 else
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15236 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15237 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
15238 $as_echo_n "(cached) " >&6
15239 else
15240 ac_check_lib_save_LIBS=$LIBS
15241 LIBS="-lresolv $LIBS"
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15245 /* Override any GCC internal prototype to avoid an error.
15246 Use char because int might match the return type of a GCC
15247 builtin and then its argument prototype would still apply. */
15248 #ifdef __cplusplus
15249 extern "C"
15250 #endif
15251 char res_send ();
15253 main ()
15255 return res_send ();
15257 return 0;
15259 _ACEOF
15260 if ac_fn_c_try_link "$LINENO"; then :
15261 ac_cv_lib_resolv_res_send=yes
15262 else
15263 ac_cv_lib_resolv_res_send=no
15265 rm -f core conftest.err conftest.$ac_objext \
15266 conftest$ac_exeext conftest.$ac_ext
15267 LIBS=$ac_check_lib_save_LIBS
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15270 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15271 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
15272 resolv=yes
15273 else
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15275 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15276 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
15277 $as_echo_n "(cached) " >&6
15278 else
15279 ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lresolv $LIBS"
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15284 /* Override any GCC internal prototype to avoid an error.
15285 Use char because int might match the return type of a GCC
15286 builtin and then its argument prototype would still apply. */
15287 #ifdef __cplusplus
15288 extern "C"
15289 #endif
15290 char __res_send ();
15292 main ()
15294 return __res_send ();
15296 return 0;
15298 _ACEOF
15299 if ac_fn_c_try_link "$LINENO"; then :
15300 ac_cv_lib_resolv___res_send=yes
15301 else
15302 ac_cv_lib_resolv___res_send=no
15304 rm -f core conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15306 LIBS=$ac_check_lib_save_LIBS
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15309 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15310 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
15311 resolv=yes
15320 if test "$resolv" = yes ; then
15321 RESOLVLIB=-lresolv
15322 else
15323 RESOLVLIB=
15325 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15326 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
15328 else
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15330 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15331 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
15332 $as_echo_n "(cached) " >&6
15333 else
15334 ac_check_lib_save_LIBS=$LIBS
15335 LIBS="-lhesiod $RESOLVLIB $LIBS"
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15339 /* Override any GCC internal prototype to avoid an error.
15340 Use char because int might match the return type of a GCC
15341 builtin and then its argument prototype would still apply. */
15342 #ifdef __cplusplus
15343 extern "C"
15344 #endif
15345 char hes_getmailhost ();
15347 main ()
15349 return hes_getmailhost ();
15351 return 0;
15353 _ACEOF
15354 if ac_fn_c_try_link "$LINENO"; then :
15355 ac_cv_lib_hesiod_hes_getmailhost=yes
15356 else
15357 ac_cv_lib_hesiod_hes_getmailhost=no
15359 rm -f core conftest.err conftest.$ac_objext \
15360 conftest$ac_exeext conftest.$ac_ext
15361 LIBS=$ac_check_lib_save_LIBS
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15364 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15365 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
15366 hesiod=yes
15367 else
15374 if test x"$hesiod" = xyes; then
15375 LIBHESIOD=-lhesiod
15380 # Do we need libresolv (due to res_init or Hesiod)?
15381 if test "$resolv" = yes && test $opsys != darwin; then
15382 LIBRESOLV=-lresolv
15383 else
15384 LIBRESOLV=
15388 # These tell us which Kerberos-related libraries to use.
15389 COM_ERRLIB=
15390 CRYPTOLIB=
15391 KRB5LIB=
15392 DESLIB=
15393 KRB4LIB=
15395 if test "${with_kerberos}" != no; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15397 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15398 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
15399 $as_echo_n "(cached) " >&6
15400 else
15401 ac_check_lib_save_LIBS=$LIBS
15402 LIBS="-lcom_err $LIBS"
15403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15406 /* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15409 #ifdef __cplusplus
15410 extern "C"
15411 #endif
15412 char com_err ();
15414 main ()
15416 return com_err ();
15418 return 0;
15420 _ACEOF
15421 if ac_fn_c_try_link "$LINENO"; then :
15422 ac_cv_lib_com_err_com_err=yes
15423 else
15424 ac_cv_lib_com_err_com_err=no
15426 rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 LIBS=$ac_check_lib_save_LIBS
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15431 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15432 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
15433 have_com_err=yes
15434 else
15435 have_com_err=no
15438 if test $have_com_err = yes; then
15439 COM_ERRLIB=-lcom_err
15440 LIBS="$COM_ERRLIB $LIBS"
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15443 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15444 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 ac_check_lib_save_LIBS=$LIBS
15448 LIBS="-lcrypto $LIBS"
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15452 /* Override any GCC internal prototype to avoid an error.
15453 Use char because int might match the return type of a GCC
15454 builtin and then its argument prototype would still apply. */
15455 #ifdef __cplusplus
15456 extern "C"
15457 #endif
15458 char mit_des_cbc_encrypt ();
15460 main ()
15462 return mit_des_cbc_encrypt ();
15464 return 0;
15466 _ACEOF
15467 if ac_fn_c_try_link "$LINENO"; then :
15468 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
15469 else
15470 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15474 LIBS=$ac_check_lib_save_LIBS
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
15477 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
15478 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
15479 have_crypto=yes
15480 else
15481 have_crypto=no
15484 if test $have_crypto = yes; then
15485 CRYPTOLIB=-lcrypto
15486 LIBS="$CRYPTOLIB $LIBS"
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
15489 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
15490 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
15491 $as_echo_n "(cached) " >&6
15492 else
15493 ac_check_lib_save_LIBS=$LIBS
15494 LIBS="-lk5crypto $LIBS"
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15498 /* Override any GCC internal prototype to avoid an error.
15499 Use char because int might match the return type of a GCC
15500 builtin and then its argument prototype would still apply. */
15501 #ifdef __cplusplus
15502 extern "C"
15503 #endif
15504 char mit_des_cbc_encrypt ();
15506 main ()
15508 return mit_des_cbc_encrypt ();
15510 return 0;
15512 _ACEOF
15513 if ac_fn_c_try_link "$LINENO"; then :
15514 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
15515 else
15516 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
15518 rm -f core conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15520 LIBS=$ac_check_lib_save_LIBS
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
15523 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
15524 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
15525 have_k5crypto=yes
15526 else
15527 have_k5crypto=no
15530 if test $have_k5crypto = yes; then
15531 CRYPTOLIB=-lk5crypto
15532 LIBS="$CRYPTOLIB $LIBS"
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15535 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15536 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
15537 $as_echo_n "(cached) " >&6
15538 else
15539 ac_check_lib_save_LIBS=$LIBS
15540 LIBS="-lkrb5 $LIBS"
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15544 /* Override any GCC internal prototype to avoid an error.
15545 Use char because int might match the return type of a GCC
15546 builtin and then its argument prototype would still apply. */
15547 #ifdef __cplusplus
15548 extern "C"
15549 #endif
15550 char krb5_init_context ();
15552 main ()
15554 return krb5_init_context ();
15556 return 0;
15558 _ACEOF
15559 if ac_fn_c_try_link "$LINENO"; then :
15560 ac_cv_lib_krb5_krb5_init_context=yes
15561 else
15562 ac_cv_lib_krb5_krb5_init_context=no
15564 rm -f core conftest.err conftest.$ac_objext \
15565 conftest$ac_exeext conftest.$ac_ext
15566 LIBS=$ac_check_lib_save_LIBS
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15569 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15570 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
15571 have_krb5=yes
15572 else
15573 have_krb5=no
15576 if test $have_krb5=yes; then
15577 KRB5LIB=-lkrb5
15578 LIBS="$KRB5LIB $LIBS"
15580 if test "${with_kerberos5}" = no; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
15582 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
15583 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 ac_check_lib_save_LIBS=$LIBS
15587 LIBS="-ldes425 $LIBS"
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15591 /* Override any GCC internal prototype to avoid an error.
15592 Use char because int might match the return type of a GCC
15593 builtin and then its argument prototype would still apply. */
15594 #ifdef __cplusplus
15595 extern "C"
15596 #endif
15597 char des_cbc_encrypt ();
15599 main ()
15601 return des_cbc_encrypt ();
15603 return 0;
15605 _ACEOF
15606 if ac_fn_c_try_link "$LINENO"; then :
15607 ac_cv_lib_des425_des_cbc_encrypt=yes
15608 else
15609 ac_cv_lib_des425_des_cbc_encrypt=no
15611 rm -f core conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
15616 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
15617 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
15618 have_des425=yes
15619 else
15620 have_des425=no
15623 if test $have_des425 = yes; then
15624 DESLIB=-ldes425
15625 LIBS="$DESLIB $LIBS"
15626 else
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
15628 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
15629 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 ac_check_lib_save_LIBS=$LIBS
15633 LIBS="-ldes $LIBS"
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15640 #ifdef __cplusplus
15641 extern "C"
15642 #endif
15643 char des_cbc_encrypt ();
15645 main ()
15647 return des_cbc_encrypt ();
15649 return 0;
15651 _ACEOF
15652 if ac_fn_c_try_link "$LINENO"; then :
15653 ac_cv_lib_des_des_cbc_encrypt=yes
15654 else
15655 ac_cv_lib_des_des_cbc_encrypt=no
15657 rm -f core conftest.err conftest.$ac_objext \
15658 conftest$ac_exeext conftest.$ac_ext
15659 LIBS=$ac_check_lib_save_LIBS
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
15662 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
15663 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
15664 have_des=yes
15665 else
15666 have_des=no
15669 if test $have_des = yes; then
15670 DESLIB=-ldes
15671 LIBS="$DESLIB $LIBS"
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
15675 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
15676 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
15677 $as_echo_n "(cached) " >&6
15678 else
15679 ac_check_lib_save_LIBS=$LIBS
15680 LIBS="-lkrb4 $LIBS"
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15687 #ifdef __cplusplus
15688 extern "C"
15689 #endif
15690 char krb_get_cred ();
15692 main ()
15694 return krb_get_cred ();
15696 return 0;
15698 _ACEOF
15699 if ac_fn_c_try_link "$LINENO"; then :
15700 ac_cv_lib_krb4_krb_get_cred=yes
15701 else
15702 ac_cv_lib_krb4_krb_get_cred=no
15704 rm -f core conftest.err conftest.$ac_objext \
15705 conftest$ac_exeext conftest.$ac_ext
15706 LIBS=$ac_check_lib_save_LIBS
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
15709 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
15710 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
15711 have_krb4=yes
15712 else
15713 have_krb4=no
15716 if test $have_krb4 = yes; then
15717 KRB4LIB=-lkrb4
15718 LIBS="$KRB4LIB $LIBS"
15719 else
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
15721 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
15722 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15724 else
15725 ac_check_lib_save_LIBS=$LIBS
15726 LIBS="-lkrb $LIBS"
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15730 /* Override any GCC internal prototype to avoid an error.
15731 Use char because int might match the return type of a GCC
15732 builtin and then its argument prototype would still apply. */
15733 #ifdef __cplusplus
15734 extern "C"
15735 #endif
15736 char krb_get_cred ();
15738 main ()
15740 return krb_get_cred ();
15742 return 0;
15744 _ACEOF
15745 if ac_fn_c_try_link "$LINENO"; then :
15746 ac_cv_lib_krb_krb_get_cred=yes
15747 else
15748 ac_cv_lib_krb_krb_get_cred=no
15750 rm -f core conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
15752 LIBS=$ac_check_lib_save_LIBS
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
15755 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
15756 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
15757 have_krb=yes
15758 else
15759 have_krb=no
15762 if test $have_krb = yes; then
15763 KRB4LIB=-lkrb
15764 LIBS="$KRB4LIB $LIBS"
15769 if test "${with_kerberos5}" != no; then
15770 for ac_header in krb5.h
15771 do :
15772 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
15773 if test "x$ac_cv_header_krb5_h" = x""yes; then :
15774 cat >>confdefs.h <<_ACEOF
15775 #define HAVE_KRB5_H 1
15776 _ACEOF
15777 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
15779 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
15781 cat >>confdefs.h <<_ACEOF
15782 #define HAVE_KRB5_ERROR_TEXT 1
15783 _ACEOF
15787 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
15789 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
15791 cat >>confdefs.h <<_ACEOF
15792 #define HAVE_KRB5_ERROR_E_TEXT 1
15793 _ACEOF
15800 done
15802 else
15803 for ac_header in krb.h
15804 do :
15805 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
15806 if test "x$ac_cv_header_krb_h" = x""yes; then :
15807 cat >>confdefs.h <<_ACEOF
15808 #define HAVE_KRB_H 1
15809 _ACEOF
15811 else
15812 for ac_header in kerberosIV/krb.h
15813 do :
15814 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
15815 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
15816 cat >>confdefs.h <<_ACEOF
15817 #define HAVE_KERBEROSIV_KRB_H 1
15818 _ACEOF
15820 else
15821 for ac_header in kerberos/krb.h
15822 do :
15823 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
15824 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
15825 cat >>confdefs.h <<_ACEOF
15826 #define HAVE_KERBEROS_KRB_H 1
15827 _ACEOF
15831 done
15835 done
15839 done
15842 for ac_header in com_err.h
15843 do :
15844 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
15845 if test "x$ac_cv_header_com_err_h" = x""yes; then :
15846 cat >>confdefs.h <<_ACEOF
15847 #define HAVE_COM_ERR_H 1
15848 _ACEOF
15852 done
15865 for ac_func in $ac_func_list
15866 do :
15867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15869 eval as_val=\$$as_ac_var
15870 if test "x$as_val" = x""yes; then :
15871 cat >>confdefs.h <<_ACEOF
15872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15873 _ACEOF
15876 done
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15882 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15883 if test "${emacs_cv_localtime_cache+set}" = set; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 if test x$ac_cv_func_tzset = xyes; then
15887 if test "$cross_compiling" = yes; then :
15888 # If we have tzset, assume the worst when cross-compiling.
15889 emacs_cv_localtime_cache=yes
15890 else
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 #include <time.h>
15894 char TZ_GMT0[] = "TZ=GMT0";
15895 char TZ_PST8[] = "TZ=PST8";
15896 main()
15898 time_t now = time ((time_t *) 0);
15899 int hour_GMT0, hour_unset;
15900 if (putenv (TZ_GMT0) != 0)
15901 exit (1);
15902 hour_GMT0 = localtime (&now)->tm_hour;
15903 unsetenv("TZ");
15904 hour_unset = localtime (&now)->tm_hour;
15905 if (putenv (TZ_PST8) != 0)
15906 exit (1);
15907 if (localtime (&now)->tm_hour == hour_GMT0)
15908 exit (1);
15909 unsetenv("TZ");
15910 if (localtime (&now)->tm_hour != hour_unset)
15911 exit (1);
15912 exit (0);
15914 _ACEOF
15915 if ac_fn_c_try_run "$LINENO"; then :
15916 emacs_cv_localtime_cache=no
15917 else
15918 emacs_cv_localtime_cache=yes
15920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15921 conftest.$ac_objext conftest.beam conftest.$ac_ext
15924 else
15925 # If we lack tzset, report that localtime does not cache TZ,
15926 # since we can't invalidate the cache if we don't have tzset.
15927 emacs_cv_localtime_cache=no
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15931 $as_echo "$emacs_cv_localtime_cache" >&6; }
15932 if test $emacs_cv_localtime_cache = yes; then
15934 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15938 ok_so_far=yes
15939 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15940 if test "x$ac_cv_func_socket" = x""yes; then :
15942 else
15943 ok_so_far=no
15946 if test $ok_so_far = yes; then
15947 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15948 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15950 else
15951 ok_so_far=no
15956 if test $ok_so_far = yes; then
15957 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15958 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15960 else
15961 ok_so_far=no
15966 if test $ok_so_far = yes; then
15968 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15972 case $canonical in
15973 *-solaris2.4 | *-solaris2.4.*)
15974 : ${ac_cv_func_vfork_works=no};;
15975 esac
15977 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15978 if test "x$ac_cv_type_pid_t" = x""yes; then :
15980 else
15982 cat >>confdefs.h <<_ACEOF
15983 #define pid_t int
15984 _ACEOF
15988 for ac_header in vfork.h
15989 do :
15990 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15991 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15992 cat >>confdefs.h <<_ACEOF
15993 #define HAVE_VFORK_H 1
15994 _ACEOF
15998 done
16000 for ac_func in fork vfork
16001 do :
16002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16004 eval as_val=\$$as_ac_var
16005 if test "x$as_val" = x""yes; then :
16006 cat >>confdefs.h <<_ACEOF
16007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16008 _ACEOF
16011 done
16013 if test "x$ac_cv_func_fork" = xyes; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16015 $as_echo_n "checking for working fork... " >&6; }
16016 if test "${ac_cv_func_fork_works+set}" = set; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16019 if test "$cross_compiling" = yes; then :
16020 ac_cv_func_fork_works=cross
16021 else
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024 $ac_includes_default
16026 main ()
16029 /* By Ruediger Kuhlmann. */
16030 return fork () < 0;
16033 return 0;
16035 _ACEOF
16036 if ac_fn_c_try_run "$LINENO"; then :
16037 ac_cv_func_fork_works=yes
16038 else
16039 ac_cv_func_fork_works=no
16041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16042 conftest.$ac_objext conftest.beam conftest.$ac_ext
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16047 $as_echo "$ac_cv_func_fork_works" >&6; }
16049 else
16050 ac_cv_func_fork_works=$ac_cv_func_fork
16052 if test "x$ac_cv_func_fork_works" = xcross; then
16053 case $host in
16054 *-*-amigaos* | *-*-msdosdjgpp*)
16055 # Override, as these systems have only a dummy fork() stub
16056 ac_cv_func_fork_works=no
16059 ac_cv_func_fork_works=yes
16061 esac
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16063 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16065 ac_cv_func_vfork_works=$ac_cv_func_vfork
16066 if test "x$ac_cv_func_vfork" = xyes; then
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16068 $as_echo_n "checking for working vfork... " >&6; }
16069 if test "${ac_cv_func_vfork_works+set}" = set; then :
16070 $as_echo_n "(cached) " >&6
16071 else
16072 if test "$cross_compiling" = yes; then :
16073 ac_cv_func_vfork_works=cross
16074 else
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 /* Thanks to Paul Eggert for this test. */
16078 $ac_includes_default
16079 #include <sys/wait.h>
16080 #ifdef HAVE_VFORK_H
16081 # include <vfork.h>
16082 #endif
16083 /* On some sparc systems, changes by the child to local and incoming
16084 argument registers are propagated back to the parent. The compiler
16085 is told about this with #include <vfork.h>, but some compilers
16086 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16087 static variable whose address is put into a register that is
16088 clobbered by the vfork. */
16089 static void
16090 #ifdef __cplusplus
16091 sparc_address_test (int arg)
16092 # else
16093 sparc_address_test (arg) int arg;
16094 #endif
16096 static pid_t child;
16097 if (!child) {
16098 child = vfork ();
16099 if (child < 0) {
16100 perror ("vfork");
16101 _exit(2);
16103 if (!child) {
16104 arg = getpid();
16105 write(-1, "", 0);
16106 _exit (arg);
16112 main ()
16114 pid_t parent = getpid ();
16115 pid_t child;
16117 sparc_address_test (0);
16119 child = vfork ();
16121 if (child == 0) {
16122 /* Here is another test for sparc vfork register problems. This
16123 test uses lots of local variables, at least as many local
16124 variables as main has allocated so far including compiler
16125 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16126 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16127 reuse the register of parent for one of the local variables,
16128 since it will think that parent can't possibly be used any more
16129 in this routine. Assigning to the local variable will thus
16130 munge parent in the parent process. */
16131 pid_t
16132 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16133 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16134 /* Convince the compiler that p..p7 are live; otherwise, it might
16135 use the same hardware register for all 8 local variables. */
16136 if (p != p1 || p != p2 || p != p3 || p != p4
16137 || p != p5 || p != p6 || p != p7)
16138 _exit(1);
16140 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16141 from child file descriptors. If the child closes a descriptor
16142 before it execs or exits, this munges the parent's descriptor
16143 as well. Test for this by closing stdout in the child. */
16144 _exit(close(fileno(stdout)) != 0);
16145 } else {
16146 int status;
16147 struct stat st;
16149 while (wait(&status) != child)
16151 return (
16152 /* Was there some problem with vforking? */
16153 child < 0
16155 /* Did the child fail? (This shouldn't happen.) */
16156 || status
16158 /* Did the vfork/compiler bug occur? */
16159 || parent != getpid()
16161 /* Did the file descriptor bug occur? */
16162 || fstat(fileno(stdout), &st) != 0
16166 _ACEOF
16167 if ac_fn_c_try_run "$LINENO"; then :
16168 ac_cv_func_vfork_works=yes
16169 else
16170 ac_cv_func_vfork_works=no
16172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16173 conftest.$ac_objext conftest.beam conftest.$ac_ext
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16178 $as_echo "$ac_cv_func_vfork_works" >&6; }
16181 if test "x$ac_cv_func_fork_works" = xcross; then
16182 ac_cv_func_vfork_works=$ac_cv_func_vfork
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16184 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16187 if test "x$ac_cv_func_vfork_works" = xyes; then
16189 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16191 else
16193 $as_echo "#define vfork fork" >>confdefs.h
16196 if test "x$ac_cv_func_fork_works" = xyes; then
16198 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16203 for ac_func in snprintf
16204 do :
16205 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16206 if test "x$ac_cv_func_snprintf" = x""yes; then :
16207 cat >>confdefs.h <<_ACEOF
16208 #define HAVE_SNPRINTF 1
16209 _ACEOF
16212 done
16215 XGSELOBJ=
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLib is linked in" >&5
16217 $as_echo_n "checking whether GLib is linked in... " >&6; }
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <glib.h>
16223 main ()
16225 g_print ("Hello world");
16227 return 0;
16229 _ACEOF
16230 if ac_fn_c_try_link "$LINENO"; then :
16231 links_glib=yes
16232 else
16233 links_glib=no
16235 rm -f core conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $links_glib" >&5
16238 $as_echo "$links_glib" >&6; }
16239 if test "${links_glib}" = "yes"; then
16241 $as_echo "#define HAVE_GLIB 1" >>confdefs.h
16243 if test "$HAVE_NS" = no;then
16244 XGSELOBJ=xgselect.o
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16250 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16251 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
16252 $as_echo_n "(cached) " >&6
16253 else
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256 #include <langinfo.h>
16258 main ()
16260 char* cs = nl_langinfo(CODESET);
16262 return 0;
16264 _ACEOF
16265 if ac_fn_c_try_link "$LINENO"; then :
16266 emacs_cv_langinfo_codeset=yes
16267 else
16268 emacs_cv_langinfo_codeset=no
16270 rm -f core conftest.err conftest.$ac_objext \
16271 conftest$ac_exeext conftest.$ac_ext
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16275 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16276 if test $emacs_cv_langinfo_codeset = yes; then
16278 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16283 $as_echo_n "checking for mbstate_t... " >&6; }
16284 if test "${ac_cv_type_mbstate_t+set}" = set; then :
16285 $as_echo_n "(cached) " >&6
16286 else
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 $ac_includes_default
16290 # include <wchar.h>
16292 main ()
16294 mbstate_t x; return sizeof x;
16296 return 0;
16298 _ACEOF
16299 if ac_fn_c_try_compile "$LINENO"; then :
16300 ac_cv_type_mbstate_t=yes
16301 else
16302 ac_cv_type_mbstate_t=no
16304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16307 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16308 if test $ac_cv_type_mbstate_t = yes; then
16310 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16312 else
16314 $as_echo "#define mbstate_t int" >>confdefs.h
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16319 $as_echo_n "checking for C restricted array declarations... " >&6; }
16320 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
16321 $as_echo_n "(cached) " >&6
16322 else
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16325 void fred (int x[__restrict]);
16327 main ()
16331 return 0;
16333 _ACEOF
16334 if ac_fn_c_try_compile "$LINENO"; then :
16335 emacs_cv_c_restrict_arr=yes
16336 else
16337 emacs_cv_c_restrict_arr=no
16339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
16342 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
16343 if test "$emacs_cv_c_restrict_arr" = yes; then
16345 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
16350 if test "${opsys}" != "mingw32"; then
16352 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
16357 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
16360 ## Note: PTYs are broken on darwin <6. Use at your own risk.
16361 if test "${opsys}" != "mingw32"; then
16363 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
16368 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
16374 if test "${opsys}" = "mingw32"; then
16375 $as_echo "#define NULL_DEVICE \"NUL:\"" >>confdefs.h
16377 else
16378 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
16383 if test "${opsys}" = "mingw32"; then
16384 $as_echo "#define SEPCHAR ';'" >>confdefs.h
16386 else
16387 $as_echo "#define SEPCHAR ':'" >>confdefs.h
16392 $as_echo "#define subprocesses 1" >>confdefs.h
16396 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
16401 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
16404 if test "${opsys}" = "mingw32"; then
16406 $as_echo "#define IS_DEVICE_SEP(_c_) ((_c_) == ':')" >>confdefs.h
16410 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')" >>confdefs.h
16414 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP(_c_))" >>confdefs.h
16416 else
16418 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
16422 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
16426 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
16432 case $opsys in
16433 aix4-2)
16434 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
16435 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16440 hpux*)
16441 $as_echo "#define NO_EDITRES 1" >>confdefs.h
16444 esac
16447 case $opsys in
16448 irix6-5 | sol2* | unixware )
16450 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
16453 esac
16455 emacs_broken_SIGIO=no
16457 case $opsys in
16458 hpux* | irix6-5 | openbsd | sol2* | unixware | gnu-kfreebsd )
16459 emacs_broken_SIGIO=yes
16462 aix4-2)
16464 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
16468 freebsd)
16470 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
16473 esac
16475 case $opsys in
16476 gnu-* | sol2-10 )
16478 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
16481 esac
16483 case $opsys in
16484 darwin | dragonfly | freebsd | netbsd | openbsd )
16486 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
16489 esac
16491 case $opsys in
16492 netbsd | openbsd) sound_device="/dev/audio" ;;
16493 *) sound_device="/dev/dsp" ;;
16494 esac
16497 cat >>confdefs.h <<_ACEOF
16498 #define DEFAULT_SOUND_DEVICE "$sound_device"
16499 _ACEOF
16503 case $opsys in
16504 darwin | gnu-linux | gnu-kfreebsd )
16506 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
16509 esac
16512 case $opsys in
16513 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
16515 $as_echo "#define NARROWPROTO 1" >>confdefs.h
16518 esac
16527 case $opsys in
16528 aix4-2 )
16529 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
16531 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
16533 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
16537 cygwin )
16538 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16540 $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
16542 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16544 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16548 darwin )
16549 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16551 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16553 $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
16555 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16557 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16561 gnu | openbsd )
16562 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16566 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
16567 if test "x$ac_cv_func_grantpt" = xyes; then
16569 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
16571 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
16573 $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
16575 if test "x$ac_cv_func_posix_openpt" = xyes; then
16576 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_CLOEXEC | O_NOCTTY)" >>confdefs.h
16578 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16580 elif test "x$ac_cv_func_getpt" = xyes; then
16581 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
16583 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16585 else
16586 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16589 else
16590 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16595 hpux*)
16596 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
16598 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
16600 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
16604 irix6-5 )
16605 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
16607 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
16609 $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
16611 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
16613 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
16617 sol2* )
16618 $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
16622 unixware )
16623 $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
16626 esac
16629 case $opsys in
16630 sol2* | unixware )
16631 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
16633 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
16636 $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
16639 esac
16644 case $opsys in
16645 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
16646 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16650 gnu-linux | gnu-kfreebsd )
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
16653 $as_echo_n "checking for signals via characters... " >&6; }
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h. */
16657 #include <linux/version.h>
16658 #if LINUX_VERSION_CODE < 0x20400
16659 # error "Linux version too old"
16660 #endif
16663 main ()
16667 return 0;
16669 _ACEOF
16670 if ac_fn_c_try_cpp "$LINENO"; then :
16671 emacs_signals_via_chars=yes
16672 else
16673 emacs_signals_via_chars=no
16675 rm -f conftest.err conftest.$ac_ext
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
16678 $as_echo "$emacs_signals_via_chars" >&6; }
16679 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
16682 esac
16687 case $opsys in
16688 aix*)
16689 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
16692 hpux*)
16693 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
16696 irix6-5)
16697 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
16700 esac
16705 case $opsys in
16706 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
16709 gnu | dragonfly | freebsd | netbsd | openbsd )
16711 $as_echo "#define TABDLY OXTABS" >>confdefs.h
16713 $as_echo "#define TAB3 OXTABS" >>confdefs.h
16717 gnu-linux | gnu-kfreebsd )
16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h. */
16721 #ifndef __ia64__
16722 # error "not ia64"
16723 #endif
16726 main ()
16730 return 0;
16732 _ACEOF
16733 if ac_fn_c_try_cpp "$LINENO"; then :
16735 $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
16738 rm -f conftest.err conftest.$ac_ext
16741 hpux*)
16743 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
16746 esac
16752 case $opsys in
16753 gnu-linux | gnu-kfreebsd )
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16757 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
16758 || defined __alpha__ || defined __mips__ || defined __s390__ \
16759 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
16760 || defined __ia64__ || defined __sh__
16761 /* ok */
16762 #else
16763 # error "setjmp not known to work on this arch"
16764 #endif
16767 main ()
16771 return 0;
16773 _ACEOF
16774 if ac_fn_c_try_cpp "$LINENO"; then :
16775 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16778 rm -f conftest.err conftest.$ac_ext
16780 esac
16783 if test x$GCC = xyes; then
16784 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16786 else
16787 case $opsys in
16788 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
16789 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
16792 esac
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
16795 $as_echo_n "checking for _setjmp... " >&6; }
16796 if test "${emacs_cv_func__setjmp+set}" = set; then :
16797 $as_echo_n "(cached) " >&6
16798 else
16799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16800 /* end confdefs.h. */
16801 #include <setjmp.h>
16802 #ifdef __MINGW32__
16803 # define _longjmp longjmp
16804 #endif
16807 main ()
16809 jmp_buf j;
16810 if (! _setjmp (j))
16811 _longjmp (j, 1);
16813 return 0;
16815 _ACEOF
16816 if ac_fn_c_try_link "$LINENO"; then :
16817 emacs_cv_func__setjmp=yes
16818 else
16819 emacs_cv_func__setjmp=no
16821 rm -f core conftest.err conftest.$ac_objext \
16822 conftest$ac_exeext conftest.$ac_ext
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
16825 $as_echo "$emacs_cv_func__setjmp" >&6; }
16826 if test $emacs_cv_func__setjmp = yes; then
16828 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
16830 else
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
16832 $as_echo_n "checking for sigsetjmp... " >&6; }
16833 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 #include <setjmp.h>
16841 main ()
16843 sigjmp_buf j;
16844 if (! sigsetjmp (j, 1))
16845 siglongjmp (j, 1);
16847 return 0;
16849 _ACEOF
16850 if ac_fn_c_try_link "$LINENO"; then :
16851 emacs_cv_func_sigsetjmp=yes
16852 else
16853 emacs_cv_func_sigsetjmp=no
16855 rm -f core conftest.err conftest.$ac_objext \
16856 conftest$ac_exeext conftest.$ac_ext
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
16859 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
16860 if test $emacs_cv_func_sigsetjmp = yes; then
16862 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
16867 case $opsys in
16868 sol2* | unixware )
16870 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
16873 esac
16876 case $opsys in
16877 hpux* | sol2* )
16879 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
16882 esac
16890 case $opsys in
16891 aix4-2)
16892 $as_echo "#define USG /**/" >>confdefs.h
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16897 #ifndef _AIX
16898 # error "_AIX not defined"
16899 #endif
16902 main ()
16906 return 0;
16908 _ACEOF
16909 if ac_fn_c_try_cpp "$LINENO"; then :
16911 else
16913 $as_echo "#define _AIX /**/" >>confdefs.h
16916 rm -f conftest.err conftest.$ac_ext
16919 cygwin)
16921 $as_echo "#define CYGWIN 1" >>confdefs.h
16925 darwin)
16927 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16931 gnu-linux | gnu-kfreebsd )
16932 $as_echo "#define USG /**/" >>confdefs.h
16935 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16939 hpux*)
16940 $as_echo "#define USG /**/" >>confdefs.h
16943 $as_echo "#define HPUX /**/" >>confdefs.h
16947 irix6-5)
16948 $as_echo "#define USG /**/" >>confdefs.h
16950 $as_echo "#define USG5_4 /**/" >>confdefs.h
16953 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16957 mingw32)
16958 $as_echo "#define DOS_NT /**/" >>confdefs.h
16961 $as_echo "#define WINDOWSNT 1" >>confdefs.h
16963 if test "x$ac_enable_checking" != "x" ; then
16965 $as_echo "#define EMACSDEBUG 1" >>confdefs.h
16970 sol2*)
16971 $as_echo "#define USG /**/" >>confdefs.h
16973 $as_echo "#define USG5_4 /**/" >>confdefs.h
16976 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16980 unixware)
16981 $as_echo "#define USG /**/" >>confdefs.h
16983 $as_echo "#define USG5_4 /**/" >>confdefs.h
16986 esac
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16989 $as_echo_n "checking for usable FIONREAD... " >&6; }
16990 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16991 $as_echo_n "(cached) " >&6
16992 else
16993 case $opsys in
16994 aix4-2)
16995 emacs_cv_usable_FIONREAD=no
16998 mingw32)
16999 emacs_cv_usable_FIONREAD=yes
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17005 #include <sys/types.h>
17006 #include <sys/ioctl.h>
17007 #ifdef USG5_4
17008 # include <sys/filio.h>
17009 #endif
17012 main ()
17014 int foo = ioctl (0, FIONREAD, &foo);
17016 return 0;
17018 _ACEOF
17019 if ac_fn_c_try_compile "$LINENO"; then :
17020 emacs_cv_usable_FIONREAD=yes
17021 else
17022 emacs_cv_usable_FIONREAD=no
17024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026 esac
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
17029 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
17030 if test $emacs_cv_usable_FIONREAD = yes; then
17032 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
17035 if test $emacs_broken_SIGIO = no; then
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
17037 $as_echo_n "checking for usable SIGIO... " >&6; }
17038 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17043 #include <fcntl.h>
17044 #include <signal.h>
17047 main ()
17049 int foo = SIGIO | F_SETFL | FASYNC;
17051 return 0;
17053 _ACEOF
17054 if ac_fn_c_try_compile "$LINENO"; then :
17055 emacs_cv_usable_SIGIO=yes
17056 else
17057 emacs_cv_usable_SIGIO=no
17059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
17062 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
17063 if test $emacs_cv_usable_SIGIO = yes; then
17065 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
17072 case $opsys in
17073 cygwin)
17075 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
17079 hpux11)
17081 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
17085 irix6-5)
17087 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
17091 sol2-10)
17093 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
17096 esac
17098 # Set up the CFLAGS for real compilation, so we can substitute it.
17099 CFLAGS="$REAL_CFLAGS"
17100 CPPFLAGS="$REAL_CPPFLAGS"
17102 ## Hack to detect a buggy GCC version.
17103 if test "x$GCC" = xyes \
17104 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17105 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17106 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17107 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17110 version=$PACKAGE_VERSION
17112 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
17114 cat >>confdefs.h <<_ACEOF
17115 #define COPYRIGHT "$copyright"
17116 _ACEOF
17120 ### Specify what sort of things we'll be editing into Makefile and config.h.
17121 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17124 ## Unused?
17147 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17148 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17149 ## end of LIBX_BASE, but nothing ever set it.
17154 ## Used in lwlib/Makefile.in.
17163 if test -n "${term_header}"; then
17165 cat >>confdefs.h <<_ACEOF
17166 #define TERM_HEADER "${term_header}"
17167 _ACEOF
17172 cat >>confdefs.h <<_ACEOF
17173 #define EMACS_CONFIGURATION "${canonical}"
17174 _ACEOF
17176 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g" -e 's/\\\\/\\\\\\\\/g'`
17178 cat >>confdefs.h <<_ACEOF
17179 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
17180 _ACEOF
17184 case $opsys in
17185 mingw32)
17186 $as_echo "#define config_opsysfile <ms-w32.h>" >>confdefs.h
17189 esac
17191 XMENU_OBJ=
17192 XOBJ=
17193 FONT_OBJ=
17194 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17196 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17198 XMENU_OBJ=xmenu.o
17199 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o"
17200 FONT_OBJ=xfont.o
17201 if test "$HAVE_XFT" = "yes"; then
17202 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17203 elif test "$HAVE_FREETYPE" = "yes"; then
17204 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17212 WIDGET_OBJ=
17213 MOTIF_LIBW=
17214 if test "${USE_X_TOOLKIT}" != "none" ; then
17215 WIDGET_OBJ=widget.o
17217 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17219 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17221 $as_echo "#define USE_LUCID 1" >>confdefs.h
17223 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17225 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17227 MOTIF_LIBW=-lXm
17228 case "$opsys" in
17229 gnu-linux)
17230 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17231 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17234 unixware)
17235 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17236 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17237 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17240 aix4-2)
17241 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17242 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17244 esac
17245 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17250 TOOLKIT_LIBW=
17251 case "$USE_X_TOOLKIT" in
17252 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17253 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17254 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17255 esac
17258 if test "${opsys}" != "mingw32"; then
17259 if test "$USE_X_TOOLKIT" = "none"; then
17260 LIBXT_OTHER="\$(LIBXSM)"
17261 OLDXMENU_TARGET="really-oldXMenu"
17262 else
17263 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17264 OLDXMENU_TARGET="really-lwlib"
17269 ## The X Menu stuff is present in the X10 distribution, but missing
17270 ## from X11. If we have X10, just use the installed library;
17271 ## otherwise, use our own copy.
17272 if test "${HAVE_X11}" = "yes" ; then
17274 $as_echo "#define HAVE_X11 1" >>confdefs.h
17277 if test "$USE_X_TOOLKIT" = "none"; then
17278 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17279 else
17280 OLDXMENU="\${lwlibdir}/liblw.a"
17282 LIBXMENU="\$(OLDXMENU)"
17283 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17284 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17285 else
17286 ## For a syntactically valid Makefile; not actually used for anything.
17287 ## See comments in src/Makefile.in.
17288 OLDXMENU=nothing
17289 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17290 if test "${HAVE_X_WINDOWS}" = "yes"; then
17291 LIBXMENU="-lXMenu"
17292 else
17293 LIBXMENU=
17295 LIBX_OTHER=
17296 OLDXMENU_DEPS=
17299 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17300 OLDXMENU_TARGET=
17301 OLDXMENU=nothing
17302 LIBXMENU=
17303 OLDXMENU_DEPS=
17312 if test "${HAVE_MENUS}" = "yes" ; then
17314 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17318 if test "${GNU_MALLOC}" = "yes" ; then
17320 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17324 RALLOC_OBJ=
17325 if test "${REL_ALLOC}" = "yes" ; then
17327 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17330 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17334 if test "$opsys" = "cygwin"; then
17335 CYGWIN_OBJ="sheap.o cygw32.o"
17336 ## Cygwin differs because of its unexec().
17337 PRE_ALLOC_OBJ=
17338 POST_ALLOC_OBJ=lastfile.o
17339 elif test "$opsys" = "mingw32"; then
17340 CYGWIN_OBJ=
17341 PRE_ALLOC_OBJ=
17342 POST_ALLOC_OBJ=lastfile.o
17343 else
17344 CYGWIN_OBJ=
17345 PRE_ALLOC_OBJ=lastfile.o
17346 POST_ALLOC_OBJ=
17352 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
17353 # it temporarily reverts them to their pre-pkg-config values,
17354 # because gnulib needs to work with both src (which uses the
17355 # pkg-config stuff) and lib-src (which does not). For example, gnulib
17356 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
17357 # and it therefore needs to run in an environment where LIBS does not
17358 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
17359 # for some package unrelated to lib-src.
17360 SAVE_CFLAGS=$CFLAGS
17361 SAVE_LIBS=$LIBS
17362 CFLAGS=$pre_PKG_CONFIG_CFLAGS
17363 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
17375 LIBC_FATAL_STDERR_=1
17376 export LIBC_FATAL_STDERR_
17378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17379 # for constant arguments. Useless!
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17381 $as_echo_n "checking for working alloca.h... " >&6; }
17382 if test "${ac_cv_working_alloca_h+set}" = set; then :
17383 $as_echo_n "(cached) " >&6
17384 else
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 #include <alloca.h>
17389 main ()
17391 char *p = (char *) alloca (2 * sizeof (int));
17392 if (p) return 0;
17394 return 0;
17396 _ACEOF
17397 if ac_fn_c_try_link "$LINENO"; then :
17398 ac_cv_working_alloca_h=yes
17399 else
17400 ac_cv_working_alloca_h=no
17402 rm -f core conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17406 $as_echo "$ac_cv_working_alloca_h" >&6; }
17407 if test $ac_cv_working_alloca_h = yes; then
17409 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17414 $as_echo_n "checking for alloca... " >&6; }
17415 if test "${ac_cv_func_alloca_works+set}" = set; then :
17416 $as_echo_n "(cached) " >&6
17417 else
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17420 #ifdef __GNUC__
17421 # define alloca __builtin_alloca
17422 #else
17423 # ifdef _MSC_VER
17424 # include <malloc.h>
17425 # define alloca _alloca
17426 # else
17427 # ifdef HAVE_ALLOCA_H
17428 # include <alloca.h>
17429 # else
17430 # ifdef _AIX
17431 #pragma alloca
17432 # else
17433 # ifndef alloca /* predefined by HP cc +Olibcalls */
17434 char *alloca ();
17435 # endif
17436 # endif
17437 # endif
17438 # endif
17439 #endif
17442 main ()
17444 char *p = (char *) alloca (1);
17445 if (p) return 0;
17447 return 0;
17449 _ACEOF
17450 if ac_fn_c_try_link "$LINENO"; then :
17451 ac_cv_func_alloca_works=yes
17452 else
17453 ac_cv_func_alloca_works=no
17455 rm -f core conftest.err conftest.$ac_objext \
17456 conftest$ac_exeext conftest.$ac_ext
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17459 $as_echo "$ac_cv_func_alloca_works" >&6; }
17461 if test $ac_cv_func_alloca_works = yes; then
17463 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17465 else
17466 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17467 # that cause trouble. Some versions do not even contain alloca or
17468 # contain a buggy version. If you still want to use their alloca,
17469 # use ar to extract alloca.o from them instead of compiling alloca.c.
17475 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17477 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
17481 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
17482 if test "${ac_cv_os_cray+set}" = set; then :
17483 $as_echo_n "(cached) " >&6
17484 else
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487 #if defined CRAY && ! defined CRAY2
17488 webecray
17489 #else
17490 wenotbecray
17491 #endif
17493 _ACEOF
17494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17495 $EGREP "webecray" >/dev/null 2>&1; then :
17496 ac_cv_os_cray=yes
17497 else
17498 ac_cv_os_cray=no
17500 rm -f conftest*
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17504 $as_echo "$ac_cv_os_cray" >&6; }
17505 if test $ac_cv_os_cray = yes; then
17506 for ac_func in _getb67 GETB67 getb67; do
17507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17509 eval as_val=\$$as_ac_var
17510 if test "x$as_val" = x""yes; then :
17512 cat >>confdefs.h <<_ACEOF
17513 #define CRAY_STACKSEG_END $ac_func
17514 _ACEOF
17516 break
17519 done
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17523 $as_echo_n "checking stack direction for C alloca... " >&6; }
17524 if test "${ac_cv_c_stack_direction+set}" = set; then :
17525 $as_echo_n "(cached) " >&6
17526 else
17527 if test "$cross_compiling" = yes; then :
17528 ac_cv_c_stack_direction=0
17529 else
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h. */
17532 $ac_includes_default
17534 find_stack_direction (int *addr, int depth)
17536 int dir, dummy = 0;
17537 if (! addr)
17538 addr = &dummy;
17539 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17540 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17541 return dir + dummy;
17545 main (int argc, char **argv)
17547 return find_stack_direction (0, argc + !argv + 20) < 0;
17549 _ACEOF
17550 if ac_fn_c_try_run "$LINENO"; then :
17551 ac_cv_c_stack_direction=1
17552 else
17553 ac_cv_c_stack_direction=-1
17555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17556 conftest.$ac_objext conftest.beam conftest.$ac_ext
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17561 $as_echo "$ac_cv_c_stack_direction" >&6; }
17562 cat >>confdefs.h <<_ACEOF
17563 #define STACK_DIRECTION $ac_cv_c_stack_direction
17564 _ACEOF
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17573 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17574 if test "${ac_cv_c_bigendian+set}" = set; then :
17575 $as_echo_n "(cached) " >&6
17576 else
17577 ac_cv_c_bigendian=unknown
17578 # See if we're dealing with a universal compiler.
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 #ifndef __APPLE_CC__
17582 not a universal capable compiler
17583 #endif
17584 typedef int dummy;
17586 _ACEOF
17587 if ac_fn_c_try_compile "$LINENO"; then :
17589 # Check for potential -arch flags. It is not universal unless
17590 # there are at least two -arch flags with different values.
17591 ac_arch=
17592 ac_prev=
17593 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17594 if test -n "$ac_prev"; then
17595 case $ac_word in
17596 i?86 | x86_64 | ppc | ppc64)
17597 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17598 ac_arch=$ac_word
17599 else
17600 ac_cv_c_bigendian=universal
17601 break
17604 esac
17605 ac_prev=
17606 elif test "x$ac_word" = "x-arch"; then
17607 ac_prev=arch
17609 done
17611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17612 if test $ac_cv_c_bigendian = unknown; then
17613 # See if sys/param.h defines the BYTE_ORDER macro.
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616 #include <sys/types.h>
17617 #include <sys/param.h>
17620 main ()
17622 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17623 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17624 && LITTLE_ENDIAN)
17625 bogus endian macros
17626 #endif
17629 return 0;
17631 _ACEOF
17632 if ac_fn_c_try_compile "$LINENO"; then :
17633 # It does; now see whether it defined to BIG_ENDIAN or not.
17634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17635 /* end confdefs.h. */
17636 #include <sys/types.h>
17637 #include <sys/param.h>
17640 main ()
17642 #if BYTE_ORDER != BIG_ENDIAN
17643 not big endian
17644 #endif
17647 return 0;
17649 _ACEOF
17650 if ac_fn_c_try_compile "$LINENO"; then :
17651 ac_cv_c_bigendian=yes
17652 else
17653 ac_cv_c_bigendian=no
17655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659 if test $ac_cv_c_bigendian = unknown; then
17660 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h. */
17663 #include <limits.h>
17666 main ()
17668 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17669 bogus endian macros
17670 #endif
17673 return 0;
17675 _ACEOF
17676 if ac_fn_c_try_compile "$LINENO"; then :
17677 # It does; now see whether it defined to _BIG_ENDIAN or not.
17678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17679 /* end confdefs.h. */
17680 #include <limits.h>
17683 main ()
17685 #ifndef _BIG_ENDIAN
17686 not big endian
17687 #endif
17690 return 0;
17692 _ACEOF
17693 if ac_fn_c_try_compile "$LINENO"; then :
17694 ac_cv_c_bigendian=yes
17695 else
17696 ac_cv_c_bigendian=no
17698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 if test $ac_cv_c_bigendian = unknown; then
17703 # Compile a test program.
17704 if test "$cross_compiling" = yes; then :
17705 # Try to guess by grepping values from an object file.
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708 short int ascii_mm[] =
17709 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17710 short int ascii_ii[] =
17711 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17712 int use_ascii (int i) {
17713 return ascii_mm[i] + ascii_ii[i];
17715 short int ebcdic_ii[] =
17716 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17717 short int ebcdic_mm[] =
17718 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17719 int use_ebcdic (int i) {
17720 return ebcdic_mm[i] + ebcdic_ii[i];
17722 extern int foo;
17725 main ()
17727 return use_ascii (foo) == use_ebcdic (foo);
17729 return 0;
17731 _ACEOF
17732 if ac_fn_c_try_compile "$LINENO"; then :
17733 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17734 ac_cv_c_bigendian=yes
17736 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17737 if test "$ac_cv_c_bigendian" = unknown; then
17738 ac_cv_c_bigendian=no
17739 else
17740 # finding both strings is unlikely to happen, but who knows?
17741 ac_cv_c_bigendian=unknown
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746 else
17747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h. */
17749 $ac_includes_default
17751 main ()
17754 /* Are we little or big endian? From Harbison&Steele. */
17755 union
17757 long int l;
17758 char c[sizeof (long int)];
17759 } u;
17760 u.l = 1;
17761 return u.c[sizeof (long int) - 1] == 1;
17764 return 0;
17766 _ACEOF
17767 if ac_fn_c_try_run "$LINENO"; then :
17768 ac_cv_c_bigendian=no
17769 else
17770 ac_cv_c_bigendian=yes
17772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17773 conftest.$ac_objext conftest.beam conftest.$ac_ext
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17779 $as_echo "$ac_cv_c_bigendian" >&6; }
17780 case $ac_cv_c_bigendian in #(
17781 yes)
17782 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17783 ;; #(
17785 ;; #(
17786 universal)
17788 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17790 ;; #(
17792 as_fn_error "unknown endianness
17793 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17794 esac
17798 GNULIB_CHDIR=0;
17799 GNULIB_CHOWN=0;
17800 GNULIB_CLOSE=0;
17801 GNULIB_DUP=0;
17802 GNULIB_DUP2=0;
17803 GNULIB_DUP3=0;
17804 GNULIB_ENVIRON=0;
17805 GNULIB_EUIDACCESS=0;
17806 GNULIB_FACCESSAT=0;
17807 GNULIB_FCHDIR=0;
17808 GNULIB_FCHOWNAT=0;
17809 GNULIB_FDATASYNC=0;
17810 GNULIB_FSYNC=0;
17811 GNULIB_FTRUNCATE=0;
17812 GNULIB_GETCWD=0;
17813 GNULIB_GETDOMAINNAME=0;
17814 GNULIB_GETDTABLESIZE=0;
17815 GNULIB_GETGROUPS=0;
17816 GNULIB_GETHOSTNAME=0;
17817 GNULIB_GETLOGIN=0;
17818 GNULIB_GETLOGIN_R=0;
17819 GNULIB_GETPAGESIZE=0;
17820 GNULIB_GETUSERSHELL=0;
17821 GNULIB_GROUP_MEMBER=0;
17822 GNULIB_ISATTY=0;
17823 GNULIB_LCHOWN=0;
17824 GNULIB_LINK=0;
17825 GNULIB_LINKAT=0;
17826 GNULIB_LSEEK=0;
17827 GNULIB_PIPE=0;
17828 GNULIB_PIPE2=0;
17829 GNULIB_PREAD=0;
17830 GNULIB_PWRITE=0;
17831 GNULIB_READ=0;
17832 GNULIB_READLINK=0;
17833 GNULIB_READLINKAT=0;
17834 GNULIB_RMDIR=0;
17835 GNULIB_SETHOSTNAME=0;
17836 GNULIB_SLEEP=0;
17837 GNULIB_SYMLINK=0;
17838 GNULIB_SYMLINKAT=0;
17839 GNULIB_TTYNAME_R=0;
17840 GNULIB_UNISTD_H_NONBLOCKING=0;
17841 GNULIB_UNISTD_H_SIGPIPE=0;
17842 GNULIB_UNLINK=0;
17843 GNULIB_UNLINKAT=0;
17844 GNULIB_USLEEP=0;
17845 GNULIB_WRITE=0;
17846 HAVE_CHOWN=1;
17847 HAVE_DUP2=1;
17848 HAVE_DUP3=1;
17849 HAVE_EUIDACCESS=1;
17850 HAVE_FACCESSAT=1;
17851 HAVE_FCHDIR=1;
17852 HAVE_FCHOWNAT=1;
17853 HAVE_FDATASYNC=1;
17854 HAVE_FSYNC=1;
17855 HAVE_FTRUNCATE=1;
17856 HAVE_GETDTABLESIZE=1;
17857 HAVE_GETGROUPS=1;
17858 HAVE_GETHOSTNAME=1;
17859 HAVE_GETLOGIN=1;
17860 HAVE_GETPAGESIZE=1;
17861 HAVE_GROUP_MEMBER=1;
17862 HAVE_LCHOWN=1;
17863 HAVE_LINK=1;
17864 HAVE_LINKAT=1;
17865 HAVE_PIPE=1;
17866 HAVE_PIPE2=1;
17867 HAVE_PREAD=1;
17868 HAVE_PWRITE=1;
17869 HAVE_READLINK=1;
17870 HAVE_READLINKAT=1;
17871 HAVE_SETHOSTNAME=1;
17872 HAVE_SLEEP=1;
17873 HAVE_SYMLINK=1;
17874 HAVE_SYMLINKAT=1;
17875 HAVE_UNLINKAT=1;
17876 HAVE_USLEEP=1;
17877 HAVE_DECL_ENVIRON=1;
17878 HAVE_DECL_FCHDIR=1;
17879 HAVE_DECL_FDATASYNC=1;
17880 HAVE_DECL_GETDOMAINNAME=1;
17881 HAVE_DECL_GETLOGIN_R=1;
17882 HAVE_DECL_GETPAGESIZE=1;
17883 HAVE_DECL_GETUSERSHELL=1;
17884 HAVE_DECL_SETHOSTNAME=1;
17885 HAVE_DECL_TTYNAME_R=1;
17886 HAVE_OS_H=0;
17887 HAVE_SYS_PARAM_H=0;
17888 REPLACE_CHOWN=0;
17889 REPLACE_CLOSE=0;
17890 REPLACE_DUP=0;
17891 REPLACE_DUP2=0;
17892 REPLACE_FCHOWNAT=0;
17893 REPLACE_FTRUNCATE=0;
17894 REPLACE_GETCWD=0;
17895 REPLACE_GETDOMAINNAME=0;
17896 REPLACE_GETLOGIN_R=0;
17897 REPLACE_GETGROUPS=0;
17898 REPLACE_GETPAGESIZE=0;
17899 REPLACE_ISATTY=0;
17900 REPLACE_LCHOWN=0;
17901 REPLACE_LINK=0;
17902 REPLACE_LINKAT=0;
17903 REPLACE_LSEEK=0;
17904 REPLACE_PREAD=0;
17905 REPLACE_PWRITE=0;
17906 REPLACE_READ=0;
17907 REPLACE_READLINK=0;
17908 REPLACE_RMDIR=0;
17909 REPLACE_SLEEP=0;
17910 REPLACE_SYMLINK=0;
17911 REPLACE_TTYNAME_R=0;
17912 REPLACE_UNLINK=0;
17913 REPLACE_UNLINKAT=0;
17914 REPLACE_USLEEP=0;
17915 REPLACE_WRITE=0;
17916 UNISTD_H_HAVE_WINSOCK2_H=0;
17917 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
17921 GNULIB_OPENDIR=0;
17922 GNULIB_READDIR=0;
17923 GNULIB_REWINDDIR=0;
17924 GNULIB_CLOSEDIR=0;
17925 GNULIB_DIRFD=0;
17926 GNULIB_FDOPENDIR=0;
17927 GNULIB_SCANDIR=0;
17928 GNULIB_ALPHASORT=0;
17929 HAVE_OPENDIR=1;
17930 HAVE_READDIR=1;
17931 HAVE_REWINDDIR=1;
17932 HAVE_CLOSEDIR=1;
17933 HAVE_DECL_DIRFD=1;
17934 HAVE_DECL_FDOPENDIR=1;
17935 HAVE_FDOPENDIR=1;
17936 HAVE_SCANDIR=1;
17937 HAVE_ALPHASORT=1;
17938 REPLACE_OPENDIR=0;
17939 REPLACE_CLOSEDIR=0;
17940 REPLACE_DIRFD=0;
17941 REPLACE_FDOPENDIR=0;
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17946 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17947 if test "${gl_cv_have_include_next+set}" = set; then :
17948 $as_echo_n "(cached) " >&6
17949 else
17950 rm -rf conftestd1a conftestd1b conftestd2
17951 mkdir conftestd1a conftestd1b conftestd2
17952 cat <<EOF > conftestd1a/conftest.h
17953 #define DEFINED_IN_CONFTESTD1
17954 #include_next <conftest.h>
17955 #ifdef DEFINED_IN_CONFTESTD2
17956 int foo;
17957 #else
17958 #error "include_next doesn't work"
17959 #endif
17961 cat <<EOF > conftestd1b/conftest.h
17962 #define DEFINED_IN_CONFTESTD1
17963 #include <stdio.h>
17964 #include_next <conftest.h>
17965 #ifdef DEFINED_IN_CONFTESTD2
17966 int foo;
17967 #else
17968 #error "include_next doesn't work"
17969 #endif
17971 cat <<EOF > conftestd2/conftest.h
17972 #ifndef DEFINED_IN_CONFTESTD1
17973 #error "include_next test doesn't work"
17974 #endif
17975 #define DEFINED_IN_CONFTESTD2
17977 gl_save_CPPFLAGS="$CPPFLAGS"
17978 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17980 /* end confdefs.h. */
17981 #include <conftest.h>
17982 _ACEOF
17983 if ac_fn_c_try_compile "$LINENO"; then :
17984 gl_cv_have_include_next=yes
17985 else
17986 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17989 #include <conftest.h>
17990 _ACEOF
17991 if ac_fn_c_try_compile "$LINENO"; then :
17992 gl_cv_have_include_next=buggy
17993 else
17994 gl_cv_have_include_next=no
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18000 CPPFLAGS="$gl_save_CPPFLAGS"
18001 rm -rf conftestd1a conftestd1b conftestd2
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
18005 $as_echo "$gl_cv_have_include_next" >&6; }
18006 PRAGMA_SYSTEM_HEADER=
18007 if test $gl_cv_have_include_next = yes; then
18008 INCLUDE_NEXT=include_next
18009 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18010 if test -n "$GCC"; then
18011 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
18013 else
18014 if test $gl_cv_have_include_next = buggy; then
18015 INCLUDE_NEXT=include
18016 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
18017 else
18018 INCLUDE_NEXT=include
18019 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
18026 $as_echo_n "checking whether system header files limit the line length... " >&6; }
18027 if test "${gl_cv_pragma_columns+set}" = set; then :
18028 $as_echo_n "(cached) " >&6
18029 else
18030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18031 /* end confdefs.h. */
18033 #ifdef __TANDEM
18034 choke me
18035 #endif
18037 _ACEOF
18038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18039 $EGREP "choke me" >/dev/null 2>&1; then :
18040 gl_cv_pragma_columns=yes
18041 else
18042 gl_cv_pragma_columns=no
18044 rm -f conftest*
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
18049 $as_echo "$gl_cv_pragma_columns" >&6; }
18050 if test $gl_cv_pragma_columns = yes; then
18051 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
18052 else
18053 PRAGMA_COLUMNS=
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
18061 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
18062 if test "${gl_cv_func_c99_strtold+set}" = set; then :
18063 $as_echo_n "(cached) " >&6
18064 else
18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18066 /* end confdefs.h. */
18067 /* On HP-UX before 11.23, strtold returns a struct instead of
18068 long double. Reject implementations like that, by requiring
18069 compatibility with the C99 prototype. */
18070 #include <stdlib.h>
18071 static long double (*p) (char const *, char **) = strtold;
18072 static long double
18073 test (char const *nptr, char **endptr)
18075 long double r;
18076 r = strtold (nptr, endptr);
18077 return r;
18080 main ()
18082 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
18084 return 0;
18086 _ACEOF
18087 if ac_fn_c_try_link "$LINENO"; then :
18088 gl_cv_func_c99_strtold=yes
18089 else
18090 gl_cv_func_c99_strtold=no
18092 rm -f core conftest.err conftest.$ac_objext \
18093 conftest$ac_exeext conftest.$ac_ext
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
18096 $as_echo "$gl_cv_func_c99_strtold" >&6; }
18097 if test $gl_cv_func_c99_strtold = yes; then
18099 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
18111 $as_echo_n "checking if environ is properly declared... " >&6; }
18112 if test "${gt_cv_var_environ_declaration+set}" = set; then :
18113 $as_echo_n "(cached) " >&6
18114 else
18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117 /* end confdefs.h. */
18118 #if HAVE_UNISTD_H
18119 #include <unistd.h>
18120 #endif
18121 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
18122 #include <stdlib.h>
18124 extern struct { int foo; } environ;
18126 main ()
18128 environ.foo = 1;
18130 return 0;
18132 _ACEOF
18133 if ac_fn_c_try_compile "$LINENO"; then :
18134 gt_cv_var_environ_declaration=no
18135 else
18136 gt_cv_var_environ_declaration=yes
18138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
18142 $as_echo "$gt_cv_var_environ_declaration" >&6; }
18143 if test $gt_cv_var_environ_declaration = yes; then
18145 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
18150 if test $gt_cv_var_environ_declaration != yes; then
18151 HAVE_DECL_ENVIRON=0
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
18157 $as_echo_n "checking for complete errno.h... " >&6; }
18158 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
18159 $as_echo_n "(cached) " >&6
18160 else
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18165 #include <errno.h>
18166 #if !defined ETXTBSY
18167 booboo
18168 #endif
18169 #if !defined ENOMSG
18170 booboo
18171 #endif
18172 #if !defined EIDRM
18173 booboo
18174 #endif
18175 #if !defined ENOLINK
18176 booboo
18177 #endif
18178 #if !defined EPROTO
18179 booboo
18180 #endif
18181 #if !defined EMULTIHOP
18182 booboo
18183 #endif
18184 #if !defined EBADMSG
18185 booboo
18186 #endif
18187 #if !defined EOVERFLOW
18188 booboo
18189 #endif
18190 #if !defined ENOTSUP
18191 booboo
18192 #endif
18193 #if !defined ENETRESET
18194 booboo
18195 #endif
18196 #if !defined ECONNABORTED
18197 booboo
18198 #endif
18199 #if !defined ESTALE
18200 booboo
18201 #endif
18202 #if !defined EDQUOT
18203 booboo
18204 #endif
18205 #if !defined ECANCELED
18206 booboo
18207 #endif
18208 #if !defined EOWNERDEAD
18209 booboo
18210 #endif
18211 #if !defined ENOTRECOVERABLE
18212 booboo
18213 #endif
18214 #if !defined EILSEQ
18215 booboo
18216 #endif
18218 _ACEOF
18219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18220 $EGREP "booboo" >/dev/null 2>&1; then :
18221 gl_cv_header_errno_h_complete=no
18222 else
18223 gl_cv_header_errno_h_complete=yes
18225 rm -f conftest*
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
18230 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
18231 if test $gl_cv_header_errno_h_complete = yes; then
18232 ERRNO_H=''
18233 else
18242 if test $gl_cv_have_include_next = yes; then
18243 gl_cv_next_errno_h='<'errno.h'>'
18244 else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
18246 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
18247 if test "${gl_cv_next_errno_h+set}" = set; then :
18248 $as_echo_n "(cached) " >&6
18249 else
18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18252 /* end confdefs.h. */
18253 #include <errno.h>
18255 _ACEOF
18256 case "$host_os" in
18257 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18258 *) gl_absname_cpp="$ac_cpp" ;;
18259 esac
18261 case "$host_os" in
18262 mingw*)
18263 gl_dirsep_regex='[/\\]'
18266 gl_dirsep_regex='\/'
18268 esac
18269 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18271 gl_header_literal_regex=`echo 'errno.h' \
18272 | sed -e "$gl_make_literal_regex_sed"`
18273 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18274 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18275 s|^/[^/]|//&|
18279 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18280 sed -n "$gl_absolute_header_sed"`'"'
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
18285 $as_echo "$gl_cv_next_errno_h" >&6; }
18287 NEXT_ERRNO_H=$gl_cv_next_errno_h
18289 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18291 gl_next_as_first_directive='<'errno.h'>'
18292 else
18293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18294 gl_next_as_first_directive=$gl_cv_next_errno_h
18296 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
18301 ERRNO_H='errno.h'
18304 if test -n "$ERRNO_H"; then
18305 GL_GENERATE_ERRNO_H_TRUE=
18306 GL_GENERATE_ERRNO_H_FALSE='#'
18307 else
18308 GL_GENERATE_ERRNO_H_TRUE='#'
18309 GL_GENERATE_ERRNO_H_FALSE=
18313 if test -n "$ERRNO_H"; then
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
18315 $as_echo_n "checking for EMULTIHOP value... " >&6; }
18316 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
18317 $as_echo_n "(cached) " >&6
18318 else
18320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321 /* end confdefs.h. */
18323 #include <errno.h>
18324 #ifdef EMULTIHOP
18326 #endif
18328 _ACEOF
18329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18330 $EGREP "yes" >/dev/null 2>&1; then :
18331 gl_cv_header_errno_h_EMULTIHOP=yes
18332 else
18333 gl_cv_header_errno_h_EMULTIHOP=no
18335 rm -f conftest*
18337 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 #define _XOPEN_SOURCE_EXTENDED 1
18342 #include <errno.h>
18343 #ifdef EMULTIHOP
18345 #endif
18347 _ACEOF
18348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18349 $EGREP "yes" >/dev/null 2>&1; then :
18350 gl_cv_header_errno_h_EMULTIHOP=hidden
18352 rm -f conftest*
18354 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
18355 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
18356 #define _XOPEN_SOURCE_EXTENDED 1
18357 #include <errno.h>
18358 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18359 #include <stdio.h>
18360 #include <stdlib.h>
18361 "; then :
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
18370 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
18371 case $gl_cv_header_errno_h_EMULTIHOP in
18372 yes | no)
18373 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
18376 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
18378 esac
18384 if test -n "$ERRNO_H"; then
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
18386 $as_echo_n "checking for ENOLINK value... " >&6; }
18387 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
18388 $as_echo_n "(cached) " >&6
18389 else
18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h. */
18394 #include <errno.h>
18395 #ifdef ENOLINK
18397 #endif
18399 _ACEOF
18400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18401 $EGREP "yes" >/dev/null 2>&1; then :
18402 gl_cv_header_errno_h_ENOLINK=yes
18403 else
18404 gl_cv_header_errno_h_ENOLINK=no
18406 rm -f conftest*
18408 if test $gl_cv_header_errno_h_ENOLINK = no; then
18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h. */
18412 #define _XOPEN_SOURCE_EXTENDED 1
18413 #include <errno.h>
18414 #ifdef ENOLINK
18416 #endif
18418 _ACEOF
18419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18420 $EGREP "yes" >/dev/null 2>&1; then :
18421 gl_cv_header_errno_h_ENOLINK=hidden
18423 rm -f conftest*
18425 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
18426 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
18427 #define _XOPEN_SOURCE_EXTENDED 1
18428 #include <errno.h>
18429 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18430 #include <stdio.h>
18431 #include <stdlib.h>
18432 "; then :
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
18441 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
18442 case $gl_cv_header_errno_h_ENOLINK in
18443 yes | no)
18444 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
18447 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
18449 esac
18455 if test -n "$ERRNO_H"; then
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
18457 $as_echo_n "checking for EOVERFLOW value... " >&6; }
18458 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
18459 $as_echo_n "(cached) " >&6
18460 else
18462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h. */
18465 #include <errno.h>
18466 #ifdef EOVERFLOW
18468 #endif
18470 _ACEOF
18471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18472 $EGREP "yes" >/dev/null 2>&1; then :
18473 gl_cv_header_errno_h_EOVERFLOW=yes
18474 else
18475 gl_cv_header_errno_h_EOVERFLOW=no
18477 rm -f conftest*
18479 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18483 #define _XOPEN_SOURCE_EXTENDED 1
18484 #include <errno.h>
18485 #ifdef EOVERFLOW
18487 #endif
18489 _ACEOF
18490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18491 $EGREP "yes" >/dev/null 2>&1; then :
18492 gl_cv_header_errno_h_EOVERFLOW=hidden
18494 rm -f conftest*
18496 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
18497 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
18498 #define _XOPEN_SOURCE_EXTENDED 1
18499 #include <errno.h>
18500 /* The following two lines are a workaround against an autoconf-2.52 bug. */
18501 #include <stdio.h>
18502 #include <stdlib.h>
18503 "; then :
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
18512 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
18513 case $gl_cv_header_errno_h_EOVERFLOW in
18514 yes | no)
18515 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
18518 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
18520 esac
18534 GNULIB_FCNTL=0;
18535 GNULIB_NONBLOCKING=0;
18536 GNULIB_OPEN=0;
18537 GNULIB_OPENAT=0;
18538 HAVE_FCNTL=1;
18539 HAVE_OPENAT=1;
18540 REPLACE_FCNTL=0;
18541 REPLACE_OPEN=0;
18542 REPLACE_OPENAT=0;
18547 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
18548 if test "x$ac_cv_type_mode_t" = x""yes; then :
18550 else
18552 cat >>confdefs.h <<_ACEOF
18553 #define mode_t int
18554 _ACEOF
18558 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
18559 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
18560 ac_have_decl=1
18561 else
18562 ac_have_decl=0
18565 cat >>confdefs.h <<_ACEOF
18566 #define HAVE_DECL_FDATASYNC $ac_have_decl
18567 _ACEOF
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
18572 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
18573 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
18574 $as_echo_n "(cached) " >&6
18575 else
18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h. */
18579 #include <sys/types.h>
18580 #include <sys/stat.h>
18582 main ()
18584 struct stat s; s.st_dm_mode;
18586 return 0;
18588 _ACEOF
18589 if ac_fn_c_try_compile "$LINENO"; then :
18590 ac_cv_struct_st_dm_mode=yes
18591 else
18592 ac_cv_struct_st_dm_mode=no
18594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
18597 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
18599 if test $ac_cv_struct_st_dm_mode = yes; then
18601 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
18606 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
18607 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
18608 ac_have_decl=1
18609 else
18610 ac_have_decl=0
18613 cat >>confdefs.h <<_ACEOF
18614 #define HAVE_DECL_STRMODE $ac_have_decl
18615 _ACEOF
18620 GNULIB_FCHMODAT=0;
18621 GNULIB_FSTAT=0;
18622 GNULIB_FSTATAT=0;
18623 GNULIB_FUTIMENS=0;
18624 GNULIB_LCHMOD=0;
18625 GNULIB_LSTAT=0;
18626 GNULIB_MKDIRAT=0;
18627 GNULIB_MKFIFO=0;
18628 GNULIB_MKFIFOAT=0;
18629 GNULIB_MKNOD=0;
18630 GNULIB_MKNODAT=0;
18631 GNULIB_STAT=0;
18632 GNULIB_UTIMENSAT=0;
18633 HAVE_FCHMODAT=1;
18634 HAVE_FSTATAT=1;
18635 HAVE_FUTIMENS=1;
18636 HAVE_LCHMOD=1;
18637 HAVE_LSTAT=1;
18638 HAVE_MKDIRAT=1;
18639 HAVE_MKFIFO=1;
18640 HAVE_MKFIFOAT=1;
18641 HAVE_MKNOD=1;
18642 HAVE_MKNODAT=1;
18643 HAVE_UTIMENSAT=1;
18644 REPLACE_FSTAT=0;
18645 REPLACE_FSTATAT=0;
18646 REPLACE_FUTIMENS=0;
18647 REPLACE_LSTAT=0;
18648 REPLACE_MKDIR=0;
18649 REPLACE_MKFIFO=0;
18650 REPLACE_MKNOD=0;
18651 REPLACE_STAT=0;
18652 REPLACE_UTIMENSAT=0;
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18656 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18657 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18658 $as_echo_n "(cached) " >&6
18659 else
18660 rm -f conftest.sym conftest.file
18661 echo >conftest.file
18662 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18663 if test "$cross_compiling" = yes; then :
18664 case "$host_os" in
18665 # Guess yes on glibc systems.
18666 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18667 # If we don't know, assume the worst.
18668 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18669 esac
18671 else
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18674 $ac_includes_default
18676 main ()
18678 struct stat sbuf;
18679 /* Linux will dereference the symlink and fail, as required by
18680 POSIX. That is better in the sense that it means we will not
18681 have to compile and use the lstat wrapper. */
18682 return lstat ("conftest.sym/", &sbuf) == 0;
18685 return 0;
18687 _ACEOF
18688 if ac_fn_c_try_run "$LINENO"; then :
18689 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18690 else
18691 gl_cv_func_lstat_dereferences_slashed_symlink=no
18693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18694 conftest.$ac_objext conftest.beam conftest.$ac_ext
18697 else
18698 # If the 'ln -s' command failed, then we probably don't even
18699 # have an lstat function.
18700 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18702 rm -f conftest.sym conftest.file
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18706 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18707 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18708 *yes)
18710 cat >>confdefs.h <<_ACEOF
18711 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18712 _ACEOF
18715 esac
18722 GNULIB__EXIT=0;
18723 GNULIB_ATOLL=0;
18724 GNULIB_CALLOC_POSIX=0;
18725 GNULIB_CANONICALIZE_FILE_NAME=0;
18726 GNULIB_GETLOADAVG=0;
18727 GNULIB_GETSUBOPT=0;
18728 GNULIB_GRANTPT=0;
18729 GNULIB_MALLOC_POSIX=0;
18730 GNULIB_MBTOWC=0;
18731 GNULIB_MKDTEMP=0;
18732 GNULIB_MKOSTEMP=0;
18733 GNULIB_MKOSTEMPS=0;
18734 GNULIB_MKSTEMP=0;
18735 GNULIB_MKSTEMPS=0;
18736 GNULIB_POSIX_OPENPT=0;
18737 GNULIB_PTSNAME=0;
18738 GNULIB_PTSNAME_R=0;
18739 GNULIB_PUTENV=0;
18740 GNULIB_RANDOM=0;
18741 GNULIB_RANDOM_R=0;
18742 GNULIB_REALLOC_POSIX=0;
18743 GNULIB_REALPATH=0;
18744 GNULIB_RPMATCH=0;
18745 GNULIB_SECURE_GETENV=0;
18746 GNULIB_SETENV=0;
18747 GNULIB_STRTOD=0;
18748 GNULIB_STRTOLL=0;
18749 GNULIB_STRTOULL=0;
18750 GNULIB_SYSTEM_POSIX=0;
18751 GNULIB_UNLOCKPT=0;
18752 GNULIB_UNSETENV=0;
18753 GNULIB_WCTOMB=0;
18754 HAVE__EXIT=1;
18755 HAVE_ATOLL=1;
18756 HAVE_CANONICALIZE_FILE_NAME=1;
18757 HAVE_DECL_GETLOADAVG=1;
18758 HAVE_GETSUBOPT=1;
18759 HAVE_GRANTPT=1;
18760 HAVE_MKDTEMP=1;
18761 HAVE_MKOSTEMP=1;
18762 HAVE_MKOSTEMPS=1;
18763 HAVE_MKSTEMP=1;
18764 HAVE_MKSTEMPS=1;
18765 HAVE_POSIX_OPENPT=1;
18766 HAVE_PTSNAME=1;
18767 HAVE_PTSNAME_R=1;
18768 HAVE_RANDOM=1;
18769 HAVE_RANDOM_H=1;
18770 HAVE_RANDOM_R=1;
18771 HAVE_REALPATH=1;
18772 HAVE_RPMATCH=1;
18773 HAVE_SECURE_GETENV=1;
18774 HAVE_SETENV=1;
18775 HAVE_DECL_SETENV=1;
18776 HAVE_STRTOD=1;
18777 HAVE_STRTOLL=1;
18778 HAVE_STRTOULL=1;
18779 HAVE_STRUCT_RANDOM_DATA=1;
18780 HAVE_SYS_LOADAVG_H=0;
18781 HAVE_UNLOCKPT=1;
18782 HAVE_DECL_UNSETENV=1;
18783 REPLACE_CALLOC=0;
18784 REPLACE_CANONICALIZE_FILE_NAME=0;
18785 REPLACE_MALLOC=0;
18786 REPLACE_MBTOWC=0;
18787 REPLACE_MKSTEMP=0;
18788 REPLACE_PTSNAME=0;
18789 REPLACE_PTSNAME_R=0;
18790 REPLACE_PUTENV=0;
18791 REPLACE_RANDOM_R=0;
18792 REPLACE_REALLOC=0;
18793 REPLACE_REALPATH=0;
18794 REPLACE_SETENV=0;
18795 REPLACE_STRTOD=0;
18796 REPLACE_UNSETENV=0;
18797 REPLACE_WCTOMB=0;
18814 if test $gl_cv_have_include_next = yes; then
18815 gl_cv_next_getopt_h='<'getopt.h'>'
18816 else
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
18818 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
18819 if test "${gl_cv_next_getopt_h+set}" = set; then :
18820 $as_echo_n "(cached) " >&6
18821 else
18823 if test $ac_cv_header_getopt_h = yes; then
18826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18827 /* end confdefs.h. */
18828 #include <getopt.h>
18830 _ACEOF
18831 case "$host_os" in
18832 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18833 *) gl_absname_cpp="$ac_cpp" ;;
18834 esac
18836 case "$host_os" in
18837 mingw*)
18838 gl_dirsep_regex='[/\\]'
18841 gl_dirsep_regex='\/'
18843 esac
18844 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18846 gl_header_literal_regex=`echo 'getopt.h' \
18847 | sed -e "$gl_make_literal_regex_sed"`
18848 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18849 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18850 s|^/[^/]|//&|
18854 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18855 sed -n "$gl_absolute_header_sed"`'"'
18856 else
18857 gl_cv_next_getopt_h='<'getopt.h'>'
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
18863 $as_echo "$gl_cv_next_getopt_h" >&6; }
18865 NEXT_GETOPT_H=$gl_cv_next_getopt_h
18867 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18869 gl_next_as_first_directive='<'getopt.h'>'
18870 else
18871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18872 gl_next_as_first_directive=$gl_cv_next_getopt_h
18874 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
18879 if test $ac_cv_header_getopt_h = yes; then
18880 HAVE_GETOPT_H=1
18881 else
18882 HAVE_GETOPT_H=0
18886 gl_replace_getopt=
18888 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18889 for ac_header in getopt.h
18890 do :
18891 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
18892 if test "x$ac_cv_header_getopt_h" = x""yes; then :
18893 cat >>confdefs.h <<_ACEOF
18894 #define HAVE_GETOPT_H 1
18895 _ACEOF
18897 else
18898 gl_replace_getopt=yes
18901 done
18905 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
18906 for ac_func in getopt_long_only
18907 do :
18908 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
18909 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
18910 cat >>confdefs.h <<_ACEOF
18911 #define HAVE_GETOPT_LONG_ONLY 1
18912 _ACEOF
18914 else
18915 gl_replace_getopt=yes
18917 done
18921 if test -z "$gl_replace_getopt"; then
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
18923 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
18924 if test "${gl_cv_func_getopt_posix+set}" = set; then :
18925 $as_echo_n "(cached) " >&6
18926 else
18928 if test $cross_compiling = no; then
18929 if test "$cross_compiling" = yes; then :
18930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18932 as_fn_error "cannot run test program while cross compiling
18933 See \`config.log' for more details." "$LINENO" 5; }
18934 else
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936 /* end confdefs.h. */
18938 #include <unistd.h>
18939 #include <stdlib.h>
18940 #include <string.h>
18943 main ()
18945 static char program[] = "program";
18946 static char a[] = "-a";
18947 static char foo[] = "foo";
18948 static char bar[] = "bar";
18949 char *argv[] = { program, a, foo, bar, NULL };
18950 int c;
18952 c = getopt (4, argv, "ab");
18953 if (!(c == 'a'))
18954 return 1;
18955 c = getopt (4, argv, "ab");
18956 if (!(c == -1))
18957 return 2;
18958 if (!(optind == 2))
18959 return 3;
18960 return 0;
18963 _ACEOF
18964 if ac_fn_c_try_run "$LINENO"; then :
18965 gl_cv_func_getopt_posix=maybe
18966 else
18967 gl_cv_func_getopt_posix=no
18969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18970 conftest.$ac_objext conftest.beam conftest.$ac_ext
18973 if test $gl_cv_func_getopt_posix = maybe; then
18974 if test "$cross_compiling" = yes; then :
18975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18977 as_fn_error "cannot run test program while cross compiling
18978 See \`config.log' for more details." "$LINENO" 5; }
18979 else
18980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18981 /* end confdefs.h. */
18983 #include <unistd.h>
18984 #include <stdlib.h>
18985 #include <string.h>
18988 main ()
18990 static char program[] = "program";
18991 static char donald[] = "donald";
18992 static char p[] = "-p";
18993 static char billy[] = "billy";
18994 static char duck[] = "duck";
18995 static char a[] = "-a";
18996 static char bar[] = "bar";
18997 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
18998 int c;
19000 c = getopt (7, argv, "+abp:q:");
19001 if (!(c == -1))
19002 return 4;
19003 if (!(strcmp (argv[0], "program") == 0))
19004 return 5;
19005 if (!(strcmp (argv[1], "donald") == 0))
19006 return 6;
19007 if (!(strcmp (argv[2], "-p") == 0))
19008 return 7;
19009 if (!(strcmp (argv[3], "billy") == 0))
19010 return 8;
19011 if (!(strcmp (argv[4], "duck") == 0))
19012 return 9;
19013 if (!(strcmp (argv[5], "-a") == 0))
19014 return 10;
19015 if (!(strcmp (argv[6], "bar") == 0))
19016 return 11;
19017 if (!(optind == 1))
19018 return 12;
19019 return 0;
19022 _ACEOF
19023 if ac_fn_c_try_run "$LINENO"; then :
19024 gl_cv_func_getopt_posix=maybe
19025 else
19026 gl_cv_func_getopt_posix=no
19028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19029 conftest.$ac_objext conftest.beam conftest.$ac_ext
19033 if test $gl_cv_func_getopt_posix = maybe; then
19034 if test "$cross_compiling" = yes; then :
19035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19037 as_fn_error "cannot run test program while cross compiling
19038 See \`config.log' for more details." "$LINENO" 5; }
19039 else
19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h. */
19043 #include <unistd.h>
19044 #include <stdlib.h>
19045 #include <string.h>
19048 main ()
19050 static char program[] = "program";
19051 static char ab[] = "-ab";
19052 char *argv[3] = { program, ab, NULL };
19053 if (getopt (2, argv, "ab:") != 'a')
19054 return 13;
19055 if (getopt (2, argv, "ab:") != '?')
19056 return 14;
19057 if (optopt != 'b')
19058 return 15;
19059 if (optind != 2)
19060 return 16;
19061 return 0;
19064 _ACEOF
19065 if ac_fn_c_try_run "$LINENO"; then :
19066 gl_cv_func_getopt_posix=yes
19067 else
19068 gl_cv_func_getopt_posix=no
19070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19071 conftest.$ac_objext conftest.beam conftest.$ac_ext
19075 else
19076 case "$host_os" in
19077 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
19078 *) gl_cv_func_getopt_posix="guessing yes";;
19079 esac
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
19084 $as_echo "$gl_cv_func_getopt_posix" >&6; }
19085 case "$gl_cv_func_getopt_posix" in
19086 *no) gl_replace_getopt=yes ;;
19087 esac
19090 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
19092 $as_echo_n "checking for working GNU getopt function... " >&6; }
19093 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
19094 $as_echo_n "(cached) " >&6
19095 else
19096 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
19097 # optstring is necessary for programs like m4 that have POSIX-mandated
19098 # semantics for supporting options interspersed with files.
19099 # Also, since getopt_long is a GNU extension, we require optind=0.
19100 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
19101 # so take care to revert to the correct (non-)export state.
19102 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
19103 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
19104 xx) gl_had_POSIXLY_CORRECT=exported ;;
19105 x) gl_had_POSIXLY_CORRECT=yes ;;
19106 *) gl_had_POSIXLY_CORRECT= ;;
19107 esac
19108 POSIXLY_CORRECT=1
19109 export POSIXLY_CORRECT
19110 if test "$cross_compiling" = yes; then :
19111 gl_cv_func_getopt_gnu="guessing no"
19113 else
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19116 #include <getopt.h>
19117 #include <stddef.h>
19118 #include <string.h>
19120 #include <stdlib.h>
19121 #if defined __MACH__ && defined __APPLE__
19122 /* Avoid a crash on Mac OS X. */
19123 #include <mach/mach.h>
19124 #include <mach/mach_error.h>
19125 #include <mach/thread_status.h>
19126 #include <mach/exception.h>
19127 #include <mach/task.h>
19128 #include <pthread.h>
19129 /* The exception port on which our thread listens. */
19130 static mach_port_t our_exception_port;
19131 /* The main function of the thread listening for exceptions of type
19132 EXC_BAD_ACCESS. */
19133 static void *
19134 mach_exception_thread (void *arg)
19136 /* Buffer for a message to be received. */
19137 struct {
19138 mach_msg_header_t head;
19139 mach_msg_body_t msgh_body;
19140 char data[1024];
19141 } msg;
19142 mach_msg_return_t retval;
19143 /* Wait for a message on the exception port. */
19144 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19145 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19146 if (retval != MACH_MSG_SUCCESS)
19147 abort ();
19148 exit (1);
19150 static void
19151 nocrash_init (void)
19153 mach_port_t self = mach_task_self ();
19154 /* Allocate a port on which the thread shall listen for exceptions. */
19155 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19156 == KERN_SUCCESS) {
19157 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19158 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19159 MACH_MSG_TYPE_MAKE_SEND)
19160 == KERN_SUCCESS) {
19161 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19162 for us. */
19163 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19164 /* Create the thread listening on the exception port. */
19165 pthread_attr_t attr;
19166 pthread_t thread;
19167 if (pthread_attr_init (&attr) == 0
19168 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19169 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19170 pthread_attr_destroy (&attr);
19171 /* Replace the exception port info for these exceptions with our own.
19172 Note that we replace the exception port for the entire task, not only
19173 for a particular thread. This has the effect that when our exception
19174 port gets the message, the thread specific exception port has already
19175 been asked, and we don't need to bother about it.
19176 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19177 task_set_exception_ports (self, mask, our_exception_port,
19178 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19183 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19184 /* Avoid a crash on native Windows. */
19185 #define WIN32_LEAN_AND_MEAN
19186 #include <windows.h>
19187 #include <winerror.h>
19188 static LONG WINAPI
19189 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19191 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19193 case EXCEPTION_ACCESS_VIOLATION:
19194 case EXCEPTION_IN_PAGE_ERROR:
19195 case EXCEPTION_STACK_OVERFLOW:
19196 case EXCEPTION_GUARD_PAGE:
19197 case EXCEPTION_PRIV_INSTRUCTION:
19198 case EXCEPTION_ILLEGAL_INSTRUCTION:
19199 case EXCEPTION_DATATYPE_MISALIGNMENT:
19200 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19201 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19202 exit (1);
19204 return EXCEPTION_CONTINUE_SEARCH;
19206 static void
19207 nocrash_init (void)
19209 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19211 #else
19212 /* Avoid a crash on POSIX systems. */
19213 #include <signal.h>
19214 /* A POSIX signal handler. */
19215 static void
19216 exception_handler (int sig)
19218 exit (1);
19220 static void
19221 nocrash_init (void)
19223 #ifdef SIGSEGV
19224 signal (SIGSEGV, exception_handler);
19225 #endif
19226 #ifdef SIGBUS
19227 signal (SIGBUS, exception_handler);
19228 #endif
19230 #endif
19234 main ()
19237 int result = 0;
19239 nocrash_init();
19241 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
19242 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
19243 OSF/1 5.1, Solaris 10. */
19245 static char conftest[] = "conftest";
19246 static char plus[] = "-+";
19247 char *argv[3] = { conftest, plus, NULL };
19248 opterr = 0;
19249 if (getopt (2, argv, "+a") != '?')
19250 result |= 1;
19252 /* This code succeeds on glibc 2.8, mingw,
19253 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
19254 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
19256 static char program[] = "program";
19257 static char p[] = "-p";
19258 static char foo[] = "foo";
19259 static char bar[] = "bar";
19260 char *argv[] = { program, p, foo, bar, NULL };
19262 optind = 1;
19263 if (getopt (4, argv, "p::") != 'p')
19264 result |= 2;
19265 else if (optarg != NULL)
19266 result |= 4;
19267 else if (getopt (4, argv, "p::") != -1)
19268 result |= 6;
19269 else if (optind != 2)
19270 result |= 8;
19272 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
19274 static char program[] = "program";
19275 static char foo[] = "foo";
19276 static char p[] = "-p";
19277 char *argv[] = { program, foo, p, NULL };
19278 optind = 0;
19279 if (getopt (3, argv, "-p") != 1)
19280 result |= 16;
19281 else if (getopt (3, argv, "-p") != 'p')
19282 result |= 16;
19284 /* This code fails on glibc 2.11. */
19286 static char program[] = "program";
19287 static char b[] = "-b";
19288 static char a[] = "-a";
19289 char *argv[] = { program, b, a, NULL };
19290 optind = opterr = 0;
19291 if (getopt (3, argv, "+:a:b") != 'b')
19292 result |= 32;
19293 else if (getopt (3, argv, "+:a:b") != ':')
19294 result |= 32;
19296 /* This code dumps core on glibc 2.14. */
19298 static char program[] = "program";
19299 static char w[] = "-W";
19300 static char dummy[] = "dummy";
19301 char *argv[] = { program, w, dummy, NULL };
19302 optind = opterr = 1;
19303 if (getopt (3, argv, "W;") != 'W')
19304 result |= 64;
19306 return result;
19309 return 0;
19311 _ACEOF
19312 if ac_fn_c_try_run "$LINENO"; then :
19313 gl_cv_func_getopt_gnu=yes
19314 else
19315 gl_cv_func_getopt_gnu=no
19317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19318 conftest.$ac_objext conftest.beam conftest.$ac_ext
19321 case $gl_had_POSIXLY_CORRECT in
19322 exported) ;;
19323 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
19324 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
19325 esac
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
19329 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
19330 if test "$gl_cv_func_getopt_gnu" != yes; then
19331 gl_replace_getopt=yes
19332 else
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
19334 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
19335 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
19336 $as_echo_n "(cached) " >&6
19337 else
19338 if test "$cross_compiling" = yes; then :
19339 case "$host_os" in
19340 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
19341 *) gl_cv_func_getopt_long_gnu="guessing yes";;
19342 esac
19344 else
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19347 #include <getopt.h>
19348 #include <stddef.h>
19349 #include <string.h>
19352 main ()
19354 static const struct option long_options[] =
19356 { "xtremely-",no_argument, NULL, 1003 },
19357 { "xtra", no_argument, NULL, 1001 },
19358 { "xtreme", no_argument, NULL, 1002 },
19359 { "xtremely", no_argument, NULL, 1003 },
19360 { NULL, 0, NULL, 0 }
19362 /* This code fails on OpenBSD 5.0. */
19364 static char program[] = "program";
19365 static char xtremel[] = "--xtremel";
19366 char *argv[] = { program, xtremel, NULL };
19367 int option_index;
19368 optind = 1; opterr = 0;
19369 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
19370 return 1;
19372 return 0;
19375 return 0;
19377 _ACEOF
19378 if ac_fn_c_try_run "$LINENO"; then :
19379 gl_cv_func_getopt_long_gnu=yes
19380 else
19381 gl_cv_func_getopt_long_gnu=no
19383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19384 conftest.$ac_objext conftest.beam conftest.$ac_ext
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
19390 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
19391 case "$gl_cv_func_getopt_long_gnu" in
19392 *yes) ;;
19393 *) gl_replace_getopt=yes ;;
19394 esac
19403 REPLACE_GETOPT=0
19404 if test -n "$gl_replace_getopt"; then
19405 REPLACE_GETOPT=1
19408 if test $REPLACE_GETOPT = 1; then
19410 GETOPT_H=getopt.h
19412 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19418 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
19419 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
19420 ac_have_decl=1
19421 else
19422 ac_have_decl=0
19425 cat >>confdefs.h <<_ACEOF
19426 #define HAVE_DECL_GETENV $ac_have_decl
19427 _ACEOF
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19435 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19436 if test "${ac_cv_c_restrict+set}" = set; then :
19437 $as_echo_n "(cached) " >&6
19438 else
19439 ac_cv_c_restrict=no
19440 # The order here caters to the fact that C++ does not require restrict.
19441 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19444 typedef int * int_ptr;
19445 int foo (int_ptr $ac_kw ip) {
19446 return ip[0];
19449 main ()
19451 int s[1];
19452 int * $ac_kw t = s;
19453 t[0] = 0;
19454 return foo(t)
19456 return 0;
19458 _ACEOF
19459 if ac_fn_c_try_compile "$LINENO"; then :
19460 ac_cv_c_restrict=$ac_kw
19462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 test "$ac_cv_c_restrict" != no && break
19464 done
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19468 $as_echo "$ac_cv_c_restrict" >&6; }
19470 case $ac_cv_c_restrict in
19471 restrict) ;;
19472 no) $as_echo "#define restrict /**/" >>confdefs.h
19474 *) cat >>confdefs.h <<_ACEOF
19475 #define restrict $ac_cv_c_restrict
19476 _ACEOF
19478 esac
19481 GNULIB_GETTIMEOFDAY=0;
19482 HAVE_GETTIMEOFDAY=1;
19483 HAVE_STRUCT_TIMEVAL=1;
19484 HAVE_SYS_TIME_H=1;
19485 REPLACE_GETTIMEOFDAY=0;
19486 REPLACE_STRUCT_TIMEVAL=0;
19503 if test $gl_cv_have_include_next = yes; then
19504 gl_cv_next_sys_time_h='<'sys/time.h'>'
19505 else
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19507 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19508 if test "${gl_cv_next_sys_time_h+set}" = set; then :
19509 $as_echo_n "(cached) " >&6
19510 else
19512 if test $ac_cv_header_sys_time_h = yes; then
19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516 /* end confdefs.h. */
19517 #include <sys/time.h>
19519 _ACEOF
19520 case "$host_os" in
19521 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19522 *) gl_absname_cpp="$ac_cpp" ;;
19523 esac
19525 case "$host_os" in
19526 mingw*)
19527 gl_dirsep_regex='[/\\]'
19530 gl_dirsep_regex='\/'
19532 esac
19533 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19535 gl_header_literal_regex=`echo 'sys/time.h' \
19536 | sed -e "$gl_make_literal_regex_sed"`
19537 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19538 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19539 s|^/[^/]|//&|
19543 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19544 sed -n "$gl_absolute_header_sed"`'"'
19545 else
19546 gl_cv_next_sys_time_h='<'sys/time.h'>'
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19552 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19554 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19556 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19557 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19558 gl_next_as_first_directive='<'sys/time.h'>'
19559 else
19560 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19561 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19563 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19569 if test $ac_cv_header_sys_time_h != yes; then
19570 HAVE_SYS_TIME_H=0
19577 if test $ac_cv_header_sys_socket_h != yes; then
19578 for ac_header in winsock2.h
19579 do :
19580 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19581 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19582 cat >>confdefs.h <<_ACEOF
19583 #define HAVE_WINSOCK2_H 1
19584 _ACEOF
19588 done
19591 if test "$ac_cv_header_winsock2_h" = yes; then
19592 HAVE_WINSOCK2_H=1
19593 UNISTD_H_HAVE_WINSOCK2_H=1
19594 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19595 else
19596 HAVE_WINSOCK2_H=0
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19601 $as_echo_n "checking for struct timeval... " >&6; }
19602 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
19603 $as_echo_n "(cached) " >&6
19604 else
19605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19606 /* end confdefs.h. */
19607 #if HAVE_SYS_TIME_H
19608 #include <sys/time.h>
19609 #endif
19610 #include <time.h>
19611 #if HAVE_WINSOCK2_H
19612 # include <winsock2.h>
19613 #endif
19616 main ()
19618 static struct timeval x; x.tv_sec = x.tv_usec;
19620 return 0;
19622 _ACEOF
19623 if ac_fn_c_try_compile "$LINENO"; then :
19624 gl_cv_sys_struct_timeval=yes
19625 else
19626 gl_cv_sys_struct_timeval=no
19628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19632 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19633 if test $gl_cv_sys_struct_timeval != yes; then
19634 HAVE_STRUCT_TIMEVAL=0
19635 else
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19637 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19638 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
19639 $as_echo_n "(cached) " >&6
19640 else
19641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19642 /* end confdefs.h. */
19643 #if HAVE_SYS_TIME_H
19644 #include <sys/time.h>
19645 #endif
19646 #include <time.h>
19647 #if HAVE_WINSOCK2_H
19648 # include <winsock2.h>
19649 #endif
19652 main ()
19654 static struct timeval x;
19655 typedef int verify_tv_sec_type[
19656 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19660 return 0;
19662 _ACEOF
19663 if ac_fn_c_try_compile "$LINENO"; then :
19664 gl_cv_sys_struct_timeval_tv_sec=yes
19665 else
19666 gl_cv_sys_struct_timeval_tv_sec=no
19668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19672 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19673 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19674 REPLACE_STRUCT_TIMEVAL=1
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19685 $as_echo_n "checking for unsigned long long int... " >&6; }
19686 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
19687 $as_echo_n "(cached) " >&6
19688 else
19689 ac_cv_type_unsigned_long_long_int=yes
19690 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h. */
19694 /* For now, do not test the preprocessor; as of 2007 there are too many
19695 implementations with broken preprocessors. Perhaps this can
19696 be revisited in 2012. In the meantime, code should not expect
19697 #if to work with literals wider than 32 bits. */
19698 /* Test literals. */
19699 long long int ll = 9223372036854775807ll;
19700 long long int nll = -9223372036854775807LL;
19701 unsigned long long int ull = 18446744073709551615ULL;
19702 /* Test constant expressions. */
19703 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19704 ? 1 : -1)];
19705 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19706 ? 1 : -1)];
19707 int i = 63;
19709 main ()
19711 /* Test availability of runtime routines for shift and division. */
19712 long long int llmax = 9223372036854775807ll;
19713 unsigned long long int ullmax = 18446744073709551615ull;
19714 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19715 | (llmax / ll) | (llmax % ll)
19716 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19717 | (ullmax / ull) | (ullmax % ull));
19719 return 0;
19722 _ACEOF
19723 if ac_fn_c_try_link "$LINENO"; then :
19725 else
19726 ac_cv_type_unsigned_long_long_int=no
19728 rm -f core conftest.err conftest.$ac_objext \
19729 conftest$ac_exeext conftest.$ac_ext
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19733 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19734 if test $ac_cv_type_unsigned_long_long_int = yes; then
19736 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19743 $as_echo_n "checking for long long int... " >&6; }
19744 if test "${ac_cv_type_long_long_int+set}" = set; then :
19745 $as_echo_n "(cached) " >&6
19746 else
19747 ac_cv_type_long_long_int=yes
19748 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19749 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19750 if test $ac_cv_type_long_long_int = yes; then
19751 if test "$cross_compiling" = yes; then :
19753 else
19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19755 /* end confdefs.h. */
19756 #include <limits.h>
19757 #ifndef LLONG_MAX
19758 # define HALF \
19759 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19760 # define LLONG_MAX (HALF - 1 + HALF)
19761 #endif
19763 main ()
19765 long long int n = 1;
19766 int i;
19767 for (i = 0; ; i++)
19769 long long int m = n << i;
19770 if (m >> i != n)
19771 return 1;
19772 if (LLONG_MAX / 2 < m)
19773 break;
19775 return 0;
19777 return 0;
19779 _ACEOF
19780 if ac_fn_c_try_run "$LINENO"; then :
19782 else
19783 ac_cv_type_long_long_int=no
19785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19786 conftest.$ac_objext conftest.beam conftest.$ac_ext
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19793 $as_echo "$ac_cv_type_long_long_int" >&6; }
19794 if test $ac_cv_type_long_long_int = yes; then
19796 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19805 gl_cv_c_multiarch=no
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19808 #ifndef __APPLE_CC__
19809 not a universal capable compiler
19810 #endif
19811 typedef int dummy;
19813 _ACEOF
19814 if ac_fn_c_try_compile "$LINENO"; then :
19816 arch=
19817 prev=
19818 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
19819 if test -n "$prev"; then
19820 case $word in
19821 i?86 | x86_64 | ppc | ppc64)
19822 if test -z "$arch" || test "$arch" = "$word"; then
19823 arch="$word"
19824 else
19825 gl_cv_c_multiarch=yes
19828 esac
19829 prev=
19830 else
19831 if test "x$word" = "x-arch"; then
19832 prev=arch
19835 done
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839 if test $gl_cv_c_multiarch = yes; then
19840 APPLE_UNIVERSAL_BUILD=1
19841 else
19842 APPLE_UNIVERSAL_BUILD=0
19849 if test $ac_cv_type_long_long_int = yes; then
19850 HAVE_LONG_LONG_INT=1
19851 else
19852 HAVE_LONG_LONG_INT=0
19856 if test $ac_cv_type_unsigned_long_long_int = yes; then
19857 HAVE_UNSIGNED_LONG_LONG_INT=1
19858 else
19859 HAVE_UNSIGNED_LONG_LONG_INT=0
19864 if test $ac_cv_header_wchar_h = yes; then
19865 HAVE_WCHAR_H=1
19866 else
19867 HAVE_WCHAR_H=0
19871 if test $ac_cv_header_inttypes_h = yes; then
19872 HAVE_INTTYPES_H=1
19873 else
19874 HAVE_INTTYPES_H=0
19878 if test $ac_cv_header_sys_types_h = yes; then
19879 HAVE_SYS_TYPES_H=1
19880 else
19881 HAVE_SYS_TYPES_H=0
19894 if test $gl_cv_have_include_next = yes; then
19895 gl_cv_next_stdint_h='<'stdint.h'>'
19896 else
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19898 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19899 if test "${gl_cv_next_stdint_h+set}" = set; then :
19900 $as_echo_n "(cached) " >&6
19901 else
19903 if test $ac_cv_header_stdint_h = yes; then
19906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19907 /* end confdefs.h. */
19908 #include <stdint.h>
19910 _ACEOF
19911 case "$host_os" in
19912 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19913 *) gl_absname_cpp="$ac_cpp" ;;
19914 esac
19916 case "$host_os" in
19917 mingw*)
19918 gl_dirsep_regex='[/\\]'
19921 gl_dirsep_regex='\/'
19923 esac
19924 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19926 gl_header_literal_regex=`echo 'stdint.h' \
19927 | sed -e "$gl_make_literal_regex_sed"`
19928 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19929 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19930 s|^/[^/]|//&|
19934 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19935 sed -n "$gl_absolute_header_sed"`'"'
19936 else
19937 gl_cv_next_stdint_h='<'stdint.h'>'
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19943 $as_echo "$gl_cv_next_stdint_h" >&6; }
19945 NEXT_STDINT_H=$gl_cv_next_stdint_h
19947 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19948 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19949 gl_next_as_first_directive='<'stdint.h'>'
19950 else
19951 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19952 gl_next_as_first_directive=$gl_cv_next_stdint_h
19954 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19959 if test $ac_cv_header_stdint_h = yes; then
19960 HAVE_STDINT_H=1
19961 else
19962 HAVE_STDINT_H=0
19966 if test $ac_cv_header_stdint_h = yes; then
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19968 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19969 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
19970 $as_echo_n "(cached) " >&6
19971 else
19972 gl_cv_header_working_stdint_h=no
19973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h. */
19977 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19978 #include <stdint.h>
19979 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19980 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19981 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19982 #endif
19985 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19986 included before <wchar.h>. */
19987 #include <stddef.h>
19988 #include <signal.h>
19989 #if HAVE_WCHAR_H
19990 # include <stdio.h>
19991 # include <time.h>
19992 # include <wchar.h>
19993 #endif
19996 #ifdef INT8_MAX
19997 int8_t a1 = INT8_MAX;
19998 int8_t a1min = INT8_MIN;
19999 #endif
20000 #ifdef INT16_MAX
20001 int16_t a2 = INT16_MAX;
20002 int16_t a2min = INT16_MIN;
20003 #endif
20004 #ifdef INT32_MAX
20005 int32_t a3 = INT32_MAX;
20006 int32_t a3min = INT32_MIN;
20007 #endif
20008 #ifdef INT64_MAX
20009 int64_t a4 = INT64_MAX;
20010 int64_t a4min = INT64_MIN;
20011 #endif
20012 #ifdef UINT8_MAX
20013 uint8_t b1 = UINT8_MAX;
20014 #else
20015 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
20016 #endif
20017 #ifdef UINT16_MAX
20018 uint16_t b2 = UINT16_MAX;
20019 #endif
20020 #ifdef UINT32_MAX
20021 uint32_t b3 = UINT32_MAX;
20022 #endif
20023 #ifdef UINT64_MAX
20024 uint64_t b4 = UINT64_MAX;
20025 #endif
20026 int_least8_t c1 = INT8_C (0x7f);
20027 int_least8_t c1max = INT_LEAST8_MAX;
20028 int_least8_t c1min = INT_LEAST8_MIN;
20029 int_least16_t c2 = INT16_C (0x7fff);
20030 int_least16_t c2max = INT_LEAST16_MAX;
20031 int_least16_t c2min = INT_LEAST16_MIN;
20032 int_least32_t c3 = INT32_C (0x7fffffff);
20033 int_least32_t c3max = INT_LEAST32_MAX;
20034 int_least32_t c3min = INT_LEAST32_MIN;
20035 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
20036 int_least64_t c4max = INT_LEAST64_MAX;
20037 int_least64_t c4min = INT_LEAST64_MIN;
20038 uint_least8_t d1 = UINT8_C (0xff);
20039 uint_least8_t d1max = UINT_LEAST8_MAX;
20040 uint_least16_t d2 = UINT16_C (0xffff);
20041 uint_least16_t d2max = UINT_LEAST16_MAX;
20042 uint_least32_t d3 = UINT32_C (0xffffffff);
20043 uint_least32_t d3max = UINT_LEAST32_MAX;
20044 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
20045 uint_least64_t d4max = UINT_LEAST64_MAX;
20046 int_fast8_t e1 = INT_FAST8_MAX;
20047 int_fast8_t e1min = INT_FAST8_MIN;
20048 int_fast16_t e2 = INT_FAST16_MAX;
20049 int_fast16_t e2min = INT_FAST16_MIN;
20050 int_fast32_t e3 = INT_FAST32_MAX;
20051 int_fast32_t e3min = INT_FAST32_MIN;
20052 int_fast64_t e4 = INT_FAST64_MAX;
20053 int_fast64_t e4min = INT_FAST64_MIN;
20054 uint_fast8_t f1 = UINT_FAST8_MAX;
20055 uint_fast16_t f2 = UINT_FAST16_MAX;
20056 uint_fast32_t f3 = UINT_FAST32_MAX;
20057 uint_fast64_t f4 = UINT_FAST64_MAX;
20058 #ifdef INTPTR_MAX
20059 intptr_t g = INTPTR_MAX;
20060 intptr_t gmin = INTPTR_MIN;
20061 #endif
20062 #ifdef UINTPTR_MAX
20063 uintptr_t h = UINTPTR_MAX;
20064 #endif
20065 intmax_t i = INTMAX_MAX;
20066 uintmax_t j = UINTMAX_MAX;
20068 #include <limits.h> /* for CHAR_BIT */
20069 #define TYPE_MINIMUM(t) \
20070 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
20071 #define TYPE_MAXIMUM(t) \
20072 ((t) ((t) 0 < (t) -1 \
20073 ? (t) -1 \
20074 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
20075 struct s {
20076 int check_PTRDIFF:
20077 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
20078 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
20079 ? 1 : -1;
20080 /* Detect bug in FreeBSD 6.0 / ia64. */
20081 int check_SIG_ATOMIC:
20082 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
20083 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
20084 ? 1 : -1;
20085 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
20086 int check_WCHAR:
20087 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
20088 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
20089 ? 1 : -1;
20090 /* Detect bug in mingw. */
20091 int check_WINT:
20092 WINT_MIN == TYPE_MINIMUM (wint_t)
20093 && WINT_MAX == TYPE_MAXIMUM (wint_t)
20094 ? 1 : -1;
20096 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
20097 int check_UINT8_C:
20098 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
20099 int check_UINT16_C:
20100 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
20102 /* Detect bugs in OpenBSD 3.9 stdint.h. */
20103 #ifdef UINT8_MAX
20104 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
20105 #endif
20106 #ifdef UINT16_MAX
20107 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
20108 #endif
20109 #ifdef UINT32_MAX
20110 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
20111 #endif
20112 #ifdef UINT64_MAX
20113 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
20114 #endif
20115 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
20116 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
20117 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
20118 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
20119 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
20120 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
20121 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
20122 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
20123 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
20124 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
20125 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
20129 main ()
20133 return 0;
20135 _ACEOF
20136 if ac_fn_c_try_compile "$LINENO"; then :
20137 if test "$cross_compiling" = yes; then :
20138 gl_cv_header_working_stdint_h=yes
20140 else
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20145 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
20146 #include <stdint.h>
20149 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20150 included before <wchar.h>. */
20151 #include <stddef.h>
20152 #include <signal.h>
20153 #if HAVE_WCHAR_H
20154 # include <stdio.h>
20155 # include <time.h>
20156 # include <wchar.h>
20157 #endif
20160 #include <stdio.h>
20161 #include <string.h>
20162 #define MVAL(macro) MVAL1(macro)
20163 #define MVAL1(expression) #expression
20164 static const char *macro_values[] =
20166 #ifdef INT8_MAX
20167 MVAL (INT8_MAX),
20168 #endif
20169 #ifdef INT16_MAX
20170 MVAL (INT16_MAX),
20171 #endif
20172 #ifdef INT32_MAX
20173 MVAL (INT32_MAX),
20174 #endif
20175 #ifdef INT64_MAX
20176 MVAL (INT64_MAX),
20177 #endif
20178 #ifdef UINT8_MAX
20179 MVAL (UINT8_MAX),
20180 #endif
20181 #ifdef UINT16_MAX
20182 MVAL (UINT16_MAX),
20183 #endif
20184 #ifdef UINT32_MAX
20185 MVAL (UINT32_MAX),
20186 #endif
20187 #ifdef UINT64_MAX
20188 MVAL (UINT64_MAX),
20189 #endif
20190 NULL
20194 main ()
20197 const char **mv;
20198 for (mv = macro_values; *mv != NULL; mv++)
20200 const char *value = *mv;
20201 /* Test whether it looks like a cast expression. */
20202 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
20203 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
20204 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
20205 || strncmp (value, "((int)"/*)*/, 6) == 0
20206 || strncmp (value, "((signed short)"/*)*/, 15) == 0
20207 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
20208 return mv - macro_values + 1;
20210 return 0;
20213 return 0;
20215 _ACEOF
20216 if ac_fn_c_try_run "$LINENO"; then :
20217 gl_cv_header_working_stdint_h=yes
20219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20220 conftest.$ac_objext conftest.beam conftest.$ac_ext
20225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
20229 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
20231 if test "$gl_cv_header_working_stdint_h" = yes; then
20232 STDINT_H=
20233 else
20234 for ac_header in sys/inttypes.h sys/bitypes.h
20235 do :
20236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20237 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20238 eval as_val=\$$as_ac_Header
20239 if test "x$as_val" = x""yes; then :
20240 cat >>confdefs.h <<_ACEOF
20241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20242 _ACEOF
20246 done
20248 if test $ac_cv_header_sys_inttypes_h = yes; then
20249 HAVE_SYS_INTTYPES_H=1
20250 else
20251 HAVE_SYS_INTTYPES_H=0
20254 if test $ac_cv_header_sys_bitypes_h = yes; then
20255 HAVE_SYS_BITYPES_H=1
20256 else
20257 HAVE_SYS_BITYPES_H=0
20263 if test $APPLE_UNIVERSAL_BUILD = 0; then
20266 for gltype in ptrdiff_t size_t ; do
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20268 $as_echo_n "checking for bit size of $gltype... " >&6; }
20269 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20270 $as_echo_n "(cached) " >&6
20271 else
20272 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20273 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20274 included before <wchar.h>. */
20275 #include <stddef.h>
20276 #include <signal.h>
20277 #if HAVE_WCHAR_H
20278 # include <stdio.h>
20279 # include <time.h>
20280 # include <wchar.h>
20281 #endif
20283 #include <limits.h>"; then :
20285 else
20286 result=unknown
20289 eval gl_cv_bitsizeof_${gltype}=\$result
20292 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20294 $as_echo "$ac_res" >&6; }
20295 eval result=\$gl_cv_bitsizeof_${gltype}
20296 if test $result = unknown; then
20297 result=0
20299 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20300 cat >>confdefs.h <<_ACEOF
20301 #define BITSIZEOF_${GLTYPE} $result
20302 _ACEOF
20304 eval BITSIZEOF_${GLTYPE}=\$result
20305 done
20311 for gltype in sig_atomic_t wchar_t wint_t ; do
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
20313 $as_echo_n "checking for bit size of $gltype... " >&6; }
20314 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
20315 $as_echo_n "(cached) " >&6
20316 else
20317 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
20318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20319 included before <wchar.h>. */
20320 #include <stddef.h>
20321 #include <signal.h>
20322 #if HAVE_WCHAR_H
20323 # include <stdio.h>
20324 # include <time.h>
20325 # include <wchar.h>
20326 #endif
20328 #include <limits.h>"; then :
20330 else
20331 result=unknown
20334 eval gl_cv_bitsizeof_${gltype}=\$result
20337 eval ac_res=\$gl_cv_bitsizeof_${gltype}
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20339 $as_echo "$ac_res" >&6; }
20340 eval result=\$gl_cv_bitsizeof_${gltype}
20341 if test $result = unknown; then
20342 result=0
20344 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20345 cat >>confdefs.h <<_ACEOF
20346 #define BITSIZEOF_${GLTYPE} $result
20347 _ACEOF
20349 eval BITSIZEOF_${GLTYPE}=\$result
20350 done
20355 for gltype in sig_atomic_t wchar_t wint_t ; do
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
20357 $as_echo_n "checking whether $gltype is signed... " >&6; }
20358 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
20359 $as_echo_n "(cached) " >&6
20360 else
20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20362 /* end confdefs.h. */
20364 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20365 included before <wchar.h>. */
20366 #include <stddef.h>
20367 #include <signal.h>
20368 #if HAVE_WCHAR_H
20369 # include <stdio.h>
20370 # include <time.h>
20371 # include <wchar.h>
20372 #endif
20374 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
20376 main ()
20380 return 0;
20382 _ACEOF
20383 if ac_fn_c_try_compile "$LINENO"; then :
20384 result=yes
20385 else
20386 result=no
20388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20389 eval gl_cv_type_${gltype}_signed=\$result
20392 eval ac_res=\$gl_cv_type_${gltype}_signed
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20394 $as_echo "$ac_res" >&6; }
20395 eval result=\$gl_cv_type_${gltype}_signed
20396 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20397 if test "$result" = yes; then
20398 cat >>confdefs.h <<_ACEOF
20399 #define HAVE_SIGNED_${GLTYPE} 1
20400 _ACEOF
20402 eval HAVE_SIGNED_${GLTYPE}=1
20403 else
20404 eval HAVE_SIGNED_${GLTYPE}=0
20406 done
20409 gl_cv_type_ptrdiff_t_signed=yes
20410 gl_cv_type_size_t_signed=no
20411 if test $APPLE_UNIVERSAL_BUILD = 0; then
20414 for gltype in ptrdiff_t size_t ; do
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20416 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20417 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20418 $as_echo_n "(cached) " >&6
20419 else
20420 eval gl_cv_type_${gltype}_suffix=no
20421 eval result=\$gl_cv_type_${gltype}_signed
20422 if test "$result" = yes; then
20423 glsufu=
20424 else
20425 glsufu=u
20427 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20428 case $glsuf in
20429 '') gltype1='int';;
20430 l) gltype1='long int';;
20431 ll) gltype1='long long int';;
20432 i64) gltype1='__int64';;
20433 u) gltype1='unsigned int';;
20434 ul) gltype1='unsigned long int';;
20435 ull) gltype1='unsigned long long int';;
20436 ui64)gltype1='unsigned __int64';;
20437 esac
20438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20439 /* end confdefs.h. */
20441 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20442 included before <wchar.h>. */
20443 #include <stddef.h>
20444 #include <signal.h>
20445 #if HAVE_WCHAR_H
20446 # include <stdio.h>
20447 # include <time.h>
20448 # include <wchar.h>
20449 #endif
20451 extern $gltype foo;
20452 extern $gltype1 foo;
20454 main ()
20458 return 0;
20460 _ACEOF
20461 if ac_fn_c_try_compile "$LINENO"; then :
20462 eval gl_cv_type_${gltype}_suffix=\$glsuf
20464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20465 eval result=\$gl_cv_type_${gltype}_suffix
20466 test "$result" != no && break
20467 done
20469 eval ac_res=\$gl_cv_type_${gltype}_suffix
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20471 $as_echo "$ac_res" >&6; }
20472 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20473 eval result=\$gl_cv_type_${gltype}_suffix
20474 test "$result" = no && result=
20475 eval ${GLTYPE}_SUFFIX=\$result
20476 cat >>confdefs.h <<_ACEOF
20477 #define ${GLTYPE}_SUFFIX $result
20478 _ACEOF
20480 done
20486 for gltype in sig_atomic_t wchar_t wint_t ; do
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
20488 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
20489 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
20490 $as_echo_n "(cached) " >&6
20491 else
20492 eval gl_cv_type_${gltype}_suffix=no
20493 eval result=\$gl_cv_type_${gltype}_signed
20494 if test "$result" = yes; then
20495 glsufu=
20496 else
20497 glsufu=u
20499 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
20500 case $glsuf in
20501 '') gltype1='int';;
20502 l) gltype1='long int';;
20503 ll) gltype1='long long int';;
20504 i64) gltype1='__int64';;
20505 u) gltype1='unsigned int';;
20506 ul) gltype1='unsigned long int';;
20507 ull) gltype1='unsigned long long int';;
20508 ui64)gltype1='unsigned __int64';;
20509 esac
20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511 /* end confdefs.h. */
20513 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20514 included before <wchar.h>. */
20515 #include <stddef.h>
20516 #include <signal.h>
20517 #if HAVE_WCHAR_H
20518 # include <stdio.h>
20519 # include <time.h>
20520 # include <wchar.h>
20521 #endif
20523 extern $gltype foo;
20524 extern $gltype1 foo;
20526 main ()
20530 return 0;
20532 _ACEOF
20533 if ac_fn_c_try_compile "$LINENO"; then :
20534 eval gl_cv_type_${gltype}_suffix=\$glsuf
20536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20537 eval result=\$gl_cv_type_${gltype}_suffix
20538 test "$result" != no && break
20539 done
20541 eval ac_res=\$gl_cv_type_${gltype}_suffix
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20543 $as_echo "$ac_res" >&6; }
20544 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
20545 eval result=\$gl_cv_type_${gltype}_suffix
20546 test "$result" = no && result=
20547 eval ${GLTYPE}_SUFFIX=\$result
20548 cat >>confdefs.h <<_ACEOF
20549 #define ${GLTYPE}_SUFFIX $result
20550 _ACEOF
20552 done
20556 if test $BITSIZEOF_WINT_T -lt 32; then
20557 BITSIZEOF_WINT_T=32
20560 STDINT_H=stdint.h
20563 if test -n "$STDINT_H"; then
20564 GL_GENERATE_STDINT_H_TRUE=
20565 GL_GENERATE_STDINT_H_FALSE='#'
20566 else
20567 GL_GENERATE_STDINT_H_TRUE='#'
20568 GL_GENERATE_STDINT_H_FALSE=
20575 GNULIB_IMAXABS=0;
20576 GNULIB_IMAXDIV=0;
20577 GNULIB_STRTOIMAX=0;
20578 GNULIB_STRTOUMAX=0;
20579 HAVE_DECL_IMAXABS=1;
20580 HAVE_DECL_IMAXDIV=1;
20581 HAVE_DECL_STRTOIMAX=1;
20582 HAVE_DECL_STRTOUMAX=1;
20583 REPLACE_STRTOIMAX=0;
20584 INT32_MAX_LT_INTMAX_MAX=1;
20585 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20586 PRI_MACROS_BROKEN=0;
20587 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20588 UINT32_MAX_LT_UINTMAX_MAX=1;
20589 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20605 if test $gl_cv_have_include_next = yes; then
20606 gl_cv_next_inttypes_h='<'inttypes.h'>'
20607 else
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20609 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20610 if test "${gl_cv_next_inttypes_h+set}" = set; then :
20611 $as_echo_n "(cached) " >&6
20612 else
20614 if test $ac_cv_header_inttypes_h = yes; then
20617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20619 #include <inttypes.h>
20621 _ACEOF
20622 case "$host_os" in
20623 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20624 *) gl_absname_cpp="$ac_cpp" ;;
20625 esac
20627 case "$host_os" in
20628 mingw*)
20629 gl_dirsep_regex='[/\\]'
20632 gl_dirsep_regex='\/'
20634 esac
20635 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20637 gl_header_literal_regex=`echo 'inttypes.h' \
20638 | sed -e "$gl_make_literal_regex_sed"`
20639 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20640 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20641 s|^/[^/]|//&|
20645 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20646 sed -n "$gl_absolute_header_sed"`'"'
20647 else
20648 gl_cv_next_inttypes_h='<'inttypes.h'>'
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
20654 $as_echo "$gl_cv_next_inttypes_h" >&6; }
20656 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
20658 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20659 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20660 gl_next_as_first_directive='<'inttypes.h'>'
20661 else
20662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20663 gl_next_as_first_directive=$gl_cv_next_inttypes_h
20665 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
20677 case "$host_os" in
20678 mingw*)
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20680 $as_echo_n "checking for 64-bit off_t... " >&6; }
20681 if test "${gl_cv_type_off_t_64+set}" = set; then :
20682 $as_echo_n "(cached) " >&6
20683 else
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20686 #include <sys/types.h>
20687 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20690 main ()
20694 return 0;
20696 _ACEOF
20697 if ac_fn_c_try_compile "$LINENO"; then :
20698 gl_cv_type_off_t_64=yes
20699 else
20700 gl_cv_type_off_t_64=no
20702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20706 $as_echo "$gl_cv_type_off_t_64" >&6; }
20707 if test $gl_cv_type_off_t_64 = no; then
20708 WINDOWS_64_BIT_OFF_T=1
20709 else
20710 WINDOWS_64_BIT_OFF_T=0
20712 WINDOWS_64_BIT_ST_SIZE=1
20715 WINDOWS_64_BIT_OFF_T=0
20716 WINDOWS_64_BIT_ST_SIZE=0
20718 esac
20723 GNULIB_FFSL=0;
20724 GNULIB_FFSLL=0;
20725 GNULIB_MEMCHR=0;
20726 GNULIB_MEMMEM=0;
20727 GNULIB_MEMPCPY=0;
20728 GNULIB_MEMRCHR=0;
20729 GNULIB_RAWMEMCHR=0;
20730 GNULIB_STPCPY=0;
20731 GNULIB_STPNCPY=0;
20732 GNULIB_STRCHRNUL=0;
20733 GNULIB_STRDUP=0;
20734 GNULIB_STRNCAT=0;
20735 GNULIB_STRNDUP=0;
20736 GNULIB_STRNLEN=0;
20737 GNULIB_STRPBRK=0;
20738 GNULIB_STRSEP=0;
20739 GNULIB_STRSTR=0;
20740 GNULIB_STRCASESTR=0;
20741 GNULIB_STRTOK_R=0;
20742 GNULIB_MBSLEN=0;
20743 GNULIB_MBSNLEN=0;
20744 GNULIB_MBSCHR=0;
20745 GNULIB_MBSRCHR=0;
20746 GNULIB_MBSSTR=0;
20747 GNULIB_MBSCASECMP=0;
20748 GNULIB_MBSNCASECMP=0;
20749 GNULIB_MBSPCASECMP=0;
20750 GNULIB_MBSCASESTR=0;
20751 GNULIB_MBSCSPN=0;
20752 GNULIB_MBSPBRK=0;
20753 GNULIB_MBSSPN=0;
20754 GNULIB_MBSSEP=0;
20755 GNULIB_MBSTOK_R=0;
20756 GNULIB_STRERROR=0;
20757 GNULIB_STRERROR_R=0;
20758 GNULIB_STRSIGNAL=0;
20759 GNULIB_STRVERSCMP=0;
20760 HAVE_MBSLEN=0;
20761 HAVE_FFSL=1;
20762 HAVE_FFSLL=1;
20763 HAVE_MEMCHR=1;
20764 HAVE_DECL_MEMMEM=1;
20765 HAVE_MEMPCPY=1;
20766 HAVE_DECL_MEMRCHR=1;
20767 HAVE_RAWMEMCHR=1;
20768 HAVE_STPCPY=1;
20769 HAVE_STPNCPY=1;
20770 HAVE_STRCHRNUL=1;
20771 HAVE_DECL_STRDUP=1;
20772 HAVE_DECL_STRNDUP=1;
20773 HAVE_DECL_STRNLEN=1;
20774 HAVE_STRPBRK=1;
20775 HAVE_STRSEP=1;
20776 HAVE_STRCASESTR=1;
20777 HAVE_DECL_STRTOK_R=1;
20778 HAVE_DECL_STRERROR_R=1;
20779 HAVE_DECL_STRSIGNAL=1;
20780 HAVE_STRVERSCMP=1;
20781 REPLACE_MEMCHR=0;
20782 REPLACE_MEMMEM=0;
20783 REPLACE_STPNCPY=0;
20784 REPLACE_STRDUP=0;
20785 REPLACE_STRSTR=0;
20786 REPLACE_STRCASESTR=0;
20787 REPLACE_STRCHRNUL=0;
20788 REPLACE_STRERROR=0;
20789 REPLACE_STRERROR_R=0;
20790 REPLACE_STRNCAT=0;
20791 REPLACE_STRNDUP=0;
20792 REPLACE_STRNLEN=0;
20793 REPLACE_STRSIGNAL=0;
20794 REPLACE_STRTOK_R=0;
20795 UNDEFINE_STRTOK_R=0;
20797 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
20798 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
20799 ac_have_decl=1
20800 else
20801 ac_have_decl=0
20804 cat >>confdefs.h <<_ACEOF
20805 #define HAVE_DECL_MEMRCHR $ac_have_decl
20806 _ACEOF
20811 GNULIB_MKTIME=0;
20812 GNULIB_NANOSLEEP=0;
20813 GNULIB_STRPTIME=0;
20814 GNULIB_TIMEGM=0;
20815 GNULIB_TIME_R=0;
20816 HAVE_DECL_LOCALTIME_R=1;
20817 HAVE_NANOSLEEP=1;
20818 HAVE_STRPTIME=1;
20819 HAVE_TIMEGM=1;
20820 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20821 REPLACE_MKTIME=GNULIB_PORTCHECK;
20822 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20823 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20825 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
20826 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
20827 ac_have_decl=1
20828 else
20829 ac_have_decl=0
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_DECL_ALARM $ac_have_decl
20834 _ACEOF
20839 GNULIB_PSELECT=0;
20840 GNULIB_SELECT=0;
20841 HAVE_PSELECT=1;
20842 REPLACE_PSELECT=0;
20843 REPLACE_SELECT=0;
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
20851 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
20852 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
20853 $as_echo_n "(cached) " >&6
20854 else
20856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20857 /* end confdefs.h. */
20858 #include <sys/select.h>
20860 main ()
20862 struct timeval b;
20864 return 0;
20866 _ACEOF
20867 if ac_fn_c_try_compile "$LINENO"; then :
20868 gl_cv_header_sys_select_h_selfcontained=yes
20869 else
20870 gl_cv_header_sys_select_h_selfcontained=no
20872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
20874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20875 /* end confdefs.h. */
20876 #include <sys/select.h>
20878 main ()
20880 int memset; int bzero;
20882 return 0;
20885 _ACEOF
20886 if ac_fn_c_try_compile "$LINENO"; then :
20887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20889 #include <sys/select.h>
20891 main ()
20894 #undef memset
20895 #define memset nonexistent_memset
20896 extern
20897 #ifdef __cplusplus
20899 #endif
20900 void *memset (void *, int, unsigned long);
20901 #undef bzero
20902 #define bzero nonexistent_bzero
20903 extern
20904 #ifdef __cplusplus
20906 #endif
20907 void bzero (void *, unsigned long);
20908 fd_set fds;
20909 FD_ZERO (&fds);
20912 return 0;
20915 _ACEOF
20916 if ac_fn_c_try_link "$LINENO"; then :
20918 else
20919 gl_cv_header_sys_select_h_selfcontained=no
20921 rm -f core conftest.err conftest.$ac_objext \
20922 conftest$ac_exeext conftest.$ac_ext
20925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
20930 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
20940 if test $gl_cv_have_include_next = yes; then
20941 gl_cv_next_sys_select_h='<'sys/select.h'>'
20942 else
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
20944 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
20945 if test "${gl_cv_next_sys_select_h+set}" = set; then :
20946 $as_echo_n "(cached) " >&6
20947 else
20949 if test $ac_cv_header_sys_select_h = yes; then
20952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20953 /* end confdefs.h. */
20954 #include <sys/select.h>
20956 _ACEOF
20957 case "$host_os" in
20958 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20959 *) gl_absname_cpp="$ac_cpp" ;;
20960 esac
20962 case "$host_os" in
20963 mingw*)
20964 gl_dirsep_regex='[/\\]'
20967 gl_dirsep_regex='\/'
20969 esac
20970 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20972 gl_header_literal_regex=`echo 'sys/select.h' \
20973 | sed -e "$gl_make_literal_regex_sed"`
20974 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20975 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20976 s|^/[^/]|//&|
20980 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20981 sed -n "$gl_absolute_header_sed"`'"'
20982 else
20983 gl_cv_next_sys_select_h='<'sys/select.h'>'
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
20989 $as_echo "$gl_cv_next_sys_select_h" >&6; }
20991 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
20993 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20994 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20995 gl_next_as_first_directive='<'sys/select.h'>'
20996 else
20997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20998 gl_next_as_first_directive=$gl_cv_next_sys_select_h
21000 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
21005 if test $ac_cv_header_sys_select_h = yes; then
21006 HAVE_SYS_SELECT_H=1
21007 else
21008 HAVE_SYS_SELECT_H=0
21015 if test $ac_cv_header_sys_socket_h != yes; then
21016 for ac_header in winsock2.h
21017 do :
21018 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
21019 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
21020 cat >>confdefs.h <<_ACEOF
21021 #define HAVE_WINSOCK2_H 1
21022 _ACEOF
21026 done
21029 if test "$ac_cv_header_winsock2_h" = yes; then
21030 HAVE_WINSOCK2_H=1
21031 UNISTD_H_HAVE_WINSOCK2_H=1
21032 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
21033 else
21034 HAVE_WINSOCK2_H=0
21044 GNULIB_PTHREAD_SIGMASK=0;
21045 GNULIB_RAISE=0;
21046 GNULIB_SIGNAL_H_SIGPIPE=0;
21047 GNULIB_SIGPROCMASK=0;
21048 GNULIB_SIGACTION=0;
21049 HAVE_POSIX_SIGNALBLOCKING=1;
21050 HAVE_PTHREAD_SIGMASK=1;
21051 HAVE_RAISE=1;
21052 HAVE_SIGSET_T=1;
21053 HAVE_SIGINFO_T=1;
21054 HAVE_SIGACTION=1;
21055 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
21057 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
21059 HAVE_SIGHANDLER_T=1;
21060 REPLACE_PTHREAD_SIGMASK=0;
21061 REPLACE_RAISE=0;
21069 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
21070 #include <signal.h>
21071 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
21072 #include <sys/types.h>
21075 if test "x$ac_cv_type_sigset_t" = x""yes; then :
21077 cat >>confdefs.h <<_ACEOF
21078 #define HAVE_SIGSET_T 1
21079 _ACEOF
21081 gl_cv_type_sigset_t=yes
21082 else
21083 gl_cv_type_sigset_t=no
21086 if test $gl_cv_type_sigset_t != yes; then
21087 HAVE_SIGSET_T=0
21092 if test $ac_cv_header_sys_socket_h = no; then
21093 for ac_header in ws2tcpip.h
21094 do :
21095 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
21096 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
21097 cat >>confdefs.h <<_ACEOF
21098 #define HAVE_WS2TCPIP_H 1
21099 _ACEOF
21103 done
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21108 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21109 if test "${ac_cv_header_stdbool_h+set}" = set; then :
21110 $as_echo_n "(cached) " >&6
21111 else
21112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21113 /* end confdefs.h. */
21115 #include <stdbool.h>
21116 #ifndef bool
21117 "error: bool is not defined"
21118 #endif
21119 #ifndef false
21120 "error: false is not defined"
21121 #endif
21122 #if false
21123 "error: false is not 0"
21124 #endif
21125 #ifndef true
21126 "error: true is not defined"
21127 #endif
21128 #if true != 1
21129 "error: true is not 1"
21130 #endif
21131 #ifndef __bool_true_false_are_defined
21132 "error: __bool_true_false_are_defined is not defined"
21133 #endif
21135 struct s { _Bool s: 1; _Bool t; } s;
21137 char a[true == 1 ? 1 : -1];
21138 char b[false == 0 ? 1 : -1];
21139 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21140 char d[(bool) 0.5 == true ? 1 : -1];
21141 /* See body of main program for 'e'. */
21142 char f[(_Bool) 0.0 == false ? 1 : -1];
21143 char g[true];
21144 char h[sizeof (_Bool)];
21145 char i[sizeof s.t];
21146 enum { j = false, k = true, l = false * true, m = true * 256 };
21147 /* The following fails for
21148 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21149 _Bool n[m];
21150 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21151 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21152 /* Catch a bug in an HP-UX C compiler. See
21153 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21154 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21156 _Bool q = true;
21157 _Bool *pq = &q;
21160 main ()
21163 bool e = &s;
21164 *pq |= q;
21165 *pq |= ! q;
21166 /* Refer to every declared value, to avoid compiler optimizations. */
21167 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21168 + !m + !n + !o + !p + !q + !pq);
21171 return 0;
21173 _ACEOF
21174 if ac_fn_c_try_compile "$LINENO"; then :
21175 ac_cv_header_stdbool_h=yes
21176 else
21177 ac_cv_header_stdbool_h=no
21179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21182 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21183 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21184 if test "x$ac_cv_type__Bool" = x""yes; then :
21186 cat >>confdefs.h <<_ACEOF
21187 #define HAVE__BOOL 1
21188 _ACEOF
21195 REPLACE_NULL=0;
21196 HAVE_WCHAR_T=1;
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
21200 $as_echo_n "checking for wchar_t... " >&6; }
21201 if test "${gt_cv_c_wchar_t+set}" = set; then :
21202 $as_echo_n "(cached) " >&6
21203 else
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h. */
21206 #include <stddef.h>
21207 wchar_t foo = (wchar_t)'\0';
21209 main ()
21213 return 0;
21215 _ACEOF
21216 if ac_fn_c_try_compile "$LINENO"; then :
21217 gt_cv_c_wchar_t=yes
21218 else
21219 gt_cv_c_wchar_t=no
21221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
21224 $as_echo "$gt_cv_c_wchar_t" >&6; }
21225 if test $gt_cv_c_wchar_t = yes; then
21227 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
21232 GNULIB_DPRINTF=0;
21233 GNULIB_FCLOSE=0;
21234 GNULIB_FDOPEN=0;
21235 GNULIB_FFLUSH=0;
21236 GNULIB_FGETC=0;
21237 GNULIB_FGETS=0;
21238 GNULIB_FOPEN=0;
21239 GNULIB_FPRINTF=0;
21240 GNULIB_FPRINTF_POSIX=0;
21241 GNULIB_FPURGE=0;
21242 GNULIB_FPUTC=0;
21243 GNULIB_FPUTS=0;
21244 GNULIB_FREAD=0;
21245 GNULIB_FREOPEN=0;
21246 GNULIB_FSCANF=0;
21247 GNULIB_FSEEK=0;
21248 GNULIB_FSEEKO=0;
21249 GNULIB_FTELL=0;
21250 GNULIB_FTELLO=0;
21251 GNULIB_FWRITE=0;
21252 GNULIB_GETC=0;
21253 GNULIB_GETCHAR=0;
21254 GNULIB_GETDELIM=0;
21255 GNULIB_GETLINE=0;
21256 GNULIB_OBSTACK_PRINTF=0;
21257 GNULIB_OBSTACK_PRINTF_POSIX=0;
21258 GNULIB_PCLOSE=0;
21259 GNULIB_PERROR=0;
21260 GNULIB_POPEN=0;
21261 GNULIB_PRINTF=0;
21262 GNULIB_PRINTF_POSIX=0;
21263 GNULIB_PUTC=0;
21264 GNULIB_PUTCHAR=0;
21265 GNULIB_PUTS=0;
21266 GNULIB_REMOVE=0;
21267 GNULIB_RENAME=0;
21268 GNULIB_RENAMEAT=0;
21269 GNULIB_SCANF=0;
21270 GNULIB_SNPRINTF=0;
21271 GNULIB_SPRINTF_POSIX=0;
21272 GNULIB_STDIO_H_NONBLOCKING=0;
21273 GNULIB_STDIO_H_SIGPIPE=0;
21274 GNULIB_TMPFILE=0;
21275 GNULIB_VASPRINTF=0;
21276 GNULIB_VFSCANF=0;
21277 GNULIB_VSCANF=0;
21278 GNULIB_VDPRINTF=0;
21279 GNULIB_VFPRINTF=0;
21280 GNULIB_VFPRINTF_POSIX=0;
21281 GNULIB_VPRINTF=0;
21282 GNULIB_VPRINTF_POSIX=0;
21283 GNULIB_VSNPRINTF=0;
21284 GNULIB_VSPRINTF_POSIX=0;
21285 HAVE_DECL_FPURGE=1;
21286 HAVE_DECL_FSEEKO=1;
21287 HAVE_DECL_FTELLO=1;
21288 HAVE_DECL_GETDELIM=1;
21289 HAVE_DECL_GETLINE=1;
21290 HAVE_DECL_OBSTACK_PRINTF=1;
21291 HAVE_DECL_SNPRINTF=1;
21292 HAVE_DECL_VSNPRINTF=1;
21293 HAVE_DPRINTF=1;
21294 HAVE_FSEEKO=1;
21295 HAVE_FTELLO=1;
21296 HAVE_PCLOSE=1;
21297 HAVE_POPEN=1;
21298 HAVE_RENAMEAT=1;
21299 HAVE_VASPRINTF=1;
21300 HAVE_VDPRINTF=1;
21301 REPLACE_DPRINTF=0;
21302 REPLACE_FCLOSE=0;
21303 REPLACE_FDOPEN=0;
21304 REPLACE_FFLUSH=0;
21305 REPLACE_FOPEN=0;
21306 REPLACE_FPRINTF=0;
21307 REPLACE_FPURGE=0;
21308 REPLACE_FREOPEN=0;
21309 REPLACE_FSEEK=0;
21310 REPLACE_FSEEKO=0;
21311 REPLACE_FTELL=0;
21312 REPLACE_FTELLO=0;
21313 REPLACE_GETDELIM=0;
21314 REPLACE_GETLINE=0;
21315 REPLACE_OBSTACK_PRINTF=0;
21316 REPLACE_PERROR=0;
21317 REPLACE_POPEN=0;
21318 REPLACE_PRINTF=0;
21319 REPLACE_REMOVE=0;
21320 REPLACE_RENAME=0;
21321 REPLACE_RENAMEAT=0;
21322 REPLACE_SNPRINTF=0;
21323 REPLACE_SPRINTF=0;
21324 REPLACE_STDIO_READ_FUNCS=0;
21325 REPLACE_STDIO_WRITE_FUNCS=0;
21326 REPLACE_TMPFILE=0;
21327 REPLACE_VASPRINTF=0;
21328 REPLACE_VDPRINTF=0;
21329 REPLACE_VFPRINTF=0;
21330 REPLACE_VPRINTF=0;
21331 REPLACE_VSNPRINTF=0;
21332 REPLACE_VSPRINTF=0;
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21335 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21336 if test "${ac_cv_struct_tm+set}" = set; then :
21337 $as_echo_n "(cached) " >&6
21338 else
21339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21340 /* end confdefs.h. */
21341 #include <sys/types.h>
21342 #include <time.h>
21345 main ()
21347 struct tm tm;
21348 int *p = &tm.tm_sec;
21349 return !p;
21351 return 0;
21353 _ACEOF
21354 if ac_fn_c_try_compile "$LINENO"; then :
21355 ac_cv_struct_tm=time.h
21356 else
21357 ac_cv_struct_tm=sys/time.h
21359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21362 $as_echo "$ac_cv_struct_tm" >&6; }
21363 if test $ac_cv_struct_tm = sys/time.h; then
21365 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21369 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21370 #include <$ac_cv_struct_tm>
21373 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21375 cat >>confdefs.h <<_ACEOF
21376 #define HAVE_STRUCT_TM_TM_ZONE 1
21377 _ACEOF
21382 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21384 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21386 else
21387 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21389 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21390 ac_have_decl=1
21391 else
21392 ac_have_decl=0
21395 cat >>confdefs.h <<_ACEOF
21396 #define HAVE_DECL_TZNAME $ac_have_decl
21397 _ACEOF
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21400 $as_echo_n "checking for tzname... " >&6; }
21401 if test "${ac_cv_var_tzname+set}" = set; then :
21402 $as_echo_n "(cached) " >&6
21403 else
21404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21405 /* end confdefs.h. */
21406 #include <time.h>
21407 #if !HAVE_DECL_TZNAME
21408 extern char *tzname[];
21409 #endif
21412 main ()
21414 return tzname[0][0];
21416 return 0;
21418 _ACEOF
21419 if ac_fn_c_try_link "$LINENO"; then :
21420 ac_cv_var_tzname=yes
21421 else
21422 ac_cv_var_tzname=no
21424 rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21428 $as_echo "$ac_cv_var_tzname" >&6; }
21429 if test $ac_cv_var_tzname = yes; then
21431 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21437 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21439 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
21441 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
21457 if test $gl_cv_have_include_next = yes; then
21458 gl_cv_next_string_h='<'string.h'>'
21459 else
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21461 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21462 if test "${gl_cv_next_string_h+set}" = set; then :
21463 $as_echo_n "(cached) " >&6
21464 else
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h. */
21468 #include <string.h>
21470 _ACEOF
21471 case "$host_os" in
21472 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21473 *) gl_absname_cpp="$ac_cpp" ;;
21474 esac
21476 case "$host_os" in
21477 mingw*)
21478 gl_dirsep_regex='[/\\]'
21481 gl_dirsep_regex='\/'
21483 esac
21484 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21486 gl_header_literal_regex=`echo 'string.h' \
21487 | sed -e "$gl_make_literal_regex_sed"`
21488 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21489 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21490 s|^/[^/]|//&|
21494 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21495 sed -n "$gl_absolute_header_sed"`'"'
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21500 $as_echo "$gl_cv_next_string_h" >&6; }
21502 NEXT_STRING_H=$gl_cv_next_string_h
21504 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21506 gl_next_as_first_directive='<'string.h'>'
21507 else
21508 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21509 gl_next_as_first_directive=$gl_cv_next_string_h
21511 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21521 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
21522 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
21523 ac_have_decl=1
21524 else
21525 ac_have_decl=0
21528 cat >>confdefs.h <<_ACEOF
21529 #define HAVE_DECL_STRTOIMAX $ac_have_decl
21530 _ACEOF
21534 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
21535 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
21536 ac_have_decl=1
21537 else
21538 ac_have_decl=0
21541 cat >>confdefs.h <<_ACEOF
21542 #define HAVE_DECL_STRTOUMAX $ac_have_decl
21543 _ACEOF
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21548 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21549 if test "${ac_cv_header_stat_broken+set}" = set; then :
21550 $as_echo_n "(cached) " >&6
21551 else
21552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553 /* end confdefs.h. */
21554 #include <sys/types.h>
21555 #include <sys/stat.h>
21557 #if defined S_ISBLK && defined S_IFDIR
21558 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21559 #endif
21561 #if defined S_ISBLK && defined S_IFCHR
21562 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21563 #endif
21565 #if defined S_ISLNK && defined S_IFREG
21566 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21567 #endif
21569 #if defined S_ISSOCK && defined S_IFREG
21570 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21571 #endif
21573 _ACEOF
21574 if ac_fn_c_try_compile "$LINENO"; then :
21575 ac_cv_header_stat_broken=no
21576 else
21577 ac_cv_header_stat_broken=yes
21579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21582 $as_echo "$ac_cv_header_stat_broken" >&6; }
21583 if test $ac_cv_header_stat_broken = yes; then
21585 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
21594 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21595 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
21596 $as_echo_n "(cached) " >&6
21597 else
21598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21599 /* end confdefs.h. */
21600 #include <time.h>
21603 main ()
21605 static struct timespec x; x.tv_sec = x.tv_nsec;
21607 return 0;
21609 _ACEOF
21610 if ac_fn_c_try_compile "$LINENO"; then :
21611 gl_cv_sys_struct_timespec_in_time_h=yes
21612 else
21613 gl_cv_sys_struct_timespec_in_time_h=no
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21618 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21620 TIME_H_DEFINES_STRUCT_TIMESPEC=0
21621 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21622 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
21623 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21624 TIME_H_DEFINES_STRUCT_TIMESPEC=1
21625 else
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
21627 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21628 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
21629 $as_echo_n "(cached) " >&6
21630 else
21631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21632 /* end confdefs.h. */
21633 #include <sys/time.h>
21636 main ()
21638 static struct timespec x; x.tv_sec = x.tv_nsec;
21640 return 0;
21642 _ACEOF
21643 if ac_fn_c_try_compile "$LINENO"; then :
21644 gl_cv_sys_struct_timespec_in_sys_time_h=yes
21645 else
21646 gl_cv_sys_struct_timespec_in_sys_time_h=no
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21651 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21652 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21653 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21654 else
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
21656 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
21657 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21659 else
21660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h. */
21662 #include <pthread.h>
21665 main ()
21667 static struct timespec x; x.tv_sec = x.tv_nsec;
21669 return 0;
21671 _ACEOF
21672 if ac_fn_c_try_compile "$LINENO"; then :
21673 gl_cv_sys_struct_timespec_in_pthread_h=yes
21674 else
21675 gl_cv_sys_struct_timespec_in_pthread_h=no
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
21680 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
21681 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
21682 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
21701 if test $gl_cv_have_include_next = yes; then
21702 gl_cv_next_time_h='<'time.h'>'
21703 else
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
21705 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21706 if test "${gl_cv_next_time_h+set}" = set; then :
21707 $as_echo_n "(cached) " >&6
21708 else
21710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21711 /* end confdefs.h. */
21712 #include <time.h>
21714 _ACEOF
21715 case "$host_os" in
21716 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21717 *) gl_absname_cpp="$ac_cpp" ;;
21718 esac
21720 case "$host_os" in
21721 mingw*)
21722 gl_dirsep_regex='[/\\]'
21725 gl_dirsep_regex='\/'
21727 esac
21728 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21730 gl_header_literal_regex=`echo 'time.h' \
21731 | sed -e "$gl_make_literal_regex_sed"`
21732 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21733 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21734 s|^/[^/]|//&|
21738 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21739 sed -n "$gl_absolute_header_sed"`'"'
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
21744 $as_echo "$gl_cv_next_time_h" >&6; }
21746 NEXT_TIME_H=$gl_cv_next_time_h
21748 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21749 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21750 gl_next_as_first_directive='<'time.h'>'
21751 else
21752 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21753 gl_next_as_first_directive=$gl_cv_next_time_h
21755 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21770 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
21771 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
21772 ac_have_decl=1
21773 else
21774 ac_have_decl=0
21777 cat >>confdefs.h <<_ACEOF
21778 #define HAVE_DECL_UNSETENV $ac_have_decl
21779 _ACEOF
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
21783 $as_echo_n "checking whether the utimes function works... " >&6; }
21784 if test "${gl_cv_func_working_utimes+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21786 else
21788 if test "$cross_compiling" = yes; then :
21789 gl_cv_func_working_utimes=no
21790 else
21791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21792 /* end confdefs.h. */
21794 #include <sys/types.h>
21795 #include <sys/stat.h>
21796 #include <fcntl.h>
21797 #include <sys/time.h>
21798 #include <time.h>
21799 #include <unistd.h>
21800 #include <stdlib.h>
21801 #include <stdio.h>
21802 #include <utime.h>
21804 static int
21805 inorder (time_t a, time_t b, time_t c)
21807 return a <= b && b <= c;
21811 main ()
21813 int result = 0;
21814 char const *file = "conftest.utimes";
21815 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21817 /* Test whether utimes() essentially works. */
21819 struct stat sbuf;
21820 FILE *f = fopen (file, "w");
21821 if (f == NULL)
21822 result |= 1;
21823 else if (fclose (f) != 0)
21824 result |= 1;
21825 else if (utimes (file, timeval) != 0)
21826 result |= 2;
21827 else if (lstat (file, &sbuf) != 0)
21828 result |= 1;
21829 else if (!(sbuf.st_atime == timeval[0].tv_sec
21830 && sbuf.st_mtime == timeval[1].tv_sec))
21831 result |= 4;
21832 if (unlink (file) != 0)
21833 result |= 1;
21836 /* Test whether utimes() with a NULL argument sets the file's timestamp
21837 to the current time. Use 'fstat' as well as 'time' to
21838 determine the "current" time, to accommodate NFS file systems
21839 if there is a time skew between the host and the NFS server. */
21841 int fd = open (file, O_WRONLY|O_CREAT, 0644);
21842 if (fd < 0)
21843 result |= 1;
21844 else
21846 time_t t0, t2;
21847 struct stat st0, st1, st2;
21848 if (time (&t0) == (time_t) -1)
21849 result |= 1;
21850 else if (fstat (fd, &st0) != 0)
21851 result |= 1;
21852 else if (utimes (file, timeval) != 0)
21853 result |= 2;
21854 else if (utimes (file, NULL) != 0)
21855 result |= 8;
21856 else if (fstat (fd, &st1) != 0)
21857 result |= 1;
21858 else if (write (fd, "\n", 1) != 1)
21859 result |= 1;
21860 else if (fstat (fd, &st2) != 0)
21861 result |= 1;
21862 else if (time (&t2) == (time_t) -1)
21863 result |= 1;
21864 else
21866 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
21867 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
21868 if (! (st1.st_atime == st1.st_mtime))
21869 result |= 16;
21870 if (! (m_ok_POSIX || m_ok_NFS))
21871 result |= 32;
21873 if (close (fd) != 0)
21874 result |= 1;
21876 if (unlink (file) != 0)
21877 result |= 1;
21880 /* Test whether utimes() with a NULL argument works on read-only files. */
21882 int fd = open (file, O_WRONLY|O_CREAT, 0444);
21883 if (fd < 0)
21884 result |= 1;
21885 else if (close (fd) != 0)
21886 result |= 1;
21887 else if (utimes (file, NULL) != 0)
21888 result |= 64;
21889 if (unlink (file) != 0)
21890 result |= 1;
21893 return result;
21896 _ACEOF
21897 if ac_fn_c_try_run "$LINENO"; then :
21898 gl_cv_func_working_utimes=yes
21899 else
21900 gl_cv_func_working_utimes=no
21902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21903 conftest.$ac_objext conftest.beam conftest.$ac_ext
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
21908 $as_echo "$gl_cv_func_working_utimes" >&6; }
21910 if test $gl_cv_func_working_utimes = yes; then
21912 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
21921 $as_echo_n "checking for struct utimbuf... " >&6; }
21922 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21924 else
21925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21926 /* end confdefs.h. */
21927 #if HAVE_SYS_TIME_H
21928 #include <sys/time.h>
21929 #endif
21930 #include <time.h>
21931 #ifdef HAVE_UTIME_H
21932 #include <utime.h>
21933 #endif
21936 main ()
21938 static struct utimbuf x; x.actime = x.modtime;
21940 return 0;
21942 _ACEOF
21943 if ac_fn_c_try_compile "$LINENO"; then :
21944 gl_cv_sys_struct_utimbuf=yes
21945 else
21946 gl_cv_sys_struct_utimbuf=no
21948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
21951 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
21953 if test $gl_cv_sys_struct_utimbuf = yes; then
21955 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
21970 $as_echo_n "checking type of array argument to getgroups... " >&6; }
21971 if test "${ac_cv_type_getgroups+set}" = set; then :
21972 $as_echo_n "(cached) " >&6
21973 else
21974 if test "$cross_compiling" = yes; then :
21975 ac_cv_type_getgroups=cross
21976 else
21977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21978 /* end confdefs.h. */
21979 /* Thanks to Mike Rendell for this test. */
21980 $ac_includes_default
21981 #define NGID 256
21982 #undef MAX
21983 #define MAX(x, y) ((x) > (y) ? (x) : (y))
21986 main ()
21988 gid_t gidset[NGID];
21989 int i, n;
21990 union { gid_t gval; long int lval; } val;
21992 val.lval = -1;
21993 for (i = 0; i < NGID; i++)
21994 gidset[i] = val.gval;
21995 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
21996 gidset);
21997 /* Exit non-zero if getgroups seems to require an array of ints. This
21998 happens when gid_t is short int but getgroups modifies an array
21999 of ints. */
22000 return n > 0 && gidset[n] != val.gval;
22002 _ACEOF
22003 if ac_fn_c_try_run "$LINENO"; then :
22004 ac_cv_type_getgroups=gid_t
22005 else
22006 ac_cv_type_getgroups=int
22008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22009 conftest.$ac_objext conftest.beam conftest.$ac_ext
22012 if test $ac_cv_type_getgroups = cross; then
22013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014 /* end confdefs.h. */
22015 #include <unistd.h>
22017 _ACEOF
22018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22019 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
22020 ac_cv_type_getgroups=gid_t
22021 else
22022 ac_cv_type_getgroups=int
22024 rm -f conftest*
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
22029 $as_echo "$ac_cv_type_getgroups" >&6; }
22031 cat >>confdefs.h <<_ACEOF
22032 #define GETGROUPS_T $ac_cv_type_getgroups
22033 _ACEOF
22042 if false; then
22043 GL_COND_LIBTOOL_TRUE=
22044 GL_COND_LIBTOOL_FALSE='#'
22045 else
22046 GL_COND_LIBTOOL_TRUE='#'
22047 GL_COND_LIBTOOL_FALSE=
22050 gl_cond_libtool=false
22051 gl_libdeps=
22052 gl_ltlibdeps=
22053 gl_m4_base='m4'
22063 gl_source_base='lib'
22066 if test $ac_cv_func_alloca_works = no; then
22070 # Define an additional variable used in the Makefile substitution.
22071 if test $ac_cv_working_alloca_h = yes; then
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
22073 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22074 if test "${gl_cv_rpl_alloca+set}" = set; then :
22075 $as_echo_n "(cached) " >&6
22076 else
22078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22079 /* end confdefs.h. */
22081 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22082 Need own alloca
22083 #endif
22085 _ACEOF
22086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22087 $EGREP "Need own alloca" >/dev/null 2>&1; then :
22088 gl_cv_rpl_alloca=yes
22089 else
22090 gl_cv_rpl_alloca=no
22092 rm -f conftest*
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
22097 $as_echo "$gl_cv_rpl_alloca" >&6; }
22098 if test $gl_cv_rpl_alloca = yes; then
22100 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
22102 ALLOCA_H=alloca.h
22103 else
22104 ALLOCA_H=
22106 else
22107 ALLOCA_H=alloca.h
22110 if test -n "$ALLOCA_H"; then
22111 GL_GENERATE_ALLOCA_H_TRUE=
22112 GL_GENERATE_ALLOCA_H_FALSE='#'
22113 else
22114 GL_GENERATE_ALLOCA_H_TRUE='#'
22115 GL_GENERATE_ALLOCA_H_FALSE=
22123 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
22124 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22126 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
22127 # programs in the package would end up linked with that potentially-shared
22128 # library, inducing unnecessary run-time overhead.
22129 LIB_CLOCK_GETTIME=
22131 gl_saved_libs=$LIBS
22132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22133 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22134 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22135 $as_echo_n "(cached) " >&6
22136 else
22137 ac_func_search_save_LIBS=$LIBS
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22141 /* Override any GCC internal prototype to avoid an error.
22142 Use char because int might match the return type of a GCC
22143 builtin and then its argument prototype would still apply. */
22144 #ifdef __cplusplus
22145 extern "C"
22146 #endif
22147 char clock_gettime ();
22149 main ()
22151 return clock_gettime ();
22153 return 0;
22155 _ACEOF
22156 for ac_lib in '' rt posix4; do
22157 if test -z "$ac_lib"; then
22158 ac_res="none required"
22159 else
22160 ac_res=-l$ac_lib
22161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22163 if ac_fn_c_try_link "$LINENO"; then :
22164 ac_cv_search_clock_gettime=$ac_res
22166 rm -f core conftest.err conftest.$ac_objext \
22167 conftest$ac_exeext
22168 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22169 break
22171 done
22172 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22174 else
22175 ac_cv_search_clock_gettime=no
22177 rm conftest.$ac_ext
22178 LIBS=$ac_func_search_save_LIBS
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22181 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22182 ac_res=$ac_cv_search_clock_gettime
22183 if test "$ac_res" != no; then :
22184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22185 test "$ac_cv_search_clock_gettime" = "none required" ||
22186 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
22189 for ac_func in clock_gettime clock_settime
22190 do :
22191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22193 eval as_val=\$$as_ac_var
22194 if test "x$as_val" = x""yes; then :
22195 cat >>confdefs.h <<_ACEOF
22196 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22197 _ACEOF
22200 done
22202 LIBS=$gl_saved_libs
22209 cat >>confdefs.h <<_ACEOF
22210 #define GNULIB_CLOSE_STREAM 1
22211 _ACEOF
22240 if test $gl_cv_have_include_next = yes; then
22241 gl_cv_next_dirent_h='<'dirent.h'>'
22242 else
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
22244 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
22245 if test "${gl_cv_next_dirent_h+set}" = set; then :
22246 $as_echo_n "(cached) " >&6
22247 else
22249 if test $ac_cv_header_dirent_h = yes; then
22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22254 #include <dirent.h>
22256 _ACEOF
22257 case "$host_os" in
22258 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22259 *) gl_absname_cpp="$ac_cpp" ;;
22260 esac
22262 case "$host_os" in
22263 mingw*)
22264 gl_dirsep_regex='[/\\]'
22267 gl_dirsep_regex='\/'
22269 esac
22270 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22272 gl_header_literal_regex=`echo 'dirent.h' \
22273 | sed -e "$gl_make_literal_regex_sed"`
22274 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22275 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22276 s|^/[^/]|//&|
22280 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22281 sed -n "$gl_absolute_header_sed"`'"'
22282 else
22283 gl_cv_next_dirent_h='<'dirent.h'>'
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
22289 $as_echo "$gl_cv_next_dirent_h" >&6; }
22291 NEXT_DIRENT_H=$gl_cv_next_dirent_h
22293 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22294 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22295 gl_next_as_first_directive='<'dirent.h'>'
22296 else
22297 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22298 gl_next_as_first_directive=$gl_cv_next_dirent_h
22300 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
22305 if test $ac_cv_header_dirent_h = yes; then
22306 HAVE_DIRENT_H=1
22307 else
22308 HAVE_DIRENT_H=0
22320 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
22323 if test $HAVE_DUP2 = 1; then
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
22325 $as_echo_n "checking whether dup2 works... " >&6; }
22326 if test "${gl_cv_func_dup2_works+set}" = set; then :
22327 $as_echo_n "(cached) " >&6
22328 else
22329 if test "$cross_compiling" = yes; then :
22330 case "$host_os" in
22331 mingw*) # on this platform, dup2 always returns 0 for success
22332 gl_cv_func_dup2_works="guessing no" ;;
22333 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
22334 gl_cv_func_dup2_works="guessing no" ;;
22335 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
22336 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
22337 gl_cv_func_dup2_works="guessing no" ;;
22338 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
22339 gl_cv_func_dup2_works="guessing no" ;;
22340 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
22341 gl_cv_func_dup2_works="guessing no" ;;
22342 *) gl_cv_func_dup2_works="guessing yes" ;;
22343 esac
22344 else
22345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22346 /* end confdefs.h. */
22348 #include <unistd.h>
22349 #include <fcntl.h>
22350 #include <errno.h>
22352 main ()
22354 int result = 0;
22355 #ifdef FD_CLOEXEC
22356 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
22357 result |= 1;
22358 #endif
22359 if (dup2 (1, 1) == 0)
22360 result |= 2;
22361 #ifdef FD_CLOEXEC
22362 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
22363 result |= 4;
22364 #endif
22365 close (0);
22366 if (dup2 (0, 0) != -1)
22367 result |= 8;
22368 /* Many gnulib modules require POSIX conformance of EBADF. */
22369 if (dup2 (2, 1000000) == -1 && errno != EBADF)
22370 result |= 16;
22371 /* Flush out a cygwin core dump. */
22372 if (dup2 (2, -1) != -1 || errno != EBADF)
22373 result |= 32;
22374 return result;
22377 return 0;
22380 _ACEOF
22381 if ac_fn_c_try_run "$LINENO"; then :
22382 gl_cv_func_dup2_works=yes
22383 else
22384 gl_cv_func_dup2_works=no
22386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22387 conftest.$ac_objext conftest.beam conftest.$ac_ext
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
22393 $as_echo "$gl_cv_func_dup2_works" >&6; }
22394 case "$gl_cv_func_dup2_works" in
22395 *yes) ;;
22397 REPLACE_DUP2=1
22399 esac
22403 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
22412 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
22421 GNULIB_DUP2=1
22433 GNULIB_ENVIRON=1
22443 LIB_EXECINFO=''
22444 EXECINFO_H='execinfo.h'
22446 if test $ac_cv_header_execinfo_h = yes; then
22447 gl_saved_libs=$LIBS
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
22449 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
22450 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22451 $as_echo_n "(cached) " >&6
22452 else
22453 ac_func_search_save_LIBS=$LIBS
22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455 /* end confdefs.h. */
22457 /* Override any GCC internal prototype to avoid an error.
22458 Use char because int might match the return type of a GCC
22459 builtin and then its argument prototype would still apply. */
22460 #ifdef __cplusplus
22461 extern "C"
22462 #endif
22463 char backtrace_symbols_fd ();
22465 main ()
22467 return backtrace_symbols_fd ();
22469 return 0;
22471 _ACEOF
22472 for ac_lib in '' execinfo; do
22473 if test -z "$ac_lib"; then
22474 ac_res="none required"
22475 else
22476 ac_res=-l$ac_lib
22477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22479 if ac_fn_c_try_link "$LINENO"; then :
22480 ac_cv_search_backtrace_symbols_fd=$ac_res
22482 rm -f core conftest.err conftest.$ac_objext \
22483 conftest$ac_exeext
22484 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22485 break
22487 done
22488 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
22490 else
22491 ac_cv_search_backtrace_symbols_fd=no
22493 rm conftest.$ac_ext
22494 LIBS=$ac_func_search_save_LIBS
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
22497 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
22498 ac_res=$ac_cv_search_backtrace_symbols_fd
22499 if test "$ac_res" != no; then :
22500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22501 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
22502 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
22505 LIBS=$gl_saved_libs
22506 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
22509 if test -n "$EXECINFO_H"; then
22518 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
22524 if test -n "$EXECINFO_H"; then
22525 GL_GENERATE_EXECINFO_H_TRUE=
22526 GL_GENERATE_EXECINFO_H_FALSE='#'
22527 else
22528 GL_GENERATE_EXECINFO_H_TRUE='#'
22529 GL_GENERATE_EXECINFO_H_FALSE=
22540 if test $ac_cv_func_faccessat = no; then
22541 HAVE_FACCESSAT=0
22544 if test $HAVE_FACCESSAT = 0; then
22553 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
22556 for ac_func in access
22557 do :
22558 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
22559 if test "x$ac_cv_func_access" = x""yes; then :
22560 cat >>confdefs.h <<_ACEOF
22561 #define HAVE_ACCESS 1
22562 _ACEOF
22565 done
22571 cat >>confdefs.h <<_ACEOF
22572 #define GNULIB_FACCESSAT 1
22573 _ACEOF
22581 GNULIB_FACCESSAT=1
22592 if test $ac_cv_func_fcntl = no; then
22596 if test $ac_cv_func_fcntl = no; then
22597 HAVE_FCNTL=0
22598 else
22599 REPLACE_FCNTL=1
22602 else
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
22604 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
22605 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then :
22606 $as_echo_n "(cached) " >&6
22607 else
22608 if test "$cross_compiling" = yes; then :
22609 # Guess that it works on glibc systems
22610 case $host_os in #((
22611 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
22612 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
22613 esac
22614 else
22615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616 /* end confdefs.h. */
22618 #include <fcntl.h>
22619 #include <errno.h>
22622 main ()
22624 int result = 0;
22625 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
22626 if (errno != EINVAL) result |= 2;
22627 return result;
22630 return 0;
22632 _ACEOF
22633 if ac_fn_c_try_run "$LINENO"; then :
22634 gl_cv_func_fcntl_f_dupfd_works=yes
22635 else
22636 gl_cv_func_fcntl_f_dupfd_works=no
22638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22639 conftest.$ac_objext conftest.beam conftest.$ac_ext
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
22644 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
22645 case $gl_cv_func_fcntl_f_dupfd_works in
22646 *yes) ;;
22650 if test $ac_cv_func_fcntl = no; then
22651 HAVE_FCNTL=0
22652 else
22653 REPLACE_FCNTL=1
22657 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
22659 esac
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
22662 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
22663 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then :
22664 $as_echo_n "(cached) " >&6
22665 else
22666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22667 /* end confdefs.h. */
22669 #include <fcntl.h>
22670 #ifndef F_DUPFD_CLOEXEC
22671 choke me
22672 #endif
22675 main ()
22679 return 0;
22681 _ACEOF
22682 if ac_fn_c_try_compile "$LINENO"; then :
22683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22684 /* end confdefs.h. */
22686 #ifdef __linux__
22687 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
22688 it to support the semantics on older kernels that failed with EINVAL. */
22689 choke me
22690 #endif
22693 main ()
22697 return 0;
22699 _ACEOF
22700 if ac_fn_c_try_compile "$LINENO"; then :
22701 gl_cv_func_fcntl_f_dupfd_cloexec=yes
22702 else
22703 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
22705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706 else
22707 gl_cv_func_fcntl_f_dupfd_cloexec=no
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
22712 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
22713 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
22717 if test $ac_cv_func_fcntl = no; then
22718 HAVE_FCNTL=0
22719 else
22720 REPLACE_FCNTL=1
22727 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
22736 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
22744 GNULIB_FCNTL=1
22761 if test $gl_cv_have_include_next = yes; then
22762 gl_cv_next_fcntl_h='<'fcntl.h'>'
22763 else
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
22765 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
22766 if test "${gl_cv_next_fcntl_h+set}" = set; then :
22767 $as_echo_n "(cached) " >&6
22768 else
22770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22771 /* end confdefs.h. */
22772 #include <fcntl.h>
22774 _ACEOF
22775 case "$host_os" in
22776 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22777 *) gl_absname_cpp="$ac_cpp" ;;
22778 esac
22780 case "$host_os" in
22781 mingw*)
22782 gl_dirsep_regex='[/\\]'
22785 gl_dirsep_regex='\/'
22787 esac
22788 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22790 gl_header_literal_regex=`echo 'fcntl.h' \
22791 | sed -e "$gl_make_literal_regex_sed"`
22792 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22793 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22794 s|^/[^/]|//&|
22798 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22799 sed -n "$gl_absolute_header_sed"`'"'
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
22804 $as_echo "$gl_cv_next_fcntl_h" >&6; }
22806 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
22808 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22809 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22810 gl_next_as_first_directive='<'fcntl.h'>'
22811 else
22812 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22813 gl_next_as_first_directive=$gl_cv_next_fcntl_h
22815 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
22831 LIB_FDATASYNC=
22834 if test $ac_cv_have_decl_fdatasync = no; then
22835 HAVE_DECL_FDATASYNC=0
22836 for ac_func in fdatasync
22837 do :
22838 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
22839 if test "x$ac_cv_func_fdatasync" = x""yes; then :
22840 cat >>confdefs.h <<_ACEOF
22841 #define HAVE_FDATASYNC 1
22842 _ACEOF
22845 done
22847 if test $ac_cv_func_fdatasync = no; then
22848 HAVE_FDATASYNC=0
22850 else
22851 gl_saved_libs=$LIBS
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
22853 $as_echo_n "checking for library containing fdatasync... " >&6; }
22854 if test "${ac_cv_search_fdatasync+set}" = set; then :
22855 $as_echo_n "(cached) " >&6
22856 else
22857 ac_func_search_save_LIBS=$LIBS
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h. */
22861 /* Override any GCC internal prototype to avoid an error.
22862 Use char because int might match the return type of a GCC
22863 builtin and then its argument prototype would still apply. */
22864 #ifdef __cplusplus
22865 extern "C"
22866 #endif
22867 char fdatasync ();
22869 main ()
22871 return fdatasync ();
22873 return 0;
22875 _ACEOF
22876 for ac_lib in '' rt posix4; do
22877 if test -z "$ac_lib"; then
22878 ac_res="none required"
22879 else
22880 ac_res=-l$ac_lib
22881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22883 if ac_fn_c_try_link "$LINENO"; then :
22884 ac_cv_search_fdatasync=$ac_res
22886 rm -f core conftest.err conftest.$ac_objext \
22887 conftest$ac_exeext
22888 if test "${ac_cv_search_fdatasync+set}" = set; then :
22889 break
22891 done
22892 if test "${ac_cv_search_fdatasync+set}" = set; then :
22894 else
22895 ac_cv_search_fdatasync=no
22897 rm conftest.$ac_ext
22898 LIBS=$ac_func_search_save_LIBS
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
22901 $as_echo "$ac_cv_search_fdatasync" >&6; }
22902 ac_res=$ac_cv_search_fdatasync
22903 if test "$ac_res" != no; then :
22904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22905 test "$ac_cv_search_fdatasync" = "none required" ||
22906 LIB_FDATASYNC=$ac_cv_search_fdatasync
22909 LIBS=$gl_saved_libs
22912 if test $HAVE_FDATASYNC = 0; then
22921 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
22929 GNULIB_FDATASYNC=1
22940 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
22941 #include <dirent.h>
22944 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
22945 ac_have_decl=1
22946 else
22947 ac_have_decl=0
22950 cat >>confdefs.h <<_ACEOF
22951 #define HAVE_DECL_FDOPENDIR $ac_have_decl
22952 _ACEOF
22953 if test $ac_have_decl = 1; then :
22955 else
22956 HAVE_DECL_FDOPENDIR=0
22960 if test $ac_cv_func_fdopendir = no; then
22961 HAVE_FDOPENDIR=0
22962 else
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
22964 $as_echo_n "checking whether fdopendir works... " >&6; }
22965 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
22966 $as_echo_n "(cached) " >&6
22967 else
22968 if test "$cross_compiling" = yes; then :
22969 case "$host_os" in
22970 # Guess yes on glibc systems.
22971 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
22972 # If we don't know, assume the worst.
22973 *) gl_cv_func_fdopendir_works="guessing no" ;;
22974 esac
22976 else
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978 /* end confdefs.h. */
22980 #include <dirent.h>
22981 #include <fcntl.h>
22982 #include <unistd.h>
22983 #if !HAVE_DECL_FDOPENDIR
22984 extern
22985 # ifdef __cplusplus
22987 # endif
22988 DIR *fdopendir (int);
22989 #endif
22992 main ()
22994 int result = 0;
22995 int fd = open ("conftest.c", O_RDONLY);
22996 if (fd < 0) result |= 1;
22997 if (fdopendir (fd)) result |= 2;
22998 if (close (fd)) result |= 4;
22999 return result;
23001 return 0;
23003 _ACEOF
23004 if ac_fn_c_try_run "$LINENO"; then :
23005 gl_cv_func_fdopendir_works=yes
23006 else
23007 gl_cv_func_fdopendir_works=no
23009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23010 conftest.$ac_objext conftest.beam conftest.$ac_ext
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
23015 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
23016 case "$gl_cv_func_fdopendir_works" in
23017 *yes) ;;
23019 REPLACE_FDOPENDIR=1
23021 esac
23024 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
23033 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
23041 GNULIB_FDOPENDIR=1
23049 cat >>confdefs.h <<_ACEOF
23050 #define GNULIB_FDOPENDIR 1
23051 _ACEOF
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpending" >&5
23061 $as_echo_n "checking for __fpending... " >&6; }
23062 if test "${gl_cv_func___fpending+set}" = set; then :
23063 $as_echo_n "(cached) " >&6
23064 else
23066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23067 /* end confdefs.h. */
23068 #include <stdio.h>
23069 #if HAVE_STDIO_EXT_H
23070 # include <stdio_ext.h>
23071 #endif
23074 main ()
23076 return ! __fpending (stdin);
23078 return 0;
23080 _ACEOF
23081 if ac_fn_c_try_link "$LINENO"; then :
23082 gl_cv_func___fpending=yes
23083 else
23084 gl_cv_func___fpending=no
23086 rm -f core conftest.err conftest.$ac_objext \
23087 conftest$ac_exeext conftest.$ac_ext
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func___fpending" >&5
23091 $as_echo "$gl_cv_func___fpending" >&6; }
23093 if test $gl_cv_func___fpending = no; then
23102 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
23106 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
23107 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
23108 $as_echo_n "(cached) " >&6
23109 else
23111 for ac_expr in \
23113 '# glibc2' \
23114 'fp->_IO_write_ptr - fp->_IO_write_base' \
23116 '# traditional Unix' \
23117 'fp->_ptr - fp->_base' \
23119 '# BSD' \
23120 'fp->_p - fp->_bf._base' \
23122 '# SCO, Unixware' \
23123 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
23125 '# QNX' \
23126 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
23128 '# old glibc?' \
23129 'fp->__bufp - fp->__buffer' \
23131 '# old glibc iostream?' \
23132 'fp->_pptr - fp->_pbase' \
23134 '# emx+gcc' \
23135 'fp->_ptr - fp->_buffer' \
23137 '# Minix' \
23138 'fp->_ptr - fp->_buf' \
23140 '# Plan9' \
23141 'fp->wp - fp->buf' \
23143 '# VMS' \
23144 '(*fp)->_ptr - (*fp)->_base' \
23146 '# e.g., DGUX R4.11; the info is not available' \
23148 ; do
23150 # Skip each embedded comment.
23151 case "$ac_expr" in '#'*) continue;; esac
23153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23154 /* end confdefs.h. */
23155 #include <stdio.h>
23157 main ()
23159 FILE *fp = stdin; (void) ($ac_expr);
23161 return 0;
23163 _ACEOF
23164 if ac_fn_c_try_compile "$LINENO"; then :
23165 fp_done=yes
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 test "$fp_done" = yes && break
23170 done
23172 ac_cv_sys_pending_output_n_bytes=$ac_expr
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
23177 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
23179 cat >>confdefs.h <<_ACEOF
23180 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
23181 _ACEOF
23191 if test $ac_cv_func_fstatat = no; then
23192 HAVE_FSTATAT=0
23193 else
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
23195 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
23196 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
23197 $as_echo_n "(cached) " >&6
23198 else
23199 if test "$cross_compiling" = yes; then :
23200 case "$host_os" in
23201 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
23202 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
23203 esac
23205 else
23206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23207 /* end confdefs.h. */
23209 #include <fcntl.h>
23210 #include <sys/stat.h>
23212 main (void)
23214 struct stat a;
23215 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
23218 _ACEOF
23219 if ac_fn_c_try_run "$LINENO"; then :
23220 gl_cv_func_fstatat_zero_flag=yes
23221 else
23222 gl_cv_func_fstatat_zero_flag=no
23224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23225 conftest.$ac_objext conftest.beam conftest.$ac_ext
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
23231 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
23233 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
23234 *yes+*yes) ;;
23235 *) REPLACE_FSTATAT=1
23236 case $gl_cv_func_fstatat_zero_flag in
23237 *yes)
23239 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
23242 esac
23244 esac
23247 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
23256 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
23264 GNULIB_FSTATAT=1
23273 if test $ac_cv_func_fsync = no; then
23274 HAVE_FSYNC=0
23277 if test $HAVE_FSYNC = 0; then
23286 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
23295 GNULIB_FSYNC=1
23303 # Persuade glibc <stdlib.h> to declare getloadavg().
23306 gl_save_LIBS=$LIBS
23308 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
23309 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
23310 HAVE_GETLOADAVG=1
23311 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
23312 if test "x$ac_cv_func_getloadavg" = x""yes; then :
23314 else
23315 gl_func_getloadavg_done=no
23317 # Some systems with -lutil have (and need) -lkvm as well, some do not.
23318 # On Solaris, -lkvm requires nlist from -lelf, so check that first
23319 # to get the right answer into the cache.
23320 # For kstat on solaris, we need to test for libelf and libkvm to force the
23321 # definition of SVR4 below.
23322 if test $gl_func_getloadavg_done = no; then
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
23324 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
23325 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
23326 $as_echo_n "(cached) " >&6
23327 else
23328 ac_check_lib_save_LIBS=$LIBS
23329 LIBS="-lelf $LIBS"
23330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23331 /* end confdefs.h. */
23333 /* Override any GCC internal prototype to avoid an error.
23334 Use char because int might match the return type of a GCC
23335 builtin and then its argument prototype would still apply. */
23336 #ifdef __cplusplus
23337 extern "C"
23338 #endif
23339 char elf_begin ();
23341 main ()
23343 return elf_begin ();
23345 return 0;
23347 _ACEOF
23348 if ac_fn_c_try_link "$LINENO"; then :
23349 ac_cv_lib_elf_elf_begin=yes
23350 else
23351 ac_cv_lib_elf_elf_begin=no
23353 rm -f core conftest.err conftest.$ac_objext \
23354 conftest$ac_exeext conftest.$ac_ext
23355 LIBS=$ac_check_lib_save_LIBS
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
23358 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
23359 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
23360 LIBS="-lelf $LIBS"
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
23364 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
23365 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
23366 $as_echo_n "(cached) " >&6
23367 else
23368 ac_check_lib_save_LIBS=$LIBS
23369 LIBS="-lkvm $LIBS"
23370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23371 /* end confdefs.h. */
23373 /* Override any GCC internal prototype to avoid an error.
23374 Use char because int might match the return type of a GCC
23375 builtin and then its argument prototype would still apply. */
23376 #ifdef __cplusplus
23377 extern "C"
23378 #endif
23379 char kvm_open ();
23381 main ()
23383 return kvm_open ();
23385 return 0;
23387 _ACEOF
23388 if ac_fn_c_try_link "$LINENO"; then :
23389 ac_cv_lib_kvm_kvm_open=yes
23390 else
23391 ac_cv_lib_kvm_kvm_open=no
23393 rm -f core conftest.err conftest.$ac_objext \
23394 conftest$ac_exeext conftest.$ac_ext
23395 LIBS=$ac_check_lib_save_LIBS
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
23398 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
23399 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
23400 LIBS="-lkvm $LIBS"
23403 # Check for the 4.4BSD definition of getloadavg.
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
23405 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
23406 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
23407 $as_echo_n "(cached) " >&6
23408 else
23409 ac_check_lib_save_LIBS=$LIBS
23410 LIBS="-lutil $LIBS"
23411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23412 /* end confdefs.h. */
23414 /* Override any GCC internal prototype to avoid an error.
23415 Use char because int might match the return type of a GCC
23416 builtin and then its argument prototype would still apply. */
23417 #ifdef __cplusplus
23418 extern "C"
23419 #endif
23420 char getloadavg ();
23422 main ()
23424 return getloadavg ();
23426 return 0;
23428 _ACEOF
23429 if ac_fn_c_try_link "$LINENO"; then :
23430 ac_cv_lib_util_getloadavg=yes
23431 else
23432 ac_cv_lib_util_getloadavg=no
23434 rm -f core conftest.err conftest.$ac_objext \
23435 conftest$ac_exeext conftest.$ac_ext
23436 LIBS=$ac_check_lib_save_LIBS
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
23439 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
23440 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
23441 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
23446 if test $gl_func_getloadavg_done = no; then
23447 # There is a commonly available library for RS/6000 AIX.
23448 # Since it is not a standard part of AIX, it might be installed locally.
23449 gl_getloadavg_LIBS=$LIBS
23450 LIBS="-L/usr/local/lib $LIBS"
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
23452 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
23453 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
23454 $as_echo_n "(cached) " >&6
23455 else
23456 ac_check_lib_save_LIBS=$LIBS
23457 LIBS="-lgetloadavg $LIBS"
23458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23459 /* end confdefs.h. */
23461 /* Override any GCC internal prototype to avoid an error.
23462 Use char because int might match the return type of a GCC
23463 builtin and then its argument prototype would still apply. */
23464 #ifdef __cplusplus
23465 extern "C"
23466 #endif
23467 char getloadavg ();
23469 main ()
23471 return getloadavg ();
23473 return 0;
23475 _ACEOF
23476 if ac_fn_c_try_link "$LINENO"; then :
23477 ac_cv_lib_getloadavg_getloadavg=yes
23478 else
23479 ac_cv_lib_getloadavg_getloadavg=no
23481 rm -f core conftest.err conftest.$ac_objext \
23482 conftest$ac_exeext conftest.$ac_ext
23483 LIBS=$ac_check_lib_save_LIBS
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
23486 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
23487 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
23488 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
23489 else
23490 LIBS=$gl_getloadavg_LIBS
23495 # Set up the replacement function if necessary.
23496 if test $gl_func_getloadavg_done = no; then
23497 HAVE_GETLOADAVG=0
23499 # Solaris has libkstat which does not require root.
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
23501 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
23502 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
23503 $as_echo_n "(cached) " >&6
23504 else
23505 ac_check_lib_save_LIBS=$LIBS
23506 LIBS="-lkstat $LIBS"
23507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23508 /* end confdefs.h. */
23510 /* Override any GCC internal prototype to avoid an error.
23511 Use char because int might match the return type of a GCC
23512 builtin and then its argument prototype would still apply. */
23513 #ifdef __cplusplus
23514 extern "C"
23515 #endif
23516 char kstat_open ();
23518 main ()
23520 return kstat_open ();
23522 return 0;
23524 _ACEOF
23525 if ac_fn_c_try_link "$LINENO"; then :
23526 ac_cv_lib_kstat_kstat_open=yes
23527 else
23528 ac_cv_lib_kstat_kstat_open=no
23530 rm -f core conftest.err conftest.$ac_objext \
23531 conftest$ac_exeext conftest.$ac_ext
23532 LIBS=$ac_check_lib_save_LIBS
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
23535 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
23536 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
23537 cat >>confdefs.h <<_ACEOF
23538 #define HAVE_LIBKSTAT 1
23539 _ACEOF
23541 LIBS="-lkstat $LIBS"
23545 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
23547 # AIX has libperfstat which does not require root
23548 if test $gl_func_getloadavg_done = no; then
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
23550 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
23551 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
23552 $as_echo_n "(cached) " >&6
23553 else
23554 ac_check_lib_save_LIBS=$LIBS
23555 LIBS="-lperfstat $LIBS"
23556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23557 /* end confdefs.h. */
23559 /* Override any GCC internal prototype to avoid an error.
23560 Use char because int might match the return type of a GCC
23561 builtin and then its argument prototype would still apply. */
23562 #ifdef __cplusplus
23563 extern "C"
23564 #endif
23565 char perfstat_cpu_total ();
23567 main ()
23569 return perfstat_cpu_total ();
23571 return 0;
23573 _ACEOF
23574 if ac_fn_c_try_link "$LINENO"; then :
23575 ac_cv_lib_perfstat_perfstat_cpu_total=yes
23576 else
23577 ac_cv_lib_perfstat_perfstat_cpu_total=no
23579 rm -f core conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
23581 LIBS=$ac_check_lib_save_LIBS
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
23584 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
23585 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
23586 cat >>confdefs.h <<_ACEOF
23587 #define HAVE_LIBPERFSTAT 1
23588 _ACEOF
23590 LIBS="-lperfstat $LIBS"
23594 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
23597 if test $gl_func_getloadavg_done = no; then
23598 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
23599 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
23600 gl_func_getloadavg_done=yes
23602 $as_echo "#define DGUX 1" >>confdefs.h
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
23605 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
23606 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
23607 $as_echo_n "(cached) " >&6
23608 else
23609 ac_check_lib_save_LIBS=$LIBS
23610 LIBS="-ldgc $LIBS"
23611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612 /* end confdefs.h. */
23614 /* Override any GCC internal prototype to avoid an error.
23615 Use char because int might match the return type of a GCC
23616 builtin and then its argument prototype would still apply. */
23617 #ifdef __cplusplus
23618 extern "C"
23619 #endif
23620 char dg_sys_info ();
23622 main ()
23624 return dg_sys_info ();
23626 return 0;
23628 _ACEOF
23629 if ac_fn_c_try_link "$LINENO"; then :
23630 ac_cv_lib_dgc_dg_sys_info=yes
23631 else
23632 ac_cv_lib_dgc_dg_sys_info=no
23634 rm -f core conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
23636 LIBS=$ac_check_lib_save_LIBS
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
23639 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
23640 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
23641 cat >>confdefs.h <<_ACEOF
23642 #define HAVE_LIBDGC 1
23643 _ACEOF
23645 LIBS="-ldgc $LIBS"
23657 if test "x$gl_save_LIBS" = x; then
23658 GETLOADAVG_LIBS=$LIBS
23659 else
23660 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
23662 LIBS=$gl_save_LIBS
23665 # Test whether the system declares getloadavg. Solaris has the function
23666 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
23667 for ac_header in sys/loadavg.h
23668 do :
23669 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
23670 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
23671 cat >>confdefs.h <<_ACEOF
23672 #define HAVE_SYS_LOADAVG_H 1
23673 _ACEOF
23677 done
23679 if test $ac_cv_header_sys_loadavg_h = yes; then
23680 HAVE_SYS_LOADAVG_H=1
23681 else
23682 HAVE_SYS_LOADAVG_H=0
23684 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
23685 # include <sys/loadavg.h>
23686 #endif
23687 #include <stdlib.h>
23689 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
23691 else
23692 HAVE_DECL_GETLOADAVG=0
23696 if test $HAVE_GETLOADAVG = 0; then
23705 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
23708 # Figure out what our getloadavg.c needs.
23712 # On HPUX9, an unprivileged user can get load averages this way.
23713 if test $gl_func_getloadavg_done = no; then
23714 for ac_func in pstat_getdynamic
23715 do :
23716 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
23717 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
23718 cat >>confdefs.h <<_ACEOF
23719 #define HAVE_PSTAT_GETDYNAMIC 1
23720 _ACEOF
23721 gl_func_getloadavg_done=yes
23723 done
23727 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
23728 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
23729 # Irix 4.0.5F has the header but not the library.
23730 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
23731 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
23732 gl_func_getloadavg_done=yes
23734 $as_echo "#define SVR4 1" >>confdefs.h
23738 if test $gl_func_getloadavg_done = no; then
23739 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
23740 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
23741 gl_func_getloadavg_done=yes
23743 $as_echo "#define UMAX 1" >>confdefs.h
23746 $as_echo "#define UMAX4_3 1" >>confdefs.h
23753 if test $gl_func_getloadavg_done = no; then
23754 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
23755 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
23756 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
23763 if test $gl_func_getloadavg_done = no; then
23764 for ac_header in mach/mach.h
23765 do :
23766 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
23767 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
23768 cat >>confdefs.h <<_ACEOF
23769 #define HAVE_MACH_MACH_H 1
23770 _ACEOF
23774 done
23778 for ac_header in nlist.h
23779 do :
23780 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
23781 if test "x$ac_cv_header_nlist_h" = x""yes; then :
23782 cat >>confdefs.h <<_ACEOF
23783 #define HAVE_NLIST_H 1
23784 _ACEOF
23785 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
23787 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
23789 cat >>confdefs.h <<_ACEOF
23790 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
23791 _ACEOF
23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h. */
23798 #include <nlist.h>
23800 main ()
23802 struct nlist x;
23803 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
23804 x.n_un.n_name = "";
23805 #else
23806 x.n_name = "";
23807 #endif
23809 return 0;
23811 _ACEOF
23812 if ac_fn_c_try_link "$LINENO"; then :
23814 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
23817 rm -f core conftest.err conftest.$ac_objext \
23818 conftest$ac_exeext conftest.$ac_ext
23822 done
23830 GNULIB_GETLOADAVG=1
23841 if test $REPLACE_GETOPT = 1; then
23850 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23860 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23865 GNULIB_GL_UNISTD_H_GETOPT=1
23874 REPLACE_GETOPT=0
23875 if test -n "$gl_replace_getopt"; then
23876 REPLACE_GETOPT=1
23879 if test $REPLACE_GETOPT = 1; then
23881 GETOPT_H=getopt.h
23883 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
23889 if test $REPLACE_GETOPT = 1; then
23898 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
23908 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
23913 GNULIB_GL_UNISTD_H_GETOPT=1
23927 gl_gettimeofday_timezone=void
23928 if test $ac_cv_func_gettimeofday != yes; then
23929 HAVE_GETTIMEOFDAY=0
23930 else
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23935 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23936 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
23937 $as_echo_n "(cached) " >&6
23938 else
23939 if test "$cross_compiling" = yes; then :
23940 # When cross-compiling:
23941 case "$host_os" in
23942 # Guess all is fine on glibc systems.
23943 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23944 # If we don't know, assume the worst.
23945 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23946 esac
23948 else
23949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23950 /* end confdefs.h. */
23951 #include <string.h>
23952 #include <sys/time.h>
23953 #include <time.h>
23954 #include <stdlib.h>
23957 main ()
23960 time_t t = 0;
23961 struct tm *lt;
23962 struct tm saved_lt;
23963 struct timeval tv;
23964 lt = localtime (&t);
23965 saved_lt = *lt;
23966 gettimeofday (&tv, NULL);
23967 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23970 return 0;
23972 _ACEOF
23973 if ac_fn_c_try_run "$LINENO"; then :
23974 gl_cv_func_gettimeofday_clobber=no
23975 else
23976 gl_cv_func_gettimeofday_clobber=yes
23978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23979 conftest.$ac_objext conftest.beam conftest.$ac_ext
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23984 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23986 case "$gl_cv_func_gettimeofday_clobber" in
23987 *yes)
23988 REPLACE_GETTIMEOFDAY=1
23991 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
23994 $as_echo "#define localtime rpl_localtime" >>confdefs.h
23998 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
24001 esac
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
24004 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
24005 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h. */
24010 #include <sys/time.h>
24011 struct timeval c;
24012 int gettimeofday (struct timeval *restrict, void *restrict);
24015 main ()
24017 /* glibc uses struct timezone * rather than the POSIX void *
24018 if _GNU_SOURCE is defined. However, since the only portable
24019 use of gettimeofday uses NULL as the second parameter, and
24020 since the glibc definition is actually more typesafe, it is
24021 not worth wrapping this to get a compliant signature. */
24022 int (*f) (struct timeval *restrict, void *restrict)
24023 = gettimeofday;
24024 int x = f (&c, 0);
24025 return !(x | c.tv_sec | c.tv_usec);
24028 return 0;
24030 _ACEOF
24031 if ac_fn_c_try_compile "$LINENO"; then :
24032 gl_cv_func_gettimeofday_posix_signature=yes
24033 else
24034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24035 /* end confdefs.h. */
24036 #include <sys/time.h>
24037 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
24040 main ()
24044 return 0;
24046 _ACEOF
24047 if ac_fn_c_try_compile "$LINENO"; then :
24048 gl_cv_func_gettimeofday_posix_signature=almost
24049 else
24050 gl_cv_func_gettimeofday_posix_signature=no
24052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
24057 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
24058 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
24059 gl_gettimeofday_timezone='struct timezone'
24060 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
24061 REPLACE_GETTIMEOFDAY=1
24063 if test $REPLACE_STRUCT_TIMEVAL = 1; then
24064 REPLACE_GETTIMEOFDAY=1
24069 cat >>confdefs.h <<_ACEOF
24070 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
24071 _ACEOF
24074 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
24083 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
24086 for ac_header in sys/timeb.h
24087 do :
24088 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
24089 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
24090 cat >>confdefs.h <<_ACEOF
24091 #define HAVE_SYS_TIMEB_H 1
24092 _ACEOF
24096 done
24098 for ac_func in _ftime
24099 do :
24100 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
24101 if test "x$ac_cv_func__ftime" = x""yes; then :
24102 cat >>confdefs.h <<_ACEOF
24103 #define HAVE__FTIME 1
24104 _ACEOF
24107 done
24116 GNULIB_GETTIMEOFDAY=1
24127 if test $ac_cv_func_lstat = yes; then
24129 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
24130 *no)
24131 REPLACE_LSTAT=1
24133 esac
24134 else
24135 HAVE_LSTAT=0
24138 if test $REPLACE_LSTAT = 1; then
24147 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24156 GNULIB_LSTAT=1
24167 if test $ac_cv_have_decl_memrchr = no; then
24168 HAVE_DECL_MEMRCHR=0
24171 for ac_func in memrchr
24172 do :
24173 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24174 if test "x$ac_cv_func_memrchr" = x""yes; then :
24175 cat >>confdefs.h <<_ACEOF
24176 #define HAVE_MEMRCHR 1
24177 _ACEOF
24180 done
24183 if test $ac_cv_func_memrchr = no; then
24192 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24201 GNULIB_MEMRCHR=1
24213 if test $ac_cv_func_mkostemp != yes; then
24214 HAVE_MKOSTEMP=0
24217 if test $HAVE_MKOSTEMP = 0; then
24226 gl_LIBOBJS="$gl_LIBOBJS mkostemp.$ac_objext"
24233 cat >>confdefs.h <<_ACEOF
24234 #define GNULIB_MKOSTEMP 1
24235 _ACEOF
24243 GNULIB_MKOSTEMP=1
24255 if test $APPLE_UNIVERSAL_BUILD = 1; then
24256 # A universal build on Apple Mac OS X platforms.
24257 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
24258 # But we need a configuration result that is valid in both modes.
24259 gl_cv_func_working_mktime=no
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
24262 $as_echo_n "checking for working mktime... " >&6; }
24263 if test "${gl_cv_func_working_mktime+set}" = set; then :
24264 $as_echo_n "(cached) " >&6
24265 else
24266 if test "$cross_compiling" = yes; then :
24267 gl_cv_func_working_mktime=no
24268 else
24269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24270 /* end confdefs.h. */
24271 /* Test program from Paul Eggert and Tony Leneis. */
24272 #include <limits.h>
24273 #include <stdlib.h>
24274 #include <time.h>
24276 #ifdef HAVE_UNISTD_H
24277 # include <unistd.h>
24278 #endif
24280 #if HAVE_DECL_ALARM
24281 # include <signal.h>
24282 #endif
24284 /* Work around redefinition to rpl_putenv by other config tests. */
24285 #undef putenv
24287 static time_t time_t_max;
24288 static time_t time_t_min;
24290 /* Values we'll use to set the TZ environment variable. */
24291 static char *tz_strings[] = {
24292 (char *) 0, "TZ=GMT0", "TZ=JST-9",
24293 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
24295 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
24297 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
24298 Based on a problem report from Andreas Jaeger. */
24299 static int
24300 spring_forward_gap ()
24302 /* glibc (up to about 1998-10-07) failed this test. */
24303 struct tm tm;
24305 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24306 instead of "TZ=America/Vancouver" in order to detect the bug even
24307 on systems that don't support the Olson extension, or don't have the
24308 full zoneinfo tables installed. */
24309 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24311 tm.tm_year = 98;
24312 tm.tm_mon = 3;
24313 tm.tm_mday = 5;
24314 tm.tm_hour = 2;
24315 tm.tm_min = 0;
24316 tm.tm_sec = 0;
24317 tm.tm_isdst = -1;
24318 return mktime (&tm) != (time_t) -1;
24321 static int
24322 mktime_test1 (time_t now)
24324 struct tm *lt;
24325 return ! (lt = localtime (&now)) || mktime (lt) == now;
24328 static int
24329 mktime_test (time_t now)
24331 return (mktime_test1 (now)
24332 && mktime_test1 ((time_t) (time_t_max - now))
24333 && mktime_test1 ((time_t) (time_t_min + now)));
24336 static int
24337 irix_6_4_bug ()
24339 /* Based on code from Ariel Faigon. */
24340 struct tm tm;
24341 tm.tm_year = 96;
24342 tm.tm_mon = 3;
24343 tm.tm_mday = 0;
24344 tm.tm_hour = 0;
24345 tm.tm_min = 0;
24346 tm.tm_sec = 0;
24347 tm.tm_isdst = -1;
24348 mktime (&tm);
24349 return tm.tm_mon == 2 && tm.tm_mday == 31;
24352 static int
24353 bigtime_test (int j)
24355 struct tm tm;
24356 time_t now;
24357 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
24358 now = mktime (&tm);
24359 if (now != (time_t) -1)
24361 struct tm *lt = localtime (&now);
24362 if (! (lt
24363 && lt->tm_year == tm.tm_year
24364 && lt->tm_mon == tm.tm_mon
24365 && lt->tm_mday == tm.tm_mday
24366 && lt->tm_hour == tm.tm_hour
24367 && lt->tm_min == tm.tm_min
24368 && lt->tm_sec == tm.tm_sec
24369 && lt->tm_yday == tm.tm_yday
24370 && lt->tm_wday == tm.tm_wday
24371 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
24372 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
24373 return 0;
24375 return 1;
24378 static int
24379 year_2050_test ()
24381 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
24382 ignoring leap seconds. */
24383 unsigned long int answer = 2527315200UL;
24385 struct tm tm;
24386 time_t t;
24387 tm.tm_year = 2050 - 1900;
24388 tm.tm_mon = 2 - 1;
24389 tm.tm_mday = 1;
24390 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
24391 tm.tm_isdst = -1;
24393 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
24394 instead of "TZ=America/Vancouver" in order to detect the bug even
24395 on systems that don't support the Olson extension, or don't have the
24396 full zoneinfo tables installed. */
24397 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
24399 t = mktime (&tm);
24401 /* Check that the result is either a failure, or close enough
24402 to the correct answer that we can assume the discrepancy is
24403 due to leap seconds. */
24404 return (t == (time_t) -1
24405 || (0 < t && answer - 120 <= t && t <= answer + 120));
24409 main ()
24411 int result = 0;
24412 time_t t, delta;
24413 int i, j;
24414 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
24415 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
24417 #if HAVE_DECL_ALARM
24418 /* This test makes some buggy mktime implementations loop.
24419 Give up after 60 seconds; a mktime slower than that
24420 isn't worth using anyway. */
24421 signal (SIGALRM, SIG_DFL);
24422 alarm (60);
24423 #endif
24425 time_t_max = (! time_t_signed
24426 ? (time_t) -1
24427 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
24428 * 2 + 1));
24429 time_t_min = (! time_t_signed
24430 ? (time_t) 0
24431 : time_t_signed_magnitude
24432 ? ~ (time_t) 0
24433 : ~ time_t_max);
24435 delta = time_t_max / 997; /* a suitable prime number */
24436 for (i = 0; i < N_STRINGS; i++)
24438 if (tz_strings[i])
24439 putenv (tz_strings[i]);
24441 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
24442 if (! mktime_test (t))
24443 result |= 1;
24444 if ((result & 2) == 0
24445 && ! (mktime_test ((time_t) 1)
24446 && mktime_test ((time_t) (60 * 60))
24447 && mktime_test ((time_t) (60 * 60 * 24))))
24448 result |= 2;
24450 for (j = 1; (result & 4) == 0; j <<= 1)
24452 if (! bigtime_test (j))
24453 result |= 4;
24454 if (INT_MAX / 2 < j)
24455 break;
24457 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
24458 result |= 8;
24460 if (! irix_6_4_bug ())
24461 result |= 16;
24462 if (! spring_forward_gap ())
24463 result |= 32;
24464 if (! year_2050_test ())
24465 result |= 64;
24466 return result;
24468 _ACEOF
24469 if ac_fn_c_try_run "$LINENO"; then :
24470 gl_cv_func_working_mktime=yes
24471 else
24472 gl_cv_func_working_mktime=no
24474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24475 conftest.$ac_objext conftest.beam conftest.$ac_ext
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
24481 $as_echo "$gl_cv_func_working_mktime" >&6; }
24483 if test $gl_cv_func_working_mktime = no; then
24484 REPLACE_MKTIME=1
24485 else
24486 REPLACE_MKTIME=0
24489 if test $REPLACE_MKTIME = 1; then
24498 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
24507 GNULIB_MKTIME=1
24520 if test $ac_cv_func_pipe2 != yes; then
24521 HAVE_PIPE2=0
24529 GNULIB_PIPE2=1
24540 if test $ac_cv_func_pselect = yes; then
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
24542 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
24543 if test "${gl_cv_sig_pselect+set}" = set; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24547 /* end confdefs.h. */
24548 #include <sys/select.h>
24551 main ()
24553 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
24554 struct timespec const *restrict,
24555 sigset_t const *restrict) = pselect;
24556 return !p;
24558 return 0;
24560 _ACEOF
24561 if ac_fn_c_try_link "$LINENO"; then :
24562 gl_cv_sig_pselect=yes
24563 else
24564 gl_cv_sig_pselect=no
24566 rm -f core conftest.err conftest.$ac_objext \
24567 conftest$ac_exeext conftest.$ac_ext
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
24570 $as_echo "$gl_cv_sig_pselect" >&6; }
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
24573 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
24574 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
24575 $as_echo_n "(cached) " >&6
24576 else
24578 if test "$cross_compiling" = yes; then :
24580 case "$host_os" in
24581 # Guess yes on glibc systems.
24582 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
24583 # If we don't know, assume the worst.
24584 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
24585 esac
24587 else
24588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24589 /* end confdefs.h. */
24591 #include <sys/types.h>
24592 #include <sys/time.h>
24593 #if HAVE_SYS_SELECT_H
24594 # include <sys/select.h>
24595 #endif
24596 #include <unistd.h>
24597 #include <errno.h>
24600 main ()
24603 fd_set set;
24604 dup2(0, 16);
24605 FD_ZERO(&set);
24606 FD_SET(16, &set);
24607 close(16);
24608 struct timespec timeout;
24609 timeout.tv_sec = 0;
24610 timeout.tv_nsec = 5000;
24611 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
24614 return 0;
24616 _ACEOF
24617 if ac_fn_c_try_run "$LINENO"; then :
24618 gl_cv_func_pselect_detects_ebadf=yes
24619 else
24620 gl_cv_func_pselect_detects_ebadf=no
24622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24623 conftest.$ac_objext conftest.beam conftest.$ac_ext
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
24629 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
24630 case $gl_cv_func_pselect_detects_ebadf in
24631 *yes) ;;
24632 *) REPLACE_PSELECT=1 ;;
24633 esac
24636 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
24637 REPLACE_PSELECT=1
24640 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
24649 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
24657 GNULIB_PSELECT=1
24667 LIB_PTHREAD_SIGMASK=
24672 if test "$gl_threads_api" = posix; then
24673 if test $ac_cv_func_pthread_sigmask = yes; then
24675 else
24676 if test -n "$LIBMULTITHREAD"; then
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
24678 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
24679 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24681 else
24682 gl_save_LIBS="$LIBS"
24683 LIBS="$LIBS $LIBMULTITHREAD"
24684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24685 /* end confdefs.h. */
24686 #include <pthread.h>
24687 #include <signal.h>
24690 main ()
24692 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
24694 return 0;
24697 _ACEOF
24698 if ac_fn_c_try_link "$LINENO"; then :
24699 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
24700 else
24701 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
24703 rm -f core conftest.err conftest.$ac_objext \
24704 conftest$ac_exeext conftest.$ac_ext
24705 LIBS="$gl_save_LIBS"
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
24709 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
24710 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
24711 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
24712 else
24713 HAVE_PTHREAD_SIGMASK=0
24715 else
24716 HAVE_PTHREAD_SIGMASK=0
24719 else
24720 if test $ac_cv_func_pthread_sigmask = yes; then
24721 REPLACE_PTHREAD_SIGMASK=1
24722 else
24723 HAVE_PTHREAD_SIGMASK=0
24730 if test $HAVE_PTHREAD_SIGMASK = 1; then
24733 if test -z "$LIB_PTHREAD_SIGMASK"; then
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
24735 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
24736 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24738 else
24740 if test "$cross_compiling" = yes; then :
24742 case "$host_os" in
24743 freebsd* | hpux* | solaris | solaris2.[2-9]*)
24744 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
24746 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
24747 esac
24749 else
24750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24751 /* end confdefs.h. */
24753 #include <pthread.h>
24754 #include <signal.h>
24755 #include <stddef.h>
24756 int main ()
24758 sigset_t set;
24759 sigemptyset (&set);
24760 return pthread_sigmask (1729, &set, NULL) != 0;
24762 _ACEOF
24763 if ac_fn_c_try_run "$LINENO"; then :
24764 gl_cv_func_pthread_sigmask_in_libc_works=no
24765 else
24766 gl_cv_func_pthread_sigmask_in_libc_works=yes
24768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24769 conftest.$ac_objext conftest.beam conftest.$ac_ext
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
24775 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
24776 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
24777 *no)
24778 REPLACE_PTHREAD_SIGMASK=1
24780 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
24783 esac
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
24787 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
24788 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
24789 $as_echo_n "(cached) " >&6
24790 else
24792 gl_save_LIBS="$LIBS"
24793 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
24794 if test "$cross_compiling" = yes; then :
24795 case "$host_os" in
24796 cygwin*)
24797 gl_cv_func_pthread_sigmask_return_works="guessing no";;
24799 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
24800 esac
24802 else
24803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804 /* end confdefs.h. */
24806 #include <pthread.h>
24807 #include <signal.h>
24808 #include <stddef.h>
24809 int main ()
24811 sigset_t set;
24812 sigemptyset (&set);
24813 if (pthread_sigmask (1729, &set, NULL) == -1)
24814 return 1;
24815 return 0;
24817 _ACEOF
24818 if ac_fn_c_try_run "$LINENO"; then :
24819 gl_cv_func_pthread_sigmask_return_works=yes
24820 else
24821 gl_cv_func_pthread_sigmask_return_works=no
24823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24824 conftest.$ac_objext conftest.beam conftest.$ac_ext
24827 LIBS="$gl_save_LIBS"
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
24831 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
24832 case "$gl_cv_func_pthread_sigmask_return_works" in
24833 *no)
24834 REPLACE_PTHREAD_SIGMASK=1
24836 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
24839 esac
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
24842 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
24843 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
24844 $as_echo_n "(cached) " >&6
24845 else
24847 case "$host_os" in
24848 irix*)
24849 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
24851 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
24852 esac
24853 gl_save_LIBS="$LIBS"
24854 LIBS="$LIBS $LIBMULTITHREAD"
24855 if test "$cross_compiling" = yes; then :
24857 else
24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h. */
24861 #include <pthread.h>
24862 #include <signal.h>
24863 #include <stdio.h>
24864 #include <stdlib.h>
24865 #include <unistd.h>
24866 static volatile int sigint_occurred;
24867 static void
24868 sigint_handler (int sig)
24870 sigint_occurred++;
24872 int main ()
24874 sigset_t set;
24875 int pid = getpid ();
24876 char command[80];
24877 signal (SIGINT, sigint_handler);
24878 sigemptyset (&set);
24879 sigaddset (&set, SIGINT);
24880 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
24881 return 1;
24882 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
24883 if (!(system (command) == 0))
24884 return 2;
24885 sleep (2);
24886 if (!(sigint_occurred == 0))
24887 return 3;
24888 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
24889 return 4;
24890 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
24891 return 5;
24892 return 0;
24894 _ACEOF
24895 if ac_fn_c_try_run "$LINENO"; then :
24897 else
24898 gl_cv_func_pthread_sigmask_unblock_works=no
24900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24901 conftest.$ac_objext conftest.beam conftest.$ac_ext
24904 LIBS="$gl_save_LIBS"
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
24908 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
24909 case "$gl_cv_func_pthread_sigmask_unblock_works" in
24910 *no)
24911 REPLACE_PTHREAD_SIGMASK=1
24913 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
24916 esac
24919 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
24928 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
24931 if test $HAVE_PTHREAD_SIGMASK = 1; then
24933 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
24943 GNULIB_PTHREAD_SIGMASK=1
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
24952 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
24953 if test "${gl_cv_func_svid_putenv+set}" = set; then :
24954 $as_echo_n "(cached) " >&6
24955 else
24956 if test "$cross_compiling" = yes; then :
24957 case "$host_os" in
24958 # Guess yes on glibc systems.
24959 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
24960 # If we don't know, assume the worst.
24961 *) gl_cv_func_svid_putenv="guessing no" ;;
24962 esac
24964 else
24965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24966 /* end confdefs.h. */
24967 $ac_includes_default
24969 main ()
24972 /* Put it in env. */
24973 if (putenv ("CONFTEST_putenv=val"))
24974 return 1;
24976 /* Try to remove it. */
24977 if (putenv ("CONFTEST_putenv"))
24978 return 2;
24980 /* Make sure it was deleted. */
24981 if (getenv ("CONFTEST_putenv") != 0)
24982 return 3;
24984 return 0;
24987 return 0;
24989 _ACEOF
24990 if ac_fn_c_try_run "$LINENO"; then :
24991 gl_cv_func_svid_putenv=yes
24992 else
24993 gl_cv_func_svid_putenv=no
24995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24996 conftest.$ac_objext conftest.beam conftest.$ac_ext
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
25002 $as_echo "$gl_cv_func_svid_putenv" >&6; }
25003 case "$gl_cv_func_svid_putenv" in
25004 *yes) ;;
25006 REPLACE_PUTENV=1
25008 esac
25010 if test $REPLACE_PUTENV = 1; then
25019 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
25022 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
25023 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
25024 ac_have_decl=1
25025 else
25026 ac_have_decl=0
25029 cat >>confdefs.h <<_ACEOF
25030 #define HAVE_DECL__PUTENV $ac_have_decl
25031 _ACEOF
25040 GNULIB_PUTENV=1
25047 # Check whether --enable-acl was given.
25048 if test "${enable_acl+set}" = set; then :
25049 enableval=$enable_acl;
25050 else
25051 enable_acl=auto
25055 LIB_ACL=
25056 use_acl=0
25057 if test "x$enable_acl" != "xno"; then
25058 for ac_header in sys/acl.h
25059 do :
25060 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
25061 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
25062 cat >>confdefs.h <<_ACEOF
25063 #define HAVE_SYS_ACL_H 1
25064 _ACEOF
25068 done
25070 if test $ac_cv_header_sys_acl_h = yes; then
25071 ac_save_LIBS=$LIBS
25073 if test $use_acl = 0; then
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_get_file" >&5
25075 $as_echo_n "checking for library containing acl_get_file... " >&6; }
25076 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25077 $as_echo_n "(cached) " >&6
25078 else
25079 ac_func_search_save_LIBS=$LIBS
25080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25081 /* end confdefs.h. */
25083 /* Override any GCC internal prototype to avoid an error.
25084 Use char because int might match the return type of a GCC
25085 builtin and then its argument prototype would still apply. */
25086 #ifdef __cplusplus
25087 extern "C"
25088 #endif
25089 char acl_get_file ();
25091 main ()
25093 return acl_get_file ();
25095 return 0;
25097 _ACEOF
25098 for ac_lib in '' acl pacl; do
25099 if test -z "$ac_lib"; then
25100 ac_res="none required"
25101 else
25102 ac_res=-l$ac_lib
25103 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25105 if ac_fn_c_try_link "$LINENO"; then :
25106 ac_cv_search_acl_get_file=$ac_res
25108 rm -f core conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext
25110 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25111 break
25113 done
25114 if test "${ac_cv_search_acl_get_file+set}" = set; then :
25116 else
25117 ac_cv_search_acl_get_file=no
25119 rm conftest.$ac_ext
25120 LIBS=$ac_func_search_save_LIBS
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_get_file" >&5
25123 $as_echo "$ac_cv_search_acl_get_file" >&6; }
25124 ac_res=$ac_cv_search_acl_get_file
25125 if test "$ac_res" != no; then :
25126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25127 if test "$ac_cv_search_acl_get_file" != "none required"; then
25128 LIB_ACL=$ac_cv_search_acl_get_file
25130 for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
25131 acl_free acl_from_mode acl_from_text \
25132 acl_delete_def_file acl_extended_file \
25133 acl_delete_fd_np acl_delete_file_np \
25134 acl_copy_ext_native acl_create_entry_np \
25135 acl_to_short_text acl_free_text
25136 do :
25137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25139 eval as_val=\$$as_ac_var
25140 if test "x$as_val" = x""yes; then :
25141 cat >>confdefs.h <<_ACEOF
25142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25143 _ACEOF
25146 done
25148 # If the acl_get_file bug is detected, don't enable the ACL support.
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working acl_get_file" >&5
25151 $as_echo_n "checking for working acl_get_file... " >&6; }
25152 if test "${gl_cv_func_working_acl_get_file+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25154 else
25155 if test "$cross_compiling" = yes; then :
25156 gl_cv_func_working_acl_get_file=cross-compiling
25157 else
25158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159 /* end confdefs.h. */
25160 #include <sys/types.h>
25161 #include <sys/acl.h>
25162 #include <errno.h>
25165 main ()
25167 if (!acl_get_file (".", ACL_TYPE_ACCESS) && errno == ENOENT)
25168 return 1;
25169 return 0;
25172 return 0;
25174 _ACEOF
25175 if ac_fn_c_try_run "$LINENO"; then :
25176 gl_cv_func_working_acl_get_file=yes
25177 else
25178 gl_cv_func_working_acl_get_file=no
25180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25181 conftest.$ac_objext conftest.beam conftest.$ac_ext
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_acl_get_file" >&5
25186 $as_echo "$gl_cv_func_working_acl_get_file" >&6; }
25188 if test $gl_cv_func_working_acl_get_file = yes; then :
25189 use_acl=1
25192 if test $use_acl = 1; then
25193 for ac_header in acl/libacl.h
25194 do :
25195 ac_fn_c_check_header_mongrel "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
25196 if test "x$ac_cv_header_acl_libacl_h" = x""yes; then :
25197 cat >>confdefs.h <<_ACEOF
25198 #define HAVE_ACL_LIBACL_H 1
25199 _ACEOF
25203 done
25213 for ac_func in acl_entries
25214 do :
25215 ac_fn_c_check_func "$LINENO" "acl_entries" "ac_cv_func_acl_entries"
25216 if test "x$ac_cv_func_acl_entries" = x""yes; then :
25217 cat >>confdefs.h <<_ACEOF
25218 #define HAVE_ACL_ENTRIES 1
25219 _ACEOF
25221 else
25223 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25226 done
25229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_FIRST_ENTRY" >&5
25230 $as_echo_n "checking for ACL_FIRST_ENTRY... " >&6; }
25231 if test "${gl_cv_acl_ACL_FIRST_ENTRY+set}" = set; then :
25232 $as_echo_n "(cached) " >&6
25233 else
25234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25235 /* end confdefs.h. */
25236 #include <sys/types.h>
25237 #include <sys/acl.h>
25238 int type = ACL_FIRST_ENTRY;
25240 main ()
25244 return 0;
25246 _ACEOF
25247 if ac_fn_c_try_compile "$LINENO"; then :
25248 gl_cv_acl_ACL_FIRST_ENTRY=yes
25249 else
25250 gl_cv_acl_ACL_FIRST_ENTRY=no
25252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_FIRST_ENTRY" >&5
25255 $as_echo "$gl_cv_acl_ACL_FIRST_ENTRY" >&6; }
25256 if test $gl_cv_acl_ACL_FIRST_ENTRY = yes; then
25258 $as_echo "#define HAVE_ACL_FIRST_ENTRY 1" >>confdefs.h
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED" >&5
25262 $as_echo_n "checking for ACL_TYPE_EXTENDED... " >&6; }
25263 if test "${gl_cv_acl_ACL_TYPE_EXTENDED+set}" = set; then :
25264 $as_echo_n "(cached) " >&6
25265 else
25266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25267 /* end confdefs.h. */
25268 #include <sys/types.h>
25269 #include <sys/acl.h>
25270 int type = ACL_TYPE_EXTENDED;
25272 main ()
25276 return 0;
25278 _ACEOF
25279 if ac_fn_c_try_compile "$LINENO"; then :
25280 gl_cv_acl_ACL_TYPE_EXTENDED=yes
25281 else
25282 gl_cv_acl_ACL_TYPE_EXTENDED=no
25284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_acl_ACL_TYPE_EXTENDED" >&5
25287 $as_echo "$gl_cv_acl_ACL_TYPE_EXTENDED" >&6; }
25288 if test $gl_cv_acl_ACL_TYPE_EXTENDED = yes; then
25290 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
25293 else
25294 LIB_ACL=
25301 if test $use_acl = 0; then
25302 for ac_func in facl
25303 do :
25304 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
25305 if test "x$ac_cv_func_facl" = x""yes; then :
25306 cat >>confdefs.h <<_ACEOF
25307 #define HAVE_FACL 1
25308 _ACEOF
25311 done
25313 if test $ac_cv_func_facl = yes; then
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_trivial" >&5
25315 $as_echo_n "checking for library containing acl_trivial... " >&6; }
25316 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25317 $as_echo_n "(cached) " >&6
25318 else
25319 ac_func_search_save_LIBS=$LIBS
25320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25321 /* end confdefs.h. */
25323 /* Override any GCC internal prototype to avoid an error.
25324 Use char because int might match the return type of a GCC
25325 builtin and then its argument prototype would still apply. */
25326 #ifdef __cplusplus
25327 extern "C"
25328 #endif
25329 char acl_trivial ();
25331 main ()
25333 return acl_trivial ();
25335 return 0;
25337 _ACEOF
25338 for ac_lib in '' sec; do
25339 if test -z "$ac_lib"; then
25340 ac_res="none required"
25341 else
25342 ac_res=-l$ac_lib
25343 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25345 if ac_fn_c_try_link "$LINENO"; then :
25346 ac_cv_search_acl_trivial=$ac_res
25348 rm -f core conftest.err conftest.$ac_objext \
25349 conftest$ac_exeext
25350 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25351 break
25353 done
25354 if test "${ac_cv_search_acl_trivial+set}" = set; then :
25356 else
25357 ac_cv_search_acl_trivial=no
25359 rm conftest.$ac_ext
25360 LIBS=$ac_func_search_save_LIBS
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_trivial" >&5
25363 $as_echo "$ac_cv_search_acl_trivial" >&6; }
25364 ac_res=$ac_cv_search_acl_trivial
25365 if test "$ac_res" != no; then :
25366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25367 if test "$ac_cv_search_acl_trivial" != "none required"; then
25368 LIB_ACL=$ac_cv_search_acl_trivial
25373 for ac_func in acl_trivial
25374 do :
25375 ac_fn_c_check_func "$LINENO" "acl_trivial" "ac_cv_func_acl_trivial"
25376 if test "x$ac_cv_func_acl_trivial" = x""yes; then :
25377 cat >>confdefs.h <<_ACEOF
25378 #define HAVE_ACL_TRIVIAL 1
25379 _ACEOF
25382 done
25384 use_acl=1
25388 if test $use_acl = 0; then
25389 for ac_func in getacl
25390 do :
25391 ac_fn_c_check_func "$LINENO" "getacl" "ac_cv_func_getacl"
25392 if test "x$ac_cv_func_getacl" = x""yes; then :
25393 cat >>confdefs.h <<_ACEOF
25394 #define HAVE_GETACL 1
25395 _ACEOF
25398 done
25400 if test $ac_cv_func_getacl = yes; then
25401 use_acl=1
25403 for ac_header in aclv.h
25404 do :
25405 ac_fn_c_check_header_compile "$LINENO" "aclv.h" "ac_cv_header_aclv_h" "#include <sys/types.h>
25407 if test "x$ac_cv_header_aclv_h" = x""yes; then :
25408 cat >>confdefs.h <<_ACEOF
25409 #define HAVE_ACLV_H 1
25410 _ACEOF
25414 done
25418 if test $use_acl = 0; then
25419 for ac_func in aclx_get
25420 do :
25421 ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
25422 if test "x$ac_cv_func_aclx_get" = x""yes; then :
25423 cat >>confdefs.h <<_ACEOF
25424 #define HAVE_ACLX_GET 1
25425 _ACEOF
25428 done
25430 if test $ac_cv_func_aclx_get = yes; then
25431 use_acl=1
25435 if test $use_acl = 0 || test "$ac_cv_func_aclx_get" = yes; then
25436 for ac_func in statacl
25437 do :
25438 ac_fn_c_check_func "$LINENO" "statacl" "ac_cv_func_statacl"
25439 if test "x$ac_cv_func_statacl" = x""yes; then :
25440 cat >>confdefs.h <<_ACEOF
25441 #define HAVE_STATACL 1
25442 _ACEOF
25445 done
25447 if test $ac_cv_func_statacl = yes; then
25448 use_acl=1
25452 if test $use_acl = 0; then
25453 for ac_func in aclsort
25454 do :
25455 ac_fn_c_check_func "$LINENO" "aclsort" "ac_cv_func_aclsort"
25456 if test "x$ac_cv_func_aclsort" = x""yes; then :
25457 cat >>confdefs.h <<_ACEOF
25458 #define HAVE_ACLSORT 1
25459 _ACEOF
25462 done
25464 if test $ac_cv_func_aclsort = yes; then
25465 use_acl=1
25469 LIBS=$ac_save_LIBS
25471 if test "x$enable_acl$use_acl" = "xyes0"; then
25472 as_fn_error "ACLs enabled but support not detected" "$LINENO" 5
25473 elif test "x$enable_acl$use_acl" = "xauto0"; then
25474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libacl development library was not found or not usable." >&5
25475 $as_echo "$as_me: WARNING: libacl development library was not found or not usable." >&2;}
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: emacs will be built without ACL support." >&5
25477 $as_echo "$as_me: WARNING: emacs will be built without ACL support." >&2;}
25482 cat >>confdefs.h <<_ACEOF
25483 #define USE_ACL $use_acl
25484 _ACEOF
25486 USE_ACL=$use_acl
25492 if test $ac_cv_func_readlink = no; then
25493 HAVE_READLINK=0
25494 else
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
25496 $as_echo_n "checking whether readlink signature is correct... " >&6; }
25497 if test "${gl_cv_decl_readlink_works+set}" = set; then :
25498 $as_echo_n "(cached) " >&6
25499 else
25500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25501 /* end confdefs.h. */
25502 #include <unistd.h>
25503 /* Cause compilation failure if original declaration has wrong type. */
25504 ssize_t readlink (const char *, char *, size_t);
25506 main ()
25510 return 0;
25512 _ACEOF
25513 if ac_fn_c_try_compile "$LINENO"; then :
25514 gl_cv_decl_readlink_works=yes
25515 else
25516 gl_cv_decl_readlink_works=no
25518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
25521 $as_echo "$gl_cv_decl_readlink_works" >&6; }
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
25523 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
25524 if test "${gl_cv_func_readlink_works+set}" = set; then :
25525 $as_echo_n "(cached) " >&6
25526 else
25527 # We have readlink, so assume ln -s works.
25528 ln -s conftest.no-such conftest.link
25529 ln -s conftest.link conftest.lnk2
25530 if test "$cross_compiling" = yes; then :
25531 case "$host_os" in
25532 # Guess yes on glibc systems.
25533 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
25534 # If we don't know, assume the worst.
25535 *) gl_cv_func_readlink_works="guessing no" ;;
25536 esac
25538 else
25539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25540 /* end confdefs.h. */
25541 #include <unistd.h>
25544 main ()
25546 char buf[20];
25547 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
25549 return 0;
25551 _ACEOF
25552 if ac_fn_c_try_run "$LINENO"; then :
25553 gl_cv_func_readlink_works=yes
25554 else
25555 gl_cv_func_readlink_works=no
25557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25558 conftest.$ac_objext conftest.beam conftest.$ac_ext
25561 rm -f conftest.link conftest.lnk2
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
25564 $as_echo "$gl_cv_func_readlink_works" >&6; }
25565 case "$gl_cv_func_readlink_works" in
25566 *yes)
25567 if test "$gl_cv_decl_readlink_works" != yes; then
25568 REPLACE_READLINK=1
25573 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
25575 REPLACE_READLINK=1
25577 esac
25580 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
25589 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
25600 GNULIB_READLINK=1
25610 if test $ac_cv_func_readlinkat = no; then
25611 HAVE_READLINKAT=0
25614 if test $HAVE_READLINKAT = 0; then
25623 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
25631 GNULIB_READLINKAT=1
25638 for ac_func in sig2str
25639 do :
25640 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
25641 if test "x$ac_cv_func_sig2str" = x""yes; then :
25642 cat >>confdefs.h <<_ACEOF
25643 #define HAVE_SIG2STR 1
25644 _ACEOF
25647 done
25650 if test $ac_cv_func_sig2str = no; then
25659 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
25676 if test $gl_cv_have_include_next = yes; then
25677 gl_cv_next_signal_h='<'signal.h'>'
25678 else
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
25680 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
25681 if test "${gl_cv_next_signal_h+set}" = set; then :
25682 $as_echo_n "(cached) " >&6
25683 else
25685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25686 /* end confdefs.h. */
25687 #include <signal.h>
25689 _ACEOF
25690 case "$host_os" in
25691 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25692 *) gl_absname_cpp="$ac_cpp" ;;
25693 esac
25695 case "$host_os" in
25696 mingw*)
25697 gl_dirsep_regex='[/\\]'
25700 gl_dirsep_regex='\/'
25702 esac
25703 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25705 gl_header_literal_regex=`echo 'signal.h' \
25706 | sed -e "$gl_make_literal_regex_sed"`
25707 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25708 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25709 s|^/[^/]|//&|
25713 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25714 sed -n "$gl_absolute_header_sed"`'"'
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
25719 $as_echo "$gl_cv_next_signal_h" >&6; }
25721 NEXT_SIGNAL_H=$gl_cv_next_signal_h
25723 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25725 gl_next_as_first_directive='<'signal.h'>'
25726 else
25727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25728 gl_next_as_first_directive=$gl_cv_next_signal_h
25730 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
25736 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
25737 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
25738 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
25739 #include <signal.h>
25742 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
25744 else
25745 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
25754 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
25755 #include <signal.h>
25758 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
25760 else
25761 HAVE_SIGHANDLER_T=0
25767 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
25768 /* <sys/types.h> is not needed according to POSIX, but the
25769 <sys/socket.h> in i386-unknown-freebsd4.10 and
25770 powerpc-apple-darwin5.5 required it. */
25771 #include <sys/types.h>
25772 #if HAVE_SYS_SOCKET_H
25773 # include <sys/socket.h>
25774 #elif HAVE_WS2TCPIP_H
25775 # include <ws2tcpip.h>
25776 #endif
25779 if test "x$ac_cv_type_socklen_t" = x""yes; then :
25781 else
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
25783 $as_echo_n "checking for socklen_t equivalent... " >&6; }
25784 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
25785 $as_echo_n "(cached) " >&6
25786 else
25787 # Systems have either "struct sockaddr *" or
25788 # "void *" as the second argument to getpeername
25789 gl_cv_socklen_t_equiv=
25790 for arg2 in "struct sockaddr" void; do
25791 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
25792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25793 /* end confdefs.h. */
25794 #include <sys/types.h>
25795 #include <sys/socket.h>
25797 int getpeername (int, $arg2 *, $t *);
25799 main ()
25801 $t len;
25802 getpeername (0, 0, &len);
25804 return 0;
25806 _ACEOF
25807 if ac_fn_c_try_compile "$LINENO"; then :
25808 gl_cv_socklen_t_equiv="$t"
25810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25811 test "$gl_cv_socklen_t_equiv" != "" && break
25812 done
25813 test "$gl_cv_socklen_t_equiv" != "" && break
25814 done
25818 if test "$gl_cv_socklen_t_equiv" = ""; then
25819 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
25822 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
25824 cat >>confdefs.h <<_ACEOF
25825 #define socklen_t $gl_cv_socklen_t_equiv
25826 _ACEOF
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25832 $as_echo_n "checking for ssize_t... " >&6; }
25833 if test "${gt_cv_ssize_t+set}" = set; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25837 /* end confdefs.h. */
25838 #include <sys/types.h>
25840 main ()
25842 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25843 return !x;
25845 return 0;
25847 _ACEOF
25848 if ac_fn_c_try_compile "$LINENO"; then :
25849 gt_cv_ssize_t=yes
25850 else
25851 gt_cv_ssize_t=no
25853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25856 $as_echo "$gt_cv_ssize_t" >&6; }
25857 if test $gt_cv_ssize_t = no; then
25859 $as_echo "#define ssize_t int" >>confdefs.h
25867 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>
25868 #include <sys/stat.h>
25870 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
25872 cat >>confdefs.h <<_ACEOF
25873 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25874 _ACEOF
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25877 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25878 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
25879 $as_echo_n "(cached) " >&6
25880 else
25881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25882 /* end confdefs.h. */
25884 #include <sys/types.h>
25885 #include <sys/stat.h>
25886 #if HAVE_SYS_TIME_H
25887 # include <sys/time.h>
25888 #endif
25889 #include <time.h>
25890 struct timespec ts;
25891 struct stat st;
25894 main ()
25897 st.st_atim = ts;
25900 return 0;
25902 _ACEOF
25903 if ac_fn_c_try_compile "$LINENO"; then :
25904 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25905 else
25906 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25911 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25912 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25914 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25917 else
25918 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>
25919 #include <sys/stat.h>
25921 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
25923 cat >>confdefs.h <<_ACEOF
25924 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25925 _ACEOF
25928 else
25929 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25930 #include <sys/stat.h>
25932 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
25934 cat >>confdefs.h <<_ACEOF
25935 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25936 _ACEOF
25939 else
25940 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>
25941 #include <sys/stat.h>
25943 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
25945 cat >>confdefs.h <<_ACEOF
25946 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25947 _ACEOF
25962 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>
25963 #include <sys/stat.h>
25965 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
25967 cat >>confdefs.h <<_ACEOF
25968 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25969 _ACEOF
25972 else
25973 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25974 #include <sys/stat.h>
25976 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
25978 cat >>confdefs.h <<_ACEOF
25979 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25980 _ACEOF
25983 else
25984 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>
25985 #include <sys/stat.h>
25987 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
25989 cat >>confdefs.h <<_ACEOF
25990 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25991 _ACEOF
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
26003 $as_echo_n "checking for working stdalign.h... " >&6; }
26004 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
26005 $as_echo_n "(cached) " >&6
26006 else
26007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26008 /* end confdefs.h. */
26009 #include <stdalign.h>
26010 #include <stddef.h>
26012 /* Test that alignof yields a result consistent with offsetof.
26013 This catches GCC bug 52023
26014 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
26015 #ifdef __cplusplus
26016 template <class t> struct alignof_helper { char a; t b; };
26017 # define ao(type) offsetof (alignof_helper<type>, b)
26018 #else
26019 # define ao(type) offsetof (struct { char a; type b; }, b)
26020 #endif
26021 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
26022 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
26023 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
26025 /* Test _Alignas only on platforms where gnulib can help. */
26026 #if \
26027 ((defined __cplusplus && 201103 <= __cplusplus) \
26028 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
26029 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
26030 struct alignas_test { char c; char alignas (8) alignas_8; };
26031 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
26032 ? 1 : -1];
26033 #endif
26036 main ()
26040 return 0;
26042 _ACEOF
26043 if ac_fn_c_try_compile "$LINENO"; then :
26044 gl_cv_header_working_stdalign_h=yes
26045 else
26046 gl_cv_header_working_stdalign_h=no
26048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
26051 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
26053 if test $gl_cv_header_working_stdalign_h = yes; then
26054 STDALIGN_H=''
26055 else
26056 STDALIGN_H='stdalign.h'
26060 if test -n "$STDALIGN_H"; then
26061 GL_GENERATE_STDALIGN_H_TRUE=
26062 GL_GENERATE_STDALIGN_H_FALSE='#'
26063 else
26064 GL_GENERATE_STDALIGN_H_TRUE='#'
26065 GL_GENERATE_STDALIGN_H_FALSE=
26070 STDARG_H=''
26071 NEXT_STDARG_H='<stdarg.h>'
26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
26073 $as_echo_n "checking for va_copy... " >&6; }
26074 if test "${gl_cv_func_va_copy+set}" = set; then :
26075 $as_echo_n "(cached) " >&6
26076 else
26078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079 /* end confdefs.h. */
26080 #include <stdarg.h>
26082 main ()
26085 #ifndef va_copy
26086 void (*func) (va_list, va_list) = va_copy;
26087 #endif
26090 return 0;
26092 _ACEOF
26093 if ac_fn_c_try_compile "$LINENO"; then :
26094 gl_cv_func_va_copy=yes
26095 else
26096 gl_cv_func_va_copy=no
26098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
26102 $as_echo "$gl_cv_func_va_copy" >&6; }
26103 if test $gl_cv_func_va_copy = no; then
26104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26105 /* end confdefs.h. */
26106 #if defined _AIX && !defined __GNUC__
26107 AIX vaccine
26108 #endif
26110 _ACEOF
26111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26112 $EGREP "vaccine" >/dev/null 2>&1; then :
26113 gl_aixcc=yes
26114 else
26115 gl_aixcc=no
26117 rm -f conftest*
26119 if test $gl_aixcc = yes; then
26120 STDARG_H=stdarg.h
26129 if test $gl_cv_have_include_next = yes; then
26130 gl_cv_next_stdarg_h='<'stdarg.h'>'
26131 else
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
26133 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
26134 if test "${gl_cv_next_stdarg_h+set}" = set; then :
26135 $as_echo_n "(cached) " >&6
26136 else
26138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26139 /* end confdefs.h. */
26140 #include <stdarg.h>
26142 _ACEOF
26143 case "$host_os" in
26144 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26145 *) gl_absname_cpp="$ac_cpp" ;;
26146 esac
26148 case "$host_os" in
26149 mingw*)
26150 gl_dirsep_regex='[/\\]'
26153 gl_dirsep_regex='\/'
26155 esac
26156 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26158 gl_header_literal_regex=`echo 'stdarg.h' \
26159 | sed -e "$gl_make_literal_regex_sed"`
26160 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26161 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26162 s|^/[^/]|//&|
26166 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26167 sed -n "$gl_absolute_header_sed"`'"'
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
26172 $as_echo "$gl_cv_next_stdarg_h" >&6; }
26174 NEXT_STDARG_H=$gl_cv_next_stdarg_h
26176 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26177 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26178 gl_next_as_first_directive='<'stdarg.h'>'
26179 else
26180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26181 gl_next_as_first_directive=$gl_cv_next_stdarg_h
26183 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
26188 if test "$gl_cv_next_stdarg_h" = '""'; then
26189 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
26190 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
26192 else
26194 saved_as_echo_n="$as_echo_n"
26195 as_echo_n=':'
26196 if test "${gl_cv_func___va_copy+set}" = set; then :
26197 $as_echo_n "(cached) " >&6
26198 else
26200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26201 /* end confdefs.h. */
26202 #include <stdarg.h>
26204 main ()
26207 #ifndef __va_copy
26208 error, bail out
26209 #endif
26212 return 0;
26214 _ACEOF
26215 if ac_fn_c_try_compile "$LINENO"; then :
26216 gl_cv_func___va_copy=yes
26217 else
26218 gl_cv_func___va_copy=no
26220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26223 as_echo_n="$saved_as_echo_n"
26225 if test $gl_cv_func___va_copy = yes; then
26227 $as_echo "#define va_copy __va_copy" >>confdefs.h
26229 else
26232 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
26238 if test -n "$STDARG_H"; then
26239 GL_GENERATE_STDARG_H_TRUE=
26240 GL_GENERATE_STDARG_H_FALSE='#'
26241 else
26242 GL_GENERATE_STDARG_H_TRUE='#'
26243 GL_GENERATE_STDARG_H_FALSE=
26251 # Define two additional variables used in the Makefile substitution.
26253 if test "$ac_cv_header_stdbool_h" = yes; then
26254 STDBOOL_H=''
26255 else
26256 STDBOOL_H='stdbool.h'
26259 if test -n "$STDBOOL_H"; then
26260 GL_GENERATE_STDBOOL_H_TRUE=
26261 GL_GENERATE_STDBOOL_H_FALSE='#'
26262 else
26263 GL_GENERATE_STDBOOL_H_TRUE='#'
26264 GL_GENERATE_STDBOOL_H_FALSE=
26268 if test "$ac_cv_type__Bool" = yes; then
26269 HAVE__BOOL=1
26270 else
26271 HAVE__BOOL=0
26278 STDDEF_H=
26279 if test $gt_cv_c_wchar_t = no; then
26280 HAVE_WCHAR_T=0
26281 STDDEF_H=stddef.h
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
26284 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
26285 if test "${gl_cv_decl_null_works+set}" = set; then :
26286 $as_echo_n "(cached) " >&6
26287 else
26288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26289 /* end confdefs.h. */
26290 #include <stddef.h>
26291 int test[2 * (sizeof NULL == sizeof (void *)) -1];
26294 main ()
26298 return 0;
26300 _ACEOF
26301 if ac_fn_c_try_compile "$LINENO"; then :
26302 gl_cv_decl_null_works=yes
26303 else
26304 gl_cv_decl_null_works=no
26306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
26309 $as_echo "$gl_cv_decl_null_works" >&6; }
26310 if test $gl_cv_decl_null_works = no; then
26311 REPLACE_NULL=1
26312 STDDEF_H=stddef.h
26315 if test -n "$STDDEF_H"; then
26316 GL_GENERATE_STDDEF_H_TRUE=
26317 GL_GENERATE_STDDEF_H_FALSE='#'
26318 else
26319 GL_GENERATE_STDDEF_H_TRUE='#'
26320 GL_GENERATE_STDDEF_H_FALSE=
26323 if test -n "$STDDEF_H"; then
26332 if test $gl_cv_have_include_next = yes; then
26333 gl_cv_next_stddef_h='<'stddef.h'>'
26334 else
26335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
26336 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
26337 if test "${gl_cv_next_stddef_h+set}" = set; then :
26338 $as_echo_n "(cached) " >&6
26339 else
26341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26342 /* end confdefs.h. */
26343 #include <stddef.h>
26345 _ACEOF
26346 case "$host_os" in
26347 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26348 *) gl_absname_cpp="$ac_cpp" ;;
26349 esac
26351 case "$host_os" in
26352 mingw*)
26353 gl_dirsep_regex='[/\\]'
26356 gl_dirsep_regex='\/'
26358 esac
26359 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26361 gl_header_literal_regex=`echo 'stddef.h' \
26362 | sed -e "$gl_make_literal_regex_sed"`
26363 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26364 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26365 s|^/[^/]|//&|
26369 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26370 sed -n "$gl_absolute_header_sed"`'"'
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
26375 $as_echo "$gl_cv_next_stddef_h" >&6; }
26377 NEXT_STDDEF_H=$gl_cv_next_stddef_h
26379 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26380 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26381 gl_next_as_first_directive='<'stddef.h'>'
26382 else
26383 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26384 gl_next_as_first_directive=$gl_cv_next_stddef_h
26386 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
26404 if test $gl_cv_have_include_next = yes; then
26405 gl_cv_next_stdio_h='<'stdio.h'>'
26406 else
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
26408 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
26409 if test "${gl_cv_next_stdio_h+set}" = set; then :
26410 $as_echo_n "(cached) " >&6
26411 else
26413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26414 /* end confdefs.h. */
26415 #include <stdio.h>
26417 _ACEOF
26418 case "$host_os" in
26419 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26420 *) gl_absname_cpp="$ac_cpp" ;;
26421 esac
26423 case "$host_os" in
26424 mingw*)
26425 gl_dirsep_regex='[/\\]'
26428 gl_dirsep_regex='\/'
26430 esac
26431 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26433 gl_header_literal_regex=`echo 'stdio.h' \
26434 | sed -e "$gl_make_literal_regex_sed"`
26435 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26436 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26437 s|^/[^/]|//&|
26441 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26442 sed -n "$gl_absolute_header_sed"`'"'
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26447 $as_echo "$gl_cv_next_stdio_h" >&6; }
26449 NEXT_STDIO_H=$gl_cv_next_stdio_h
26451 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26452 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26453 gl_next_as_first_directive='<'stdio.h'>'
26454 else
26455 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26456 gl_next_as_first_directive=$gl_cv_next_stdio_h
26458 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26464 GNULIB_FSCANF=1
26467 cat >>confdefs.h <<_ACEOF
26468 #define GNULIB_FSCANF 1
26469 _ACEOF
26472 GNULIB_SCANF=1
26475 cat >>confdefs.h <<_ACEOF
26476 #define GNULIB_SCANF 1
26477 _ACEOF
26480 GNULIB_FGETC=1
26481 GNULIB_GETC=1
26482 GNULIB_GETCHAR=1
26483 GNULIB_FGETS=1
26484 GNULIB_FREAD=1
26487 GNULIB_FPRINTF=1
26488 GNULIB_PRINTF=1
26489 GNULIB_VFPRINTF=1
26490 GNULIB_VPRINTF=1
26491 GNULIB_FPUTC=1
26492 GNULIB_PUTC=1
26493 GNULIB_PUTCHAR=1
26494 GNULIB_FPUTS=1
26495 GNULIB_PUTS=1
26496 GNULIB_FWRITE=1
26512 if test $gl_cv_have_include_next = yes; then
26513 gl_cv_next_stdlib_h='<'stdlib.h'>'
26514 else
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26516 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26517 if test "${gl_cv_next_stdlib_h+set}" = set; then :
26518 $as_echo_n "(cached) " >&6
26519 else
26521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26522 /* end confdefs.h. */
26523 #include <stdlib.h>
26525 _ACEOF
26526 case "$host_os" in
26527 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26528 *) gl_absname_cpp="$ac_cpp" ;;
26529 esac
26531 case "$host_os" in
26532 mingw*)
26533 gl_dirsep_regex='[/\\]'
26536 gl_dirsep_regex='\/'
26538 esac
26539 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26541 gl_header_literal_regex=`echo 'stdlib.h' \
26542 | sed -e "$gl_make_literal_regex_sed"`
26543 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26544 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26545 s|^/[^/]|//&|
26549 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26550 sed -n "$gl_absolute_header_sed"`'"'
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26555 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26557 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26559 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26560 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26561 gl_next_as_first_directive='<'stdlib.h'>'
26562 else
26563 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26564 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26566 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26576 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26584 $as_echo "#define my_strftime nstrftime" >>confdefs.h
26596 if test "$ac_cv_have_decl_strtoimax" != yes; then
26597 HAVE_DECL_STRTOIMAX=0
26600 if test $ac_cv_func_strtoimax = yes; then
26601 HAVE_STRTOIMAX=1
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
26603 $as_echo_n "checking whether strtoimax works... " >&6; }
26604 if test "${gl_cv_func_strtoimax+set}" = set; then :
26605 $as_echo_n "(cached) " >&6
26606 else
26607 if test "$cross_compiling" = yes; then :
26608 case "$host_os" in
26609 # Guess no on AIX 5.
26610 aix5*) gl_cv_func_strtoimax="guessing no" ;;
26611 # Guess yes otherwise.
26612 *) gl_cv_func_strtoimax="guessing yes" ;;
26613 esac
26615 else
26616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26617 /* end confdefs.h. */
26619 #include <errno.h>
26620 #include <string.h>
26621 #include <inttypes.h>
26622 int main ()
26624 if (sizeof (intmax_t) > sizeof (int))
26626 const char *s = "4294967295";
26627 char *p;
26628 intmax_t res;
26629 errno = 0;
26630 res = strtoimax (s, &p, 10);
26631 if (p != s + strlen (s))
26632 return 1;
26633 if (errno != 0)
26634 return 2;
26635 if (res != (intmax_t) 65535 * (intmax_t) 65537)
26636 return 3;
26638 else
26640 const char *s = "2147483647";
26641 char *p;
26642 intmax_t res;
26643 errno = 0;
26644 res = strtoimax (s, &p, 10);
26645 if (p != s + strlen (s))
26646 return 1;
26647 if (errno != 0)
26648 return 2;
26649 if (res != 2147483647)
26650 return 3;
26652 return 0;
26655 _ACEOF
26656 if ac_fn_c_try_run "$LINENO"; then :
26657 gl_cv_func_strtoimax=yes
26658 else
26659 gl_cv_func_strtoimax=no
26661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26662 conftest.$ac_objext conftest.beam conftest.$ac_ext
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
26668 $as_echo "$gl_cv_func_strtoimax" >&6; }
26669 case "$gl_cv_func_strtoimax" in
26670 *no) REPLACE_STRTOIMAX=1 ;;
26671 esac
26672 else
26673 HAVE_STRTOIMAX=0
26676 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26685 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
26688 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
26689 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
26690 ac_have_decl=1
26691 else
26692 ac_have_decl=0
26695 cat >>confdefs.h <<_ACEOF
26696 #define HAVE_DECL_STRTOLL $ac_have_decl
26697 _ACEOF
26707 GNULIB_STRTOIMAX=1
26717 if test "$ac_cv_have_decl_strtoumax" != yes; then
26718 HAVE_DECL_STRTOUMAX=0
26721 if test $ac_cv_func_strtoumax = no; then
26730 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
26733 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
26734 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
26735 ac_have_decl=1
26736 else
26737 ac_have_decl=0
26740 cat >>confdefs.h <<_ACEOF
26741 #define HAVE_DECL_STRTOULL $ac_have_decl
26742 _ACEOF
26752 GNULIB_STRTOUMAX=1
26760 if test $ac_cv_func_symlink = no; then
26761 HAVE_SYMLINK=0
26762 else
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
26764 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
26765 if test "${gl_cv_func_symlink_works+set}" = set; then :
26766 $as_echo_n "(cached) " >&6
26767 else
26768 if test "$cross_compiling" = yes; then :
26769 case "$host_os" in
26770 # Guess yes on glibc systems.
26771 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
26772 # If we don't know, assume the worst.
26773 *) gl_cv_func_symlink_works="guessing no" ;;
26774 esac
26776 else
26777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26778 /* end confdefs.h. */
26779 #include <unistd.h>
26782 main ()
26784 int result = 0;
26785 if (!symlink ("a", "conftest.link/"))
26786 result |= 1;
26787 if (symlink ("conftest.f", "conftest.lnk2"))
26788 result |= 2;
26789 else if (!symlink ("a", "conftest.lnk2/"))
26790 result |= 4;
26791 return result;
26794 return 0;
26796 _ACEOF
26797 if ac_fn_c_try_run "$LINENO"; then :
26798 gl_cv_func_symlink_works=yes
26799 else
26800 gl_cv_func_symlink_works=no
26802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26803 conftest.$ac_objext conftest.beam conftest.$ac_ext
26806 rm -f conftest.f conftest.link conftest.lnk2
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
26809 $as_echo "$gl_cv_func_symlink_works" >&6; }
26810 case "$gl_cv_func_symlink_works" in
26811 *yes) ;;
26813 REPLACE_SYMLINK=1
26815 esac
26818 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
26827 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
26835 GNULIB_SYMLINK=1
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26845 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26846 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
26847 $as_echo_n "(cached) " >&6
26848 else
26850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h. */
26852 #include <sys/select.h>
26854 main ()
26856 struct timeval b;
26858 return 0;
26860 _ACEOF
26861 if ac_fn_c_try_compile "$LINENO"; then :
26862 gl_cv_header_sys_select_h_selfcontained=yes
26863 else
26864 gl_cv_header_sys_select_h_selfcontained=no
26866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26867 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
26868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26869 /* end confdefs.h. */
26870 #include <sys/select.h>
26872 main ()
26874 int memset; int bzero;
26876 return 0;
26879 _ACEOF
26880 if ac_fn_c_try_compile "$LINENO"; then :
26881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26882 /* end confdefs.h. */
26883 #include <sys/select.h>
26885 main ()
26888 #undef memset
26889 #define memset nonexistent_memset
26890 extern
26891 #ifdef __cplusplus
26893 #endif
26894 void *memset (void *, int, unsigned long);
26895 #undef bzero
26896 #define bzero nonexistent_bzero
26897 extern
26898 #ifdef __cplusplus
26900 #endif
26901 void bzero (void *, unsigned long);
26902 fd_set fds;
26903 FD_ZERO (&fds);
26906 return 0;
26909 _ACEOF
26910 if ac_fn_c_try_link "$LINENO"; then :
26912 else
26913 gl_cv_header_sys_select_h_selfcontained=no
26915 rm -f core conftest.err conftest.$ac_objext \
26916 conftest$ac_exeext conftest.$ac_ext
26919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
26924 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
26934 if test $gl_cv_have_include_next = yes; then
26935 gl_cv_next_sys_select_h='<'sys/select.h'>'
26936 else
26937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
26938 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
26939 if test "${gl_cv_next_sys_select_h+set}" = set; then :
26940 $as_echo_n "(cached) " >&6
26941 else
26943 if test $ac_cv_header_sys_select_h = yes; then
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26948 #include <sys/select.h>
26950 _ACEOF
26951 case "$host_os" in
26952 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26953 *) gl_absname_cpp="$ac_cpp" ;;
26954 esac
26956 case "$host_os" in
26957 mingw*)
26958 gl_dirsep_regex='[/\\]'
26961 gl_dirsep_regex='\/'
26963 esac
26964 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26966 gl_header_literal_regex=`echo 'sys/select.h' \
26967 | sed -e "$gl_make_literal_regex_sed"`
26968 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26969 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26970 s|^/[^/]|//&|
26974 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26975 sed -n "$gl_absolute_header_sed"`'"'
26976 else
26977 gl_cv_next_sys_select_h='<'sys/select.h'>'
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
26983 $as_echo "$gl_cv_next_sys_select_h" >&6; }
26985 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
26987 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26989 gl_next_as_first_directive='<'sys/select.h'>'
26990 else
26991 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26992 gl_next_as_first_directive=$gl_cv_next_sys_select_h
26994 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
26999 if test $ac_cv_header_sys_select_h = yes; then
27000 HAVE_SYS_SELECT_H=1
27001 else
27002 HAVE_SYS_SELECT_H=0
27009 if test $ac_cv_header_sys_socket_h != yes; then
27010 for ac_header in winsock2.h
27011 do :
27012 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27013 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
27014 cat >>confdefs.h <<_ACEOF
27015 #define HAVE_WINSOCK2_H 1
27016 _ACEOF
27020 done
27023 if test "$ac_cv_header_winsock2_h" = yes; then
27024 HAVE_WINSOCK2_H=1
27025 UNISTD_H_HAVE_WINSOCK2_H=1
27026 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27027 else
27028 HAVE_WINSOCK2_H=0
27050 if test $gl_cv_have_include_next = yes; then
27051 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27052 else
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
27054 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
27055 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
27056 $as_echo_n "(cached) " >&6
27057 else
27059 if test $ac_cv_header_sys_stat_h = yes; then
27062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27063 /* end confdefs.h. */
27064 #include <sys/stat.h>
27066 _ACEOF
27067 case "$host_os" in
27068 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27069 *) gl_absname_cpp="$ac_cpp" ;;
27070 esac
27072 case "$host_os" in
27073 mingw*)
27074 gl_dirsep_regex='[/\\]'
27077 gl_dirsep_regex='\/'
27079 esac
27080 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27082 gl_header_literal_regex=`echo 'sys/stat.h' \
27083 | sed -e "$gl_make_literal_regex_sed"`
27084 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27085 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27086 s|^/[^/]|//&|
27090 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27091 sed -n "$gl_absolute_header_sed"`'"'
27092 else
27093 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
27099 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
27101 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
27103 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27104 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27105 gl_next_as_first_directive='<'sys/stat.h'>'
27106 else
27107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27108 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
27110 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
27122 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
27124 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
27128 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
27129 #include <sys/stat.h>
27131 if test "x$ac_cv_type_nlink_t" = x""yes; then :
27133 else
27135 $as_echo "#define nlink_t int" >>confdefs.h
27156 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
27158 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
27159 ac_have_decl=1
27160 else
27161 ac_have_decl=0
27164 cat >>confdefs.h <<_ACEOF
27165 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
27166 _ACEOF
27168 if test $ac_cv_have_decl_localtime_r = no; then
27169 HAVE_DECL_LOCALTIME_R=0
27173 if test $ac_cv_func_localtime_r = yes; then
27174 HAVE_LOCALTIME_R=1
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
27176 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
27177 if test "${gl_cv_time_r_posix+set}" = set; then :
27178 $as_echo_n "(cached) " >&6
27179 else
27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181 /* end confdefs.h. */
27182 #include <time.h>
27184 main ()
27186 /* We don't need to append 'restrict's to the argument types,
27187 even though the POSIX signature has the 'restrict's,
27188 since C99 says they can't affect type compatibility. */
27189 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
27190 if (ptr) return 0;
27191 /* Check the return type is a pointer.
27192 On HP-UX 10 it is 'int'. */
27193 *localtime_r (0, 0);
27195 return 0;
27198 _ACEOF
27199 if ac_fn_c_try_compile "$LINENO"; then :
27200 gl_cv_time_r_posix=yes
27201 else
27202 gl_cv_time_r_posix=no
27204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
27208 $as_echo "$gl_cv_time_r_posix" >&6; }
27209 if test $gl_cv_time_r_posix = yes; then
27210 REPLACE_LOCALTIME_R=0
27211 else
27212 REPLACE_LOCALTIME_R=1
27214 else
27215 HAVE_LOCALTIME_R=0
27218 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
27227 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
27238 GNULIB_TIME_R=1
27249 LIB_TIMER_TIME=
27251 gl_saved_libs=$LIBS
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
27253 $as_echo_n "checking for library containing timer_settime... " >&6; }
27254 if test "${ac_cv_search_timer_settime+set}" = set; then :
27255 $as_echo_n "(cached) " >&6
27256 else
27257 ac_func_search_save_LIBS=$LIBS
27258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27259 /* end confdefs.h. */
27261 /* Override any GCC internal prototype to avoid an error.
27262 Use char because int might match the return type of a GCC
27263 builtin and then its argument prototype would still apply. */
27264 #ifdef __cplusplus
27265 extern "C"
27266 #endif
27267 char timer_settime ();
27269 main ()
27271 return timer_settime ();
27273 return 0;
27275 _ACEOF
27276 for ac_lib in '' rt posix4; do
27277 if test -z "$ac_lib"; then
27278 ac_res="none required"
27279 else
27280 ac_res=-l$ac_lib
27281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27283 if ac_fn_c_try_link "$LINENO"; then :
27284 ac_cv_search_timer_settime=$ac_res
27286 rm -f core conftest.err conftest.$ac_objext \
27287 conftest$ac_exeext
27288 if test "${ac_cv_search_timer_settime+set}" = set; then :
27289 break
27291 done
27292 if test "${ac_cv_search_timer_settime+set}" = set; then :
27294 else
27295 ac_cv_search_timer_settime=no
27297 rm conftest.$ac_ext
27298 LIBS=$ac_func_search_save_LIBS
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
27301 $as_echo "$ac_cv_search_timer_settime" >&6; }
27302 ac_res=$ac_cv_search_timer_settime
27303 if test "$ac_res" != no; then :
27304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27305 test "$ac_cv_search_timer_settime" = "none required" ||
27306 LIB_TIMER_TIME=$ac_cv_search_timer_settime
27309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27310 /* end confdefs.h. */
27312 #include <features.h>
27313 #ifdef __GNU_LIBRARY__
27314 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
27315 && !defined __UCLIBC__
27316 Thread emulation available
27317 #endif
27318 #endif
27320 _ACEOF
27321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27322 $EGREP "Thread" >/dev/null 2>&1; then :
27323 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
27325 rm -f conftest*
27327 for ac_func in timer_settime
27328 do :
27329 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
27330 if test "x$ac_cv_func_timer_settime" = x""yes; then :
27331 cat >>confdefs.h <<_ACEOF
27332 #define HAVE_TIMER_SETTIME 1
27333 _ACEOF
27336 done
27338 LIBS=$gl_saved_libs
27353 if test $gl_cv_have_include_next = yes; then
27354 gl_cv_next_unistd_h='<'unistd.h'>'
27355 else
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
27357 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
27358 if test "${gl_cv_next_unistd_h+set}" = set; then :
27359 $as_echo_n "(cached) " >&6
27360 else
27362 if test $ac_cv_header_unistd_h = yes; then
27365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27366 /* end confdefs.h. */
27367 #include <unistd.h>
27369 _ACEOF
27370 case "$host_os" in
27371 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27372 *) gl_absname_cpp="$ac_cpp" ;;
27373 esac
27375 case "$host_os" in
27376 mingw*)
27377 gl_dirsep_regex='[/\\]'
27380 gl_dirsep_regex='\/'
27382 esac
27383 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27385 gl_header_literal_regex=`echo 'unistd.h' \
27386 | sed -e "$gl_make_literal_regex_sed"`
27387 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27388 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27389 s|^/[^/]|//&|
27393 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27394 sed -n "$gl_absolute_header_sed"`'"'
27395 else
27396 gl_cv_next_unistd_h='<'unistd.h'>'
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
27402 $as_echo "$gl_cv_next_unistd_h" >&6; }
27404 NEXT_UNISTD_H=$gl_cv_next_unistd_h
27406 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27407 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27408 gl_next_as_first_directive='<'unistd.h'>'
27409 else
27410 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27411 gl_next_as_first_directive=$gl_cv_next_unistd_h
27413 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
27418 if test $ac_cv_header_unistd_h = yes; then
27419 HAVE_UNISTD_H=1
27420 else
27421 HAVE_UNISTD_H=0
27434 if test $ac_cv_have_decl_unsetenv = no; then
27435 HAVE_DECL_UNSETENV=0
27437 for ac_func in unsetenv
27438 do :
27439 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
27440 if test "x$ac_cv_func_unsetenv" = x""yes; then :
27441 cat >>confdefs.h <<_ACEOF
27442 #define HAVE_UNSETENV 1
27443 _ACEOF
27446 done
27448 if test $ac_cv_func_unsetenv = no; then
27449 HAVE_UNSETENV=0
27450 else
27451 HAVE_UNSETENV=1
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
27453 $as_echo_n "checking for unsetenv() return type... " >&6; }
27454 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
27455 $as_echo_n "(cached) " >&6
27456 else
27457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h. */
27460 #undef _BSD
27461 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27462 #include <stdlib.h>
27463 extern
27464 #ifdef __cplusplus
27466 #endif
27467 int unsetenv (const char *name);
27470 main ()
27474 return 0;
27476 _ACEOF
27477 if ac_fn_c_try_compile "$LINENO"; then :
27478 gt_cv_func_unsetenv_ret='int'
27479 else
27480 gt_cv_func_unsetenv_ret='void'
27482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27485 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27486 if test $gt_cv_func_unsetenv_ret = 'void'; then
27488 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27490 REPLACE_UNSETENV=1
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27494 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27495 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
27496 $as_echo_n "(cached) " >&6
27497 else
27498 if test "$cross_compiling" = yes; then :
27499 case "$host_os" in
27500 # Guess yes on glibc systems.
27501 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27502 # If we don't know, assume the worst.
27503 *) gl_cv_func_unsetenv_works="guessing no" ;;
27504 esac
27506 else
27507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27508 /* end confdefs.h. */
27510 #include <stdlib.h>
27511 #include <errno.h>
27512 extern char **environ;
27515 main ()
27518 char entry1[] = "a=1";
27519 char entry2[] = "b=2";
27520 char *env[] = { entry1, entry2, NULL };
27521 if (putenv ((char *) "a=1")) return 1;
27522 if (putenv (entry2)) return 2;
27523 entry2[0] = 'a';
27524 unsetenv ("a");
27525 if (getenv ("a")) return 3;
27526 if (!unsetenv ("") || errno != EINVAL) return 4;
27527 entry2[0] = 'b';
27528 environ = env;
27529 if (!getenv ("a")) return 5;
27530 entry2[0] = 'a';
27531 unsetenv ("a");
27532 if (getenv ("a")) return 6;
27535 return 0;
27537 _ACEOF
27538 if ac_fn_c_try_run "$LINENO"; then :
27539 gl_cv_func_unsetenv_works=yes
27540 else
27541 gl_cv_func_unsetenv_works=no
27543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27544 conftest.$ac_objext conftest.beam conftest.$ac_ext
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27549 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27550 case "$gl_cv_func_unsetenv_works" in
27551 *yes) ;;
27553 REPLACE_UNSETENV=1
27555 esac
27558 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27567 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27579 GNULIB_UNSETENV=1
27591 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
27593 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
27594 if test "${gl_cv_func_futimesat_works+set}" = set; then :
27595 $as_echo_n "(cached) " >&6
27596 else
27597 touch conftest.file
27598 if test "$cross_compiling" = yes; then :
27599 case "$host_os" in
27600 # Guess yes on glibc systems.
27601 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
27602 # If we don't know, assume the worst.
27603 *) gl_cv_func_futimesat_works="guessing no" ;;
27604 esac
27606 else
27607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27608 /* end confdefs.h. */
27610 #include <stddef.h>
27611 #include <sys/times.h>
27612 #include <fcntl.h>
27615 main ()
27617 int fd = open ("conftest.file", O_RDWR);
27618 if (fd < 0) return 1;
27619 if (futimesat (fd, NULL, NULL)) return 2;
27622 return 0;
27624 _ACEOF
27625 if ac_fn_c_try_run "$LINENO"; then :
27626 gl_cv_func_futimesat_works=yes
27627 else
27628 gl_cv_func_futimesat_works=no
27630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27631 conftest.$ac_objext conftest.beam conftest.$ac_ext
27634 rm -f conftest.file
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
27637 $as_echo "$gl_cv_func_futimesat_works" >&6; }
27638 case "$gl_cv_func_futimesat_works" in
27639 *yes) ;;
27642 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
27645 esac
27648 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
27649 gl_gnulib_enabled_dosname=false
27650 gl_gnulib_enabled_euidaccess=false
27651 gl_gnulib_enabled_getdtablesize=false
27652 gl_gnulib_enabled_getgroups=false
27653 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
27654 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
27655 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
27656 gl_gnulib_enabled_pathmax=false
27657 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
27658 gl_gnulib_enabled_secure_getenv=false
27659 gl_gnulib_enabled_stat=false
27660 gl_gnulib_enabled_strtoll=false
27661 gl_gnulib_enabled_strtoull=false
27662 gl_gnulib_enabled_tempname=false
27663 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
27664 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
27666 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
27675 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27677 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
27680 func_gl_gnulib_m4code_dosname ()
27682 if ! $gl_gnulib_enabled_dosname; then
27683 gl_gnulib_enabled_dosname=true
27686 func_gl_gnulib_m4code_euidaccess ()
27688 if ! $gl_gnulib_enabled_euidaccess; then
27694 for ac_func in euidaccess
27695 do :
27696 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
27697 if test "x$ac_cv_func_euidaccess" = x""yes; then :
27698 cat >>confdefs.h <<_ACEOF
27699 #define HAVE_EUIDACCESS 1
27700 _ACEOF
27703 done
27705 if test $ac_cv_func_euidaccess = no; then
27706 HAVE_EUIDACCESS=0
27709 if test $HAVE_EUIDACCESS = 0; then
27718 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
27722 for ac_header in libgen.h
27723 do :
27724 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
27725 if test "x$ac_cv_header_libgen_h" = x""yes; then :
27726 cat >>confdefs.h <<_ACEOF
27727 #define HAVE_LIBGEN_H 1
27728 _ACEOF
27732 done
27735 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
27736 if test "x$ac_cv_func_getgroups" = x""yes; then :
27741 # If we don't yet have getgroups, see if it's in -lbsd.
27742 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27743 ac_save_LIBS=$LIBS
27744 if test $ac_cv_func_getgroups = no; then
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27746 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27747 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
27748 $as_echo_n "(cached) " >&6
27749 else
27750 ac_check_lib_save_LIBS=$LIBS
27751 LIBS="-lbsd $LIBS"
27752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27753 /* end confdefs.h. */
27755 /* Override any GCC internal prototype to avoid an error.
27756 Use char because int might match the return type of a GCC
27757 builtin and then its argument prototype would still apply. */
27758 #ifdef __cplusplus
27759 extern "C"
27760 #endif
27761 char getgroups ();
27763 main ()
27765 return getgroups ();
27767 return 0;
27769 _ACEOF
27770 if ac_fn_c_try_link "$LINENO"; then :
27771 ac_cv_lib_bsd_getgroups=yes
27772 else
27773 ac_cv_lib_bsd_getgroups=no
27775 rm -f core conftest.err conftest.$ac_objext \
27776 conftest$ac_exeext conftest.$ac_ext
27777 LIBS=$ac_check_lib_save_LIBS
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
27780 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
27781 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
27782 GETGROUPS_LIB=-lbsd
27787 # Run the program to test the functionality of the system-supplied
27788 # getgroups function only if there is such a function.
27789 if test $ac_cv_func_getgroups = yes; then
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
27791 $as_echo_n "checking for working getgroups... " >&6; }
27792 if test "${ac_cv_func_getgroups_works+set}" = set; then :
27793 $as_echo_n "(cached) " >&6
27794 else
27795 if test "$cross_compiling" = yes; then :
27796 case "$host_os" in # ((
27797 # Guess yes on glibc systems.
27798 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
27799 # If we don't know, assume the worst.
27800 *) ac_cv_func_getgroups_works="guessing no" ;;
27801 esac
27803 else
27804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27805 /* end confdefs.h. */
27806 $ac_includes_default
27808 main ()
27810 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
27811 return getgroups (0, 0) == -1;
27813 return 0;
27816 _ACEOF
27817 if ac_fn_c_try_run "$LINENO"; then :
27818 ac_cv_func_getgroups_works=yes
27819 else
27820 ac_cv_func_getgroups_works=no
27822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27823 conftest.$ac_objext conftest.beam conftest.$ac_ext
27828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
27829 $as_echo "$ac_cv_func_getgroups_works" >&6; }
27830 else
27831 ac_cv_func_getgroups_works=no
27833 case "$ac_cv_func_getgroups_works" in
27834 *yes)
27836 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
27839 esac
27840 LIBS=$ac_save_LIBS
27843 # Solaris 9 and 10 need -lgen to get the eaccess function.
27844 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
27845 # programs in the package would end up linked with that potentially-shared
27846 # library, inducing unnecessary run-time overhead.
27847 LIB_EACCESS=
27849 gl_saved_libs=$LIBS
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
27851 $as_echo_n "checking for library containing eaccess... " >&6; }
27852 if test "${ac_cv_search_eaccess+set}" = set; then :
27853 $as_echo_n "(cached) " >&6
27854 else
27855 ac_func_search_save_LIBS=$LIBS
27856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27857 /* end confdefs.h. */
27859 /* Override any GCC internal prototype to avoid an error.
27860 Use char because int might match the return type of a GCC
27861 builtin and then its argument prototype would still apply. */
27862 #ifdef __cplusplus
27863 extern "C"
27864 #endif
27865 char eaccess ();
27867 main ()
27869 return eaccess ();
27871 return 0;
27873 _ACEOF
27874 for ac_lib in '' gen; do
27875 if test -z "$ac_lib"; then
27876 ac_res="none required"
27877 else
27878 ac_res=-l$ac_lib
27879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27881 if ac_fn_c_try_link "$LINENO"; then :
27882 ac_cv_search_eaccess=$ac_res
27884 rm -f core conftest.err conftest.$ac_objext \
27885 conftest$ac_exeext
27886 if test "${ac_cv_search_eaccess+set}" = set; then :
27887 break
27889 done
27890 if test "${ac_cv_search_eaccess+set}" = set; then :
27892 else
27893 ac_cv_search_eaccess=no
27895 rm conftest.$ac_ext
27896 LIBS=$ac_func_search_save_LIBS
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
27899 $as_echo "$ac_cv_search_eaccess" >&6; }
27900 ac_res=$ac_cv_search_eaccess
27901 if test "$ac_res" != no; then :
27902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27903 test "$ac_cv_search_eaccess" = "none required" ||
27904 LIB_EACCESS=$ac_cv_search_eaccess
27907 for ac_func in eaccess
27908 do :
27909 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
27910 if test "x$ac_cv_func_eaccess" = x""yes; then :
27911 cat >>confdefs.h <<_ACEOF
27912 #define HAVE_EACCESS 1
27913 _ACEOF
27916 done
27918 LIBS=$gl_saved_libs
27926 GNULIB_EUIDACCESS=1
27932 gl_gnulib_enabled_euidaccess=true
27933 if test $HAVE_EUIDACCESS = 0; then
27934 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
27936 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
27937 if test $HAVE_EUIDACCESS = 0; then
27938 func_gl_gnulib_m4code_stat
27942 func_gl_gnulib_m4code_getdtablesize ()
27944 if ! $gl_gnulib_enabled_getdtablesize; then
27948 if test $ac_cv_func_getdtablesize != yes; then
27949 HAVE_GETDTABLESIZE=0
27952 if test $HAVE_GETDTABLESIZE = 0; then
27961 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
27970 GNULIB_GETDTABLESIZE=1
27976 gl_gnulib_enabled_getdtablesize=true
27979 func_gl_gnulib_m4code_getgroups ()
27981 if ! $gl_gnulib_enabled_getgroups; then
27987 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
27988 if test "x$ac_cv_func_getgroups" = x""yes; then :
27993 # If we don't yet have getgroups, see if it's in -lbsd.
27994 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
27995 ac_save_LIBS=$LIBS
27996 if test $ac_cv_func_getgroups = no; then
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
27998 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
27999 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
28000 $as_echo_n "(cached) " >&6
28001 else
28002 ac_check_lib_save_LIBS=$LIBS
28003 LIBS="-lbsd $LIBS"
28004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28005 /* end confdefs.h. */
28007 /* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28010 #ifdef __cplusplus
28011 extern "C"
28012 #endif
28013 char getgroups ();
28015 main ()
28017 return getgroups ();
28019 return 0;
28021 _ACEOF
28022 if ac_fn_c_try_link "$LINENO"; then :
28023 ac_cv_lib_bsd_getgroups=yes
28024 else
28025 ac_cv_lib_bsd_getgroups=no
28027 rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
28029 LIBS=$ac_check_lib_save_LIBS
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
28032 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
28033 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
28034 GETGROUPS_LIB=-lbsd
28039 # Run the program to test the functionality of the system-supplied
28040 # getgroups function only if there is such a function.
28041 if test $ac_cv_func_getgroups = yes; then
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
28043 $as_echo_n "checking for working getgroups... " >&6; }
28044 if test "${ac_cv_func_getgroups_works+set}" = set; then :
28045 $as_echo_n "(cached) " >&6
28046 else
28047 if test "$cross_compiling" = yes; then :
28048 case "$host_os" in # ((
28049 # Guess yes on glibc systems.
28050 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
28051 # If we don't know, assume the worst.
28052 *) ac_cv_func_getgroups_works="guessing no" ;;
28053 esac
28055 else
28056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28057 /* end confdefs.h. */
28058 $ac_includes_default
28060 main ()
28062 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28063 return getgroups (0, 0) == -1;
28065 return 0;
28068 _ACEOF
28069 if ac_fn_c_try_run "$LINENO"; then :
28070 ac_cv_func_getgroups_works=yes
28071 else
28072 ac_cv_func_getgroups_works=no
28074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28075 conftest.$ac_objext conftest.beam conftest.$ac_ext
28080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
28081 $as_echo "$ac_cv_func_getgroups_works" >&6; }
28082 else
28083 ac_cv_func_getgroups_works=no
28085 case "$ac_cv_func_getgroups_works" in
28086 *yes)
28088 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
28091 esac
28092 LIBS=$ac_save_LIBS
28094 if test $ac_cv_func_getgroups != yes; then
28095 HAVE_GETGROUPS=0
28096 else
28097 if test "$ac_cv_type_getgroups" != gid_t \
28098 || { case "$ac_cv_func_getgroups_works" in
28099 *yes) false;;
28100 *) true;;
28101 esac
28102 }; then
28103 REPLACE_GETGROUPS=1
28105 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
28107 else
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
28109 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
28110 if test "${gl_cv_func_getgroups_works+set}" = set; then :
28111 $as_echo_n "(cached) " >&6
28112 else
28113 if test "$cross_compiling" = yes; then :
28114 case "$host_os" in
28115 # Guess yes on glibc systems.
28116 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
28117 # If we don't know, assume the worst.
28118 *) gl_cv_func_getgroups_works="guessing no" ;;
28119 esac
28121 else
28122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28123 /* end confdefs.h. */
28124 $ac_includes_default
28126 main ()
28128 int size = getgroups (0, 0);
28129 gid_t *list = malloc (size * sizeof *list);
28130 return getgroups (-1, list) != -1;
28132 return 0;
28134 _ACEOF
28135 if ac_fn_c_try_run "$LINENO"; then :
28136 gl_cv_func_getgroups_works=yes
28137 else
28138 gl_cv_func_getgroups_works=no
28140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28141 conftest.$ac_objext conftest.beam conftest.$ac_ext
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
28146 $as_echo "$gl_cv_func_getgroups_works" >&6; }
28147 case "$gl_cv_func_getgroups_works" in
28148 *yes) ;;
28149 *) REPLACE_GETGROUPS=1 ;;
28150 esac
28153 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28155 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
28164 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
28172 GNULIB_GETGROUPS=1
28178 gl_gnulib_enabled_getgroups=true
28181 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
28183 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28186 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
28189 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
28191 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28197 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
28198 if test "x$ac_cv_func_group_member" = x""yes; then :
28200 else
28202 HAVE_GROUP_MEMBER=0
28207 if test $HAVE_GROUP_MEMBER = 0; then
28216 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
28227 GNULIB_GROUP_MEMBER=1
28233 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
28234 if test $HAVE_GROUP_MEMBER = 0; then
28235 func_gl_gnulib_m4code_getgroups
28237 if test $HAVE_GROUP_MEMBER = 0; then
28238 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
28242 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
28244 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28245 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
28248 func_gl_gnulib_m4code_pathmax ()
28250 if ! $gl_gnulib_enabled_pathmax; then
28254 gl_gnulib_enabled_pathmax=true
28257 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
28259 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28260 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
28263 func_gl_gnulib_m4code_secure_getenv ()
28265 if ! $gl_gnulib_enabled_secure_getenv; then
28271 if test $ac_cv_func_secure_getenv = no; then
28272 HAVE_SECURE_GETENV=0
28275 if test $HAVE_SECURE_GETENV = 0; then
28284 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
28287 for ac_func in __secure_getenv
28288 do :
28289 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
28290 if test "x$ac_cv_func___secure_getenv" = x""yes; then :
28291 cat >>confdefs.h <<_ACEOF
28292 #define HAVE___SECURE_GETENV 1
28293 _ACEOF
28296 done
28298 if test $ac_cv_func___secure_getenv = no; then
28299 for ac_func in issetugid
28300 do :
28301 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
28302 if test "x$ac_cv_func_issetugid" = x""yes; then :
28303 cat >>confdefs.h <<_ACEOF
28304 #define HAVE_ISSETUGID 1
28305 _ACEOF
28308 done
28318 GNULIB_SECURE_GETENV=1
28324 gl_gnulib_enabled_secure_getenv=true
28327 func_gl_gnulib_m4code_stat ()
28329 if ! $gl_gnulib_enabled_stat; then
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28334 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28335 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
28336 $as_echo_n "(cached) " >&6
28337 else
28338 if test "$cross_compiling" = yes; then :
28339 case $host_os in
28340 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28341 *) gl_cv_func_stat_dir_slash="guessing yes";;
28342 esac
28343 else
28344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28345 /* end confdefs.h. */
28346 #include <sys/stat.h>
28349 main ()
28351 struct stat st; return stat (".", &st) != stat ("./", &st);
28353 return 0;
28355 _ACEOF
28356 if ac_fn_c_try_run "$LINENO"; then :
28357 gl_cv_func_stat_dir_slash=yes
28358 else
28359 gl_cv_func_stat_dir_slash=no
28361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28362 conftest.$ac_objext conftest.beam conftest.$ac_ext
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28367 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28369 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28370 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
28371 $as_echo_n "(cached) " >&6
28372 else
28373 touch conftest.tmp
28374 # Assume that if we have lstat, we can also check symlinks.
28375 if test $ac_cv_func_lstat = yes; then
28376 ln -s conftest.tmp conftest.lnk
28378 if test "$cross_compiling" = yes; then :
28379 case "$host_os" in
28380 # Guess yes on glibc systems.
28381 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28382 # If we don't know, assume the worst.
28383 *) gl_cv_func_stat_file_slash="guessing no" ;;
28384 esac
28386 else
28387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28388 /* end confdefs.h. */
28389 #include <sys/stat.h>
28392 main ()
28394 int result = 0;
28395 struct stat st;
28396 if (!stat ("conftest.tmp/", &st))
28397 result |= 1;
28398 #if HAVE_LSTAT
28399 if (!stat ("conftest.lnk/", &st))
28400 result |= 2;
28401 #endif
28402 return result;
28405 return 0;
28407 _ACEOF
28408 if ac_fn_c_try_run "$LINENO"; then :
28409 gl_cv_func_stat_file_slash=yes
28410 else
28411 gl_cv_func_stat_file_slash=no
28413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28414 conftest.$ac_objext conftest.beam conftest.$ac_ext
28417 rm -f conftest.tmp conftest.lnk
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28420 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28421 case $gl_cv_func_stat_dir_slash in
28422 *no) REPLACE_STAT=1
28424 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28426 esac
28427 case $gl_cv_func_stat_file_slash in
28428 *no) REPLACE_STAT=1
28430 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28432 esac
28434 if test $REPLACE_STAT = 1; then
28443 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28452 GNULIB_STAT=1
28458 gl_gnulib_enabled_stat=true
28459 if test $REPLACE_STAT = 1; then
28460 func_gl_gnulib_m4code_dosname
28462 if test $REPLACE_STAT = 1; then
28463 func_gl_gnulib_m4code_pathmax
28467 func_gl_gnulib_m4code_strtoll ()
28469 if ! $gl_gnulib_enabled_strtoll; then
28473 if test "$ac_cv_type_long_long_int" = yes; then
28474 for ac_func in strtoll
28475 do :
28476 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28477 if test "x$ac_cv_func_strtoll" = x""yes; then :
28478 cat >>confdefs.h <<_ACEOF
28479 #define HAVE_STRTOLL 1
28480 _ACEOF
28483 done
28485 if test $ac_cv_func_strtoll = no; then
28486 HAVE_STRTOLL=0
28490 if test $HAVE_STRTOLL = 0; then
28499 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
28510 GNULIB_STRTOLL=1
28516 gl_gnulib_enabled_strtoll=true
28519 func_gl_gnulib_m4code_strtoull ()
28521 if ! $gl_gnulib_enabled_strtoull; then
28525 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
28526 for ac_func in strtoull
28527 do :
28528 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
28529 if test "x$ac_cv_func_strtoull" = x""yes; then :
28530 cat >>confdefs.h <<_ACEOF
28531 #define HAVE_STRTOULL 1
28532 _ACEOF
28535 done
28537 if test $ac_cv_func_strtoull = no; then
28538 HAVE_STRTOULL=0
28542 if test $HAVE_STRTOULL = 0; then
28551 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
28562 GNULIB_STRTOULL=1
28568 gl_gnulib_enabled_strtoull=true
28571 func_gl_gnulib_m4code_tempname ()
28573 if ! $gl_gnulib_enabled_tempname; then
28579 gl_gnulib_enabled_tempname=true
28580 func_gl_gnulib_m4code_secure_getenv
28583 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
28585 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28586 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
28589 if test $HAVE_FACCESSAT = 0; then
28590 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28592 if test $HAVE_FACCESSAT = 0; then
28593 func_gl_gnulib_m4code_dosname
28595 if test $HAVE_FACCESSAT = 0; then
28596 func_gl_gnulib_m4code_euidaccess
28598 if test $HAVE_FACCESSAT = 0; then
28599 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28601 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
28602 func_gl_gnulib_m4code_getdtablesize
28604 if test $HAVE_FDOPENDIR = 0; then
28605 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28607 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28608 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28610 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28611 func_gl_gnulib_m4code_dosname
28613 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
28614 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28616 if test $REPLACE_GETOPT = 1; then
28617 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
28619 if test $REPLACE_LSTAT = 1; then
28620 func_gl_gnulib_m4code_dosname
28622 if test $REPLACE_LSTAT = 1; then
28623 func_gl_gnulib_m4code_stat
28625 if test $HAVE_MKOSTEMP = 0; then
28626 func_gl_gnulib_m4code_tempname
28628 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
28629 func_gl_gnulib_m4code_stat
28631 if test $HAVE_READLINKAT = 0; then
28632 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
28634 if test $HAVE_READLINKAT = 0; then
28635 func_gl_gnulib_m4code_dosname
28637 if test $HAVE_READLINKAT = 0; then
28638 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
28640 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
28641 func_gl_gnulib_m4code_strtoll
28643 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
28644 func_gl_gnulib_m4code_strtoull
28647 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
28648 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
28649 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
28650 else
28651 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
28652 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
28655 if $gl_gnulib_enabled_dosname; then
28656 gl_GNULIB_ENABLED_dosname_TRUE=
28657 gl_GNULIB_ENABLED_dosname_FALSE='#'
28658 else
28659 gl_GNULIB_ENABLED_dosname_TRUE='#'
28660 gl_GNULIB_ENABLED_dosname_FALSE=
28663 if $gl_gnulib_enabled_euidaccess; then
28664 gl_GNULIB_ENABLED_euidaccess_TRUE=
28665 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
28666 else
28667 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
28668 gl_GNULIB_ENABLED_euidaccess_FALSE=
28671 if $gl_gnulib_enabled_getdtablesize; then
28672 gl_GNULIB_ENABLED_getdtablesize_TRUE=
28673 gl_GNULIB_ENABLED_getdtablesize_FALSE='#'
28674 else
28675 gl_GNULIB_ENABLED_getdtablesize_TRUE='#'
28676 gl_GNULIB_ENABLED_getdtablesize_FALSE=
28679 if $gl_gnulib_enabled_getgroups; then
28680 gl_GNULIB_ENABLED_getgroups_TRUE=
28681 gl_GNULIB_ENABLED_getgroups_FALSE='#'
28682 else
28683 gl_GNULIB_ENABLED_getgroups_TRUE='#'
28684 gl_GNULIB_ENABLED_getgroups_FALSE=
28687 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
28688 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
28689 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
28690 else
28691 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
28692 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
28695 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
28696 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
28697 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
28698 else
28699 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
28700 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
28703 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
28704 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
28705 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
28706 else
28707 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
28708 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
28711 if $gl_gnulib_enabled_pathmax; then
28712 gl_GNULIB_ENABLED_pathmax_TRUE=
28713 gl_GNULIB_ENABLED_pathmax_FALSE='#'
28714 else
28715 gl_GNULIB_ENABLED_pathmax_TRUE='#'
28716 gl_GNULIB_ENABLED_pathmax_FALSE=
28719 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
28720 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
28721 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
28722 else
28723 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
28724 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
28727 if $gl_gnulib_enabled_secure_getenv; then
28728 gl_GNULIB_ENABLED_secure_getenv_TRUE=
28729 gl_GNULIB_ENABLED_secure_getenv_FALSE='#'
28730 else
28731 gl_GNULIB_ENABLED_secure_getenv_TRUE='#'
28732 gl_GNULIB_ENABLED_secure_getenv_FALSE=
28735 if $gl_gnulib_enabled_stat; then
28736 gl_GNULIB_ENABLED_stat_TRUE=
28737 gl_GNULIB_ENABLED_stat_FALSE='#'
28738 else
28739 gl_GNULIB_ENABLED_stat_TRUE='#'
28740 gl_GNULIB_ENABLED_stat_FALSE=
28743 if $gl_gnulib_enabled_strtoll; then
28744 gl_GNULIB_ENABLED_strtoll_TRUE=
28745 gl_GNULIB_ENABLED_strtoll_FALSE='#'
28746 else
28747 gl_GNULIB_ENABLED_strtoll_TRUE='#'
28748 gl_GNULIB_ENABLED_strtoll_FALSE=
28751 if $gl_gnulib_enabled_strtoull; then
28752 gl_GNULIB_ENABLED_strtoull_TRUE=
28753 gl_GNULIB_ENABLED_strtoull_FALSE='#'
28754 else
28755 gl_GNULIB_ENABLED_strtoull_TRUE='#'
28756 gl_GNULIB_ENABLED_strtoull_FALSE=
28759 if $gl_gnulib_enabled_tempname; then
28760 gl_GNULIB_ENABLED_tempname_TRUE=
28761 gl_GNULIB_ENABLED_tempname_FALSE='#'
28762 else
28763 gl_GNULIB_ENABLED_tempname_TRUE='#'
28764 gl_GNULIB_ENABLED_tempname_FALSE=
28767 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
28768 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
28769 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
28770 else
28771 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
28772 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
28775 # End of code from modules
28785 gltests_libdeps=
28786 gltests_ltlibdeps=
28796 gl_source_base='tests'
28797 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
28799 gl_module_indicator_condition=$gltests_WITNESS
28810 LIBGNU_LIBDEPS="$gl_libdeps"
28812 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
28815 CFLAGS=$SAVE_CFLAGS
28816 LIBS=$SAVE_LIBS
28818 if test "${opsys}" = "mingw32"; then
28819 CPPFLAGS="$CPPFLAGS -DUSE_CRT_DLL=1 -I $srcdir/nt/inc"
28820 # Remove unneeded switches from the value of CC that goes to Makefiles
28821 CC=`echo $CC | sed -e "s,$GCC_TEST_OPTIONS,,"`
28824 case "$opsys" in
28825 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
28827 darwin)
28828 ## The -headerpad option tells ld (see man page) to leave room at the
28829 ## end of the header for adding load commands. Needed for dumping.
28830 ## 0x690 is the total size of 30 segment load commands (at 56
28831 ## each); under Cocoa 31 commands are required.
28832 if test "$HAVE_NS" = "yes"; then
28833 libs_nsgui="-framework AppKit"
28834 if test "$NS_IMPL_COCOA" = "yes"; then
28835 libs_nsgui="$libs_nsgui -framework IOKit"
28837 headerpad_extra=6C8
28838 else
28839 libs_nsgui=
28840 headerpad_extra=690
28842 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
28844 ## This is here because src/Makefile.in did some extra fiddling around
28845 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
28846 ## LD_SWITCH_SYSTEM_TEMACS instead,
28847 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
28848 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
28851 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
28852 ## find X at run-time.
28853 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
28854 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
28855 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
28856 ## had different values in configure (in ac_link) and src/Makefile.in.
28857 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
28858 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
28860 mingw32)
28861 ## MinGW64 does not prepend an underscore to symbols, so we must
28862 ## pass a different -entry switch to linker. FIXME: It is better
28863 ## to make the entry points the same by changing unexw32.c.
28864 case "$canonical" in
28865 x86_64-*-*) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,_start -Wl,-Map,./temacs.map" ;;
28866 *) LD_SWITCH_SYSTEM_TEMACS="-Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-entry,__start -Wl,-Map,./temacs.map" ;;
28867 esac
28870 openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
28872 *) LD_SWITCH_SYSTEM_TEMACS= ;;
28873 esac
28875 if test x$ac_enable_profiling != x ; then
28876 case $opsys in
28877 *freebsd | gnu-linux) ;;
28878 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
28879 esac
28884 ## MinGW-specific post-link processing of temacs.
28885 TEMACS_POST_LINK=":"
28886 ADDSECTION=
28887 EMACS_HEAPSIZE=
28888 if test "${opsys}" = "mingw32"; then
28889 TEMACS_POST_LINK="\$(MINGW_TEMACS_POST_LINK)"
28890 ADDSECTION="../nt/addsection\$(EXEEXT)"
28891 ## Preload heap size of temacs.exe in MB.
28892 case "$canonical" in
28893 x86_64-*-*) EMACS_HEAPSIZE=42 ;;
28894 *) EMACS_HEAPSIZE=27 ;;
28895 esac
28902 ## Common for all window systems
28903 if test "$window_system" != "none"; then
28905 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
28907 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
28914 #### Report on what we decided to do.
28915 #### Report GTK as a toolkit, even if it doesn't use Xt.
28916 #### It makes printing result more understandable as using GTK sets
28917 #### toolkit_scroll_bars to yes by default.
28918 if test "${HAVE_GTK}" = "yes"; then
28919 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
28922 if test $USE_ACL -ne 0; then
28923 acl_summary="yes $LIB_ACL"
28924 else
28925 acl_summary=no
28928 echo "
28929 Configured for \`${canonical}'.
28931 Where should the build process find the source code? ${srcdir}
28932 What compiler should emacs be built with? ${CC} ${CFLAGS}
28933 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
28934 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
28935 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
28936 What window system should Emacs use? ${window_system}
28937 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
28939 if test -n "${x_includes}"; then
28940 echo " Where do we find X Windows header files? ${x_includes}"
28941 else
28942 echo " Where do we find X Windows header files? Standard dirs"
28944 if test -n "${x_libraries}"; then
28945 echo " Where do we find X Windows libraries? ${x_libraries}"
28946 else
28947 echo " Where do we find X Windows libraries? Standard dirs"
28950 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
28951 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
28952 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
28953 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
28954 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
28955 echo " Does Emacs use -lpng? ${HAVE_PNG}"
28956 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
28957 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
28959 echo " Does Emacs support sound? ${HAVE_SOUND}"
28961 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
28962 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
28963 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
28964 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
28965 echo " Does Emacs use a file notification library? ${NOTIFY_SUMMARY}"
28966 echo " Does Emacs use access control lists? ${acl_summary}"
28967 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
28968 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
28969 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
28971 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
28972 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
28973 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
28974 echo " Does Emacs use -lxft? ${HAVE_XFT}"
28975 echo " Does Emacs directly use zlib? ${HAVE_ZLIB}"
28977 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
28978 echo
28980 if test -n "${EMACSDATA}"; then
28981 echo " Environment variable EMACSDATA set to: $EMACSDATA"
28983 if test -n "${EMACSDOC}"; then
28984 echo " Environment variable EMACSDOC set to: $EMACSDOC"
28987 echo
28989 if test "$HAVE_NS" = "yes"; then
28990 echo
28991 echo "You must run \"${MAKE-make} install\" in order to test the built application.
28992 The installed application will go to nextstep/Emacs.app and can be
28993 run or moved from there."
28994 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
28995 echo "The application will be fully self-contained."
28996 else
28997 echo "The lisp resources for the application will be installed under ${prefix}.
28998 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
28999 to run if these resources are not installed."
29001 echo
29004 if test "${opsys}" = "cygwin"; then
29005 case `uname -r` in
29006 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
29007 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
29008 echo
29010 esac
29013 # Remove any trailing slashes in these variables.
29014 test "${prefix}" != NONE &&
29015 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
29016 test "${exec_prefix}" != NONE &&
29017 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
29019 if test "$HAVE_NS" = "yes"; then
29020 if test "$NS_IMPL_GNUSTEP" = yes; then
29021 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"
29023 else
29024 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"
29029 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"
29031 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"
29034 opt_makefile=test/automated/Makefile
29036 if test -f "$srcdir/$opt_makefile.in"; then
29037 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29038 ac_config_files="$ac_config_files test/automated/Makefile"
29043 opt_makefile=admin/unidata/Makefile
29045 if test -f "$srcdir/$opt_makefile.in"; then
29046 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
29047 ac_config_files="$ac_config_files admin/unidata/Makefile"
29052 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
29056 ac_config_commands="$ac_config_commands src/epaths.h"
29059 ac_config_commands="$ac_config_commands src/.gdbinit"
29062 cat >confcache <<\_ACEOF
29063 # This file is a shell script that caches the results of configure
29064 # tests run on this system so they can be shared between configure
29065 # scripts and configure runs, see configure's option --config-cache.
29066 # It is not useful on other systems. If it contains results you don't
29067 # want to keep, you may remove or edit it.
29069 # config.status only pays attention to the cache file if you give it
29070 # the --recheck option to rerun configure.
29072 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29073 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29074 # following values.
29076 _ACEOF
29078 # The following way of writing the cache mishandles newlines in values,
29079 # but we know of no workaround that is simple, portable, and efficient.
29080 # So, we kill variables containing newlines.
29081 # Ultrix sh set writes to stderr and can't be redirected directly,
29082 # and sets the high bit in the cache file unless we assign to the vars.
29084 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29085 eval ac_val=\$$ac_var
29086 case $ac_val in #(
29087 *${as_nl}*)
29088 case $ac_var in #(
29089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29090 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29091 esac
29092 case $ac_var in #(
29093 _ | IFS | as_nl) ;; #(
29094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29095 *) { eval $ac_var=; unset $ac_var;} ;;
29096 esac ;;
29097 esac
29098 done
29100 (set) 2>&1 |
29101 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29102 *${as_nl}ac_space=\ *)
29103 # `set' does not quote correctly, so add quotes: double-quote
29104 # substitution turns \\\\ into \\, and sed turns \\ into \.
29105 sed -n \
29106 "s/'/'\\\\''/g;
29107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29108 ;; #(
29110 # `set' quotes correctly as required by POSIX, so do not add quotes.
29111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29113 esac |
29114 sort
29116 sed '
29117 /^ac_cv_env_/b end
29118 t clear
29119 :clear
29120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29121 t end
29122 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29123 :end' >>confcache
29124 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29125 if test -w "$cache_file"; then
29126 test "x$cache_file" != "x/dev/null" &&
29127 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29128 $as_echo "$as_me: updating cache $cache_file" >&6;}
29129 cat confcache >$cache_file
29130 else
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29132 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29135 rm -f confcache
29137 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29138 # Let make expand exec_prefix.
29139 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29141 DEFS=-DHAVE_CONFIG_H
29143 ac_libobjs=
29144 ac_ltlibobjs=
29145 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29146 # 1. Remove the extension, and $U if already installed.
29147 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29148 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29149 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29150 # will be set to the directory where LIBOBJS objects are built.
29151 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29152 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29153 done
29154 LIBOBJS=$ac_libobjs
29156 LTLIBOBJS=$ac_ltlibobjs
29159 if test -n "$EXEEXT"; then
29160 am__EXEEXT_TRUE=
29161 am__EXEEXT_FALSE='#'
29162 else
29163 am__EXEEXT_TRUE='#'
29164 am__EXEEXT_FALSE=
29167 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29168 as_fn_error "conditional \"AMDEP\" was never defined.
29169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29171 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29172 as_fn_error "conditional \"am__fastdepCC\" was never defined.
29173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29175 if test -z "${BUILDING_FOR_WINDOWSNT_TRUE}" && test -z "${BUILDING_FOR_WINDOWSNT_FALSE}"; then
29176 as_fn_error "conditional \"BUILDING_FOR_WINDOWSNT\" was never defined.
29177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29179 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
29180 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
29181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29183 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
29184 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
29185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29188 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
29189 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
29190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29192 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
29193 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
29194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29196 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
29197 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
29198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29200 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
29201 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
29202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29204 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
29205 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
29206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29208 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
29209 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
29210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29212 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
29213 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
29214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29216 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
29217 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
29218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29220 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
29221 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
29222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29224 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
29225 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
29226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29228 if test -z "${gl_GNULIB_ENABLED_getdtablesize_TRUE}" && test -z "${gl_GNULIB_ENABLED_getdtablesize_FALSE}"; then
29229 as_fn_error "conditional \"gl_GNULIB_ENABLED_getdtablesize\" was never defined.
29230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29232 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
29233 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
29234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29236 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
29237 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
29238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29240 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
29241 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
29242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29244 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
29245 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
29246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29248 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
29249 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
29250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29252 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
29253 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
29254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29256 if test -z "${gl_GNULIB_ENABLED_secure_getenv_TRUE}" && test -z "${gl_GNULIB_ENABLED_secure_getenv_FALSE}"; then
29257 as_fn_error "conditional \"gl_GNULIB_ENABLED_secure_getenv\" was never defined.
29258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29260 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
29261 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
29262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29264 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
29265 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
29266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29268 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
29269 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
29270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29272 if test -z "${gl_GNULIB_ENABLED_tempname_TRUE}" && test -z "${gl_GNULIB_ENABLED_tempname_FALSE}"; then
29273 as_fn_error "conditional \"gl_GNULIB_ENABLED_tempname\" was never defined.
29274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29276 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
29277 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
29278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
29281 gl_libobjs=
29282 gl_ltlibobjs=
29283 if test -n "$gl_LIBOBJS"; then
29284 # Remove the extension.
29285 sed_drop_objext='s/\.o$//;s/\.obj$//'
29286 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29287 gl_libobjs="$gl_libobjs $i.$ac_objext"
29288 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
29289 done
29291 gl_LIBOBJS=$gl_libobjs
29293 gl_LTLIBOBJS=$gl_ltlibobjs
29297 gltests_libobjs=
29298 gltests_ltlibobjs=
29299 if test -n "$gltests_LIBOBJS"; then
29300 # Remove the extension.
29301 sed_drop_objext='s/\.o$//;s/\.obj$//'
29302 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
29303 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
29304 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
29305 done
29307 gltests_LIBOBJS=$gltests_libobjs
29309 gltests_LTLIBOBJS=$gltests_ltlibobjs
29313 : ${CONFIG_STATUS=./config.status}
29314 ac_write_fail=0
29315 ac_clean_files_save=$ac_clean_files
29316 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29318 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29319 as_write_fail=0
29320 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29321 #! $SHELL
29322 # Generated by $as_me.
29323 # Run this file to recreate the current configuration.
29324 # Compiler output produced by configure, useful for debugging
29325 # configure, is in config.log if it exists.
29327 debug=false
29328 ac_cs_recheck=false
29329 ac_cs_silent=false
29331 SHELL=\${CONFIG_SHELL-$SHELL}
29332 export SHELL
29333 _ASEOF
29334 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29335 ## -------------------- ##
29336 ## M4sh Initialization. ##
29337 ## -------------------- ##
29339 # Be more Bourne compatible
29340 DUALCASE=1; export DUALCASE # for MKS sh
29341 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29342 emulate sh
29343 NULLCMD=:
29344 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29345 # is contrary to our usage. Disable this feature.
29346 alias -g '${1+"$@"}'='"$@"'
29347 setopt NO_GLOB_SUBST
29348 else
29349 case `(set -o) 2>/dev/null` in #(
29350 *posix*) :
29351 set -o posix ;; #(
29352 *) :
29354 esac
29358 as_nl='
29360 export as_nl
29361 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29362 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29364 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29365 # Prefer a ksh shell builtin over an external printf program on Solaris,
29366 # but without wasting forks for bash or zsh.
29367 if test -z "$BASH_VERSION$ZSH_VERSION" \
29368 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29369 as_echo='print -r --'
29370 as_echo_n='print -rn --'
29371 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29372 as_echo='printf %s\n'
29373 as_echo_n='printf %s'
29374 else
29375 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29376 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29377 as_echo_n='/usr/ucb/echo -n'
29378 else
29379 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29380 as_echo_n_body='eval
29381 arg=$1;
29382 case $arg in #(
29383 *"$as_nl"*)
29384 expr "X$arg" : "X\\(.*\\)$as_nl";
29385 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29386 esac;
29387 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29389 export as_echo_n_body
29390 as_echo_n='sh -c $as_echo_n_body as_echo'
29392 export as_echo_body
29393 as_echo='sh -c $as_echo_body as_echo'
29396 # The user is always right.
29397 if test "${PATH_SEPARATOR+set}" != set; then
29398 PATH_SEPARATOR=:
29399 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29400 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29401 PATH_SEPARATOR=';'
29406 # IFS
29407 # We need space, tab and new line, in precisely that order. Quoting is
29408 # there to prevent editors from complaining about space-tab.
29409 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29410 # splitting by setting IFS to empty value.)
29411 IFS=" "" $as_nl"
29413 # Find who we are. Look in the path if we contain no directory separator.
29414 case $0 in #((
29415 *[\\/]* ) as_myself=$0 ;;
29416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29417 for as_dir in $PATH
29419 IFS=$as_save_IFS
29420 test -z "$as_dir" && as_dir=.
29421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29422 done
29423 IFS=$as_save_IFS
29426 esac
29427 # We did not find ourselves, most probably we were run as `sh COMMAND'
29428 # in which case we are not to be found in the path.
29429 if test "x$as_myself" = x; then
29430 as_myself=$0
29432 if test ! -f "$as_myself"; then
29433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29434 exit 1
29437 # Unset variables that we do not need and which cause bugs (e.g. in
29438 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29439 # suppresses any "Segmentation fault" message there. '((' could
29440 # trigger a bug in pdksh 5.2.14.
29441 for as_var in BASH_ENV ENV MAIL MAILPATH
29442 do eval test x\${$as_var+set} = xset \
29443 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29444 done
29445 PS1='$ '
29446 PS2='> '
29447 PS4='+ '
29449 # NLS nuisances.
29450 LC_ALL=C
29451 export LC_ALL
29452 LANGUAGE=C
29453 export LANGUAGE
29455 # CDPATH.
29456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29459 # as_fn_error ERROR [LINENO LOG_FD]
29460 # ---------------------------------
29461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29463 # script with status $?, using 1 if that was 0.
29464 as_fn_error ()
29466 as_status=$?; test $as_status -eq 0 && as_status=1
29467 if test "$3"; then
29468 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29471 $as_echo "$as_me: error: $1" >&2
29472 as_fn_exit $as_status
29473 } # as_fn_error
29476 # as_fn_set_status STATUS
29477 # -----------------------
29478 # Set $? to STATUS, without forking.
29479 as_fn_set_status ()
29481 return $1
29482 } # as_fn_set_status
29484 # as_fn_exit STATUS
29485 # -----------------
29486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29487 as_fn_exit ()
29489 set +e
29490 as_fn_set_status $1
29491 exit $1
29492 } # as_fn_exit
29494 # as_fn_unset VAR
29495 # ---------------
29496 # Portably unset VAR.
29497 as_fn_unset ()
29499 { eval $1=; unset $1;}
29501 as_unset=as_fn_unset
29502 # as_fn_append VAR VALUE
29503 # ----------------------
29504 # Append the text in VALUE to the end of the definition contained in VAR. Take
29505 # advantage of any shell optimizations that allow amortized linear growth over
29506 # repeated appends, instead of the typical quadratic growth present in naive
29507 # implementations.
29508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29509 eval 'as_fn_append ()
29511 eval $1+=\$2
29513 else
29514 as_fn_append ()
29516 eval $1=\$$1\$2
29518 fi # as_fn_append
29520 # as_fn_arith ARG...
29521 # ------------------
29522 # Perform arithmetic evaluation on the ARGs, and store the result in the
29523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29524 # must be portable across $(()) and expr.
29525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29526 eval 'as_fn_arith ()
29528 as_val=$(( $* ))
29530 else
29531 as_fn_arith ()
29533 as_val=`expr "$@" || test $? -eq 1`
29535 fi # as_fn_arith
29538 if expr a : '\(a\)' >/dev/null 2>&1 &&
29539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29540 as_expr=expr
29541 else
29542 as_expr=false
29545 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29546 as_basename=basename
29547 else
29548 as_basename=false
29551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29552 as_dirname=dirname
29553 else
29554 as_dirname=false
29557 as_me=`$as_basename -- "$0" ||
29558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29559 X"$0" : 'X\(//\)$' \| \
29560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29561 $as_echo X/"$0" |
29562 sed '/^.*\/\([^/][^/]*\)\/*$/{
29563 s//\1/
29566 /^X\/\(\/\/\)$/{
29567 s//\1/
29570 /^X\/\(\/\).*/{
29571 s//\1/
29574 s/.*/./; q'`
29576 # Avoid depending upon Character Ranges.
29577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29580 as_cr_digits='0123456789'
29581 as_cr_alnum=$as_cr_Letters$as_cr_digits
29583 ECHO_C= ECHO_N= ECHO_T=
29584 case `echo -n x` in #(((((
29585 -n*)
29586 case `echo 'xy\c'` in
29587 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29588 xy) ECHO_C='\c';;
29589 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
29590 ECHO_T=' ';;
29591 esac;;
29593 ECHO_N='-n';;
29594 esac
29596 rm -f conf$$ conf$$.exe conf$$.file
29597 if test -d conf$$.dir; then
29598 rm -f conf$$.dir/conf$$.file
29599 else
29600 rm -f conf$$.dir
29601 mkdir conf$$.dir 2>/dev/null
29603 if (echo >conf$$.file) 2>/dev/null; then
29604 if ln -s conf$$.file conf$$ 2>/dev/null; then
29605 as_ln_s='ln -s'
29606 # ... but there are two gotchas:
29607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29609 # In both cases, we have to default to `cp -p'.
29610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29611 as_ln_s='cp -p'
29612 elif ln conf$$.file conf$$ 2>/dev/null; then
29613 as_ln_s=ln
29614 else
29615 as_ln_s='cp -p'
29617 else
29618 as_ln_s='cp -p'
29620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29621 rmdir conf$$.dir 2>/dev/null
29624 # as_fn_mkdir_p
29625 # -------------
29626 # Create "$as_dir" as a directory, including parents if necessary.
29627 as_fn_mkdir_p ()
29630 case $as_dir in #(
29631 -*) as_dir=./$as_dir;;
29632 esac
29633 test -d "$as_dir" || eval $as_mkdir_p || {
29634 as_dirs=
29635 while :; do
29636 case $as_dir in #(
29637 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29638 *) as_qdir=$as_dir;;
29639 esac
29640 as_dirs="'$as_qdir' $as_dirs"
29641 as_dir=`$as_dirname -- "$as_dir" ||
29642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29643 X"$as_dir" : 'X\(//\)[^/]' \| \
29644 X"$as_dir" : 'X\(//\)$' \| \
29645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29646 $as_echo X"$as_dir" |
29647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29648 s//\1/
29651 /^X\(\/\/\)[^/].*/{
29652 s//\1/
29655 /^X\(\/\/\)$/{
29656 s//\1/
29659 /^X\(\/\).*/{
29660 s//\1/
29663 s/.*/./; q'`
29664 test -d "$as_dir" && break
29665 done
29666 test -z "$as_dirs" || eval "mkdir $as_dirs"
29667 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29670 } # as_fn_mkdir_p
29671 if mkdir -p . 2>/dev/null; then
29672 as_mkdir_p='mkdir -p "$as_dir"'
29673 else
29674 test -d ./-p && rmdir ./-p
29675 as_mkdir_p=false
29678 if test -x / >/dev/null 2>&1; then
29679 as_test_x='test -x'
29680 else
29681 if ls -dL / >/dev/null 2>&1; then
29682 as_ls_L_option=L
29683 else
29684 as_ls_L_option=
29686 as_test_x='
29687 eval sh -c '\''
29688 if test -d "$1"; then
29689 test -d "$1/.";
29690 else
29691 case $1 in #(
29692 -*)set "./$1";;
29693 esac;
29694 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29695 ???[sx]*):;;*)false;;esac;fi
29696 '\'' sh
29699 as_executable_p=$as_test_x
29701 # Sed expression to map a string onto a valid CPP name.
29702 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29704 # Sed expression to map a string onto a valid variable name.
29705 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29708 exec 6>&1
29709 ## ----------------------------------- ##
29710 ## Main body of $CONFIG_STATUS script. ##
29711 ## ----------------------------------- ##
29712 _ASEOF
29713 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29716 # Save the log message, to keep $0 and so on meaningful, and to
29717 # report actual input values of CONFIG_FILES etc. instead of their
29718 # values after options handling.
29719 ac_log="
29720 This file was extended by emacs $as_me 24.3.50, which was
29721 generated by GNU Autoconf 2.65. Invocation command line was
29723 CONFIG_FILES = $CONFIG_FILES
29724 CONFIG_HEADERS = $CONFIG_HEADERS
29725 CONFIG_LINKS = $CONFIG_LINKS
29726 CONFIG_COMMANDS = $CONFIG_COMMANDS
29727 $ $0 $@
29729 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29732 _ACEOF
29734 case $ac_config_files in *"
29735 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29736 esac
29738 case $ac_config_headers in *"
29739 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29740 esac
29743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29744 # Files that config.status was made for.
29745 config_files="$ac_config_files"
29746 config_headers="$ac_config_headers"
29747 config_commands="$ac_config_commands"
29749 _ACEOF
29751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29752 ac_cs_usage="\
29753 \`$as_me' instantiates files and other configuration actions
29754 from templates according to the current configuration. Unless the files
29755 and actions are specified as TAGs, all are instantiated by default.
29757 Usage: $0 [OPTION]... [TAG]...
29759 -h, --help print this help, then exit
29760 -V, --version print version number and configuration settings, then exit
29761 --config print configuration, then exit
29762 -q, --quiet, --silent
29763 do not print progress messages
29764 -d, --debug don't remove temporary files
29765 --recheck update $as_me by reconfiguring in the same conditions
29766 --file=FILE[:TEMPLATE]
29767 instantiate the configuration file FILE
29768 --header=FILE[:TEMPLATE]
29769 instantiate the configuration header FILE
29771 Configuration files:
29772 $config_files
29774 Configuration headers:
29775 $config_headers
29777 Configuration commands:
29778 $config_commands
29780 Report bugs to the package provider."
29782 _ACEOF
29783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29784 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29785 ac_cs_version="\\
29786 emacs config.status 24.3.50
29787 configured by $0, generated by GNU Autoconf 2.65,
29788 with options \\"\$ac_cs_config\\"
29790 Copyright (C) 2009 Free Software Foundation, Inc.
29791 This config.status script is free software; the Free Software Foundation
29792 gives unlimited permission to copy, distribute and modify it."
29794 ac_pwd='$ac_pwd'
29795 srcdir='$srcdir'
29796 INSTALL='$INSTALL'
29797 MKDIR_P='$MKDIR_P'
29798 AWK='$AWK'
29799 test -n "\$AWK" || AWK=awk
29800 _ACEOF
29802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29803 # The default lists apply if the user does not specify any file.
29804 ac_need_defaults=:
29805 while test $# != 0
29807 case $1 in
29808 --*=*)
29809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29810 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29811 ac_shift=:
29814 ac_option=$1
29815 ac_optarg=$2
29816 ac_shift=shift
29818 esac
29820 case $ac_option in
29821 # Handling of the options.
29822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29823 ac_cs_recheck=: ;;
29824 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29825 $as_echo "$ac_cs_version"; exit ;;
29826 --config | --confi | --conf | --con | --co | --c )
29827 $as_echo "$ac_cs_config"; exit ;;
29828 --debug | --debu | --deb | --de | --d | -d )
29829 debug=: ;;
29830 --file | --fil | --fi | --f )
29831 $ac_shift
29832 case $ac_optarg in
29833 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29834 esac
29835 as_fn_append CONFIG_FILES " '$ac_optarg'"
29836 ac_need_defaults=false;;
29837 --header | --heade | --head | --hea )
29838 $ac_shift
29839 case $ac_optarg in
29840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29841 esac
29842 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29843 ac_need_defaults=false;;
29844 --he | --h)
29845 # Conflict between --help and --header
29846 as_fn_error "ambiguous option: \`$1'
29847 Try \`$0 --help' for more information.";;
29848 --help | --hel | -h )
29849 $as_echo "$ac_cs_usage"; exit ;;
29850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29852 ac_cs_silent=: ;;
29854 # This is an error.
29855 -*) as_fn_error "unrecognized option: \`$1'
29856 Try \`$0 --help' for more information." ;;
29858 *) as_fn_append ac_config_targets " $1"
29859 ac_need_defaults=false ;;
29861 esac
29862 shift
29863 done
29865 ac_configure_extra_args=
29867 if $ac_cs_silent; then
29868 exec 6>/dev/null
29869 ac_configure_extra_args="$ac_configure_extra_args --silent"
29872 _ACEOF
29873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29874 if \$ac_cs_recheck; then
29875 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29876 shift
29877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29878 CONFIG_SHELL='$SHELL'
29879 export CONFIG_SHELL
29880 exec "\$@"
29883 _ACEOF
29884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29885 exec 5>>config.log
29887 echo
29888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29889 ## Running $as_me. ##
29890 _ASBOX
29891 $as_echo "$ac_log"
29892 } >&5
29894 _ACEOF
29895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29897 # INIT-COMMANDS
29899 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29900 GCC="$GCC" CPPFLAGS="$CPPFLAGS" opsys="$opsys"
29902 _ACEOF
29904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29906 # Handling of arguments.
29907 for ac_config_target in $ac_config_targets
29909 case $ac_config_target in
29910 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
29911 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29912 "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" ;;
29913 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
29914 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
29915 "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" ;;
29916 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29917 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29918 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
29919 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
29920 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
29921 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
29922 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
29923 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
29924 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29925 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
29926 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
29927 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
29928 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
29929 "nt/Makefile") CONFIG_FILES="$CONFIG_FILES nt/Makefile" ;;
29930 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
29931 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
29932 "src/epaths.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/epaths.h" ;;
29933 "src/.gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS src/.gdbinit" ;;
29935 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29936 esac
29937 done
29940 # If the user did not use the arguments to specify the items to instantiate,
29941 # then the envvar interface is used. Set only those that are not.
29942 # We use the long form for the default assignment because of an extremely
29943 # bizarre bug on SunOS 4.1.3.
29944 if $ac_need_defaults; then
29945 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29946 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29950 # Have a temporary directory for convenience. Make it in the build tree
29951 # simply because there is no reason against having it here, and in addition,
29952 # creating and moving files from /tmp can sometimes cause problems.
29953 # Hook for its removal unless debugging.
29954 # Note that there is a small window in which the directory will not be cleaned:
29955 # after its creation but before its name has been assigned to `$tmp'.
29956 $debug ||
29958 tmp=
29959 trap 'exit_status=$?
29960 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29962 trap 'as_fn_exit 1' 1 2 13 15
29964 # Create a (secure) tmp directory for tmp files.
29967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29968 test -n "$tmp" && test -d "$tmp"
29969 } ||
29971 tmp=./conf$$-$RANDOM
29972 (umask 077 && mkdir "$tmp")
29973 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29975 # Set up the scripts for CONFIG_FILES section.
29976 # No need to generate them if there are no CONFIG_FILES.
29977 # This happens for instance with `./config.status config.h'.
29978 if test -n "$CONFIG_FILES"; then
29980 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29981 ac_cs_awk_getline=:
29982 ac_cs_awk_pipe_init=
29983 ac_cs_awk_read_file='
29984 while ((getline aline < (F[key])) > 0)
29985 print(aline)
29986 close(F[key])'
29987 ac_cs_awk_pipe_fini=
29988 else
29989 ac_cs_awk_getline=false
29990 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29991 ac_cs_awk_read_file='
29992 print "|#_!!_#|"
29993 print "cat " F[key] " &&"
29994 '$ac_cs_awk_pipe_init
29995 # The final `:' finishes the AND list.
29996 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29998 ac_cr=`echo X | tr X '\015'`
29999 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30000 # But we know of no other shell where ac_cr would be empty at this
30001 # point, so we can use a bashism as a fallback.
30002 if test "x$ac_cr" = x; then
30003 eval ac_cr=\$\'\\r\'
30005 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30006 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30007 ac_cs_awk_cr='\r'
30008 else
30009 ac_cs_awk_cr=$ac_cr
30012 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30013 _ACEOF
30015 # Create commands to substitute file output variables.
30017 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30018 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30019 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30020 echo "_ACAWK" &&
30021 echo "_ACEOF"
30022 } >conf$$files.sh &&
30023 . ./conf$$files.sh ||
30024 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30025 rm -f conf$$files.sh
30028 echo "cat >conf$$subs.awk <<_ACEOF" &&
30029 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30030 echo "_ACEOF"
30031 } >conf$$subs.sh ||
30032 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30033 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30034 ac_delim='%!_!# '
30035 for ac_last_try in false false false false false :; do
30036 . ./conf$$subs.sh ||
30037 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30039 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30040 if test $ac_delim_n = $ac_delim_num; then
30041 break
30042 elif $ac_last_try; then
30043 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30044 else
30045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30047 done
30048 rm -f conf$$subs.sh
30050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30051 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30052 _ACEOF
30053 sed -n '
30055 s/^/S["/; s/!.*/"]=/
30058 s/^[^!]*!//
30059 :repl
30060 t repl
30061 s/'"$ac_delim"'$//
30062 t delim
30065 s/\(.\{148\}\)..*/\1/
30066 t more1
30067 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30070 b repl
30071 :more1
30072 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30075 s/.\{148\}//
30076 t nl
30077 :delim
30079 s/\(.\{148\}\)..*/\1/
30080 t more2
30081 s/["\\]/\\&/g; s/^/"/; s/$/"/
30084 :more2
30085 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30088 s/.\{148\}//
30089 t delim
30090 ' <conf$$subs.awk | sed '
30091 /^[^""]/{
30093 s/\n//
30095 ' >>$CONFIG_STATUS || ac_write_fail=1
30096 rm -f conf$$subs.awk
30097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30098 _ACAWK
30099 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30100 for (key in S) S_is_set[key] = 1
30101 FS = "\a"
30102 \$ac_cs_awk_pipe_init
30105 line = $ 0
30106 nfields = split(line, field, "@")
30107 substed = 0
30108 len = length(field[1])
30109 for (i = 2; i < nfields; i++) {
30110 key = field[i]
30111 keylen = length(key)
30112 if (S_is_set[key]) {
30113 value = S[key]
30114 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30115 len += length(value) + length(field[++i])
30116 substed = 1
30117 } else
30118 len += 1 + keylen
30120 if (nfields == 3 && !substed) {
30121 key = field[2]
30122 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30123 \$ac_cs_awk_read_file
30124 next
30127 print line
30129 \$ac_cs_awk_pipe_fini
30130 _ACAWK
30131 _ACEOF
30132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30133 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30134 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30135 else
30137 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30138 || as_fn_error "could not setup config files machinery" "$LINENO" 5
30139 _ACEOF
30141 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30142 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30143 # trailing colons and then remove the whole line if VPATH becomes empty
30144 # (actually we leave an empty line to preserve line numbers).
30145 if test "x$srcdir" = x.; then
30146 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30147 s/:*\$(srcdir):*/:/
30148 s/:*\${srcdir}:*/:/
30149 s/:*@srcdir@:*/:/
30150 s/^\([^=]*=[ ]*\):*/\1/
30151 s/:*$//
30152 s/^[^=]*=[ ]*$//
30156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30157 fi # test -n "$CONFIG_FILES"
30159 # Set up the scripts for CONFIG_HEADERS section.
30160 # No need to generate them if there are no CONFIG_HEADERS.
30161 # This happens for instance with `./config.status Makefile'.
30162 if test -n "$CONFIG_HEADERS"; then
30163 cat >"$tmp/defines.awk" <<\_ACAWK ||
30164 BEGIN {
30165 _ACEOF
30167 # Transform confdefs.h into an awk script `defines.awk', embedded as
30168 # here-document in config.status, that substitutes the proper values into
30169 # config.h.in to produce config.h.
30171 # Create a delimiter string that does not exist in confdefs.h, to ease
30172 # handling of long lines.
30173 ac_delim='%!_!# '
30174 for ac_last_try in false false :; do
30175 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30176 if test -z "$ac_t"; then
30177 break
30178 elif $ac_last_try; then
30179 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30180 else
30181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30183 done
30185 # For the awk script, D is an array of macro values keyed by name,
30186 # likewise P contains macro parameters if any. Preserve backslash
30187 # newline sequences.
30189 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30190 sed -n '
30191 s/.\{148\}/&'"$ac_delim"'/g
30192 t rset
30193 :rset
30194 s/^[ ]*#[ ]*define[ ][ ]*/ /
30195 t def
30197 :def
30198 s/\\$//
30199 t bsnl
30200 s/["\\]/\\&/g
30201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30202 D["\1"]=" \3"/p
30203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30205 :bsnl
30206 s/["\\]/\\&/g
30207 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30208 D["\1"]=" \3\\\\\\n"\\/p
30209 t cont
30210 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30211 t cont
30213 :cont
30215 s/.\{148\}/&'"$ac_delim"'/g
30216 t clear
30217 :clear
30218 s/\\$//
30219 t bsnlc
30220 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30222 :bsnlc
30223 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30224 b cont
30225 ' <confdefs.h | sed '
30226 s/'"$ac_delim"'/"\\\
30227 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30230 for (key in D) D_is_set[key] = 1
30231 FS = "\a"
30233 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30234 line = \$ 0
30235 split(line, arg, " ")
30236 if (arg[1] == "#") {
30237 defundef = arg[2]
30238 mac1 = arg[3]
30239 } else {
30240 defundef = substr(arg[1], 2)
30241 mac1 = arg[2]
30243 split(mac1, mac2, "(") #)
30244 macro = mac2[1]
30245 prefix = substr(line, 1, index(line, defundef) - 1)
30246 if (D_is_set[macro]) {
30247 # Preserve the white space surrounding the "#".
30248 print prefix "define", macro P[macro] D[macro]
30249 next
30250 } else {
30251 # Replace #undef with comments. This is necessary, for example,
30252 # in the case of _POSIX_SOURCE, which is predefined and required
30253 # on some systems where configure will not decide to define it.
30254 if (defundef == "undef") {
30255 print "/*", prefix defundef, macro, "*/"
30256 next
30260 { print }
30261 _ACAWK
30262 _ACEOF
30263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30264 as_fn_error "could not setup config headers machinery" "$LINENO" 5
30265 fi # test -n "$CONFIG_HEADERS"
30268 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
30269 shift
30270 for ac_tag
30272 case $ac_tag in
30273 :[FHLC]) ac_mode=$ac_tag; continue;;
30274 esac
30275 case $ac_mode$ac_tag in
30276 :[FHL]*:*);;
30277 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30278 :[FH]-) ac_tag=-:-;;
30279 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30280 esac
30281 ac_save_IFS=$IFS
30282 IFS=:
30283 set x $ac_tag
30284 IFS=$ac_save_IFS
30285 shift
30286 ac_file=$1
30287 shift
30289 case $ac_mode in
30290 :L) ac_source=$1;;
30291 :[FH])
30292 ac_file_inputs=
30293 for ac_f
30295 case $ac_f in
30296 -) ac_f="$tmp/stdin";;
30297 *) # Look for the file first in the build tree, then in the source tree
30298 # (if the path is not absolute). The absolute path cannot be DOS-style,
30299 # because $ac_f cannot contain `:'.
30300 test -f "$ac_f" ||
30301 case $ac_f in
30302 [\\/$]*) false;;
30303 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30304 esac ||
30305 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30306 esac
30307 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30308 as_fn_append ac_file_inputs " '$ac_f'"
30309 done
30311 # Let's still pretend it is `configure' which instantiates (i.e., don't
30312 # use $as_me), people would be surprised to read:
30313 # /* config.h. Generated by config.status. */
30314 configure_input='Generated from '`
30315 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30316 `' by configure.'
30317 if test x"$ac_file" != x-; then
30318 configure_input="$ac_file. $configure_input"
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30320 $as_echo "$as_me: creating $ac_file" >&6;}
30322 # Neutralize special characters interpreted by sed in replacement strings.
30323 case $configure_input in #(
30324 *\&* | *\|* | *\\* )
30325 ac_sed_conf_input=`$as_echo "$configure_input" |
30326 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30327 *) ac_sed_conf_input=$configure_input;;
30328 esac
30330 case $ac_tag in
30331 *:-:* | *:-) cat >"$tmp/stdin" \
30332 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30333 esac
30335 esac
30337 ac_dir=`$as_dirname -- "$ac_file" ||
30338 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30339 X"$ac_file" : 'X\(//\)[^/]' \| \
30340 X"$ac_file" : 'X\(//\)$' \| \
30341 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30342 $as_echo X"$ac_file" |
30343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30344 s//\1/
30347 /^X\(\/\/\)[^/].*/{
30348 s//\1/
30351 /^X\(\/\/\)$/{
30352 s//\1/
30355 /^X\(\/\).*/{
30356 s//\1/
30359 s/.*/./; q'`
30360 as_dir="$ac_dir"; as_fn_mkdir_p
30361 ac_builddir=.
30363 case "$ac_dir" in
30364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30366 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30367 # A ".." for each directory in $ac_dir_suffix.
30368 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30369 case $ac_top_builddir_sub in
30370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30372 esac ;;
30373 esac
30374 ac_abs_top_builddir=$ac_pwd
30375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30376 # for backward compatibility:
30377 ac_top_builddir=$ac_top_build_prefix
30379 case $srcdir in
30380 .) # We are building in place.
30381 ac_srcdir=.
30382 ac_top_srcdir=$ac_top_builddir_sub
30383 ac_abs_top_srcdir=$ac_pwd ;;
30384 [\\/]* | ?:[\\/]* ) # Absolute name.
30385 ac_srcdir=$srcdir$ac_dir_suffix;
30386 ac_top_srcdir=$srcdir
30387 ac_abs_top_srcdir=$srcdir ;;
30388 *) # Relative name.
30389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30390 ac_top_srcdir=$ac_top_build_prefix$srcdir
30391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30392 esac
30393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30396 case $ac_mode in
30399 # CONFIG_FILE
30402 case $INSTALL in
30403 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30404 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30405 esac
30406 ac_MKDIR_P=$MKDIR_P
30407 case $MKDIR_P in
30408 [\\/$]* | ?:[\\/]* ) ;;
30409 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30410 esac
30411 _ACEOF
30413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30414 # If the template does not know about datarootdir, expand it.
30415 # FIXME: This hack should be removed a few years after 2.60.
30416 ac_datarootdir_hack=; ac_datarootdir_seen=
30417 ac_sed_dataroot='
30418 /datarootdir/ {
30422 /@datadir@/p
30423 /@docdir@/p
30424 /@infodir@/p
30425 /@localedir@/p
30426 /@mandir@/p'
30427 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30428 *datarootdir*) ac_datarootdir_seen=yes;;
30429 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30431 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30432 _ACEOF
30433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30434 ac_datarootdir_hack='
30435 s&@datadir@&$datadir&g
30436 s&@docdir@&$docdir&g
30437 s&@infodir@&$infodir&g
30438 s&@localedir@&$localedir&g
30439 s&@mandir@&$mandir&g
30440 s&\\\${datarootdir}&$datarootdir&g' ;;
30441 esac
30442 _ACEOF
30444 # Neutralize VPATH when `$srcdir' = `.'.
30445 # Shell code in configure.ac might set extrasub.
30446 # FIXME: do we really want to maintain this feature?
30447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30448 ac_sed_extra="$ac_vpsub
30449 $extrasub
30450 _ACEOF
30451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30454 s|@configure_input@|$ac_sed_conf_input|;t t
30455 s&@top_builddir@&$ac_top_builddir_sub&;t t
30456 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30457 s&@srcdir@&$ac_srcdir&;t t
30458 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30459 s&@top_srcdir@&$ac_top_srcdir&;t t
30460 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30461 s&@builddir@&$ac_builddir&;t t
30462 s&@abs_builddir@&$ac_abs_builddir&;t t
30463 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30464 s&@INSTALL@&$ac_INSTALL&;t t
30465 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30466 $ac_datarootdir_hack
30468 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30469 if $ac_cs_awk_getline; then
30470 $AWK -f "$tmp/subs.awk"
30471 else
30472 $AWK -f "$tmp/subs.awk" | $SHELL
30473 fi >$tmp/out \
30474 || as_fn_error "could not create $ac_file" "$LINENO" 5
30476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30477 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30480 which seems to be undefined. Please make sure it is defined." >&5
30481 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30482 which seems to be undefined. Please make sure it is defined." >&2;}
30484 rm -f "$tmp/stdin"
30485 case $ac_file in
30486 -) cat "$tmp/out" && rm -f "$tmp/out";;
30487 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30488 esac \
30489 || as_fn_error "could not create $ac_file" "$LINENO" 5
30493 # CONFIG_HEADER
30495 if test x"$ac_file" != x-; then
30497 $as_echo "/* $configure_input */" \
30498 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30499 } >"$tmp/config.h" \
30500 || as_fn_error "could not create $ac_file" "$LINENO" 5
30501 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30503 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30504 else
30505 rm -f "$ac_file"
30506 mv "$tmp/config.h" "$ac_file" \
30507 || as_fn_error "could not create $ac_file" "$LINENO" 5
30509 else
30510 $as_echo "/* $configure_input */" \
30511 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30512 || as_fn_error "could not create -" "$LINENO" 5
30514 # Compute "$ac_file"'s index in $config_headers.
30515 _am_arg="$ac_file"
30516 _am_stamp_count=1
30517 for _am_header in $config_headers :; do
30518 case $_am_header in
30519 $_am_arg | $_am_arg:* )
30520 break ;;
30522 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30523 esac
30524 done
30525 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30526 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30527 X"$_am_arg" : 'X\(//\)[^/]' \| \
30528 X"$_am_arg" : 'X\(//\)$' \| \
30529 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30530 $as_echo X"$_am_arg" |
30531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30532 s//\1/
30535 /^X\(\/\/\)[^/].*/{
30536 s//\1/
30539 /^X\(\/\/\)$/{
30540 s//\1/
30543 /^X\(\/\).*/{
30544 s//\1/
30547 s/.*/./; q'`/stamp-h$_am_stamp_count
30550 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30551 $as_echo "$as_me: executing $ac_file commands" >&6;}
30553 esac
30556 case $ac_file$ac_mode in
30557 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30558 # Autoconf 2.62 quotes --file arguments for eval, but not when files
30559 # are listed without --file. Let's play safe and only enable the eval
30560 # if we detect the quoting.
30561 case $CONFIG_FILES in
30562 *\'*) eval set x "$CONFIG_FILES" ;;
30563 *) set x $CONFIG_FILES ;;
30564 esac
30565 shift
30566 for mf
30568 # Strip MF so we end up with the name of the file.
30569 mf=`echo "$mf" | sed -e 's/:.*$//'`
30570 # Check whether this is an Automake generated Makefile or not.
30571 # We used to match only the files named `Makefile.in', but
30572 # some people rename them; so instead we look at the file content.
30573 # Grep'ing the first line is not enough: some people post-process
30574 # each Makefile.in and add a new line on top of each file to say so.
30575 # Grep'ing the whole file is not good either: AIX grep has a line
30576 # limit of 2048, but all sed's we know have understand at least 4000.
30577 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30578 dirpart=`$as_dirname -- "$mf" ||
30579 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30580 X"$mf" : 'X\(//\)[^/]' \| \
30581 X"$mf" : 'X\(//\)$' \| \
30582 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30583 $as_echo X"$mf" |
30584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30585 s//\1/
30588 /^X\(\/\/\)[^/].*/{
30589 s//\1/
30592 /^X\(\/\/\)$/{
30593 s//\1/
30596 /^X\(\/\).*/{
30597 s//\1/
30600 s/.*/./; q'`
30601 else
30602 continue
30604 # Extract the definition of DEPDIR, am__include, and am__quote
30605 # from the Makefile without running `make'.
30606 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30607 test -z "$DEPDIR" && continue
30608 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30609 test -z "am__include" && continue
30610 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30611 # When using ansi2knr, U may be empty or an underscore; expand it
30612 U=`sed -n 's/^U = //p' < "$mf"`
30613 # Find all dependency output files, they are included files with
30614 # $(DEPDIR) in their names. We invoke sed twice because it is the
30615 # simplest approach to changing $(DEPDIR) to its actual value in the
30616 # expansion.
30617 for file in `sed -n "
30618 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30619 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30620 # Make sure the directory exists.
30621 test -f "$dirpart/$file" && continue
30622 fdir=`$as_dirname -- "$file" ||
30623 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30624 X"$file" : 'X\(//\)[^/]' \| \
30625 X"$file" : 'X\(//\)$' \| \
30626 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30627 $as_echo X"$file" |
30628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30629 s//\1/
30632 /^X\(\/\/\)[^/].*/{
30633 s//\1/
30636 /^X\(\/\/\)$/{
30637 s//\1/
30640 /^X\(\/\).*/{
30641 s//\1/
30644 s/.*/./; q'`
30645 as_dir=$dirpart/$fdir; as_fn_mkdir_p
30646 # echo "creating $dirpart/$file"
30647 echo '# dummy' > "$dirpart/$file"
30648 done
30649 done
30652 "src/epaths.h":C)
30653 if test "${opsys}" = "mingw32"; then
30654 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force-w32
30655 else
30656 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
30659 "src/.gdbinit":C)
30660 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
30661 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
30665 esac
30666 done # for ac_tag
30669 as_fn_exit 0
30670 _ACEOF
30671 ac_clean_files=$ac_clean_files_save
30673 test $ac_write_fail = 0 ||
30674 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30677 # configure is writing to config.log, and then calls config.status.
30678 # config.status does its own redirection, appending to config.log.
30679 # Unfortunately, on DOS this fails, as config.log is still kept open
30680 # by configure, so config.status won't be able to write to it; its
30681 # output is simply discarded. So we exec the FD to /dev/null,
30682 # effectively closing config.log, so it can be properly (re)opened and
30683 # appended to by config.status. When coming back to configure, we
30684 # need to make the FD available again.
30685 if test "$no_create" != yes; then
30686 ac_cs_success=:
30687 ac_config_status_args=
30688 test "$silent" = yes &&
30689 ac_config_status_args="$ac_config_status_args --quiet"
30690 exec 5>/dev/null
30691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30692 exec 5>>config.log
30693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30694 # would make configure fail if this is the last instruction.
30695 $ac_cs_success || as_fn_exit $?
30697 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30699 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}