Merge from trunk.
[emacs.git] / autogen / configure
blobbd900b5afefba2f179a609fd81353e20423937e3
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 LD_SWITCH_SYSTEM_TEMACS
609 LIBGNU_LTLIBDEPS
610 LIBGNU_LIBDEPS
611 gltests_WITNESS
612 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE
613 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE
614 gl_GNULIB_ENABLED_verify_FALSE
615 gl_GNULIB_ENABLED_verify_TRUE
616 gl_GNULIB_ENABLED_strtoull_FALSE
617 gl_GNULIB_ENABLED_strtoull_TRUE
618 gl_GNULIB_ENABLED_strtoll_FALSE
619 gl_GNULIB_ENABLED_strtoll_TRUE
620 gl_GNULIB_ENABLED_stat_FALSE
621 gl_GNULIB_ENABLED_stat_TRUE
622 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE
623 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE
624 gl_GNULIB_ENABLED_pathmax_FALSE
625 gl_GNULIB_ENABLED_pathmax_TRUE
626 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE
627 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE
628 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE
629 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE
630 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
631 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
632 gl_GNULIB_ENABLED_getgroups_FALSE
633 gl_GNULIB_ENABLED_getgroups_TRUE
634 gl_GNULIB_ENABLED_euidaccess_FALSE
635 gl_GNULIB_ENABLED_euidaccess_TRUE
636 gl_GNULIB_ENABLED_dosname_FALSE
637 gl_GNULIB_ENABLED_dosname_TRUE
638 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE
639 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE
640 LTLIBINTL
641 LIBINTL
642 LIB_EACCESS
643 WINDOWS_64_BIT_OFF_T
644 HAVE_UNISTD_H
645 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
646 NEXT_UNISTD_H
647 LIB_TIMER_TIME
648 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
649 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
650 TIME_H_DEFINES_STRUCT_TIMESPEC
651 NEXT_AS_FIRST_DIRECTIVE_TIME_H
652 NEXT_TIME_H
653 WINDOWS_64_BIT_ST_SIZE
654 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
655 NEXT_SYS_STAT_H
656 NEXT_AS_FIRST_DIRECTIVE_STRING_H
657 NEXT_STRING_H
658 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
659 NEXT_STDLIB_H
660 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
661 NEXT_STDIO_H
662 REPLACE_VSPRINTF
663 REPLACE_VSNPRINTF
664 REPLACE_VPRINTF
665 REPLACE_VFPRINTF
666 REPLACE_VDPRINTF
667 REPLACE_VASPRINTF
668 REPLACE_TMPFILE
669 REPLACE_STDIO_WRITE_FUNCS
670 REPLACE_STDIO_READ_FUNCS
671 REPLACE_SPRINTF
672 REPLACE_SNPRINTF
673 REPLACE_RENAMEAT
674 REPLACE_RENAME
675 REPLACE_REMOVE
676 REPLACE_PRINTF
677 REPLACE_POPEN
678 REPLACE_PERROR
679 REPLACE_OBSTACK_PRINTF
680 REPLACE_GETLINE
681 REPLACE_GETDELIM
682 REPLACE_FTELLO
683 REPLACE_FTELL
684 REPLACE_FSEEKO
685 REPLACE_FSEEK
686 REPLACE_FREOPEN
687 REPLACE_FPURGE
688 REPLACE_FPRINTF
689 REPLACE_FOPEN
690 REPLACE_FFLUSH
691 REPLACE_FDOPEN
692 REPLACE_FCLOSE
693 REPLACE_DPRINTF
694 HAVE_VDPRINTF
695 HAVE_VASPRINTF
696 HAVE_RENAMEAT
697 HAVE_POPEN
698 HAVE_PCLOSE
699 HAVE_FTELLO
700 HAVE_FSEEKO
701 HAVE_DPRINTF
702 HAVE_DECL_VSNPRINTF
703 HAVE_DECL_SNPRINTF
704 HAVE_DECL_OBSTACK_PRINTF
705 HAVE_DECL_GETLINE
706 HAVE_DECL_GETDELIM
707 HAVE_DECL_FTELLO
708 HAVE_DECL_FSEEKO
709 HAVE_DECL_FPURGE
710 GNULIB_VSPRINTF_POSIX
711 GNULIB_VSNPRINTF
712 GNULIB_VPRINTF_POSIX
713 GNULIB_VPRINTF
714 GNULIB_VFPRINTF_POSIX
715 GNULIB_VFPRINTF
716 GNULIB_VDPRINTF
717 GNULIB_VSCANF
718 GNULIB_VFSCANF
719 GNULIB_VASPRINTF
720 GNULIB_TMPFILE
721 GNULIB_STDIO_H_SIGPIPE
722 GNULIB_STDIO_H_NONBLOCKING
723 GNULIB_SPRINTF_POSIX
724 GNULIB_SNPRINTF
725 GNULIB_SCANF
726 GNULIB_RENAMEAT
727 GNULIB_RENAME
728 GNULIB_REMOVE
729 GNULIB_PUTS
730 GNULIB_PUTCHAR
731 GNULIB_PUTC
732 GNULIB_PRINTF_POSIX
733 GNULIB_PRINTF
734 GNULIB_POPEN
735 GNULIB_PERROR
736 GNULIB_PCLOSE
737 GNULIB_OBSTACK_PRINTF_POSIX
738 GNULIB_OBSTACK_PRINTF
739 GNULIB_GETLINE
740 GNULIB_GETDELIM
741 GNULIB_GETCHAR
742 GNULIB_GETC
743 GNULIB_FWRITE
744 GNULIB_FTELLO
745 GNULIB_FTELL
746 GNULIB_FSEEKO
747 GNULIB_FSEEK
748 GNULIB_FSCANF
749 GNULIB_FREOPEN
750 GNULIB_FREAD
751 GNULIB_FPUTS
752 GNULIB_FPUTC
753 GNULIB_FPURGE
754 GNULIB_FPRINTF_POSIX
755 GNULIB_FPRINTF
756 GNULIB_FOPEN
757 GNULIB_FGETS
758 GNULIB_FGETC
759 GNULIB_FFLUSH
760 GNULIB_FDOPEN
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
764 NEXT_STDDEF_H
765 GL_GENERATE_STDDEF_H_FALSE
766 GL_GENERATE_STDDEF_H_TRUE
767 STDDEF_H
768 HAVE_WCHAR_T
769 REPLACE_NULL
770 HAVE__BOOL
771 GL_GENERATE_STDBOOL_H_FALSE
772 GL_GENERATE_STDBOOL_H_TRUE
773 STDBOOL_H
774 GL_GENERATE_STDARG_H_FALSE
775 GL_GENERATE_STDARG_H_TRUE
776 STDARG_H
777 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
778 NEXT_STDARG_H
779 GL_GENERATE_STDALIGN_H_FALSE
780 GL_GENERATE_STDALIGN_H_TRUE
781 STDALIGN_H
782 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
783 NEXT_SIGNAL_H
784 LIB_PTHREAD_SIGMASK
785 REPLACE_RAISE
786 REPLACE_PTHREAD_SIGMASK
787 HAVE_SIGHANDLER_T
788 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
789 HAVE_STRUCT_SIGACTION_SA_SIGACTION
790 HAVE_SIGACTION
791 HAVE_SIGINFO_T
792 HAVE_SIGSET_T
793 HAVE_RAISE
794 HAVE_PTHREAD_SIGMASK
795 HAVE_POSIX_SIGNALBLOCKING
796 GNULIB_SIGACTION
797 GNULIB_SIGPROCMASK
798 GNULIB_SIGNAL_H_SIGPIPE
799 GNULIB_RAISE
800 GNULIB_PTHREAD_SIGMASK
801 HAVE_SYS_SELECT_H
802 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
803 NEXT_SYS_SELECT_H
804 REPLACE_SELECT
805 REPLACE_PSELECT
806 HAVE_PSELECT
807 GNULIB_SELECT
808 GNULIB_PSELECT
809 REPLACE_TIMEGM
810 REPLACE_NANOSLEEP
811 REPLACE_MKTIME
812 REPLACE_LOCALTIME_R
813 HAVE_TIMEGM
814 HAVE_STRPTIME
815 HAVE_NANOSLEEP
816 HAVE_DECL_LOCALTIME_R
817 GNULIB_TIME_R
818 GNULIB_TIMEGM
819 GNULIB_STRPTIME
820 GNULIB_NANOSLEEP
821 GNULIB_MKTIME
822 UNDEFINE_STRTOK_R
823 REPLACE_STRTOK_R
824 REPLACE_STRSIGNAL
825 REPLACE_STRNLEN
826 REPLACE_STRNDUP
827 REPLACE_STRNCAT
828 REPLACE_STRERROR_R
829 REPLACE_STRERROR
830 REPLACE_STRCHRNUL
831 REPLACE_STRCASESTR
832 REPLACE_STRSTR
833 REPLACE_STRDUP
834 REPLACE_STPNCPY
835 REPLACE_MEMMEM
836 REPLACE_MEMCHR
837 HAVE_STRVERSCMP
838 HAVE_DECL_STRSIGNAL
839 HAVE_DECL_STRERROR_R
840 HAVE_DECL_STRTOK_R
841 HAVE_STRCASESTR
842 HAVE_STRSEP
843 HAVE_STRPBRK
844 HAVE_DECL_STRNLEN
845 HAVE_DECL_STRNDUP
846 HAVE_DECL_STRDUP
847 HAVE_STRCHRNUL
848 HAVE_STPNCPY
849 HAVE_STPCPY
850 HAVE_RAWMEMCHR
851 HAVE_DECL_MEMRCHR
852 HAVE_MEMPCPY
853 HAVE_DECL_MEMMEM
854 HAVE_MEMCHR
855 HAVE_FFSLL
856 HAVE_FFSL
857 HAVE_MBSLEN
858 GNULIB_STRVERSCMP
859 GNULIB_STRSIGNAL
860 GNULIB_STRERROR_R
861 GNULIB_STRERROR
862 GNULIB_MBSTOK_R
863 GNULIB_MBSSEP
864 GNULIB_MBSSPN
865 GNULIB_MBSPBRK
866 GNULIB_MBSCSPN
867 GNULIB_MBSCASESTR
868 GNULIB_MBSPCASECMP
869 GNULIB_MBSNCASECMP
870 GNULIB_MBSCASECMP
871 GNULIB_MBSSTR
872 GNULIB_MBSRCHR
873 GNULIB_MBSCHR
874 GNULIB_MBSNLEN
875 GNULIB_MBSLEN
876 GNULIB_STRTOK_R
877 GNULIB_STRCASESTR
878 GNULIB_STRSTR
879 GNULIB_STRSEP
880 GNULIB_STRPBRK
881 GNULIB_STRNLEN
882 GNULIB_STRNDUP
883 GNULIB_STRNCAT
884 GNULIB_STRDUP
885 GNULIB_STRCHRNUL
886 GNULIB_STPNCPY
887 GNULIB_STPCPY
888 GNULIB_RAWMEMCHR
889 GNULIB_MEMRCHR
890 GNULIB_MEMPCPY
891 GNULIB_MEMMEM
892 GNULIB_MEMCHR
893 GNULIB_FFSLL
894 GNULIB_FFSL
895 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
896 NEXT_INTTYPES_H
897 UINT64_MAX_EQ_ULONG_MAX
898 UINT32_MAX_LT_UINTMAX_MAX
899 PRIPTR_PREFIX
900 PRI_MACROS_BROKEN
901 INT64_MAX_EQ_LONG_MAX
902 INT32_MAX_LT_INTMAX_MAX
903 REPLACE_STRTOIMAX
904 HAVE_DECL_STRTOUMAX
905 HAVE_DECL_STRTOIMAX
906 HAVE_DECL_IMAXDIV
907 HAVE_DECL_IMAXABS
908 GNULIB_STRTOUMAX
909 GNULIB_STRTOIMAX
910 GNULIB_IMAXDIV
911 GNULIB_IMAXABS
912 GL_GENERATE_STDINT_H_FALSE
913 GL_GENERATE_STDINT_H_TRUE
914 STDINT_H
915 WINT_T_SUFFIX
916 WCHAR_T_SUFFIX
917 SIG_ATOMIC_T_SUFFIX
918 SIZE_T_SUFFIX
919 PTRDIFF_T_SUFFIX
920 HAVE_SIGNED_WINT_T
921 HAVE_SIGNED_WCHAR_T
922 HAVE_SIGNED_SIG_ATOMIC_T
923 BITSIZEOF_WINT_T
924 BITSIZEOF_WCHAR_T
925 BITSIZEOF_SIG_ATOMIC_T
926 BITSIZEOF_SIZE_T
927 BITSIZEOF_PTRDIFF_T
928 APPLE_UNIVERSAL_BUILD
929 HAVE_SYS_BITYPES_H
930 HAVE_SYS_INTTYPES_H
931 HAVE_STDINT_H
932 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
933 NEXT_STDINT_H
934 HAVE_SYS_TYPES_H
935 HAVE_INTTYPES_H
936 HAVE_WCHAR_H
937 HAVE_UNSIGNED_LONG_LONG_INT
938 HAVE_LONG_LONG_INT
939 HAVE_WINSOCK2_H
940 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
941 NEXT_SYS_TIME_H
942 REPLACE_STRUCT_TIMEVAL
943 REPLACE_GETTIMEOFDAY
944 HAVE_SYS_TIME_H
945 HAVE_STRUCT_TIMEVAL
946 HAVE_GETTIMEOFDAY
947 GNULIB_GETTIMEOFDAY
948 GNULIB_GL_UNISTD_H_GETOPT
949 GETOPT_H
950 HAVE_GETOPT_H
951 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
952 NEXT_GETOPT_H
953 GETLOADAVG_LIBS
954 REPLACE_WCTOMB
955 REPLACE_UNSETENV
956 REPLACE_STRTOD
957 REPLACE_SETENV
958 REPLACE_REALPATH
959 REPLACE_REALLOC
960 REPLACE_RANDOM_R
961 REPLACE_PUTENV
962 REPLACE_PTSNAME_R
963 REPLACE_PTSNAME
964 REPLACE_MKSTEMP
965 REPLACE_MBTOWC
966 REPLACE_MALLOC
967 REPLACE_CANONICALIZE_FILE_NAME
968 REPLACE_CALLOC
969 HAVE_DECL_UNSETENV
970 HAVE_UNLOCKPT
971 HAVE_SYS_LOADAVG_H
972 HAVE_STRUCT_RANDOM_DATA
973 HAVE_STRTOULL
974 HAVE_STRTOLL
975 HAVE_STRTOD
976 HAVE_DECL_SETENV
977 HAVE_SETENV
978 HAVE_SECURE_GETENV
979 HAVE_RPMATCH
980 HAVE_REALPATH
981 HAVE_RANDOM_R
982 HAVE_RANDOM_H
983 HAVE_RANDOM
984 HAVE_PTSNAME_R
985 HAVE_PTSNAME
986 HAVE_POSIX_OPENPT
987 HAVE_MKSTEMPS
988 HAVE_MKSTEMP
989 HAVE_MKOSTEMPS
990 HAVE_MKOSTEMP
991 HAVE_MKDTEMP
992 HAVE_GRANTPT
993 HAVE_GETSUBOPT
994 HAVE_DECL_GETLOADAVG
995 HAVE_CANONICALIZE_FILE_NAME
996 HAVE_ATOLL
997 HAVE__EXIT
998 GNULIB_WCTOMB
999 GNULIB_UNSETENV
1000 GNULIB_UNLOCKPT
1001 GNULIB_SYSTEM_POSIX
1002 GNULIB_STRTOULL
1003 GNULIB_STRTOLL
1004 GNULIB_STRTOD
1005 GNULIB_SETENV
1006 GNULIB_SECURE_GETENV
1007 GNULIB_RPMATCH
1008 GNULIB_REALPATH
1009 GNULIB_REALLOC_POSIX
1010 GNULIB_RANDOM_R
1011 GNULIB_RANDOM
1012 GNULIB_PUTENV
1013 GNULIB_PTSNAME_R
1014 GNULIB_PTSNAME
1015 GNULIB_POSIX_OPENPT
1016 GNULIB_MKSTEMPS
1017 GNULIB_MKSTEMP
1018 GNULIB_MKOSTEMPS
1019 GNULIB_MKOSTEMP
1020 GNULIB_MKDTEMP
1021 GNULIB_MBTOWC
1022 GNULIB_MALLOC_POSIX
1023 GNULIB_GRANTPT
1024 GNULIB_GETSUBOPT
1025 GNULIB_GETLOADAVG
1026 GNULIB_CANONICALIZE_FILE_NAME
1027 GNULIB_CALLOC_POSIX
1028 GNULIB_ATOLL
1029 GNULIB__EXIT
1030 REPLACE_UTIMENSAT
1031 REPLACE_STAT
1032 REPLACE_MKNOD
1033 REPLACE_MKFIFO
1034 REPLACE_MKDIR
1035 REPLACE_LSTAT
1036 REPLACE_FUTIMENS
1037 REPLACE_FSTATAT
1038 REPLACE_FSTAT
1039 HAVE_UTIMENSAT
1040 HAVE_MKNODAT
1041 HAVE_MKNOD
1042 HAVE_MKFIFOAT
1043 HAVE_MKFIFO
1044 HAVE_MKDIRAT
1045 HAVE_LSTAT
1046 HAVE_LCHMOD
1047 HAVE_FUTIMENS
1048 HAVE_FSTATAT
1049 HAVE_FCHMODAT
1050 GNULIB_UTIMENSAT
1051 GNULIB_STAT
1052 GNULIB_MKNODAT
1053 GNULIB_MKNOD
1054 GNULIB_MKFIFOAT
1055 GNULIB_MKFIFO
1056 GNULIB_MKDIRAT
1057 GNULIB_LSTAT
1058 GNULIB_LCHMOD
1059 GNULIB_FUTIMENS
1060 GNULIB_FSTATAT
1061 GNULIB_FSTAT
1062 GNULIB_FCHMODAT
1063 LIB_FDATASYNC
1064 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1065 NEXT_FCNTL_H
1066 REPLACE_OPENAT
1067 REPLACE_OPEN
1068 REPLACE_FCNTL
1069 HAVE_OPENAT
1070 HAVE_FCNTL
1071 GNULIB_OPENAT
1072 GNULIB_OPEN
1073 GNULIB_NONBLOCKING
1074 GNULIB_FCNTL
1075 GL_GENERATE_EXECINFO_H_FALSE
1076 GL_GENERATE_EXECINFO_H_TRUE
1077 LIB_EXECINFO
1078 EXECINFO_H
1079 HAVE_DIRENT_H
1080 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1081 NEXT_DIRENT_H
1082 PRAGMA_COLUMNS
1083 PRAGMA_SYSTEM_HEADER
1084 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1085 INCLUDE_NEXT
1086 REPLACE_FDOPENDIR
1087 REPLACE_DIRFD
1088 REPLACE_CLOSEDIR
1089 REPLACE_OPENDIR
1090 HAVE_ALPHASORT
1091 HAVE_SCANDIR
1092 HAVE_FDOPENDIR
1093 HAVE_DECL_FDOPENDIR
1094 HAVE_DECL_DIRFD
1095 HAVE_CLOSEDIR
1096 HAVE_REWINDDIR
1097 HAVE_READDIR
1098 HAVE_OPENDIR
1099 GNULIB_ALPHASORT
1100 GNULIB_SCANDIR
1101 GNULIB_FDOPENDIR
1102 GNULIB_DIRFD
1103 GNULIB_CLOSEDIR
1104 GNULIB_REWINDDIR
1105 GNULIB_READDIR
1106 GNULIB_OPENDIR
1107 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1108 UNISTD_H_HAVE_WINSOCK2_H
1109 REPLACE_WRITE
1110 REPLACE_USLEEP
1111 REPLACE_UNLINKAT
1112 REPLACE_UNLINK
1113 REPLACE_TTYNAME_R
1114 REPLACE_SYMLINK
1115 REPLACE_SLEEP
1116 REPLACE_RMDIR
1117 REPLACE_READLINK
1118 REPLACE_READ
1119 REPLACE_PWRITE
1120 REPLACE_PREAD
1121 REPLACE_LSEEK
1122 REPLACE_LINKAT
1123 REPLACE_LINK
1124 REPLACE_LCHOWN
1125 REPLACE_ISATTY
1126 REPLACE_GETPAGESIZE
1127 REPLACE_GETGROUPS
1128 REPLACE_GETLOGIN_R
1129 REPLACE_GETDOMAINNAME
1130 REPLACE_GETCWD
1131 REPLACE_FTRUNCATE
1132 REPLACE_FCHOWNAT
1133 REPLACE_DUP2
1134 REPLACE_DUP
1135 REPLACE_CLOSE
1136 REPLACE_CHOWN
1137 HAVE_SYS_PARAM_H
1138 HAVE_OS_H
1139 HAVE_DECL_TTYNAME_R
1140 HAVE_DECL_SETHOSTNAME
1141 HAVE_DECL_GETUSERSHELL
1142 HAVE_DECL_GETPAGESIZE
1143 HAVE_DECL_GETLOGIN_R
1144 HAVE_DECL_GETDOMAINNAME
1145 HAVE_DECL_FDATASYNC
1146 HAVE_DECL_FCHDIR
1147 HAVE_DECL_ENVIRON
1148 HAVE_USLEEP
1149 HAVE_UNLINKAT
1150 HAVE_SYMLINKAT
1151 HAVE_SYMLINK
1152 HAVE_SLEEP
1153 HAVE_SETHOSTNAME
1154 HAVE_READLINKAT
1155 HAVE_READLINK
1156 HAVE_PWRITE
1157 HAVE_PREAD
1158 HAVE_PIPE2
1159 HAVE_PIPE
1160 HAVE_LINKAT
1161 HAVE_LINK
1162 HAVE_LCHOWN
1163 HAVE_GROUP_MEMBER
1164 HAVE_GETPAGESIZE
1165 HAVE_GETLOGIN
1166 HAVE_GETHOSTNAME
1167 HAVE_GETGROUPS
1168 HAVE_GETDTABLESIZE
1169 HAVE_FTRUNCATE
1170 HAVE_FSYNC
1171 HAVE_FDATASYNC
1172 HAVE_FCHOWNAT
1173 HAVE_FCHDIR
1174 HAVE_FACCESSAT
1175 HAVE_EUIDACCESS
1176 HAVE_DUP3
1177 HAVE_DUP2
1178 HAVE_CHOWN
1179 GNULIB_WRITE
1180 GNULIB_USLEEP
1181 GNULIB_UNLINKAT
1182 GNULIB_UNLINK
1183 GNULIB_UNISTD_H_SIGPIPE
1184 GNULIB_UNISTD_H_NONBLOCKING
1185 GNULIB_TTYNAME_R
1186 GNULIB_SYMLINKAT
1187 GNULIB_SYMLINK
1188 GNULIB_SLEEP
1189 GNULIB_SETHOSTNAME
1190 GNULIB_RMDIR
1191 GNULIB_READLINKAT
1192 GNULIB_READLINK
1193 GNULIB_READ
1194 GNULIB_PWRITE
1195 GNULIB_PREAD
1196 GNULIB_PIPE2
1197 GNULIB_PIPE
1198 GNULIB_LSEEK
1199 GNULIB_LINKAT
1200 GNULIB_LINK
1201 GNULIB_LCHOWN
1202 GNULIB_ISATTY
1203 GNULIB_GROUP_MEMBER
1204 GNULIB_GETUSERSHELL
1205 GNULIB_GETPAGESIZE
1206 GNULIB_GETLOGIN_R
1207 GNULIB_GETLOGIN
1208 GNULIB_GETHOSTNAME
1209 GNULIB_GETGROUPS
1210 GNULIB_GETDTABLESIZE
1211 GNULIB_GETDOMAINNAME
1212 GNULIB_GETCWD
1213 GNULIB_FTRUNCATE
1214 GNULIB_FSYNC
1215 GNULIB_FDATASYNC
1216 GNULIB_FCHOWNAT
1217 GNULIB_FCHDIR
1218 GNULIB_FACCESSAT
1219 GNULIB_EUIDACCESS
1220 GNULIB_ENVIRON
1221 GNULIB_DUP3
1222 GNULIB_DUP2
1223 GNULIB_DUP
1224 GNULIB_CLOSE
1225 GNULIB_CHOWN
1226 GNULIB_CHDIR
1227 LIB_CLOCK_GETTIME
1228 GL_GENERATE_ALLOCA_H_FALSE
1229 GL_GENERATE_ALLOCA_H_TRUE
1230 ALLOCA_H
1231 ALLOCA
1232 GL_COND_LIBTOOL_FALSE
1233 GL_COND_LIBTOOL_TRUE
1234 POST_ALLOC_OBJ
1235 PRE_ALLOC_OBJ
1236 CYGWIN_OBJ
1237 RALLOC_OBJ
1238 OLDXMENU_DEPS
1239 LIBX_OTHER
1240 LIBXMENU
1241 OLDXMENU
1242 OLDXMENU_TARGET
1243 LIBXT_OTHER
1244 TOOLKIT_LIBW
1245 WIDGET_OBJ
1246 XOBJ
1247 XMENU_OBJ
1248 FONT_OBJ
1249 OTHER_FILES
1250 GNU_OBJC_CFLAGS
1251 ns_appsrc
1252 ns_appresdir
1253 ns_appbindir
1254 ns_appdir
1255 X_TOOLKIT_TYPE
1256 GNUSTEP_CFLAGS
1257 C_SWITCH_X_SITE
1258 LD_SWITCH_X_SITE
1259 gameuser
1260 gamedir
1261 bitmapdir
1262 archlibdir
1263 etcdir
1264 x_default_search_path
1265 lisppath
1266 locallisppath
1267 standardlisppath
1268 leimdir
1269 lispdir
1270 srcdir
1271 canonical
1272 configuration
1273 version
1274 copyright
1275 KRB4LIB
1276 DESLIB
1277 KRB5LIB
1278 CRYPTOLIB
1279 COM_ERRLIB
1280 LIBRESOLV
1281 LIBHESIOD
1282 TERMCAP_OBJ
1283 LIBS_TERMCAP
1284 BLESSMAIL_TARGET
1285 LIBS_MAIL
1286 liblockfile
1287 LIBXML2_LIBS
1288 LIBXML2_CFLAGS
1289 LIBXSM
1290 LIBGPM
1291 LIBGIF
1292 LIBTIFF
1293 LIBPNG
1294 LIBJPEG
1295 LIBXPM
1296 M17N_FLT_LIBS
1297 M17N_FLT_CFLAGS
1298 LIBOTF_LIBS
1299 LIBOTF_CFLAGS
1300 FREETYPE_LIBS
1301 FREETYPE_CFLAGS
1302 XFT_LIBS
1303 XFT_CFLAGS
1304 FONTCONFIG_LIBS
1305 FONTCONFIG_CFLAGS
1306 LIBXMU
1307 LIBXTR6
1308 LIBACL_LIBS
1309 LIBGNUTLS_LIBS
1310 LIBGNUTLS_CFLAGS
1311 LIBSELINUX_LIBS
1312 SETTINGS_LIBS
1313 SETTINGS_CFLAGS
1314 GOBJECT_LIBS
1315 GOBJECT_CFLAGS
1316 GCONF_LIBS
1317 GCONF_CFLAGS
1318 GSETTINGS_LIBS
1319 GSETTINGS_CFLAGS
1320 DBUS_OBJ
1321 DBUS_LIBS
1322 DBUS_CFLAGS
1323 GTK_OBJ
1324 GTK_LIBS
1325 GTK_CFLAGS
1326 IMAGEMAGICK_LIBS
1327 IMAGEMAGICK_CFLAGS
1328 RSVG_LIBS
1329 RSVG_CFLAGS
1330 LIB_PTHREAD
1331 VMLIMIT_OBJ
1332 GMALLOC_OBJ
1333 HAVE_XSERVER
1334 W32_RES_LINK
1335 W32_RES
1336 W32_LIBS
1337 W32_OBJ
1338 WINDRES
1339 NS_OBJC_OBJ
1340 NS_OBJ
1341 ns_self_contained
1342 INSTALL_ARCH_INDEP_EXTRA
1343 LIBS_GNUSTEP
1344 LD_SWITCH_X_SITE_RPATH
1345 XMKMF
1346 DEPFLAGS
1347 MKDEPDIR
1348 CFLAGS_SOUND
1349 ALSA_LIBS
1350 ALSA_CFLAGS
1351 LIBSOUND
1352 PKG_CONFIG
1353 LIB_MATH
1354 LIBS_SYSTEM
1355 C_SWITCH_SYSTEM
1356 UNEXEC_OBJ
1357 C_SWITCH_MACHINE
1358 LD_SWITCH_SYSTEM
1359 CANNOT_DUMP
1360 INFO_OPTS
1361 INFO_EXT
1362 HAVE_MAKEINFO
1363 PAXCTL
1364 GZIP_PROG
1365 INSTALL_INFO
1366 LN_S_FILEONLY
1367 GNULIB_WARN_CFLAGS
1368 WARN_CFLAGS
1369 WERROR_CFLAGS
1370 RANLIB
1371 ARFLAGS
1373 EGREP
1374 GREP
1376 am__fastdepCC_FALSE
1377 am__fastdepCC_TRUE
1378 CCDEPMODE
1379 AMDEPBACKSLASH
1380 AMDEP_FALSE
1381 AMDEP_TRUE
1382 am__quote
1383 am__include
1384 DEPDIR
1385 OBJEXT
1386 EXEEXT
1387 ac_ct_CC
1388 CPPFLAGS
1389 LDFLAGS
1390 CFLAGS
1392 host_os
1393 host_vendor
1394 host_cpu
1395 host
1396 build_os
1397 build_vendor
1398 build_cpu
1399 build
1400 PROFILING_CFLAGS
1401 GZIP_INFO
1402 cache_file
1403 am__untar
1404 am__tar
1405 AMTAR
1406 am__leading_dot
1407 SET_MAKE
1409 mkdir_p
1410 MKDIR_P
1411 INSTALL_STRIP_PROGRAM
1412 STRIP
1413 install_sh
1414 MAKEINFO
1415 AUTOHEADER
1416 AUTOMAKE
1417 AUTOCONF
1418 ACLOCAL
1419 VERSION
1420 PACKAGE
1421 CYGPATH_W
1422 am__isrc
1423 INSTALL_DATA
1424 INSTALL_SCRIPT
1425 INSTALL_PROGRAM
1426 target_alias
1427 host_alias
1428 build_alias
1429 LIBS
1430 ECHO_T
1431 ECHO_N
1432 ECHO_C
1433 DEFS
1434 mandir
1435 localedir
1436 libdir
1437 psdir
1438 pdfdir
1439 dvidir
1440 htmldir
1441 infodir
1442 docdir
1443 oldincludedir
1444 includedir
1445 localstatedir
1446 sharedstatedir
1447 sysconfdir
1448 datadir
1449 datarootdir
1450 libexecdir
1451 sbindir
1452 bindir
1453 program_transform_name
1454 prefix
1455 exec_prefix
1456 PACKAGE_URL
1457 PACKAGE_BUGREPORT
1458 PACKAGE_STRING
1459 PACKAGE_VERSION
1460 PACKAGE_TARNAME
1461 PACKAGE_NAME
1462 PATH_SEPARATOR
1463 SHELL'
1464 ac_subst_files='deps_frag
1465 lisp_frag'
1466 ac_user_opts='
1467 enable_option_checking
1468 with_all
1469 with_pop
1470 with_kerberos
1471 with_kerberos5
1472 with_hesiod
1473 with_mmdf
1474 with_mail_unlink
1475 with_mailhost
1476 with_sound
1477 with_x_toolkit
1478 with_wide_int
1479 with_xpm
1480 with_jpeg
1481 with_tiff
1482 with_gif
1483 with_png
1484 with_rsvg
1485 with_xml2
1486 with_imagemagick
1487 with_xft
1488 with_libotf
1489 with_m17n_flt
1490 with_toolkit_scroll_bars
1491 with_xaw3d
1492 with_xim
1493 with_ns
1494 with_w32
1495 with_gpm
1496 with_dbus
1497 with_gconf
1498 with_gsettings
1499 with_selinux
1500 with_acl
1501 with_gnutls
1502 with_inotify
1503 with_makeinfo
1504 with_compress_info
1505 with_pkg_config_prog
1506 with_gameuser
1507 with_gnustep_conf
1508 enable_ns_self_contained
1509 enable_locallisppath
1510 enable_checking
1511 enable_check_lisp_object_type
1512 enable_profiling
1513 enable_autodepend
1514 enable_gtk_deprecation_warnings
1515 enable_dependency_tracking
1516 enable_largefile
1517 enable_gcc_warnings
1518 enable_link_time_optimization
1519 with_x
1521 ac_precious_vars='build_alias
1522 host_alias
1523 target_alias
1525 CFLAGS
1526 LDFLAGS
1527 LIBS
1528 CPPFLAGS
1530 XMKMF'
1533 # Initialize some variables set by options.
1534 ac_init_help=
1535 ac_init_version=false
1536 ac_unrecognized_opts=
1537 ac_unrecognized_sep=
1538 # The variables have the same names as the options, with
1539 # dashes changed to underlines.
1540 cache_file=/dev/null
1541 exec_prefix=NONE
1542 no_create=
1543 no_recursion=
1544 prefix=NONE
1545 program_prefix=NONE
1546 program_suffix=NONE
1547 program_transform_name=s,x,x,
1548 silent=
1549 site=
1550 srcdir=
1551 verbose=
1552 x_includes=NONE
1553 x_libraries=NONE
1555 # Installation directory options.
1556 # These are left unexpanded so users can "make install exec_prefix=/foo"
1557 # and all the variables that are supposed to be based on exec_prefix
1558 # by default will actually change.
1559 # Use braces instead of parens because sh, perl, etc. also accept them.
1560 # (The list follows the same order as the GNU Coding Standards.)
1561 bindir='${exec_prefix}/bin'
1562 sbindir='${exec_prefix}/sbin'
1563 libexecdir='${exec_prefix}/libexec'
1564 datarootdir='${prefix}/share'
1565 datadir='${datarootdir}'
1566 sysconfdir='${prefix}/etc'
1567 sharedstatedir='${prefix}/com'
1568 localstatedir='${prefix}/var'
1569 includedir='${prefix}/include'
1570 oldincludedir='/usr/include'
1571 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1572 infodir='${datarootdir}/info'
1573 htmldir='${docdir}'
1574 dvidir='${docdir}'
1575 pdfdir='${docdir}'
1576 psdir='${docdir}'
1577 libdir='${exec_prefix}/lib'
1578 localedir='${datarootdir}/locale'
1579 mandir='${datarootdir}/man'
1581 ac_prev=
1582 ac_dashdash=
1583 for ac_option
1585 # If the previous option needs an argument, assign it.
1586 if test -n "$ac_prev"; then
1587 eval $ac_prev=\$ac_option
1588 ac_prev=
1589 continue
1592 case $ac_option in
1593 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1594 *) ac_optarg=yes ;;
1595 esac
1597 # Accept the important Cygnus configure options, so we can diagnose typos.
1599 case $ac_dashdash$ac_option in
1601 ac_dashdash=yes ;;
1603 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1604 ac_prev=bindir ;;
1605 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1606 bindir=$ac_optarg ;;
1608 -build | --build | --buil | --bui | --bu)
1609 ac_prev=build_alias ;;
1610 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1611 build_alias=$ac_optarg ;;
1613 -cache-file | --cache-file | --cache-fil | --cache-fi \
1614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1615 ac_prev=cache_file ;;
1616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1618 cache_file=$ac_optarg ;;
1620 --config-cache | -C)
1621 cache_file=config.cache ;;
1623 -datadir | --datadir | --datadi | --datad)
1624 ac_prev=datadir ;;
1625 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1626 datadir=$ac_optarg ;;
1628 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1629 | --dataroo | --dataro | --datar)
1630 ac_prev=datarootdir ;;
1631 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1632 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1633 datarootdir=$ac_optarg ;;
1635 -disable-* | --disable-*)
1636 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1637 # Reject names that are not valid shell variable names.
1638 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1639 as_fn_error "invalid feature name: $ac_useropt"
1640 ac_useropt_orig=$ac_useropt
1641 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1644 "enable_$ac_useropt"
1645 "*) ;;
1646 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1647 ac_unrecognized_sep=', ';;
1648 esac
1649 eval enable_$ac_useropt=no ;;
1651 -docdir | --docdir | --docdi | --doc | --do)
1652 ac_prev=docdir ;;
1653 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1654 docdir=$ac_optarg ;;
1656 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1657 ac_prev=dvidir ;;
1658 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1659 dvidir=$ac_optarg ;;
1661 -enable-* | --enable-*)
1662 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1663 # Reject names that are not valid shell variable names.
1664 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1665 as_fn_error "invalid feature name: $ac_useropt"
1666 ac_useropt_orig=$ac_useropt
1667 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1668 case $ac_user_opts in
1670 "enable_$ac_useropt"
1671 "*) ;;
1672 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1673 ac_unrecognized_sep=', ';;
1674 esac
1675 eval enable_$ac_useropt=\$ac_optarg ;;
1677 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1678 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1679 | --exec | --exe | --ex)
1680 ac_prev=exec_prefix ;;
1681 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1682 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1683 | --exec=* | --exe=* | --ex=*)
1684 exec_prefix=$ac_optarg ;;
1686 -gas | --gas | --ga | --g)
1687 # Obsolete; use --with-gas.
1688 with_gas=yes ;;
1690 -help | --help | --hel | --he | -h)
1691 ac_init_help=long ;;
1692 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1693 ac_init_help=recursive ;;
1694 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1695 ac_init_help=short ;;
1697 -host | --host | --hos | --ho)
1698 ac_prev=host_alias ;;
1699 -host=* | --host=* | --hos=* | --ho=*)
1700 host_alias=$ac_optarg ;;
1702 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1703 ac_prev=htmldir ;;
1704 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1705 | --ht=*)
1706 htmldir=$ac_optarg ;;
1708 -includedir | --includedir | --includedi | --included | --include \
1709 | --includ | --inclu | --incl | --inc)
1710 ac_prev=includedir ;;
1711 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1712 | --includ=* | --inclu=* | --incl=* | --inc=*)
1713 includedir=$ac_optarg ;;
1715 -infodir | --infodir | --infodi | --infod | --info | --inf)
1716 ac_prev=infodir ;;
1717 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1718 infodir=$ac_optarg ;;
1720 -libdir | --libdir | --libdi | --libd)
1721 ac_prev=libdir ;;
1722 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1723 libdir=$ac_optarg ;;
1725 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1726 | --libexe | --libex | --libe)
1727 ac_prev=libexecdir ;;
1728 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1729 | --libexe=* | --libex=* | --libe=*)
1730 libexecdir=$ac_optarg ;;
1732 -localedir | --localedir | --localedi | --localed | --locale)
1733 ac_prev=localedir ;;
1734 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1735 localedir=$ac_optarg ;;
1737 -localstatedir | --localstatedir | --localstatedi | --localstated \
1738 | --localstate | --localstat | --localsta | --localst | --locals)
1739 ac_prev=localstatedir ;;
1740 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1741 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1742 localstatedir=$ac_optarg ;;
1744 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1745 ac_prev=mandir ;;
1746 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1747 mandir=$ac_optarg ;;
1749 -nfp | --nfp | --nf)
1750 # Obsolete; use --without-fp.
1751 with_fp=no ;;
1753 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1754 | --no-cr | --no-c | -n)
1755 no_create=yes ;;
1757 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1758 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1759 no_recursion=yes ;;
1761 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1762 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1763 | --oldin | --oldi | --old | --ol | --o)
1764 ac_prev=oldincludedir ;;
1765 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1766 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1767 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1768 oldincludedir=$ac_optarg ;;
1770 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1771 ac_prev=prefix ;;
1772 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1773 prefix=$ac_optarg ;;
1775 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1776 | --program-pre | --program-pr | --program-p)
1777 ac_prev=program_prefix ;;
1778 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1779 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1780 program_prefix=$ac_optarg ;;
1782 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1783 | --program-suf | --program-su | --program-s)
1784 ac_prev=program_suffix ;;
1785 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1786 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1787 program_suffix=$ac_optarg ;;
1789 -program-transform-name | --program-transform-name \
1790 | --program-transform-nam | --program-transform-na \
1791 | --program-transform-n | --program-transform- \
1792 | --program-transform | --program-transfor \
1793 | --program-transfo | --program-transf \
1794 | --program-trans | --program-tran \
1795 | --progr-tra | --program-tr | --program-t)
1796 ac_prev=program_transform_name ;;
1797 -program-transform-name=* | --program-transform-name=* \
1798 | --program-transform-nam=* | --program-transform-na=* \
1799 | --program-transform-n=* | --program-transform-=* \
1800 | --program-transform=* | --program-transfor=* \
1801 | --program-transfo=* | --program-transf=* \
1802 | --program-trans=* | --program-tran=* \
1803 | --progr-tra=* | --program-tr=* | --program-t=*)
1804 program_transform_name=$ac_optarg ;;
1806 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1807 ac_prev=pdfdir ;;
1808 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1809 pdfdir=$ac_optarg ;;
1811 -psdir | --psdir | --psdi | --psd | --ps)
1812 ac_prev=psdir ;;
1813 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1814 psdir=$ac_optarg ;;
1816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1817 | -silent | --silent | --silen | --sile | --sil)
1818 silent=yes ;;
1820 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1821 ac_prev=sbindir ;;
1822 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1823 | --sbi=* | --sb=*)
1824 sbindir=$ac_optarg ;;
1826 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1827 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1828 | --sharedst | --shareds | --shared | --share | --shar \
1829 | --sha | --sh)
1830 ac_prev=sharedstatedir ;;
1831 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1832 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1833 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1834 | --sha=* | --sh=*)
1835 sharedstatedir=$ac_optarg ;;
1837 -site | --site | --sit)
1838 ac_prev=site ;;
1839 -site=* | --site=* | --sit=*)
1840 site=$ac_optarg ;;
1842 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1843 ac_prev=srcdir ;;
1844 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1845 srcdir=$ac_optarg ;;
1847 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1848 | --syscon | --sysco | --sysc | --sys | --sy)
1849 ac_prev=sysconfdir ;;
1850 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1851 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1852 sysconfdir=$ac_optarg ;;
1854 -target | --target | --targe | --targ | --tar | --ta | --t)
1855 ac_prev=target_alias ;;
1856 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1857 target_alias=$ac_optarg ;;
1859 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1860 verbose=yes ;;
1862 -version | --version | --versio | --versi | --vers | -V)
1863 ac_init_version=: ;;
1865 -with-* | --with-*)
1866 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1867 # Reject names that are not valid shell variable names.
1868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1869 as_fn_error "invalid package name: $ac_useropt"
1870 ac_useropt_orig=$ac_useropt
1871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1872 case $ac_user_opts in
1874 "with_$ac_useropt"
1875 "*) ;;
1876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1877 ac_unrecognized_sep=', ';;
1878 esac
1879 eval with_$ac_useropt=\$ac_optarg ;;
1881 -without-* | --without-*)
1882 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1883 # Reject names that are not valid shell variable names.
1884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1885 as_fn_error "invalid package name: $ac_useropt"
1886 ac_useropt_orig=$ac_useropt
1887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1888 case $ac_user_opts in
1890 "with_$ac_useropt"
1891 "*) ;;
1892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1893 ac_unrecognized_sep=', ';;
1894 esac
1895 eval with_$ac_useropt=no ;;
1897 --x)
1898 # Obsolete; use --with-x.
1899 with_x=yes ;;
1901 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1902 | --x-incl | --x-inc | --x-in | --x-i)
1903 ac_prev=x_includes ;;
1904 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1905 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1906 x_includes=$ac_optarg ;;
1908 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1909 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1910 ac_prev=x_libraries ;;
1911 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1912 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1913 x_libraries=$ac_optarg ;;
1915 -*) as_fn_error "unrecognized option: \`$ac_option'
1916 Try \`$0 --help' for more information."
1919 *=*)
1920 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1921 # Reject names that are not valid shell variable names.
1922 case $ac_envvar in #(
1923 '' | [0-9]* | *[!_$as_cr_alnum]* )
1924 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1925 esac
1926 eval $ac_envvar=\$ac_optarg
1927 export $ac_envvar ;;
1930 # FIXME: should be removed in autoconf 3.0.
1931 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1932 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1933 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1934 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1937 esac
1938 done
1940 if test -n "$ac_prev"; then
1941 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1942 as_fn_error "missing argument to $ac_option"
1945 if test -n "$ac_unrecognized_opts"; then
1946 case $enable_option_checking in
1947 no) ;;
1948 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1949 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1950 esac
1953 # Check all directory arguments for consistency.
1954 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1955 datadir sysconfdir sharedstatedir localstatedir includedir \
1956 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1957 libdir localedir mandir
1959 eval ac_val=\$$ac_var
1960 # Remove trailing slashes.
1961 case $ac_val in
1962 */ )
1963 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1964 eval $ac_var=\$ac_val;;
1965 esac
1966 # Be sure to have absolute directory names.
1967 case $ac_val in
1968 [\\/$]* | ?:[\\/]* ) continue;;
1969 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1970 esac
1971 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1972 done
1974 # There might be people who depend on the old broken behavior: `$host'
1975 # used to hold the argument of --host etc.
1976 # FIXME: To remove some day.
1977 build=$build_alias
1978 host=$host_alias
1979 target=$target_alias
1981 # FIXME: To remove some day.
1982 if test "x$host_alias" != x; then
1983 if test "x$build_alias" = x; then
1984 cross_compiling=maybe
1985 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1986 If a cross compiler is detected then cross compile mode will be used." >&2
1987 elif test "x$build_alias" != "x$host_alias"; then
1988 cross_compiling=yes
1992 ac_tool_prefix=
1993 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1995 test "$silent" = yes && exec 6>/dev/null
1998 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1999 ac_ls_di=`ls -di .` &&
2000 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2001 as_fn_error "working directory cannot be determined"
2002 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2003 as_fn_error "pwd does not report name of working directory"
2006 # Find the source files, if location was not specified.
2007 if test -z "$srcdir"; then
2008 ac_srcdir_defaulted=yes
2009 # Try the directory containing this script, then the parent directory.
2010 ac_confdir=`$as_dirname -- "$as_myself" ||
2011 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2012 X"$as_myself" : 'X\(//\)[^/]' \| \
2013 X"$as_myself" : 'X\(//\)$' \| \
2014 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2015 $as_echo X"$as_myself" |
2016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2017 s//\1/
2020 /^X\(\/\/\)[^/].*/{
2021 s//\1/
2024 /^X\(\/\/\)$/{
2025 s//\1/
2028 /^X\(\/\).*/{
2029 s//\1/
2032 s/.*/./; q'`
2033 srcdir=$ac_confdir
2034 if test ! -r "$srcdir/$ac_unique_file"; then
2035 srcdir=..
2037 else
2038 ac_srcdir_defaulted=no
2040 if test ! -r "$srcdir/$ac_unique_file"; then
2041 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2042 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2044 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2045 ac_abs_confdir=`(
2046 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2047 pwd)`
2048 # When building in place, set srcdir=.
2049 if test "$ac_abs_confdir" = "$ac_pwd"; then
2050 srcdir=.
2052 # Remove unnecessary trailing slashes from srcdir.
2053 # Double slashes in file names in object file debugging info
2054 # mess up M-x gdb in Emacs.
2055 case $srcdir in
2056 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2057 esac
2058 for ac_var in $ac_precious_vars; do
2059 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2060 eval ac_env_${ac_var}_value=\$${ac_var}
2061 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2062 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2063 done
2066 # Report the --help message.
2068 if test "$ac_init_help" = "long"; then
2069 # Omit some internal or obsolete options to make the list less imposing.
2070 # This message is too long to be a string in the A/UX 3.1 sh.
2071 cat <<_ACEOF
2072 \`configure' configures emacs 24.3.50 to adapt to many kinds of systems.
2074 Usage: $0 [OPTION]... [VAR=VALUE]...
2076 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2077 VAR=VALUE. See below for descriptions of some of the useful variables.
2079 Defaults for the options are specified in brackets.
2081 Configuration:
2082 -h, --help display this help and exit
2083 --help=short display options specific to this package
2084 --help=recursive display the short help of all the included packages
2085 -V, --version display version information and exit
2086 -q, --quiet, --silent do not print \`checking...' messages
2087 --cache-file=FILE cache test results in FILE [disabled]
2088 -C, --config-cache alias for \`--cache-file=config.cache'
2089 -n, --no-create do not create output files
2090 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2092 Installation directories:
2093 --prefix=PREFIX install architecture-independent files in PREFIX
2094 [$ac_default_prefix]
2095 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2096 [PREFIX]
2098 By default, \`make install' will install all the files in
2099 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2100 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2101 for instance \`--prefix=\$HOME'.
2103 For better control, use the options below.
2105 Fine tuning of the installation directories:
2106 --bindir=DIR user executables [EPREFIX/bin]
2107 --sbindir=DIR system admin executables [EPREFIX/sbin]
2108 --libexecdir=DIR program executables [EPREFIX/libexec]
2109 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2110 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2111 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2112 --libdir=DIR object code libraries [EPREFIX/lib]
2113 --includedir=DIR C header files [PREFIX/include]
2114 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2115 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2116 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2117 --infodir=DIR info documentation [DATAROOTDIR/info]
2118 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2119 --mandir=DIR man documentation [DATAROOTDIR/man]
2120 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
2121 --htmldir=DIR html documentation [DOCDIR]
2122 --dvidir=DIR dvi documentation [DOCDIR]
2123 --pdfdir=DIR pdf documentation [DOCDIR]
2124 --psdir=DIR ps documentation [DOCDIR]
2125 _ACEOF
2127 cat <<\_ACEOF
2129 Program names:
2130 --program-prefix=PREFIX prepend PREFIX to installed program names
2131 --program-suffix=SUFFIX append SUFFIX to installed program names
2132 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2134 X features:
2135 --x-includes=DIR X include files are in DIR
2136 --x-libraries=DIR X library files are in DIR
2138 System types:
2139 --build=BUILD configure for building on BUILD [guessed]
2140 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2141 _ACEOF
2144 if test -n "$ac_init_help"; then
2145 case $ac_init_help in
2146 short | recursive ) echo "Configuration of emacs 24.3.50:";;
2147 esac
2148 cat <<\_ACEOF
2150 Optional Features:
2151 --disable-option-checking ignore unrecognized --enable/--with options
2152 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2153 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2154 --disable-ns-self-contained
2155 disable self contained build under NeXTstep
2156 --enable-locallisppath=PATH
2157 directories Emacs should search for lisp files
2158 specific to this site
2159 --enable-checking[=LIST]
2160 enable expensive run-time checks. With LIST, enable
2161 only specific categories of checks. Categories are:
2162 all,yes,no. Flags are: stringbytes, stringoverrun,
2163 stringfreelist, xmallocoverrun, conslist, glyphs
2164 --enable-check-lisp-object-type
2165 enable compile time checks for the Lisp_Object data
2166 type. This is useful for development for catching
2167 certain types of bugs.
2168 --enable-profiling build emacs with low-level, gprof profiling support.
2169 Mainly useful for debugging Emacs itself. May not
2170 work on all platforms. Stops profiler.el working.
2171 --enable-autodepend automatically generate dependencies to .h-files.
2172 Requires GNU Make and Gcc. Enabled if GNU Make and
2173 Gcc is found
2174 --enable-gtk-deprecation-warnings
2175 Show Gtk+/Gdk deprecation warnings for Gtk+ >= 3.0
2176 --disable-dependency-tracking speeds up one-time build
2177 --enable-dependency-tracking do not reject slow dependency extractors
2178 --disable-largefile omit support for large files
2179 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2180 intended for developers, and may generate false
2181 alarms when used with older or non-GNU development
2182 tools.
2183 --enable-link-time-optimization
2184 build emacs with link-time optimization. This is
2185 supported only for GCC since 4.5.0.
2187 Optional Packages:
2188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2190 --without-all omit almost all features and build small executable
2191 with minimal dependencies
2192 --without-pop don't support POP mail retrieval with movemail
2193 --with-kerberos support Kerberos-authenticated POP
2194 --with-kerberos5 support Kerberos version 5 authenticated POP
2195 --with-hesiod support Hesiod to get the POP server host
2196 --with-mmdf support MMDF mailboxes
2197 --with-mail-unlink unlink, rather than empty, mail spool after reading
2198 --with-mailhost=HOSTNAME
2199 string giving default POP mail host
2200 --without-sound don't compile with sound support
2201 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2202 gtk3, lucid or athena, motif, no)
2203 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2204 --without-xpm don't compile with XPM image support
2205 --without-jpeg don't compile with JPEG image support
2206 --without-tiff don't compile with TIFF image support
2207 --without-gif don't compile with GIF image support
2208 --without-png don't compile with PNG image support
2209 --without-rsvg don't compile with SVG image support
2210 --without-xml2 don't compile with XML parsing support
2211 --without-imagemagick don't compile with ImageMagick image support
2212 --without-xft don't use XFT for anti aliased fonts
2213 --without-libotf don't use libotf for OpenType font support
2214 --without-m17n-flt don't use m17n-flt for text shaping
2215 --without-toolkit-scroll-bars
2216 don't use Motif or Xaw3d scroll bars
2217 --without-xaw3d don't use Xaw3d
2218 --without-xim don't use X11 XIM
2219 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2220 --with-w32 use native MS Windows GUI
2221 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2222 console
2223 --without-dbus don't compile with D-Bus support
2224 --without-gconf don't compile with GConf support
2225 --without-gsettings don't compile with GSettings support
2226 --without-selinux don't compile with SELinux support
2227 --without-acl don't compile with ACL support
2228 --without-gnutls don't use -lgnutls for SSL/TLS support
2229 --without-inotify don't compile with inotify (file-watch) support
2230 --without-makeinfo don't require makeinfo for building manuals
2231 --without-compress-info don't compress the installed Info pages
2232 --with-pkg-config-prog=FILENAME
2233 file name of pkg-config for finding GTK and librsvg
2234 --with-gameuser=USER user for shared game score files
2235 --with-gnustep-conf=FILENAME
2236 name of GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2237 or /etc/GNUstep/GNUstep.conf
2238 --with-x use the X Window System
2240 Some influential environment variables:
2241 CC C compiler command
2242 CFLAGS C compiler flags
2243 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2244 nonstandard directory <lib dir>
2245 LIBS libraries to pass to the linker, e.g. -l<library>
2246 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2247 you have headers in a nonstandard directory <include dir>
2248 CPP C preprocessor
2249 XMKMF Path to xmkmf, Makefile generator for X Window System
2251 Use these variables to override the choices made by `configure' or to help
2252 it to find libraries and programs with nonstandard names/locations.
2254 Report bugs to the package provider.
2255 _ACEOF
2256 ac_status=$?
2259 if test "$ac_init_help" = "recursive"; then
2260 # If there are subdirs, report their specific --help.
2261 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2262 test -d "$ac_dir" ||
2263 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2264 continue
2265 ac_builddir=.
2267 case "$ac_dir" in
2268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2270 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2271 # A ".." for each directory in $ac_dir_suffix.
2272 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2273 case $ac_top_builddir_sub in
2274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2276 esac ;;
2277 esac
2278 ac_abs_top_builddir=$ac_pwd
2279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2280 # for backward compatibility:
2281 ac_top_builddir=$ac_top_build_prefix
2283 case $srcdir in
2284 .) # We are building in place.
2285 ac_srcdir=.
2286 ac_top_srcdir=$ac_top_builddir_sub
2287 ac_abs_top_srcdir=$ac_pwd ;;
2288 [\\/]* | ?:[\\/]* ) # Absolute name.
2289 ac_srcdir=$srcdir$ac_dir_suffix;
2290 ac_top_srcdir=$srcdir
2291 ac_abs_top_srcdir=$srcdir ;;
2292 *) # Relative name.
2293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2294 ac_top_srcdir=$ac_top_build_prefix$srcdir
2295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2296 esac
2297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2299 cd "$ac_dir" || { ac_status=$?; continue; }
2300 # Check for guested configure.
2301 if test -f "$ac_srcdir/configure.gnu"; then
2302 echo &&
2303 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2304 elif test -f "$ac_srcdir/configure"; then
2305 echo &&
2306 $SHELL "$ac_srcdir/configure" --help=recursive
2307 else
2308 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2309 fi || ac_status=$?
2310 cd "$ac_pwd" || { ac_status=$?; break; }
2311 done
2314 test -n "$ac_init_help" && exit $ac_status
2315 if $ac_init_version; then
2316 cat <<\_ACEOF
2317 emacs configure 24.3.50
2318 generated by GNU Autoconf 2.65
2320 Copyright (C) 2009 Free Software Foundation, Inc.
2321 This configure script is free software; the Free Software Foundation
2322 gives unlimited permission to copy, distribute and modify it.
2323 _ACEOF
2324 exit
2327 ## ------------------------ ##
2328 ## Autoconf initialization. ##
2329 ## ------------------------ ##
2331 # ac_fn_c_try_compile LINENO
2332 # --------------------------
2333 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_c_try_compile ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 rm -f conftest.$ac_objext
2338 if { { ac_try="$ac_compile"
2339 case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345 (eval "$ac_compile") 2>conftest.err
2346 ac_status=$?
2347 if test -s conftest.err; then
2348 grep -v '^ *+' conftest.err >conftest.er1
2349 cat conftest.er1 >&5
2350 mv -f conftest.er1 conftest.err
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && {
2354 test -z "$ac_c_werror_flag" ||
2355 test ! -s conftest.err
2356 } && test -s conftest.$ac_objext; then :
2357 ac_retval=0
2358 else
2359 $as_echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 ac_retval=1
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 as_fn_set_status $ac_retval
2367 } # ac_fn_c_try_compile
2369 # ac_fn_c_try_cpp LINENO
2370 # ----------------------
2371 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_c_try_cpp ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if { { ac_try="$ac_cpp conftest.$ac_ext"
2376 case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379 esac
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2383 ac_status=$?
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } >/dev/null && {
2391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 }; then :
2394 ac_retval=0
2395 else
2396 $as_echo "$as_me: failed program was:" >&5
2397 sed 's/^/| /' conftest.$ac_ext >&5
2399 ac_retval=1
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2402 as_fn_set_status $ac_retval
2404 } # ac_fn_c_try_cpp
2406 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2407 # -------------------------------------------------------
2408 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2409 # the include files in INCLUDES and setting the cache variable VAR
2410 # accordingly.
2411 ac_fn_c_check_header_mongrel ()
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2416 $as_echo_n "checking for $2... " >&6; }
2417 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2418 $as_echo_n "(cached) " >&6
2420 eval ac_res=\$$3
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2422 $as_echo "$ac_res" >&6; }
2423 else
2424 # Is the header compilable?
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2426 $as_echo_n "checking $2 usability... " >&6; }
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2430 #include <$2>
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_header_compiler=yes
2434 else
2435 ac_header_compiler=no
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2439 $as_echo "$ac_header_compiler" >&6; }
2441 # Is the header present?
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2443 $as_echo_n "checking $2 presence... " >&6; }
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2446 #include <$2>
2447 _ACEOF
2448 if ac_fn_c_try_cpp "$LINENO"; then :
2449 ac_header_preproc=yes
2450 else
2451 ac_header_preproc=no
2453 rm -f conftest.err conftest.$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2455 $as_echo "$ac_header_preproc" >&6; }
2457 # So? What about this header?
2458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2459 yes:no: )
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2461 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2463 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2465 no:yes:* )
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2467 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2469 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2471 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2473 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2475 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2477 esac
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479 $as_echo_n "checking for $2... " >&6; }
2480 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 eval "$3=\$ac_header_compiler"
2485 eval ac_res=\$$3
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_header_mongrel
2493 # ac_fn_c_try_run LINENO
2494 # ----------------------
2495 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2496 # that executables *can* be run.
2497 ac_fn_c_try_run ()
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 if { { ac_try="$ac_link"
2501 case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507 (eval "$ac_link") 2>&5
2508 ac_status=$?
2509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2511 { { case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2514 esac
2515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2516 $as_echo "$ac_try_echo"; } >&5
2517 (eval "$ac_try") 2>&5
2518 ac_status=$?
2519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2520 test $ac_status = 0; }; }; then :
2521 ac_retval=0
2522 else
2523 $as_echo "$as_me: program exited with status $ac_status" >&5
2524 $as_echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2527 ac_retval=$ac_status
2529 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2531 as_fn_set_status $ac_retval
2533 } # ac_fn_c_try_run
2535 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2536 # -------------------------------------------------------
2537 # Tests whether HEADER exists and can be compiled using the include files in
2538 # INCLUDES, setting the cache variable VAR accordingly.
2539 ac_fn_c_check_header_compile ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2550 #include <$2>
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 eval "$3=yes"
2554 else
2555 eval "$3=no"
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2564 } # ac_fn_c_check_header_compile
2566 # ac_fn_c_try_link LINENO
2567 # -----------------------
2568 # Try to link conftest.$ac_ext, and return whether this succeeded.
2569 ac_fn_c_try_link ()
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { { ac_try="$ac_link"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_link") 2>conftest.err
2581 ac_status=$?
2582 if test -s conftest.err; then
2583 grep -v '^ *+' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2585 mv -f conftest.er1 conftest.err
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; } && {
2589 test -z "$ac_c_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest$ac_exeext && {
2592 test "$cross_compiling" = yes ||
2593 $as_test_x conftest$ac_exeext
2594 }; then :
2595 ac_retval=0
2596 else
2597 $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.$ac_ext >&5
2600 ac_retval=1
2602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604 # interfere with the next link command; also delete a directory that is
2605 # left behind by Apple's compiler. We do this before executing the actions.
2606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2608 as_fn_set_status $ac_retval
2610 } # ac_fn_c_try_link
2612 # ac_fn_c_check_decl LINENO SYMBOL VAR
2613 # ------------------------------------
2614 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2615 ac_fn_c_check_decl ()
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2619 $as_echo_n "checking whether $2 is declared... " >&6; }
2620 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2627 main ()
2629 #ifndef $2
2630 (void) $2;
2631 #endif
2634 return 0;
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$3=yes"
2639 else
2640 eval "$3=no"
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_c_check_decl
2651 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2652 # ----------------------------------------------
2653 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2654 ac_fn_c_check_header_preproc ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 $as_echo_n "checking for $2... " >&6; }
2659 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2663 /* end confdefs.h. */
2664 #include <$2>
2665 _ACEOF
2666 if ac_fn_c_try_cpp "$LINENO"; then :
2667 eval "$3=yes"
2668 else
2669 eval "$3=no"
2671 rm -f conftest.err conftest.$ac_ext
2673 eval ac_res=\$$3
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2678 } # ac_fn_c_check_header_preproc
2680 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2681 # ----------------------------------------------------
2682 # Tries to find if the field MEMBER exists in type AGGR, after including
2683 # INCLUDES, setting cache variable VAR accordingly.
2684 ac_fn_c_check_member ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2688 $as_echo_n "checking for $2.$3... " >&6; }
2689 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2696 main ()
2698 static $2 ac_aggr;
2699 if (ac_aggr.$3)
2700 return 0;
2702 return 0;
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706 eval "$4=yes"
2707 else
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2712 main ()
2714 static $2 ac_aggr;
2715 if (sizeof ac_aggr.$3)
2716 return 0;
2718 return 0;
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722 eval "$4=yes"
2723 else
2724 eval "$4=no"
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2730 eval ac_res=\$$4
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2732 $as_echo "$ac_res" >&6; }
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2735 } # ac_fn_c_check_member
2737 # ac_fn_c_check_func LINENO FUNC VAR
2738 # ----------------------------------
2739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2740 ac_fn_c_check_func ()
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2744 $as_echo_n "checking for $2... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2752 #define $2 innocuous_$2
2754 /* System header to define __stub macros and hopefully few prototypes,
2755 which can conflict with char $2 (); below.
2756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2757 <limits.h> exists even on freestanding compilers. */
2759 #ifdef __STDC__
2760 # include <limits.h>
2761 #else
2762 # include <assert.h>
2763 #endif
2765 #undef $2
2767 /* Override any GCC internal prototype to avoid an error.
2768 Use char because int might match the return type of a GCC
2769 builtin and then its argument prototype would still apply. */
2770 #ifdef __cplusplus
2771 extern "C"
2772 #endif
2773 char $2 ();
2774 /* The GNU C library defines this for functions which it implements
2775 to always fail with ENOSYS. Some functions are actually named
2776 something starting with __ and the normal name is an alias. */
2777 #if defined __stub_$2 || defined __stub___$2
2778 choke me
2779 #endif
2782 main ()
2784 return $2 ();
2786 return 0;
2788 _ACEOF
2789 if ac_fn_c_try_link "$LINENO"; then :
2790 eval "$3=yes"
2791 else
2792 eval "$3=no"
2794 rm -f core conftest.err conftest.$ac_objext \
2795 conftest$ac_exeext conftest.$ac_ext
2797 eval ac_res=\$$3
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2799 $as_echo "$ac_res" >&6; }
2800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2802 } # ac_fn_c_check_func
2804 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2805 # -------------------------------------------
2806 # Tests whether TYPE exists after having included INCLUDES, setting cache
2807 # variable VAR accordingly.
2808 ac_fn_c_check_type ()
2810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2812 $as_echo_n "checking for $2... " >&6; }
2813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 eval "$3=no"
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2821 main ()
2823 if (sizeof ($2))
2824 return 0;
2826 return 0;
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h. */
2834 main ()
2836 if (sizeof (($2)))
2837 return 0;
2839 return 0;
2841 _ACEOF
2842 if ac_fn_c_try_compile "$LINENO"; then :
2844 else
2845 eval "$3=yes"
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 eval ac_res=\$$3
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853 $as_echo "$ac_res" >&6; }
2854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2856 } # ac_fn_c_check_type
2858 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2859 # --------------------------------------------
2860 # Tries to find the compile-time value of EXPR in a program that includes
2861 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2862 # computed
2863 ac_fn_c_compute_int ()
2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866 if test "$cross_compiling" = yes; then
2867 # Depending upon the size, compute the lo and hi bounds.
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2872 main ()
2874 static int test_array [1 - 2 * !(($2) >= 0)];
2875 test_array [0] = 0
2878 return 0;
2880 _ACEOF
2881 if ac_fn_c_try_compile "$LINENO"; then :
2882 ac_lo=0 ac_mid=0
2883 while :; do
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2888 main ()
2890 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2891 test_array [0] = 0
2894 return 0;
2896 _ACEOF
2897 if ac_fn_c_try_compile "$LINENO"; then :
2898 ac_hi=$ac_mid; break
2899 else
2900 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2901 if test $ac_lo -le $ac_mid; then
2902 ac_lo= ac_hi=
2903 break
2905 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 done
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2914 main ()
2916 static int test_array [1 - 2 * !(($2) < 0)];
2917 test_array [0] = 0
2920 return 0;
2922 _ACEOF
2923 if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_hi=-1 ac_mid=-1
2925 while :; do
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2930 main ()
2932 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2933 test_array [0] = 0
2936 return 0;
2938 _ACEOF
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_lo=$ac_mid; break
2941 else
2942 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2943 if test $ac_mid -le $ac_hi; then
2944 ac_lo= ac_hi=
2945 break
2947 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2950 done
2951 else
2952 ac_lo= ac_hi=
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2957 # Binary search between lo and hi bounds.
2958 while test "x$ac_lo" != "x$ac_hi"; do
2959 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2964 main ()
2966 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2967 test_array [0] = 0
2970 return 0;
2972 _ACEOF
2973 if ac_fn_c_try_compile "$LINENO"; then :
2974 ac_hi=$ac_mid
2975 else
2976 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 done
2980 case $ac_lo in #((
2981 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2982 '') ac_retval=1 ;;
2983 esac
2984 else
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2988 static long int longval () { return $2; }
2989 static unsigned long int ulongval () { return $2; }
2990 #include <stdio.h>
2991 #include <stdlib.h>
2993 main ()
2996 FILE *f = fopen ("conftest.val", "w");
2997 if (! f)
2998 return 1;
2999 if (($2) < 0)
3001 long int i = longval ();
3002 if (i != ($2))
3003 return 1;
3004 fprintf (f, "%ld", i);
3006 else
3008 unsigned long int i = ulongval ();
3009 if (i != ($2))
3010 return 1;
3011 fprintf (f, "%lu", i);
3013 /* Do not output a trailing newline, as this causes \r\n confusion
3014 on some platforms. */
3015 return ferror (f) || fclose (f) != 0;
3018 return 0;
3020 _ACEOF
3021 if ac_fn_c_try_run "$LINENO"; then :
3022 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3023 else
3024 ac_retval=1
3026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3027 conftest.$ac_objext conftest.beam conftest.$ac_ext
3028 rm -f conftest.val
3031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3032 as_fn_set_status $ac_retval
3034 } # ac_fn_c_compute_int
3035 cat >config.log <<_ACEOF
3036 This file contains any messages produced by compilers while
3037 running configure, to aid debugging if configure makes a mistake.
3039 It was created by emacs $as_me 24.3.50, which was
3040 generated by GNU Autoconf 2.65. Invocation command line was
3042 $ $0 $@
3044 _ACEOF
3045 exec 5>>config.log
3047 cat <<_ASUNAME
3048 ## --------- ##
3049 ## Platform. ##
3050 ## --------- ##
3052 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3053 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3054 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3055 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3056 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3058 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3059 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3061 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3062 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3063 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3064 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3065 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3066 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3067 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3069 _ASUNAME
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 $as_echo "PATH: $as_dir"
3077 done
3078 IFS=$as_save_IFS
3080 } >&5
3082 cat >&5 <<_ACEOF
3085 ## ----------- ##
3086 ## Core tests. ##
3087 ## ----------- ##
3089 _ACEOF
3092 # Keep a trace of the command line.
3093 # Strip out --no-create and --no-recursion so they do not pile up.
3094 # Strip out --silent because we don't want to record it for future runs.
3095 # Also quote any args containing shell meta-characters.
3096 # Make two passes to allow for proper duplicate-argument suppression.
3097 ac_configure_args=
3098 ac_configure_args0=
3099 ac_configure_args1=
3100 ac_must_keep_next=false
3101 for ac_pass in 1 2
3103 for ac_arg
3105 case $ac_arg in
3106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3108 | -silent | --silent | --silen | --sile | --sil)
3109 continue ;;
3110 *\'*)
3111 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3112 esac
3113 case $ac_pass in
3114 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3116 as_fn_append ac_configure_args1 " '$ac_arg'"
3117 if test $ac_must_keep_next = true; then
3118 ac_must_keep_next=false # Got value, back to normal.
3119 else
3120 case $ac_arg in
3121 *=* | --config-cache | -C | -disable-* | --disable-* \
3122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3124 | -with-* | --with-* | -without-* | --without-* | --x)
3125 case "$ac_configure_args0 " in
3126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3127 esac
3129 -* ) ac_must_keep_next=true ;;
3130 esac
3132 as_fn_append ac_configure_args " '$ac_arg'"
3134 esac
3135 done
3136 done
3137 { ac_configure_args0=; unset ac_configure_args0;}
3138 { ac_configure_args1=; unset ac_configure_args1;}
3140 # When interrupted or exit'd, cleanup temporary files, and complete
3141 # config.log. We remove comments because anyway the quotes in there
3142 # would cause problems or look ugly.
3143 # WARNING: Use '\'' to represent an apostrophe within the trap.
3144 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3145 trap 'exit_status=$?
3146 # Save into config.log some information that might help in debugging.
3148 echo
3150 cat <<\_ASBOX
3151 ## ---------------- ##
3152 ## Cache variables. ##
3153 ## ---------------- ##
3154 _ASBOX
3155 echo
3156 # The following way of writing the cache mishandles newlines in values,
3158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3159 eval ac_val=\$$ac_var
3160 case $ac_val in #(
3161 *${as_nl}*)
3162 case $ac_var in #(
3163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3165 esac
3166 case $ac_var in #(
3167 _ | IFS | as_nl) ;; #(
3168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3169 *) { eval $ac_var=; unset $ac_var;} ;;
3170 esac ;;
3171 esac
3172 done
3173 (set) 2>&1 |
3174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3175 *${as_nl}ac_space=\ *)
3176 sed -n \
3177 "s/'\''/'\''\\\\'\'''\''/g;
3178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3179 ;; #(
3181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3183 esac |
3184 sort
3186 echo
3188 cat <<\_ASBOX
3189 ## ----------------- ##
3190 ## Output variables. ##
3191 ## ----------------- ##
3192 _ASBOX
3193 echo
3194 for ac_var in $ac_subst_vars
3196 eval ac_val=\$$ac_var
3197 case $ac_val in
3198 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3199 esac
3200 $as_echo "$ac_var='\''$ac_val'\''"
3201 done | sort
3202 echo
3204 if test -n "$ac_subst_files"; then
3205 cat <<\_ASBOX
3206 ## ------------------- ##
3207 ## File substitutions. ##
3208 ## ------------------- ##
3209 _ASBOX
3210 echo
3211 for ac_var in $ac_subst_files
3213 eval ac_val=\$$ac_var
3214 case $ac_val in
3215 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3216 esac
3217 $as_echo "$ac_var='\''$ac_val'\''"
3218 done | sort
3219 echo
3222 if test -s confdefs.h; then
3223 cat <<\_ASBOX
3224 ## ----------- ##
3225 ## confdefs.h. ##
3226 ## ----------- ##
3227 _ASBOX
3228 echo
3229 cat confdefs.h
3230 echo
3232 test "$ac_signal" != 0 &&
3233 $as_echo "$as_me: caught signal $ac_signal"
3234 $as_echo "$as_me: exit $exit_status"
3235 } >&5
3236 rm -f core *.core core.conftest.* &&
3237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3238 exit $exit_status
3240 for ac_signal in 1 2 13 15; do
3241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3242 done
3243 ac_signal=0
3245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3246 rm -f -r conftest* confdefs.h
3248 $as_echo "/* confdefs.h */" > confdefs.h
3250 # Predefined preprocessor variables.
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_NAME "$PACKAGE_NAME"
3254 _ACEOF
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3258 _ACEOF
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3262 _ACEOF
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE_STRING "$PACKAGE_STRING"
3266 _ACEOF
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3270 _ACEOF
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_URL "$PACKAGE_URL"
3274 _ACEOF
3277 # Let the site file select an alternate cache file if it wants to.
3278 # Prefer an explicitly selected file to automatically selected ones.
3279 ac_site_file1=NONE
3280 ac_site_file2=NONE
3281 if test -n "$CONFIG_SITE"; then
3282 ac_site_file1=$CONFIG_SITE
3283 elif test "x$prefix" != xNONE; then
3284 ac_site_file1=$prefix/share/config.site
3285 ac_site_file2=$prefix/etc/config.site
3286 else
3287 ac_site_file1=$ac_default_prefix/share/config.site
3288 ac_site_file2=$ac_default_prefix/etc/config.site
3290 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3292 test "x$ac_site_file" = xNONE && continue
3293 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3295 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3296 sed 's/^/| /' "$ac_site_file" >&5
3297 . "$ac_site_file"
3299 done
3301 if test -r "$cache_file"; then
3302 # Some versions of bash will fail to source /dev/null (special files
3303 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3304 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3306 $as_echo "$as_me: loading cache $cache_file" >&6;}
3307 case $cache_file in
3308 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3309 *) . "./$cache_file";;
3310 esac
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3314 $as_echo "$as_me: creating cache $cache_file" >&6;}
3315 >$cache_file
3318 as_fn_append ac_header_list " linux/version.h"
3319 as_fn_append ac_header_list " sys/systeminfo.h"
3320 as_fn_append ac_header_list " coff.h"
3321 as_fn_append ac_header_list " pty.h"
3322 as_fn_append ac_header_list " sys/resource.h"
3323 as_fn_append ac_header_list " sys/utsname.h"
3324 as_fn_append ac_header_list " pwd.h"
3325 as_fn_append ac_header_list " utmp.h"
3326 as_fn_append ac_header_list " util.h"
3327 as_fn_append ac_header_list " sys/socket.h"
3328 as_fn_append ac_header_list " stdlib.h"
3329 as_fn_append ac_header_list " unistd.h"
3330 as_fn_append ac_header_list " sys/param.h"
3331 as_fn_append ac_header_list " pthread.h"
3332 as_fn_append ac_header_list " malloc/malloc.h"
3333 as_fn_append ac_header_list " maillock.h"
3334 as_fn_append ac_header_list " sys/un.h"
3335 as_fn_append ac_func_list " tzset"
3336 as_fn_append ac_func_list " readlinkat"
3337 as_fn_append ac_header_list " dirent.h"
3338 as_fn_append ac_header_list " execinfo.h"
3339 as_fn_append ac_func_list " faccessat"
3340 as_fn_append ac_func_list " fdopendir"
3341 as_fn_append ac_header_list " stdio_ext.h"
3342 as_fn_append ac_func_list " __fpending"
3343 as_fn_append ac_func_list " fstatat"
3344 as_fn_append ac_func_list " fsync"
3345 gl_getopt_required=GNU
3346 as_fn_append ac_header_list " getopt.h"
3347 as_fn_append ac_func_list " gettimeofday"
3348 as_fn_append ac_func_list " nanotime"
3349 as_fn_append ac_header_list " sys/time.h"
3350 as_fn_append ac_header_list " wchar.h"
3351 as_fn_append ac_header_list " stdint.h"
3352 as_fn_append ac_header_list " inttypes.h"
3353 as_fn_append ac_func_list " lstat"
3354 as_fn_append ac_header_list " sys/select.h"
3355 as_fn_append ac_func_list " pselect"
3356 as_fn_append ac_func_list " pthread_sigmask"
3357 as_fn_append ac_func_list " readlink"
3358 as_fn_append ac_func_list " strtoimax"
3359 as_fn_append ac_func_list " strtoumax"
3360 as_fn_append ac_func_list " symlink"
3361 as_fn_append ac_header_list " sys/stat.h"
3362 as_fn_append ac_func_list " localtime_r"
3363 as_fn_append ac_header_list " utime.h"
3364 as_fn_append ac_func_list " futimes"
3365 as_fn_append ac_func_list " futimesat"
3366 as_fn_append ac_func_list " futimens"
3367 as_fn_append ac_func_list " utimensat"
3368 as_fn_append ac_func_list " lutimes"
3369 # Check that the precious variables saved in the cache have kept the same
3370 # value.
3371 ac_cache_corrupted=false
3372 for ac_var in $ac_precious_vars; do
3373 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3374 eval ac_new_set=\$ac_env_${ac_var}_set
3375 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3376 eval ac_new_val=\$ac_env_${ac_var}_value
3377 case $ac_old_set,$ac_new_set in
3378 set,)
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3380 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3381 ac_cache_corrupted=: ;;
3382 ,set)
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3384 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3385 ac_cache_corrupted=: ;;
3386 ,);;
3388 if test "x$ac_old_val" != "x$ac_new_val"; then
3389 # differences in whitespace do not lead to failure.
3390 ac_old_val_w=`echo x $ac_old_val`
3391 ac_new_val_w=`echo x $ac_new_val`
3392 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3394 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3395 ac_cache_corrupted=:
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3398 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3399 eval $ac_var=\$ac_old_val
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3402 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3404 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3405 fi;;
3406 esac
3407 # Pass precious variables to config.status.
3408 if test "$ac_new_set" = set; then
3409 case $ac_new_val in
3410 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3411 *) ac_arg=$ac_var=$ac_new_val ;;
3412 esac
3413 case " $ac_configure_args " in
3414 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3415 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3416 esac
3418 done
3419 if $ac_cache_corrupted; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3423 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3424 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3426 ## -------------------- ##
3427 ## Main body of script. ##
3428 ## -------------------- ##
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 emacs_config_options="$@"
3439 ## Add some environment variables, if they were passed via the environment
3440 ## rather than on the command-line.
3441 for var in CFLAGS CPPFLAGS LDFLAGS; do
3442 case "$emacs_config_options" in
3443 *$var=*) continue ;;
3444 esac
3445 eval val="\$${var}"
3446 test x"$val" = x && continue
3447 emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=\"$val\""
3448 done
3450 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3453 ac_aux_dir=
3454 for ac_dir in build-aux "$srcdir"/build-aux; do
3455 for ac_t in install-sh install.sh shtool; do
3456 if test -f "$ac_dir/$ac_t"; then
3457 ac_aux_dir=$ac_dir
3458 ac_install_sh="$ac_aux_dir/$ac_t -c"
3459 break 2
3461 done
3462 done
3463 if test -z "$ac_aux_dir"; then
3464 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3467 # These three variables are undocumented and unsupported,
3468 # and are intended to be withdrawn in a future Autoconf release.
3469 # They can cause serious problems if a builder's source tree is in a directory
3470 # whose full name contains unusual characters.
3471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3476 am__api_version='1.11'
3478 # Find a good install program. We prefer a C program (faster),
3479 # so one script is as good as another. But avoid the broken or
3480 # incompatible versions:
3481 # SysV /etc/install, /usr/sbin/install
3482 # SunOS /usr/etc/install
3483 # IRIX /sbin/install
3484 # AIX /bin/install
3485 # AmigaOS /C/install, which installs bootblocks on floppy discs
3486 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3487 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3488 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3489 # OS/2's system install, which has a completely different semantic
3490 # ./install, which can be erroneously created by make from ./install.sh.
3491 # Reject install programs that cannot install multiple files.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3493 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3494 if test -z "$INSTALL"; then
3495 if test "${ac_cv_path_install+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 # Account for people who put trailing slashes in PATH elements.
3504 case $as_dir/ in #((
3505 ./ | .// | /[cC]/* | \
3506 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3507 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3508 /usr/ucb/* ) ;;
3510 # OSF1 and SCO ODT 3.0 have their own names for install.
3511 # Don't use installbsd from OSF since it installs stuff as root
3512 # by default.
3513 for ac_prog in ginstall scoinst install; do
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3516 if test $ac_prog = install &&
3517 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3518 # AIX install. It has an incompatible calling convention.
3520 elif test $ac_prog = install &&
3521 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3522 # program-specific install script used by HP pwplus--don't use.
3524 else
3525 rm -rf conftest.one conftest.two conftest.dir
3526 echo one > conftest.one
3527 echo two > conftest.two
3528 mkdir conftest.dir
3529 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3530 test -s conftest.one && test -s conftest.two &&
3531 test -s conftest.dir/conftest.one &&
3532 test -s conftest.dir/conftest.two
3533 then
3534 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3535 break 3
3539 done
3540 done
3542 esac
3544 done
3545 IFS=$as_save_IFS
3547 rm -rf conftest.one conftest.two conftest.dir
3550 if test "${ac_cv_path_install+set}" = set; then
3551 INSTALL=$ac_cv_path_install
3552 else
3553 # As a last resort, use the slow shell script. Don't cache a
3554 # value for INSTALL within a source directory, because that will
3555 # break other packages using the cache if that directory is
3556 # removed, or if the value is a relative name.
3557 INSTALL=$ac_install_sh
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3561 $as_echo "$INSTALL" >&6; }
3563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3564 # It thinks the first close brace ends the variable substitution.
3565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3572 $as_echo_n "checking whether build environment is sane... " >&6; }
3573 # Just in case
3574 sleep 1
3575 echo timestamp > conftest.file
3576 # Reject unsafe characters in $srcdir or the absolute working directory
3577 # name. Accept space and tab only in the latter.
3578 am_lf='
3580 case `pwd` in
3581 *[\\\"\#\$\&\'\`$am_lf]*)
3582 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3583 esac
3584 case $srcdir in
3585 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3586 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3587 esac
3589 # Do `set' in a subshell so we don't clobber the current shell's
3590 # arguments. Must try -L first in case configure is actually a
3591 # symlink; some systems play weird games with the mod time of symlinks
3592 # (eg FreeBSD returns the mod time of the symlink's containing
3593 # directory).
3594 if (
3595 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3596 if test "$*" = "X"; then
3597 # -L didn't work.
3598 set X `ls -t "$srcdir/configure" conftest.file`
3600 rm -f conftest.file
3601 if test "$*" != "X $srcdir/configure conftest.file" \
3602 && test "$*" != "X conftest.file $srcdir/configure"; then
3604 # If neither matched, then we have a broken ls. This can happen
3605 # if, for instance, CONFIG_SHELL is bash and it inherits a
3606 # broken ls alias from the environment. This has actually
3607 # happened. Such a system could not be considered "sane".
3608 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3609 alias in your environment" "$LINENO" 5
3612 test "$2" = conftest.file
3614 then
3615 # Ok.
3617 else
3618 as_fn_error "newly created file is older than distributed files!
3619 Check your system clock" "$LINENO" 5
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3622 $as_echo "yes" >&6; }
3623 test "$program_prefix" != NONE &&
3624 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3625 # Use a double $ so make ignores it.
3626 test "$program_suffix" != NONE &&
3627 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3628 # Double any \ or $.
3629 # By default was `s,x,x', remove it if useless.
3630 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3631 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3633 # expand $ac_aux_dir to an absolute path
3634 am_aux_dir=`cd $ac_aux_dir && pwd`
3636 if test x"${MISSING+set}" != xset; then
3637 case $am_aux_dir in
3638 *\ * | *\ *)
3639 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3641 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3642 esac
3644 # Use eval to expand $SHELL
3645 if eval "$MISSING --run true"; then
3646 am_missing_run="$MISSING --run "
3647 else
3648 am_missing_run=
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3650 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3653 if test x"${install_sh}" != xset; then
3654 case $am_aux_dir in
3655 *\ * | *\ *)
3656 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3658 install_sh="\${SHELL} $am_aux_dir/install-sh"
3659 esac
3662 # Installed binaries are usually stripped using `strip' when the user
3663 # run `make install-strip'. However `strip' might not be the right
3664 # tool to use in cross-compilation environments, therefore Automake
3665 # will honor the `STRIP' environment variable to overrule this program.
3666 if test "$cross_compiling" != no; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}strip; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_STRIP+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$STRIP"; then
3676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3689 done
3690 done
3691 IFS=$as_save_IFS
3695 STRIP=$ac_cv_prog_STRIP
3696 if test -n "$STRIP"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3698 $as_echo "$STRIP" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$ac_cv_prog_STRIP"; then
3707 ac_ct_STRIP=$STRIP
3708 # Extract the first word of "strip", so it can be a program name with args.
3709 set dummy strip; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if test -n "$ac_ct_STRIP"; then
3716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_ac_ct_STRIP="strip"
3726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 break 2
3729 done
3730 done
3731 IFS=$as_save_IFS
3735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3736 if test -n "$ac_ct_STRIP"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3738 $as_echo "$ac_ct_STRIP" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3744 if test "x$ac_ct_STRIP" = x; then
3745 STRIP=":"
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 STRIP=$ac_ct_STRIP
3755 else
3756 STRIP="$ac_cv_prog_STRIP"
3760 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3763 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3764 if test -z "$MKDIR_P"; then
3765 if test "${ac_cv_path_mkdir+set}" = set; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_prog in mkdir gmkdir; do
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3776 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3777 'mkdir (GNU coreutils) '* | \
3778 'mkdir (coreutils) '* | \
3779 'mkdir (fileutils) '4.1*)
3780 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3781 break 3;;
3782 esac
3783 done
3784 done
3785 done
3786 IFS=$as_save_IFS
3790 test -d ./--version && rmdir ./--version
3791 if test "${ac_cv_path_mkdir+set}" = set; then
3792 MKDIR_P="$ac_cv_path_mkdir -p"
3793 else
3794 # As a last resort, use the slow shell script. Don't cache a
3795 # value for MKDIR_P within a source directory, because that will
3796 # break other packages using the cache if that directory is
3797 # removed, or if the value is a relative name.
3798 MKDIR_P="$ac_install_sh -d"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3802 $as_echo "$MKDIR_P" >&6; }
3804 mkdir_p="$MKDIR_P"
3805 case $mkdir_p in
3806 [\\/$]* | ?:[\\/]*) ;;
3807 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3808 esac
3810 for ac_prog in gawk mawk nawk awk
3812 # Extract the first word of "$ac_prog", so it can be a program name with args.
3813 set dummy $ac_prog; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_AWK+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -n "$AWK"; then
3820 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_AWK="$ac_prog"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3833 done
3834 done
3835 IFS=$as_save_IFS
3839 AWK=$ac_cv_prog_AWK
3840 if test -n "$AWK"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3842 $as_echo "$AWK" >&6; }
3843 else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3849 test -n "$AWK" && break
3850 done
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3853 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3854 set x ${MAKE-make}
3855 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3856 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 cat >conftest.make <<\_ACEOF
3860 SHELL = /bin/sh
3861 all:
3862 @echo '@@@%%%=$(MAKE)=@@@%%%'
3863 _ACEOF
3864 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3865 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3866 *@@@%%%=?*=@@@%%%*)
3867 eval ac_cv_prog_make_${ac_make}_set=yes;;
3869 eval ac_cv_prog_make_${ac_make}_set=no;;
3870 esac
3871 rm -f conftest.make
3873 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875 $as_echo "yes" >&6; }
3876 SET_MAKE=
3877 else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 SET_MAKE="MAKE=${MAKE-make}"
3883 rm -rf .tst 2>/dev/null
3884 mkdir .tst 2>/dev/null
3885 if test -d .tst; then
3886 am__leading_dot=.
3887 else
3888 am__leading_dot=_
3890 rmdir .tst 2>/dev/null
3892 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3893 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3894 # is not polluted with repeated "-I."
3895 am__isrc=' -I$(srcdir)'
3896 # test to see if srcdir already configured
3897 if test -f $srcdir/config.status; then
3898 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3902 # test whether we have cygpath
3903 if test -z "$CYGPATH_W"; then
3904 if (cygpath --version) >/dev/null 2>/dev/null; then
3905 CYGPATH_W='cygpath -w'
3906 else
3907 CYGPATH_W=echo
3912 # Define the identity of the package.
3913 PACKAGE='emacs'
3914 VERSION='24.3.50'
3917 cat >>confdefs.h <<_ACEOF
3918 #define PACKAGE "$PACKAGE"
3919 _ACEOF
3922 cat >>confdefs.h <<_ACEOF
3923 #define VERSION "$VERSION"
3924 _ACEOF
3926 # Some tools Automake needs.
3928 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3931 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3934 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3937 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3940 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3942 # We need awk for the "check" target. The system "awk" is bad on
3943 # some platforms.
3944 # Always define AMTAR for backward compatibility.
3946 AMTAR=${AMTAR-"${am_missing_run}tar"}
3948 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3957 lispdir='${datadir}/emacs/${version}/lisp'
3958 leimdir='${datadir}/emacs/${version}/leim'
3959 standardlisppath='${lispdir}:${leimdir}'
3960 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3961 '${datadir}/emacs/site-lisp'
3962 lisppath='${locallisppath}:${standardlisppath}'
3963 etcdir='${datadir}/emacs/${version}/etc'
3964 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3965 docdir='${datadir}/emacs/${version}/etc'
3966 gamedir='${localstatedir}/games/emacs'
3969 # Check whether --with-all was given.
3970 if test "${with_all+set}" = set; then :
3971 withval=$with_all; with_features=$withval
3972 else
3973 with_features=yes
3980 # Check whether --with-pop was given.
3981 if test "${with_pop+set}" = set; then :
3982 withval=$with_pop;
3983 else
3984 with_pop=$with_features
3987 if test "$with_pop" = yes; then
3988 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3993 # Check whether --with-kerberos was given.
3994 if test "${with_kerberos+set}" = set; then :
3995 withval=$with_kerberos;
3996 else
3997 with_kerberos=no
4000 if test "$with_kerberos" != no; then
4001 $as_echo "#define KERBEROS 1" >>confdefs.h
4006 # Check whether --with-kerberos5 was given.
4007 if test "${with_kerberos5+set}" = set; then :
4008 withval=$with_kerberos5;
4009 else
4010 with_kerberos5=no
4013 if test "${with_kerberos5}" != no; then
4014 if test "${with_kerberos}" = no; then
4015 with_kerberos=yes
4016 $as_echo "#define KERBEROS 1" >>confdefs.h
4020 $as_echo "#define KERBEROS5 1" >>confdefs.h
4025 # Check whether --with-hesiod was given.
4026 if test "${with_hesiod+set}" = set; then :
4027 withval=$with_hesiod;
4028 else
4029 with_hesiod=no
4032 if test "$with_hesiod" != no; then
4034 $as_echo "#define HESIOD 1" >>confdefs.h
4039 # Check whether --with-mmdf was given.
4040 if test "${with_mmdf+set}" = set; then :
4041 withval=$with_mmdf;
4042 else
4043 with_mmdf=no
4046 if test "$with_mmdf" != no; then
4048 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
4053 # Check whether --with-mail-unlink was given.
4054 if test "${with_mail_unlink+set}" = set; then :
4055 withval=$with_mail_unlink;
4056 else
4057 with_mail_unlink=no
4060 if test "$with_mail_unlink" != no; then
4062 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
4067 # Check whether --with-mailhost was given.
4068 if test "${with_mailhost+set}" = set; then :
4069 withval=$with_mailhost;
4070 cat >>confdefs.h <<_ACEOF
4071 #define MAILHOST "$withval"
4072 _ACEOF
4078 # Check whether --with-sound was given.
4079 if test "${with_sound+set}" = set; then :
4080 withval=$with_sound;
4081 else
4082 with_sound=$with_features
4087 # Check whether --with-x-toolkit was given.
4088 if test "${with_x_toolkit+set}" = set; then :
4089 withval=$with_x_toolkit; case "${withval}" in
4090 y | ye | yes ) val=gtk ;;
4091 n | no ) val=no ;;
4092 l | lu | luc | luci | lucid ) val=lucid ;;
4093 a | at | ath | athe | athen | athena ) val=athena ;;
4094 m | mo | mot | moti | motif ) val=motif ;;
4095 g | gt | gtk ) val=gtk ;;
4096 gtk2 ) val=gtk2 ;;
4097 gtk3 ) val=gtk3 ;;
4099 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
4100 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
4101 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
4102 \`athena' and \`lucid' are synonyms." "$LINENO" 5
4104 esac
4105 with_x_toolkit=$val
4111 # Check whether --with-wide-int was given.
4112 if test "${with_wide_int+set}" = set; then :
4113 withval=$with_wide_int;
4114 else
4115 with_wide_int=no
4118 if test "$with_wide_int" = yes; then
4120 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
4125 # Check whether --with-xpm was given.
4126 if test "${with_xpm+set}" = set; then :
4127 withval=$with_xpm;
4128 else
4129 with_xpm=$with_features
4133 # Check whether --with-jpeg was given.
4134 if test "${with_jpeg+set}" = set; then :
4135 withval=$with_jpeg;
4136 else
4137 with_jpeg=$with_features
4141 # Check whether --with-tiff was given.
4142 if test "${with_tiff+set}" = set; then :
4143 withval=$with_tiff;
4144 else
4145 with_tiff=$with_features
4149 # Check whether --with-gif was given.
4150 if test "${with_gif+set}" = set; then :
4151 withval=$with_gif;
4152 else
4153 with_gif=$with_features
4157 # Check whether --with-png was given.
4158 if test "${with_png+set}" = set; then :
4159 withval=$with_png;
4160 else
4161 with_png=$with_features
4165 # Check whether --with-rsvg was given.
4166 if test "${with_rsvg+set}" = set; then :
4167 withval=$with_rsvg;
4168 else
4169 with_rsvg=$with_features
4173 # Check whether --with-xml2 was given.
4174 if test "${with_xml2+set}" = set; then :
4175 withval=$with_xml2;
4176 else
4177 with_xml2=$with_features
4181 # Check whether --with-imagemagick was given.
4182 if test "${with_imagemagick+set}" = set; then :
4183 withval=$with_imagemagick;
4184 else
4185 with_imagemagick=$with_features
4190 # Check whether --with-xft was given.
4191 if test "${with_xft+set}" = set; then :
4192 withval=$with_xft;
4193 else
4194 with_xft=$with_features
4198 # Check whether --with-libotf was given.
4199 if test "${with_libotf+set}" = set; then :
4200 withval=$with_libotf;
4201 else
4202 with_libotf=$with_features
4206 # Check whether --with-m17n-flt was given.
4207 if test "${with_m17n_flt+set}" = set; then :
4208 withval=$with_m17n_flt;
4209 else
4210 with_m17n_flt=$with_features
4215 # Check whether --with-toolkit-scroll-bars was given.
4216 if test "${with_toolkit_scroll_bars+set}" = set; then :
4217 withval=$with_toolkit_scroll_bars;
4218 else
4219 with_toolkit_scroll_bars=$with_features
4223 # Check whether --with-xaw3d was given.
4224 if test "${with_xaw3d+set}" = set; then :
4225 withval=$with_xaw3d;
4226 else
4227 with_xaw3d=$with_features
4231 # Check whether --with-xim was given.
4232 if test "${with_xim+set}" = set; then :
4233 withval=$with_xim;
4234 else
4235 with_xim=$with_features
4239 # Check whether --with-ns was given.
4240 if test "${with_ns+set}" = set; then :
4241 withval=$with_ns;
4242 else
4243 with_ns=no
4247 # Check whether --with-w32 was given.
4248 if test "${with_w32+set}" = set; then :
4249 withval=$with_w32;
4250 else
4251 with_w32=no
4256 # Check whether --with-gpm was given.
4257 if test "${with_gpm+set}" = set; then :
4258 withval=$with_gpm;
4259 else
4260 with_gpm=$with_features
4264 # Check whether --with-dbus was given.
4265 if test "${with_dbus+set}" = set; then :
4266 withval=$with_dbus;
4267 else
4268 with_dbus=$with_features
4272 # Check whether --with-gconf was given.
4273 if test "${with_gconf+set}" = set; then :
4274 withval=$with_gconf;
4275 else
4276 with_gconf=$with_features
4280 # Check whether --with-gsettings was given.
4281 if test "${with_gsettings+set}" = set; then :
4282 withval=$with_gsettings;
4283 else
4284 with_gsettings=$with_features
4288 # Check whether --with-selinux was given.
4289 if test "${with_selinux+set}" = set; then :
4290 withval=$with_selinux;
4291 else
4292 with_selinux=$with_features
4296 # Check whether --with-acl was given.
4297 if test "${with_acl+set}" = set; then :
4298 withval=$with_acl;
4299 else
4300 with_acl=$with_features
4304 # Check whether --with-gnutls was given.
4305 if test "${with_gnutls+set}" = set; then :
4306 withval=$with_gnutls;
4307 else
4308 with_gnutls=$with_features
4312 # Check whether --with-inotify was given.
4313 if test "${with_inotify+set}" = set; then :
4314 withval=$with_inotify;
4315 else
4316 with_inotify=$with_features
4320 ## For the times when you want to build Emacs but don't have
4321 ## a suitable makeinfo, and can live without the manuals.
4323 # Check whether --with-makeinfo was given.
4324 if test "${with_makeinfo+set}" = set; then :
4325 withval=$with_makeinfo;
4326 else
4327 with_makeinfo=$with_features
4331 ## Makefile.in needs the cache file name.
4334 ## This is an option because I do not know if all info/man support
4335 ## compressed files, nor how to test if they do so.
4337 # Check whether --with-compress-info was given.
4338 if test "${with_compress_info+set}" = set; then :
4339 withval=$with_compress_info;
4340 else
4341 with_compress_info=$with_features
4344 if test $with_compress_info = yes; then
4345 GZIP_INFO=yes
4346 else
4347 GZIP_INFO=
4352 # Check whether --with-pkg-config-prog was given.
4353 if test "${with_pkg_config_prog+set}" = set; then :
4354 withval=$with_pkg_config_prog;
4357 if test "X${with_pkg_config_prog}" != X; then
4358 if test "${with_pkg_config_prog}" != yes; then
4359 PKG_CONFIG="${with_pkg_config_prog}"
4364 # Check whether --with-gameuser was given.
4365 if test "${with_gameuser+set}" = set; then :
4366 withval=$with_gameuser;
4369 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4370 && gameuser="${with_gameuser}"
4371 test "X$gameuser" = X && gameuser=games
4374 # Check whether --with-gnustep-conf was given.
4375 if test "${with_gnustep_conf+set}" = set; then :
4376 withval=$with_gnustep_conf;
4379 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4380 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4381 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4382 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4384 # Check whether --enable-ns-self-contained was given.
4385 if test "${enable_ns_self_contained+set}" = set; then :
4386 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4387 else
4388 EN_NS_SELF_CONTAINED=yes
4392 # Check whether --enable-locallisppath was given.
4393 if test "${enable_locallisppath+set}" = set; then :
4394 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4395 locallisppath=
4396 elif test "${enableval}" != "yes"; then
4397 locallisppath=${enableval}
4402 # Check whether --enable-checking was given.
4403 if test "${enable_checking+set}" = set; then :
4404 enableval=$enable_checking; ac_checking_flags="${enableval}"
4407 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4408 for check in $ac_checking_flags
4410 case $check in
4411 # these set all the flags to specific states
4412 yes) ac_enable_checking=1 ;;
4413 no) ac_enable_checking= ;
4414 ac_gc_check_stringbytes= ;
4415 ac_gc_check_string_overrun= ;
4416 ac_gc_check_string_free_list= ;
4417 ac_xmalloc_overrun= ;
4418 ac_gc_check_cons_list= ;
4419 ac_glyphs_debug= ;;
4420 all) ac_enable_checking=1 ;
4421 ac_gc_check_stringbytes=1 ;
4422 ac_gc_check_string_overrun=1 ;
4423 ac_gc_check_string_free_list=1 ;
4424 ac_xmalloc_overrun=1 ;
4425 ac_gc_check_cons_list=1 ;
4426 ac_glyphs_debug=1 ;;
4427 # these enable particular checks
4428 stringbytes) ac_gc_check_stringbytes=1 ;;
4429 stringoverrun) ac_gc_check_string_overrun=1 ;;
4430 stringfreelist) ac_gc_check_string_free_list=1 ;;
4431 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4432 conslist) ac_gc_check_cons_list=1 ;;
4433 glyphs) ac_glyphs_debug=1 ;;
4434 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4435 esac
4436 done
4437 IFS="$ac_save_IFS"
4439 if test x$ac_enable_checking != x ; then
4441 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4444 if test x$ac_gc_check_stringbytes != x ; then
4446 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4449 if test x$ac_gc_check_string_overrun != x ; then
4451 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4454 if test x$ac_gc_check_string_free_list != x ; then
4456 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4459 if test x$ac_xmalloc_overrun != x ; then
4461 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4464 if test x$ac_gc_check_cons_list != x ; then
4466 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4469 if test x$ac_glyphs_debug != x ; then
4471 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4475 # Check whether --enable-check-lisp-object-type was given.
4476 if test "${enable_check_lisp_object_type+set}" = set; then :
4477 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4479 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4486 # Check whether --enable-profiling was given.
4487 if test "${enable_profiling+set}" = set; then :
4488 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4491 if test x$ac_enable_profiling != x ; then
4492 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4493 else
4494 PROFILING_CFLAGS=
4498 # Check whether --enable-autodepend was given.
4499 if test "${enable_autodepend+set}" = set; then :
4500 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4501 else
4502 ac_enable_autodepend=yes
4506 # Check whether --enable-gtk-deprecation-warnings was given.
4507 if test "${enable_gtk_deprecation_warnings+set}" = set; then :
4508 enableval=$enable_gtk_deprecation_warnings; ac_enable_gtk_deprecation_warnings="${enableval}"
4512 #### Make srcdir absolute, if it isn't already. It's important to
4513 #### avoid running the file name through pwd unnecessarily, since pwd can
4514 #### give you automounter prefixes, which can go away. We do all this
4515 #### so Emacs can find its files when run uninstalled.
4516 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4517 unset CDPATH
4518 case "${srcdir}" in
4519 /* ) ;;
4521 ## We may be able to use the $PWD environment variable to make this
4522 ## absolute. But sometimes PWD is inaccurate.
4523 ## Note: we used to use $PWD at the end instead of `pwd`,
4524 ## but that tested only for a well-formed and valid PWD,
4525 ## it did not object when PWD was well-formed and valid but just wrong.
4526 if test ".$PWD" != "." && test ".`(cd "$PWD" ; sh -c pwd)`" = ".`pwd`" ;
4527 then
4528 srcdir="$PWD"
4529 else
4530 srcdir=`(cd "$srcdir"; pwd)`
4533 * ) srcdir=`(cd "$srcdir"; pwd)` ;;
4534 esac
4536 ### Canonicalize the configuration name.
4538 # Make sure we can run config.sub.
4539 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4540 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4543 $as_echo_n "checking build system type... " >&6; }
4544 if test "${ac_cv_build+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 ac_build_alias=$build_alias
4548 test "x$ac_build_alias" = x &&
4549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4550 test "x$ac_build_alias" = x &&
4551 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4552 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4553 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4557 $as_echo "$ac_cv_build" >&6; }
4558 case $ac_cv_build in
4559 *-*-*) ;;
4560 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4561 esac
4562 build=$ac_cv_build
4563 ac_save_IFS=$IFS; IFS='-'
4564 set x $ac_cv_build
4565 shift
4566 build_cpu=$1
4567 build_vendor=$2
4568 shift; shift
4569 # Remember, the first character of IFS is used to create $*,
4570 # except with old shells:
4571 build_os=$*
4572 IFS=$ac_save_IFS
4573 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4577 $as_echo_n "checking host system type... " >&6; }
4578 if test "${ac_cv_host+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test "x$host_alias" = x; then
4582 ac_cv_host=$ac_cv_build
4583 else
4584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4585 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4590 $as_echo "$ac_cv_host" >&6; }
4591 case $ac_cv_host in
4592 *-*-*) ;;
4593 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4594 esac
4595 host=$ac_cv_host
4596 ac_save_IFS=$IFS; IFS='-'
4597 set x $ac_cv_host
4598 shift
4599 host_cpu=$1
4600 host_vendor=$2
4601 shift; shift
4602 # Remember, the first character of IFS is used to create $*,
4603 # except with old shells:
4604 host_os=$*
4605 IFS=$ac_save_IFS
4606 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4609 canonical=$host
4610 configuration=${host_alias-${build_alias-$host}}
4614 ### If you add support for a new configuration, add code to this
4615 ### switch statement to recognize your configuration name and select
4616 ### the appropriate operating system file.
4618 ### You would hope that you could choose an s/*.h
4619 ### file based on the operating system portion. However, it turns out
4620 ### that each s/*.h file is pretty manufacturer-specific.
4621 ### So we basically have to have a special case for each
4622 ### configuration name.
4624 ### As far as handling version numbers on operating systems is
4625 ### concerned, make sure things will fail in a fixable way. If
4626 ### /etc/MACHINES doesn't say anything about version numbers, be
4627 ### prepared to handle anything reasonably. If version numbers
4628 ### matter, be sure /etc/MACHINES says something about it.
4630 opsys='' unported=no
4631 case "${canonical}" in
4633 ## GNU/Linux and similar ports
4634 *-*-linux* )
4635 opsys=gnu-linux
4638 ## FreeBSD ports
4639 *-*-freebsd* )
4640 opsys=freebsd
4643 ## DragonFly ports
4644 *-*-dragonfly* )
4645 opsys=dragonfly
4648 ## FreeBSD kernel + glibc based userland
4649 *-*-kfreebsd*gnu* )
4650 opsys=gnu-kfreebsd
4653 ## NetBSD ports
4654 *-*-netbsd* )
4655 opsys=netbsd
4658 ## OpenBSD ports
4659 *-*-openbsd* )
4660 opsys=openbsd
4663 ## Apple Darwin / Mac OS X
4664 *-apple-darwin* )
4665 case "${canonical}" in
4666 i[3456]86-* ) ;;
4667 powerpc-* ) ;;
4668 x86_64-* ) ;;
4669 * ) unported=yes ;;
4670 esac
4671 opsys=darwin
4672 ## Use fink packages if available.
4673 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4674 ## if test -d /sw/include && test -d /sw/lib; then
4675 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4676 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4677 ## fi
4680 ## Cygwin ports
4681 *-*-cygwin )
4682 opsys=cygwin
4685 ## HP 9000 series 700 and 800, running HP/UX
4686 hppa*-hp-hpux10.2* )
4687 opsys=hpux10-20
4689 hppa*-hp-hpux1[1-9]* )
4690 opsys=hpux11
4691 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4694 ## IBM machines
4695 rs6000-ibm-aix4.[23]* )
4696 opsys=aix4-2
4698 powerpc-ibm-aix4.[23]* )
4699 opsys=aix4-2
4701 rs6000-ibm-aix[56]* )
4702 opsys=aix4-2
4704 powerpc-ibm-aix[56]* )
4705 opsys=aix4-2
4708 ## Silicon Graphics machines
4709 ## Iris 4D
4710 mips-sgi-irix6.5 )
4711 opsys=irix6-5
4712 # Without defining _LANGUAGE_C, things get masked out in the headers
4713 # so that, for instance, grepping for `free' in stdlib.h fails and
4714 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4715 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4718 ## Suns
4719 *-sun-solaris* \
4720 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4721 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4722 case "${canonical}" in
4723 i[3456]86-*-* ) ;;
4724 amd64-*-*|x86_64-*-*) ;;
4725 sparc* ) ;;
4726 * ) unported=yes ;;
4727 esac
4728 case "${canonical}" in
4729 *-sunos5.6* | *-solaris2.6* )
4730 opsys=sol2-6
4731 RANLIB="ar -ts"
4733 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4734 opsys=sol2-6
4735 emacs_check_sunpro_c=yes
4737 *-sunos5* | *-solaris* )
4738 opsys=sol2-10
4739 emacs_check_sunpro_c=yes
4741 esac
4742 ## Watch out for a compiler that we know will not work.
4743 case "${canonical}" in
4744 *-solaris* | *-sunos5* )
4745 if [ "x$CC" = x/usr/ucb/cc ]; then
4746 ## /usr/ucb/cc doesn't work;
4747 ## we should find some other compiler that does work.
4748 unset CC
4751 *) ;;
4752 esac
4755 ## Intel 386 machines where we don't care about the manufacturer.
4756 i[3456]86-*-* )
4757 case "${canonical}" in
4758 *-darwin* ) opsys=darwin ;;
4759 *-sysv4.2uw* ) opsys=unixware ;;
4760 *-sysv5uw* ) opsys=unixware ;;
4761 *-sysv5OpenUNIX* ) opsys=unixware ;;
4762 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4763 esac
4767 unported=yes
4769 esac
4771 ### If the code above didn't choose an operating system, just choose
4772 ### an operating system based on the configuration name. You really
4773 ### only want to use this when you have no idea what the right
4774 ### operating system is; if you know what operating systems a machine
4775 ### runs, it's cleaner to make it explicit in the case statement
4776 ### above.
4777 if test x"${opsys}" = x; then
4778 case "${canonical}" in
4779 *-gnu* ) opsys=gnu ;;
4781 unported=yes
4783 esac
4788 if test $unported = yes; then
4789 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4790 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4794 #### Choose a compiler.
4796 ac_ext=c
4797 ac_cpp='$CPP $CPPFLAGS'
4798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if test "${ac_cv_prog_CC+set}" = set; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if test -n "$CC"; then
4810 ac_cv_prog_CC="$CC" # Let the user override the test.
4811 else
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4821 break 2
4823 done
4824 done
4825 IFS=$as_save_IFS
4829 CC=$ac_cv_prog_CC
4830 if test -n "$CC"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4832 $as_echo "$CC" >&6; }
4833 else
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4840 if test -z "$ac_cv_prog_CC"; then
4841 ac_ct_CC=$CC
4842 # Extract the first word of "gcc", so it can be a program name with args.
4843 set dummy gcc; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 if test -n "$ac_ct_CC"; then
4850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4855 IFS=$as_save_IFS
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_ac_ct_CC="gcc"
4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 break 2
4863 done
4864 done
4865 IFS=$as_save_IFS
4869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4870 if test -n "$ac_ct_CC"; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4872 $as_echo "$ac_ct_CC" >&6; }
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4878 if test "x$ac_ct_CC" = x; then
4879 CC=""
4880 else
4881 case $cross_compiling:$ac_tool_warned in
4882 yes:)
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4885 ac_tool_warned=yes ;;
4886 esac
4887 CC=$ac_ct_CC
4889 else
4890 CC="$ac_cv_prog_CC"
4893 if test -z "$CC"; then
4894 if test -n "$ac_tool_prefix"; then
4895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4896 set dummy ${ac_tool_prefix}cc; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_CC+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$CC"; then
4903 ac_cv_prog_CC="$CC" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_CC="${ac_tool_prefix}cc"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 CC=$ac_cv_prog_CC
4923 if test -n "$CC"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4925 $as_echo "$CC" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4934 if test -z "$CC"; then
4935 # Extract the first word of "cc", so it can be a program name with args.
4936 set dummy cc; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if test "${ac_cv_prog_CC+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$CC"; then
4943 ac_cv_prog_CC="$CC" # Let the user override the test.
4944 else
4945 ac_prog_rejected=no
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4954 ac_prog_rejected=yes
4955 continue
4957 ac_cv_prog_CC="cc"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4965 if test $ac_prog_rejected = yes; then
4966 # We found a bogon in the path, so make sure we never use it.
4967 set dummy $ac_cv_prog_CC
4968 shift
4969 if test $# != 0; then
4970 # We chose a different compiler from the bogus one.
4971 # However, it has the same basename, so the bogon will be chosen
4972 # first if we set CC to just the basename; use the full file name.
4973 shift
4974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4979 CC=$ac_cv_prog_CC
4980 if test -n "$CC"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4982 $as_echo "$CC" >&6; }
4983 else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4990 if test -z "$CC"; then
4991 if test -n "$ac_tool_prefix"; then
4992 for ac_prog in cl.exe
4994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_prog_CC+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$CC"; then
5002 ac_cv_prog_CC="$CC" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5015 done
5016 done
5017 IFS=$as_save_IFS
5021 CC=$ac_cv_prog_CC
5022 if test -n "$CC"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5024 $as_echo "$CC" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5031 test -n "$CC" && break
5032 done
5034 if test -z "$CC"; then
5035 ac_ct_CC=$CC
5036 for ac_prog in cl.exe
5038 # Extract the first word of "$ac_prog", so it can be a program name with args.
5039 set dummy $ac_prog; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$ac_ct_CC"; then
5046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_CC="$ac_prog"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5066 if test -n "$ac_ct_CC"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5068 $as_echo "$ac_ct_CC" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5075 test -n "$ac_ct_CC" && break
5076 done
5078 if test "x$ac_ct_CC" = x; then
5079 CC=""
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082 yes:)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 CC=$ac_ct_CC
5094 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 as_fn_error "no acceptable C compiler found in \$PATH
5097 See \`config.log' for more details." "$LINENO" 5; }
5099 # Provide some information about the compiler.
5100 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5101 set X $ac_compile
5102 ac_compiler=$2
5103 for ac_option in --version -v -V -qversion; do
5104 { { ac_try="$ac_compiler $ac_option >&5"
5105 case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5110 $as_echo "$ac_try_echo"; } >&5
5111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5112 ac_status=$?
5113 if test -s conftest.err; then
5114 sed '10a\
5115 ... rest of stderr output deleted ...
5116 10q' conftest.err >conftest.er1
5117 cat conftest.er1 >&5
5119 rm -f conftest.er1 conftest.err
5120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }
5122 done
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5128 main ()
5132 return 0;
5134 _ACEOF
5135 ac_clean_files_save=$ac_clean_files
5136 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5137 # Try to create an executable without -o first, disregard a.out.
5138 # It will help us diagnose broken compilers, and finding out an intuition
5139 # of exeext.
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5141 $as_echo_n "checking whether the C compiler works... " >&6; }
5142 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5144 # The possible output files:
5145 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5147 ac_rmfiles=
5148 for ac_file in $ac_files
5150 case $ac_file in
5151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5152 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5153 esac
5154 done
5155 rm -f $ac_rmfiles
5157 if { { ac_try="$ac_link_default"
5158 case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161 esac
5162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5163 $as_echo "$ac_try_echo"; } >&5
5164 (eval "$ac_link_default") 2>&5
5165 ac_status=$?
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }; then :
5168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5170 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5171 # so that the user can short-circuit this test for compilers unknown to
5172 # Autoconf.
5173 for ac_file in $ac_files ''
5175 test -f "$ac_file" || continue
5176 case $ac_file in
5177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5179 [ab].out )
5180 # We found the default executable, but exeext='' is most
5181 # certainly right.
5182 break;;
5183 *.* )
5184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5185 then :; else
5186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5188 # We set ac_cv_exeext here because the later test for it is not
5189 # safe: cross compilers may not add the suffix if given an `-o'
5190 # argument, so we may need to know it at that point already.
5191 # Even if this section looks crufty: it has the advantage of
5192 # actually working.
5193 break;;
5195 break;;
5196 esac
5197 done
5198 test "$ac_cv_exeext" = no && ac_cv_exeext=
5200 else
5201 ac_file=''
5203 if test -z "$ac_file"; then :
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5206 $as_echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5211 { as_fn_set_status 77
5212 as_fn_error "C compiler cannot create executables
5213 See \`config.log' for more details." "$LINENO" 5; }; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216 $as_echo "yes" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5219 $as_echo_n "checking for C compiler default output file name... " >&6; }
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5221 $as_echo "$ac_file" >&6; }
5222 ac_exeext=$ac_cv_exeext
5224 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5225 ac_clean_files=$ac_clean_files_save
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5227 $as_echo_n "checking for suffix of executables... " >&6; }
5228 if { { ac_try="$ac_link"
5229 case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232 esac
5233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5234 $as_echo "$ac_try_echo"; } >&5
5235 (eval "$ac_link") 2>&5
5236 ac_status=$?
5237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5238 test $ac_status = 0; }; then :
5239 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5240 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5241 # work properly (i.e., refer to `conftest.exe'), while it won't with
5242 # `rm'.
5243 for ac_file in conftest.exe conftest conftest.*; do
5244 test -f "$ac_file" || continue
5245 case $ac_file in
5246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5247 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5248 break;;
5249 * ) break;;
5250 esac
5251 done
5252 else
5253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5255 as_fn_error "cannot compute suffix of executables: cannot compile and link
5256 See \`config.log' for more details." "$LINENO" 5; }
5258 rm -f conftest conftest$ac_cv_exeext
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5260 $as_echo "$ac_cv_exeext" >&6; }
5262 rm -f conftest.$ac_ext
5263 EXEEXT=$ac_cv_exeext
5264 ac_exeext=$EXEEXT
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 #include <stdio.h>
5269 main ()
5271 FILE *f = fopen ("conftest.out", "w");
5272 return ferror (f) || fclose (f) != 0;
5275 return 0;
5277 _ACEOF
5278 ac_clean_files="$ac_clean_files conftest.out"
5279 # Check that the compiler produces executables we can run. If not, either
5280 # the compiler is broken, or we cross compile.
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5282 $as_echo_n "checking whether we are cross compiling... " >&6; }
5283 if test "$cross_compiling" != yes; then
5284 { { ac_try="$ac_link"
5285 case "(($ac_try" in
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5288 esac
5289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5290 $as_echo "$ac_try_echo"; } >&5
5291 (eval "$ac_link") 2>&5
5292 ac_status=$?
5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }
5295 if { ac_try='./conftest$ac_cv_exeext'
5296 { { case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299 esac
5300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5301 $as_echo "$ac_try_echo"; } >&5
5302 (eval "$ac_try") 2>&5
5303 ac_status=$?
5304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5305 test $ac_status = 0; }; }; then
5306 cross_compiling=no
5307 else
5308 if test "$cross_compiling" = maybe; then
5309 cross_compiling=yes
5310 else
5311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 as_fn_error "cannot run C compiled programs.
5314 If you meant to cross compile, use \`--host'.
5315 See \`config.log' for more details." "$LINENO" 5; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5320 $as_echo "$cross_compiling" >&6; }
5322 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5323 ac_clean_files=$ac_clean_files_save
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5325 $as_echo_n "checking for suffix of object files... " >&6; }
5326 if test "${ac_cv_objext+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5333 main ()
5337 return 0;
5339 _ACEOF
5340 rm -f conftest.o conftest.obj
5341 if { { ac_try="$ac_compile"
5342 case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345 esac
5346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5347 $as_echo "$ac_try_echo"; } >&5
5348 (eval "$ac_compile") 2>&5
5349 ac_status=$?
5350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5351 test $ac_status = 0; }; then :
5352 for ac_file in conftest.o conftest.obj conftest.*; do
5353 test -f "$ac_file" || continue;
5354 case $ac_file in
5355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5356 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5357 break;;
5358 esac
5359 done
5360 else
5361 $as_echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5366 as_fn_error "cannot compute suffix of object files: cannot compile
5367 See \`config.log' for more details." "$LINENO" 5; }
5369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5372 $as_echo "$ac_cv_objext" >&6; }
5373 OBJEXT=$ac_cv_objext
5374 ac_objext=$OBJEXT
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5376 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5377 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5384 main ()
5386 #ifndef __GNUC__
5387 choke me
5388 #endif
5391 return 0;
5393 _ACEOF
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395 ac_compiler_gnu=yes
5396 else
5397 ac_compiler_gnu=no
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5404 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5405 if test $ac_compiler_gnu = yes; then
5406 GCC=yes
5407 else
5408 GCC=
5410 ac_test_CFLAGS=${CFLAGS+set}
5411 ac_save_CFLAGS=$CFLAGS
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5413 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5414 if test "${ac_cv_prog_cc_g+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 ac_save_c_werror_flag=$ac_c_werror_flag
5418 ac_c_werror_flag=yes
5419 ac_cv_prog_cc_g=no
5420 CFLAGS="-g"
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5425 main ()
5429 return 0;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_cv_prog_cc_g=yes
5434 else
5435 CFLAGS=""
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5440 main ()
5444 return 0;
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5449 else
5450 ac_c_werror_flag=$ac_save_c_werror_flag
5451 CFLAGS="-g"
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5456 main ()
5460 return 0;
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464 ac_cv_prog_cc_g=yes
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_c_werror_flag=$ac_save_c_werror_flag
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5474 $as_echo "$ac_cv_prog_cc_g" >&6; }
5475 if test "$ac_test_CFLAGS" = set; then
5476 CFLAGS=$ac_save_CFLAGS
5477 elif test $ac_cv_prog_cc_g = yes; then
5478 if test "$GCC" = yes; then
5479 CFLAGS="-g -O2"
5480 else
5481 CFLAGS="-g"
5483 else
5484 if test "$GCC" = yes; then
5485 CFLAGS="-O2"
5486 else
5487 CFLAGS=
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5491 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5492 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 ac_cv_prog_cc_c89=no
5496 ac_save_CC=$CC
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 #include <stdarg.h>
5500 #include <stdio.h>
5501 #include <sys/types.h>
5502 #include <sys/stat.h>
5503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5504 struct buf { int x; };
5505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5506 static char *e (p, i)
5507 char **p;
5508 int i;
5510 return p[i];
5512 static char *f (char * (*g) (char **, int), char **p, ...)
5514 char *s;
5515 va_list v;
5516 va_start (v,p);
5517 s = g (p, va_arg (v,int));
5518 va_end (v);
5519 return s;
5522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5523 function prototypes and stuff, but not '\xHH' hex character constants.
5524 These don't provoke an error unfortunately, instead are silently treated
5525 as 'x'. The following induces an error, until -std is added to get
5526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5527 array size at least. It's necessary to write '\x00'==0 to get something
5528 that's true only with -std. */
5529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5531 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5532 inside strings and character constants. */
5533 #define FOO(x) 'x'
5534 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5536 int test (int i, double x);
5537 struct s1 {int (*f) (int a);};
5538 struct s2 {int (*f) (double a);};
5539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5540 int argc;
5541 char **argv;
5543 main ()
5545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5547 return 0;
5549 _ACEOF
5550 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5551 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5553 CC="$ac_save_CC $ac_arg"
5554 if ac_fn_c_try_compile "$LINENO"; then :
5555 ac_cv_prog_cc_c89=$ac_arg
5557 rm -f core conftest.err conftest.$ac_objext
5558 test "x$ac_cv_prog_cc_c89" != "xno" && break
5559 done
5560 rm -f conftest.$ac_ext
5561 CC=$ac_save_CC
5564 # AC_CACHE_VAL
5565 case "x$ac_cv_prog_cc_c89" in
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5568 $as_echo "none needed" >&6; } ;;
5569 xno)
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5571 $as_echo "unsupported" >&6; } ;;
5573 CC="$CC $ac_cv_prog_cc_c89"
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5575 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5576 esac
5577 if test "x$ac_cv_prog_cc_c89" != xno; then :
5581 ac_ext=c
5582 ac_cpp='$CPP $CPPFLAGS'
5583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5586 DEPDIR="${am__leading_dot}deps"
5588 ac_config_commands="$ac_config_commands depfiles"
5591 am_make=${MAKE-make}
5592 cat > confinc << 'END'
5593 am__doit:
5594 @echo this is the am__doit target
5595 .PHONY: am__doit
5597 # If we don't find an include directive, just comment out the code.
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5599 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5600 am__include="#"
5601 am__quote=
5602 _am_result=none
5603 # First try GNU make style include.
5604 echo "include confinc" > confmf
5605 # Ignore all kinds of additional output from `make'.
5606 case `$am_make -s -f confmf 2> /dev/null` in #(
5607 *the\ am__doit\ target*)
5608 am__include=include
5609 am__quote=
5610 _am_result=GNU
5612 esac
5613 # Now try BSD make style include.
5614 if test "$am__include" = "#"; then
5615 echo '.include "confinc"' > confmf
5616 case `$am_make -s -f confmf 2> /dev/null` in #(
5617 *the\ am__doit\ target*)
5618 am__include=.include
5619 am__quote="\""
5620 _am_result=BSD
5622 esac
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5627 $as_echo "$_am_result" >&6; }
5628 rm -f confinc confmf
5630 # Check whether --enable-dependency-tracking was given.
5631 if test "${enable_dependency_tracking+set}" = set; then :
5632 enableval=$enable_dependency_tracking;
5635 if test "x$enable_dependency_tracking" != xno; then
5636 am_depcomp="$ac_aux_dir/depcomp"
5637 AMDEPBACKSLASH='\'
5639 if test "x$enable_dependency_tracking" != xno; then
5640 AMDEP_TRUE=
5641 AMDEP_FALSE='#'
5642 else
5643 AMDEP_TRUE='#'
5644 AMDEP_FALSE=
5649 depcc="$CC" am_compiler_list=
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5652 $as_echo_n "checking dependency style of $depcc... " >&6; }
5653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5657 # We make a subdir and do the tests there. Otherwise we can end up
5658 # making bogus files that we don't know about and never remove. For
5659 # instance it was reported that on HP-UX the gcc test will end up
5660 # making a dummy file named `D' -- because `-MD' means `put the output
5661 # in D'.
5662 mkdir conftest.dir
5663 # Copy depcomp to subdir because otherwise we won't find it if we're
5664 # using a relative directory.
5665 cp "$am_depcomp" conftest.dir
5666 cd conftest.dir
5667 # We will build objects and dependencies in a subdirectory because
5668 # it helps to detect inapplicable dependency modes. For instance
5669 # both Tru64's cc and ICC support -MD to output dependencies as a
5670 # side effect of compilation, but ICC will put the dependencies in
5671 # the current directory while Tru64 will put them in the object
5672 # directory.
5673 mkdir sub
5675 am_cv_CC_dependencies_compiler_type=none
5676 if test "$am_compiler_list" = ""; then
5677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5679 am__universal=false
5680 case " $depcc " in #(
5681 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5682 esac
5684 for depmode in $am_compiler_list; do
5685 # Setup a source with many dependencies, because some compilers
5686 # like to wrap large dependency lists on column 80 (with \), and
5687 # we should not choose a depcomp mode which is confused by this.
5689 # We need to recreate these files for each test, as the compiler may
5690 # overwrite some of them when testing with obscure command lines.
5691 # This happens at least with the AIX C compiler.
5692 : > sub/conftest.c
5693 for i in 1 2 3 4 5 6; do
5694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5695 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5696 # Solaris 8's {/usr,}/bin/sh.
5697 touch sub/conftst$i.h
5698 done
5699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5701 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5702 # mode. It turns out that the SunPro C++ compiler does not properly
5703 # handle `-M -o', and we need to detect this. Also, some Intel
5704 # versions had trouble with output in subdirs
5705 am__obj=sub/conftest.${OBJEXT-o}
5706 am__minus_obj="-o $am__obj"
5707 case $depmode in
5708 gcc)
5709 # This depmode causes a compiler race in universal mode.
5710 test "$am__universal" = false || continue
5712 nosideeffect)
5713 # after this tag, mechanisms are not by side-effect, so they'll
5714 # only be used when explicitly requested
5715 if test "x$enable_dependency_tracking" = xyes; then
5716 continue
5717 else
5718 break
5721 msvisualcpp | msvcmsys)
5722 # This compiler won't grok `-c -o', but also, the minuso test has
5723 # not run yet. These depmodes are late enough in the game, and
5724 # so weak that their functioning should not be impacted.
5725 am__obj=conftest.${OBJEXT-o}
5726 am__minus_obj=
5728 none) break ;;
5729 esac
5730 if depmode=$depmode \
5731 source=sub/conftest.c object=$am__obj \
5732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5733 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5734 >/dev/null 2>conftest.err &&
5735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5737 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5739 # icc doesn't choke on unknown options, it will just issue warnings
5740 # or remarks (even with -Werror). So we grep stderr for any message
5741 # that says an option was ignored or not supported.
5742 # When given -MP, icc 7.0 and 7.1 complain thusly:
5743 # icc: Command line warning: ignoring option '-M'; no argument required
5744 # The diagnosis changed in icc 8.0:
5745 # icc: Command line remark: option '-MP' not supported
5746 if (grep 'ignoring option' conftest.err ||
5747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5748 am_cv_CC_dependencies_compiler_type=$depmode
5749 break
5752 done
5754 cd ..
5755 rm -rf conftest.dir
5756 else
5757 am_cv_CC_dependencies_compiler_type=none
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5762 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5766 test "x$enable_dependency_tracking" != xno \
5767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5768 am__fastdepCC_TRUE=
5769 am__fastdepCC_FALSE='#'
5770 else
5771 am__fastdepCC_TRUE='#'
5772 am__fastdepCC_FALSE=
5776 if test "x$CC" != xcc; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5778 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5779 else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5781 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5783 set dummy $CC; ac_cc=`$as_echo "$2" |
5784 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5785 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5792 main ()
5796 return 0;
5798 _ACEOF
5799 # Make sure it works both with $CC and with simple cc.
5800 # We do the test twice because some compilers refuse to overwrite an
5801 # existing .o file with -o, though they will create one.
5802 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5803 rm -f conftest2.*
5804 if { { case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5809 $as_echo "$ac_try_echo"; } >&5
5810 (eval "$ac_try") 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; } &&
5814 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5819 $as_echo "$ac_try_echo"; } >&5
5820 (eval "$ac_try") 2>&5
5821 ac_status=$?
5822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823 test $ac_status = 0; };
5824 then
5825 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5826 if test "x$CC" != xcc; then
5827 # Test first that cc exists at all.
5828 if { ac_try='cc -c conftest.$ac_ext >&5'
5829 { { case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5834 $as_echo "$ac_try_echo"; } >&5
5835 (eval "$ac_try") 2>&5
5836 ac_status=$?
5837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5838 test $ac_status = 0; }; }; then
5839 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5840 rm -f conftest2.*
5841 if { { case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5846 $as_echo "$ac_try_echo"; } >&5
5847 (eval "$ac_try") 2>&5
5848 ac_status=$?
5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850 test $ac_status = 0; } &&
5851 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5856 $as_echo "$ac_try_echo"; } >&5
5857 (eval "$ac_try") 2>&5
5858 ac_status=$?
5859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860 test $ac_status = 0; };
5861 then
5862 # cc works too.
5864 else
5865 # cc exists but doesn't like -o.
5866 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5870 else
5871 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5873 rm -f core conftest*
5876 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5878 $as_echo "yes" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5883 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5887 # FIXME: we rely on the cache variable name because
5888 # there is no other way.
5889 set dummy $CC
5890 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5891 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5892 if test "$am_t" != yes; then
5893 # Losing compiler, so override with the script.
5894 # FIXME: It is wrong to rewrite CC.
5895 # But if we don't then we get into trouble of one sort or another.
5896 # A longer-term fix would be to have automake use am__CC in this case,
5897 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5898 CC="$am_aux_dir/compile $CC"
5903 if test x$GCC = xyes; then
5904 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5905 else
5906 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5909 # Avoid gnulib's tests for HAVE_WORKING_O_NOATIME and HAVE_WORKING_O_NOFOLLOW,
5910 # as we don't use them.
5912 # Avoid gnulib's threadlib module, as we do threads our own way.
5915 # Initialize gnulib right after choosing the compiler.
5917 ac_ext=c
5918 ac_cpp='$CPP $CPPFLAGS'
5919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5923 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5924 # On Suns, sometimes $CPP names a directory.
5925 if test -n "$CPP" && test -d "$CPP"; then
5926 CPP=
5928 if test -z "$CPP"; then
5929 if test "${ac_cv_prog_CPP+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 # Double quotes because CPP needs to be expanded
5933 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5935 ac_preproc_ok=false
5936 for ac_c_preproc_warn_flag in '' yes
5938 # Use a header file that comes with gcc, so configuring glibc
5939 # with a fresh cross-compiler works.
5940 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5941 # <limits.h> exists even on freestanding compilers.
5942 # On the NeXT, cc -E runs the code through the compiler's parser,
5943 # not just through cpp. "Syntax error" is here to catch this case.
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #ifdef __STDC__
5947 # include <limits.h>
5948 #else
5949 # include <assert.h>
5950 #endif
5951 Syntax error
5952 _ACEOF
5953 if ac_fn_c_try_cpp "$LINENO"; then :
5955 else
5956 # Broken: fails on valid input.
5957 continue
5959 rm -f conftest.err conftest.$ac_ext
5961 # OK, works on sane cases. Now check whether nonexistent headers
5962 # can be detected and how.
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 #include <ac_nonexistent.h>
5966 _ACEOF
5967 if ac_fn_c_try_cpp "$LINENO"; then :
5968 # Broken: success on invalid input.
5969 continue
5970 else
5971 # Passes both tests.
5972 ac_preproc_ok=:
5973 break
5975 rm -f conftest.err conftest.$ac_ext
5977 done
5978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5979 rm -f conftest.err conftest.$ac_ext
5980 if $ac_preproc_ok; then :
5981 break
5984 done
5985 ac_cv_prog_CPP=$CPP
5988 CPP=$ac_cv_prog_CPP
5989 else
5990 ac_cv_prog_CPP=$CPP
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5993 $as_echo "$CPP" >&6; }
5994 ac_preproc_ok=false
5995 for ac_c_preproc_warn_flag in '' yes
5997 # Use a header file that comes with gcc, so configuring glibc
5998 # with a fresh cross-compiler works.
5999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6000 # <limits.h> exists even on freestanding compilers.
6001 # On the NeXT, cc -E runs the code through the compiler's parser,
6002 # not just through cpp. "Syntax error" is here to catch this case.
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005 #ifdef __STDC__
6006 # include <limits.h>
6007 #else
6008 # include <assert.h>
6009 #endif
6010 Syntax error
6011 _ACEOF
6012 if ac_fn_c_try_cpp "$LINENO"; then :
6014 else
6015 # Broken: fails on valid input.
6016 continue
6018 rm -f conftest.err conftest.$ac_ext
6020 # OK, works on sane cases. Now check whether nonexistent headers
6021 # can be detected and how.
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6024 #include <ac_nonexistent.h>
6025 _ACEOF
6026 if ac_fn_c_try_cpp "$LINENO"; then :
6027 # Broken: success on invalid input.
6028 continue
6029 else
6030 # Passes both tests.
6031 ac_preproc_ok=:
6032 break
6034 rm -f conftest.err conftest.$ac_ext
6036 done
6037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6038 rm -f conftest.err conftest.$ac_ext
6039 if $ac_preproc_ok; then :
6041 else
6042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6045 See \`config.log' for more details." "$LINENO" 5; }
6048 ac_ext=c
6049 ac_cpp='$CPP $CPPFLAGS'
6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6056 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6057 if test "${ac_cv_path_GREP+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -z "$GREP"; then
6061 ac_path_GREP_found=false
6062 # Loop through the user's path and test for each of PROGNAME-LIST
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_prog in grep ggrep; do
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6071 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6072 # Check for GNU ac_path_GREP and select it if it is found.
6073 # Check for GNU $ac_path_GREP
6074 case `"$ac_path_GREP" --version 2>&1` in
6075 *GNU*)
6076 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6078 ac_count=0
6079 $as_echo_n 0123456789 >"conftest.in"
6080 while :
6082 cat "conftest.in" "conftest.in" >"conftest.tmp"
6083 mv "conftest.tmp" "conftest.in"
6084 cp "conftest.in" "conftest.nl"
6085 $as_echo 'GREP' >> "conftest.nl"
6086 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6088 as_fn_arith $ac_count + 1 && ac_count=$as_val
6089 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6090 # Best one so far, save it but keep looking for a better one
6091 ac_cv_path_GREP="$ac_path_GREP"
6092 ac_path_GREP_max=$ac_count
6094 # 10*(2^10) chars as input seems more than enough
6095 test $ac_count -gt 10 && break
6096 done
6097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6098 esac
6100 $ac_path_GREP_found && break 3
6101 done
6102 done
6103 done
6104 IFS=$as_save_IFS
6105 if test -z "$ac_cv_path_GREP"; then
6106 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6108 else
6109 ac_cv_path_GREP=$GREP
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6114 $as_echo "$ac_cv_path_GREP" >&6; }
6115 GREP="$ac_cv_path_GREP"
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6119 $as_echo_n "checking for egrep... " >&6; }
6120 if test "${ac_cv_path_EGREP+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6124 then ac_cv_path_EGREP="$GREP -E"
6125 else
6126 if test -z "$EGREP"; then
6127 ac_path_EGREP_found=false
6128 # Loop through the user's path and test for each of PROGNAME-LIST
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_prog in egrep; do
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6137 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6138 # Check for GNU ac_path_EGREP and select it if it is found.
6139 # Check for GNU $ac_path_EGREP
6140 case `"$ac_path_EGREP" --version 2>&1` in
6141 *GNU*)
6142 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6144 ac_count=0
6145 $as_echo_n 0123456789 >"conftest.in"
6146 while :
6148 cat "conftest.in" "conftest.in" >"conftest.tmp"
6149 mv "conftest.tmp" "conftest.in"
6150 cp "conftest.in" "conftest.nl"
6151 $as_echo 'EGREP' >> "conftest.nl"
6152 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154 as_fn_arith $ac_count + 1 && ac_count=$as_val
6155 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6156 # Best one so far, save it but keep looking for a better one
6157 ac_cv_path_EGREP="$ac_path_EGREP"
6158 ac_path_EGREP_max=$ac_count
6160 # 10*(2^10) chars as input seems more than enough
6161 test $ac_count -gt 10 && break
6162 done
6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 esac
6166 $ac_path_EGREP_found && break 3
6167 done
6168 done
6169 done
6170 IFS=$as_save_IFS
6171 if test -z "$ac_cv_path_EGREP"; then
6172 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6174 else
6175 ac_cv_path_EGREP=$EGREP
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6181 $as_echo "$ac_cv_path_EGREP" >&6; }
6182 EGREP="$ac_cv_path_EGREP"
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6188 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6189 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6196 #ifdef __ACK__
6197 Amsterdam
6198 #endif
6200 _ACEOF
6201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6202 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6203 gl_cv_c_amsterdam_compiler=yes
6204 else
6205 gl_cv_c_amsterdam_compiler=no
6207 rm -f conftest*
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6212 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6213 if test -z "$AR"; then
6214 if test $gl_cv_c_amsterdam_compiler = yes; then
6215 AR='cc -c.a'
6216 if test -z "$ARFLAGS"; then
6217 ARFLAGS='-o'
6219 else
6220 if test -n "$ac_tool_prefix"; then
6221 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}ar; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_AR+set}" = set; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$AR"; then
6229 ac_cv_prog_AR="$AR" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_AR="${ac_tool_prefix}ar"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6242 done
6243 done
6244 IFS=$as_save_IFS
6248 AR=$ac_cv_prog_AR
6249 if test -n "$AR"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6251 $as_echo "$AR" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6259 if test -z "$ac_cv_prog_AR"; then
6260 ac_ct_AR=$AR
6261 # Extract the first word of "ar", so it can be a program name with args.
6262 set dummy ar; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 if test -n "$ac_ct_AR"; then
6269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_prog_ac_ct_AR="ar"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6282 done
6283 done
6284 IFS=$as_save_IFS
6288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6289 if test -n "$ac_ct_AR"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6291 $as_echo "$ac_ct_AR" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6297 if test "x$ac_ct_AR" = x; then
6298 AR="ar"
6299 else
6300 case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6305 esac
6306 AR=$ac_ct_AR
6308 else
6309 AR="$ac_cv_prog_AR"
6312 if test -z "$ARFLAGS"; then
6313 ARFLAGS='cru'
6316 else
6317 if test -z "$ARFLAGS"; then
6318 ARFLAGS='cru'
6323 if test -z "$RANLIB"; then
6324 if test $gl_cv_c_amsterdam_compiler = yes; then
6325 RANLIB=':'
6326 else
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 if test -n "$RANLIB"; then
6336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6349 done
6350 done
6351 IFS=$as_save_IFS
6355 RANLIB=$ac_cv_prog_RANLIB
6356 if test -n "$RANLIB"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6358 $as_echo "$RANLIB" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6366 if test -z "$ac_cv_prog_RANLIB"; then
6367 ac_ct_RANLIB=$RANLIB
6368 # Extract the first word of "ranlib", so it can be a program name with args.
6369 set dummy ranlib; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$ac_ct_RANLIB"; then
6376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_RANLIB="ranlib"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6396 if test -n "$ac_ct_RANLIB"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6398 $as_echo "$ac_ct_RANLIB" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6404 if test "x$ac_ct_RANLIB" = x; then
6405 RANLIB=":"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408 yes:)
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6411 ac_tool_warned=yes ;;
6412 esac
6413 RANLIB=$ac_ct_RANLIB
6415 else
6416 RANLIB="$ac_cv_prog_RANLIB"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6424 $as_echo_n "checking for ANSI C header files... " >&6; }
6425 if test "${ac_cv_header_stdc+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 #include <stdlib.h>
6431 #include <stdarg.h>
6432 #include <string.h>
6433 #include <float.h>
6436 main ()
6440 return 0;
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"; then :
6444 ac_cv_header_stdc=yes
6445 else
6446 ac_cv_header_stdc=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450 if test $ac_cv_header_stdc = yes; then
6451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <string.h>
6456 _ACEOF
6457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6458 $EGREP "memchr" >/dev/null 2>&1; then :
6460 else
6461 ac_cv_header_stdc=no
6463 rm -f conftest*
6467 if test $ac_cv_header_stdc = yes; then
6468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 #include <stdlib.h>
6473 _ACEOF
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475 $EGREP "free" >/dev/null 2>&1; then :
6477 else
6478 ac_cv_header_stdc=no
6480 rm -f conftest*
6484 if test $ac_cv_header_stdc = yes; then
6485 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6486 if test "$cross_compiling" = yes; then :
6488 else
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #include <ctype.h>
6492 #include <stdlib.h>
6493 #if ((' ' & 0x0FF) == 0x020)
6494 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6495 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6496 #else
6497 # define ISLOWER(c) \
6498 (('a' <= (c) && (c) <= 'i') \
6499 || ('j' <= (c) && (c) <= 'r') \
6500 || ('s' <= (c) && (c) <= 'z'))
6501 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6502 #endif
6504 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6506 main ()
6508 int i;
6509 for (i = 0; i < 256; i++)
6510 if (XOR (islower (i), ISLOWER (i))
6511 || toupper (i) != TOUPPER (i))
6512 return 2;
6513 return 0;
6515 _ACEOF
6516 if ac_fn_c_try_run "$LINENO"; then :
6518 else
6519 ac_cv_header_stdc=no
6521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6522 conftest.$ac_objext conftest.beam conftest.$ac_ext
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6528 $as_echo "$ac_cv_header_stdc" >&6; }
6529 if test $ac_cv_header_stdc = yes; then
6531 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6537 inttypes.h stdint.h unistd.h
6538 do :
6539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6540 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6542 eval as_val=\$$as_ac_Header
6543 if test "x$as_val" = x""yes; then :
6544 cat >>confdefs.h <<_ACEOF
6545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6546 _ACEOF
6550 done
6554 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6555 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6556 MINIX=yes
6557 else
6558 MINIX=
6562 if test "$MINIX" = yes; then
6564 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6567 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6570 $as_echo "#define _MINIX 1" >>confdefs.h
6573 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6579 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6580 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6586 # define __EXTENSIONS__ 1
6587 $ac_includes_default
6589 main ()
6593 return 0;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 ac_cv_safe_to_define___extensions__=yes
6598 else
6599 ac_cv_safe_to_define___extensions__=no
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6604 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6605 test $ac_cv_safe_to_define___extensions__ = yes &&
6606 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6608 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6610 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6612 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6614 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6616 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6619 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6620 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 ac_cv_should_define__xopen_source=no
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6627 #include <wchar.h>
6628 mbstate_t x;
6630 main ()
6634 return 0;
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"; then :
6639 else
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6643 #define _XOPEN_SOURCE 500
6644 #include <wchar.h>
6645 mbstate_t x;
6647 main ()
6651 return 0;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 ac_cv_should_define__xopen_source=yes
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6662 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6663 test $ac_cv_should_define__xopen_source = yes &&
6664 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6673 # Check whether --enable-largefile was given.
6674 if test "${enable_largefile+set}" = set; then :
6675 enableval=$enable_largefile;
6678 if test "$enable_largefile" != no; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6681 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6682 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 ac_cv_sys_largefile_CC=no
6686 if test "$GCC" != yes; then
6687 ac_save_CC=$CC
6688 while :; do
6689 # IRIX 6.2 and later do not support large files by default,
6690 # so use the C compiler's -n32 option if that helps.
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 #include <sys/types.h>
6694 /* Check that off_t can represent 2**63 - 1 correctly.
6695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6696 since some C++ compilers masquerading as C compilers
6697 incorrectly reject 9223372036854775807. */
6698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6700 && LARGE_OFF_T % 2147483647 == 1)
6701 ? 1 : -1];
6703 main ()
6707 return 0;
6709 _ACEOF
6710 if ac_fn_c_try_compile "$LINENO"; then :
6711 break
6713 rm -f core conftest.err conftest.$ac_objext
6714 CC="$CC -n32"
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 ac_cv_sys_largefile_CC=' -n32'; break
6718 rm -f core conftest.err conftest.$ac_objext
6719 break
6720 done
6721 CC=$ac_save_CC
6722 rm -f conftest.$ac_ext
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6726 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6727 if test "$ac_cv_sys_largefile_CC" != no; then
6728 CC=$CC$ac_cv_sys_largefile_CC
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6732 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6733 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 while :; do
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739 #include <sys/types.h>
6740 /* Check that off_t can represent 2**63 - 1 correctly.
6741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6742 since some C++ compilers masquerading as C compilers
6743 incorrectly reject 9223372036854775807. */
6744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6746 && LARGE_OFF_T % 2147483647 == 1)
6747 ? 1 : -1];
6749 main ()
6753 return 0;
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"; then :
6757 ac_cv_sys_file_offset_bits=no; break
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 #define _FILE_OFFSET_BITS 64
6763 #include <sys/types.h>
6764 /* Check that off_t can represent 2**63 - 1 correctly.
6765 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6766 since some C++ compilers masquerading as C compilers
6767 incorrectly reject 9223372036854775807. */
6768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6769 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6770 && LARGE_OFF_T % 2147483647 == 1)
6771 ? 1 : -1];
6773 main ()
6777 return 0;
6779 _ACEOF
6780 if ac_fn_c_try_compile "$LINENO"; then :
6781 ac_cv_sys_file_offset_bits=64; break
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 ac_cv_sys_file_offset_bits=unknown
6785 break
6786 done
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6789 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6790 case $ac_cv_sys_file_offset_bits in #(
6791 no | unknown) ;;
6793 cat >>confdefs.h <<_ACEOF
6794 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6795 _ACEOF
6797 esac
6798 rm -rf conftest*
6799 if test $ac_cv_sys_file_offset_bits = unknown; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6801 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6802 if test "${ac_cv_sys_large_files+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 while :; do
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <sys/types.h>
6809 /* Check that off_t can represent 2**63 - 1 correctly.
6810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6811 since some C++ compilers masquerading as C compilers
6812 incorrectly reject 9223372036854775807. */
6813 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6815 && LARGE_OFF_T % 2147483647 == 1)
6816 ? 1 : -1];
6818 main ()
6822 return 0;
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 ac_cv_sys_large_files=no; break
6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #define _LARGE_FILES 1
6832 #include <sys/types.h>
6833 /* Check that off_t can represent 2**63 - 1 correctly.
6834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6835 since some C++ compilers masquerading as C compilers
6836 incorrectly reject 9223372036854775807. */
6837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6839 && LARGE_OFF_T % 2147483647 == 1)
6840 ? 1 : -1];
6842 main ()
6846 return 0;
6848 _ACEOF
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850 ac_cv_sys_large_files=1; break
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 ac_cv_sys_large_files=unknown
6854 break
6855 done
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6858 $as_echo "$ac_cv_sys_large_files" >&6; }
6859 case $ac_cv_sys_large_files in #(
6860 no | unknown) ;;
6862 cat >>confdefs.h <<_ACEOF
6863 #define _LARGE_FILES $ac_cv_sys_large_files
6864 _ACEOF
6866 esac
6867 rm -rf conftest*
6871 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6875 case $ac_cv_prog_cc_stdc in #(
6876 no) :
6877 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6878 *) :
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6880 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6881 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 ac_cv_prog_cc_c99=no
6885 ac_save_CC=$CC
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 #include <stdarg.h>
6889 #include <stdbool.h>
6890 #include <stdlib.h>
6891 #include <wchar.h>
6892 #include <stdio.h>
6894 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6895 #define debug(...) fprintf (stderr, __VA_ARGS__)
6896 #define showlist(...) puts (#__VA_ARGS__)
6897 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6898 static void
6899 test_varargs_macros (void)
6901 int x = 1234;
6902 int y = 5678;
6903 debug ("Flag");
6904 debug ("X = %d\n", x);
6905 showlist (The first, second, and third items.);
6906 report (x>y, "x is %d but y is %d", x, y);
6909 // Check long long types.
6910 #define BIG64 18446744073709551615ull
6911 #define BIG32 4294967295ul
6912 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6913 #if !BIG_OK
6914 your preprocessor is broken;
6915 #endif
6916 #if BIG_OK
6917 #else
6918 your preprocessor is broken;
6919 #endif
6920 static long long int bignum = -9223372036854775807LL;
6921 static unsigned long long int ubignum = BIG64;
6923 struct incomplete_array
6925 int datasize;
6926 double data[];
6929 struct named_init {
6930 int number;
6931 const wchar_t *name;
6932 double average;
6935 typedef const char *ccp;
6937 static inline int
6938 test_restrict (ccp restrict text)
6940 // See if C++-style comments work.
6941 // Iterate through items via the restricted pointer.
6942 // Also check for declarations in for loops.
6943 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6944 continue;
6945 return 0;
6948 // Check varargs and va_copy.
6949 static void
6950 test_varargs (const char *format, ...)
6952 va_list args;
6953 va_start (args, format);
6954 va_list args_copy;
6955 va_copy (args_copy, args);
6957 const char *str;
6958 int number;
6959 float fnumber;
6961 while (*format)
6963 switch (*format++)
6965 case 's': // string
6966 str = va_arg (args_copy, const char *);
6967 break;
6968 case 'd': // int
6969 number = va_arg (args_copy, int);
6970 break;
6971 case 'f': // float
6972 fnumber = va_arg (args_copy, double);
6973 break;
6974 default:
6975 break;
6978 va_end (args_copy);
6979 va_end (args);
6983 main ()
6986 // Check bool.
6987 _Bool success = false;
6989 // Check restrict.
6990 if (test_restrict ("String literal") == 0)
6991 success = true;
6992 char *restrict newvar = "Another string";
6994 // Check varargs.
6995 test_varargs ("s, d' f .", "string", 65, 34.234);
6996 test_varargs_macros ();
6998 // Check flexible array members.
6999 struct incomplete_array *ia =
7000 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7001 ia->datasize = 10;
7002 for (int i = 0; i < ia->datasize; ++i)
7003 ia->data[i] = i * 1.234;
7005 // Check named initializers.
7006 struct named_init ni = {
7007 .number = 34,
7008 .name = L"Test wide string",
7009 .average = 543.34343,
7012 ni.number = 58;
7014 int dynamic_array[ni.number];
7015 dynamic_array[ni.number - 1] = 543;
7017 // work around unused variable warnings
7018 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7019 || dynamic_array[ni.number - 1] != 543);
7022 return 0;
7024 _ACEOF
7025 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7027 CC="$ac_save_CC $ac_arg"
7028 if ac_fn_c_try_compile "$LINENO"; then :
7029 ac_cv_prog_cc_c99=$ac_arg
7031 rm -f core conftest.err conftest.$ac_objext
7032 test "x$ac_cv_prog_cc_c99" != "xno" && break
7033 done
7034 rm -f conftest.$ac_ext
7035 CC=$ac_save_CC
7038 # AC_CACHE_VAL
7039 case "x$ac_cv_prog_cc_c99" in
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7042 $as_echo "none needed" >&6; } ;;
7043 xno)
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7045 $as_echo "unsupported" >&6; } ;;
7047 CC="$CC $ac_cv_prog_cc_c99"
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7049 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7050 esac
7051 if test "x$ac_cv_prog_cc_c99" != xno; then :
7052 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7056 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 ac_cv_prog_cc_c89=no
7060 ac_save_CC=$CC
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 #include <stdarg.h>
7064 #include <stdio.h>
7065 #include <sys/types.h>
7066 #include <sys/stat.h>
7067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7068 struct buf { int x; };
7069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7070 static char *e (p, i)
7071 char **p;
7072 int i;
7074 return p[i];
7076 static char *f (char * (*g) (char **, int), char **p, ...)
7078 char *s;
7079 va_list v;
7080 va_start (v,p);
7081 s = g (p, va_arg (v,int));
7082 va_end (v);
7083 return s;
7086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7087 function prototypes and stuff, but not '\xHH' hex character constants.
7088 These don't provoke an error unfortunately, instead are silently treated
7089 as 'x'. The following induces an error, until -std is added to get
7090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7091 array size at least. It's necessary to write '\x00'==0 to get something
7092 that's true only with -std. */
7093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7096 inside strings and character constants. */
7097 #define FOO(x) 'x'
7098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7100 int test (int i, double x);
7101 struct s1 {int (*f) (int a);};
7102 struct s2 {int (*f) (double a);};
7103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7104 int argc;
7105 char **argv;
7107 main ()
7109 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7111 return 0;
7113 _ACEOF
7114 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7117 CC="$ac_save_CC $ac_arg"
7118 if ac_fn_c_try_compile "$LINENO"; then :
7119 ac_cv_prog_cc_c89=$ac_arg
7121 rm -f core conftest.err conftest.$ac_objext
7122 test "x$ac_cv_prog_cc_c89" != "xno" && break
7123 done
7124 rm -f conftest.$ac_ext
7125 CC=$ac_save_CC
7128 # AC_CACHE_VAL
7129 case "x$ac_cv_prog_cc_c89" in
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7132 $as_echo "none needed" >&6; } ;;
7133 xno)
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7135 $as_echo "unsupported" >&6; } ;;
7137 CC="$CC $ac_cv_prog_cc_c89"
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7140 esac
7141 if test "x$ac_cv_prog_cc_c89" != xno; then :
7142 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7143 else
7144 ac_cv_prog_cc_stdc=no
7149 esac
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7151 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7152 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7156 case $ac_cv_prog_cc_stdc in #(
7157 no) :
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7159 $as_echo "unsupported" >&6; } ;; #(
7160 '') :
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7162 $as_echo "none needed" >&6; } ;; #(
7163 *) :
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7165 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7166 esac
7170 # Code from module alloca-opt:
7171 # Code from module allocator:
7172 # Code from module at-internal:
7173 # Code from module c-ctype:
7174 # Code from module c-strcase:
7175 # Code from module careadlinkat:
7176 # Code from module clock-time:
7177 # Code from module close-stream:
7178 # Code from module crypto/md5:
7179 # Code from module crypto/sha1:
7180 # Code from module crypto/sha256:
7181 # Code from module crypto/sha512:
7182 # Code from module dirent:
7183 # Code from module dosname:
7184 # Code from module dtoastr:
7185 # Code from module dtotimespec:
7186 # Code from module dup2:
7187 # Code from module environ:
7188 # Code from module euidaccess:
7189 # Code from module execinfo:
7190 # Code from module extensions:
7192 # Code from module extern-inline:
7193 # Code from module faccessat:
7194 # Code from module fcntl-h:
7195 # Code from module fdatasync:
7196 # Code from module fdopendir:
7197 # Code from module filemode:
7198 # Code from module fpending:
7199 # Code from module fstatat:
7200 # Code from module fsync:
7201 # Code from module getgroups:
7202 # Code from module getloadavg:
7203 # Code from module getopt-gnu:
7204 # Code from module getopt-posix:
7205 # Code from module gettext-h:
7206 # Code from module gettime:
7207 # Code from module gettimeofday:
7208 # Code from module group-member:
7209 # Code from module ignore-value:
7210 # Code from module include_next:
7211 # Code from module intprops:
7212 # Code from module inttypes-incomplete:
7213 # Code from module largefile:
7215 # Code from module lstat:
7216 # Code from module manywarnings:
7217 # Code from module memrchr:
7218 # Code from module mktime:
7219 # Code from module multiarch:
7220 # Code from module nocrash:
7221 # Code from module openat-h:
7222 # Code from module pathmax:
7223 # Code from module pselect:
7224 # Code from module pthread_sigmask:
7225 # Code from module putenv:
7226 # Code from module readlink:
7227 # Code from module readlinkat:
7228 # Code from module root-uid:
7229 # Code from module sig2str:
7230 # Code from module signal-h:
7231 # Code from module snippet/_Noreturn:
7232 # Code from module snippet/arg-nonnull:
7233 # Code from module snippet/c++defs:
7234 # Code from module snippet/warn-on-use:
7235 # Code from module socklen:
7236 # Code from module ssize_t:
7237 # Code from module stat:
7238 # Code from module stat-time:
7239 # Code from module stdalign:
7240 # Code from module stdarg:
7244 # Code from module stdbool:
7245 # Code from module stddef:
7246 # Code from module stdint:
7247 # Code from module stdio:
7248 # Code from module stdlib:
7249 # Code from module strftime:
7250 # Code from module string:
7251 # Code from module strtoimax:
7252 # Code from module strtoll:
7253 # Code from module strtoull:
7254 # Code from module strtoumax:
7255 # Code from module symlink:
7256 # Code from module sys_select:
7257 # Code from module sys_stat:
7258 # Code from module sys_time:
7259 # Code from module time:
7260 # Code from module time_r:
7261 # Code from module timer-time:
7262 # Code from module timespec:
7263 # Code from module timespec-add:
7264 # Code from module timespec-sub:
7265 # Code from module u64:
7266 # Code from module unistd:
7267 # Code from module unsetenv:
7268 # Code from module utimens:
7269 # Code from module verify:
7270 # Code from module warnings:
7271 # Code from module xalloc-oversized:
7274 if test "$ac_test_CFLAGS" != set; then
7275 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7276 # if -g3 works and the user does not specify CFLAGS.
7277 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7278 case $CFLAGS in
7279 '-g')
7280 emacs_g3_CFLAGS='-g3';;
7281 '-g -O2')
7282 emacs_g3_CFLAGS='-g3 -O2';;
7284 emacs_g3_CFLAGS='';;
7285 esac
7286 if test -n "$emacs_g3_CFLAGS"; then
7287 emacs_save_CFLAGS=$CFLAGS
7288 CFLAGS=$emacs_g3_CFLAGS
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7290 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7291 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7298 main ()
7302 return 0;
7304 _ACEOF
7305 if ac_fn_c_try_link "$LINENO"; then :
7306 emacs_cv_prog_cc_g3=yes
7307 else
7308 emacs_cv_prog_cc_g3=no
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7314 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7315 if test $emacs_cv_prog_cc_g3 != yes; then
7316 CFLAGS=$emacs_save_CFLAGS
7320 case $CFLAGS in
7321 *-O*) ;;
7323 # No optimization flag was inferred for this non-GCC compiler.
7324 # Try -O. This is needed for xlc on AIX; see Bug#14258.
7325 emacs_save_CFLAGS=$CFLAGS
7326 test -z "$CFLAGS" || CFLAGS="$CFLAGS "
7327 CFLAGS=${CFLAGS}-O
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -O" >&5
7329 $as_echo_n "checking whether $CC accepts -O... " >&6; }
7330 if test "${emacs_cv_prog_cc_o+set}" = set; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7337 main ()
7341 return 0;
7343 _ACEOF
7344 if ac_fn_c_try_link "$LINENO"; then :
7345 emacs_cv_prog_cc_o=yes
7346 else
7347 emacs_cv_prog_cc_o=no
7349 rm -f core conftest.err conftest.$ac_objext \
7350 conftest$ac_exeext conftest.$ac_ext
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_o" >&5
7353 $as_echo "$emacs_cv_prog_cc_o" >&6; }
7354 if test $emacs_cv_prog_cc_o != yes; then
7355 CFLAGS=$emacs_save_CFLAGS
7356 fi ;;
7357 esac
7360 # Check whether --enable-gcc-warnings was given.
7361 if test "${enable_gcc_warnings+set}" = set; then :
7362 enableval=$enable_gcc_warnings; case $enableval in
7363 yes|no) ;;
7364 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7365 esac
7366 gl_gcc_warnings=$enableval
7367 else
7368 gl_gcc_warnings=no
7373 # Check whether --enable-link-time-optimization was given.
7374 if test "${enable_link_time_optimization+set}" = set; then :
7375 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7377 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7378 ac_lto_supported=no
7379 if test x$GCC = xyes; then
7380 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7381 if test x$CPUS != x; then
7382 LTO="-flto=$CPUS"
7383 else
7384 LTO="-flto"
7386 old_CFLAGS=$CFLAGS
7387 CFLAGS="$CFLAGS $LTO"
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_compile "$LINENO"; then :
7400 ac_lto_supported=yes
7401 else
7402 ac_lto_supported=no
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 CFLAGS="$old_CFLAGS"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7408 $as_echo "$ac_lto_supported" >&6; }
7409 if test "$ac_lto_supported" = "yes"; then
7410 CFLAGS="$CFLAGS $LTO"
7416 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7417 # ------------------------------------------------
7418 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7419 # Otherwise, run RUN-IF-NOT-FOUND.
7422 # When compiling with GCC, prefer -isystem to -I when including system
7423 # include files, to avoid generating useless diagnostics for the files.
7424 if test "$gl_gcc_warnings" != yes; then
7425 isystem='-I'
7426 else
7427 isystem='-isystem '
7429 # This, $nw, is the list of warnings we disable.
7432 case $with_x_toolkit in
7433 lucid | athena | motif)
7434 # Old toolkits mishandle 'const'.
7435 nw="$nw -Wwrite-strings"
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7439 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7440 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7444 gl_save_compiler_FLAGS="$CFLAGS"
7445 as_fn_append CFLAGS " -Werror"
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7450 main ()
7454 return 0;
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"; then :
7458 gl_cv_warn_c__Werror=yes
7459 else
7460 gl_cv_warn_c__Werror=no
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 CFLAGS="$gl_save_compiler_FLAGS"
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7467 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7468 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7469 as_fn_append WERROR_CFLAGS " -Werror"
7474 esac
7477 nw="$nw -Waggregate-return" # anachronistic
7478 nw="$nw -Wlong-long" # C90 is anachronistic
7479 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7480 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7481 nw="$nw -Wtraditional" # Warns on #elif which we use often
7482 nw="$nw -Wcast-qual" # Too many warnings for now
7483 nw="$nw -Wconversion" # Too many warnings for now
7484 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7485 nw="$nw -Wsign-conversion" # Too many warnings for now
7486 nw="$nw -Woverlength-strings" # Not a problem these days
7487 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7488 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7489 nw="$nw -Wpadded" # Our structs are not padded
7490 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7491 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7492 nw="$nw -Wformat-nonliteral" # we do this a lot
7493 nw="$nw -Wvla" # warnings in gettext.h
7494 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7495 nw="$nw -Wswitch-enum" # Too many warnings for now
7496 nw="$nw -Wswitch-default" # Too many warnings for now
7497 nw="$nw -Wfloat-equal" # warns about high-quality code
7498 nw="$nw -Winline" # OK to ignore 'inline'
7499 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7500 nw="$nw -Wstrict-overflow" # OK to optimize assuming that
7501 # signed overflow has undefined behavior
7502 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7503 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7505 # Emacs doesn't care about shadowing; see
7506 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7507 nw="$nw -Wshadow"
7509 # Emacs's use of alloca inhibits protecting the stack.
7510 nw="$nw -Wstack-protector"
7512 # The following line should be removable at some point.
7513 nw="$nw -Wsuggest-attribute=pure"
7517 if test -n "$GCC"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7520 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7521 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7523 else
7525 gl_save_CFLAGS="$CFLAGS"
7526 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7531 main ()
7535 return 0;
7537 _ACEOF
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539 gl_cv_cc_nomfi_supported=yes
7540 else
7541 gl_cv_cc_nomfi_supported=no
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 CFLAGS="$gl_save_CFLAGS"
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7548 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7550 if test "$gl_cv_cc_nomfi_supported" = yes; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7552 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7553 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7557 gl_save_CFLAGS="$CFLAGS"
7558 CFLAGS="$CFLAGS -W -Werror"
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 void f (void)
7563 typedef struct { int a; int b; } s_t;
7564 s_t s1 = { 0, };
7568 main ()
7572 return 0;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 gl_cv_cc_nomfi_needed=no
7577 else
7578 gl_cv_cc_nomfi_needed=yes
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 CFLAGS="$gl_save_CFLAGS"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7586 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7590 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7591 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7595 gl_save_CFLAGS="$CFLAGS"
7596 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7601 main ()
7605 return 0;
7607 _ACEOF
7608 if ac_fn_c_try_compile "$LINENO"; then :
7609 gl_cv_cc_uninitialized_supported=yes
7610 else
7611 gl_cv_cc_uninitialized_supported=no
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 CFLAGS="$gl_save_CFLAGS"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7618 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7622 # List all gcc warning categories.
7623 gl_manywarn_set=
7624 for gl_manywarn_item in \
7625 -W \
7626 -Wabi \
7627 -Waddress \
7628 -Wall \
7629 -Warray-bounds \
7630 -Wattributes \
7631 -Wbad-function-cast \
7632 -Wbuiltin-macro-redefined \
7633 -Wcast-align \
7634 -Wchar-subscripts \
7635 -Wclobbered \
7636 -Wcomment \
7637 -Wcomments \
7638 -Wcoverage-mismatch \
7639 -Wcpp \
7640 -Wdeprecated \
7641 -Wdeprecated-declarations \
7642 -Wdisabled-optimization \
7643 -Wdiv-by-zero \
7644 -Wdouble-promotion \
7645 -Wempty-body \
7646 -Wendif-labels \
7647 -Wenum-compare \
7648 -Wextra \
7649 -Wformat-contains-nul \
7650 -Wformat-extra-args \
7651 -Wformat-nonliteral \
7652 -Wformat-security \
7653 -Wformat-y2k \
7654 -Wformat-zero-length \
7655 -Wformat=2 \
7656 -Wfree-nonheap-object \
7657 -Wignored-qualifiers \
7658 -Wimplicit \
7659 -Wimplicit-function-declaration \
7660 -Wimplicit-int \
7661 -Winit-self \
7662 -Winline \
7663 -Wint-to-pointer-cast \
7664 -Winvalid-memory-model \
7665 -Winvalid-pch \
7666 -Wjump-misses-init \
7667 -Wlogical-op \
7668 -Wmain \
7669 -Wmaybe-uninitialized \
7670 -Wmissing-braces \
7671 -Wmissing-declarations \
7672 -Wmissing-field-initializers \
7673 -Wmissing-format-attribute \
7674 -Wmissing-include-dirs \
7675 -Wmissing-noreturn \
7676 -Wmissing-parameter-type \
7677 -Wmissing-prototypes \
7678 -Wmudflap \
7679 -Wmultichar \
7680 -Wnarrowing \
7681 -Wnested-externs \
7682 -Wnonnull \
7683 -Wnormalized=nfc \
7684 -Wold-style-declaration \
7685 -Wold-style-definition \
7686 -Woverflow \
7687 -Woverlength-strings \
7688 -Woverride-init \
7689 -Wpacked \
7690 -Wpacked-bitfield-compat \
7691 -Wparentheses \
7692 -Wpointer-arith \
7693 -Wpointer-sign \
7694 -Wpointer-to-int-cast \
7695 -Wpragmas \
7696 -Wreturn-type \
7697 -Wsequence-point \
7698 -Wshadow \
7699 -Wsizeof-pointer-memaccess \
7700 -Wstack-protector \
7701 -Wstrict-aliasing \
7702 -Wstrict-overflow \
7703 -Wstrict-prototypes \
7704 -Wsuggest-attribute=const \
7705 -Wsuggest-attribute=format \
7706 -Wsuggest-attribute=noreturn \
7707 -Wsuggest-attribute=pure \
7708 -Wswitch \
7709 -Wswitch-default \
7710 -Wsync-nand \
7711 -Wsystem-headers \
7712 -Wtrampolines \
7713 -Wtrigraphs \
7714 -Wtype-limits \
7715 -Wuninitialized \
7716 -Wunknown-pragmas \
7717 -Wunreachable-code \
7718 -Wunsafe-loop-optimizations \
7719 -Wunused \
7720 -Wunused-but-set-parameter \
7721 -Wunused-but-set-variable \
7722 -Wunused-function \
7723 -Wunused-label \
7724 -Wunused-local-typedefs \
7725 -Wunused-macros \
7726 -Wunused-parameter \
7727 -Wunused-result \
7728 -Wunused-value \
7729 -Wunused-variable \
7730 -Wvarargs \
7731 -Wvariadic-macros \
7732 -Wvector-operation-performance \
7733 -Wvla \
7734 -Wvolatile-register-var \
7735 -Wwrite-strings \
7737 ; do
7738 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7739 done
7741 # Disable specific options as needed.
7742 if test "$gl_cv_cc_nomfi_needed" = yes; then
7743 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7746 if test "$gl_cv_cc_uninitialized_supported" = no; then
7747 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7750 ws=$gl_manywarn_set
7753 gl_warn_set=
7754 set x $ws; shift
7755 for gl_warn_item
7757 case " $nw " in
7758 *" $gl_warn_item "*)
7761 gl_warn_set="$gl_warn_set $gl_warn_item"
7763 esac
7764 done
7765 ws=$gl_warn_set
7767 for w in $ws; do
7768 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7770 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7771 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7775 gl_save_compiler_FLAGS="$CFLAGS"
7776 as_fn_append CFLAGS " $w"
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7781 main ()
7785 return 0;
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 eval "$as_gl_Warn=yes"
7790 else
7791 eval "$as_gl_Warn=no"
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 CFLAGS="$gl_save_compiler_FLAGS"
7797 eval ac_res=\$$as_gl_Warn
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7799 $as_echo "$ac_res" >&6; }
7800 eval as_val=\$$as_gl_Warn
7801 if test "x$as_val" = x""yes; then :
7802 as_fn_append WARN_CFLAGS " $w"
7806 done
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7808 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7809 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7813 gl_save_compiler_FLAGS="$CFLAGS"
7814 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7819 main ()
7823 return 0;
7825 _ACEOF
7826 if ac_fn_c_try_compile "$LINENO"; then :
7827 gl_cv_warn_c__Wno_missing_field_initializers=yes
7828 else
7829 gl_cv_warn_c__Wno_missing_field_initializers=no
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 CFLAGS="$gl_save_compiler_FLAGS"
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7836 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7837 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7838 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7841 # We need this one
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7843 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7844 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7848 gl_save_compiler_FLAGS="$CFLAGS"
7849 as_fn_append CFLAGS " -Wno-sign-compare"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7854 main ()
7858 return 0;
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"; then :
7862 gl_cv_warn_c__Wno_sign_compare=yes
7863 else
7864 gl_cv_warn_c__Wno_sign_compare=no
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 CFLAGS="$gl_save_compiler_FLAGS"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7871 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7872 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7873 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7876 # Too many warnings for now
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7878 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7879 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7883 gl_save_compiler_FLAGS="$CFLAGS"
7884 as_fn_append CFLAGS " -Wno-type-limits"
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7889 main ()
7893 return 0;
7895 _ACEOF
7896 if ac_fn_c_try_compile "$LINENO"; then :
7897 gl_cv_warn_c__Wno_type_limits=yes
7898 else
7899 gl_cv_warn_c__Wno_type_limits=no
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 CFLAGS="$gl_save_compiler_FLAGS"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7906 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7907 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7908 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7911 # Too many warnings for now
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7913 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7914 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7918 gl_save_compiler_FLAGS="$CFLAGS"
7919 as_fn_append CFLAGS " -Wno-switch"
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7924 main ()
7928 return 0;
7930 _ACEOF
7931 if ac_fn_c_try_compile "$LINENO"; then :
7932 gl_cv_warn_c__Wno_switch=yes
7933 else
7934 gl_cv_warn_c__Wno_switch=no
7936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 CFLAGS="$gl_save_compiler_FLAGS"
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7941 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7942 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7943 as_fn_append WARN_CFLAGS " -Wno-switch"
7946 # Too many warnings for now
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7948 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7949 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7953 gl_save_compiler_FLAGS="$CFLAGS"
7954 as_fn_append CFLAGS " -Wno-unused-parameter"
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7959 main ()
7963 return 0;
7965 _ACEOF
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 gl_cv_warn_c__Wno_unused_parameter=yes
7968 else
7969 gl_cv_warn_c__Wno_unused_parameter=no
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 CFLAGS="$gl_save_compiler_FLAGS"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7976 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7977 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7978 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7981 # Too many warnings for now
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7983 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7984 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7988 gl_save_compiler_FLAGS="$CFLAGS"
7989 as_fn_append CFLAGS " -Wno-format-nonliteral"
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7994 main ()
7998 return 0;
8000 _ACEOF
8001 if ac_fn_c_try_compile "$LINENO"; then :
8002 gl_cv_warn_c__Wno_format_nonliteral=yes
8003 else
8004 gl_cv_warn_c__Wno_format_nonliteral=no
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 CFLAGS="$gl_save_compiler_FLAGS"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
8011 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
8012 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
8013 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
8018 # In spite of excluding -Wlogical-op above, it is enabled, as of
8019 # gcc 4.5.0 20090517.
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
8021 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
8022 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8026 gl_save_compiler_FLAGS="$CFLAGS"
8027 as_fn_append CFLAGS " -Wno-logical-op"
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8032 main ()
8036 return 0;
8038 _ACEOF
8039 if ac_fn_c_try_compile "$LINENO"; then :
8040 gl_cv_warn_c__Wno_logical_op=yes
8041 else
8042 gl_cv_warn_c__Wno_logical_op=no
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 CFLAGS="$gl_save_compiler_FLAGS"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
8049 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
8050 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
8051 as_fn_append WARN_CFLAGS " -Wno-logical-op"
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
8057 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
8058 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060 else
8062 gl_save_compiler_FLAGS="$CFLAGS"
8063 as_fn_append CFLAGS " -fdiagnostics-show-option"
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8068 main ()
8072 return 0;
8074 _ACEOF
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 gl_cv_warn_c__fdiagnostics_show_option=yes
8077 else
8078 gl_cv_warn_c__fdiagnostics_show_option=no
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 CFLAGS="$gl_save_compiler_FLAGS"
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
8085 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
8086 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
8087 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
8092 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
8093 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8097 gl_save_compiler_FLAGS="$CFLAGS"
8098 as_fn_append CFLAGS " -funit-at-a-time"
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8103 main ()
8107 return 0;
8109 _ACEOF
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111 gl_cv_warn_c__funit_at_a_time=yes
8112 else
8113 gl_cv_warn_c__funit_at_a_time=no
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 CFLAGS="$gl_save_compiler_FLAGS"
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
8120 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
8121 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
8122 as_fn_append WARN_CFLAGS " -funit-at-a-time"
8128 $as_echo "#define lint 1" >>confdefs.h
8132 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
8135 # We use a slightly smaller set of warning options for lib/.
8136 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
8138 nw="$nw -Wunused-macros"
8141 gl_warn_set=
8142 set x $WARN_CFLAGS; shift
8143 for gl_warn_item
8145 case " $nw " in
8146 *" $gl_warn_item "*)
8149 gl_warn_set="$gl_warn_set $gl_warn_item"
8151 esac
8152 done
8153 GNULIB_WARN_CFLAGS=$gl_warn_set
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works for files in the same directory" >&5
8164 $as_echo_n "checking whether ln -s works for files in the same directory... " >&6; }
8165 rm -f conf$$ conf$$.file
8167 LN_S_FILEONLY='cp -p'
8169 if (echo >conf$$.file) 2>/dev/null; then
8170 if ln -s conf$$.file conf$$ 2>/dev/null; then
8171 LN_S_FILEONLY='ln -s'
8172 elif ln conf$$.file conf$$ 2>/dev/null; then
8173 LN_S_FILEONLY=ln
8177 rm -f conf$$ conf$$.file
8179 if test "$LN_S_FILEONLY" = "ln -s"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8181 $as_echo "yes" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S_FILEONLY" >&5
8184 $as_echo "no, using $LN_S_FILEONLY" >&6; }
8190 # Extract the first word of "install-info", so it can be a program name with args.
8191 set dummy install-info; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 case $INSTALL_INFO in
8198 [\\/]* | ?:[\\/]*)
8199 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 break 2
8213 done
8214 done
8215 IFS=$as_save_IFS
8217 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
8219 esac
8221 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
8222 if test -n "$INSTALL_INFO"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
8224 $as_echo "$INSTALL_INFO" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8231 # Extract the first word of "gzip", so it can be a program name with args.
8232 set dummy gzip; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 case $GZIP_PROG in
8239 [\\/]* | ?:[\\/]*)
8240 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8254 done
8255 done
8256 IFS=$as_save_IFS
8259 esac
8261 GZIP_PROG=$ac_cv_path_GZIP_PROG
8262 if test -n "$GZIP_PROG"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
8264 $as_echo "$GZIP_PROG" >&6; }
8265 else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8272 if test $opsys = gnu-linux; then
8273 # Extract the first word of "paxctl", so it can be a program name with args.
8274 set dummy paxctl; ac_word=$2
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276 $as_echo_n "checking for $ac_word... " >&6; }
8277 if test "${ac_cv_path_PAXCTL+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 case $PAXCTL in
8281 [\\/]* | ?:[\\/]*)
8282 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8292 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8296 done
8297 done
8298 IFS=$as_save_IFS
8301 esac
8303 PAXCTL=$ac_cv_path_PAXCTL
8304 if test -n "$PAXCTL"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8306 $as_echo "$PAXCTL" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8313 if test "X$PAXCTL" != X; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8315 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8320 main ()
8324 return 0;
8326 _ACEOF
8327 if ac_fn_c_try_link "$LINENO"; then :
8328 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8329 $as_echo "yes" >&6; }
8330 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }; PAXCTL=""; fi
8333 rm -f core conftest.err conftest.$ac_objext \
8334 conftest$ac_exeext conftest.$ac_ext
8338 ## Need makeinfo >= 4.7 (?) to build the manuals.
8339 # Extract the first word of "makeinfo", so it can be a program name with args.
8340 set dummy makeinfo; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 case $MAKEINFO in
8347 [\\/]* | ?:[\\/]*)
8348 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8362 done
8363 done
8364 IFS=$as_save_IFS
8366 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8368 esac
8370 MAKEINFO=$ac_cv_path_MAKEINFO
8371 if test -n "$MAKEINFO"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8373 $as_echo "$MAKEINFO" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8380 if test "$MAKEINFO" != "no"; then
8381 case `
8382 $MAKEINFO --version 2> /dev/null |
8383 $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'
8384 ` in
8385 '') MAKEINFO=no;;
8386 esac
8389 ## Makeinfo is unusual. For a released Emacs, the manuals are
8390 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8391 ## therefore in the category of "special tools" not normally required, which
8392 ## configure does not have to check for (eg autoconf itself).
8393 ## In a Bazaar checkout on the other hand, the manuals are not included.
8394 ## So makeinfo is a requirement to build from Bazaar, and configure
8395 ## should test for it as it does for any other build requirement.
8396 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8397 ## with pre-built manuals, from a Bazaar checkout.
8398 HAVE_MAKEINFO=yes
8400 if test "$MAKEINFO" = "no"; then
8401 MAKEINFO=makeinfo
8402 if test "x${with_makeinfo}" = "xno"; then
8403 HAVE_MAKEINFO=no
8404 elif test ! -e "$srcdir/info/emacs" && test ! -e "$srcdir/info/emacs.info"; then
8405 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8406 source tree does not seem to have pre-built manuals in the \`info' directory.
8407 Either install a suitable version of makeinfo, or re-run configure
8408 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8413 INFO_EXT=.info
8414 INFO_OPTS=--no-split
8419 if test x$GCC = xyes; then
8420 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8421 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8422 else
8423 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8424 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8428 late_LDFLAGS=$LDFLAGS
8429 if test x$GCC = xyes; then
8430 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8431 else
8432 LDFLAGS="$LDFLAGS -znocombreloc"
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8436 $as_echo_n "checking for -znocombreloc... " >&6; }
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8441 main ()
8445 return 0;
8447 _ACEOF
8448 if ac_fn_c_try_link "$LINENO"; then :
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8450 $as_echo "yes" >&6; }
8451 else
8452 LDFLAGS=$late_LDFLAGS
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8456 rm -f core conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8460 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8461 case "$opsys" in
8462 your-opsys-here) CANNOT_DUMP=yes ;;
8463 esac
8465 test "$CANNOT_DUMP" = "yes" && \
8467 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8473 UNEXEC_OBJ=unexelf.o
8474 case "$opsys" in
8475 # MSDOS uses unexcoff.o
8476 # MSWindows uses unexw32.o
8477 aix4-2)
8478 UNEXEC_OBJ=unexaix.o
8480 cygwin)
8481 UNEXEC_OBJ=unexcw.o
8483 darwin)
8484 UNEXEC_OBJ=unexmacosx.o
8486 hpux10-20 | hpux11)
8487 UNEXEC_OBJ=unexhp9k800.o
8489 sol2-10)
8490 # Use the Solaris dldump() function, called from unexsol.c, to dump
8491 # emacs, instead of the generic ELF dump code found in unexelf.c.
8492 # The resulting binary has a complete symbol table, and is better
8493 # for debugging and other observability tools (debuggers, pstack, etc).
8495 # If you encounter a problem using dldump(), please consider sending
8496 # a message to the OpenSolaris tools-linking mailing list:
8497 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8499 # It is likely that dldump() works with older Solaris too, but this has
8500 # not been tested, so for now this change is for Solaris 10 or newer.
8501 UNEXEC_OBJ=unexsol.o
8503 esac
8505 LD_SWITCH_SYSTEM=
8506 case "$opsys" in
8507 freebsd|dragonfly)
8508 ## Let `ld' find image libs and similar things in /usr/local/lib.
8509 ## The system compiler, GCC, has apparently been modified to not
8510 ## look there, contrary to what a stock GCC would do.
8511 ### It's not our place to do this. See bug#10313#17.
8512 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8516 gnu-linux)
8517 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8518 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8521 netbsd)
8522 ### It's not our place to do this. See bug#10313#17.
8523 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8527 openbsd)
8528 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8529 ## otherwise Emacs dumps core on elf systems.
8530 LD_SWITCH_SYSTEM="-Z"
8532 esac
8535 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8537 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8538 ## which has not been defined yet. When this was handled with cpp,
8539 ## it was expanded to null when configure sourced the s/*.h file.
8540 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8541 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8542 ## (or somesuch), but because it is supposed to go at the _front_
8543 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8544 ## Compare with the gnu-linux case below, which added to the end
8545 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8546 ## LD_SWITCH_SYSTEM_TEMACS.
8547 case "$opsys" in
8548 netbsd|openbsd)
8549 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8550 esac
8553 C_SWITCH_MACHINE=
8554 case $canonical in
8555 alpha*)
8556 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8557 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8561 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8562 ## With ELF, make sure that all common symbols get allocated to in the
8563 ## data section. Otherwise, the dump of temacs may miss variables in
8564 ## the shared library that have been initialized. For example, with
8565 ## GNU libc, __malloc_initialized would normally be resolved to the
8566 ## shared library's .bss section, which is fatal.
8567 if test "x$GCC" = "xyes"; then
8568 C_SWITCH_MACHINE="-fno-common"
8569 else
8570 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8572 else
8573 UNEXEC_OBJ=unexalpha.o
8576 esac
8581 C_SWITCH_SYSTEM=
8582 ## Some programs in src produce warnings saying certain subprograms
8583 ## are too complex and need a MAXMEM value greater than 2000 for
8584 ## additional optimization. --nils@exp-math.uni-essen.de
8585 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8586 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8587 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8588 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8592 LIBS_SYSTEM=
8593 case "$opsys" in
8594 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8595 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8597 freebsd|dragonfly) LIBS_SYSTEM="-lutil" ;;
8599 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8601 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8603 ## Motif needs -lgen.
8604 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8605 esac
8609 ### Make sure subsequent tests use flags consistent with the build flags.
8611 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8612 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8613 else
8614 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8617 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8619 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8623 LIB_MATH=-lm
8624 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8626 case $opsys in
8627 cygwin )
8628 LIB_MATH=
8630 darwin )
8631 ## Adding -lm confuses the dynamic linker, so omit it.
8632 LIB_MATH=
8634 freebsd | dragonfly )
8635 SYSTEM_TYPE=berkeley-unix
8637 gnu-linux | gnu-kfreebsd )
8639 hpux10-20 | hpux11 )
8641 netbsd | openbsd )
8642 SYSTEM_TYPE=berkeley-unix
8645 sol2* | unixware )
8646 SYSTEM_TYPE=usg-unix-v
8649 esac
8653 cat >>confdefs.h <<_ACEOF
8654 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8655 _ACEOF
8659 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8660 pre_PKG_CONFIG_LIBS=$LIBS
8662 # Extract the first word of "pkg-config", so it can be a program name with args.
8663 set dummy pkg-config; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8667 $as_echo_n "(cached) " >&6
8668 else
8669 case $PKG_CONFIG in
8670 [\\/]* | ?:[\\/]*)
8671 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8685 done
8686 done
8687 IFS=$as_save_IFS
8689 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8691 esac
8693 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8694 if test -n "$PKG_CONFIG"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8696 $as_echo "$PKG_CONFIG" >&6; }
8697 else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8707 if test "${with_sound}" != "no"; then
8708 # Sound support for GNU/Linux and the free BSDs.
8709 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8710 do :
8711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8713 eval as_val=\$$as_ac_Header
8714 if test "x$as_val" = x""yes; then :
8715 cat >>confdefs.h <<_ACEOF
8716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717 _ACEOF
8718 have_sound_header=yes
8721 done
8723 # Emulation library used on NetBSD.
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8725 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8726 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8728 else
8729 ac_check_lib_save_LIBS=$LIBS
8730 LIBS="-lossaudio $LIBS"
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8737 #ifdef __cplusplus
8738 extern "C"
8739 #endif
8740 char _oss_ioctl ();
8742 main ()
8744 return _oss_ioctl ();
8746 return 0;
8748 _ACEOF
8749 if ac_fn_c_try_link "$LINENO"; then :
8750 ac_cv_lib_ossaudio__oss_ioctl=yes
8751 else
8752 ac_cv_lib_ossaudio__oss_ioctl=no
8754 rm -f core conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8759 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8760 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8761 LIBSOUND=-lossaudio
8762 else
8763 LIBSOUND=
8768 ALSA_REQUIRED=1.0.0
8769 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8771 succeeded=no
8773 if test "$PKG_CONFIG" = "no" ; then
8774 HAVE_ALSA=no
8775 else
8776 PKG_CONFIG_MIN_VERSION=0.9.0
8777 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8779 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8781 if "$PKG_CONFIG" --exists "$ALSA_MODULES" 2>&5 &&
8782 ALSA_CFLAGS=`"$PKG_CONFIG" --cflags "$ALSA_MODULES" 2>&5` &&
8783 ALSA_LIBS=`"$PKG_CONFIG" --libs "$ALSA_MODULES" 2>&5`; then
8784 edit_cflags="
8785 s,///*,/,g
8786 s/^/ /
8787 s/ -I/ $isystem/g
8788 s/^ //
8790 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8791 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8793 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8794 succeeded=yes
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 ALSA_CFLAGS=""
8799 ALSA_LIBS=""
8800 ## If we have a custom action on failure, don't print errors, but
8801 ## do set a variable so people can do so. Do it in a subshell
8802 ## to capture any diagnostics in invoking pkg-config.
8803 ALSA_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$ALSA_MODULES") 2>&1`
8809 else
8810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8815 if test $succeeded = yes; then
8816 HAVE_ALSA=yes
8817 else
8818 HAVE_ALSA=no
8821 if test $HAVE_ALSA = yes; then
8822 SAVE_CFLAGS="$CFLAGS"
8823 SAVE_LIBS="$LIBS"
8824 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8825 LIBS="$ALSA_LIBS $LIBS"
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h. */
8828 #include <asoundlib.h>
8830 main ()
8832 snd_lib_error_set_handler (0);
8834 return 0;
8836 _ACEOF
8837 if ac_fn_c_try_compile "$LINENO"; then :
8838 emacs_alsa_normal=yes
8839 else
8840 emacs_alsa_normal=no
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 if test "$emacs_alsa_normal" != yes; then
8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8846 #include <alsa/asoundlib.h>
8848 main ()
8850 snd_lib_error_set_handler (0);
8852 return 0;
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"; then :
8856 emacs_alsa_subdir=yes
8857 else
8858 emacs_alsa_subdir=no
8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861 if test "$emacs_alsa_subdir" != yes; then
8862 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8864 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8867 CFLAGS="$SAVE_CFLAGS"
8868 LIBS="$SAVE_LIBS"
8869 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8870 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8872 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8876 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8877 case "$opsys" in
8878 gnu-linux|freebsd|netbsd)
8880 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8883 esac
8892 for ac_header in $ac_header_list
8893 do :
8894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8895 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8897 eval as_val=\$$as_ac_Header
8898 if test "x$as_val" = x""yes; then :
8899 cat >>confdefs.h <<_ACEOF
8900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8901 _ACEOF
8905 done
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8928 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 #include <sys/personality.h>
8933 main ()
8935 personality (PER_LINUX32)
8937 return 0;
8939 _ACEOF
8940 if ac_fn_c_try_compile "$LINENO"; then :
8941 emacs_cv_personality_linux32=yes
8942 else
8943 emacs_cv_personality_linux32=no
8945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8947 $as_echo "$emacs_cv_personality_linux32" >&6; }
8949 if test $emacs_cv_personality_linux32 = yes; then
8951 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8955 for ac_header in term.h
8956 do :
8957 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8958 if test "x$ac_cv_header_term_h" = x""yes; then :
8959 cat >>confdefs.h <<_ACEOF
8960 #define HAVE_TERM_H 1
8961 _ACEOF
8965 done
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8968 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8969 if test "${ac_cv_header_time+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 #include <sys/types.h>
8975 #include <sys/time.h>
8976 #include <time.h>
8979 main ()
8981 if ((struct tm *) 0)
8982 return 0;
8984 return 0;
8986 _ACEOF
8987 if ac_fn_c_try_compile "$LINENO"; then :
8988 ac_cv_header_time=yes
8989 else
8990 ac_cv_header_time=no
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8995 $as_echo "$ac_cv_header_time" >&6; }
8996 if test $ac_cv_header_time = yes; then
8998 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9002 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
9005 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
9006 ac_have_decl=1
9007 else
9008 ac_have_decl=0
9011 cat >>confdefs.h <<_ACEOF
9012 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
9013 _ACEOF
9015 if test $ac_cv_have_decl_sys_siglist != yes; then
9016 # For Tru64, at least:
9017 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
9020 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
9021 ac_have_decl=1
9022 else
9023 ac_have_decl=0
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
9028 _ACEOF
9030 if test $ac_cv_have_decl___sys_siglist = yes; then
9032 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9037 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9038 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9039 $as_echo_n "(cached) " >&6
9040 else
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 #include <sys/types.h>
9044 #include <sys/wait.h>
9045 #ifndef WEXITSTATUS
9046 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9047 #endif
9048 #ifndef WIFEXITED
9049 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9050 #endif
9053 main ()
9055 int s;
9056 wait (&s);
9057 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9059 return 0;
9061 _ACEOF
9062 if ac_fn_c_try_compile "$LINENO"; then :
9063 ac_cv_header_sys_wait_h=yes
9064 else
9065 ac_cv_header_sys_wait_h=no
9067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9070 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9071 if test $ac_cv_header_sys_wait_h = yes; then
9073 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
9079 $as_echo_n "checking for speed_t... " >&6; }
9080 if test "${emacs_cv_speed_t+set}" = set; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 #include <termios.h>
9087 main ()
9089 speed_t x = 1;
9091 return 0;
9093 _ACEOF
9094 if ac_fn_c_try_compile "$LINENO"; then :
9095 emacs_cv_speed_t=yes
9096 else
9097 emacs_cv_speed_t=no
9099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
9102 $as_echo "$emacs_cv_speed_t" >&6; }
9103 if test $emacs_cv_speed_t = yes; then
9105 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
9112 for ac_header in net/if.h
9113 do :
9114 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9115 #if HAVE_SYS_SOCKET_H
9116 #include <sys/socket.h>
9117 #endif
9119 if test "x$ac_cv_header_net_if_h" = x""yes; then :
9120 cat >>confdefs.h <<_ACEOF
9121 #define HAVE_NET_IF_H 1
9122 _ACEOF
9126 done
9128 for ac_header in ifaddrs.h
9129 do :
9130 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
9131 #if HAVE_SYS_SOCKET_H
9132 #include <sys/socket.h>
9133 #endif
9135 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
9136 cat >>confdefs.h <<_ACEOF
9137 #define HAVE_IFADDRS_H 1
9138 _ACEOF
9142 done
9144 for ac_header in net/if_dl.h
9145 do :
9146 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
9147 #if HAVE_SYS_SOCKET_H
9148 #include <sys/socket.h>
9149 #endif
9151 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_NET_IF_DL_H 1
9154 _ACEOF
9158 done
9161 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
9162 #if HAVE_SYS_SOCKET_H
9163 #include <sys/socket.h>
9164 #endif
9165 #if HAVE_NET_IF_H
9166 #include <net/if.h>
9167 #endif
9169 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9171 cat >>confdefs.h <<_ACEOF
9172 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9173 _ACEOF
9177 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9178 #if HAVE_SYS_SOCKET_H
9179 #include <sys/socket.h>
9180 #endif
9181 #if HAVE_NET_IF_H
9182 #include <net/if.h>
9183 #endif
9185 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9187 cat >>confdefs.h <<_ACEOF
9188 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9189 _ACEOF
9193 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9194 #if HAVE_SYS_SOCKET_H
9195 #include <sys/socket.h>
9196 #endif
9197 #if HAVE_NET_IF_H
9198 #include <net/if.h>
9199 #endif
9201 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9203 cat >>confdefs.h <<_ACEOF
9204 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9205 _ACEOF
9209 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9210 #if HAVE_SYS_SOCKET_H
9211 #include <sys/socket.h>
9212 #endif
9213 #if HAVE_NET_IF_H
9214 #include <net/if.h>
9215 #endif
9217 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9219 cat >>confdefs.h <<_ACEOF
9220 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9221 _ACEOF
9225 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9226 #if HAVE_SYS_SOCKET_H
9227 #include <sys/socket.h>
9228 #endif
9229 #if HAVE_NET_IF_H
9230 #include <net/if.h>
9231 #endif
9233 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9235 cat >>confdefs.h <<_ACEOF
9236 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9237 _ACEOF
9241 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9242 #if HAVE_SYS_SOCKET_H
9243 #include <sys/socket.h>
9244 #endif
9245 #if HAVE_NET_IF_H
9246 #include <net/if.h>
9247 #endif
9249 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9251 cat >>confdefs.h <<_ACEOF
9252 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9253 _ACEOF
9261 DEPFLAGS=
9262 MKDEPDIR=":"
9263 deps_frag=deps.mk
9264 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9266 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9267 HAVE_GNU_MAKE=no
9268 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9269 if test "x$testval" != x; then
9270 HAVE_GNU_MAKE=yes
9271 else
9272 ac_enable_autodepend=no
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9275 $as_echo "$HAVE_GNU_MAKE" >&6; }
9276 if test $HAVE_GNU_MAKE = yes; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9278 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9279 SAVE_CFLAGS="$CFLAGS"
9280 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9285 main ()
9289 return 0;
9291 _ACEOF
9292 if ac_fn_c_try_compile "$LINENO"; then :
9294 else
9295 ac_enable_autodepend=no
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 CFLAGS="$SAVE_CFLAGS"
9299 test -f deps.d || ac_enable_autodepend=no
9300 rm -rf deps.d
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9302 $as_echo "$ac_enable_autodepend" >&6; }
9304 if test $ac_enable_autodepend = yes; then
9305 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9306 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9307 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9308 deps_frag=autodeps.mk
9311 deps_frag=$srcdir/src/$deps_frag
9317 lisp_frag=$srcdir/src/lisp.mk
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9322 $as_echo_n "checking for long file names... " >&6; }
9323 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 ac_cv_sys_long_file_names=yes
9327 # Test for long file names in all the places we know might matter:
9328 # . the current directory, where building will happen
9329 # $prefix/lib where we will be installing things
9330 # $exec_prefix/lib likewise
9331 # $TMPDIR if set, where it might want to write temporary files
9332 # /tmp where it might want to write temporary files
9333 # /var/tmp likewise
9334 # /usr/tmp likewise
9335 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9336 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9337 # in the usual case where exec_prefix is '${prefix}'.
9338 case $ac_dir in #(
9339 . | /* | ?:[\\/]*) ;; #(
9340 *) continue;;
9341 esac
9342 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9343 ac_xdir=$ac_dir/cf$$
9344 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9345 ac_tf1=$ac_xdir/conftest9012345
9346 ac_tf2=$ac_xdir/conftest9012346
9347 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9348 ac_cv_sys_long_file_names=no
9349 rm -f -r "$ac_xdir" 2>/dev/null
9350 test $ac_cv_sys_long_file_names = no && break
9351 done
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9354 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9355 if test $ac_cv_sys_long_file_names = yes; then
9357 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9362 #### Choose a window system.
9364 ## We leave window_system equal to none if
9365 ## we end up building without one. Any new window system should
9366 ## set window_system to an appropriate value and add objects to
9367 ## window-system-specific substs.
9369 window_system=none
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9371 $as_echo_n "checking for X... " >&6; }
9374 # Check whether --with-x was given.
9375 if test "${with_x+set}" = set; then :
9376 withval=$with_x;
9379 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9380 if test "x$with_x" = xno; then
9381 # The user explicitly disabled X.
9382 have_x=disabled
9383 else
9384 case $x_includes,$x_libraries in #(
9385 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9386 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 # One or both of the vars are not set, and there is no cached value.
9390 ac_x_includes=no ac_x_libraries=no
9391 rm -f -r conftest.dir
9392 if mkdir conftest.dir; then
9393 cd conftest.dir
9394 cat >Imakefile <<'_ACEOF'
9395 incroot:
9396 @echo incroot='${INCROOT}'
9397 usrlibdir:
9398 @echo usrlibdir='${USRLIBDIR}'
9399 libdir:
9400 @echo libdir='${LIBDIR}'
9401 _ACEOF
9402 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9403 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9404 for ac_var in incroot usrlibdir libdir; do
9405 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9406 done
9407 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9408 for ac_extension in a so sl dylib la dll; do
9409 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9410 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9411 ac_im_usrlibdir=$ac_im_libdir; break
9413 done
9414 # Screen out bogus values from the imake configuration. They are
9415 # bogus both because they are the default anyway, and because
9416 # using them would break gcc on systems where it needs fixed includes.
9417 case $ac_im_incroot in
9418 /usr/include) ac_x_includes= ;;
9419 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9420 esac
9421 case $ac_im_usrlibdir in
9422 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9423 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9424 esac
9426 cd ..
9427 rm -f -r conftest.dir
9430 # Standard set of common directories for X headers.
9431 # Check X11 before X11Rn because it is often a symlink to the current release.
9432 ac_x_header_dirs='
9433 /usr/X11/include
9434 /usr/X11R7/include
9435 /usr/X11R6/include
9436 /usr/X11R5/include
9437 /usr/X11R4/include
9439 /usr/include/X11
9440 /usr/include/X11R7
9441 /usr/include/X11R6
9442 /usr/include/X11R5
9443 /usr/include/X11R4
9445 /usr/local/X11/include
9446 /usr/local/X11R7/include
9447 /usr/local/X11R6/include
9448 /usr/local/X11R5/include
9449 /usr/local/X11R4/include
9451 /usr/local/include/X11
9452 /usr/local/include/X11R7
9453 /usr/local/include/X11R6
9454 /usr/local/include/X11R5
9455 /usr/local/include/X11R4
9457 /usr/X386/include
9458 /usr/x386/include
9459 /usr/XFree86/include/X11
9461 /usr/include
9462 /usr/local/include
9463 /usr/unsupported/include
9464 /usr/athena/include
9465 /usr/local/x11r5/include
9466 /usr/lpp/Xamples/include
9468 /usr/openwin/include
9469 /usr/openwin/share/include'
9471 if test "$ac_x_includes" = no; then
9472 # Guess where to find include files, by looking for Xlib.h.
9473 # First, try using that file with no special directory specified.
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476 #include <X11/Xlib.h>
9477 _ACEOF
9478 if ac_fn_c_try_cpp "$LINENO"; then :
9479 # We can compile using X headers with no special include directory.
9480 ac_x_includes=
9481 else
9482 for ac_dir in $ac_x_header_dirs; do
9483 if test -r "$ac_dir/X11/Xlib.h"; then
9484 ac_x_includes=$ac_dir
9485 break
9487 done
9489 rm -f conftest.err conftest.$ac_ext
9490 fi # $ac_x_includes = no
9492 if test "$ac_x_libraries" = no; then
9493 # Check for the libraries.
9494 # See if we find them without any special options.
9495 # Don't add to $LIBS permanently.
9496 ac_save_LIBS=$LIBS
9497 LIBS="-lX11 $LIBS"
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #include <X11/Xlib.h>
9502 main ()
9504 XrmInitialize ()
9506 return 0;
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 LIBS=$ac_save_LIBS
9511 # We can link X programs with no special library path.
9512 ac_x_libraries=
9513 else
9514 LIBS=$ac_save_LIBS
9515 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9517 # Don't even attempt the hair of trying to link an X program!
9518 for ac_extension in a so sl dylib la dll; do
9519 if test -r "$ac_dir/libX11.$ac_extension"; then
9520 ac_x_libraries=$ac_dir
9521 break 2
9523 done
9524 done
9526 rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528 fi # $ac_x_libraries = no
9530 case $ac_x_includes,$ac_x_libraries in #(
9531 no,* | *,no | *\'*)
9532 # Didn't find X, or a directory has "'" in its name.
9533 ac_cv_have_x="have_x=no";; #(
9535 # Record where we found X for the cache.
9536 ac_cv_have_x="have_x=yes\
9537 ac_x_includes='$ac_x_includes'\
9538 ac_x_libraries='$ac_x_libraries'"
9539 esac
9541 ;; #(
9542 *) have_x=yes;;
9543 esac
9544 eval "$ac_cv_have_x"
9545 fi # $with_x != no
9547 if test "$have_x" != yes; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9549 $as_echo "$have_x" >&6; }
9550 no_x=yes
9551 else
9552 # If each of the values was on the command line, it overrides each guess.
9553 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9554 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9555 # Update the cache value to reflect the command line values.
9556 ac_cv_have_x="have_x=yes\
9557 ac_x_includes='$x_includes'\
9558 ac_x_libraries='$x_libraries'"
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9560 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9563 if test "$no_x" != yes; then
9564 window_system=x11
9567 LD_SWITCH_X_SITE_RPATH=
9568 if test "${x_libraries}" != NONE; then
9569 if test -n "${x_libraries}"; then
9570 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9571 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9573 x_default_search_path=""
9574 x_search_path=${x_libraries}
9575 if test -z "${x_search_path}"; then
9576 x_search_path=/usr/lib
9578 for x_library in `echo ${x_search_path}: | \
9579 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9580 x_search_path="\
9581 ${x_library}/X11/%L/%T/%N%C%S:\
9582 ${x_library}/X11/%l/%T/%N%C%S:\
9583 ${x_library}/X11/%T/%N%C%S:\
9584 ${x_library}/X11/%L/%T/%N%S:\
9585 ${x_library}/X11/%l/%T/%N%S:\
9586 ${x_library}/X11/%T/%N%S"
9587 if test x"${x_default_search_path}" = x; then
9588 x_default_search_path=${x_search_path}
9589 else
9590 x_default_search_path="${x_search_path}:${x_default_search_path}"
9592 done
9596 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9597 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9600 if test x"${x_includes}" = x; then
9601 bitmapdir=/usr/include/X11/bitmaps
9602 else
9603 # accumulate include directories that have X11 bitmap subdirectories
9604 bmd_acc="dummyval"
9605 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9606 if test -d "${bmd}/X11/bitmaps"; then
9607 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9609 if test -d "${bmd}/bitmaps"; then
9610 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9612 done
9613 if test ${bmd_acc} != "dummyval"; then
9614 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9618 HAVE_NS=no
9619 NS_IMPL_COCOA=no
9620 NS_IMPL_GNUSTEP=no
9621 tmp_CPPFLAGS="$CPPFLAGS"
9622 tmp_CFLAGS="$CFLAGS"
9623 CPPFLAGS="$CPPFLAGS -x objective-c"
9624 CFLAGS="$CFLAGS -x objective-c"
9625 GNU_OBJC_CFLAGS=
9626 LIBS_GNUSTEP=
9627 if test "${with_ns}" != no; then
9628 if test "${opsys}" = darwin; then
9629 NS_IMPL_COCOA=yes
9630 ns_appdir=`pwd`/nextstep/Emacs.app
9631 ns_appbindir=${ns_appdir}/Contents/MacOS
9632 ns_appresdir=${ns_appdir}/Contents/Resources
9633 ns_appsrc=Cocoa/Emacs.base
9634 elif test -f $GNUSTEP_CONFIG_FILE; then
9635 NS_IMPL_GNUSTEP=yes
9636 ns_appdir=`pwd`/nextstep/Emacs.app
9637 ns_appbindir=${ns_appdir}
9638 ns_appresdir=${ns_appdir}/Resources
9639 ns_appsrc=GNUstep/Emacs.base
9640 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9641 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9642 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9643 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9644 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9645 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9646 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9647 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9648 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9649 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9650 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9651 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9653 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9654 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9659 #include <GNUstepBase/GSConfig.h>
9661 main ()
9663 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9665 #else
9666 fail;
9667 #endif
9669 return 0;
9671 _ACEOF
9672 if ac_fn_c_try_compile "$LINENO"; then :
9673 emacs_cv_objc_exceptions=yes
9674 else
9675 emacs_cv_objc_exceptions=no
9677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9680 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9681 if test $emacs_cv_objc_exceptions = yes; then
9683 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9685 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9689 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9691 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9692 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9693 HAVE_NS=yes
9694 else
9695 as_fn_error "\`--with-ns' was specified, but the include
9696 files are missing or cannot be compiled." "$LINENO" 5
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 #include <AppKit/AppKit.h>
9705 main ()
9708 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9709 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9710 ; /* OK */
9711 #else
9712 #error "OSX 10.4 or newer required"
9713 #endif
9714 #endif
9717 return 0;
9719 _ACEOF
9720 if ac_fn_c_try_compile "$LINENO"; then :
9721 ns_osx_have_104=yes
9722 else
9723 ns_osx_have_104=no
9725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <Foundation/NSObjCRuntime.h>
9730 main ()
9732 NSInteger i;
9734 return 0;
9736 _ACEOF
9737 if ac_fn_c_try_compile "$LINENO"; then :
9738 ns_have_nsinteger=yes
9739 else
9740 ns_have_nsinteger=no
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 if test $ns_osx_have_104 = no; then
9744 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9746 if test $ns_have_nsinteger = yes; then
9748 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9755 INSTALL_ARCH_INDEP_EXTRA=install-etc
9756 ns_self_contained=no
9757 NS_OBJ=
9758 NS_OBJC_OBJ=
9759 if test "${HAVE_NS}" = yes; then
9760 if test "$with_toolkit_scroll_bars" = "no"; then
9761 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9764 window_system=nextstep
9765 # set up packaging dirs
9766 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9767 ns_self_contained=yes
9768 prefix=${ns_appresdir}
9769 exec_prefix=${ns_appbindir}
9770 libexecdir="\${ns_appbindir}/libexec"
9771 archlibdir="\${ns_appbindir}/libexec"
9772 docdir="\${ns_appresdir}/etc"
9773 etcdir="\${ns_appresdir}/etc"
9774 infodir="\${ns_appresdir}/info"
9775 mandir="\${ns_appresdir}/man"
9776 lispdir="\${ns_appresdir}/lisp"
9777 leimdir="\${ns_appresdir}/leim"
9778 INSTALL_ARCH_INDEP_EXTRA=
9780 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9782 CFLAGS="$tmp_CFLAGS"
9783 CPPFLAGS="$tmp_CPPFLAGS"
9789 HAVE_W32=no
9790 W32_OBJ=
9791 W32_LIBS=
9792 W32_RES=
9793 W32_RES_LINK=
9794 if test "${with_w32}" != no; then
9795 if test "${opsys}" != "cygwin"; then
9796 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9798 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9799 if test "x$ac_cv_header_windows_h" = x""yes; then :
9800 HAVE_W32=yes
9801 else
9802 as_fn_error "\`--with-w32' was specified, but windows.h
9803 cannot be found." "$LINENO" 5
9808 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9810 if test -n "$ac_tool_prefix"; then
9811 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9812 set dummy ${ac_tool_prefix}windres; ac_word=$2
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814 $as_echo_n "checking for $ac_word... " >&6; }
9815 if test "${ac_cv_prog_WINDRES+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 if test -n "$WINDRES"; then
9819 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9820 else
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in $PATH
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830 break 2
9832 done
9833 done
9834 IFS=$as_save_IFS
9838 WINDRES=$ac_cv_prog_WINDRES
9839 if test -n "$WINDRES"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9841 $as_echo "$WINDRES" >&6; }
9842 else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9849 if test -z "$ac_cv_prog_WINDRES"; then
9850 ac_ct_WINDRES=$WINDRES
9851 # Extract the first word of "windres", so it can be a program name with args.
9852 set dummy windres; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 if test -n "$ac_ct_WINDRES"; then
9859 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9860 else
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_prog_ac_ct_WINDRES="windres"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9872 done
9873 done
9874 IFS=$as_save_IFS
9878 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9879 if test -n "$ac_ct_WINDRES"; then
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9881 $as_echo "$ac_ct_WINDRES" >&6; }
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9884 $as_echo "no" >&6; }
9887 if test "x$ac_ct_WINDRES" = x; then
9888 WINDRES="as_fn_error "No resource compiler found." "$LINENO" 5"
9889 else
9890 case $cross_compiling:$ac_tool_warned in
9891 yes:)
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9894 ac_tool_warned=yes ;;
9895 esac
9896 WINDRES=$ac_ct_WINDRES
9898 else
9899 WINDRES="$ac_cv_prog_WINDRES"
9902 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9903 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9904 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9905 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9906 W32_RES="emacs.res"
9907 # Tell the linker that emacs.res is an object (which we compile from
9908 # the rc file), not a linker script.
9909 W32_RES_LINK="-Wl,emacs.res"
9916 if test "${HAVE_W32}" = "yes"; then
9917 window_system=w32
9918 with_xft=no
9921 ## $window_system is now set to the window system we will
9922 ## ultimately use.
9924 term_header=
9925 HAVE_X_WINDOWS=no
9926 HAVE_X11=no
9927 USE_X_TOOLKIT=none
9929 case "${window_system}" in
9930 x11 )
9931 HAVE_X_WINDOWS=yes
9932 HAVE_X11=yes
9933 term_header=xterm.h
9934 case "${with_x_toolkit}" in
9935 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9936 motif ) USE_X_TOOLKIT=MOTIF ;;
9937 gtk ) with_gtk=yes
9938 term_header=gtkutil.h
9939 USE_X_TOOLKIT=none ;;
9940 gtk2 ) with_gtk2=yes
9941 term_header=gtkutil.h
9942 USE_X_TOOLKIT=none ;;
9943 gtk3 ) with_gtk3=yes
9944 term_header=gtkutil.h
9945 USE_X_TOOLKIT=none ;;
9946 no ) USE_X_TOOLKIT=none ;;
9947 * ) USE_X_TOOLKIT=maybe ;;
9948 esac
9950 nextstep )
9951 term_header=nsterm.h
9953 w32 )
9954 term_header=w32term.h
9956 esac
9958 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9959 # Extract the first word of "X", so it can be a program name with args.
9960 set dummy X; ac_word=$2
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9962 $as_echo_n "checking for $ac_word... " >&6; }
9963 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 if test -n "$HAVE_XSERVER"; then
9967 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9968 else
9969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 for as_dir in $PATH
9972 IFS=$as_save_IFS
9973 test -z "$as_dir" && as_dir=.
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9976 ac_cv_prog_HAVE_XSERVER="true"
9977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9978 break 2
9980 done
9981 done
9982 IFS=$as_save_IFS
9984 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9987 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9988 if test -n "$HAVE_XSERVER"; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9990 $as_echo "$HAVE_XSERVER" >&6; }
9991 else
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9997 if test "$HAVE_XSERVER" = true ||
9998 test -n "$DISPLAY" ||
9999 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10000 as_fn_error "You seem to be running X, but no X development libraries
10001 were found. You should install the relevant development files for X
10002 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10003 sure you have development files for image handling, i.e.
10004 tiff, gif, jpeg, png and xpm.
10005 If you are sure you want Emacs compiled without X window support, pass
10006 --without-x
10007 to configure." "$LINENO" 5
10011 ### If we're using X11, we should use the X menu package.
10012 HAVE_MENUS=no
10013 case ${HAVE_X11} in
10014 yes ) HAVE_MENUS=yes ;;
10015 esac
10017 # Does the opsystem file prohibit the use of the GNU malloc?
10018 # Assume not, until told otherwise.
10019 GNU_MALLOC=yes
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
10022 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
10023 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 #include <malloc.h>
10029 static void hook (void) {}
10031 main ()
10033 malloc_set_state (malloc_get_state ());
10034 __after_morecore_hook = hook;
10035 __malloc_initialize_hook = hook;
10037 return 0;
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 emacs_cv_var_doug_lea_malloc=yes
10042 else
10043 emacs_cv_var_doug_lea_malloc=no
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
10049 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
10050 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
10053 system_malloc=no
10054 case "$opsys" in
10055 ## darwin ld insists on the use of malloc routines in the System framework.
10056 darwin|sol2-10) system_malloc=yes ;;
10057 esac
10059 if test "${system_malloc}" = "yes"; then
10061 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
10063 GNU_MALLOC=no
10064 GNU_MALLOC_reason="
10065 (The GNU allocators don't work with this system configuration.)"
10066 GMALLOC_OBJ=
10067 VMLIMIT_OBJ=
10068 else
10069 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
10070 VMLIMIT_OBJ=vm-limit.o
10072 for ac_header in sys/vlimit.h
10073 do :
10074 ac_fn_c_check_header_mongrel "$LINENO" "sys/vlimit.h" "ac_cv_header_sys_vlimit_h" "$ac_includes_default"
10075 if test "x$ac_cv_header_sys_vlimit_h" = x""yes; then :
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_SYS_VLIMIT_H 1
10078 _ACEOF
10082 done
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for data_start" >&5
10085 $as_echo_n "checking for data_start... " >&6; }
10086 if test "${emacs_cv_data_start+set}" = set; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 extern char data_start[]; char ch;
10093 main ()
10095 return data_start < &ch;
10097 return 0;
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 emacs_cv_data_start=yes
10102 else
10103 emacs_cv_data_start=no
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_data_start" >&5
10109 $as_echo "$emacs_cv_data_start" >&6; }
10110 if test $emacs_cv_data_start = yes; then
10112 $as_echo "#define HAVE_DATA_START 1" >>confdefs.h
10119 if test "$doug_lea_malloc" = "yes" ; then
10120 if test "$GNU_MALLOC" = yes ; then
10121 GNU_MALLOC_reason="
10122 (Using Doug Lea's new malloc from the GNU C Library.)"
10125 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10128 ## Use mmap directly for allocating larger buffers.
10129 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10130 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10131 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
10132 case "$opsys" in
10133 gnu*) REL_ALLOC=no ;;
10134 esac
10137 if test x"${REL_ALLOC}" = x; then
10138 REL_ALLOC=${GNU_MALLOC}
10141 use_mmap_for_buffers=no
10142 case "$opsys" in
10143 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
10144 esac
10153 for ac_func in getpagesize
10154 do :
10155 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10156 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10157 cat >>confdefs.h <<_ACEOF
10158 #define HAVE_GETPAGESIZE 1
10159 _ACEOF
10162 done
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10165 $as_echo_n "checking for working mmap... " >&6; }
10166 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10167 $as_echo_n "(cached) " >&6
10168 else
10169 if test "$cross_compiling" = yes; then :
10170 ac_cv_func_mmap_fixed_mapped=no
10171 else
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174 $ac_includes_default
10175 /* malloc might have been renamed as rpl_malloc. */
10176 #undef malloc
10178 /* Thanks to Mike Haertel and Jim Avera for this test.
10179 Here is a matrix of mmap possibilities:
10180 mmap private not fixed
10181 mmap private fixed at somewhere currently unmapped
10182 mmap private fixed at somewhere already mapped
10183 mmap shared not fixed
10184 mmap shared fixed at somewhere currently unmapped
10185 mmap shared fixed at somewhere already mapped
10186 For private mappings, we should verify that changes cannot be read()
10187 back from the file, nor mmap's back from the file at a different
10188 address. (There have been systems where private was not correctly
10189 implemented like the infamous i386 svr4.0, and systems where the
10190 VM page cache was not coherent with the file system buffer cache
10191 like early versions of FreeBSD and possibly contemporary NetBSD.)
10192 For shared mappings, we should conversely verify that changes get
10193 propagated back to all the places they're supposed to be.
10195 Grep wants private fixed already mapped.
10196 The main things grep needs to know about mmap are:
10197 * does it exist and is it safe to write into the mmap'd area
10198 * how to use it (BSD variants) */
10200 #include <fcntl.h>
10201 #include <sys/mman.h>
10203 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10204 char *malloc ();
10205 #endif
10207 /* This mess was copied from the GNU getpagesize.h. */
10208 #ifndef HAVE_GETPAGESIZE
10209 # ifdef _SC_PAGESIZE
10210 # define getpagesize() sysconf(_SC_PAGESIZE)
10211 # else /* no _SC_PAGESIZE */
10212 # ifdef HAVE_SYS_PARAM_H
10213 # include <sys/param.h>
10214 # ifdef EXEC_PAGESIZE
10215 # define getpagesize() EXEC_PAGESIZE
10216 # else /* no EXEC_PAGESIZE */
10217 # ifdef NBPG
10218 # define getpagesize() NBPG * CLSIZE
10219 # ifndef CLSIZE
10220 # define CLSIZE 1
10221 # endif /* no CLSIZE */
10222 # else /* no NBPG */
10223 # ifdef NBPC
10224 # define getpagesize() NBPC
10225 # else /* no NBPC */
10226 # ifdef PAGESIZE
10227 # define getpagesize() PAGESIZE
10228 # endif /* PAGESIZE */
10229 # endif /* no NBPC */
10230 # endif /* no NBPG */
10231 # endif /* no EXEC_PAGESIZE */
10232 # else /* no HAVE_SYS_PARAM_H */
10233 # define getpagesize() 8192 /* punt totally */
10234 # endif /* no HAVE_SYS_PARAM_H */
10235 # endif /* no _SC_PAGESIZE */
10237 #endif /* no HAVE_GETPAGESIZE */
10240 main ()
10242 char *data, *data2, *data3;
10243 const char *cdata2;
10244 int i, pagesize;
10245 int fd, fd2;
10247 pagesize = getpagesize ();
10249 /* First, make a file with some known garbage in it. */
10250 data = (char *) malloc (pagesize);
10251 if (!data)
10252 return 1;
10253 for (i = 0; i < pagesize; ++i)
10254 *(data + i) = rand ();
10255 umask (0);
10256 fd = creat ("conftest.mmap", 0600);
10257 if (fd < 0)
10258 return 2;
10259 if (write (fd, data, pagesize) != pagesize)
10260 return 3;
10261 close (fd);
10263 /* Next, check that the tail of a page is zero-filled. File must have
10264 non-zero length, otherwise we risk SIGBUS for entire page. */
10265 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
10266 if (fd2 < 0)
10267 return 4;
10268 cdata2 = "";
10269 if (write (fd2, cdata2, 1) != 1)
10270 return 5;
10271 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
10272 if (data2 == MAP_FAILED)
10273 return 6;
10274 for (i = 0; i < pagesize; ++i)
10275 if (*(data2 + i))
10276 return 7;
10277 close (fd2);
10278 if (munmap (data2, pagesize))
10279 return 8;
10281 /* Next, try to mmap the file at a fixed address which already has
10282 something else allocated at it. If we can, also make sure that
10283 we see the same garbage. */
10284 fd = open ("conftest.mmap", O_RDWR);
10285 if (fd < 0)
10286 return 9;
10287 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10288 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10289 return 10;
10290 for (i = 0; i < pagesize; ++i)
10291 if (*(data + i) != *(data2 + i))
10292 return 11;
10294 /* Finally, make sure that changes to the mapped area do not
10295 percolate back to the file as seen by read(). (This is a bug on
10296 some variants of i386 svr4.0.) */
10297 for (i = 0; i < pagesize; ++i)
10298 *(data2 + i) = *(data2 + i) + 1;
10299 data3 = (char *) malloc (pagesize);
10300 if (!data3)
10301 return 12;
10302 if (read (fd, data3, pagesize) != pagesize)
10303 return 13;
10304 for (i = 0; i < pagesize; ++i)
10305 if (*(data + i) != *(data3 + i))
10306 return 14;
10307 close (fd);
10308 return 0;
10310 _ACEOF
10311 if ac_fn_c_try_run "$LINENO"; then :
10312 ac_cv_func_mmap_fixed_mapped=yes
10313 else
10314 ac_cv_func_mmap_fixed_mapped=no
10316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10317 conftest.$ac_objext conftest.beam conftest.$ac_ext
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10322 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10323 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10325 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10328 rm -f conftest.mmap conftest.txt
10330 if test $use_mmap_for_buffers = yes; then
10332 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10334 REL_ALLOC=no
10337 LIBS="$LIBS_SYSTEM $LIBS"
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10340 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10341 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 ac_check_lib_save_LIBS=$LIBS
10345 LIBS="-ldnet $LIBS"
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char dnet_ntoa ();
10357 main ()
10359 return dnet_ntoa ();
10361 return 0;
10363 _ACEOF
10364 if ac_fn_c_try_link "$LINENO"; then :
10365 ac_cv_lib_dnet_dnet_ntoa=yes
10366 else
10367 ac_cv_lib_dnet_dnet_ntoa=no
10369 rm -f core conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371 LIBS=$ac_check_lib_save_LIBS
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10374 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10375 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10376 cat >>confdefs.h <<_ACEOF
10377 #define HAVE_LIBDNET 1
10378 _ACEOF
10380 LIBS="-ldnet $LIBS"
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10386 $as_echo_n "checking for main in -lXbsd... " >&6; }
10387 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10388 $as_echo_n "(cached) " >&6
10389 else
10390 ac_check_lib_save_LIBS=$LIBS
10391 LIBS="-lXbsd $LIBS"
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10397 main ()
10399 return main ();
10401 return 0;
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"; then :
10405 ac_cv_lib_Xbsd_main=yes
10406 else
10407 ac_cv_lib_Xbsd_main=no
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 LIBS=$ac_check_lib_save_LIBS
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10414 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10415 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10416 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10420 LIB_PTHREAD=
10424 if test "$ac_cv_header_pthread_h"; then
10425 if test "$GMALLOC_OBJ" = gmalloc.o; then
10426 emacs_pthread_function=pthread_atfork
10427 else
10428 emacs_pthread_function=pthread_self
10430 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10432 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10433 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10434 $as_echo_n "(cached) " >&6
10435 else
10436 ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-lpthread $LIBS"
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10441 /* Override any GCC internal prototype to avoid an error.
10442 Use char because int might match the return type of a GCC
10443 builtin and then its argument prototype would still apply. */
10444 #ifdef __cplusplus
10445 extern "C"
10446 #endif
10447 char $emacs_pthread_function ();
10449 main ()
10451 return $emacs_pthread_function ();
10453 return 0;
10455 _ACEOF
10456 if ac_fn_c_try_link "$LINENO"; then :
10457 eval "$as_ac_Lib=yes"
10458 else
10459 eval "$as_ac_Lib=no"
10461 rm -f core conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10463 LIBS=$ac_check_lib_save_LIBS
10465 eval ac_res=\$$as_ac_Lib
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10467 $as_echo "$ac_res" >&6; }
10468 eval as_val=\$$as_ac_Lib
10469 if test "x$as_val" = x""yes; then :
10470 HAVE_PTHREAD=yes
10474 if test "$HAVE_PTHREAD" = yes; then
10475 case "${canonical}" in
10476 *-hpux*) ;;
10477 *) LIB_PTHREAD="-lpthread"
10478 LIBS="$LIB_PTHREAD $LIBS" ;;
10479 esac
10481 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10487 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10488 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 ac_check_lib_save_LIBS=$LIBS
10492 LIBS="-lpthreads $LIBS"
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10496 /* Override any GCC internal prototype to avoid an error.
10497 Use char because int might match the return type of a GCC
10498 builtin and then its argument prototype would still apply. */
10499 #ifdef __cplusplus
10500 extern "C"
10501 #endif
10502 char cma_open ();
10504 main ()
10506 return cma_open ();
10508 return 0;
10510 _ACEOF
10511 if ac_fn_c_try_link "$LINENO"; then :
10512 ac_cv_lib_pthreads_cma_open=yes
10513 else
10514 ac_cv_lib_pthreads_cma_open=no
10516 rm -f core conftest.err conftest.$ac_objext \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10521 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10522 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10523 cat >>confdefs.h <<_ACEOF
10524 #define HAVE_LIBPTHREADS 1
10525 _ACEOF
10527 LIBS="-lpthreads $LIBS"
10532 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10533 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10534 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10535 ## added to LIBS in configure would never contain the pthreads part,
10536 ## but the value used in Makefiles might. FIXME?
10538 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10539 ## be harmless on older versions of X where it happens to exist.
10540 test "$opsys" = "aix4-2" && \
10541 test $ac_cv_lib_pthreads_cma_open = yes && \
10542 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10545 case ${host_os} in
10546 aix*)
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10548 $as_echo_n "checking for -bbigtoc option... " >&6; }
10549 if test "${gdb_cv_bigtoc+set}" = set; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10553 case $GCC in
10554 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10555 *) gdb_cv_bigtoc=-bbigtoc ;;
10556 esac
10558 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10563 main ()
10565 int i;
10567 return 0;
10569 _ACEOF
10570 if ac_fn_c_try_link "$LINENO"; then :
10572 else
10573 gdb_cv_bigtoc=
10575 rm -f core conftest.err conftest.$ac_objext \
10576 conftest$ac_exeext conftest.$ac_ext
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10580 $as_echo "$gdb_cv_bigtoc" >&6; }
10582 esac
10584 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10585 # used for the tests that follow. We set them back to REAL_CFLAGS and
10586 # REAL_CPPFLAGS later on.
10588 REAL_CFLAGS="$CFLAGS"
10589 REAL_CPPFLAGS="$CPPFLAGS"
10591 if test "${HAVE_X11}" = "yes"; then
10592 DEFS="$C_SWITCH_X_SITE $DEFS"
10593 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10594 LIBS="-lX11 $LIBS"
10595 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10596 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10598 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10599 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10600 # but it's more convenient here to set LD_RUN_PATH since this
10601 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10602 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10603 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10604 export LD_RUN_PATH
10607 if test "${opsys}" = "gnu-linux"; then
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10609 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10614 main ()
10616 XOpenDisplay ("foo");
10618 return 0;
10620 _ACEOF
10621 if ac_fn_c_try_link "$LINENO"; then :
10622 xgnu_linux_first_failure=no
10623 else
10624 xgnu_linux_first_failure=yes
10626 rm -f core conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 if test "${xgnu_linux_first_failure}" = "yes"; then
10629 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10630 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10631 OLD_CPPFLAGS="$CPPFLAGS"
10632 OLD_LIBS="$LIBS"
10633 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10634 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10635 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10636 LIBS="$LIBS -b i486-linuxaout"
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10641 main ()
10643 XOpenDisplay ("foo");
10645 return 0;
10647 _ACEOF
10648 if ac_fn_c_try_link "$LINENO"; then :
10649 xgnu_linux_second_failure=no
10650 else
10651 xgnu_linux_second_failure=yes
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 if test "${xgnu_linux_second_failure}" = "yes"; then
10656 # If we get the same failure with -b, there is no use adding -b.
10657 # So take it out. This plays safe.
10658 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10659 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10660 CPPFLAGS="$OLD_CPPFLAGS"
10661 LIBS="$OLD_LIBS"
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; }
10664 else
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666 $as_echo "yes" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10674 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10675 # header files included from there.
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10677 $as_echo_n "checking for Xkb... " >&6; }
10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10680 #include <X11/Xlib.h>
10681 #include <X11/XKBlib.h>
10683 main ()
10685 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10687 return 0;
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 emacs_xkb=yes
10692 else
10693 emacs_xkb=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10698 $as_echo "$emacs_xkb" >&6; }
10699 if test $emacs_xkb = yes; then
10701 $as_echo "#define HAVE_XKB 1" >>confdefs.h
10705 for ac_func in XrmSetDatabase XScreenResourceString \
10706 XScreenNumberOfScreen
10707 do :
10708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10709 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10710 eval as_val=\$$as_ac_var
10711 if test "x$as_val" = x""yes; then :
10712 cat >>confdefs.h <<_ACEOF
10713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10714 _ACEOF
10717 done
10721 if test "${window_system}" = "x11"; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10723 $as_echo_n "checking X11 version 6... " >&6; }
10724 if test "${emacs_cv_x11_version_6+set}" = set; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 #include <X11/Xlib.h>
10731 main ()
10733 #if XlibSpecificationRelease < 6
10734 fail;
10735 #endif
10738 return 0;
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742 emacs_cv_x11_version_6=yes
10743 else
10744 emacs_cv_x11_version_6=no
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10750 if test $emacs_cv_x11_version_6 = yes; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10752 $as_echo "6 or newer" >&6; }
10754 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10757 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10759 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10760 ## XIM support.
10761 case "$opsys" in
10762 sol2-*) : ;;
10764 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10767 esac
10768 else
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10770 $as_echo "before 6" >&6; }
10775 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10776 HAVE_RSVG=no
10777 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10778 if test "${with_rsvg}" != "no"; then
10779 RSVG_REQUIRED=2.11.0
10780 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10783 succeeded=no
10785 if test "$PKG_CONFIG" = "no" ; then
10787 else
10788 PKG_CONFIG_MIN_VERSION=0.9.0
10789 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10791 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10793 if "$PKG_CONFIG" --exists "$RSVG_MODULE" 2>&5 &&
10794 RSVG_CFLAGS=`"$PKG_CONFIG" --cflags "$RSVG_MODULE" 2>&5` &&
10795 RSVG_LIBS=`"$PKG_CONFIG" --libs "$RSVG_MODULE" 2>&5`; then
10796 edit_cflags="
10797 s,///*,/,g
10798 s/^/ /
10799 s/ -I/ $isystem/g
10800 s/^ //
10802 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10803 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10805 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10806 succeeded=yes
10807 else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809 $as_echo "no" >&6; }
10810 RSVG_CFLAGS=""
10811 RSVG_LIBS=""
10812 ## If we have a custom action on failure, don't print errors, but
10813 ## do set a variable so people can do so. Do it in a subshell
10814 ## to capture any diagnostics in invoking pkg-config.
10815 RSVG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$RSVG_MODULE") 2>&1`
10821 else
10822 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10823 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10827 if test $succeeded = yes; then
10828 HAVE_RSVG=yes
10829 else
10836 if test $HAVE_RSVG = yes; then
10838 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10840 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10841 LIBS="$RSVG_LIBS $LIBS"
10846 HAVE_IMAGEMAGICK=no
10847 if test "${HAVE_X11}" = "yes"; then
10848 if test "${with_imagemagick}" != "no"; then
10849 ## 6.2.8 is the earliest version known to work, but earlier versions
10850 ## might work - let us know if you find one.
10851 ## 6.0.7 does not work. See bug#7955.
10852 ## 6.8.2 makes Emacs crash; see Bug#13867.
10853 IMAGEMAGICK_MODULE="Wand >= 6.2.8 Wand != 6.8.2"
10855 succeeded=no
10857 if test "$PKG_CONFIG" = "no" ; then
10859 else
10860 PKG_CONFIG_MIN_VERSION=0.9.0
10861 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10863 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10865 if "$PKG_CONFIG" --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10866 IMAGEMAGICK_CFLAGS=`"$PKG_CONFIG" --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10867 IMAGEMAGICK_LIBS=`"$PKG_CONFIG" --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10868 edit_cflags="
10869 s,///*,/,g
10870 s/^/ /
10871 s/ -I/ $isystem/g
10872 s/^ //
10874 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10875 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10877 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10878 succeeded=yes
10879 else
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; }
10882 IMAGEMAGICK_CFLAGS=""
10883 IMAGEMAGICK_LIBS=""
10884 ## If we have a custom action on failure, don't print errors, but
10885 ## do set a variable so people can do so. Do it in a subshell
10886 ## to capture any diagnostics in invoking pkg-config.
10887 IMAGEMAGICK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10893 else
10894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10899 if test $succeeded = yes; then
10900 HAVE_IMAGEMAGICK=yes
10901 else
10908 if test $HAVE_IMAGEMAGICK = yes; then
10910 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10912 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10913 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10914 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10915 do :
10916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10918 eval as_val=\$$as_ac_var
10919 if test "x$as_val" = x""yes; then :
10920 cat >>confdefs.h <<_ACEOF
10921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10922 _ACEOF
10925 done
10932 HAVE_GTK=no
10933 GTK_OBJ=
10934 check_gtk2=no
10935 gtk3_pkg_errors=
10936 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10937 GLIB_REQUIRED=2.28
10938 GTK_REQUIRED=3.0
10939 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10942 succeeded=no
10944 if test "$PKG_CONFIG" = "no" ; then
10945 pkg_check_gtk=no
10946 else
10947 PKG_CONFIG_MIN_VERSION=0.9.0
10948 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10950 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10952 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
10953 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
10954 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
10955 edit_cflags="
10956 s,///*,/,g
10957 s/^/ /
10958 s/ -I/ $isystem/g
10959 s/^ //
10961 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10962 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10964 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10965 succeeded=yes
10966 else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968 $as_echo "no" >&6; }
10969 GTK_CFLAGS=""
10970 GTK_LIBS=""
10971 ## If we have a custom action on failure, don't print errors, but
10972 ## do set a variable so people can do so. Do it in a subshell
10973 ## to capture any diagnostics in invoking pkg-config.
10974 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
10980 else
10981 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10982 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10986 if test $succeeded = yes; then
10987 pkg_check_gtk=yes
10988 else
10989 pkg_check_gtk=no
10992 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10993 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10995 if test "$pkg_check_gtk" = "yes"; then
10997 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10999 GTK_OBJ=emacsgtkfixed.o
11000 term_header=gtkutil.h
11001 USE_GTK_TOOLKIT="GTK3"
11002 if test "x$ac_enable_gtk_deprecation_warnings" = x; then
11003 GTK_CFLAGS="$GTK_CFLAGS -DGDK_DISABLE_DEPRECATION_WARNINGS"
11005 else
11006 check_gtk2=yes
11007 gtk3_pkg_errors="$GTK_PKG_ERRORS "
11011 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
11012 GLIB_REQUIRED=2.10
11013 GTK_REQUIRED=2.10
11014 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11017 succeeded=no
11019 if test "$PKG_CONFIG" = "no" ; then
11020 pkg_check_gtk=no
11021 else
11022 PKG_CONFIG_MIN_VERSION=0.9.0
11023 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11025 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11027 if "$PKG_CONFIG" --exists "$GTK_MODULES" 2>&5 &&
11028 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK_MODULES" 2>&5` &&
11029 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK_MODULES" 2>&5`; then
11030 edit_cflags="
11031 s,///*,/,g
11032 s/^/ /
11033 s/ -I/ $isystem/g
11034 s/^ //
11036 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
11037 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
11039 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
11040 succeeded=yes
11041 else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11044 GTK_CFLAGS=""
11045 GTK_LIBS=""
11046 ## If we have a custom action on failure, don't print errors, but
11047 ## do set a variable so people can do so. Do it in a subshell
11048 ## to capture any diagnostics in invoking pkg-config.
11049 GTK_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "$GTK_MODULES") 2>&1`
11055 else
11056 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11057 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11061 if test $succeeded = yes; then
11062 pkg_check_gtk=yes
11063 else
11064 pkg_check_gtk=no
11067 if test "$pkg_check_gtk" = "no" &&
11068 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
11069 then
11070 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
11072 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
11075 if test x"$pkg_check_gtk" = xyes; then
11079 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11080 CFLAGS="$CFLAGS $GTK_CFLAGS"
11081 LIBS="$GTK_LIBS $LIBS"
11082 GTK_COMPILES=no
11083 for ac_func in gtk_main
11084 do :
11085 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11086 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11087 cat >>confdefs.h <<_ACEOF
11088 #define HAVE_GTK_MAIN 1
11089 _ACEOF
11090 GTK_COMPILES=yes
11092 done
11094 if test "${GTK_COMPILES}" != "yes"; then
11095 if test "$USE_X_TOOLKIT" != "maybe"; then
11096 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11098 else
11099 HAVE_GTK=yes
11101 $as_echo "#define USE_GTK 1" >>confdefs.h
11103 GTK_OBJ="gtkutil.o $GTK_OBJ"
11104 USE_X_TOOLKIT=none
11105 if "$PKG_CONFIG" --atleast-version=2.10 gtk+-2.0; then
11107 else
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11109 closing open displays. This is no problem if you just use
11110 one display, but if you use more than one and close one of them
11111 Emacs may crash." >&5
11112 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11113 closing open displays. This is no problem if you just use
11114 one display, but if you use more than one and close one of them
11115 Emacs may crash." >&2;}
11116 sleep 3
11124 if test "${HAVE_GTK}" = "yes"; then
11126 if test "$with_toolkit_scroll_bars" != no; then
11127 with_toolkit_scroll_bars=yes
11130 HAVE_GTK_FILE_SELECTION=no
11131 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11132 #include <gtk/gtk.h>
11134 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11135 HAVE_GTK_FILE_SELECTION=yes
11136 else
11137 HAVE_GTK_FILE_SELECTION=no
11140 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11141 for ac_func in gtk_file_selection_new
11142 do :
11143 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11144 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11145 cat >>confdefs.h <<_ACEOF
11146 #define HAVE_GTK_FILE_SELECTION_NEW 1
11147 _ACEOF
11150 done
11154 HAVE_GTK_HANDLE_BOX=no
11155 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_HANDLE_BOX" "ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" "$ac_includes_default
11156 #include <gtk/gtk.h>
11158 if test "x$ac_cv_have_decl_GTK_TYPE_HANDLE_BOX" = x""yes; then :
11159 HAVE_GTK_HANDLE_BOX=yes
11160 else
11161 HAVE_GTK_HANDLE_BOX=no
11164 if test "$HAVE_GTK_HANDLE_BOX" = yes; then
11165 for ac_func in gtk_handle_box_new
11166 do :
11167 ac_fn_c_check_func "$LINENO" "gtk_handle_box_new" "ac_cv_func_gtk_handle_box_new"
11168 if test "x$ac_cv_func_gtk_handle_box_new" = x""yes; then :
11169 cat >>confdefs.h <<_ACEOF
11170 #define HAVE_GTK_HANDLE_BOX_NEW 1
11171 _ACEOF
11174 done
11178 HAVE_GTK_TEAROFF_MENU_ITEM=no
11179 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_TEAROFF_MENU_ITEM" "ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" "$ac_includes_default
11180 #include <gtk/gtk.h>
11182 if test "x$ac_cv_have_decl_GTK_TYPE_TEAROFF_MENU_ITEM" = x""yes; then :
11183 HAVE_GTK_TEAROFF_MENU_ITEM=yes
11184 else
11185 HAVE_GTK_TEAROFF_MENU_ITEM=no
11188 if test "$HAVE_GTK_TEAROFF_MENU_ITEM" = yes; then
11189 for ac_func in gtk_tearoff_menu_item_new
11190 do :
11191 ac_fn_c_check_func "$LINENO" "gtk_tearoff_menu_item_new" "ac_cv_func_gtk_tearoff_menu_item_new"
11192 if test "x$ac_cv_func_gtk_tearoff_menu_item_new" = x""yes; then :
11193 cat >>confdefs.h <<_ACEOF
11194 #define HAVE_GTK_TEAROFF_MENU_ITEM_NEW 1
11195 _ACEOF
11198 done
11202 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
11203 gtk_dialog_get_action_area gtk_widget_get_sensitive \
11204 gtk_widget_get_mapped gtk_adjustment_get_page_size \
11205 gtk_orientable_set_orientation \
11206 gtk_window_set_has_resize_grip
11207 do :
11208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11210 eval as_val=\$$as_ac_var
11211 if test "x$as_val" = x""yes; then :
11212 cat >>confdefs.h <<_ACEOF
11213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11214 _ACEOF
11217 done
11220 term_header=gtkutil.h
11223 HAVE_DBUS=no
11224 DBUS_OBJ=
11225 if test "${with_dbus}" = "yes"; then
11227 succeeded=no
11229 if test "$PKG_CONFIG" = "no" ; then
11230 HAVE_DBUS=no
11231 else
11232 PKG_CONFIG_MIN_VERSION=0.9.0
11233 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
11235 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
11237 if "$PKG_CONFIG" --exists "dbus-1 >= 1.0" 2>&5 &&
11238 DBUS_CFLAGS=`"$PKG_CONFIG" --cflags "dbus-1 >= 1.0" 2>&5` &&
11239 DBUS_LIBS=`"$PKG_CONFIG" --libs "dbus-1 >= 1.0" 2>&5`; then
11240 edit_cflags="
11241 s,///*,/,g
11242 s/^/ /
11243 s/ -I/ $isystem/g
11244 s/^ //
11246 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
11247 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
11249 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
11250 succeeded=yes
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11254 DBUS_CFLAGS=""
11255 DBUS_LIBS=""
11256 ## If we have a custom action on failure, don't print errors, but
11257 ## do set a variable so people can do so. Do it in a subshell
11258 ## to capture any diagnostics in invoking pkg-config.
11259 DBUS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "dbus-1 >= 1.0") 2>&1`
11265 else
11266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11271 if test $succeeded = yes; then
11272 HAVE_DBUS=yes
11273 else
11274 HAVE_DBUS=no
11277 if test "$HAVE_DBUS" = yes; then
11278 LIBS="$LIBS $DBUS_LIBS"
11280 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
11282 for ac_func in dbus_watch_get_unix_fd \
11283 dbus_type_is_valid \
11284 dbus_validate_bus_name \
11285 dbus_validate_path \
11286 dbus_validate_interface \
11287 dbus_validate_member
11288 do :
11289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11290 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11291 eval as_val=\$$as_ac_var
11292 if test "x$as_val" = x""yes; then :
11293 cat >>confdefs.h <<_ACEOF
11294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11295 _ACEOF
11298 done
11300 DBUS_OBJ=dbusbind.o
11305 HAVE_GSETTINGS=no
11306 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
11308 succeeded=no
11310 if test "$PKG_CONFIG" = "no" ; then
11311 HAVE_GSETTINGS=no
11312 else
11313 PKG_CONFIG_MIN_VERSION=0.9.0
11314 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
11316 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
11318 if "$PKG_CONFIG" --exists "gio-2.0 >= 2.26" 2>&5 &&
11319 GSETTINGS_CFLAGS=`"$PKG_CONFIG" --cflags "gio-2.0 >= 2.26" 2>&5` &&
11320 GSETTINGS_LIBS=`"$PKG_CONFIG" --libs "gio-2.0 >= 2.26" 2>&5`; then
11321 edit_cflags="
11322 s,///*,/,g
11323 s/^/ /
11324 s/ -I/ $isystem/g
11325 s/^ //
11327 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
11328 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
11330 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
11331 succeeded=yes
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11335 GSETTINGS_CFLAGS=""
11336 GSETTINGS_LIBS=""
11337 ## If we have a custom action on failure, don't print errors, but
11338 ## do set a variable so people can do so. Do it in a subshell
11339 ## to capture any diagnostics in invoking pkg-config.
11340 GSETTINGS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gio-2.0 >= 2.26") 2>&1`
11346 else
11347 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11348 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11352 if test $succeeded = yes; then
11353 HAVE_GSETTINGS=yes
11354 else
11355 HAVE_GSETTINGS=no
11358 if test "$HAVE_GSETTINGS" = "yes"; then
11360 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
11362 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11363 SETTINGS_LIBS="$GSETTINGS_LIBS"
11367 HAVE_GCONF=no
11368 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11370 succeeded=no
11372 if test "$PKG_CONFIG" = "no" ; then
11373 HAVE_GCONF=no
11374 else
11375 PKG_CONFIG_MIN_VERSION=0.9.0
11376 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11378 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11380 if "$PKG_CONFIG" --exists "gconf-2.0 >= 2.13" 2>&5 &&
11381 GCONF_CFLAGS=`"$PKG_CONFIG" --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11382 GCONF_LIBS=`"$PKG_CONFIG" --libs "gconf-2.0 >= 2.13" 2>&5`; then
11383 edit_cflags="
11384 s,///*,/,g
11385 s/^/ /
11386 s/ -I/ $isystem/g
11387 s/^ //
11389 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11390 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11392 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11393 succeeded=yes
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11397 GCONF_CFLAGS=""
11398 GCONF_LIBS=""
11399 ## If we have a custom action on failure, don't print errors, but
11400 ## do set a variable so people can do so. Do it in a subshell
11401 ## to capture any diagnostics in invoking pkg-config.
11402 GCONF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gconf-2.0 >= 2.13") 2>&1`
11408 else
11409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11414 if test $succeeded = yes; then
11415 HAVE_GCONF=yes
11416 else
11417 HAVE_GCONF=no
11420 if test "$HAVE_GCONF" = yes; then
11422 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11424 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11425 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11429 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11431 succeeded=no
11433 if test "$PKG_CONFIG" = "no" ; then
11434 HAVE_GOBJECT=no
11435 else
11436 PKG_CONFIG_MIN_VERSION=0.9.0
11437 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11439 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11441 if "$PKG_CONFIG" --exists "gobject-2.0 >= 2.0" 2>&5 &&
11442 GOBJECT_CFLAGS=`"$PKG_CONFIG" --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11443 GOBJECT_LIBS=`"$PKG_CONFIG" --libs "gobject-2.0 >= 2.0" 2>&5`; then
11444 edit_cflags="
11445 s,///*,/,g
11446 s/^/ /
11447 s/ -I/ $isystem/g
11448 s/^ //
11450 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11451 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11453 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11454 succeeded=yes
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11458 GOBJECT_CFLAGS=""
11459 GOBJECT_LIBS=""
11460 ## If we have a custom action on failure, don't print errors, but
11461 ## do set a variable so people can do so. Do it in a subshell
11462 ## to capture any diagnostics in invoking pkg-config.
11463 GOBJECT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gobject-2.0 >= 2.0") 2>&1`
11469 else
11470 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11471 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11475 if test $succeeded = yes; then
11476 HAVE_GOBJECT=yes
11477 else
11478 HAVE_GOBJECT=no
11481 if test "$HAVE_GOBJECT" = "yes"; then
11482 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11483 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11485 SAVE_CFLAGS="$CFLAGS"
11486 SAVE_LIBS="$LIBS"
11487 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11488 LIBS="$SETTINGS_LIBS $LIBS"
11489 for ac_func in g_type_init
11490 do :
11491 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11492 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11493 cat >>confdefs.h <<_ACEOF
11494 #define HAVE_G_TYPE_INIT 1
11495 _ACEOF
11498 done
11500 CFLAGS="$SAVE_CFLAGS"
11501 LIBS="$SAVE_LIBS"
11507 HAVE_LIBSELINUX=no
11508 LIBSELINUX_LIBS=
11509 if test "${with_selinux}" = "yes"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11511 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11512 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-lselinux $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char lgetfilecon ();
11528 main ()
11530 return lgetfilecon ();
11532 return 0;
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_selinux_lgetfilecon=yes
11537 else
11538 ac_cv_lib_selinux_lgetfilecon=no
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11545 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11546 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11547 HAVE_LIBSELINUX=yes
11548 else
11549 HAVE_LIBSELINUX=no
11552 if test "$HAVE_LIBSELINUX" = yes; then
11554 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11556 LIBSELINUX_LIBS=-lselinux
11561 HAVE_GNUTLS=no
11562 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11563 if test "${with_gnutls}" = "yes" ; then
11565 succeeded=no
11567 if test "$PKG_CONFIG" = "no" ; then
11568 HAVE_GNUTLS=no
11569 else
11570 PKG_CONFIG_MIN_VERSION=0.9.0
11571 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11573 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11575 if "$PKG_CONFIG" --exists "gnutls >= 2.6.6" 2>&5 &&
11576 LIBGNUTLS_CFLAGS=`"$PKG_CONFIG" --cflags "gnutls >= 2.6.6" 2>&5` &&
11577 LIBGNUTLS_LIBS=`"$PKG_CONFIG" --libs "gnutls >= 2.6.6" 2>&5`; then
11578 edit_cflags="
11579 s,///*,/,g
11580 s/^/ /
11581 s/ -I/ $isystem/g
11582 s/^ //
11584 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11585 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11587 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11588 succeeded=yes
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11592 LIBGNUTLS_CFLAGS=""
11593 LIBGNUTLS_LIBS=""
11594 ## If we have a custom action on failure, don't print errors, but
11595 ## do set a variable so people can do so. Do it in a subshell
11596 ## to capture any diagnostics in invoking pkg-config.
11597 LIBGNUTLS_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "gnutls >= 2.6.6") 2>&1`
11603 else
11604 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11605 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11609 if test $succeeded = yes; then
11610 HAVE_GNUTLS=yes
11611 else
11612 HAVE_GNUTLS=no
11615 if test "${HAVE_GNUTLS}" = "yes"; then
11617 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11621 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11622 LIBS="$LIBGNUTLS_LIBS $LIBS"
11623 for ac_func in gnutls_certificate_set_verify_function
11624 do :
11625 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11626 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11627 cat >>confdefs.h <<_ACEOF
11628 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11629 _ACEOF
11630 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11632 done
11635 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11637 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11645 if test "${with_inotify}" = "yes"; then
11646 for ac_header in sys/inotify.h
11647 do :
11648 ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
11649 if test "x$ac_cv_header_sys_inotify_h" = x""yes; then :
11650 cat >>confdefs.h <<_ACEOF
11651 #define HAVE_SYS_INOTIFY_H 1
11652 _ACEOF
11656 done
11658 if test "$ac_cv_header_sys_inotify_h" = yes ; then
11659 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
11660 if test "x$ac_cv_func_inotify_init1" = x""yes; then :
11666 if test "$ac_cv_func_inotify_init1" = yes; then
11668 $as_echo "#define HAVE_INOTIFY 1" >>confdefs.h
11672 HAVE_POSIX_ACL=no
11673 LIBACL_LIBS=
11674 if test "${with_acl}" = "yes"; then
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_set_file in -lacl" >&5
11676 $as_echo_n "checking for acl_set_file in -lacl... " >&6; }
11677 if test "${ac_cv_lib_acl_acl_set_file+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-lacl $LIBS"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11685 /* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 char acl_set_file ();
11693 main ()
11695 return acl_set_file ();
11697 return 0;
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_acl_acl_set_file=yes
11702 else
11703 ac_cv_lib_acl_acl_set_file=no
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_set_file" >&5
11710 $as_echo "$ac_cv_lib_acl_acl_set_file" >&6; }
11711 if test "x$ac_cv_lib_acl_acl_set_file" = x""yes; then :
11712 HAVE_POSIX_ACL=yes
11713 else
11714 HAVE_POSIX_ACL=no
11717 if test "$HAVE_POSIX_ACL" = yes; then
11719 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11721 LIBACL_LIBS=-lacl
11722 else
11723 ac_fn_c_check_func "$LINENO" "acl_set_file" "ac_cv_func_acl_set_file"
11724 if test "x$ac_cv_func_acl_set_file" = x""yes; then :
11725 HAVE_POSIX_ACL=yes
11726 else
11727 HAVE_POSIX_ACL=no
11730 if test "$HAVE_POSIX_ACL" = yes; then
11732 $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
11739 HAVE_XAW3D=no
11740 LUCID_LIBW=
11741 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11742 if test "$with_xaw3d" != no; then
11743 if test "${emacs_cv_xaw3d+set}" = set; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11749 #include <X11/Intrinsic.h>
11750 #include <X11/Xaw3d/Simple.h>
11752 main ()
11756 return 0;
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11761 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11762 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 ac_check_lib_save_LIBS=$LIBS
11766 LIBS="-lXaw3d $LIBS"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char XawScrollbarSetThumb ();
11778 main ()
11780 return XawScrollbarSetThumb ();
11782 return 0;
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11787 else
11788 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11795 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11796 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11797 emacs_cv_xaw3d=yes
11798 else
11799 emacs_cv_xaw3d=no
11802 else
11803 emacs_cv_xaw3d=no
11805 rm -f core conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11809 else
11810 emacs_cv_xaw3d=no
11812 if test $emacs_cv_xaw3d = yes; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11814 $as_echo_n "checking for xaw3d... " >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11816 $as_echo "yes; using Lucid toolkit" >&6; }
11817 USE_X_TOOLKIT=LUCID
11818 HAVE_XAW3D=yes
11819 LUCID_LIBW=-lXaw3d
11821 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11825 $as_echo_n "checking for xaw3d... " >&6; }
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11829 $as_echo_n "checking for libXaw... " >&6; }
11830 if test "${emacs_cv_xaw+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11836 #include <X11/Intrinsic.h>
11837 #include <X11/Xaw/Simple.h>
11839 main ()
11843 return 0;
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 emacs_cv_xaw=yes
11848 else
11849 emacs_cv_xaw=no
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11855 if test $emacs_cv_xaw = yes; then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11857 $as_echo "yes; using Lucid toolkit" >&6; }
11858 USE_X_TOOLKIT=LUCID
11859 LUCID_LIBW=-lXaw
11860 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11861 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11862 else
11863 as_fn_error "No X toolkit could be found.
11864 If you are sure you want Emacs compiled without an X toolkit, pass
11865 --with-x-toolkit=no
11866 to configure. Otherwise, install the development libraries for the toolkit
11867 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11872 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11874 LIBXTR6=
11875 if test "${USE_X_TOOLKIT}" != "none"; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11877 $as_echo_n "checking X11 toolkit version... " >&6; }
11878 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883 #include <X11/Intrinsic.h>
11885 main ()
11887 #if XtSpecificationRelease < 6
11888 fail;
11889 #endif
11892 return 0;
11894 _ACEOF
11895 if ac_fn_c_try_link "$LINENO"; then :
11896 emacs_cv_x11_toolkit_version_6=yes
11897 else
11898 emacs_cv_x11_toolkit_version_6=no
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11904 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11905 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11907 $as_echo "6 or newer" >&6; }
11909 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11911 LIBXTR6="-lSM -lICE"
11912 case "$opsys" in
11913 ## Use libw.a along with X11R6 Xt.
11914 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11915 esac
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11918 $as_echo "before 6" >&6; }
11921 OLDLIBS="$LIBS"
11922 if test x$HAVE_X11XTR6 = xyes; then
11923 LIBS="-lXt -lSM -lICE $LIBS"
11924 else
11925 LIBS="-lXt $LIBS"
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11928 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11929 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-lXmu $LIBS"
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 char XmuConvertStandardSelection ();
11945 main ()
11947 return XmuConvertStandardSelection ();
11949 return 0;
11951 _ACEOF
11952 if ac_fn_c_try_link "$LINENO"; then :
11953 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11954 else
11955 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11957 rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959 LIBS=$ac_check_lib_save_LIBS
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11962 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11963 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11964 cat >>confdefs.h <<_ACEOF
11965 #define HAVE_LIBXMU 1
11966 _ACEOF
11968 LIBS="-lXmu $LIBS"
11972 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11976 LIBXMU=-lXmu
11977 case $opsys in
11978 ## These systems don't supply Xmu.
11979 hpux* | aix4-2 )
11980 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11982 esac
11985 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11986 if test "${HAVE_X11}" = "yes"; then
11987 if test "${USE_X_TOOLKIT}" != "none"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11989 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11990 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-lXext $LIBS"
11995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11998 /* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12001 #ifdef __cplusplus
12002 extern "C"
12003 #endif
12004 char XShapeQueryExtension ();
12006 main ()
12008 return XShapeQueryExtension ();
12010 return 0;
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 ac_cv_lib_Xext_XShapeQueryExtension=yes
12015 else
12016 ac_cv_lib_Xext_XShapeQueryExtension=no
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12020 LIBS=$ac_check_lib_save_LIBS
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12023 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12024 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
12025 cat >>confdefs.h <<_ACEOF
12026 #define HAVE_LIBXEXT 1
12027 _ACEOF
12029 LIBS="-lXext $LIBS"
12036 LIBXP=
12037 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12038 # OpenMotif may be installed in such a way on some GNU/Linux systems.
12039 if test -d /usr/include/openmotif; then
12040 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
12041 emacs_cv_openmotif=yes
12042 case "$canonical" in
12043 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
12044 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
12047 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
12048 esac
12049 else
12050 emacs_cv_openmotif=no
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
12053 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
12054 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <Xm/Xm.h>
12061 main ()
12063 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12064 int x = 5;
12065 #else
12066 Motif version prior to 2.1.
12067 #endif
12069 return 0;
12071 _ACEOF
12072 if ac_fn_c_try_compile "$LINENO"; then :
12073 emacs_cv_motif_version_2_1=yes
12074 else
12075 emacs_cv_motif_version_2_1=no
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
12080 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12081 if test $emacs_cv_motif_version_2_1 = yes; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
12083 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12084 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 ac_check_lib_save_LIBS=$LIBS
12088 LIBS="-lXp $LIBS"
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12092 /* Override any GCC internal prototype to avoid an error.
12093 Use char because int might match the return type of a GCC
12094 builtin and then its argument prototype would still apply. */
12095 #ifdef __cplusplus
12096 extern "C"
12097 #endif
12098 char XpCreateContext ();
12100 main ()
12102 return XpCreateContext ();
12104 return 0;
12106 _ACEOF
12107 if ac_fn_c_try_link "$LINENO"; then :
12108 ac_cv_lib_Xp_XpCreateContext=yes
12109 else
12110 ac_cv_lib_Xp_XpCreateContext=no
12112 rm -f core conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
12114 LIBS=$ac_check_lib_save_LIBS
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12117 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12118 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
12119 LIBXP=-lXp
12122 if test x$emacs_cv_openmotif = xyes; then
12123 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
12127 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12128 if test "${emacs_cv_lesstif+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 # We put this in CFLAGS temporarily to precede other -I options
12132 # that might be in CFLAGS temporarily.
12133 # We put this in CPPFLAGS where it precedes the other -I options.
12134 OLD_CPPFLAGS=$CPPFLAGS
12135 OLD_CFLAGS=$CFLAGS
12136 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12137 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12140 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12142 main ()
12144 int x = 5;
12146 return 0;
12148 _ACEOF
12149 if ac_fn_c_try_compile "$LINENO"; then :
12150 emacs_cv_lesstif=yes
12151 else
12152 emacs_cv_lesstif=no
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
12157 $as_echo "$emacs_cv_lesstif" >&6; }
12158 if test $emacs_cv_lesstif = yes; then
12159 # Make sure this -I option remains in CPPFLAGS after it is set
12160 # back to REAL_CPPFLAGS.
12161 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12162 # have those other -I options anyway. Ultimately, having this
12163 # directory ultimately in CPPFLAGS will be enough.
12164 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12165 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12166 else
12167 CFLAGS=$OLD_CFLAGS
12168 CPPFLAGS=$OLD_CPPFLAGS
12171 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
12172 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
12174 else
12175 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
12182 USE_TOOLKIT_SCROLL_BARS=no
12183 if test "${with_toolkit_scroll_bars}" != "no"; then
12184 if test "${USE_X_TOOLKIT}" != "none"; then
12185 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12186 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12188 HAVE_XAW3D=no
12189 USE_TOOLKIT_SCROLL_BARS=yes
12190 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
12191 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12193 USE_TOOLKIT_SCROLL_BARS=yes
12195 elif test "${HAVE_GTK}" = "yes"; then
12196 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12198 USE_TOOLKIT_SCROLL_BARS=yes
12199 elif test "${HAVE_NS}" = "yes"; then
12200 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12202 USE_TOOLKIT_SCROLL_BARS=yes
12203 elif test "${HAVE_W32}" = "yes"; then
12204 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
12206 USE_TOOLKIT_SCROLL_BARS=yes
12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12213 #include <X11/Xlib.h>
12214 #include <X11/Xresource.h>
12216 main ()
12218 XIMProc callback;
12220 return 0;
12222 _ACEOF
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224 HAVE_XIM=yes
12226 $as_echo "#define HAVE_XIM 1" >>confdefs.h
12228 else
12229 HAVE_XIM=no
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 if test "${with_xim}" != "no"; then
12236 $as_echo "#define USE_XIM 1" >>confdefs.h
12241 if test "${HAVE_XIM}" != "no"; then
12242 late_CFLAGS=$CFLAGS
12243 if test "$GCC" = yes; then
12244 CFLAGS="$CFLAGS --pedantic-errors"
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12249 #include <X11/Xlib.h>
12250 #include <X11/Xresource.h>
12252 main ()
12254 Display *display;
12255 XrmDatabase db;
12256 char *res_name;
12257 char *res_class;
12258 XIMProc callback;
12259 XPointer *client_data;
12260 #ifndef __GNUC__
12261 /* If we're not using GCC, it's probably not XFree86, and this is
12262 probably right, but we can't use something like --pedantic-errors. */
12263 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12264 char*, XIMProc, XPointer*);
12265 #endif
12266 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12267 client_data);
12269 return 0;
12271 _ACEOF
12272 if ac_fn_c_try_compile "$LINENO"; then :
12273 emacs_cv_arg6_star=yes
12275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 if test "$emacs_cv_arg6_star" = yes; then
12277 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
12279 else
12280 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
12283 CFLAGS=$late_CFLAGS
12286 ### Start of font-backend (under any platform) section.
12287 # (nothing here yet -- this is a placeholder)
12288 ### End of font-backend (under any platform) section.
12290 ### Start of font-backend (under X11) section.
12291 if test "${HAVE_X11}" = "yes"; then
12293 succeeded=no
12295 if test "$PKG_CONFIG" = "no" ; then
12296 HAVE_FC=no
12297 else
12298 PKG_CONFIG_MIN_VERSION=0.9.0
12299 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
12301 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12303 if "$PKG_CONFIG" --exists "fontconfig >= 2.2.0" 2>&5 &&
12304 FONTCONFIG_CFLAGS=`"$PKG_CONFIG" --cflags "fontconfig >= 2.2.0" 2>&5` &&
12305 FONTCONFIG_LIBS=`"$PKG_CONFIG" --libs "fontconfig >= 2.2.0" 2>&5`; then
12306 edit_cflags="
12307 s,///*,/,g
12308 s/^/ /
12309 s/ -I/ $isystem/g
12310 s/^ //
12312 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
12313 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
12315 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
12316 succeeded=yes
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12320 FONTCONFIG_CFLAGS=""
12321 FONTCONFIG_LIBS=""
12322 ## If we have a custom action on failure, don't print errors, but
12323 ## do set a variable so people can do so. Do it in a subshell
12324 ## to capture any diagnostics in invoking pkg-config.
12325 FONTCONFIG_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "fontconfig >= 2.2.0") 2>&1`
12331 else
12332 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12333 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12337 if test $succeeded = yes; then
12338 HAVE_FC=yes
12339 else
12340 HAVE_FC=no
12344 ## Use -lXft if available, unless `--with-xft=no'.
12345 HAVE_XFT=maybe
12346 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
12347 with_xft="no";
12349 if test "x${with_xft}" != "xno"; then
12352 succeeded=no
12354 if test "$PKG_CONFIG" = "no" ; then
12355 HAVE_XFT=no
12356 else
12357 PKG_CONFIG_MIN_VERSION=0.9.0
12358 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
12360 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
12362 if "$PKG_CONFIG" --exists "xft >= 0.13.0" 2>&5 &&
12363 XFT_CFLAGS=`"$PKG_CONFIG" --cflags "xft >= 0.13.0" 2>&5` &&
12364 XFT_LIBS=`"$PKG_CONFIG" --libs "xft >= 0.13.0" 2>&5`; then
12365 edit_cflags="
12366 s,///*,/,g
12367 s/^/ /
12368 s/ -I/ $isystem/g
12369 s/^ //
12371 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
12372 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
12374 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
12375 succeeded=yes
12376 else
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12379 XFT_CFLAGS=""
12380 XFT_LIBS=""
12381 ## If we have a custom action on failure, don't print errors, but
12382 ## do set a variable so people can do so. Do it in a subshell
12383 ## to capture any diagnostics in invoking pkg-config.
12384 XFT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "xft >= 0.13.0") 2>&1`
12390 else
12391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12396 if test $succeeded = yes; then
12398 else
12399 HAVE_XFT=no
12402 ## Because xftfont.c uses XRenderQueryExtension, we also
12403 ## need to link to -lXrender.
12404 HAVE_XRENDER=no
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
12406 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
12407 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 ac_check_lib_save_LIBS=$LIBS
12411 LIBS="-lXrender $LIBS"
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char XRenderQueryExtension ();
12423 main ()
12425 return XRenderQueryExtension ();
12427 return 0;
12429 _ACEOF
12430 if ac_fn_c_try_link "$LINENO"; then :
12431 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12432 else
12433 ac_cv_lib_Xrender_XRenderQueryExtension=no
12435 rm -f core conftest.err conftest.$ac_objext \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12440 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12441 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12442 HAVE_XRENDER=yes
12445 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12446 OLD_CPPFLAGS="$CPPFLAGS"
12447 OLD_CFLAGS="$CFLAGS"
12448 OLD_LIBS="$LIBS"
12449 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12450 CFLAGS="$CFLAGS $XFT_CFLAGS"
12451 XFT_LIBS="-lXrender $XFT_LIBS"
12452 LIBS="$XFT_LIBS $LIBS"
12453 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12454 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12456 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12457 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 ac_check_lib_save_LIBS=$LIBS
12461 LIBS="-lXft $XFT_LIBS $LIBS"
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12465 /* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 char XftFontOpen ();
12473 main ()
12475 return XftFontOpen ();
12477 return 0;
12479 _ACEOF
12480 if ac_fn_c_try_link "$LINENO"; then :
12481 ac_cv_lib_Xft_XftFontOpen=yes
12482 else
12483 ac_cv_lib_Xft_XftFontOpen=no
12485 rm -f core conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12490 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12491 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12492 HAVE_XFT=yes
12499 if test "${HAVE_XFT}" = "yes"; then
12501 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12504 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12505 else
12506 CPPFLAGS="$OLD_CPPFLAGS"
12507 CFLAGS="$OLD_CFLAGS"
12508 LIBS="$OLD_LIBS"
12509 fi # "${HAVE_XFT}" = "yes"
12510 fi # "$HAVE_XFT" != no
12511 fi # "x${with_xft}" != "xno"
12513 ## We used to allow building with FreeType and without Xft.
12514 ## However, the ftx font backend driver is not in good shape.
12515 if test "$HAVE_XFT" != "yes"; then
12516 HAVE_XFT=no
12517 HAVE_FREETYPE=no
12518 else
12520 succeeded=no
12522 if test "$PKG_CONFIG" = "no" ; then
12523 HAVE_FREETYPE=no
12524 else
12525 PKG_CONFIG_MIN_VERSION=0.9.0
12526 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12528 $as_echo_n "checking for freetype2... " >&6; }
12530 if "$PKG_CONFIG" --exists "freetype2" 2>&5 &&
12531 FREETYPE_CFLAGS=`"$PKG_CONFIG" --cflags "freetype2" 2>&5` &&
12532 FREETYPE_LIBS=`"$PKG_CONFIG" --libs "freetype2" 2>&5`; then
12533 edit_cflags="
12534 s,///*,/,g
12535 s/^/ /
12536 s/ -I/ $isystem/g
12537 s/^ //
12539 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12540 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12542 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12543 succeeded=yes
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12547 FREETYPE_CFLAGS=""
12548 FREETYPE_LIBS=""
12549 ## If we have a custom action on failure, don't print errors, but
12550 ## do set a variable so people can do so. Do it in a subshell
12551 ## to capture any diagnostics in invoking pkg-config.
12552 FREETYPE_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "freetype2") 2>&1`
12558 else
12559 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12560 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12564 if test $succeeded = yes; then
12565 HAVE_FREETYPE=yes
12566 else
12567 HAVE_FREETYPE=no
12571 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12574 HAVE_LIBOTF=no
12575 if test "${HAVE_FREETYPE}" = "yes"; then
12577 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12579 if test "${with_libotf}" != "no"; then
12581 succeeded=no
12583 if test "$PKG_CONFIG" = "no" ; then
12584 HAVE_LIBOTF=no
12585 else
12586 PKG_CONFIG_MIN_VERSION=0.9.0
12587 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12589 $as_echo_n "checking for libotf... " >&6; }
12591 if "$PKG_CONFIG" --exists "libotf" 2>&5 &&
12592 LIBOTF_CFLAGS=`"$PKG_CONFIG" --cflags "libotf" 2>&5` &&
12593 LIBOTF_LIBS=`"$PKG_CONFIG" --libs "libotf" 2>&5`; then
12594 edit_cflags="
12595 s,///*,/,g
12596 s/^/ /
12597 s/ -I/ $isystem/g
12598 s/^ //
12600 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12601 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12603 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12604 succeeded=yes
12605 else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12608 LIBOTF_CFLAGS=""
12609 LIBOTF_LIBS=""
12610 ## If we have a custom action on failure, don't print errors, but
12611 ## do set a variable so people can do so. Do it in a subshell
12612 ## to capture any diagnostics in invoking pkg-config.
12613 LIBOTF_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libotf") 2>&1`
12619 else
12620 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12621 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12625 if test $succeeded = yes; then
12626 HAVE_LIBOTF=yes
12627 else
12628 HAVE_LIBOTF=no
12631 if test "$HAVE_LIBOTF" = "yes"; then
12633 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12636 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12637 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 ac_check_lib_save_LIBS=$LIBS
12641 LIBS="-lotf $LIBS"
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char OTF_get_variation_glyphs ();
12653 main ()
12655 return OTF_get_variation_glyphs ();
12657 return 0;
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"; then :
12661 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12662 else
12663 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12665 rm -f core conftest.err conftest.$ac_objext \
12666 conftest$ac_exeext conftest.$ac_ext
12667 LIBS=$ac_check_lib_save_LIBS
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12670 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12671 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12672 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12673 else
12674 HAVE_OTF_GET_VARIATION_GLYPHS=no
12677 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12679 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12686 HAVE_M17N_FLT=no
12687 if test "${HAVE_LIBOTF}" = yes; then
12688 if test "${with_m17n_flt}" != "no"; then
12690 succeeded=no
12692 if test "$PKG_CONFIG" = "no" ; then
12693 HAVE_M17N_FLT=no
12694 else
12695 PKG_CONFIG_MIN_VERSION=0.9.0
12696 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12698 $as_echo_n "checking for m17n-flt... " >&6; }
12700 if "$PKG_CONFIG" --exists "m17n-flt" 2>&5 &&
12701 M17N_FLT_CFLAGS=`"$PKG_CONFIG" --cflags "m17n-flt" 2>&5` &&
12702 M17N_FLT_LIBS=`"$PKG_CONFIG" --libs "m17n-flt" 2>&5`; then
12703 edit_cflags="
12704 s,///*,/,g
12705 s/^/ /
12706 s/ -I/ $isystem/g
12707 s/^ //
12709 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12710 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12712 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12713 succeeded=yes
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12717 M17N_FLT_CFLAGS=""
12718 M17N_FLT_LIBS=""
12719 ## If we have a custom action on failure, don't print errors, but
12720 ## do set a variable so people can do so. Do it in a subshell
12721 ## to capture any diagnostics in invoking pkg-config.
12722 M17N_FLT_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "m17n-flt") 2>&1`
12728 else
12729 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12730 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12734 if test $succeeded = yes; then
12735 HAVE_M17N_FLT=yes
12736 else
12737 HAVE_M17N_FLT=no
12740 if test "$HAVE_M17N_FLT" = "yes"; then
12742 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12747 else
12748 HAVE_XFT=no
12749 HAVE_FREETYPE=no
12750 HAVE_LIBOTF=no
12751 HAVE_M17N_FLT=no
12754 ### End of font-backend (under X11) section.
12765 ### Use -lXpm if available, unless `--with-xpm=no'.
12766 HAVE_XPM=no
12767 LIBXPM=
12769 if test "${HAVE_W32}" = "yes"; then
12770 if test "${with_xpm}" != "no"; then
12771 SAVE_CPPFLAGS="$CPPFLAGS"
12772 SAVE_LDFLAGS="$LDFLAGS"
12773 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12774 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12775 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12776 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12778 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12779 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lXpm $LIBS"
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12787 /* Override any GCC internal prototype to avoid an error.
12788 Use char because int might match the return type of a GCC
12789 builtin and then its argument prototype would still apply. */
12790 #ifdef __cplusplus
12791 extern "C"
12792 #endif
12793 char XpmReadFileToImage ();
12795 main ()
12797 return XpmReadFileToImage ();
12799 return 0;
12801 _ACEOF
12802 if ac_fn_c_try_link "$LINENO"; then :
12803 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12804 else
12805 ac_cv_lib_Xpm_XpmReadFileToImage=no
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12812 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12813 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12814 HAVE_XPM=yes
12820 if test "${HAVE_XPM}" = "yes"; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12822 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12825 #include "X11/xpm.h"
12826 #ifndef XpmReturnAllocPixels
12827 no_return_alloc_pixels
12828 #endif
12830 _ACEOF
12831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12832 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12833 HAVE_XPM=no
12834 else
12835 HAVE_XPM=yes
12837 rm -f conftest*
12840 if test "${HAVE_XPM}" = "yes"; then
12841 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12844 else
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12847 CPPFLAGS="$SAVE_CPPFLAGS"
12848 LDFLAGS="$SAVE_LDFLAGS"
12853 if test "${HAVE_XPM}" = "yes"; then
12855 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12857 LIBXPM=-lXpm
12861 if test "${HAVE_X11}" = "yes"; then
12862 if test "${with_xpm}" != "no"; then
12863 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12864 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12866 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12867 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 ac_check_lib_save_LIBS=$LIBS
12871 LIBS="-lXpm -lX11 $LIBS"
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12875 /* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12878 #ifdef __cplusplus
12879 extern "C"
12880 #endif
12881 char XpmReadFileToPixmap ();
12883 main ()
12885 return XpmReadFileToPixmap ();
12887 return 0;
12889 _ACEOF
12890 if ac_fn_c_try_link "$LINENO"; then :
12891 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12892 else
12893 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12895 rm -f core conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12897 LIBS=$ac_check_lib_save_LIBS
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12900 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12901 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12902 HAVE_XPM=yes
12908 if test "${HAVE_XPM}" = "yes"; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12910 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #include "X11/xpm.h"
12914 #ifndef XpmReturnAllocPixels
12915 no_return_alloc_pixels
12916 #endif
12918 _ACEOF
12919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12920 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12921 HAVE_XPM=no
12922 else
12923 HAVE_XPM=yes
12925 rm -f conftest*
12928 if test "${HAVE_XPM}" = "yes"; then
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12930 $as_echo "yes" >&6; }
12931 else
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12933 $as_echo "no" >&6; }
12938 if test "${HAVE_XPM}" = "yes"; then
12940 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12942 LIBXPM=-lXpm
12948 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12949 HAVE_JPEG=no
12950 LIBJPEG=
12951 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12952 if test "${with_jpeg}" != "no"; then
12953 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12954 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12956 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12957 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 ac_check_lib_save_LIBS=$LIBS
12961 LIBS="-ljpeg $LIBS"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 char jpeg_destroy_compress ();
12973 main ()
12975 return jpeg_destroy_compress ();
12977 return 0;
12979 _ACEOF
12980 if ac_fn_c_try_link "$LINENO"; then :
12981 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12982 else
12983 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987 LIBS=$ac_check_lib_save_LIBS
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12990 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12991 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12992 HAVE_JPEG=yes
13000 if test "${HAVE_JPEG}" = "yes"; then
13001 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 #include <jpeglib.h>
13006 version=JPEG_LIB_VERSION
13008 _ACEOF
13009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13010 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
13011 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
13013 else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
13015 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13016 HAVE_JPEG=no
13018 rm -f conftest*
13021 if test "${HAVE_JPEG}" = "yes"; then
13022 LIBJPEG=-ljpeg
13027 ### Use -lpng if available, unless `--with-png=no'.
13028 HAVE_PNG=no
13029 LIBPNG=
13030 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13031 if test "${with_png}" != "no"; then
13032 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13033 # in /usr/include/libpng.
13034 for ac_header in png.h libpng/png.h
13035 do :
13036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13037 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13038 eval as_val=\$$as_ac_Header
13039 if test "x$as_val" = x""yes; then :
13040 cat >>confdefs.h <<_ACEOF
13041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13042 _ACEOF
13043 break
13046 done
13048 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
13050 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
13051 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 ac_check_lib_save_LIBS=$LIBS
13055 LIBS="-lpng -lz -lm $LIBS"
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13062 #ifdef __cplusplus
13063 extern "C"
13064 #endif
13065 char png_get_channels ();
13067 main ()
13069 return png_get_channels ();
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 ac_cv_lib_png_png_get_channels=yes
13076 else
13077 ac_cv_lib_png_png_get_channels=no
13079 rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 LIBS=$ac_check_lib_save_LIBS
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
13084 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
13085 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
13086 HAVE_PNG=yes
13092 if test "${HAVE_PNG}" = "yes"; then
13094 $as_echo "#define HAVE_PNG 1" >>confdefs.h
13096 LIBPNG="-lpng -lz -lm"
13098 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
13099 # include <libpng/png.h>
13100 #else
13101 # include <png.h>
13102 #endif
13105 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
13107 else
13109 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
13117 ### Use -ltiff if available, unless `--with-tiff=no'.
13118 HAVE_TIFF=no
13119 LIBTIFF=
13120 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
13121 if test "${with_tiff}" != "no"; then
13122 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13123 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
13124 tifflibs="-lz -lm"
13125 # At least one tiff package requires the jpeg library.
13126 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
13128 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
13129 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
13130 $as_echo_n "(cached) " >&6
13131 else
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-ltiff $tifflibs $LIBS"
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140 #ifdef __cplusplus
13141 extern "C"
13142 #endif
13143 char TIFFGetVersion ();
13145 main ()
13147 return TIFFGetVersion ();
13149 return 0;
13151 _ACEOF
13152 if ac_fn_c_try_link "$LINENO"; then :
13153 ac_cv_lib_tiff_TIFFGetVersion=yes
13154 else
13155 ac_cv_lib_tiff_TIFFGetVersion=no
13157 rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159 LIBS=$ac_check_lib_save_LIBS
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13162 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13163 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
13164 HAVE_TIFF=yes
13172 if test "${HAVE_TIFF}" = "yes"; then
13174 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
13176 LIBTIFF=-ltiff
13181 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13182 HAVE_GIF=no
13183 LIBGIF=
13184 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
13185 || test "${HAVE_W32}" = "yes"; then
13186 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
13187 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
13188 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13189 # Earlier versions can crash Emacs.
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
13191 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
13192 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 ac_check_lib_save_LIBS=$LIBS
13196 LIBS="-lgif $LIBS"
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char EGifPutExtensionLast ();
13208 main ()
13210 return EGifPutExtensionLast ();
13212 return 0;
13214 _ACEOF
13215 if ac_fn_c_try_link "$LINENO"; then :
13216 ac_cv_lib_gif_EGifPutExtensionLast=yes
13217 else
13218 ac_cv_lib_gif_EGifPutExtensionLast=no
13220 rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13222 LIBS=$ac_check_lib_save_LIBS
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13225 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13226 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
13227 HAVE_GIF=yes
13228 else
13229 HAVE_GIF=maybe
13236 if test "$HAVE_GIF" = yes; then
13237 LIBGIF=-lgif
13238 elif test "$HAVE_GIF" = maybe; then
13239 # If gif_lib.h but no libgif, try libungif.
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
13241 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
13242 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 ac_check_lib_save_LIBS=$LIBS
13246 LIBS="-lungif $LIBS"
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char EGifPutExtensionLast ();
13258 main ()
13260 return EGifPutExtensionLast ();
13262 return 0;
13264 _ACEOF
13265 if ac_fn_c_try_link "$LINENO"; then :
13266 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13267 else
13268 ac_cv_lib_ungif_EGifPutExtensionLast=no
13270 rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13275 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13276 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
13277 HAVE_GIF=yes
13278 else
13279 HAVE_GIF=no
13282 test "$HAVE_GIF" = yes && LIBGIF=-lungif
13285 if test "${HAVE_GIF}" = "yes"; then
13287 $as_echo "#define HAVE_GIF 1" >>confdefs.h
13293 if test "${HAVE_X11}" = "yes"; then
13294 MISSING=""
13295 WITH_NO=""
13296 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13297 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13298 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13299 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13300 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13301 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13302 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13303 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13304 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13305 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13307 if test "X${MISSING}" != X; then
13308 as_fn_error "The following required libraries were not found:
13309 $MISSING
13310 Maybe some development libraries/packages are missing?
13311 If you don't want to link with them give
13312 $WITH_NO
13313 as options to configure" "$LINENO" 5
13317 ### Use -lgpm if available, unless `--with-gpm=no'.
13318 HAVE_GPM=no
13319 LIBGPM=
13320 if test "${with_gpm}" != "no"; then
13321 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
13322 if test "x$ac_cv_header_gpm_h" = x""yes; then :
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
13324 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
13325 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 ac_check_lib_save_LIBS=$LIBS
13329 LIBS="-lgpm $LIBS"
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13333 /* Override any GCC internal prototype to avoid an error.
13334 Use char because int might match the return type of a GCC
13335 builtin and then its argument prototype would still apply. */
13336 #ifdef __cplusplus
13337 extern "C"
13338 #endif
13339 char Gpm_Open ();
13341 main ()
13343 return Gpm_Open ();
13345 return 0;
13347 _ACEOF
13348 if ac_fn_c_try_link "$LINENO"; then :
13349 ac_cv_lib_gpm_Gpm_Open=yes
13350 else
13351 ac_cv_lib_gpm_Gpm_Open=no
13353 rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13355 LIBS=$ac_check_lib_save_LIBS
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
13358 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
13359 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
13360 HAVE_GPM=yes
13367 if test "${HAVE_GPM}" = "yes"; then
13369 $as_echo "#define HAVE_GPM 1" >>confdefs.h
13371 LIBGPM=-lgpm
13380 GNUSTEP_CFLAGS=
13381 ### Use NeXTstep API to implement GUI.
13382 if test "${HAVE_NS}" = "yes"; then
13384 $as_echo "#define HAVE_NS 1" >>confdefs.h
13386 if test "${NS_IMPL_COCOA}" = "yes"; then
13388 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
13391 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
13393 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
13395 # See also .m.o rule in Makefile.in */
13396 # FIXME: are all these flags really needed? Document here why. */
13397 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
13398 ## Extra CFLAGS applied to src/*.m files.
13399 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"
13401 # We also have mouse menus.
13402 HAVE_MENUS=yes
13403 OTHER_FILES=ns-app
13406 if test "${HAVE_W32}" = "yes"; then
13407 HAVE_MENUS=yes
13410 ### Use session management (-lSM -lICE) if available
13411 HAVE_X_SM=no
13412 LIBXSM=
13413 if test "${HAVE_X11}" = "yes"; then
13414 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13415 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13417 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13418 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 ac_check_lib_save_LIBS=$LIBS
13422 LIBS="-lSM -lICE $LIBS"
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13426 /* Override any GCC internal prototype to avoid an error.
13427 Use char because int might match the return type of a GCC
13428 builtin and then its argument prototype would still apply. */
13429 #ifdef __cplusplus
13430 extern "C"
13431 #endif
13432 char SmcOpenConnection ();
13434 main ()
13436 return SmcOpenConnection ();
13438 return 0;
13440 _ACEOF
13441 if ac_fn_c_try_link "$LINENO"; then :
13442 ac_cv_lib_SM_SmcOpenConnection=yes
13443 else
13444 ac_cv_lib_SM_SmcOpenConnection=no
13446 rm -f core conftest.err conftest.$ac_objext \
13447 conftest$ac_exeext conftest.$ac_ext
13448 LIBS=$ac_check_lib_save_LIBS
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13451 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13452 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13453 HAVE_X_SM=yes
13460 if test "${HAVE_X_SM}" = "yes"; then
13462 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13464 LIBXSM="-lSM -lICE"
13465 case "$LIBS" in
13466 *-lSM*) ;;
13467 *) LIBS="$LIBXSM $LIBS" ;;
13468 esac
13473 ### Use libxml (-lxml2) if available
13474 HAVE_LIBXML2=no
13475 if test "${with_xml2}" != "no"; then
13476 ### I'm not sure what the version number should be, so I just guessed.
13478 succeeded=no
13480 if test "$PKG_CONFIG" = "no" ; then
13481 HAVE_LIBXML2=no
13482 else
13483 PKG_CONFIG_MIN_VERSION=0.9.0
13484 if "$PKG_CONFIG" --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13486 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13488 if "$PKG_CONFIG" --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13489 LIBXML2_CFLAGS=`"$PKG_CONFIG" --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13490 LIBXML2_LIBS=`"$PKG_CONFIG" --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13491 edit_cflags="
13492 s,///*,/,g
13493 s/^/ /
13494 s/ -I/ $isystem/g
13495 s/^ //
13497 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13498 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13500 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13501 succeeded=yes
13502 else
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13505 LIBXML2_CFLAGS=""
13506 LIBXML2_LIBS=""
13507 ## If we have a custom action on failure, don't print errors, but
13508 ## do set a variable so people can do so. Do it in a subshell
13509 ## to capture any diagnostics in invoking pkg-config.
13510 LIBXML2_PKG_ERRORS=`("$PKG_CONFIG" --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13516 else
13517 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13518 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13522 if test $succeeded = yes; then
13523 HAVE_LIBXML2=yes
13524 else
13525 HAVE_LIBXML2=no
13528 if test "${HAVE_LIBXML2}" = "yes"; then
13529 LIBS="$LIBXML2_LIBS $LIBS"
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13531 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13532 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 ac_check_lib_save_LIBS=$LIBS
13536 LIBS="-lxml2 $LIBS"
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13540 /* Override any GCC internal prototype to avoid an error.
13541 Use char because int might match the return type of a GCC
13542 builtin and then its argument prototype would still apply. */
13543 #ifdef __cplusplus
13544 extern "C"
13545 #endif
13546 char htmlReadMemory ();
13548 main ()
13550 return htmlReadMemory ();
13552 return 0;
13554 _ACEOF
13555 if ac_fn_c_try_link "$LINENO"; then :
13556 ac_cv_lib_xml2_htmlReadMemory=yes
13557 else
13558 ac_cv_lib_xml2_htmlReadMemory=no
13560 rm -f core conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13562 LIBS=$ac_check_lib_save_LIBS
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13565 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13566 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13567 HAVE_LIBXML2=yes
13568 else
13569 HAVE_LIBXML2=no
13572 if test "${HAVE_LIBXML2}" = "yes"; then
13574 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13576 else
13577 LIBXML2_LIBS=""
13578 LIBXML2_CFLAGS=""
13585 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13587 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13588 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #include <netdb.h>
13595 main ()
13597 return h_errno;
13599 return 0;
13601 _ACEOF
13602 if ac_fn_c_try_link "$LINENO"; then :
13603 emacs_cv_netdb_declares_h_errno=yes
13604 else
13605 emacs_cv_netdb_declares_h_errno=no
13607 rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13611 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13612 if test $emacs_cv_netdb_declares_h_errno = yes; then
13614 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13618 # sqrt and other floating-point functions such as fmod and frexp
13619 # are found in -lm on most systems.
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13621 $as_echo_n "checking for sqrt in -lm... " >&6; }
13622 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13623 $as_echo_n "(cached) " >&6
13624 else
13625 ac_check_lib_save_LIBS=$LIBS
13626 LIBS="-lm $LIBS"
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13630 /* Override any GCC internal prototype to avoid an error.
13631 Use char because int might match the return type of a GCC
13632 builtin and then its argument prototype would still apply. */
13633 #ifdef __cplusplus
13634 extern "C"
13635 #endif
13636 char sqrt ();
13638 main ()
13640 return sqrt ();
13642 return 0;
13644 _ACEOF
13645 if ac_fn_c_try_link "$LINENO"; then :
13646 ac_cv_lib_m_sqrt=yes
13647 else
13648 ac_cv_lib_m_sqrt=no
13650 rm -f core conftest.err conftest.$ac_objext \
13651 conftest$ac_exeext conftest.$ac_ext
13652 LIBS=$ac_check_lib_save_LIBS
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13655 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13656 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13657 cat >>confdefs.h <<_ACEOF
13658 #define HAVE_LIBM 1
13659 _ACEOF
13661 LIBS="-lm $LIBS"
13666 # Check for mail-locking functions in a "mail" library. Probably this should
13667 # have the same check as for liblockfile below.
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13669 $as_echo_n "checking for maillock in -lmail... " >&6; }
13670 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13671 $as_echo_n "(cached) " >&6
13672 else
13673 ac_check_lib_save_LIBS=$LIBS
13674 LIBS="-lmail $LIBS"
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 char maillock ();
13686 main ()
13688 return maillock ();
13690 return 0;
13692 _ACEOF
13693 if ac_fn_c_try_link "$LINENO"; then :
13694 ac_cv_lib_mail_maillock=yes
13695 else
13696 ac_cv_lib_mail_maillock=no
13698 rm -f core conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13700 LIBS=$ac_check_lib_save_LIBS
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13703 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13704 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13705 have_mail=yes
13706 else
13707 have_mail=no
13710 if test $have_mail = yes; then
13711 LIBS_MAIL=-lmail
13712 LIBS="$LIBS_MAIL $LIBS"
13714 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13716 else
13717 LIBS_MAIL=
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13720 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13721 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 ac_check_lib_save_LIBS=$LIBS
13725 LIBS="-llockfile $LIBS"
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13729 /* Override any GCC internal prototype to avoid an error.
13730 Use char because int might match the return type of a GCC
13731 builtin and then its argument prototype would still apply. */
13732 #ifdef __cplusplus
13733 extern "C"
13734 #endif
13735 char maillock ();
13737 main ()
13739 return maillock ();
13741 return 0;
13743 _ACEOF
13744 if ac_fn_c_try_link "$LINENO"; then :
13745 ac_cv_lib_lockfile_maillock=yes
13746 else
13747 ac_cv_lib_lockfile_maillock=no
13749 rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751 LIBS=$ac_check_lib_save_LIBS
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13754 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13755 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13756 have_lockfile=yes
13757 else
13758 have_lockfile=no
13761 if test $have_lockfile = yes; then
13762 LIBS_MAIL=-llockfile
13763 LIBS="$LIBS_MAIL $LIBS"
13765 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13767 else
13768 # If we have the shared liblockfile, assume we must use it for mail
13769 # locking (e.g. Debian). If we couldn't link against liblockfile
13770 # (no liblockfile.a installed), ensure that we don't need to.
13771 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13772 set dummy liblockfile.so; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13774 $as_echo_n "checking for $ac_word... " >&6; }
13775 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 if test -n "$liblockfile"; then
13779 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13780 else
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13783 for as_dir in $as_dummy
13785 IFS=$as_save_IFS
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13789 ac_cv_prog_liblockfile="yes"
13790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13791 break 2
13793 done
13794 done
13795 IFS=$as_save_IFS
13797 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13800 liblockfile=$ac_cv_prog_liblockfile
13801 if test -n "$liblockfile"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13803 $as_echo "$liblockfile" >&6; }
13804 else
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13810 if test $ac_cv_prog_liblockfile = yes; then
13811 as_fn_error "Shared liblockfile found but can't link against it.
13812 This probably means that movemail could lose mail.
13813 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13821 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13822 ## interlock access to the mail spool. The alternative is a lock file named
13823 ## /usr/spool/mail/$USER.lock.
13824 mail_lock=no
13825 case "$opsys" in
13826 aix4-2) mail_lock="lockf" ;;
13828 gnu|freebsd|dragonfly|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13830 ## On GNU/Linux systems, both methods are used by various mail programs.
13831 ## I assume most people are using newer mailers that have heard of flock.
13832 ## Change this if you need to.
13833 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13834 ## configure gets the right answers, and that means *NOT* using flock.
13835 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13836 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13837 ## Debian maintainer hasn't provided a clean fix for Emacs.
13838 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13839 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13840 ## correct logic. -- fx
13841 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13842 ## liblockfile is a Free Software replacement for libmail, used on
13843 ## Debian systems and elsewhere. -rfr.
13844 gnu-*)
13845 mail_lock="flock"
13846 if test $have_mail = yes || test $have_lockfile = yes; then
13847 test $ac_cv_header_maillock_h = yes && mail_lock=no
13850 esac
13852 BLESSMAIL_TARGET=
13853 case "$mail_lock" in
13854 flock)
13855 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13858 lockf)
13859 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13862 *) BLESSMAIL_TARGET="need-blessmail" ;;
13863 esac
13867 for ac_func in gethostname \
13868 getrusage get_current_dir_name \
13869 lrand48 \
13870 select getpagesize setlocale \
13871 utimes getrlimit setrlimit shutdown getaddrinfo \
13872 strsignal setitimer \
13873 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13874 gai_strerror mkstemp getline getdelim sync \
13875 difftime posix_memalign \
13876 getpwent endpwent getgrent endgrent \
13877 touchlock \
13878 cfmakeraw cfsetspeed copysign __executable_start
13879 do :
13880 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13881 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13882 eval as_val=\$$as_ac_var
13883 if test "x$as_val" = x""yes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13886 _ACEOF
13889 done
13892 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13893 ## has a broken `rint' in some library versions including math library
13894 ## version number A.09.05.
13895 ## You can fix the math library by installing patch number PHSS_4630.
13896 ## But we can fix it more reliably for Emacs by just not using rint.
13897 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13898 case $opsys in
13899 hpux*) : ;;
13900 *) for ac_func in random rint
13901 do :
13902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13904 eval as_val=\$$as_ac_var
13905 if test "x$as_val" = x""yes; then :
13906 cat >>confdefs.h <<_ACEOF
13907 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13908 _ACEOF
13911 done
13913 esac
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13916 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13917 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13924 main ()
13926 __builtin_unwind_init ();
13928 return 0;
13930 _ACEOF
13931 if ac_fn_c_try_link "$LINENO"; then :
13932 emacs_cv_func___builtin_unwind_init=yes
13933 else
13934 emacs_cv_func___builtin_unwind_init=no
13936 rm -f core conftest.err conftest.$ac_objext \
13937 conftest$ac_exeext conftest.$ac_ext
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13940 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13941 if test $emacs_cv_func___builtin_unwind_init = yes; then
13943 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13952 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13953 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 while :; do
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #include <sys/types.h> /* for off_t */
13960 #include <stdio.h>
13962 main ()
13964 int (*fp) (FILE *, off_t, int) = fseeko;
13965 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13967 return 0;
13969 _ACEOF
13970 if ac_fn_c_try_link "$LINENO"; then :
13971 ac_cv_sys_largefile_source=no; break
13973 rm -f core conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977 #define _LARGEFILE_SOURCE 1
13978 #include <sys/types.h> /* for off_t */
13979 #include <stdio.h>
13981 main ()
13983 int (*fp) (FILE *, off_t, int) = fseeko;
13984 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13986 return 0;
13988 _ACEOF
13989 if ac_fn_c_try_link "$LINENO"; then :
13990 ac_cv_sys_largefile_source=1; break
13992 rm -f core conftest.err conftest.$ac_objext \
13993 conftest$ac_exeext conftest.$ac_ext
13994 ac_cv_sys_largefile_source=unknown
13995 break
13996 done
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13999 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14000 case $ac_cv_sys_largefile_source in #(
14001 no | unknown) ;;
14003 cat >>confdefs.h <<_ACEOF
14004 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14005 _ACEOF
14007 esac
14008 rm -rf conftest*
14010 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14011 # in glibc 2.1.3, but that breaks too many other things.
14012 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14013 if test $ac_cv_sys_largefile_source != unknown; then
14015 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14020 # UNIX98 PTYs.
14021 for ac_func in grantpt
14022 do :
14023 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
14024 if test "x$ac_cv_func_grantpt" = x""yes; then :
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE_GRANTPT 1
14027 _ACEOF
14030 done
14033 # PTY-related GNU extensions.
14034 for ac_func in getpt posix_openpt
14035 do :
14036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14037 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14038 eval as_val=\$$as_ac_var
14039 if test "x$as_val" = x""yes; then :
14040 cat >>confdefs.h <<_ACEOF
14041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14042 _ACEOF
14045 done
14048 # Check this now, so that we will NOT find the above functions in ncurses.
14049 # That is because we have not set up to link ncurses in lib-src.
14050 # It's better to believe a function is not available
14051 # than to expect to find it in ncurses.
14052 # Also we need tputs and friends to be able to build at all.
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
14054 $as_echo_n "checking for library containing tputs... " >&6; }
14055 # Run a test program that contains a call to tputs, a call that is
14056 # never executed. This tests whether a pre-'main' dynamic linker
14057 # works with the library. It's too much trouble to actually call
14058 # tputs in the test program, due to portability hassles. When
14059 # cross-compiling, assume the test program will run if it links.
14061 # Maybe curses should be tried earlier?
14062 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
14063 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
14064 OLIBS=$LIBS
14065 if test -z "$tputs_library"; then
14066 LIBS_TERMCAP=
14067 msg='none required'
14068 else
14069 LIBS_TERMCAP=-l$tputs_library
14070 msg=$LIBS_TERMCAP
14071 LIBS="$LIBS_TERMCAP $LIBS"
14073 if test "$cross_compiling" = yes; then :
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h. */
14077 extern void tputs (const char *, int, int (*)(int));
14078 int main (int argc, char **argv)
14080 if (argc == 10000)
14081 tputs (argv[0], 0, 0);
14082 return 0;
14085 _ACEOF
14086 if ac_fn_c_try_link "$LINENO"; then :
14088 else
14089 msg=no
14091 rm -f core conftest.err conftest.$ac_objext \
14092 conftest$ac_exeext conftest.$ac_ext
14093 else
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14097 extern void tputs (const char *, int, int (*)(int));
14098 int main (int argc, char **argv)
14100 if (argc == 10000)
14101 tputs (argv[0], 0, 0);
14102 return 0;
14105 _ACEOF
14106 if ac_fn_c_try_run "$LINENO"; then :
14108 else
14109 msg=no
14111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14112 conftest.$ac_objext conftest.beam conftest.$ac_ext
14115 LIBS=$OLIBS
14116 if test "X$msg" != Xno; then
14117 break
14119 done
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
14121 $as_echo "$msg" >&6; }
14122 if test "X$msg" = Xno; then
14123 as_fn_error "The required function \`tputs' was not found in any library.
14124 The following libraries were tried (in order):
14125 libtinfo, libncurses, libterminfo, libtermcap, libcurses
14126 Please try installing whichever of these libraries is most appropriate
14127 for your system, together with its header files.
14128 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
14131 ## Use termcap instead of terminfo?
14132 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
14133 TERMINFO=yes
14134 ## FIXME? In the cases below where we unconditionally set
14135 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
14136 ## if that was found above to have tputs.
14137 ## Should we use the gnu* logic everywhere?
14138 case "$opsys" in
14139 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
14140 ## The ncurses library has been moved out of the System framework in
14141 ## Mac OS X 10.2. So if configure detects it, set the command-line
14142 ## option to use it.
14143 darwin) LIBS_TERMCAP="-lncurses" ;;
14145 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
14147 freebsd)
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
14149 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
14150 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
14151 $as_echo_n "(cached) " >&6
14152 else
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14155 #include <osreldate.h>
14157 main ()
14159 #if __FreeBSD_version < 400000
14160 fail;
14161 #endif
14164 return 0;
14166 _ACEOF
14167 if ac_fn_c_try_link "$LINENO"; then :
14168 emacs_cv_freebsd_terminfo=yes
14169 else
14170 emacs_cv_freebsd_terminfo=no
14172 rm -f core conftest.err conftest.$ac_objext \
14173 conftest$ac_exeext conftest.$ac_ext
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
14178 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
14180 if test $emacs_cv_freebsd_terminfo = yes; then
14181 LIBS_TERMCAP="-lncurses"
14182 else
14183 TERMINFO=no
14184 LIBS_TERMCAP="-ltermcap"
14188 netbsd)
14189 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
14190 TERMINFO=no
14191 LIBS_TERMCAP="-ltermcap"
14195 openbsd | dragonfly) LIBS_TERMCAP="-lncurses" ;;
14197 ## hpux: Make sure we get select from libc rather than from libcurses
14198 ## because libcurses on HPUX 10.10 has a broken version of select.
14199 ## We used to use -lc -lcurses, but this may be cleaner.
14200 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
14201 # set that way, now it uses the default). Isn't this a contradiction?
14202 hpux*) LIBS_TERMCAP="-ltermcap" ;;
14204 esac
14206 TERMCAP_OBJ=tparam.o
14207 if test $TERMINFO = yes; then
14209 $as_echo "#define TERMINFO 1" >>confdefs.h
14211 TERMCAP_OBJ=terminfo.o
14217 # Do we have res_init, for detecting changes in /etc/resolv.conf?
14218 # On Darwin, res_init appears not to be useful: see bug#562 and
14219 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
14220 resolv=no
14222 if test $opsys != darwin; then
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 #include <netinet/in.h>
14227 #include <arpa/nameser.h>
14228 #include <resolv.h>
14230 main ()
14232 return res_init();
14234 return 0;
14236 _ACEOF
14237 if ac_fn_c_try_link "$LINENO"; then :
14238 have_res_init=yes
14239 else
14240 have_res_init=no
14242 rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
14244 if test "$have_res_init" = no; then
14245 OLIBS="$LIBS"
14246 LIBS="$LIBS -lresolv"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
14248 $as_echo_n "checking for res_init with -lresolv... " >&6; }
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 #include <netinet/in.h>
14252 #include <arpa/nameser.h>
14253 #include <resolv.h>
14255 main ()
14257 return res_init();
14259 return 0;
14261 _ACEOF
14262 if ac_fn_c_try_link "$LINENO"; then :
14263 have_res_init=yes
14264 else
14265 have_res_init=no
14267 rm -f core conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
14270 $as_echo "$have_res_init" >&6; }
14271 if test "$have_res_init" = yes ; then
14272 resolv=yes
14274 LIBS="$OLIBS"
14277 if test "$have_res_init" = yes; then
14279 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
14283 # Do we need the Hesiod library to provide the support routines?
14284 LIBHESIOD=
14285 if test "$with_hesiod" != no ; then
14286 # Don't set $LIBS here -- see comments above. FIXME which comments?
14287 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
14288 if test "x$ac_cv_func_res_send" = x""yes; then :
14290 else
14291 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
14292 if test "x$ac_cv_func___res_send" = x""yes; then :
14294 else
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
14296 $as_echo_n "checking for res_send in -lresolv... " >&6; }
14297 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 ac_check_lib_save_LIBS=$LIBS
14301 LIBS="-lresolv $LIBS"
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14305 /* Override any GCC internal prototype to avoid an error.
14306 Use char because int might match the return type of a GCC
14307 builtin and then its argument prototype would still apply. */
14308 #ifdef __cplusplus
14309 extern "C"
14310 #endif
14311 char res_send ();
14313 main ()
14315 return res_send ();
14317 return 0;
14319 _ACEOF
14320 if ac_fn_c_try_link "$LINENO"; then :
14321 ac_cv_lib_resolv_res_send=yes
14322 else
14323 ac_cv_lib_resolv_res_send=no
14325 rm -f core conftest.err conftest.$ac_objext \
14326 conftest$ac_exeext conftest.$ac_ext
14327 LIBS=$ac_check_lib_save_LIBS
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
14330 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
14331 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
14332 resolv=yes
14333 else
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
14335 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
14336 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 ac_check_lib_save_LIBS=$LIBS
14340 LIBS="-lresolv $LIBS"
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 char __res_send ();
14352 main ()
14354 return __res_send ();
14356 return 0;
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 ac_cv_lib_resolv___res_send=yes
14361 else
14362 ac_cv_lib_resolv___res_send=no
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 LIBS=$ac_check_lib_save_LIBS
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
14369 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
14370 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
14371 resolv=yes
14380 if test "$resolv" = yes ; then
14381 RESOLVLIB=-lresolv
14382 else
14383 RESOLVLIB=
14385 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
14386 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
14388 else
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
14390 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
14391 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 ac_check_lib_save_LIBS=$LIBS
14395 LIBS="-lhesiod $RESOLVLIB $LIBS"
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14402 #ifdef __cplusplus
14403 extern "C"
14404 #endif
14405 char hes_getmailhost ();
14407 main ()
14409 return hes_getmailhost ();
14411 return 0;
14413 _ACEOF
14414 if ac_fn_c_try_link "$LINENO"; then :
14415 ac_cv_lib_hesiod_hes_getmailhost=yes
14416 else
14417 ac_cv_lib_hesiod_hes_getmailhost=no
14419 rm -f core conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14424 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14425 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14426 hesiod=yes
14427 else
14434 if test x"$hesiod" = xyes; then
14436 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14438 LIBHESIOD=-lhesiod
14443 # Do we need libresolv (due to res_init or Hesiod)?
14444 if test "$resolv" = yes && test $opsys != darwin; then
14446 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14448 LIBRESOLV=-lresolv
14449 else
14450 LIBRESOLV=
14454 # These tell us which Kerberos-related libraries to use.
14455 COM_ERRLIB=
14456 CRYPTOLIB=
14457 KRB5LIB=
14458 DESLIB=
14459 KRB4LIB=
14461 if test "${with_kerberos}" != no; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14463 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14464 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 ac_check_lib_save_LIBS=$LIBS
14468 LIBS="-lcom_err $LIBS"
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 char com_err ();
14480 main ()
14482 return com_err ();
14484 return 0;
14486 _ACEOF
14487 if ac_fn_c_try_link "$LINENO"; then :
14488 ac_cv_lib_com_err_com_err=yes
14489 else
14490 ac_cv_lib_com_err_com_err=no
14492 rm -f core conftest.err conftest.$ac_objext \
14493 conftest$ac_exeext conftest.$ac_ext
14494 LIBS=$ac_check_lib_save_LIBS
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14497 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14498 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14499 have_com_err=yes
14500 else
14501 have_com_err=no
14504 if test $have_com_err = yes; then
14505 COM_ERRLIB=-lcom_err
14506 LIBS="$COM_ERRLIB $LIBS"
14508 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14512 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14513 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 ac_check_lib_save_LIBS=$LIBS
14517 LIBS="-lcrypto $LIBS"
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14521 /* Override any GCC internal prototype to avoid an error.
14522 Use char because int might match the return type of a GCC
14523 builtin and then its argument prototype would still apply. */
14524 #ifdef __cplusplus
14525 extern "C"
14526 #endif
14527 char mit_des_cbc_encrypt ();
14529 main ()
14531 return mit_des_cbc_encrypt ();
14533 return 0;
14535 _ACEOF
14536 if ac_fn_c_try_link "$LINENO"; then :
14537 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14538 else
14539 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14541 rm -f core conftest.err conftest.$ac_objext \
14542 conftest$ac_exeext conftest.$ac_ext
14543 LIBS=$ac_check_lib_save_LIBS
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14546 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14547 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14548 have_crypto=yes
14549 else
14550 have_crypto=no
14553 if test $have_crypto = yes; then
14554 CRYPTOLIB=-lcrypto
14555 LIBS="$CRYPTOLIB $LIBS"
14557 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14561 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14562 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14563 $as_echo_n "(cached) " >&6
14564 else
14565 ac_check_lib_save_LIBS=$LIBS
14566 LIBS="-lk5crypto $LIBS"
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14570 /* Override any GCC internal prototype to avoid an error.
14571 Use char because int might match the return type of a GCC
14572 builtin and then its argument prototype would still apply. */
14573 #ifdef __cplusplus
14574 extern "C"
14575 #endif
14576 char mit_des_cbc_encrypt ();
14578 main ()
14580 return mit_des_cbc_encrypt ();
14582 return 0;
14584 _ACEOF
14585 if ac_fn_c_try_link "$LINENO"; then :
14586 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14587 else
14588 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14590 rm -f core conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LIBS=$ac_check_lib_save_LIBS
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14595 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14596 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14597 have_k5crypto=yes
14598 else
14599 have_k5crypto=no
14602 if test $have_k5crypto = yes; then
14603 CRYPTOLIB=-lk5crypto
14604 LIBS="$CRYPTOLIB $LIBS"
14606 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14610 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14611 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-lkrb5 $LIBS"
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14619 /* Override any GCC internal prototype to avoid an error.
14620 Use char because int might match the return type of a GCC
14621 builtin and then its argument prototype would still apply. */
14622 #ifdef __cplusplus
14623 extern "C"
14624 #endif
14625 char krb5_init_context ();
14627 main ()
14629 return krb5_init_context ();
14631 return 0;
14633 _ACEOF
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 ac_cv_lib_krb5_krb5_init_context=yes
14636 else
14637 ac_cv_lib_krb5_krb5_init_context=no
14639 rm -f core conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14641 LIBS=$ac_check_lib_save_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14644 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14645 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14646 have_krb5=yes
14647 else
14648 have_krb5=no
14651 if test $have_krb5=yes; then
14652 KRB5LIB=-lkrb5
14653 LIBS="$KRB5LIB $LIBS"
14655 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14658 if test "${with_kerberos5}" = no; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14660 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14661 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 ac_check_lib_save_LIBS=$LIBS
14665 LIBS="-ldes425 $LIBS"
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14669 /* Override any GCC internal prototype to avoid an error.
14670 Use char because int might match the return type of a GCC
14671 builtin and then its argument prototype would still apply. */
14672 #ifdef __cplusplus
14673 extern "C"
14674 #endif
14675 char des_cbc_encrypt ();
14677 main ()
14679 return des_cbc_encrypt ();
14681 return 0;
14683 _ACEOF
14684 if ac_fn_c_try_link "$LINENO"; then :
14685 ac_cv_lib_des425_des_cbc_encrypt=yes
14686 else
14687 ac_cv_lib_des425_des_cbc_encrypt=no
14689 rm -f core conftest.err conftest.$ac_objext \
14690 conftest$ac_exeext conftest.$ac_ext
14691 LIBS=$ac_check_lib_save_LIBS
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14694 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14695 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14696 have_des425=yes
14697 else
14698 have_des425=no
14701 if test $have_des425 = yes; then
14702 DESLIB=-ldes425
14703 LIBS="$DESLIB $LIBS"
14705 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14707 else
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14709 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14710 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 ac_check_lib_save_LIBS=$LIBS
14714 LIBS="-ldes $LIBS"
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 /* Override any GCC internal prototype to avoid an error.
14719 Use char because int might match the return type of a GCC
14720 builtin and then its argument prototype would still apply. */
14721 #ifdef __cplusplus
14722 extern "C"
14723 #endif
14724 char des_cbc_encrypt ();
14726 main ()
14728 return des_cbc_encrypt ();
14730 return 0;
14732 _ACEOF
14733 if ac_fn_c_try_link "$LINENO"; then :
14734 ac_cv_lib_des_des_cbc_encrypt=yes
14735 else
14736 ac_cv_lib_des_des_cbc_encrypt=no
14738 rm -f core conftest.err conftest.$ac_objext \
14739 conftest$ac_exeext conftest.$ac_ext
14740 LIBS=$ac_check_lib_save_LIBS
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14743 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14744 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14745 have_des=yes
14746 else
14747 have_des=no
14750 if test $have_des = yes; then
14751 DESLIB=-ldes
14752 LIBS="$DESLIB $LIBS"
14754 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14759 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14760 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 ac_check_lib_save_LIBS=$LIBS
14764 LIBS="-lkrb4 $LIBS"
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h. */
14768 /* Override any GCC internal prototype to avoid an error.
14769 Use char because int might match the return type of a GCC
14770 builtin and then its argument prototype would still apply. */
14771 #ifdef __cplusplus
14772 extern "C"
14773 #endif
14774 char krb_get_cred ();
14776 main ()
14778 return krb_get_cred ();
14780 return 0;
14782 _ACEOF
14783 if ac_fn_c_try_link "$LINENO"; then :
14784 ac_cv_lib_krb4_krb_get_cred=yes
14785 else
14786 ac_cv_lib_krb4_krb_get_cred=no
14788 rm -f core conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext conftest.$ac_ext
14790 LIBS=$ac_check_lib_save_LIBS
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14793 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14794 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14795 have_krb4=yes
14796 else
14797 have_krb4=no
14800 if test $have_krb4 = yes; then
14801 KRB4LIB=-lkrb4
14802 LIBS="$KRB4LIB $LIBS"
14804 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14806 else
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14808 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14809 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 ac_check_lib_save_LIBS=$LIBS
14813 LIBS="-lkrb $LIBS"
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14820 #ifdef __cplusplus
14821 extern "C"
14822 #endif
14823 char krb_get_cred ();
14825 main ()
14827 return krb_get_cred ();
14829 return 0;
14831 _ACEOF
14832 if ac_fn_c_try_link "$LINENO"; then :
14833 ac_cv_lib_krb_krb_get_cred=yes
14834 else
14835 ac_cv_lib_krb_krb_get_cred=no
14837 rm -f core conftest.err conftest.$ac_objext \
14838 conftest$ac_exeext conftest.$ac_ext
14839 LIBS=$ac_check_lib_save_LIBS
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14842 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14843 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14844 have_krb=yes
14845 else
14846 have_krb=no
14849 if test $have_krb = yes; then
14850 KRB4LIB=-lkrb
14851 LIBS="$KRB4LIB $LIBS"
14853 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14859 if test "${with_kerberos5}" != no; then
14860 for ac_header in krb5.h
14861 do :
14862 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14863 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_KRB5_H 1
14866 _ACEOF
14867 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14869 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14871 cat >>confdefs.h <<_ACEOF
14872 #define HAVE_KRB5_ERROR_TEXT 1
14873 _ACEOF
14877 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14879 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14881 cat >>confdefs.h <<_ACEOF
14882 #define HAVE_KRB5_ERROR_E_TEXT 1
14883 _ACEOF
14890 done
14892 else
14893 for ac_header in des.h
14894 do :
14895 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14896 if test "x$ac_cv_header_des_h" = x""yes; then :
14897 cat >>confdefs.h <<_ACEOF
14898 #define HAVE_DES_H 1
14899 _ACEOF
14901 else
14902 for ac_header in kerberosIV/des.h
14903 do :
14904 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14905 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_KERBEROSIV_DES_H 1
14908 _ACEOF
14910 else
14911 for ac_header in kerberos/des.h
14912 do :
14913 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14914 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14915 cat >>confdefs.h <<_ACEOF
14916 #define HAVE_KERBEROS_DES_H 1
14917 _ACEOF
14921 done
14925 done
14929 done
14931 for ac_header in krb.h
14932 do :
14933 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14934 if test "x$ac_cv_header_krb_h" = x""yes; then :
14935 cat >>confdefs.h <<_ACEOF
14936 #define HAVE_KRB_H 1
14937 _ACEOF
14939 else
14940 for ac_header in kerberosIV/krb.h
14941 do :
14942 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14943 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14944 cat >>confdefs.h <<_ACEOF
14945 #define HAVE_KERBEROSIV_KRB_H 1
14946 _ACEOF
14948 else
14949 for ac_header in kerberos/krb.h
14950 do :
14951 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14952 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14953 cat >>confdefs.h <<_ACEOF
14954 #define HAVE_KERBEROS_KRB_H 1
14955 _ACEOF
14959 done
14963 done
14967 done
14970 for ac_header in com_err.h
14971 do :
14972 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14973 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_COM_ERR_H 1
14976 _ACEOF
14980 done
14993 for ac_func in $ac_func_list
14994 do :
14995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14997 eval as_val=\$$as_ac_var
14998 if test "x$as_val" = x""yes; then :
14999 cat >>confdefs.h <<_ACEOF
15000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15001 _ACEOF
15004 done
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
15010 $as_echo_n "checking whether localtime caches TZ... " >&6; }
15011 if test "${emacs_cv_localtime_cache+set}" = set; then :
15012 $as_echo_n "(cached) " >&6
15013 else
15014 if test x$ac_cv_func_tzset = xyes; then
15015 if test "$cross_compiling" = yes; then :
15016 # If we have tzset, assume the worst when cross-compiling.
15017 emacs_cv_localtime_cache=yes
15018 else
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15021 #include <time.h>
15022 char TZ_GMT0[] = "TZ=GMT0";
15023 char TZ_PST8[] = "TZ=PST8";
15024 main()
15026 time_t now = time ((time_t *) 0);
15027 int hour_GMT0, hour_unset;
15028 if (putenv (TZ_GMT0) != 0)
15029 exit (1);
15030 hour_GMT0 = localtime (&now)->tm_hour;
15031 unsetenv("TZ");
15032 hour_unset = localtime (&now)->tm_hour;
15033 if (putenv (TZ_PST8) != 0)
15034 exit (1);
15035 if (localtime (&now)->tm_hour == hour_GMT0)
15036 exit (1);
15037 unsetenv("TZ");
15038 if (localtime (&now)->tm_hour != hour_unset)
15039 exit (1);
15040 exit (0);
15042 _ACEOF
15043 if ac_fn_c_try_run "$LINENO"; then :
15044 emacs_cv_localtime_cache=no
15045 else
15046 emacs_cv_localtime_cache=yes
15048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15049 conftest.$ac_objext conftest.beam conftest.$ac_ext
15052 else
15053 # If we lack tzset, report that localtime does not cache TZ,
15054 # since we can't invalidate the cache if we don't have tzset.
15055 emacs_cv_localtime_cache=no
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
15059 $as_echo "$emacs_cv_localtime_cache" >&6; }
15060 if test $emacs_cv_localtime_cache = yes; then
15062 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
15066 ok_so_far=yes
15067 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
15068 if test "x$ac_cv_func_socket" = x""yes; then :
15070 else
15071 ok_so_far=no
15074 if test $ok_so_far = yes; then
15075 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15076 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
15078 else
15079 ok_so_far=no
15084 if test $ok_so_far = yes; then
15085 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15086 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
15088 else
15089 ok_so_far=no
15094 if test $ok_so_far = yes; then
15096 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
15100 if test -f /usr/lpp/X11/bin/smt.exp; then
15102 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
15107 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
15108 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15110 $as_echo "yes" >&6; }
15112 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
15114 else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15116 $as_echo "no" >&6; }
15119 case $canonical in
15120 *-solaris2.4 | *-solaris2.4.*)
15121 : ${ac_cv_func_vfork_works=no};;
15122 esac
15124 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15125 if test "x$ac_cv_type_pid_t" = x""yes; then :
15127 else
15129 cat >>confdefs.h <<_ACEOF
15130 #define pid_t int
15131 _ACEOF
15135 for ac_header in vfork.h
15136 do :
15137 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15138 if test "x$ac_cv_header_vfork_h" = x""yes; then :
15139 cat >>confdefs.h <<_ACEOF
15140 #define HAVE_VFORK_H 1
15141 _ACEOF
15145 done
15147 for ac_func in fork vfork
15148 do :
15149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15151 eval as_val=\$$as_ac_var
15152 if test "x$as_val" = x""yes; then :
15153 cat >>confdefs.h <<_ACEOF
15154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15155 _ACEOF
15158 done
15160 if test "x$ac_cv_func_fork" = xyes; then
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15162 $as_echo_n "checking for working fork... " >&6; }
15163 if test "${ac_cv_func_fork_works+set}" = set; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 if test "$cross_compiling" = yes; then :
15167 ac_cv_func_fork_works=cross
15168 else
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 $ac_includes_default
15173 main ()
15176 /* By Ruediger Kuhlmann. */
15177 return fork () < 0;
15180 return 0;
15182 _ACEOF
15183 if ac_fn_c_try_run "$LINENO"; then :
15184 ac_cv_func_fork_works=yes
15185 else
15186 ac_cv_func_fork_works=no
15188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15189 conftest.$ac_objext conftest.beam conftest.$ac_ext
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15194 $as_echo "$ac_cv_func_fork_works" >&6; }
15196 else
15197 ac_cv_func_fork_works=$ac_cv_func_fork
15199 if test "x$ac_cv_func_fork_works" = xcross; then
15200 case $host in
15201 *-*-amigaos* | *-*-msdosdjgpp*)
15202 # Override, as these systems have only a dummy fork() stub
15203 ac_cv_func_fork_works=no
15206 ac_cv_func_fork_works=yes
15208 esac
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15210 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15212 ac_cv_func_vfork_works=$ac_cv_func_vfork
15213 if test "x$ac_cv_func_vfork" = xyes; then
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15215 $as_echo_n "checking for working vfork... " >&6; }
15216 if test "${ac_cv_func_vfork_works+set}" = set; then :
15217 $as_echo_n "(cached) " >&6
15218 else
15219 if test "$cross_compiling" = yes; then :
15220 ac_cv_func_vfork_works=cross
15221 else
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 /* Thanks to Paul Eggert for this test. */
15225 $ac_includes_default
15226 #include <sys/wait.h>
15227 #ifdef HAVE_VFORK_H
15228 # include <vfork.h>
15229 #endif
15230 /* On some sparc systems, changes by the child to local and incoming
15231 argument registers are propagated back to the parent. The compiler
15232 is told about this with #include <vfork.h>, but some compilers
15233 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15234 static variable whose address is put into a register that is
15235 clobbered by the vfork. */
15236 static void
15237 #ifdef __cplusplus
15238 sparc_address_test (int arg)
15239 # else
15240 sparc_address_test (arg) int arg;
15241 #endif
15243 static pid_t child;
15244 if (!child) {
15245 child = vfork ();
15246 if (child < 0) {
15247 perror ("vfork");
15248 _exit(2);
15250 if (!child) {
15251 arg = getpid();
15252 write(-1, "", 0);
15253 _exit (arg);
15259 main ()
15261 pid_t parent = getpid ();
15262 pid_t child;
15264 sparc_address_test (0);
15266 child = vfork ();
15268 if (child == 0) {
15269 /* Here is another test for sparc vfork register problems. This
15270 test uses lots of local variables, at least as many local
15271 variables as main has allocated so far including compiler
15272 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15273 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15274 reuse the register of parent for one of the local variables,
15275 since it will think that parent can't possibly be used any more
15276 in this routine. Assigning to the local variable will thus
15277 munge parent in the parent process. */
15278 pid_t
15279 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15280 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15281 /* Convince the compiler that p..p7 are live; otherwise, it might
15282 use the same hardware register for all 8 local variables. */
15283 if (p != p1 || p != p2 || p != p3 || p != p4
15284 || p != p5 || p != p6 || p != p7)
15285 _exit(1);
15287 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15288 from child file descriptors. If the child closes a descriptor
15289 before it execs or exits, this munges the parent's descriptor
15290 as well. Test for this by closing stdout in the child. */
15291 _exit(close(fileno(stdout)) != 0);
15292 } else {
15293 int status;
15294 struct stat st;
15296 while (wait(&status) != child)
15298 return (
15299 /* Was there some problem with vforking? */
15300 child < 0
15302 /* Did the child fail? (This shouldn't happen.) */
15303 || status
15305 /* Did the vfork/compiler bug occur? */
15306 || parent != getpid()
15308 /* Did the file descriptor bug occur? */
15309 || fstat(fileno(stdout), &st) != 0
15313 _ACEOF
15314 if ac_fn_c_try_run "$LINENO"; then :
15315 ac_cv_func_vfork_works=yes
15316 else
15317 ac_cv_func_vfork_works=no
15319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15320 conftest.$ac_objext conftest.beam conftest.$ac_ext
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15325 $as_echo "$ac_cv_func_vfork_works" >&6; }
15328 if test "x$ac_cv_func_fork_works" = xcross; then
15329 ac_cv_func_vfork_works=$ac_cv_func_vfork
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15331 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15334 if test "x$ac_cv_func_vfork_works" = xyes; then
15336 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15338 else
15340 $as_echo "#define vfork fork" >>confdefs.h
15343 if test "x$ac_cv_func_fork_works" = xyes; then
15345 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15350 for ac_func in snprintf
15351 do :
15352 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15353 if test "x$ac_cv_func_snprintf" = x""yes; then :
15354 cat >>confdefs.h <<_ACEOF
15355 #define HAVE_SNPRINTF 1
15356 _ACEOF
15359 done
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15363 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15364 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
15365 $as_echo_n "(cached) " >&6
15366 else
15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15368 /* end confdefs.h. */
15369 #include <langinfo.h>
15371 main ()
15373 char* cs = nl_langinfo(CODESET);
15375 return 0;
15377 _ACEOF
15378 if ac_fn_c_try_link "$LINENO"; then :
15379 emacs_cv_langinfo_codeset=yes
15380 else
15381 emacs_cv_langinfo_codeset=no
15383 rm -f core conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
15388 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
15389 if test $emacs_cv_langinfo_codeset = yes; then
15391 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
15396 $as_echo_n "checking for mbstate_t... " >&6; }
15397 if test "${ac_cv_type_mbstate_t+set}" = set; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 $ac_includes_default
15403 # include <wchar.h>
15405 main ()
15407 mbstate_t x; return sizeof x;
15409 return 0;
15411 _ACEOF
15412 if ac_fn_c_try_compile "$LINENO"; then :
15413 ac_cv_type_mbstate_t=yes
15414 else
15415 ac_cv_type_mbstate_t=no
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15420 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15421 if test $ac_cv_type_mbstate_t = yes; then
15423 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15425 else
15427 $as_echo "#define mbstate_t int" >>confdefs.h
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15432 $as_echo_n "checking for C restricted array declarations... " >&6; }
15433 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15434 $as_echo_n "(cached) " >&6
15435 else
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15438 void fred (int x[__restrict]);
15440 main ()
15444 return 0;
15446 _ACEOF
15447 if ac_fn_c_try_compile "$LINENO"; then :
15448 emacs_cv_c_restrict_arr=yes
15449 else
15450 emacs_cv_c_restrict_arr=no
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15455 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15456 if test "$emacs_cv_c_restrict_arr" = yes; then
15458 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15464 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15468 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15471 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15473 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15477 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15483 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15487 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15491 $as_echo "#define subprocesses 1" >>confdefs.h
15495 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15500 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15506 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15510 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15514 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15520 case $opsys in
15521 aix4-2)
15522 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15523 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15528 hpux*)
15529 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15532 esac
15535 case $opsys in
15536 irix6-5 | sol2* | unixware )
15538 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15541 esac
15543 emacs_broken_SIGIO=no
15545 case $opsys in
15546 hpux* | irix6-5 | openbsd | sol2* | unixware )
15547 emacs_broken_SIGIO=yes
15550 aix4-2)
15552 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15556 freebsd)
15558 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15561 esac
15563 case $opsys in
15564 gnu-* | sol2-10 )
15566 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15569 esac
15571 case $opsys in
15572 darwin | dragonfly | freebsd | netbsd | openbsd )
15574 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15577 esac
15579 case $opsys in
15580 netbsd | openbsd) sound_device="/dev/audio" ;;
15581 *) sound_device="/dev/dsp" ;;
15582 esac
15585 cat >>confdefs.h <<_ACEOF
15586 #define DEFAULT_SOUND_DEVICE "$sound_device"
15587 _ACEOF
15591 case $opsys in
15592 darwin | gnu-linux | gnu-kfreebsd )
15594 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15597 esac
15600 case $opsys in
15601 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15603 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15606 esac
15615 case $opsys in
15616 aix4-2 )
15617 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15619 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15621 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15625 cygwin )
15626 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15628 $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
15630 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15632 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15636 darwin )
15637 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15639 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15641 $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
15643 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15645 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15649 gnu | openbsd )
15650 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15654 gnu-linux | gnu-kfreebsd | dragonfly | freebsd | netbsd )
15655 if test "x$ac_cv_func_grantpt" = xyes; then
15657 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15659 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15661 $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) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15663 if test "x$ac_cv_func_posix_openpt" = xyes; then
15664 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15666 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15668 elif test "x$ac_cv_func_getpt" = xyes; then
15669 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15671 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15673 else
15674 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15677 else
15678 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15683 hpux*)
15684 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15686 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15688 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15692 irix6-5 )
15693 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15695 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15697 $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
15699 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15701 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15705 sol2* )
15706 $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, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15710 unixware )
15711 $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, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h
15714 esac
15717 case $opsys in
15718 sol2* | unixware )
15719 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15721 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15724 $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
15727 esac
15732 case $opsys in
15733 aix4-2 | cygwin | gnu | irix6-5 | dragonfly | freebsd | netbsd | openbsd | darwin )
15734 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15738 gnu-linux | gnu-kfreebsd )
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15741 $as_echo_n "checking for signals via characters... " >&6; }
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15745 #include <linux/version.h>
15746 #if LINUX_VERSION_CODE < 0x20400
15747 # error "Linux version too old"
15748 #endif
15751 main ()
15755 return 0;
15757 _ACEOF
15758 if ac_fn_c_try_cpp "$LINENO"; then :
15759 emacs_signals_via_chars=yes
15760 else
15761 emacs_signals_via_chars=no
15763 rm -f conftest.err conftest.$ac_ext
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15766 $as_echo "$emacs_signals_via_chars" >&6; }
15767 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15770 esac
15775 case $opsys in
15776 aix*)
15777 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15780 hpux*)
15781 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15784 irix6-5)
15785 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15788 esac
15793 case $opsys in
15794 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15797 gnu | dragonfly | freebsd | netbsd | openbsd )
15799 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15801 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15805 gnu-linux | gnu-kfreebsd )
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15809 #ifndef __ia64__
15810 # error "not ia64"
15811 #endif
15814 main ()
15818 return 0;
15820 _ACEOF
15821 if ac_fn_c_try_cpp "$LINENO"; then :
15823 $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
15826 rm -f conftest.err conftest.$ac_ext
15829 hpux*)
15831 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15834 esac
15840 case $opsys in
15841 gnu-linux | gnu-kfreebsd )
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15845 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15846 || defined __alpha__ || defined __mips__ || defined __s390__ \
15847 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15848 || defined __ia64__ || defined __sh__
15849 /* ok */
15850 #else
15851 # error "setjmp not known to work on this arch"
15852 #endif
15855 main ()
15859 return 0;
15861 _ACEOF
15862 if ac_fn_c_try_cpp "$LINENO"; then :
15863 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15866 rm -f conftest.err conftest.$ac_ext
15868 esac
15871 if test x$GCC = xyes; then
15872 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15874 else
15875 case $opsys in
15876 dragonfly | freebsd | netbsd | openbsd | irix6-5 | sol2* )
15877 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15880 esac
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15883 $as_echo_n "checking for _setjmp... " >&6; }
15884 if test "${emacs_cv_func__setjmp+set}" = set; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 #include <setjmp.h>
15892 main ()
15894 jmp_buf j;
15895 if (! _setjmp (j))
15896 _longjmp (j, 1);
15898 return 0;
15900 _ACEOF
15901 if ac_fn_c_try_link "$LINENO"; then :
15902 emacs_cv_func__setjmp=yes
15903 else
15904 emacs_cv_func__setjmp=no
15906 rm -f core conftest.err conftest.$ac_objext \
15907 conftest$ac_exeext conftest.$ac_ext
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15910 $as_echo "$emacs_cv_func__setjmp" >&6; }
15911 if test $emacs_cv_func__setjmp = yes; then
15913 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15915 else
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15917 $as_echo_n "checking for sigsetjmp... " >&6; }
15918 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15919 $as_echo_n "(cached) " >&6
15920 else
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15923 #include <setjmp.h>
15926 main ()
15928 sigjmp_buf j;
15929 if (! sigsetjmp (j, 1))
15930 siglongjmp (j, 1);
15932 return 0;
15934 _ACEOF
15935 if ac_fn_c_try_link "$LINENO"; then :
15936 emacs_cv_func_sigsetjmp=yes
15937 else
15938 emacs_cv_func_sigsetjmp=no
15940 rm -f core conftest.err conftest.$ac_objext \
15941 conftest$ac_exeext conftest.$ac_ext
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15944 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15945 if test $emacs_cv_func_sigsetjmp = yes; then
15947 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15952 case $opsys in
15953 sol2* | unixware )
15955 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15958 esac
15961 case $opsys in
15962 hpux* | sol2* )
15964 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15967 esac
15976 case $opsys in
15977 aix4-2)
15978 $as_echo "#define USG /**/" >>confdefs.h
15980 $as_echo "#define USG5 /**/" >>confdefs.h
15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15983 /* end confdefs.h. */
15985 #ifndef _AIX
15986 # error "_AIX not defined"
15987 #endif
15990 main ()
15994 return 0;
15996 _ACEOF
15997 if ac_fn_c_try_cpp "$LINENO"; then :
15999 else
16001 $as_echo "#define _AIX /**/" >>confdefs.h
16004 rm -f conftest.err conftest.$ac_ext
16007 cygwin)
16009 $as_echo "#define CYGWIN 1" >>confdefs.h
16013 darwin)
16015 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
16019 gnu-linux | gnu-kfreebsd )
16020 $as_echo "#define USG /**/" >>confdefs.h
16023 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
16027 hpux*)
16028 $as_echo "#define USG /**/" >>confdefs.h
16030 $as_echo "#define USG5 /**/" >>confdefs.h
16033 $as_echo "#define HPUX /**/" >>confdefs.h
16037 irix6-5)
16038 $as_echo "#define USG /**/" >>confdefs.h
16040 $as_echo "#define USG5 /**/" >>confdefs.h
16042 $as_echo "#define USG5_4 /**/" >>confdefs.h
16045 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
16049 sol2*)
16050 $as_echo "#define USG /**/" >>confdefs.h
16052 $as_echo "#define USG5 /**/" >>confdefs.h
16054 $as_echo "#define USG5_4 /**/" >>confdefs.h
16057 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
16061 unixware)
16062 $as_echo "#define USG /**/" >>confdefs.h
16064 $as_echo "#define USG5 /**/" >>confdefs.h
16066 $as_echo "#define USG5_4 /**/" >>confdefs.h
16069 esac
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
16072 $as_echo_n "checking for usable FIONREAD... " >&6; }
16073 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
16074 $as_echo_n "(cached) " >&6
16075 else
16076 case $opsys in
16077 aix4-2)
16078 emacs_cv_usable_FIONREAD=no
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <sys/types.h>
16085 #include <sys/ioctl.h>
16086 #ifdef USG5_4
16087 # include <sys/filio.h>
16088 #endif
16091 main ()
16093 int foo = ioctl (0, FIONREAD, &foo);
16095 return 0;
16097 _ACEOF
16098 if ac_fn_c_try_compile "$LINENO"; then :
16099 emacs_cv_usable_FIONREAD=yes
16100 else
16101 emacs_cv_usable_FIONREAD=no
16103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16105 esac
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
16108 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
16109 if test $emacs_cv_usable_FIONREAD = yes; then
16111 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
16114 if test $emacs_broken_SIGIO = no; then
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
16116 $as_echo_n "checking for usable SIGIO... " >&6; }
16117 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
16118 $as_echo_n "(cached) " >&6
16119 else
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16122 #include <fcntl.h>
16123 #include <signal.h>
16126 main ()
16128 int foo = SIGIO | F_SETFL | FASYNC;
16130 return 0;
16132 _ACEOF
16133 if ac_fn_c_try_compile "$LINENO"; then :
16134 emacs_cv_usable_SIGIO=yes
16135 else
16136 emacs_cv_usable_SIGIO=no
16138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
16141 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
16142 if test $emacs_cv_usable_SIGIO = yes; then
16144 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
16151 case $opsys in
16152 cygwin)
16154 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
16158 hpux11)
16160 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
16164 irix6-5)
16166 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
16170 sol2-10)
16172 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16175 esac
16177 # Set up the CFLAGS for real compilation, so we can substitute it.
16178 CFLAGS="$REAL_CFLAGS"
16179 CPPFLAGS="$REAL_CPPFLAGS"
16181 ## Hack to detect a buggy GCC version.
16182 if test "x$GCC" = xyes \
16183 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16184 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16185 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16186 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16189 version=$PACKAGE_VERSION
16191 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16193 cat >>confdefs.h <<_ACEOF
16194 #define COPYRIGHT "$copyright"
16195 _ACEOF
16199 ### Specify what sort of things we'll be editing into Makefile and config.h.
16200 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16203 ## Unused?
16226 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16227 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16228 ## end of LIBX_BASE, but nothing ever set it.
16233 ## Used in lwlib/Makefile.in.
16242 if test -n "${term_header}"; then
16244 cat >>confdefs.h <<_ACEOF
16245 #define TERM_HEADER "${term_header}"
16246 _ACEOF
16251 cat >>confdefs.h <<_ACEOF
16252 #define EMACS_CONFIGURATION "${canonical}"
16253 _ACEOF
16255 emacs_config_options=`echo "$emacs_config_options " | sed -e 's/--no-create //' -e 's/--no-recursion //' -e 's/ *$//' -e "s/\"/'/g"`
16257 cat >>confdefs.h <<_ACEOF
16258 #define EMACS_CONFIG_OPTIONS "${emacs_config_options}"
16259 _ACEOF
16263 XMENU_OBJ=
16264 XOBJ=
16265 FONT_OBJ=
16266 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16268 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16270 XMENU_OBJ=xmenu.o
16271 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16272 FONT_OBJ=xfont.o
16273 if test "$HAVE_XFT" = "yes"; then
16274 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16275 elif test "$HAVE_FREETYPE" = "yes"; then
16276 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16284 WIDGET_OBJ=
16285 MOTIF_LIBW=
16286 if test "${USE_X_TOOLKIT}" != "none" ; then
16287 WIDGET_OBJ=widget.o
16289 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16291 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16293 $as_echo "#define USE_LUCID 1" >>confdefs.h
16295 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16297 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16299 MOTIF_LIBW=-lXm
16300 case "$opsys" in
16301 gnu-linux)
16302 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16303 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16306 unixware)
16307 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16308 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16309 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16312 aix4-2)
16313 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16314 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16316 esac
16317 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16322 TOOLKIT_LIBW=
16323 case "$USE_X_TOOLKIT" in
16324 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16325 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16326 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16327 esac
16330 if test "$USE_X_TOOLKIT" = "none"; then
16331 LIBXT_OTHER="\$(LIBXSM)"
16332 OLDXMENU_TARGET="really-oldXMenu"
16333 else
16334 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16335 OLDXMENU_TARGET="really-lwlib"
16339 ## The X Menu stuff is present in the X10 distribution, but missing
16340 ## from X11. If we have X10, just use the installed library;
16341 ## otherwise, use our own copy.
16342 if test "${HAVE_X11}" = "yes" ; then
16344 $as_echo "#define HAVE_X11 1" >>confdefs.h
16347 if test "$USE_X_TOOLKIT" = "none"; then
16348 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16349 else
16350 OLDXMENU="\${lwlibdir}/liblw.a"
16352 LIBXMENU="\$(OLDXMENU)"
16353 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16354 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16355 else
16356 ## For a syntactically valid Makefile; not actually used for anything.
16357 ## See comments in src/Makefile.in.
16358 OLDXMENU=nothing
16359 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16360 if test "${HAVE_X_WINDOWS}" = "yes"; then
16361 LIBXMENU="-lXMenu"
16362 else
16363 LIBXMENU=
16365 LIBX_OTHER=
16366 OLDXMENU_DEPS=
16369 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16370 OLDXMENU_TARGET=
16371 OLDXMENU=nothing
16372 LIBXMENU=
16373 OLDXMENU_DEPS=
16382 if test "${HAVE_MENUS}" = "yes" ; then
16384 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16388 if test "${GNU_MALLOC}" = "yes" ; then
16390 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16394 RALLOC_OBJ=
16395 if test "${REL_ALLOC}" = "yes" ; then
16397 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16400 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16404 if test "$opsys" = "cygwin"; then
16405 CYGWIN_OBJ="sheap.o cygw32.o"
16406 ## Cygwin differs because of its unexec().
16407 PRE_ALLOC_OBJ=
16408 POST_ALLOC_OBJ=lastfile.o
16409 else
16410 CYGWIN_OBJ=
16411 PRE_ALLOC_OBJ=lastfile.o
16412 POST_ALLOC_OBJ=
16418 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16419 # it temporarily reverts them to their pre-pkg-config values,
16420 # because gnulib needs to work with both src (which uses the
16421 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16422 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16423 # and it therefore needs to run in an environment where LIBS does not
16424 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16425 # for some package unrelated to lib-src.
16426 SAVE_CFLAGS=$CFLAGS
16427 SAVE_LIBS=$LIBS
16428 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16429 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16441 LIBC_FATAL_STDERR_=1
16442 export LIBC_FATAL_STDERR_
16444 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16445 # for constant arguments. Useless!
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16447 $as_echo_n "checking for working alloca.h... " >&6; }
16448 if test "${ac_cv_working_alloca_h+set}" = set; then :
16449 $as_echo_n "(cached) " >&6
16450 else
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452 /* end confdefs.h. */
16453 #include <alloca.h>
16455 main ()
16457 char *p = (char *) alloca (2 * sizeof (int));
16458 if (p) return 0;
16460 return 0;
16462 _ACEOF
16463 if ac_fn_c_try_link "$LINENO"; then :
16464 ac_cv_working_alloca_h=yes
16465 else
16466 ac_cv_working_alloca_h=no
16468 rm -f core conftest.err conftest.$ac_objext \
16469 conftest$ac_exeext conftest.$ac_ext
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16472 $as_echo "$ac_cv_working_alloca_h" >&6; }
16473 if test $ac_cv_working_alloca_h = yes; then
16475 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16480 $as_echo_n "checking for alloca... " >&6; }
16481 if test "${ac_cv_func_alloca_works+set}" = set; then :
16482 $as_echo_n "(cached) " >&6
16483 else
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h. */
16486 #ifdef __GNUC__
16487 # define alloca __builtin_alloca
16488 #else
16489 # ifdef _MSC_VER
16490 # include <malloc.h>
16491 # define alloca _alloca
16492 # else
16493 # ifdef HAVE_ALLOCA_H
16494 # include <alloca.h>
16495 # else
16496 # ifdef _AIX
16497 #pragma alloca
16498 # else
16499 # ifndef alloca /* predefined by HP cc +Olibcalls */
16500 char *alloca ();
16501 # endif
16502 # endif
16503 # endif
16504 # endif
16505 #endif
16508 main ()
16510 char *p = (char *) alloca (1);
16511 if (p) return 0;
16513 return 0;
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"; then :
16517 ac_cv_func_alloca_works=yes
16518 else
16519 ac_cv_func_alloca_works=no
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16525 $as_echo "$ac_cv_func_alloca_works" >&6; }
16527 if test $ac_cv_func_alloca_works = yes; then
16529 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16531 else
16532 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16533 # that cause trouble. Some versions do not even contain alloca or
16534 # contain a buggy version. If you still want to use their alloca,
16535 # use ar to extract alloca.o from them instead of compiling alloca.c.
16541 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16543 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16547 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16548 if test "${ac_cv_os_cray+set}" = set; then :
16549 $as_echo_n "(cached) " >&6
16550 else
16551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16552 /* end confdefs.h. */
16553 #if defined CRAY && ! defined CRAY2
16554 webecray
16555 #else
16556 wenotbecray
16557 #endif
16559 _ACEOF
16560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16561 $EGREP "webecray" >/dev/null 2>&1; then :
16562 ac_cv_os_cray=yes
16563 else
16564 ac_cv_os_cray=no
16566 rm -f conftest*
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16570 $as_echo "$ac_cv_os_cray" >&6; }
16571 if test $ac_cv_os_cray = yes; then
16572 for ac_func in _getb67 GETB67 getb67; do
16573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16574 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16575 eval as_val=\$$as_ac_var
16576 if test "x$as_val" = x""yes; then :
16578 cat >>confdefs.h <<_ACEOF
16579 #define CRAY_STACKSEG_END $ac_func
16580 _ACEOF
16582 break
16585 done
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16589 $as_echo_n "checking stack direction for C alloca... " >&6; }
16590 if test "${ac_cv_c_stack_direction+set}" = set; then :
16591 $as_echo_n "(cached) " >&6
16592 else
16593 if test "$cross_compiling" = yes; then :
16594 ac_cv_c_stack_direction=0
16595 else
16596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h. */
16598 $ac_includes_default
16600 find_stack_direction (int *addr, int depth)
16602 int dir, dummy = 0;
16603 if (! addr)
16604 addr = &dummy;
16605 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16606 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16607 return dir + dummy;
16611 main (int argc, char **argv)
16613 return find_stack_direction (0, argc + !argv + 20) < 0;
16615 _ACEOF
16616 if ac_fn_c_try_run "$LINENO"; then :
16617 ac_cv_c_stack_direction=1
16618 else
16619 ac_cv_c_stack_direction=-1
16621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16622 conftest.$ac_objext conftest.beam conftest.$ac_ext
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16627 $as_echo "$ac_cv_c_stack_direction" >&6; }
16628 cat >>confdefs.h <<_ACEOF
16629 #define STACK_DIRECTION $ac_cv_c_stack_direction
16630 _ACEOF
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16639 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16640 if test "${ac_cv_c_bigendian+set}" = set; then :
16641 $as_echo_n "(cached) " >&6
16642 else
16643 ac_cv_c_bigendian=unknown
16644 # See if we're dealing with a universal compiler.
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 #ifndef __APPLE_CC__
16648 not a universal capable compiler
16649 #endif
16650 typedef int dummy;
16652 _ACEOF
16653 if ac_fn_c_try_compile "$LINENO"; then :
16655 # Check for potential -arch flags. It is not universal unless
16656 # there are at least two -arch flags with different values.
16657 ac_arch=
16658 ac_prev=
16659 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16660 if test -n "$ac_prev"; then
16661 case $ac_word in
16662 i?86 | x86_64 | ppc | ppc64)
16663 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16664 ac_arch=$ac_word
16665 else
16666 ac_cv_c_bigendian=universal
16667 break
16670 esac
16671 ac_prev=
16672 elif test "x$ac_word" = "x-arch"; then
16673 ac_prev=arch
16675 done
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 if test $ac_cv_c_bigendian = unknown; then
16679 # See if sys/param.h defines the BYTE_ORDER macro.
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16682 #include <sys/types.h>
16683 #include <sys/param.h>
16686 main ()
16688 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16689 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16690 && LITTLE_ENDIAN)
16691 bogus endian macros
16692 #endif
16695 return 0;
16697 _ACEOF
16698 if ac_fn_c_try_compile "$LINENO"; then :
16699 # It does; now see whether it defined to BIG_ENDIAN or not.
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16702 #include <sys/types.h>
16703 #include <sys/param.h>
16706 main ()
16708 #if BYTE_ORDER != BIG_ENDIAN
16709 not big endian
16710 #endif
16713 return 0;
16715 _ACEOF
16716 if ac_fn_c_try_compile "$LINENO"; then :
16717 ac_cv_c_bigendian=yes
16718 else
16719 ac_cv_c_bigendian=no
16721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 if test $ac_cv_c_bigendian = unknown; then
16726 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16729 #include <limits.h>
16732 main ()
16734 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16735 bogus endian macros
16736 #endif
16739 return 0;
16741 _ACEOF
16742 if ac_fn_c_try_compile "$LINENO"; then :
16743 # It does; now see whether it defined to _BIG_ENDIAN or not.
16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16746 #include <limits.h>
16749 main ()
16751 #ifndef _BIG_ENDIAN
16752 not big endian
16753 #endif
16756 return 0;
16758 _ACEOF
16759 if ac_fn_c_try_compile "$LINENO"; then :
16760 ac_cv_c_bigendian=yes
16761 else
16762 ac_cv_c_bigendian=no
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16768 if test $ac_cv_c_bigendian = unknown; then
16769 # Compile a test program.
16770 if test "$cross_compiling" = yes; then :
16771 # Try to guess by grepping values from an object file.
16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16774 short int ascii_mm[] =
16775 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16776 short int ascii_ii[] =
16777 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16778 int use_ascii (int i) {
16779 return ascii_mm[i] + ascii_ii[i];
16781 short int ebcdic_ii[] =
16782 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16783 short int ebcdic_mm[] =
16784 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16785 int use_ebcdic (int i) {
16786 return ebcdic_mm[i] + ebcdic_ii[i];
16788 extern int foo;
16791 main ()
16793 return use_ascii (foo) == use_ebcdic (foo);
16795 return 0;
16797 _ACEOF
16798 if ac_fn_c_try_compile "$LINENO"; then :
16799 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16800 ac_cv_c_bigendian=yes
16802 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16803 if test "$ac_cv_c_bigendian" = unknown; then
16804 ac_cv_c_bigendian=no
16805 else
16806 # finding both strings is unlikely to happen, but who knows?
16807 ac_cv_c_bigendian=unknown
16811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812 else
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815 $ac_includes_default
16817 main ()
16820 /* Are we little or big endian? From Harbison&Steele. */
16821 union
16823 long int l;
16824 char c[sizeof (long int)];
16825 } u;
16826 u.l = 1;
16827 return u.c[sizeof (long int) - 1] == 1;
16830 return 0;
16832 _ACEOF
16833 if ac_fn_c_try_run "$LINENO"; then :
16834 ac_cv_c_bigendian=no
16835 else
16836 ac_cv_c_bigendian=yes
16838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16839 conftest.$ac_objext conftest.beam conftest.$ac_ext
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16845 $as_echo "$ac_cv_c_bigendian" >&6; }
16846 case $ac_cv_c_bigendian in #(
16847 yes)
16848 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16849 ;; #(
16851 ;; #(
16852 universal)
16854 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16856 ;; #(
16858 as_fn_error "unknown endianness
16859 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16860 esac
16864 GNULIB_CHDIR=0;
16865 GNULIB_CHOWN=0;
16866 GNULIB_CLOSE=0;
16867 GNULIB_DUP=0;
16868 GNULIB_DUP2=0;
16869 GNULIB_DUP3=0;
16870 GNULIB_ENVIRON=0;
16871 GNULIB_EUIDACCESS=0;
16872 GNULIB_FACCESSAT=0;
16873 GNULIB_FCHDIR=0;
16874 GNULIB_FCHOWNAT=0;
16875 GNULIB_FDATASYNC=0;
16876 GNULIB_FSYNC=0;
16877 GNULIB_FTRUNCATE=0;
16878 GNULIB_GETCWD=0;
16879 GNULIB_GETDOMAINNAME=0;
16880 GNULIB_GETDTABLESIZE=0;
16881 GNULIB_GETGROUPS=0;
16882 GNULIB_GETHOSTNAME=0;
16883 GNULIB_GETLOGIN=0;
16884 GNULIB_GETLOGIN_R=0;
16885 GNULIB_GETPAGESIZE=0;
16886 GNULIB_GETUSERSHELL=0;
16887 GNULIB_GROUP_MEMBER=0;
16888 GNULIB_ISATTY=0;
16889 GNULIB_LCHOWN=0;
16890 GNULIB_LINK=0;
16891 GNULIB_LINKAT=0;
16892 GNULIB_LSEEK=0;
16893 GNULIB_PIPE=0;
16894 GNULIB_PIPE2=0;
16895 GNULIB_PREAD=0;
16896 GNULIB_PWRITE=0;
16897 GNULIB_READ=0;
16898 GNULIB_READLINK=0;
16899 GNULIB_READLINKAT=0;
16900 GNULIB_RMDIR=0;
16901 GNULIB_SETHOSTNAME=0;
16902 GNULIB_SLEEP=0;
16903 GNULIB_SYMLINK=0;
16904 GNULIB_SYMLINKAT=0;
16905 GNULIB_TTYNAME_R=0;
16906 GNULIB_UNISTD_H_NONBLOCKING=0;
16907 GNULIB_UNISTD_H_SIGPIPE=0;
16908 GNULIB_UNLINK=0;
16909 GNULIB_UNLINKAT=0;
16910 GNULIB_USLEEP=0;
16911 GNULIB_WRITE=0;
16912 HAVE_CHOWN=1;
16913 HAVE_DUP2=1;
16914 HAVE_DUP3=1;
16915 HAVE_EUIDACCESS=1;
16916 HAVE_FACCESSAT=1;
16917 HAVE_FCHDIR=1;
16918 HAVE_FCHOWNAT=1;
16919 HAVE_FDATASYNC=1;
16920 HAVE_FSYNC=1;
16921 HAVE_FTRUNCATE=1;
16922 HAVE_GETDTABLESIZE=1;
16923 HAVE_GETGROUPS=1;
16924 HAVE_GETHOSTNAME=1;
16925 HAVE_GETLOGIN=1;
16926 HAVE_GETPAGESIZE=1;
16927 HAVE_GROUP_MEMBER=1;
16928 HAVE_LCHOWN=1;
16929 HAVE_LINK=1;
16930 HAVE_LINKAT=1;
16931 HAVE_PIPE=1;
16932 HAVE_PIPE2=1;
16933 HAVE_PREAD=1;
16934 HAVE_PWRITE=1;
16935 HAVE_READLINK=1;
16936 HAVE_READLINKAT=1;
16937 HAVE_SETHOSTNAME=1;
16938 HAVE_SLEEP=1;
16939 HAVE_SYMLINK=1;
16940 HAVE_SYMLINKAT=1;
16941 HAVE_UNLINKAT=1;
16942 HAVE_USLEEP=1;
16943 HAVE_DECL_ENVIRON=1;
16944 HAVE_DECL_FCHDIR=1;
16945 HAVE_DECL_FDATASYNC=1;
16946 HAVE_DECL_GETDOMAINNAME=1;
16947 HAVE_DECL_GETLOGIN_R=1;
16948 HAVE_DECL_GETPAGESIZE=1;
16949 HAVE_DECL_GETUSERSHELL=1;
16950 HAVE_DECL_SETHOSTNAME=1;
16951 HAVE_DECL_TTYNAME_R=1;
16952 HAVE_OS_H=0;
16953 HAVE_SYS_PARAM_H=0;
16954 REPLACE_CHOWN=0;
16955 REPLACE_CLOSE=0;
16956 REPLACE_DUP=0;
16957 REPLACE_DUP2=0;
16958 REPLACE_FCHOWNAT=0;
16959 REPLACE_FTRUNCATE=0;
16960 REPLACE_GETCWD=0;
16961 REPLACE_GETDOMAINNAME=0;
16962 REPLACE_GETLOGIN_R=0;
16963 REPLACE_GETGROUPS=0;
16964 REPLACE_GETPAGESIZE=0;
16965 REPLACE_ISATTY=0;
16966 REPLACE_LCHOWN=0;
16967 REPLACE_LINK=0;
16968 REPLACE_LINKAT=0;
16969 REPLACE_LSEEK=0;
16970 REPLACE_PREAD=0;
16971 REPLACE_PWRITE=0;
16972 REPLACE_READ=0;
16973 REPLACE_READLINK=0;
16974 REPLACE_RMDIR=0;
16975 REPLACE_SLEEP=0;
16976 REPLACE_SYMLINK=0;
16977 REPLACE_TTYNAME_R=0;
16978 REPLACE_UNLINK=0;
16979 REPLACE_UNLINKAT=0;
16980 REPLACE_USLEEP=0;
16981 REPLACE_WRITE=0;
16982 UNISTD_H_HAVE_WINSOCK2_H=0;
16983 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16987 GNULIB_OPENDIR=0;
16988 GNULIB_READDIR=0;
16989 GNULIB_REWINDDIR=0;
16990 GNULIB_CLOSEDIR=0;
16991 GNULIB_DIRFD=0;
16992 GNULIB_FDOPENDIR=0;
16993 GNULIB_SCANDIR=0;
16994 GNULIB_ALPHASORT=0;
16995 HAVE_OPENDIR=1;
16996 HAVE_READDIR=1;
16997 HAVE_REWINDDIR=1;
16998 HAVE_CLOSEDIR=1;
16999 HAVE_DECL_DIRFD=1;
17000 HAVE_DECL_FDOPENDIR=1;
17001 HAVE_FDOPENDIR=1;
17002 HAVE_SCANDIR=1;
17003 HAVE_ALPHASORT=1;
17004 REPLACE_OPENDIR=0;
17005 REPLACE_CLOSEDIR=0;
17006 REPLACE_DIRFD=0;
17007 REPLACE_FDOPENDIR=0;
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17012 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17013 if test "${gl_cv_have_include_next+set}" = set; then :
17014 $as_echo_n "(cached) " >&6
17015 else
17016 rm -rf conftestd1a conftestd1b conftestd2
17017 mkdir conftestd1a conftestd1b conftestd2
17018 cat <<EOF > conftestd1a/conftest.h
17019 #define DEFINED_IN_CONFTESTD1
17020 #include_next <conftest.h>
17021 #ifdef DEFINED_IN_CONFTESTD2
17022 int foo;
17023 #else
17024 #error "include_next doesn't work"
17025 #endif
17027 cat <<EOF > conftestd1b/conftest.h
17028 #define DEFINED_IN_CONFTESTD1
17029 #include <stdio.h>
17030 #include_next <conftest.h>
17031 #ifdef DEFINED_IN_CONFTESTD2
17032 int foo;
17033 #else
17034 #error "include_next doesn't work"
17035 #endif
17037 cat <<EOF > conftestd2/conftest.h
17038 #ifndef DEFINED_IN_CONFTESTD1
17039 #error "include_next test doesn't work"
17040 #endif
17041 #define DEFINED_IN_CONFTESTD2
17043 gl_save_CPPFLAGS="$CPPFLAGS"
17044 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 #include <conftest.h>
17048 _ACEOF
17049 if ac_fn_c_try_compile "$LINENO"; then :
17050 gl_cv_have_include_next=yes
17051 else
17052 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17055 #include <conftest.h>
17056 _ACEOF
17057 if ac_fn_c_try_compile "$LINENO"; then :
17058 gl_cv_have_include_next=buggy
17059 else
17060 gl_cv_have_include_next=no
17062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17066 CPPFLAGS="$gl_save_CPPFLAGS"
17067 rm -rf conftestd1a conftestd1b conftestd2
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17071 $as_echo "$gl_cv_have_include_next" >&6; }
17072 PRAGMA_SYSTEM_HEADER=
17073 if test $gl_cv_have_include_next = yes; then
17074 INCLUDE_NEXT=include_next
17075 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17076 if test -n "$GCC"; then
17077 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17079 else
17080 if test $gl_cv_have_include_next = buggy; then
17081 INCLUDE_NEXT=include
17082 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17083 else
17084 INCLUDE_NEXT=include
17085 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17092 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17093 if test "${gl_cv_pragma_columns+set}" = set; then :
17094 $as_echo_n "(cached) " >&6
17095 else
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17099 #ifdef __TANDEM
17100 choke me
17101 #endif
17103 _ACEOF
17104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17105 $EGREP "choke me" >/dev/null 2>&1; then :
17106 gl_cv_pragma_columns=yes
17107 else
17108 gl_cv_pragma_columns=no
17110 rm -f conftest*
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17115 $as_echo "$gl_cv_pragma_columns" >&6; }
17116 if test $gl_cv_pragma_columns = yes; then
17117 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17118 else
17119 PRAGMA_COLUMNS=
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
17127 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
17128 if test "${gl_cv_func_c99_strtold+set}" = set; then :
17129 $as_echo_n "(cached) " >&6
17130 else
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 /* On HP-UX before 11.23, strtold returns a struct instead of
17134 long double. Reject implementations like that, by requiring
17135 compatibility with the C99 prototype. */
17136 #include <stdlib.h>
17137 static long double (*p) (char const *, char **) = strtold;
17138 static long double
17139 test (char const *nptr, char **endptr)
17141 long double r;
17142 r = strtold (nptr, endptr);
17143 return r;
17146 main ()
17148 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
17150 return 0;
17152 _ACEOF
17153 if ac_fn_c_try_link "$LINENO"; then :
17154 gl_cv_func_c99_strtold=yes
17155 else
17156 gl_cv_func_c99_strtold=no
17158 rm -f core conftest.err conftest.$ac_objext \
17159 conftest$ac_exeext conftest.$ac_ext
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
17162 $as_echo "$gl_cv_func_c99_strtold" >&6; }
17163 if test $gl_cv_func_c99_strtold = yes; then
17165 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
17177 $as_echo_n "checking if environ is properly declared... " >&6; }
17178 if test "${gt_cv_var_environ_declaration+set}" = set; then :
17179 $as_echo_n "(cached) " >&6
17180 else
17182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183 /* end confdefs.h. */
17184 #if HAVE_UNISTD_H
17185 #include <unistd.h>
17186 #endif
17187 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
17188 #include <stdlib.h>
17190 extern struct { int foo; } environ;
17192 main ()
17194 environ.foo = 1;
17196 return 0;
17198 _ACEOF
17199 if ac_fn_c_try_compile "$LINENO"; then :
17200 gt_cv_var_environ_declaration=no
17201 else
17202 gt_cv_var_environ_declaration=yes
17204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
17208 $as_echo "$gt_cv_var_environ_declaration" >&6; }
17209 if test $gt_cv_var_environ_declaration = yes; then
17211 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
17216 if test $gt_cv_var_environ_declaration != yes; then
17217 HAVE_DECL_ENVIRON=0
17228 GNULIB_FCNTL=0;
17229 GNULIB_NONBLOCKING=0;
17230 GNULIB_OPEN=0;
17231 GNULIB_OPENAT=0;
17232 HAVE_FCNTL=1;
17233 HAVE_OPENAT=1;
17234 REPLACE_FCNTL=0;
17235 REPLACE_OPEN=0;
17236 REPLACE_OPENAT=0;
17239 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17240 if test "x$ac_cv_type_mode_t" = x""yes; then :
17242 else
17244 cat >>confdefs.h <<_ACEOF
17245 #define mode_t int
17246 _ACEOF
17250 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
17251 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then :
17252 ac_have_decl=1
17253 else
17254 ac_have_decl=0
17257 cat >>confdefs.h <<_ACEOF
17258 #define HAVE_DECL_FDATASYNC $ac_have_decl
17259 _ACEOF
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
17264 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
17265 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
17266 $as_echo_n "(cached) " >&6
17267 else
17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h. */
17271 #include <sys/types.h>
17272 #include <sys/stat.h>
17274 main ()
17276 struct stat s; s.st_dm_mode;
17278 return 0;
17280 _ACEOF
17281 if ac_fn_c_try_compile "$LINENO"; then :
17282 ac_cv_struct_st_dm_mode=yes
17283 else
17284 ac_cv_struct_st_dm_mode=no
17286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
17289 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
17291 if test $ac_cv_struct_st_dm_mode = yes; then
17293 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
17298 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
17299 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
17300 ac_have_decl=1
17301 else
17302 ac_have_decl=0
17305 cat >>confdefs.h <<_ACEOF
17306 #define HAVE_DECL_STRMODE $ac_have_decl
17307 _ACEOF
17314 GNULIB_FCHMODAT=0;
17315 GNULIB_FSTAT=0;
17316 GNULIB_FSTATAT=0;
17317 GNULIB_FUTIMENS=0;
17318 GNULIB_LCHMOD=0;
17319 GNULIB_LSTAT=0;
17320 GNULIB_MKDIRAT=0;
17321 GNULIB_MKFIFO=0;
17322 GNULIB_MKFIFOAT=0;
17323 GNULIB_MKNOD=0;
17324 GNULIB_MKNODAT=0;
17325 GNULIB_STAT=0;
17326 GNULIB_UTIMENSAT=0;
17327 HAVE_FCHMODAT=1;
17328 HAVE_FSTATAT=1;
17329 HAVE_FUTIMENS=1;
17330 HAVE_LCHMOD=1;
17331 HAVE_LSTAT=1;
17332 HAVE_MKDIRAT=1;
17333 HAVE_MKFIFO=1;
17334 HAVE_MKFIFOAT=1;
17335 HAVE_MKNOD=1;
17336 HAVE_MKNODAT=1;
17337 HAVE_UTIMENSAT=1;
17338 REPLACE_FSTAT=0;
17339 REPLACE_FSTATAT=0;
17340 REPLACE_FUTIMENS=0;
17341 REPLACE_LSTAT=0;
17342 REPLACE_MKDIR=0;
17343 REPLACE_MKFIFO=0;
17344 REPLACE_MKNOD=0;
17345 REPLACE_STAT=0;
17346 REPLACE_UTIMENSAT=0;
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
17350 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
17351 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
17352 $as_echo_n "(cached) " >&6
17353 else
17354 rm -f conftest.sym conftest.file
17355 echo >conftest.file
17356 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
17357 if test "$cross_compiling" = yes; then :
17358 case "$host_os" in
17359 # Guess yes on glibc systems.
17360 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
17361 # If we don't know, assume the worst.
17362 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
17363 esac
17365 else
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17368 $ac_includes_default
17370 main ()
17372 struct stat sbuf;
17373 /* Linux will dereference the symlink and fail, as required by
17374 POSIX. That is better in the sense that it means we will not
17375 have to compile and use the lstat wrapper. */
17376 return lstat ("conftest.sym/", &sbuf) == 0;
17379 return 0;
17381 _ACEOF
17382 if ac_fn_c_try_run "$LINENO"; then :
17383 gl_cv_func_lstat_dereferences_slashed_symlink=yes
17384 else
17385 gl_cv_func_lstat_dereferences_slashed_symlink=no
17387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17388 conftest.$ac_objext conftest.beam conftest.$ac_ext
17391 else
17392 # If the 'ln -s' command failed, then we probably don't even
17393 # have an lstat function.
17394 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
17396 rm -f conftest.sym conftest.file
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
17400 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
17401 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
17402 *yes)
17404 cat >>confdefs.h <<_ACEOF
17405 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
17406 _ACEOF
17409 esac
17416 GNULIB__EXIT=0;
17417 GNULIB_ATOLL=0;
17418 GNULIB_CALLOC_POSIX=0;
17419 GNULIB_CANONICALIZE_FILE_NAME=0;
17420 GNULIB_GETLOADAVG=0;
17421 GNULIB_GETSUBOPT=0;
17422 GNULIB_GRANTPT=0;
17423 GNULIB_MALLOC_POSIX=0;
17424 GNULIB_MBTOWC=0;
17425 GNULIB_MKDTEMP=0;
17426 GNULIB_MKOSTEMP=0;
17427 GNULIB_MKOSTEMPS=0;
17428 GNULIB_MKSTEMP=0;
17429 GNULIB_MKSTEMPS=0;
17430 GNULIB_POSIX_OPENPT=0;
17431 GNULIB_PTSNAME=0;
17432 GNULIB_PTSNAME_R=0;
17433 GNULIB_PUTENV=0;
17434 GNULIB_RANDOM=0;
17435 GNULIB_RANDOM_R=0;
17436 GNULIB_REALLOC_POSIX=0;
17437 GNULIB_REALPATH=0;
17438 GNULIB_RPMATCH=0;
17439 GNULIB_SECURE_GETENV=0;
17440 GNULIB_SETENV=0;
17441 GNULIB_STRTOD=0;
17442 GNULIB_STRTOLL=0;
17443 GNULIB_STRTOULL=0;
17444 GNULIB_SYSTEM_POSIX=0;
17445 GNULIB_UNLOCKPT=0;
17446 GNULIB_UNSETENV=0;
17447 GNULIB_WCTOMB=0;
17448 HAVE__EXIT=1;
17449 HAVE_ATOLL=1;
17450 HAVE_CANONICALIZE_FILE_NAME=1;
17451 HAVE_DECL_GETLOADAVG=1;
17452 HAVE_GETSUBOPT=1;
17453 HAVE_GRANTPT=1;
17454 HAVE_MKDTEMP=1;
17455 HAVE_MKOSTEMP=1;
17456 HAVE_MKOSTEMPS=1;
17457 HAVE_MKSTEMP=1;
17458 HAVE_MKSTEMPS=1;
17459 HAVE_POSIX_OPENPT=1;
17460 HAVE_PTSNAME=1;
17461 HAVE_PTSNAME_R=1;
17462 HAVE_RANDOM=1;
17463 HAVE_RANDOM_H=1;
17464 HAVE_RANDOM_R=1;
17465 HAVE_REALPATH=1;
17466 HAVE_RPMATCH=1;
17467 HAVE_SECURE_GETENV=1;
17468 HAVE_SETENV=1;
17469 HAVE_DECL_SETENV=1;
17470 HAVE_STRTOD=1;
17471 HAVE_STRTOLL=1;
17472 HAVE_STRTOULL=1;
17473 HAVE_STRUCT_RANDOM_DATA=1;
17474 HAVE_SYS_LOADAVG_H=0;
17475 HAVE_UNLOCKPT=1;
17476 HAVE_DECL_UNSETENV=1;
17477 REPLACE_CALLOC=0;
17478 REPLACE_CANONICALIZE_FILE_NAME=0;
17479 REPLACE_MALLOC=0;
17480 REPLACE_MBTOWC=0;
17481 REPLACE_MKSTEMP=0;
17482 REPLACE_PTSNAME=0;
17483 REPLACE_PTSNAME_R=0;
17484 REPLACE_PUTENV=0;
17485 REPLACE_RANDOM_R=0;
17486 REPLACE_REALLOC=0;
17487 REPLACE_REALPATH=0;
17488 REPLACE_SETENV=0;
17489 REPLACE_STRTOD=0;
17490 REPLACE_UNSETENV=0;
17491 REPLACE_WCTOMB=0;
17508 if test $gl_cv_have_include_next = yes; then
17509 gl_cv_next_getopt_h='<'getopt.h'>'
17510 else
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17512 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17513 if test "${gl_cv_next_getopt_h+set}" = set; then :
17514 $as_echo_n "(cached) " >&6
17515 else
17517 if test $ac_cv_header_getopt_h = yes; then
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 #include <getopt.h>
17524 _ACEOF
17525 case "$host_os" in
17526 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17527 *) gl_absname_cpp="$ac_cpp" ;;
17528 esac
17530 case "$host_os" in
17531 mingw*)
17532 gl_dirsep_regex='[/\\]'
17535 gl_dirsep_regex='\/'
17537 esac
17538 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17540 gl_header_literal_regex=`echo 'getopt.h' \
17541 | sed -e "$gl_make_literal_regex_sed"`
17542 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17543 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17544 s|^/[^/]|//&|
17548 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17549 sed -n "$gl_absolute_header_sed"`'"'
17550 else
17551 gl_cv_next_getopt_h='<'getopt.h'>'
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17557 $as_echo "$gl_cv_next_getopt_h" >&6; }
17559 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17561 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17563 gl_next_as_first_directive='<'getopt.h'>'
17564 else
17565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17566 gl_next_as_first_directive=$gl_cv_next_getopt_h
17568 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17573 if test $ac_cv_header_getopt_h = yes; then
17574 HAVE_GETOPT_H=1
17575 else
17576 HAVE_GETOPT_H=0
17580 gl_replace_getopt=
17582 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17583 for ac_header in getopt.h
17584 do :
17585 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17586 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17587 cat >>confdefs.h <<_ACEOF
17588 #define HAVE_GETOPT_H 1
17589 _ACEOF
17591 else
17592 gl_replace_getopt=yes
17595 done
17599 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17600 for ac_func in getopt_long_only
17601 do :
17602 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17603 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17604 cat >>confdefs.h <<_ACEOF
17605 #define HAVE_GETOPT_LONG_ONLY 1
17606 _ACEOF
17608 else
17609 gl_replace_getopt=yes
17611 done
17615 if test -z "$gl_replace_getopt"; then
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17617 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17618 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17622 if test $cross_compiling = no; then
17623 if test "$cross_compiling" = yes; then :
17624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17626 as_fn_error "cannot run test program while cross compiling
17627 See \`config.log' for more details." "$LINENO" 5; }
17628 else
17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h. */
17632 #include <unistd.h>
17633 #include <stdlib.h>
17634 #include <string.h>
17637 main ()
17639 static char program[] = "program";
17640 static char a[] = "-a";
17641 static char foo[] = "foo";
17642 static char bar[] = "bar";
17643 char *argv[] = { program, a, foo, bar, NULL };
17644 int c;
17646 c = getopt (4, argv, "ab");
17647 if (!(c == 'a'))
17648 return 1;
17649 c = getopt (4, argv, "ab");
17650 if (!(c == -1))
17651 return 2;
17652 if (!(optind == 2))
17653 return 3;
17654 return 0;
17657 _ACEOF
17658 if ac_fn_c_try_run "$LINENO"; then :
17659 gl_cv_func_getopt_posix=maybe
17660 else
17661 gl_cv_func_getopt_posix=no
17663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17664 conftest.$ac_objext conftest.beam conftest.$ac_ext
17667 if test $gl_cv_func_getopt_posix = maybe; then
17668 if test "$cross_compiling" = yes; then :
17669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17671 as_fn_error "cannot run test program while cross compiling
17672 See \`config.log' for more details." "$LINENO" 5; }
17673 else
17674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17677 #include <unistd.h>
17678 #include <stdlib.h>
17679 #include <string.h>
17682 main ()
17684 static char program[] = "program";
17685 static char donald[] = "donald";
17686 static char p[] = "-p";
17687 static char billy[] = "billy";
17688 static char duck[] = "duck";
17689 static char a[] = "-a";
17690 static char bar[] = "bar";
17691 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17692 int c;
17694 c = getopt (7, argv, "+abp:q:");
17695 if (!(c == -1))
17696 return 4;
17697 if (!(strcmp (argv[0], "program") == 0))
17698 return 5;
17699 if (!(strcmp (argv[1], "donald") == 0))
17700 return 6;
17701 if (!(strcmp (argv[2], "-p") == 0))
17702 return 7;
17703 if (!(strcmp (argv[3], "billy") == 0))
17704 return 8;
17705 if (!(strcmp (argv[4], "duck") == 0))
17706 return 9;
17707 if (!(strcmp (argv[5], "-a") == 0))
17708 return 10;
17709 if (!(strcmp (argv[6], "bar") == 0))
17710 return 11;
17711 if (!(optind == 1))
17712 return 12;
17713 return 0;
17716 _ACEOF
17717 if ac_fn_c_try_run "$LINENO"; then :
17718 gl_cv_func_getopt_posix=maybe
17719 else
17720 gl_cv_func_getopt_posix=no
17722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17723 conftest.$ac_objext conftest.beam conftest.$ac_ext
17727 if test $gl_cv_func_getopt_posix = maybe; then
17728 if test "$cross_compiling" = yes; then :
17729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17731 as_fn_error "cannot run test program while cross compiling
17732 See \`config.log' for more details." "$LINENO" 5; }
17733 else
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h. */
17737 #include <unistd.h>
17738 #include <stdlib.h>
17739 #include <string.h>
17742 main ()
17744 static char program[] = "program";
17745 static char ab[] = "-ab";
17746 char *argv[3] = { program, ab, NULL };
17747 if (getopt (2, argv, "ab:") != 'a')
17748 return 13;
17749 if (getopt (2, argv, "ab:") != '?')
17750 return 14;
17751 if (optopt != 'b')
17752 return 15;
17753 if (optind != 2)
17754 return 16;
17755 return 0;
17758 _ACEOF
17759 if ac_fn_c_try_run "$LINENO"; then :
17760 gl_cv_func_getopt_posix=yes
17761 else
17762 gl_cv_func_getopt_posix=no
17764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17765 conftest.$ac_objext conftest.beam conftest.$ac_ext
17769 else
17770 case "$host_os" in
17771 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17772 *) gl_cv_func_getopt_posix="guessing yes";;
17773 esac
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17778 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17779 case "$gl_cv_func_getopt_posix" in
17780 *no) gl_replace_getopt=yes ;;
17781 esac
17784 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17786 $as_echo_n "checking for working GNU getopt function... " >&6; }
17787 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17788 $as_echo_n "(cached) " >&6
17789 else
17790 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17791 # optstring is necessary for programs like m4 that have POSIX-mandated
17792 # semantics for supporting options interspersed with files.
17793 # Also, since getopt_long is a GNU extension, we require optind=0.
17794 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17795 # so take care to revert to the correct (non-)export state.
17796 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17797 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17798 xx) gl_had_POSIXLY_CORRECT=exported ;;
17799 x) gl_had_POSIXLY_CORRECT=yes ;;
17800 *) gl_had_POSIXLY_CORRECT= ;;
17801 esac
17802 POSIXLY_CORRECT=1
17803 export POSIXLY_CORRECT
17804 if test "$cross_compiling" = yes; then :
17805 gl_cv_func_getopt_gnu="guessing no"
17807 else
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17810 #include <getopt.h>
17811 #include <stddef.h>
17812 #include <string.h>
17814 #include <stdlib.h>
17815 #if defined __MACH__ && defined __APPLE__
17816 /* Avoid a crash on Mac OS X. */
17817 #include <mach/mach.h>
17818 #include <mach/mach_error.h>
17819 #include <mach/thread_status.h>
17820 #include <mach/exception.h>
17821 #include <mach/task.h>
17822 #include <pthread.h>
17823 /* The exception port on which our thread listens. */
17824 static mach_port_t our_exception_port;
17825 /* The main function of the thread listening for exceptions of type
17826 EXC_BAD_ACCESS. */
17827 static void *
17828 mach_exception_thread (void *arg)
17830 /* Buffer for a message to be received. */
17831 struct {
17832 mach_msg_header_t head;
17833 mach_msg_body_t msgh_body;
17834 char data[1024];
17835 } msg;
17836 mach_msg_return_t retval;
17837 /* Wait for a message on the exception port. */
17838 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17839 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17840 if (retval != MACH_MSG_SUCCESS)
17841 abort ();
17842 exit (1);
17844 static void
17845 nocrash_init (void)
17847 mach_port_t self = mach_task_self ();
17848 /* Allocate a port on which the thread shall listen for exceptions. */
17849 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17850 == KERN_SUCCESS) {
17851 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17852 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17853 MACH_MSG_TYPE_MAKE_SEND)
17854 == KERN_SUCCESS) {
17855 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17856 for us. */
17857 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17858 /* Create the thread listening on the exception port. */
17859 pthread_attr_t attr;
17860 pthread_t thread;
17861 if (pthread_attr_init (&attr) == 0
17862 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17863 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17864 pthread_attr_destroy (&attr);
17865 /* Replace the exception port info for these exceptions with our own.
17866 Note that we replace the exception port for the entire task, not only
17867 for a particular thread. This has the effect that when our exception
17868 port gets the message, the thread specific exception port has already
17869 been asked, and we don't need to bother about it.
17870 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17871 task_set_exception_ports (self, mask, our_exception_port,
17872 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17877 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17878 /* Avoid a crash on native Windows. */
17879 #define WIN32_LEAN_AND_MEAN
17880 #include <windows.h>
17881 #include <winerror.h>
17882 static LONG WINAPI
17883 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17885 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17887 case EXCEPTION_ACCESS_VIOLATION:
17888 case EXCEPTION_IN_PAGE_ERROR:
17889 case EXCEPTION_STACK_OVERFLOW:
17890 case EXCEPTION_GUARD_PAGE:
17891 case EXCEPTION_PRIV_INSTRUCTION:
17892 case EXCEPTION_ILLEGAL_INSTRUCTION:
17893 case EXCEPTION_DATATYPE_MISALIGNMENT:
17894 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17895 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17896 exit (1);
17898 return EXCEPTION_CONTINUE_SEARCH;
17900 static void
17901 nocrash_init (void)
17903 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17905 #else
17906 /* Avoid a crash on POSIX systems. */
17907 #include <signal.h>
17908 /* A POSIX signal handler. */
17909 static void
17910 exception_handler (int sig)
17912 exit (1);
17914 static void
17915 nocrash_init (void)
17917 #ifdef SIGSEGV
17918 signal (SIGSEGV, exception_handler);
17919 #endif
17920 #ifdef SIGBUS
17921 signal (SIGBUS, exception_handler);
17922 #endif
17924 #endif
17928 main ()
17931 int result = 0;
17933 nocrash_init();
17935 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17936 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17937 OSF/1 5.1, Solaris 10. */
17939 static char conftest[] = "conftest";
17940 static char plus[] = "-+";
17941 char *argv[3] = { conftest, plus, NULL };
17942 opterr = 0;
17943 if (getopt (2, argv, "+a") != '?')
17944 result |= 1;
17946 /* This code succeeds on glibc 2.8, mingw,
17947 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17948 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17950 static char program[] = "program";
17951 static char p[] = "-p";
17952 static char foo[] = "foo";
17953 static char bar[] = "bar";
17954 char *argv[] = { program, p, foo, bar, NULL };
17956 optind = 1;
17957 if (getopt (4, argv, "p::") != 'p')
17958 result |= 2;
17959 else if (optarg != NULL)
17960 result |= 4;
17961 else if (getopt (4, argv, "p::") != -1)
17962 result |= 6;
17963 else if (optind != 2)
17964 result |= 8;
17966 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17968 static char program[] = "program";
17969 static char foo[] = "foo";
17970 static char p[] = "-p";
17971 char *argv[] = { program, foo, p, NULL };
17972 optind = 0;
17973 if (getopt (3, argv, "-p") != 1)
17974 result |= 16;
17975 else if (getopt (3, argv, "-p") != 'p')
17976 result |= 16;
17978 /* This code fails on glibc 2.11. */
17980 static char program[] = "program";
17981 static char b[] = "-b";
17982 static char a[] = "-a";
17983 char *argv[] = { program, b, a, NULL };
17984 optind = opterr = 0;
17985 if (getopt (3, argv, "+:a:b") != 'b')
17986 result |= 32;
17987 else if (getopt (3, argv, "+:a:b") != ':')
17988 result |= 32;
17990 /* This code dumps core on glibc 2.14. */
17992 static char program[] = "program";
17993 static char w[] = "-W";
17994 static char dummy[] = "dummy";
17995 char *argv[] = { program, w, dummy, NULL };
17996 optind = opterr = 1;
17997 if (getopt (3, argv, "W;") != 'W')
17998 result |= 64;
18000 return result;
18003 return 0;
18005 _ACEOF
18006 if ac_fn_c_try_run "$LINENO"; then :
18007 gl_cv_func_getopt_gnu=yes
18008 else
18009 gl_cv_func_getopt_gnu=no
18011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18012 conftest.$ac_objext conftest.beam conftest.$ac_ext
18015 case $gl_had_POSIXLY_CORRECT in
18016 exported) ;;
18017 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
18018 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
18019 esac
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
18023 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
18024 if test "$gl_cv_func_getopt_gnu" != yes; then
18025 gl_replace_getopt=yes
18026 else
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
18028 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
18029 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
18030 $as_echo_n "(cached) " >&6
18031 else
18032 if test "$cross_compiling" = yes; then :
18033 case "$host_os" in
18034 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
18035 *) gl_cv_func_getopt_long_gnu="guessing yes";;
18036 esac
18038 else
18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18041 #include <getopt.h>
18042 #include <stddef.h>
18043 #include <string.h>
18046 main ()
18048 static const struct option long_options[] =
18050 { "xtremely-",no_argument, NULL, 1003 },
18051 { "xtra", no_argument, NULL, 1001 },
18052 { "xtreme", no_argument, NULL, 1002 },
18053 { "xtremely", no_argument, NULL, 1003 },
18054 { NULL, 0, NULL, 0 }
18056 /* This code fails on OpenBSD 5.0. */
18058 static char program[] = "program";
18059 static char xtremel[] = "--xtremel";
18060 char *argv[] = { program, xtremel, NULL };
18061 int option_index;
18062 optind = 1; opterr = 0;
18063 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
18064 return 1;
18066 return 0;
18069 return 0;
18071 _ACEOF
18072 if ac_fn_c_try_run "$LINENO"; then :
18073 gl_cv_func_getopt_long_gnu=yes
18074 else
18075 gl_cv_func_getopt_long_gnu=no
18077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18078 conftest.$ac_objext conftest.beam conftest.$ac_ext
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
18084 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
18085 case "$gl_cv_func_getopt_long_gnu" in
18086 *yes) ;;
18087 *) gl_replace_getopt=yes ;;
18088 esac
18097 REPLACE_GETOPT=0
18098 if test -n "$gl_replace_getopt"; then
18099 REPLACE_GETOPT=1
18102 if test $REPLACE_GETOPT = 1; then
18104 GETOPT_H=getopt.h
18106 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18112 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
18113 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
18114 ac_have_decl=1
18115 else
18116 ac_have_decl=0
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_DECL_GETENV $ac_have_decl
18121 _ACEOF
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18129 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18130 if test "${ac_cv_c_restrict+set}" = set; then :
18131 $as_echo_n "(cached) " >&6
18132 else
18133 ac_cv_c_restrict=no
18134 # The order here caters to the fact that C++ does not require restrict.
18135 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18138 typedef int * int_ptr;
18139 int foo (int_ptr $ac_kw ip) {
18140 return ip[0];
18143 main ()
18145 int s[1];
18146 int * $ac_kw t = s;
18147 t[0] = 0;
18148 return foo(t)
18150 return 0;
18152 _ACEOF
18153 if ac_fn_c_try_compile "$LINENO"; then :
18154 ac_cv_c_restrict=$ac_kw
18156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18157 test "$ac_cv_c_restrict" != no && break
18158 done
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18162 $as_echo "$ac_cv_c_restrict" >&6; }
18164 case $ac_cv_c_restrict in
18165 restrict) ;;
18166 no) $as_echo "#define restrict /**/" >>confdefs.h
18168 *) cat >>confdefs.h <<_ACEOF
18169 #define restrict $ac_cv_c_restrict
18170 _ACEOF
18172 esac
18175 GNULIB_GETTIMEOFDAY=0;
18176 HAVE_GETTIMEOFDAY=1;
18177 HAVE_STRUCT_TIMEVAL=1;
18178 HAVE_SYS_TIME_H=1;
18179 REPLACE_GETTIMEOFDAY=0;
18180 REPLACE_STRUCT_TIMEVAL=0;
18197 if test $gl_cv_have_include_next = yes; then
18198 gl_cv_next_sys_time_h='<'sys/time.h'>'
18199 else
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
18201 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
18202 if test "${gl_cv_next_sys_time_h+set}" = set; then :
18203 $as_echo_n "(cached) " >&6
18204 else
18206 if test $ac_cv_header_sys_time_h = yes; then
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18211 #include <sys/time.h>
18213 _ACEOF
18214 case "$host_os" in
18215 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18216 *) gl_absname_cpp="$ac_cpp" ;;
18217 esac
18219 case "$host_os" in
18220 mingw*)
18221 gl_dirsep_regex='[/\\]'
18224 gl_dirsep_regex='\/'
18226 esac
18227 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18229 gl_header_literal_regex=`echo 'sys/time.h' \
18230 | sed -e "$gl_make_literal_regex_sed"`
18231 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18232 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18233 s|^/[^/]|//&|
18237 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18238 sed -n "$gl_absolute_header_sed"`'"'
18239 else
18240 gl_cv_next_sys_time_h='<'sys/time.h'>'
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
18246 $as_echo "$gl_cv_next_sys_time_h" >&6; }
18248 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
18250 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18251 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18252 gl_next_as_first_directive='<'sys/time.h'>'
18253 else
18254 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18255 gl_next_as_first_directive=$gl_cv_next_sys_time_h
18257 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
18263 if test $ac_cv_header_sys_time_h != yes; then
18264 HAVE_SYS_TIME_H=0
18271 if test $ac_cv_header_sys_socket_h != yes; then
18272 for ac_header in winsock2.h
18273 do :
18274 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18275 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE_WINSOCK2_H 1
18278 _ACEOF
18282 done
18285 if test "$ac_cv_header_winsock2_h" = yes; then
18286 HAVE_WINSOCK2_H=1
18287 UNISTD_H_HAVE_WINSOCK2_H=1
18288 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18289 else
18290 HAVE_WINSOCK2_H=0
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
18295 $as_echo_n "checking for struct timeval... " >&6; }
18296 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
18297 $as_echo_n "(cached) " >&6
18298 else
18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18300 /* end confdefs.h. */
18301 #if HAVE_SYS_TIME_H
18302 #include <sys/time.h>
18303 #endif
18304 #include <time.h>
18305 #if HAVE_WINSOCK2_H
18306 # include <winsock2.h>
18307 #endif
18310 main ()
18312 static struct timeval x; x.tv_sec = x.tv_usec;
18314 return 0;
18316 _ACEOF
18317 if ac_fn_c_try_compile "$LINENO"; then :
18318 gl_cv_sys_struct_timeval=yes
18319 else
18320 gl_cv_sys_struct_timeval=no
18322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18326 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18327 if test $gl_cv_sys_struct_timeval != yes; then
18328 HAVE_STRUCT_TIMEVAL=0
18329 else
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18331 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18332 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18333 $as_echo_n "(cached) " >&6
18334 else
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18337 #if HAVE_SYS_TIME_H
18338 #include <sys/time.h>
18339 #endif
18340 #include <time.h>
18341 #if HAVE_WINSOCK2_H
18342 # include <winsock2.h>
18343 #endif
18346 main ()
18348 static struct timeval x;
18349 typedef int verify_tv_sec_type[
18350 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18354 return 0;
18356 _ACEOF
18357 if ac_fn_c_try_compile "$LINENO"; then :
18358 gl_cv_sys_struct_timeval_tv_sec=yes
18359 else
18360 gl_cv_sys_struct_timeval_tv_sec=no
18362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18366 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18367 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18368 REPLACE_STRUCT_TIMEVAL=1
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18379 $as_echo_n "checking for unsigned long long int... " >&6; }
18380 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18381 $as_echo_n "(cached) " >&6
18382 else
18383 ac_cv_type_unsigned_long_long_int=yes
18384 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18388 /* For now, do not test the preprocessor; as of 2007 there are too many
18389 implementations with broken preprocessors. Perhaps this can
18390 be revisited in 2012. In the meantime, code should not expect
18391 #if to work with literals wider than 32 bits. */
18392 /* Test literals. */
18393 long long int ll = 9223372036854775807ll;
18394 long long int nll = -9223372036854775807LL;
18395 unsigned long long int ull = 18446744073709551615ULL;
18396 /* Test constant expressions. */
18397 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18398 ? 1 : -1)];
18399 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18400 ? 1 : -1)];
18401 int i = 63;
18403 main ()
18405 /* Test availability of runtime routines for shift and division. */
18406 long long int llmax = 9223372036854775807ll;
18407 unsigned long long int ullmax = 18446744073709551615ull;
18408 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18409 | (llmax / ll) | (llmax % ll)
18410 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18411 | (ullmax / ull) | (ullmax % ull));
18413 return 0;
18416 _ACEOF
18417 if ac_fn_c_try_link "$LINENO"; then :
18419 else
18420 ac_cv_type_unsigned_long_long_int=no
18422 rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18427 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18428 if test $ac_cv_type_unsigned_long_long_int = yes; then
18430 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18437 $as_echo_n "checking for long long int... " >&6; }
18438 if test "${ac_cv_type_long_long_int+set}" = set; then :
18439 $as_echo_n "(cached) " >&6
18440 else
18441 ac_cv_type_long_long_int=yes
18442 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18443 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18444 if test $ac_cv_type_long_long_int = yes; then
18445 if test "$cross_compiling" = yes; then :
18447 else
18448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18449 /* end confdefs.h. */
18450 #include <limits.h>
18451 #ifndef LLONG_MAX
18452 # define HALF \
18453 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18454 # define LLONG_MAX (HALF - 1 + HALF)
18455 #endif
18457 main ()
18459 long long int n = 1;
18460 int i;
18461 for (i = 0; ; i++)
18463 long long int m = n << i;
18464 if (m >> i != n)
18465 return 1;
18466 if (LLONG_MAX / 2 < m)
18467 break;
18469 return 0;
18471 return 0;
18473 _ACEOF
18474 if ac_fn_c_try_run "$LINENO"; then :
18476 else
18477 ac_cv_type_long_long_int=no
18479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18480 conftest.$ac_objext conftest.beam conftest.$ac_ext
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18487 $as_echo "$ac_cv_type_long_long_int" >&6; }
18488 if test $ac_cv_type_long_long_int = yes; then
18490 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18499 gl_cv_c_multiarch=no
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502 #ifndef __APPLE_CC__
18503 not a universal capable compiler
18504 #endif
18505 typedef int dummy;
18507 _ACEOF
18508 if ac_fn_c_try_compile "$LINENO"; then :
18510 arch=
18511 prev=
18512 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18513 if test -n "$prev"; then
18514 case $word in
18515 i?86 | x86_64 | ppc | ppc64)
18516 if test -z "$arch" || test "$arch" = "$word"; then
18517 arch="$word"
18518 else
18519 gl_cv_c_multiarch=yes
18522 esac
18523 prev=
18524 else
18525 if test "x$word" = "x-arch"; then
18526 prev=arch
18529 done
18532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533 if test $gl_cv_c_multiarch = yes; then
18534 APPLE_UNIVERSAL_BUILD=1
18535 else
18536 APPLE_UNIVERSAL_BUILD=0
18543 if test $ac_cv_type_long_long_int = yes; then
18544 HAVE_LONG_LONG_INT=1
18545 else
18546 HAVE_LONG_LONG_INT=0
18550 if test $ac_cv_type_unsigned_long_long_int = yes; then
18551 HAVE_UNSIGNED_LONG_LONG_INT=1
18552 else
18553 HAVE_UNSIGNED_LONG_LONG_INT=0
18558 if test $ac_cv_header_wchar_h = yes; then
18559 HAVE_WCHAR_H=1
18560 else
18561 HAVE_WCHAR_H=0
18565 if test $ac_cv_header_inttypes_h = yes; then
18566 HAVE_INTTYPES_H=1
18567 else
18568 HAVE_INTTYPES_H=0
18572 if test $ac_cv_header_sys_types_h = yes; then
18573 HAVE_SYS_TYPES_H=1
18574 else
18575 HAVE_SYS_TYPES_H=0
18588 if test $gl_cv_have_include_next = yes; then
18589 gl_cv_next_stdint_h='<'stdint.h'>'
18590 else
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18592 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18593 if test "${gl_cv_next_stdint_h+set}" = set; then :
18594 $as_echo_n "(cached) " >&6
18595 else
18597 if test $ac_cv_header_stdint_h = yes; then
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18602 #include <stdint.h>
18604 _ACEOF
18605 case "$host_os" in
18606 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18607 *) gl_absname_cpp="$ac_cpp" ;;
18608 esac
18610 case "$host_os" in
18611 mingw*)
18612 gl_dirsep_regex='[/\\]'
18615 gl_dirsep_regex='\/'
18617 esac
18618 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18620 gl_header_literal_regex=`echo 'stdint.h' \
18621 | sed -e "$gl_make_literal_regex_sed"`
18622 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18623 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18624 s|^/[^/]|//&|
18628 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18629 sed -n "$gl_absolute_header_sed"`'"'
18630 else
18631 gl_cv_next_stdint_h='<'stdint.h'>'
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18637 $as_echo "$gl_cv_next_stdint_h" >&6; }
18639 NEXT_STDINT_H=$gl_cv_next_stdint_h
18641 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18642 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18643 gl_next_as_first_directive='<'stdint.h'>'
18644 else
18645 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18646 gl_next_as_first_directive=$gl_cv_next_stdint_h
18648 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18653 if test $ac_cv_header_stdint_h = yes; then
18654 HAVE_STDINT_H=1
18655 else
18656 HAVE_STDINT_H=0
18660 if test $ac_cv_header_stdint_h = yes; then
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18662 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18663 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18664 $as_echo_n "(cached) " >&6
18665 else
18666 gl_cv_header_working_stdint_h=no
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18671 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18672 #include <stdint.h>
18673 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18674 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18675 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18676 #endif
18679 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18680 included before <wchar.h>. */
18681 #include <stddef.h>
18682 #include <signal.h>
18683 #if HAVE_WCHAR_H
18684 # include <stdio.h>
18685 # include <time.h>
18686 # include <wchar.h>
18687 #endif
18690 #ifdef INT8_MAX
18691 int8_t a1 = INT8_MAX;
18692 int8_t a1min = INT8_MIN;
18693 #endif
18694 #ifdef INT16_MAX
18695 int16_t a2 = INT16_MAX;
18696 int16_t a2min = INT16_MIN;
18697 #endif
18698 #ifdef INT32_MAX
18699 int32_t a3 = INT32_MAX;
18700 int32_t a3min = INT32_MIN;
18701 #endif
18702 #ifdef INT64_MAX
18703 int64_t a4 = INT64_MAX;
18704 int64_t a4min = INT64_MIN;
18705 #endif
18706 #ifdef UINT8_MAX
18707 uint8_t b1 = UINT8_MAX;
18708 #else
18709 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18710 #endif
18711 #ifdef UINT16_MAX
18712 uint16_t b2 = UINT16_MAX;
18713 #endif
18714 #ifdef UINT32_MAX
18715 uint32_t b3 = UINT32_MAX;
18716 #endif
18717 #ifdef UINT64_MAX
18718 uint64_t b4 = UINT64_MAX;
18719 #endif
18720 int_least8_t c1 = INT8_C (0x7f);
18721 int_least8_t c1max = INT_LEAST8_MAX;
18722 int_least8_t c1min = INT_LEAST8_MIN;
18723 int_least16_t c2 = INT16_C (0x7fff);
18724 int_least16_t c2max = INT_LEAST16_MAX;
18725 int_least16_t c2min = INT_LEAST16_MIN;
18726 int_least32_t c3 = INT32_C (0x7fffffff);
18727 int_least32_t c3max = INT_LEAST32_MAX;
18728 int_least32_t c3min = INT_LEAST32_MIN;
18729 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18730 int_least64_t c4max = INT_LEAST64_MAX;
18731 int_least64_t c4min = INT_LEAST64_MIN;
18732 uint_least8_t d1 = UINT8_C (0xff);
18733 uint_least8_t d1max = UINT_LEAST8_MAX;
18734 uint_least16_t d2 = UINT16_C (0xffff);
18735 uint_least16_t d2max = UINT_LEAST16_MAX;
18736 uint_least32_t d3 = UINT32_C (0xffffffff);
18737 uint_least32_t d3max = UINT_LEAST32_MAX;
18738 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18739 uint_least64_t d4max = UINT_LEAST64_MAX;
18740 int_fast8_t e1 = INT_FAST8_MAX;
18741 int_fast8_t e1min = INT_FAST8_MIN;
18742 int_fast16_t e2 = INT_FAST16_MAX;
18743 int_fast16_t e2min = INT_FAST16_MIN;
18744 int_fast32_t e3 = INT_FAST32_MAX;
18745 int_fast32_t e3min = INT_FAST32_MIN;
18746 int_fast64_t e4 = INT_FAST64_MAX;
18747 int_fast64_t e4min = INT_FAST64_MIN;
18748 uint_fast8_t f1 = UINT_FAST8_MAX;
18749 uint_fast16_t f2 = UINT_FAST16_MAX;
18750 uint_fast32_t f3 = UINT_FAST32_MAX;
18751 uint_fast64_t f4 = UINT_FAST64_MAX;
18752 #ifdef INTPTR_MAX
18753 intptr_t g = INTPTR_MAX;
18754 intptr_t gmin = INTPTR_MIN;
18755 #endif
18756 #ifdef UINTPTR_MAX
18757 uintptr_t h = UINTPTR_MAX;
18758 #endif
18759 intmax_t i = INTMAX_MAX;
18760 uintmax_t j = UINTMAX_MAX;
18762 #include <limits.h> /* for CHAR_BIT */
18763 #define TYPE_MINIMUM(t) \
18764 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18765 #define TYPE_MAXIMUM(t) \
18766 ((t) ((t) 0 < (t) -1 \
18767 ? (t) -1 \
18768 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18769 struct s {
18770 int check_PTRDIFF:
18771 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18772 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18773 ? 1 : -1;
18774 /* Detect bug in FreeBSD 6.0 / ia64. */
18775 int check_SIG_ATOMIC:
18776 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18777 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18778 ? 1 : -1;
18779 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18780 int check_WCHAR:
18781 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18782 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18783 ? 1 : -1;
18784 /* Detect bug in mingw. */
18785 int check_WINT:
18786 WINT_MIN == TYPE_MINIMUM (wint_t)
18787 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18788 ? 1 : -1;
18790 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18791 int check_UINT8_C:
18792 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18793 int check_UINT16_C:
18794 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18796 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18797 #ifdef UINT8_MAX
18798 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18799 #endif
18800 #ifdef UINT16_MAX
18801 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18802 #endif
18803 #ifdef UINT32_MAX
18804 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18805 #endif
18806 #ifdef UINT64_MAX
18807 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18808 #endif
18809 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18810 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18811 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18812 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18813 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18814 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18815 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18816 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18817 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18818 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18819 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18823 main ()
18827 return 0;
18829 _ACEOF
18830 if ac_fn_c_try_compile "$LINENO"; then :
18831 if test "$cross_compiling" = yes; then :
18832 gl_cv_header_working_stdint_h=yes
18834 else
18835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836 /* end confdefs.h. */
18839 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18840 #include <stdint.h>
18843 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18844 included before <wchar.h>. */
18845 #include <stddef.h>
18846 #include <signal.h>
18847 #if HAVE_WCHAR_H
18848 # include <stdio.h>
18849 # include <time.h>
18850 # include <wchar.h>
18851 #endif
18854 #include <stdio.h>
18855 #include <string.h>
18856 #define MVAL(macro) MVAL1(macro)
18857 #define MVAL1(expression) #expression
18858 static const char *macro_values[] =
18860 #ifdef INT8_MAX
18861 MVAL (INT8_MAX),
18862 #endif
18863 #ifdef INT16_MAX
18864 MVAL (INT16_MAX),
18865 #endif
18866 #ifdef INT32_MAX
18867 MVAL (INT32_MAX),
18868 #endif
18869 #ifdef INT64_MAX
18870 MVAL (INT64_MAX),
18871 #endif
18872 #ifdef UINT8_MAX
18873 MVAL (UINT8_MAX),
18874 #endif
18875 #ifdef UINT16_MAX
18876 MVAL (UINT16_MAX),
18877 #endif
18878 #ifdef UINT32_MAX
18879 MVAL (UINT32_MAX),
18880 #endif
18881 #ifdef UINT64_MAX
18882 MVAL (UINT64_MAX),
18883 #endif
18884 NULL
18888 main ()
18891 const char **mv;
18892 for (mv = macro_values; *mv != NULL; mv++)
18894 const char *value = *mv;
18895 /* Test whether it looks like a cast expression. */
18896 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18897 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18898 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18899 || strncmp (value, "((int)"/*)*/, 6) == 0
18900 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18901 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18902 return mv - macro_values + 1;
18904 return 0;
18907 return 0;
18909 _ACEOF
18910 if ac_fn_c_try_run "$LINENO"; then :
18911 gl_cv_header_working_stdint_h=yes
18913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18914 conftest.$ac_objext conftest.beam conftest.$ac_ext
18919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18923 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18925 if test "$gl_cv_header_working_stdint_h" = yes; then
18926 STDINT_H=
18927 else
18928 for ac_header in sys/inttypes.h sys/bitypes.h
18929 do :
18930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18932 eval as_val=\$$as_ac_Header
18933 if test "x$as_val" = x""yes; then :
18934 cat >>confdefs.h <<_ACEOF
18935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18936 _ACEOF
18940 done
18942 if test $ac_cv_header_sys_inttypes_h = yes; then
18943 HAVE_SYS_INTTYPES_H=1
18944 else
18945 HAVE_SYS_INTTYPES_H=0
18948 if test $ac_cv_header_sys_bitypes_h = yes; then
18949 HAVE_SYS_BITYPES_H=1
18950 else
18951 HAVE_SYS_BITYPES_H=0
18957 if test $APPLE_UNIVERSAL_BUILD = 0; then
18960 for gltype in ptrdiff_t size_t ; do
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18962 $as_echo_n "checking for bit size of $gltype... " >&6; }
18963 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18964 $as_echo_n "(cached) " >&6
18965 else
18966 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18967 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18968 included before <wchar.h>. */
18969 #include <stddef.h>
18970 #include <signal.h>
18971 #if HAVE_WCHAR_H
18972 # include <stdio.h>
18973 # include <time.h>
18974 # include <wchar.h>
18975 #endif
18977 #include <limits.h>"; then :
18979 else
18980 result=unknown
18983 eval gl_cv_bitsizeof_${gltype}=\$result
18986 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18988 $as_echo "$ac_res" >&6; }
18989 eval result=\$gl_cv_bitsizeof_${gltype}
18990 if test $result = unknown; then
18991 result=0
18993 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18994 cat >>confdefs.h <<_ACEOF
18995 #define BITSIZEOF_${GLTYPE} $result
18996 _ACEOF
18998 eval BITSIZEOF_${GLTYPE}=\$result
18999 done
19005 for gltype in sig_atomic_t wchar_t wint_t ; do
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19007 $as_echo_n "checking for bit size of $gltype... " >&6; }
19008 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
19009 $as_echo_n "(cached) " >&6
19010 else
19011 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19012 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19013 included before <wchar.h>. */
19014 #include <stddef.h>
19015 #include <signal.h>
19016 #if HAVE_WCHAR_H
19017 # include <stdio.h>
19018 # include <time.h>
19019 # include <wchar.h>
19020 #endif
19022 #include <limits.h>"; then :
19024 else
19025 result=unknown
19028 eval gl_cv_bitsizeof_${gltype}=\$result
19031 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19033 $as_echo "$ac_res" >&6; }
19034 eval result=\$gl_cv_bitsizeof_${gltype}
19035 if test $result = unknown; then
19036 result=0
19038 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19039 cat >>confdefs.h <<_ACEOF
19040 #define BITSIZEOF_${GLTYPE} $result
19041 _ACEOF
19043 eval BITSIZEOF_${GLTYPE}=\$result
19044 done
19049 for gltype in sig_atomic_t wchar_t wint_t ; do
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19051 $as_echo_n "checking whether $gltype is signed... " >&6; }
19052 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
19053 $as_echo_n "(cached) " >&6
19054 else
19055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19056 /* end confdefs.h. */
19058 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19059 included before <wchar.h>. */
19060 #include <stddef.h>
19061 #include <signal.h>
19062 #if HAVE_WCHAR_H
19063 # include <stdio.h>
19064 # include <time.h>
19065 # include <wchar.h>
19066 #endif
19068 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19070 main ()
19074 return 0;
19076 _ACEOF
19077 if ac_fn_c_try_compile "$LINENO"; then :
19078 result=yes
19079 else
19080 result=no
19082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19083 eval gl_cv_type_${gltype}_signed=\$result
19086 eval ac_res=\$gl_cv_type_${gltype}_signed
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19088 $as_echo "$ac_res" >&6; }
19089 eval result=\$gl_cv_type_${gltype}_signed
19090 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19091 if test "$result" = yes; then
19092 cat >>confdefs.h <<_ACEOF
19093 #define HAVE_SIGNED_${GLTYPE} 1
19094 _ACEOF
19096 eval HAVE_SIGNED_${GLTYPE}=1
19097 else
19098 eval HAVE_SIGNED_${GLTYPE}=0
19100 done
19103 gl_cv_type_ptrdiff_t_signed=yes
19104 gl_cv_type_size_t_signed=no
19105 if test $APPLE_UNIVERSAL_BUILD = 0; then
19108 for gltype in ptrdiff_t size_t ; do
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19110 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19111 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19112 $as_echo_n "(cached) " >&6
19113 else
19114 eval gl_cv_type_${gltype}_suffix=no
19115 eval result=\$gl_cv_type_${gltype}_signed
19116 if test "$result" = yes; then
19117 glsufu=
19118 else
19119 glsufu=u
19121 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19122 case $glsuf in
19123 '') gltype1='int';;
19124 l) gltype1='long int';;
19125 ll) gltype1='long long int';;
19126 i64) gltype1='__int64';;
19127 u) gltype1='unsigned int';;
19128 ul) gltype1='unsigned long int';;
19129 ull) gltype1='unsigned long long int';;
19130 ui64)gltype1='unsigned __int64';;
19131 esac
19132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19133 /* end confdefs.h. */
19135 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19136 included before <wchar.h>. */
19137 #include <stddef.h>
19138 #include <signal.h>
19139 #if HAVE_WCHAR_H
19140 # include <stdio.h>
19141 # include <time.h>
19142 # include <wchar.h>
19143 #endif
19145 extern $gltype foo;
19146 extern $gltype1 foo;
19148 main ()
19152 return 0;
19154 _ACEOF
19155 if ac_fn_c_try_compile "$LINENO"; then :
19156 eval gl_cv_type_${gltype}_suffix=\$glsuf
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 eval result=\$gl_cv_type_${gltype}_suffix
19160 test "$result" != no && break
19161 done
19163 eval ac_res=\$gl_cv_type_${gltype}_suffix
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19165 $as_echo "$ac_res" >&6; }
19166 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19167 eval result=\$gl_cv_type_${gltype}_suffix
19168 test "$result" = no && result=
19169 eval ${GLTYPE}_SUFFIX=\$result
19170 cat >>confdefs.h <<_ACEOF
19171 #define ${GLTYPE}_SUFFIX $result
19172 _ACEOF
19174 done
19180 for gltype in sig_atomic_t wchar_t wint_t ; do
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19182 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19183 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
19184 $as_echo_n "(cached) " >&6
19185 else
19186 eval gl_cv_type_${gltype}_suffix=no
19187 eval result=\$gl_cv_type_${gltype}_signed
19188 if test "$result" = yes; then
19189 glsufu=
19190 else
19191 glsufu=u
19193 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19194 case $glsuf in
19195 '') gltype1='int';;
19196 l) gltype1='long int';;
19197 ll) gltype1='long long int';;
19198 i64) gltype1='__int64';;
19199 u) gltype1='unsigned int';;
19200 ul) gltype1='unsigned long int';;
19201 ull) gltype1='unsigned long long int';;
19202 ui64)gltype1='unsigned __int64';;
19203 esac
19204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19205 /* end confdefs.h. */
19207 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19208 included before <wchar.h>. */
19209 #include <stddef.h>
19210 #include <signal.h>
19211 #if HAVE_WCHAR_H
19212 # include <stdio.h>
19213 # include <time.h>
19214 # include <wchar.h>
19215 #endif
19217 extern $gltype foo;
19218 extern $gltype1 foo;
19220 main ()
19224 return 0;
19226 _ACEOF
19227 if ac_fn_c_try_compile "$LINENO"; then :
19228 eval gl_cv_type_${gltype}_suffix=\$glsuf
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 eval result=\$gl_cv_type_${gltype}_suffix
19232 test "$result" != no && break
19233 done
19235 eval ac_res=\$gl_cv_type_${gltype}_suffix
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19237 $as_echo "$ac_res" >&6; }
19238 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19239 eval result=\$gl_cv_type_${gltype}_suffix
19240 test "$result" = no && result=
19241 eval ${GLTYPE}_SUFFIX=\$result
19242 cat >>confdefs.h <<_ACEOF
19243 #define ${GLTYPE}_SUFFIX $result
19244 _ACEOF
19246 done
19250 if test $BITSIZEOF_WINT_T -lt 32; then
19251 BITSIZEOF_WINT_T=32
19254 STDINT_H=stdint.h
19257 if test -n "$STDINT_H"; then
19258 GL_GENERATE_STDINT_H_TRUE=
19259 GL_GENERATE_STDINT_H_FALSE='#'
19260 else
19261 GL_GENERATE_STDINT_H_TRUE='#'
19262 GL_GENERATE_STDINT_H_FALSE=
19269 GNULIB_IMAXABS=0;
19270 GNULIB_IMAXDIV=0;
19271 GNULIB_STRTOIMAX=0;
19272 GNULIB_STRTOUMAX=0;
19273 HAVE_DECL_IMAXABS=1;
19274 HAVE_DECL_IMAXDIV=1;
19275 HAVE_DECL_STRTOIMAX=1;
19276 HAVE_DECL_STRTOUMAX=1;
19277 REPLACE_STRTOIMAX=0;
19278 INT32_MAX_LT_INTMAX_MAX=1;
19279 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19280 PRI_MACROS_BROKEN=0;
19281 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19282 UINT32_MAX_LT_UINTMAX_MAX=1;
19283 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19299 if test $gl_cv_have_include_next = yes; then
19300 gl_cv_next_inttypes_h='<'inttypes.h'>'
19301 else
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19303 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19304 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19305 $as_echo_n "(cached) " >&6
19306 else
19308 if test $ac_cv_header_inttypes_h = yes; then
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312 /* end confdefs.h. */
19313 #include <inttypes.h>
19315 _ACEOF
19316 case "$host_os" in
19317 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19318 *) gl_absname_cpp="$ac_cpp" ;;
19319 esac
19321 case "$host_os" in
19322 mingw*)
19323 gl_dirsep_regex='[/\\]'
19326 gl_dirsep_regex='\/'
19328 esac
19329 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19331 gl_header_literal_regex=`echo 'inttypes.h' \
19332 | sed -e "$gl_make_literal_regex_sed"`
19333 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19334 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19335 s|^/[^/]|//&|
19339 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19340 sed -n "$gl_absolute_header_sed"`'"'
19341 else
19342 gl_cv_next_inttypes_h='<'inttypes.h'>'
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19348 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19350 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19352 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19354 gl_next_as_first_directive='<'inttypes.h'>'
19355 else
19356 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19357 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19359 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19371 case "$host_os" in
19372 mingw*)
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19374 $as_echo_n "checking for 64-bit off_t... " >&6; }
19375 if test "${gl_cv_type_off_t_64+set}" = set; then :
19376 $as_echo_n "(cached) " >&6
19377 else
19378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19380 #include <sys/types.h>
19381 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19384 main ()
19388 return 0;
19390 _ACEOF
19391 if ac_fn_c_try_compile "$LINENO"; then :
19392 gl_cv_type_off_t_64=yes
19393 else
19394 gl_cv_type_off_t_64=no
19396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19400 $as_echo "$gl_cv_type_off_t_64" >&6; }
19401 if test $gl_cv_type_off_t_64 = no; then
19402 WINDOWS_64_BIT_OFF_T=1
19403 else
19404 WINDOWS_64_BIT_OFF_T=0
19406 WINDOWS_64_BIT_ST_SIZE=1
19409 WINDOWS_64_BIT_OFF_T=0
19410 WINDOWS_64_BIT_ST_SIZE=0
19412 esac
19417 GNULIB_FFSL=0;
19418 GNULIB_FFSLL=0;
19419 GNULIB_MEMCHR=0;
19420 GNULIB_MEMMEM=0;
19421 GNULIB_MEMPCPY=0;
19422 GNULIB_MEMRCHR=0;
19423 GNULIB_RAWMEMCHR=0;
19424 GNULIB_STPCPY=0;
19425 GNULIB_STPNCPY=0;
19426 GNULIB_STRCHRNUL=0;
19427 GNULIB_STRDUP=0;
19428 GNULIB_STRNCAT=0;
19429 GNULIB_STRNDUP=0;
19430 GNULIB_STRNLEN=0;
19431 GNULIB_STRPBRK=0;
19432 GNULIB_STRSEP=0;
19433 GNULIB_STRSTR=0;
19434 GNULIB_STRCASESTR=0;
19435 GNULIB_STRTOK_R=0;
19436 GNULIB_MBSLEN=0;
19437 GNULIB_MBSNLEN=0;
19438 GNULIB_MBSCHR=0;
19439 GNULIB_MBSRCHR=0;
19440 GNULIB_MBSSTR=0;
19441 GNULIB_MBSCASECMP=0;
19442 GNULIB_MBSNCASECMP=0;
19443 GNULIB_MBSPCASECMP=0;
19444 GNULIB_MBSCASESTR=0;
19445 GNULIB_MBSCSPN=0;
19446 GNULIB_MBSPBRK=0;
19447 GNULIB_MBSSPN=0;
19448 GNULIB_MBSSEP=0;
19449 GNULIB_MBSTOK_R=0;
19450 GNULIB_STRERROR=0;
19451 GNULIB_STRERROR_R=0;
19452 GNULIB_STRSIGNAL=0;
19453 GNULIB_STRVERSCMP=0;
19454 HAVE_MBSLEN=0;
19455 HAVE_FFSL=1;
19456 HAVE_FFSLL=1;
19457 HAVE_MEMCHR=1;
19458 HAVE_DECL_MEMMEM=1;
19459 HAVE_MEMPCPY=1;
19460 HAVE_DECL_MEMRCHR=1;
19461 HAVE_RAWMEMCHR=1;
19462 HAVE_STPCPY=1;
19463 HAVE_STPNCPY=1;
19464 HAVE_STRCHRNUL=1;
19465 HAVE_DECL_STRDUP=1;
19466 HAVE_DECL_STRNDUP=1;
19467 HAVE_DECL_STRNLEN=1;
19468 HAVE_STRPBRK=1;
19469 HAVE_STRSEP=1;
19470 HAVE_STRCASESTR=1;
19471 HAVE_DECL_STRTOK_R=1;
19472 HAVE_DECL_STRERROR_R=1;
19473 HAVE_DECL_STRSIGNAL=1;
19474 HAVE_STRVERSCMP=1;
19475 REPLACE_MEMCHR=0;
19476 REPLACE_MEMMEM=0;
19477 REPLACE_STPNCPY=0;
19478 REPLACE_STRDUP=0;
19479 REPLACE_STRSTR=0;
19480 REPLACE_STRCASESTR=0;
19481 REPLACE_STRCHRNUL=0;
19482 REPLACE_STRERROR=0;
19483 REPLACE_STRERROR_R=0;
19484 REPLACE_STRNCAT=0;
19485 REPLACE_STRNDUP=0;
19486 REPLACE_STRNLEN=0;
19487 REPLACE_STRSIGNAL=0;
19488 REPLACE_STRTOK_R=0;
19489 UNDEFINE_STRTOK_R=0;
19491 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
19492 if test "x$ac_cv_have_decl_memrchr" = x""yes; then :
19493 ac_have_decl=1
19494 else
19495 ac_have_decl=0
19498 cat >>confdefs.h <<_ACEOF
19499 #define HAVE_DECL_MEMRCHR $ac_have_decl
19500 _ACEOF
19503 GNULIB_MKTIME=0;
19504 GNULIB_NANOSLEEP=0;
19505 GNULIB_STRPTIME=0;
19506 GNULIB_TIMEGM=0;
19507 GNULIB_TIME_R=0;
19508 HAVE_DECL_LOCALTIME_R=1;
19509 HAVE_NANOSLEEP=1;
19510 HAVE_STRPTIME=1;
19511 HAVE_TIMEGM=1;
19512 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19513 REPLACE_MKTIME=GNULIB_PORTCHECK;
19514 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19515 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19517 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
19518 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
19519 ac_have_decl=1
19520 else
19521 ac_have_decl=0
19524 cat >>confdefs.h <<_ACEOF
19525 #define HAVE_DECL_ALARM $ac_have_decl
19526 _ACEOF
19529 GNULIB_PSELECT=0;
19530 GNULIB_SELECT=0;
19531 HAVE_PSELECT=1;
19532 REPLACE_PSELECT=0;
19533 REPLACE_SELECT=0;
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19541 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19542 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19543 $as_echo_n "(cached) " >&6
19544 else
19546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19547 /* end confdefs.h. */
19548 #include <sys/select.h>
19550 main ()
19552 struct timeval b;
19554 return 0;
19556 _ACEOF
19557 if ac_fn_c_try_compile "$LINENO"; then :
19558 gl_cv_header_sys_select_h_selfcontained=yes
19559 else
19560 gl_cv_header_sys_select_h_selfcontained=no
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19565 /* end confdefs.h. */
19566 #include <sys/select.h>
19568 main ()
19570 int memset; int bzero;
19572 return 0;
19575 _ACEOF
19576 if ac_fn_c_try_compile "$LINENO"; then :
19577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h. */
19579 #include <sys/select.h>
19581 main ()
19584 #undef memset
19585 #define memset nonexistent_memset
19586 extern
19587 #ifdef __cplusplus
19589 #endif
19590 void *memset (void *, int, unsigned long);
19591 #undef bzero
19592 #define bzero nonexistent_bzero
19593 extern
19594 #ifdef __cplusplus
19596 #endif
19597 void bzero (void *, unsigned long);
19598 fd_set fds;
19599 FD_ZERO (&fds);
19602 return 0;
19605 _ACEOF
19606 if ac_fn_c_try_link "$LINENO"; then :
19608 else
19609 gl_cv_header_sys_select_h_selfcontained=no
19611 rm -f core conftest.err conftest.$ac_objext \
19612 conftest$ac_exeext conftest.$ac_ext
19615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19620 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19630 if test $gl_cv_have_include_next = yes; then
19631 gl_cv_next_sys_select_h='<'sys/select.h'>'
19632 else
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19634 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19635 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19636 $as_echo_n "(cached) " >&6
19637 else
19639 if test $ac_cv_header_sys_select_h = yes; then
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644 #include <sys/select.h>
19646 _ACEOF
19647 case "$host_os" in
19648 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19649 *) gl_absname_cpp="$ac_cpp" ;;
19650 esac
19652 case "$host_os" in
19653 mingw*)
19654 gl_dirsep_regex='[/\\]'
19657 gl_dirsep_regex='\/'
19659 esac
19660 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19662 gl_header_literal_regex=`echo 'sys/select.h' \
19663 | sed -e "$gl_make_literal_regex_sed"`
19664 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19665 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19666 s|^/[^/]|//&|
19670 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19671 sed -n "$gl_absolute_header_sed"`'"'
19672 else
19673 gl_cv_next_sys_select_h='<'sys/select.h'>'
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19679 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19681 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19683 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19684 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19685 gl_next_as_first_directive='<'sys/select.h'>'
19686 else
19687 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19688 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19690 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19695 if test $ac_cv_header_sys_select_h = yes; then
19696 HAVE_SYS_SELECT_H=1
19697 else
19698 HAVE_SYS_SELECT_H=0
19705 if test $ac_cv_header_sys_socket_h != yes; then
19706 for ac_header in winsock2.h
19707 do :
19708 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19709 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19710 cat >>confdefs.h <<_ACEOF
19711 #define HAVE_WINSOCK2_H 1
19712 _ACEOF
19716 done
19719 if test "$ac_cv_header_winsock2_h" = yes; then
19720 HAVE_WINSOCK2_H=1
19721 UNISTD_H_HAVE_WINSOCK2_H=1
19722 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19723 else
19724 HAVE_WINSOCK2_H=0
19734 GNULIB_PTHREAD_SIGMASK=0;
19735 GNULIB_RAISE=0;
19736 GNULIB_SIGNAL_H_SIGPIPE=0;
19737 GNULIB_SIGPROCMASK=0;
19738 GNULIB_SIGACTION=0;
19739 HAVE_POSIX_SIGNALBLOCKING=1;
19740 HAVE_PTHREAD_SIGMASK=1;
19741 HAVE_RAISE=1;
19742 HAVE_SIGSET_T=1;
19743 HAVE_SIGINFO_T=1;
19744 HAVE_SIGACTION=1;
19745 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19747 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19749 HAVE_SIGHANDLER_T=1;
19750 REPLACE_PTHREAD_SIGMASK=0;
19751 REPLACE_RAISE=0;
19759 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19760 #include <signal.h>
19761 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19762 #include <sys/types.h>
19765 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19767 cat >>confdefs.h <<_ACEOF
19768 #define HAVE_SIGSET_T 1
19769 _ACEOF
19771 gl_cv_type_sigset_t=yes
19772 else
19773 gl_cv_type_sigset_t=no
19776 if test $gl_cv_type_sigset_t != yes; then
19777 HAVE_SIGSET_T=0
19782 if test $ac_cv_header_sys_socket_h = no; then
19783 for ac_header in ws2tcpip.h
19784 do :
19785 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19786 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19787 cat >>confdefs.h <<_ACEOF
19788 #define HAVE_WS2TCPIP_H 1
19789 _ACEOF
19793 done
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19798 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19799 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19800 $as_echo_n "(cached) " >&6
19801 else
19802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19805 #include <stdbool.h>
19806 #ifndef bool
19807 "error: bool is not defined"
19808 #endif
19809 #ifndef false
19810 "error: false is not defined"
19811 #endif
19812 #if false
19813 "error: false is not 0"
19814 #endif
19815 #ifndef true
19816 "error: true is not defined"
19817 #endif
19818 #if true != 1
19819 "error: true is not 1"
19820 #endif
19821 #ifndef __bool_true_false_are_defined
19822 "error: __bool_true_false_are_defined is not defined"
19823 #endif
19825 struct s { _Bool s: 1; _Bool t; } s;
19827 char a[true == 1 ? 1 : -1];
19828 char b[false == 0 ? 1 : -1];
19829 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19830 char d[(bool) 0.5 == true ? 1 : -1];
19831 /* See body of main program for 'e'. */
19832 char f[(_Bool) 0.0 == false ? 1 : -1];
19833 char g[true];
19834 char h[sizeof (_Bool)];
19835 char i[sizeof s.t];
19836 enum { j = false, k = true, l = false * true, m = true * 256 };
19837 /* The following fails for
19838 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19839 _Bool n[m];
19840 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19841 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19842 /* Catch a bug in an HP-UX C compiler. See
19843 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19844 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19846 _Bool q = true;
19847 _Bool *pq = &q;
19850 main ()
19853 bool e = &s;
19854 *pq |= q;
19855 *pq |= ! q;
19856 /* Refer to every declared value, to avoid compiler optimizations. */
19857 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19858 + !m + !n + !o + !p + !q + !pq);
19861 return 0;
19863 _ACEOF
19864 if ac_fn_c_try_compile "$LINENO"; then :
19865 ac_cv_header_stdbool_h=yes
19866 else
19867 ac_cv_header_stdbool_h=no
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19872 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19873 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19874 if test "x$ac_cv_type__Bool" = x""yes; then :
19876 cat >>confdefs.h <<_ACEOF
19877 #define HAVE__BOOL 1
19878 _ACEOF
19885 REPLACE_NULL=0;
19886 HAVE_WCHAR_T=1;
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19890 $as_echo_n "checking for wchar_t... " >&6; }
19891 if test "${gt_cv_c_wchar_t+set}" = set; then :
19892 $as_echo_n "(cached) " >&6
19893 else
19894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19895 /* end confdefs.h. */
19896 #include <stddef.h>
19897 wchar_t foo = (wchar_t)'\0';
19899 main ()
19903 return 0;
19905 _ACEOF
19906 if ac_fn_c_try_compile "$LINENO"; then :
19907 gt_cv_c_wchar_t=yes
19908 else
19909 gt_cv_c_wchar_t=no
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19914 $as_echo "$gt_cv_c_wchar_t" >&6; }
19915 if test $gt_cv_c_wchar_t = yes; then
19917 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19922 GNULIB_DPRINTF=0;
19923 GNULIB_FCLOSE=0;
19924 GNULIB_FDOPEN=0;
19925 GNULIB_FFLUSH=0;
19926 GNULIB_FGETC=0;
19927 GNULIB_FGETS=0;
19928 GNULIB_FOPEN=0;
19929 GNULIB_FPRINTF=0;
19930 GNULIB_FPRINTF_POSIX=0;
19931 GNULIB_FPURGE=0;
19932 GNULIB_FPUTC=0;
19933 GNULIB_FPUTS=0;
19934 GNULIB_FREAD=0;
19935 GNULIB_FREOPEN=0;
19936 GNULIB_FSCANF=0;
19937 GNULIB_FSEEK=0;
19938 GNULIB_FSEEKO=0;
19939 GNULIB_FTELL=0;
19940 GNULIB_FTELLO=0;
19941 GNULIB_FWRITE=0;
19942 GNULIB_GETC=0;
19943 GNULIB_GETCHAR=0;
19944 GNULIB_GETDELIM=0;
19945 GNULIB_GETLINE=0;
19946 GNULIB_OBSTACK_PRINTF=0;
19947 GNULIB_OBSTACK_PRINTF_POSIX=0;
19948 GNULIB_PCLOSE=0;
19949 GNULIB_PERROR=0;
19950 GNULIB_POPEN=0;
19951 GNULIB_PRINTF=0;
19952 GNULIB_PRINTF_POSIX=0;
19953 GNULIB_PUTC=0;
19954 GNULIB_PUTCHAR=0;
19955 GNULIB_PUTS=0;
19956 GNULIB_REMOVE=0;
19957 GNULIB_RENAME=0;
19958 GNULIB_RENAMEAT=0;
19959 GNULIB_SCANF=0;
19960 GNULIB_SNPRINTF=0;
19961 GNULIB_SPRINTF_POSIX=0;
19962 GNULIB_STDIO_H_NONBLOCKING=0;
19963 GNULIB_STDIO_H_SIGPIPE=0;
19964 GNULIB_TMPFILE=0;
19965 GNULIB_VASPRINTF=0;
19966 GNULIB_VFSCANF=0;
19967 GNULIB_VSCANF=0;
19968 GNULIB_VDPRINTF=0;
19969 GNULIB_VFPRINTF=0;
19970 GNULIB_VFPRINTF_POSIX=0;
19971 GNULIB_VPRINTF=0;
19972 GNULIB_VPRINTF_POSIX=0;
19973 GNULIB_VSNPRINTF=0;
19974 GNULIB_VSPRINTF_POSIX=0;
19975 HAVE_DECL_FPURGE=1;
19976 HAVE_DECL_FSEEKO=1;
19977 HAVE_DECL_FTELLO=1;
19978 HAVE_DECL_GETDELIM=1;
19979 HAVE_DECL_GETLINE=1;
19980 HAVE_DECL_OBSTACK_PRINTF=1;
19981 HAVE_DECL_SNPRINTF=1;
19982 HAVE_DECL_VSNPRINTF=1;
19983 HAVE_DPRINTF=1;
19984 HAVE_FSEEKO=1;
19985 HAVE_FTELLO=1;
19986 HAVE_PCLOSE=1;
19987 HAVE_POPEN=1;
19988 HAVE_RENAMEAT=1;
19989 HAVE_VASPRINTF=1;
19990 HAVE_VDPRINTF=1;
19991 REPLACE_DPRINTF=0;
19992 REPLACE_FCLOSE=0;
19993 REPLACE_FDOPEN=0;
19994 REPLACE_FFLUSH=0;
19995 REPLACE_FOPEN=0;
19996 REPLACE_FPRINTF=0;
19997 REPLACE_FPURGE=0;
19998 REPLACE_FREOPEN=0;
19999 REPLACE_FSEEK=0;
20000 REPLACE_FSEEKO=0;
20001 REPLACE_FTELL=0;
20002 REPLACE_FTELLO=0;
20003 REPLACE_GETDELIM=0;
20004 REPLACE_GETLINE=0;
20005 REPLACE_OBSTACK_PRINTF=0;
20006 REPLACE_PERROR=0;
20007 REPLACE_POPEN=0;
20008 REPLACE_PRINTF=0;
20009 REPLACE_REMOVE=0;
20010 REPLACE_RENAME=0;
20011 REPLACE_RENAMEAT=0;
20012 REPLACE_SNPRINTF=0;
20013 REPLACE_SPRINTF=0;
20014 REPLACE_STDIO_READ_FUNCS=0;
20015 REPLACE_STDIO_WRITE_FUNCS=0;
20016 REPLACE_TMPFILE=0;
20017 REPLACE_VASPRINTF=0;
20018 REPLACE_VDPRINTF=0;
20019 REPLACE_VFPRINTF=0;
20020 REPLACE_VPRINTF=0;
20021 REPLACE_VSNPRINTF=0;
20022 REPLACE_VSPRINTF=0;
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20025 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20026 if test "${ac_cv_struct_tm+set}" = set; then :
20027 $as_echo_n "(cached) " >&6
20028 else
20029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030 /* end confdefs.h. */
20031 #include <sys/types.h>
20032 #include <time.h>
20035 main ()
20037 struct tm tm;
20038 int *p = &tm.tm_sec;
20039 return !p;
20041 return 0;
20043 _ACEOF
20044 if ac_fn_c_try_compile "$LINENO"; then :
20045 ac_cv_struct_tm=time.h
20046 else
20047 ac_cv_struct_tm=sys/time.h
20049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20052 $as_echo "$ac_cv_struct_tm" >&6; }
20053 if test $ac_cv_struct_tm = sys/time.h; then
20055 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20059 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20060 #include <$ac_cv_struct_tm>
20063 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_STRUCT_TM_TM_ZONE 1
20067 _ACEOF
20072 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20074 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
20076 else
20077 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
20079 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
20080 ac_have_decl=1
20081 else
20082 ac_have_decl=0
20085 cat >>confdefs.h <<_ACEOF
20086 #define HAVE_DECL_TZNAME $ac_have_decl
20087 _ACEOF
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
20090 $as_echo_n "checking for tzname... " >&6; }
20091 if test "${ac_cv_var_tzname+set}" = set; then :
20092 $as_echo_n "(cached) " >&6
20093 else
20094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20096 #include <time.h>
20097 #if !HAVE_DECL_TZNAME
20098 extern char *tzname[];
20099 #endif
20102 main ()
20104 return tzname[0][0];
20106 return 0;
20108 _ACEOF
20109 if ac_fn_c_try_link "$LINENO"; then :
20110 ac_cv_var_tzname=yes
20111 else
20112 ac_cv_var_tzname=no
20114 rm -f core conftest.err conftest.$ac_objext \
20115 conftest$ac_exeext conftest.$ac_ext
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
20118 $as_echo "$ac_cv_var_tzname" >&6; }
20119 if test $ac_cv_var_tzname = yes; then
20121 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
20127 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
20129 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
20131 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
20147 if test $gl_cv_have_include_next = yes; then
20148 gl_cv_next_string_h='<'string.h'>'
20149 else
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
20151 $as_echo_n "checking absolute name of <string.h>... " >&6; }
20152 if test "${gl_cv_next_string_h+set}" = set; then :
20153 $as_echo_n "(cached) " >&6
20154 else
20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20158 #include <string.h>
20160 _ACEOF
20161 case "$host_os" in
20162 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20163 *) gl_absname_cpp="$ac_cpp" ;;
20164 esac
20166 case "$host_os" in
20167 mingw*)
20168 gl_dirsep_regex='[/\\]'
20171 gl_dirsep_regex='\/'
20173 esac
20174 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20176 gl_header_literal_regex=`echo 'string.h' \
20177 | sed -e "$gl_make_literal_regex_sed"`
20178 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20179 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20180 s|^/[^/]|//&|
20184 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20185 sed -n "$gl_absolute_header_sed"`'"'
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
20190 $as_echo "$gl_cv_next_string_h" >&6; }
20192 NEXT_STRING_H=$gl_cv_next_string_h
20194 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20196 gl_next_as_first_directive='<'string.h'>'
20197 else
20198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20199 gl_next_as_first_directive=$gl_cv_next_string_h
20201 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
20211 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
20212 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
20213 ac_have_decl=1
20214 else
20215 ac_have_decl=0
20218 cat >>confdefs.h <<_ACEOF
20219 #define HAVE_DECL_STRTOIMAX $ac_have_decl
20220 _ACEOF
20224 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
20225 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
20226 ac_have_decl=1
20227 else
20228 ac_have_decl=0
20231 cat >>confdefs.h <<_ACEOF
20232 #define HAVE_DECL_STRTOUMAX $ac_have_decl
20233 _ACEOF
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20238 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20239 if test "${ac_cv_header_stat_broken+set}" = set; then :
20240 $as_echo_n "(cached) " >&6
20241 else
20242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20243 /* end confdefs.h. */
20244 #include <sys/types.h>
20245 #include <sys/stat.h>
20247 #if defined S_ISBLK && defined S_IFDIR
20248 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20249 #endif
20251 #if defined S_ISBLK && defined S_IFCHR
20252 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20253 #endif
20255 #if defined S_ISLNK && defined S_IFREG
20256 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20257 #endif
20259 #if defined S_ISSOCK && defined S_IFREG
20260 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20261 #endif
20263 _ACEOF
20264 if ac_fn_c_try_compile "$LINENO"; then :
20265 ac_cv_header_stat_broken=no
20266 else
20267 ac_cv_header_stat_broken=yes
20269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20272 $as_echo "$ac_cv_header_stat_broken" >&6; }
20273 if test $ac_cv_header_stat_broken = yes; then
20275 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20284 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20285 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
20286 $as_echo_n "(cached) " >&6
20287 else
20288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20289 /* end confdefs.h. */
20290 #include <time.h>
20293 main ()
20295 static struct timespec x; x.tv_sec = x.tv_nsec;
20297 return 0;
20299 _ACEOF
20300 if ac_fn_c_try_compile "$LINENO"; then :
20301 gl_cv_sys_struct_timespec_in_time_h=yes
20302 else
20303 gl_cv_sys_struct_timespec_in_time_h=no
20305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20308 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20310 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20311 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20312 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20313 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20314 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20315 else
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20317 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20318 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
20319 $as_echo_n "(cached) " >&6
20320 else
20321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322 /* end confdefs.h. */
20323 #include <sys/time.h>
20326 main ()
20328 static struct timespec x; x.tv_sec = x.tv_nsec;
20330 return 0;
20332 _ACEOF
20333 if ac_fn_c_try_compile "$LINENO"; then :
20334 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20335 else
20336 gl_cv_sys_struct_timespec_in_sys_time_h=no
20338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20341 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20342 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20343 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20344 else
20345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20346 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20347 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
20348 $as_echo_n "(cached) " >&6
20349 else
20350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20352 #include <pthread.h>
20355 main ()
20357 static struct timespec x; x.tv_sec = x.tv_nsec;
20359 return 0;
20361 _ACEOF
20362 if ac_fn_c_try_compile "$LINENO"; then :
20363 gl_cv_sys_struct_timespec_in_pthread_h=yes
20364 else
20365 gl_cv_sys_struct_timespec_in_pthread_h=no
20367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20370 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20371 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20372 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20391 if test $gl_cv_have_include_next = yes; then
20392 gl_cv_next_time_h='<'time.h'>'
20393 else
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20395 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20396 if test "${gl_cv_next_time_h+set}" = set; then :
20397 $as_echo_n "(cached) " >&6
20398 else
20400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20401 /* end confdefs.h. */
20402 #include <time.h>
20404 _ACEOF
20405 case "$host_os" in
20406 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20407 *) gl_absname_cpp="$ac_cpp" ;;
20408 esac
20410 case "$host_os" in
20411 mingw*)
20412 gl_dirsep_regex='[/\\]'
20415 gl_dirsep_regex='\/'
20417 esac
20418 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20420 gl_header_literal_regex=`echo 'time.h' \
20421 | sed -e "$gl_make_literal_regex_sed"`
20422 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20423 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20424 s|^/[^/]|//&|
20428 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20429 sed -n "$gl_absolute_header_sed"`'"'
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20434 $as_echo "$gl_cv_next_time_h" >&6; }
20436 NEXT_TIME_H=$gl_cv_next_time_h
20438 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20439 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20440 gl_next_as_first_directive='<'time.h'>'
20441 else
20442 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20443 gl_next_as_first_directive=$gl_cv_next_time_h
20445 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20460 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20461 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
20462 ac_have_decl=1
20463 else
20464 ac_have_decl=0
20467 cat >>confdefs.h <<_ACEOF
20468 #define HAVE_DECL_UNSETENV $ac_have_decl
20469 _ACEOF
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20473 $as_echo_n "checking whether the utimes function works... " >&6; }
20474 if test "${gl_cv_func_working_utimes+set}" = set; then :
20475 $as_echo_n "(cached) " >&6
20476 else
20478 if test "$cross_compiling" = yes; then :
20479 gl_cv_func_working_utimes=no
20480 else
20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h. */
20484 #include <sys/types.h>
20485 #include <sys/stat.h>
20486 #include <fcntl.h>
20487 #include <sys/time.h>
20488 #include <time.h>
20489 #include <unistd.h>
20490 #include <stdlib.h>
20491 #include <stdio.h>
20492 #include <utime.h>
20494 static int
20495 inorder (time_t a, time_t b, time_t c)
20497 return a <= b && b <= c;
20501 main ()
20503 int result = 0;
20504 char const *file = "conftest.utimes";
20505 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20507 /* Test whether utimes() essentially works. */
20509 struct stat sbuf;
20510 FILE *f = fopen (file, "w");
20511 if (f == NULL)
20512 result |= 1;
20513 else if (fclose (f) != 0)
20514 result |= 1;
20515 else if (utimes (file, timeval) != 0)
20516 result |= 2;
20517 else if (lstat (file, &sbuf) != 0)
20518 result |= 1;
20519 else if (!(sbuf.st_atime == timeval[0].tv_sec
20520 && sbuf.st_mtime == timeval[1].tv_sec))
20521 result |= 4;
20522 if (unlink (file) != 0)
20523 result |= 1;
20526 /* Test whether utimes() with a NULL argument sets the file's timestamp
20527 to the current time. Use 'fstat' as well as 'time' to
20528 determine the "current" time, to accommodate NFS file systems
20529 if there is a time skew between the host and the NFS server. */
20531 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20532 if (fd < 0)
20533 result |= 1;
20534 else
20536 time_t t0, t2;
20537 struct stat st0, st1, st2;
20538 if (time (&t0) == (time_t) -1)
20539 result |= 1;
20540 else if (fstat (fd, &st0) != 0)
20541 result |= 1;
20542 else if (utimes (file, timeval) != 0)
20543 result |= 2;
20544 else if (utimes (file, NULL) != 0)
20545 result |= 8;
20546 else if (fstat (fd, &st1) != 0)
20547 result |= 1;
20548 else if (write (fd, "\n", 1) != 1)
20549 result |= 1;
20550 else if (fstat (fd, &st2) != 0)
20551 result |= 1;
20552 else if (time (&t2) == (time_t) -1)
20553 result |= 1;
20554 else
20556 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20557 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20558 if (! (st1.st_atime == st1.st_mtime))
20559 result |= 16;
20560 if (! (m_ok_POSIX || m_ok_NFS))
20561 result |= 32;
20563 if (close (fd) != 0)
20564 result |= 1;
20566 if (unlink (file) != 0)
20567 result |= 1;
20570 /* Test whether utimes() with a NULL argument works on read-only files. */
20572 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20573 if (fd < 0)
20574 result |= 1;
20575 else if (close (fd) != 0)
20576 result |= 1;
20577 else if (utimes (file, NULL) != 0)
20578 result |= 64;
20579 if (unlink (file) != 0)
20580 result |= 1;
20583 return result;
20586 _ACEOF
20587 if ac_fn_c_try_run "$LINENO"; then :
20588 gl_cv_func_working_utimes=yes
20589 else
20590 gl_cv_func_working_utimes=no
20592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20593 conftest.$ac_objext conftest.beam conftest.$ac_ext
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20598 $as_echo "$gl_cv_func_working_utimes" >&6; }
20600 if test $gl_cv_func_working_utimes = yes; then
20602 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20611 $as_echo_n "checking for struct utimbuf... " >&6; }
20612 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20613 $as_echo_n "(cached) " >&6
20614 else
20615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616 /* end confdefs.h. */
20617 #if HAVE_SYS_TIME_H
20618 #include <sys/time.h>
20619 #endif
20620 #include <time.h>
20621 #ifdef HAVE_UTIME_H
20622 #include <utime.h>
20623 #endif
20626 main ()
20628 static struct utimbuf x; x.actime = x.modtime;
20630 return 0;
20632 _ACEOF
20633 if ac_fn_c_try_compile "$LINENO"; then :
20634 gl_cv_sys_struct_utimbuf=yes
20635 else
20636 gl_cv_sys_struct_utimbuf=no
20638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20641 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20643 if test $gl_cv_sys_struct_utimbuf = yes; then
20645 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
20660 $as_echo_n "checking type of array argument to getgroups... " >&6; }
20661 if test "${ac_cv_type_getgroups+set}" = set; then :
20662 $as_echo_n "(cached) " >&6
20663 else
20664 if test "$cross_compiling" = yes; then :
20665 ac_cv_type_getgroups=cross
20666 else
20667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h. */
20669 /* Thanks to Mike Rendell for this test. */
20670 $ac_includes_default
20671 #define NGID 256
20672 #undef MAX
20673 #define MAX(x, y) ((x) > (y) ? (x) : (y))
20676 main ()
20678 gid_t gidset[NGID];
20679 int i, n;
20680 union { gid_t gval; long int lval; } val;
20682 val.lval = -1;
20683 for (i = 0; i < NGID; i++)
20684 gidset[i] = val.gval;
20685 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
20686 gidset);
20687 /* Exit non-zero if getgroups seems to require an array of ints. This
20688 happens when gid_t is short int but getgroups modifies an array
20689 of ints. */
20690 return n > 0 && gidset[n] != val.gval;
20692 _ACEOF
20693 if ac_fn_c_try_run "$LINENO"; then :
20694 ac_cv_type_getgroups=gid_t
20695 else
20696 ac_cv_type_getgroups=int
20698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20699 conftest.$ac_objext conftest.beam conftest.$ac_ext
20702 if test $ac_cv_type_getgroups = cross; then
20703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h. */
20705 #include <unistd.h>
20707 _ACEOF
20708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20709 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
20710 ac_cv_type_getgroups=gid_t
20711 else
20712 ac_cv_type_getgroups=int
20714 rm -f conftest*
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
20719 $as_echo "$ac_cv_type_getgroups" >&6; }
20721 cat >>confdefs.h <<_ACEOF
20722 #define GETGROUPS_T $ac_cv_type_getgroups
20723 _ACEOF
20728 if false; then
20729 GL_COND_LIBTOOL_TRUE=
20730 GL_COND_LIBTOOL_FALSE='#'
20731 else
20732 GL_COND_LIBTOOL_TRUE='#'
20733 GL_COND_LIBTOOL_FALSE=
20736 gl_cond_libtool=false
20737 gl_libdeps=
20738 gl_ltlibdeps=
20739 gl_m4_base='m4'
20749 gl_source_base='lib'
20752 if test $ac_cv_func_alloca_works = no; then
20756 # Define an additional variable used in the Makefile substitution.
20757 if test $ac_cv_working_alloca_h = yes; then
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20759 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20760 if test "${gl_cv_rpl_alloca+set}" = set; then :
20761 $as_echo_n "(cached) " >&6
20762 else
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h. */
20767 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20768 Need own alloca
20769 #endif
20771 _ACEOF
20772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20773 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20774 gl_cv_rpl_alloca=yes
20775 else
20776 gl_cv_rpl_alloca=no
20778 rm -f conftest*
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20783 $as_echo "$gl_cv_rpl_alloca" >&6; }
20784 if test $gl_cv_rpl_alloca = yes; then
20786 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20788 ALLOCA_H=alloca.h
20789 else
20790 ALLOCA_H=
20792 else
20793 ALLOCA_H=alloca.h
20796 if test -n "$ALLOCA_H"; then
20797 GL_GENERATE_ALLOCA_H_TRUE=
20798 GL_GENERATE_ALLOCA_H_FALSE='#'
20799 else
20800 GL_GENERATE_ALLOCA_H_TRUE='#'
20801 GL_GENERATE_ALLOCA_H_FALSE=
20809 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20810 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20812 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20813 # programs in the package would end up linked with that potentially-shared
20814 # library, inducing unnecessary run-time overhead.
20815 LIB_CLOCK_GETTIME=
20817 gl_saved_libs=$LIBS
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20819 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20820 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20821 $as_echo_n "(cached) " >&6
20822 else
20823 ac_func_search_save_LIBS=$LIBS
20824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h. */
20827 /* Override any GCC internal prototype to avoid an error.
20828 Use char because int might match the return type of a GCC
20829 builtin and then its argument prototype would still apply. */
20830 #ifdef __cplusplus
20831 extern "C"
20832 #endif
20833 char clock_gettime ();
20835 main ()
20837 return clock_gettime ();
20839 return 0;
20841 _ACEOF
20842 for ac_lib in '' rt posix4; do
20843 if test -z "$ac_lib"; then
20844 ac_res="none required"
20845 else
20846 ac_res=-l$ac_lib
20847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20849 if ac_fn_c_try_link "$LINENO"; then :
20850 ac_cv_search_clock_gettime=$ac_res
20852 rm -f core conftest.err conftest.$ac_objext \
20853 conftest$ac_exeext
20854 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20855 break
20857 done
20858 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20860 else
20861 ac_cv_search_clock_gettime=no
20863 rm conftest.$ac_ext
20864 LIBS=$ac_func_search_save_LIBS
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20867 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20868 ac_res=$ac_cv_search_clock_gettime
20869 if test "$ac_res" != no; then :
20870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20871 test "$ac_cv_search_clock_gettime" = "none required" ||
20872 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20875 for ac_func in clock_gettime clock_settime
20876 do :
20877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20878 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20879 eval as_val=\$$as_ac_var
20880 if test "x$as_val" = x""yes; then :
20881 cat >>confdefs.h <<_ACEOF
20882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20883 _ACEOF
20886 done
20888 LIBS=$gl_saved_libs
20895 cat >>confdefs.h <<_ACEOF
20896 #define GNULIB_CLOSE_STREAM 1
20897 _ACEOF
20926 if test $gl_cv_have_include_next = yes; then
20927 gl_cv_next_dirent_h='<'dirent.h'>'
20928 else
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
20930 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
20931 if test "${gl_cv_next_dirent_h+set}" = set; then :
20932 $as_echo_n "(cached) " >&6
20933 else
20935 if test $ac_cv_header_dirent_h = yes; then
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h. */
20940 #include <dirent.h>
20942 _ACEOF
20943 case "$host_os" in
20944 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20945 *) gl_absname_cpp="$ac_cpp" ;;
20946 esac
20948 case "$host_os" in
20949 mingw*)
20950 gl_dirsep_regex='[/\\]'
20953 gl_dirsep_regex='\/'
20955 esac
20956 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20958 gl_header_literal_regex=`echo 'dirent.h' \
20959 | sed -e "$gl_make_literal_regex_sed"`
20960 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20961 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20962 s|^/[^/]|//&|
20966 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20967 sed -n "$gl_absolute_header_sed"`'"'
20968 else
20969 gl_cv_next_dirent_h='<'dirent.h'>'
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
20975 $as_echo "$gl_cv_next_dirent_h" >&6; }
20977 NEXT_DIRENT_H=$gl_cv_next_dirent_h
20979 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20981 gl_next_as_first_directive='<'dirent.h'>'
20982 else
20983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20984 gl_next_as_first_directive=$gl_cv_next_dirent_h
20986 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
20991 if test $ac_cv_header_dirent_h = yes; then
20992 HAVE_DIRENT_H=1
20993 else
20994 HAVE_DIRENT_H=0
21006 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
21009 if test $HAVE_DUP2 = 1; then
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
21011 $as_echo_n "checking whether dup2 works... " >&6; }
21012 if test "${gl_cv_func_dup2_works+set}" = set; then :
21013 $as_echo_n "(cached) " >&6
21014 else
21015 if test "$cross_compiling" = yes; then :
21016 case "$host_os" in
21017 mingw*) # on this platform, dup2 always returns 0 for success
21018 gl_cv_func_dup2_works="guessing no" ;;
21019 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
21020 gl_cv_func_dup2_works="guessing no" ;;
21021 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
21022 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
21023 gl_cv_func_dup2_works="guessing no" ;;
21024 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
21025 gl_cv_func_dup2_works="guessing no" ;;
21026 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
21027 gl_cv_func_dup2_works="guessing no" ;;
21028 *) gl_cv_func_dup2_works="guessing yes" ;;
21029 esac
21030 else
21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h. */
21034 #include <unistd.h>
21035 #include <fcntl.h>
21036 #include <errno.h>
21038 main ()
21040 int result = 0;
21041 #ifdef FD_CLOEXEC
21042 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
21043 result |= 1;
21044 #endif
21045 if (dup2 (1, 1) == 0)
21046 result |= 2;
21047 #ifdef FD_CLOEXEC
21048 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
21049 result |= 4;
21050 #endif
21051 close (0);
21052 if (dup2 (0, 0) != -1)
21053 result |= 8;
21054 /* Many gnulib modules require POSIX conformance of EBADF. */
21055 if (dup2 (2, 1000000) == -1 && errno != EBADF)
21056 result |= 16;
21057 /* Flush out a cygwin core dump. */
21058 if (dup2 (2, -1) != -1 || errno != EBADF)
21059 result |= 32;
21060 return result;
21063 return 0;
21066 _ACEOF
21067 if ac_fn_c_try_run "$LINENO"; then :
21068 gl_cv_func_dup2_works=yes
21069 else
21070 gl_cv_func_dup2_works=no
21072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21073 conftest.$ac_objext conftest.beam conftest.$ac_ext
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
21079 $as_echo "$gl_cv_func_dup2_works" >&6; }
21080 case "$gl_cv_func_dup2_works" in
21081 *yes) ;;
21083 REPLACE_DUP2=1
21085 esac
21089 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
21098 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
21107 GNULIB_DUP2=1
21119 GNULIB_ENVIRON=1
21128 LIB_EXECINFO=''
21129 EXECINFO_H='execinfo.h'
21131 if test $ac_cv_header_execinfo_h = yes; then
21132 gl_saved_libs=$LIBS
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
21134 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
21135 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21136 $as_echo_n "(cached) " >&6
21137 else
21138 ac_func_search_save_LIBS=$LIBS
21139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21140 /* end confdefs.h. */
21142 /* Override any GCC internal prototype to avoid an error.
21143 Use char because int might match the return type of a GCC
21144 builtin and then its argument prototype would still apply. */
21145 #ifdef __cplusplus
21146 extern "C"
21147 #endif
21148 char backtrace_symbols_fd ();
21150 main ()
21152 return backtrace_symbols_fd ();
21154 return 0;
21156 _ACEOF
21157 for ac_lib in '' execinfo; do
21158 if test -z "$ac_lib"; then
21159 ac_res="none required"
21160 else
21161 ac_res=-l$ac_lib
21162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21164 if ac_fn_c_try_link "$LINENO"; then :
21165 ac_cv_search_backtrace_symbols_fd=$ac_res
21167 rm -f core conftest.err conftest.$ac_objext \
21168 conftest$ac_exeext
21169 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21170 break
21172 done
21173 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
21175 else
21176 ac_cv_search_backtrace_symbols_fd=no
21178 rm conftest.$ac_ext
21179 LIBS=$ac_func_search_save_LIBS
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
21182 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
21183 ac_res=$ac_cv_search_backtrace_symbols_fd
21184 if test "$ac_res" != no; then :
21185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21186 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
21187 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
21190 LIBS=$gl_saved_libs
21191 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
21194 if test -n "$EXECINFO_H"; then
21203 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
21209 if test -n "$EXECINFO_H"; then
21210 GL_GENERATE_EXECINFO_H_TRUE=
21211 GL_GENERATE_EXECINFO_H_FALSE='#'
21212 else
21213 GL_GENERATE_EXECINFO_H_TRUE='#'
21214 GL_GENERATE_EXECINFO_H_FALSE=
21225 if test $ac_cv_func_faccessat = no; then
21226 HAVE_FACCESSAT=0
21229 if test $HAVE_FACCESSAT = 0; then
21238 gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext"
21241 for ac_func in access
21242 do :
21243 ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access"
21244 if test "x$ac_cv_func_access" = x""yes; then :
21245 cat >>confdefs.h <<_ACEOF
21246 #define HAVE_ACCESS 1
21247 _ACEOF
21250 done
21256 cat >>confdefs.h <<_ACEOF
21257 #define GNULIB_FACCESSAT 1
21258 _ACEOF
21266 GNULIB_FACCESSAT=1
21283 if test $gl_cv_have_include_next = yes; then
21284 gl_cv_next_fcntl_h='<'fcntl.h'>'
21285 else
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
21287 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
21288 if test "${gl_cv_next_fcntl_h+set}" = set; then :
21289 $as_echo_n "(cached) " >&6
21290 else
21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21294 #include <fcntl.h>
21296 _ACEOF
21297 case "$host_os" in
21298 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21299 *) gl_absname_cpp="$ac_cpp" ;;
21300 esac
21302 case "$host_os" in
21303 mingw*)
21304 gl_dirsep_regex='[/\\]'
21307 gl_dirsep_regex='\/'
21309 esac
21310 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21312 gl_header_literal_regex=`echo 'fcntl.h' \
21313 | sed -e "$gl_make_literal_regex_sed"`
21314 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21315 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21316 s|^/[^/]|//&|
21320 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21321 sed -n "$gl_absolute_header_sed"`'"'
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
21326 $as_echo "$gl_cv_next_fcntl_h" >&6; }
21328 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
21330 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21331 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21332 gl_next_as_first_directive='<'fcntl.h'>'
21333 else
21334 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21335 gl_next_as_first_directive=$gl_cv_next_fcntl_h
21337 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
21353 LIB_FDATASYNC=
21356 if test $ac_cv_have_decl_fdatasync = no; then
21357 HAVE_DECL_FDATASYNC=0
21358 for ac_func in fdatasync
21359 do :
21360 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
21361 if test "x$ac_cv_func_fdatasync" = x""yes; then :
21362 cat >>confdefs.h <<_ACEOF
21363 #define HAVE_FDATASYNC 1
21364 _ACEOF
21367 done
21369 if test $ac_cv_func_fdatasync = no; then
21370 HAVE_FDATASYNC=0
21372 else
21373 gl_saved_libs=$LIBS
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
21375 $as_echo_n "checking for library containing fdatasync... " >&6; }
21376 if test "${ac_cv_search_fdatasync+set}" = set; then :
21377 $as_echo_n "(cached) " >&6
21378 else
21379 ac_func_search_save_LIBS=$LIBS
21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21381 /* end confdefs.h. */
21383 /* Override any GCC internal prototype to avoid an error.
21384 Use char because int might match the return type of a GCC
21385 builtin and then its argument prototype would still apply. */
21386 #ifdef __cplusplus
21387 extern "C"
21388 #endif
21389 char fdatasync ();
21391 main ()
21393 return fdatasync ();
21395 return 0;
21397 _ACEOF
21398 for ac_lib in '' rt posix4; do
21399 if test -z "$ac_lib"; then
21400 ac_res="none required"
21401 else
21402 ac_res=-l$ac_lib
21403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21405 if ac_fn_c_try_link "$LINENO"; then :
21406 ac_cv_search_fdatasync=$ac_res
21408 rm -f core conftest.err conftest.$ac_objext \
21409 conftest$ac_exeext
21410 if test "${ac_cv_search_fdatasync+set}" = set; then :
21411 break
21413 done
21414 if test "${ac_cv_search_fdatasync+set}" = set; then :
21416 else
21417 ac_cv_search_fdatasync=no
21419 rm conftest.$ac_ext
21420 LIBS=$ac_func_search_save_LIBS
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
21423 $as_echo "$ac_cv_search_fdatasync" >&6; }
21424 ac_res=$ac_cv_search_fdatasync
21425 if test "$ac_res" != no; then :
21426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21427 test "$ac_cv_search_fdatasync" = "none required" ||
21428 LIB_FDATASYNC=$ac_cv_search_fdatasync
21431 LIBS=$gl_saved_libs
21434 if test $HAVE_FDATASYNC = 0; then
21443 gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
21451 GNULIB_FDATASYNC=1
21462 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
21463 #include <dirent.h>
21466 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then :
21467 ac_have_decl=1
21468 else
21469 ac_have_decl=0
21472 cat >>confdefs.h <<_ACEOF
21473 #define HAVE_DECL_FDOPENDIR $ac_have_decl
21474 _ACEOF
21475 if test $ac_have_decl = 1; then :
21477 else
21478 HAVE_DECL_FDOPENDIR=0
21482 if test $ac_cv_func_fdopendir = no; then
21483 HAVE_FDOPENDIR=0
21484 else
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
21486 $as_echo_n "checking whether fdopendir works... " >&6; }
21487 if test "${gl_cv_func_fdopendir_works+set}" = set; then :
21488 $as_echo_n "(cached) " >&6
21489 else
21490 if test "$cross_compiling" = yes; then :
21491 case "$host_os" in
21492 # Guess yes on glibc systems.
21493 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
21494 # If we don't know, assume the worst.
21495 *) gl_cv_func_fdopendir_works="guessing no" ;;
21496 esac
21498 else
21499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21500 /* end confdefs.h. */
21502 #include <dirent.h>
21503 #include <fcntl.h>
21504 #include <unistd.h>
21505 #if !HAVE_DECL_FDOPENDIR
21506 extern
21507 # ifdef __cplusplus
21509 # endif
21510 DIR *fdopendir (int);
21511 #endif
21514 main ()
21516 int result = 0;
21517 int fd = open ("conftest.c", O_RDONLY);
21518 if (fd < 0) result |= 1;
21519 if (fdopendir (fd)) result |= 2;
21520 if (close (fd)) result |= 4;
21521 return result;
21523 return 0;
21525 _ACEOF
21526 if ac_fn_c_try_run "$LINENO"; then :
21527 gl_cv_func_fdopendir_works=yes
21528 else
21529 gl_cv_func_fdopendir_works=no
21531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21532 conftest.$ac_objext conftest.beam conftest.$ac_ext
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
21537 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
21538 case "$gl_cv_func_fdopendir_works" in
21539 *yes) ;;
21541 REPLACE_FDOPENDIR=1
21543 esac
21546 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
21555 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
21563 GNULIB_FDOPENDIR=1
21571 cat >>confdefs.h <<_ACEOF
21572 #define GNULIB_FDOPENDIR 1
21573 _ACEOF
21583 fp_headers='
21584 # include <stdio.h>
21585 # if HAVE_STDIO_EXT_H
21586 # include <stdio_ext.h>
21587 # endif
21589 ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers
21591 if test "x$ac_cv_have_decl___fpending" = x""yes; then :
21592 ac_have_decl=1
21593 else
21594 ac_have_decl=0
21597 cat >>confdefs.h <<_ACEOF
21598 #define HAVE_DECL___FPENDING $ac_have_decl
21599 _ACEOF
21602 if test $ac_cv_func___fpending = no; then
21611 gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5
21615 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
21616 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then :
21617 $as_echo_n "(cached) " >&6
21618 else
21620 for ac_expr in \
21622 '# glibc2' \
21623 'fp->_IO_write_ptr - fp->_IO_write_base' \
21625 '# traditional Unix' \
21626 'fp->_ptr - fp->_base' \
21628 '# BSD' \
21629 'fp->_p - fp->_bf._base' \
21631 '# SCO, Unixware' \
21632 '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \
21634 '# QNX' \
21635 '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
21637 '# old glibc?' \
21638 'fp->__bufp - fp->__buffer' \
21640 '# old glibc iostream?' \
21641 'fp->_pptr - fp->_pbase' \
21643 '# emx+gcc' \
21644 'fp->_ptr - fp->_buffer' \
21646 '# Minix' \
21647 'fp->_ptr - fp->_buf' \
21649 '# Plan9' \
21650 'fp->wp - fp->buf' \
21652 '# VMS' \
21653 '(*fp)->_ptr - (*fp)->_base' \
21655 '# e.g., DGUX R4.11; the info is not available' \
21657 ; do
21659 # Skip each embedded comment.
21660 case "$ac_expr" in '#'*) continue;; esac
21662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21663 /* end confdefs.h. */
21664 #include <stdio.h>
21666 main ()
21668 FILE *fp = stdin; (void) ($ac_expr);
21670 return 0;
21672 _ACEOF
21673 if ac_fn_c_try_compile "$LINENO"; then :
21674 fp_done=yes
21677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21678 test "$fp_done" = yes && break
21679 done
21681 ac_cv_sys_pending_output_n_bytes=$ac_expr
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5
21686 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
21688 cat >>confdefs.h <<_ACEOF
21689 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
21690 _ACEOF
21700 if test $ac_cv_func_fstatat = no; then
21701 HAVE_FSTATAT=0
21702 else
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
21704 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
21705 if test "${gl_cv_func_fstatat_zero_flag+set}" = set; then :
21706 $as_echo_n "(cached) " >&6
21707 else
21708 if test "$cross_compiling" = yes; then :
21709 case "$host_os" in
21710 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
21711 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
21712 esac
21714 else
21715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21716 /* end confdefs.h. */
21718 #include <fcntl.h>
21719 #include <sys/stat.h>
21721 main (void)
21723 struct stat a;
21724 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
21727 _ACEOF
21728 if ac_fn_c_try_run "$LINENO"; then :
21729 gl_cv_func_fstatat_zero_flag=yes
21730 else
21731 gl_cv_func_fstatat_zero_flag=no
21733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21734 conftest.$ac_objext conftest.beam conftest.$ac_ext
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
21740 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
21742 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
21743 *yes+*yes) ;;
21744 *) REPLACE_FSTATAT=1
21745 case $gl_cv_func_fstatat_zero_flag in
21746 *yes)
21748 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
21751 esac
21753 esac
21756 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
21765 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
21773 GNULIB_FSTATAT=1
21782 if test $ac_cv_func_fsync = no; then
21783 HAVE_FSYNC=0
21786 if test $HAVE_FSYNC = 0; then
21795 gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
21804 GNULIB_FSYNC=1
21812 # Persuade glibc <stdlib.h> to declare getloadavg().
21815 gl_save_LIBS=$LIBS
21817 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
21818 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
21819 HAVE_GETLOADAVG=1
21820 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
21821 if test "x$ac_cv_func_getloadavg" = x""yes; then :
21823 else
21824 gl_func_getloadavg_done=no
21826 # Some systems with -lutil have (and need) -lkvm as well, some do not.
21827 # On Solaris, -lkvm requires nlist from -lelf, so check that first
21828 # to get the right answer into the cache.
21829 # For kstat on solaris, we need to test for libelf and libkvm to force the
21830 # definition of SVR4 below.
21831 if test $gl_func_getloadavg_done = no; then
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
21833 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
21834 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
21835 $as_echo_n "(cached) " >&6
21836 else
21837 ac_check_lib_save_LIBS=$LIBS
21838 LIBS="-lelf $LIBS"
21839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21840 /* end confdefs.h. */
21842 /* Override any GCC internal prototype to avoid an error.
21843 Use char because int might match the return type of a GCC
21844 builtin and then its argument prototype would still apply. */
21845 #ifdef __cplusplus
21846 extern "C"
21847 #endif
21848 char elf_begin ();
21850 main ()
21852 return elf_begin ();
21854 return 0;
21856 _ACEOF
21857 if ac_fn_c_try_link "$LINENO"; then :
21858 ac_cv_lib_elf_elf_begin=yes
21859 else
21860 ac_cv_lib_elf_elf_begin=no
21862 rm -f core conftest.err conftest.$ac_objext \
21863 conftest$ac_exeext conftest.$ac_ext
21864 LIBS=$ac_check_lib_save_LIBS
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
21867 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
21868 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
21869 LIBS="-lelf $LIBS"
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
21873 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
21874 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
21875 $as_echo_n "(cached) " >&6
21876 else
21877 ac_check_lib_save_LIBS=$LIBS
21878 LIBS="-lkvm $LIBS"
21879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21880 /* end confdefs.h. */
21882 /* Override any GCC internal prototype to avoid an error.
21883 Use char because int might match the return type of a GCC
21884 builtin and then its argument prototype would still apply. */
21885 #ifdef __cplusplus
21886 extern "C"
21887 #endif
21888 char kvm_open ();
21890 main ()
21892 return kvm_open ();
21894 return 0;
21896 _ACEOF
21897 if ac_fn_c_try_link "$LINENO"; then :
21898 ac_cv_lib_kvm_kvm_open=yes
21899 else
21900 ac_cv_lib_kvm_kvm_open=no
21902 rm -f core conftest.err conftest.$ac_objext \
21903 conftest$ac_exeext conftest.$ac_ext
21904 LIBS=$ac_check_lib_save_LIBS
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
21907 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
21908 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
21909 LIBS="-lkvm $LIBS"
21912 # Check for the 4.4BSD definition of getloadavg.
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
21914 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
21915 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
21916 $as_echo_n "(cached) " >&6
21917 else
21918 ac_check_lib_save_LIBS=$LIBS
21919 LIBS="-lutil $LIBS"
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21923 /* Override any GCC internal prototype to avoid an error.
21924 Use char because int might match the return type of a GCC
21925 builtin and then its argument prototype would still apply. */
21926 #ifdef __cplusplus
21927 extern "C"
21928 #endif
21929 char getloadavg ();
21931 main ()
21933 return getloadavg ();
21935 return 0;
21937 _ACEOF
21938 if ac_fn_c_try_link "$LINENO"; then :
21939 ac_cv_lib_util_getloadavg=yes
21940 else
21941 ac_cv_lib_util_getloadavg=no
21943 rm -f core conftest.err conftest.$ac_objext \
21944 conftest$ac_exeext conftest.$ac_ext
21945 LIBS=$ac_check_lib_save_LIBS
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
21948 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
21949 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
21950 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
21955 if test $gl_func_getloadavg_done = no; then
21956 # There is a commonly available library for RS/6000 AIX.
21957 # Since it is not a standard part of AIX, it might be installed locally.
21958 gl_getloadavg_LIBS=$LIBS
21959 LIBS="-L/usr/local/lib $LIBS"
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
21961 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
21962 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
21963 $as_echo_n "(cached) " >&6
21964 else
21965 ac_check_lib_save_LIBS=$LIBS
21966 LIBS="-lgetloadavg $LIBS"
21967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h. */
21970 /* Override any GCC internal prototype to avoid an error.
21971 Use char because int might match the return type of a GCC
21972 builtin and then its argument prototype would still apply. */
21973 #ifdef __cplusplus
21974 extern "C"
21975 #endif
21976 char getloadavg ();
21978 main ()
21980 return getloadavg ();
21982 return 0;
21984 _ACEOF
21985 if ac_fn_c_try_link "$LINENO"; then :
21986 ac_cv_lib_getloadavg_getloadavg=yes
21987 else
21988 ac_cv_lib_getloadavg_getloadavg=no
21990 rm -f core conftest.err conftest.$ac_objext \
21991 conftest$ac_exeext conftest.$ac_ext
21992 LIBS=$ac_check_lib_save_LIBS
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
21995 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
21996 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
21997 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
21998 else
21999 LIBS=$gl_getloadavg_LIBS
22004 # Set up the replacement function if necessary.
22005 if test $gl_func_getloadavg_done = no; then
22006 HAVE_GETLOADAVG=0
22008 # Solaris has libkstat which does not require root.
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
22010 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
22011 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
22012 $as_echo_n "(cached) " >&6
22013 else
22014 ac_check_lib_save_LIBS=$LIBS
22015 LIBS="-lkstat $LIBS"
22016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h. */
22019 /* Override any GCC internal prototype to avoid an error.
22020 Use char because int might match the return type of a GCC
22021 builtin and then its argument prototype would still apply. */
22022 #ifdef __cplusplus
22023 extern "C"
22024 #endif
22025 char kstat_open ();
22027 main ()
22029 return kstat_open ();
22031 return 0;
22033 _ACEOF
22034 if ac_fn_c_try_link "$LINENO"; then :
22035 ac_cv_lib_kstat_kstat_open=yes
22036 else
22037 ac_cv_lib_kstat_kstat_open=no
22039 rm -f core conftest.err conftest.$ac_objext \
22040 conftest$ac_exeext conftest.$ac_ext
22041 LIBS=$ac_check_lib_save_LIBS
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
22044 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
22045 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
22046 cat >>confdefs.h <<_ACEOF
22047 #define HAVE_LIBKSTAT 1
22048 _ACEOF
22050 LIBS="-lkstat $LIBS"
22054 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
22056 # AIX has libperfstat which does not require root
22057 if test $gl_func_getloadavg_done = no; then
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
22059 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
22060 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
22061 $as_echo_n "(cached) " >&6
22062 else
22063 ac_check_lib_save_LIBS=$LIBS
22064 LIBS="-lperfstat $LIBS"
22065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066 /* end confdefs.h. */
22068 /* Override any GCC internal prototype to avoid an error.
22069 Use char because int might match the return type of a GCC
22070 builtin and then its argument prototype would still apply. */
22071 #ifdef __cplusplus
22072 extern "C"
22073 #endif
22074 char perfstat_cpu_total ();
22076 main ()
22078 return perfstat_cpu_total ();
22080 return 0;
22082 _ACEOF
22083 if ac_fn_c_try_link "$LINENO"; then :
22084 ac_cv_lib_perfstat_perfstat_cpu_total=yes
22085 else
22086 ac_cv_lib_perfstat_perfstat_cpu_total=no
22088 rm -f core conftest.err conftest.$ac_objext \
22089 conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
22093 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
22094 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
22095 cat >>confdefs.h <<_ACEOF
22096 #define HAVE_LIBPERFSTAT 1
22097 _ACEOF
22099 LIBS="-lperfstat $LIBS"
22103 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
22106 if test $gl_func_getloadavg_done = no; then
22107 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
22108 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
22109 gl_func_getloadavg_done=yes
22111 $as_echo "#define DGUX 1" >>confdefs.h
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
22114 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
22115 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
22116 $as_echo_n "(cached) " >&6
22117 else
22118 ac_check_lib_save_LIBS=$LIBS
22119 LIBS="-ldgc $LIBS"
22120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22121 /* end confdefs.h. */
22123 /* Override any GCC internal prototype to avoid an error.
22124 Use char because int might match the return type of a GCC
22125 builtin and then its argument prototype would still apply. */
22126 #ifdef __cplusplus
22127 extern "C"
22128 #endif
22129 char dg_sys_info ();
22131 main ()
22133 return dg_sys_info ();
22135 return 0;
22137 _ACEOF
22138 if ac_fn_c_try_link "$LINENO"; then :
22139 ac_cv_lib_dgc_dg_sys_info=yes
22140 else
22141 ac_cv_lib_dgc_dg_sys_info=no
22143 rm -f core conftest.err conftest.$ac_objext \
22144 conftest$ac_exeext conftest.$ac_ext
22145 LIBS=$ac_check_lib_save_LIBS
22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
22148 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
22149 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
22150 cat >>confdefs.h <<_ACEOF
22151 #define HAVE_LIBDGC 1
22152 _ACEOF
22154 LIBS="-ldgc $LIBS"
22166 if test "x$gl_save_LIBS" = x; then
22167 GETLOADAVG_LIBS=$LIBS
22168 else
22169 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
22171 LIBS=$gl_save_LIBS
22174 # Test whether the system declares getloadavg. Solaris has the function
22175 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
22176 for ac_header in sys/loadavg.h
22177 do :
22178 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
22179 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
22180 cat >>confdefs.h <<_ACEOF
22181 #define HAVE_SYS_LOADAVG_H 1
22182 _ACEOF
22186 done
22188 if test $ac_cv_header_sys_loadavg_h = yes; then
22189 HAVE_SYS_LOADAVG_H=1
22190 else
22191 HAVE_SYS_LOADAVG_H=0
22193 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
22194 # include <sys/loadavg.h>
22195 #endif
22196 #include <stdlib.h>
22198 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
22200 else
22201 HAVE_DECL_GETLOADAVG=0
22205 if test $HAVE_GETLOADAVG = 0; then
22214 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
22217 # Figure out what our getloadavg.c needs.
22221 # On HPUX9, an unprivileged user can get load averages this way.
22222 if test $gl_func_getloadavg_done = no; then
22223 for ac_func in pstat_getdynamic
22224 do :
22225 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
22226 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
22227 cat >>confdefs.h <<_ACEOF
22228 #define HAVE_PSTAT_GETDYNAMIC 1
22229 _ACEOF
22230 gl_func_getloadavg_done=yes
22232 done
22236 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
22237 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
22238 # Irix 4.0.5F has the header but not the library.
22239 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
22240 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
22241 gl_func_getloadavg_done=yes
22243 $as_echo "#define SVR4 1" >>confdefs.h
22247 if test $gl_func_getloadavg_done = no; then
22248 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
22249 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
22250 gl_func_getloadavg_done=yes
22252 $as_echo "#define UMAX 1" >>confdefs.h
22255 $as_echo "#define UMAX4_3 1" >>confdefs.h
22262 if test $gl_func_getloadavg_done = no; then
22263 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
22264 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
22265 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
22272 if test $gl_func_getloadavg_done = no; then
22273 for ac_header in mach/mach.h
22274 do :
22275 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
22276 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
22277 cat >>confdefs.h <<_ACEOF
22278 #define HAVE_MACH_MACH_H 1
22279 _ACEOF
22283 done
22287 for ac_header in nlist.h
22288 do :
22289 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
22290 if test "x$ac_cv_header_nlist_h" = x""yes; then :
22291 cat >>confdefs.h <<_ACEOF
22292 #define HAVE_NLIST_H 1
22293 _ACEOF
22294 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
22296 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
22298 cat >>confdefs.h <<_ACEOF
22299 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
22300 _ACEOF
22305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22306 /* end confdefs.h. */
22307 #include <nlist.h>
22309 main ()
22311 struct nlist x;
22312 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
22313 x.n_un.n_name = "";
22314 #else
22315 x.n_name = "";
22316 #endif
22318 return 0;
22320 _ACEOF
22321 if ac_fn_c_try_link "$LINENO"; then :
22323 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
22326 rm -f core conftest.err conftest.$ac_objext \
22327 conftest$ac_exeext conftest.$ac_ext
22331 done
22339 GNULIB_GETLOADAVG=1
22350 if test $REPLACE_GETOPT = 1; then
22359 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22369 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22374 GNULIB_GL_UNISTD_H_GETOPT=1
22383 REPLACE_GETOPT=0
22384 if test -n "$gl_replace_getopt"; then
22385 REPLACE_GETOPT=1
22388 if test $REPLACE_GETOPT = 1; then
22390 GETOPT_H=getopt.h
22392 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22398 if test $REPLACE_GETOPT = 1; then
22407 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22417 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22422 GNULIB_GL_UNISTD_H_GETOPT=1
22436 gl_gettimeofday_timezone=void
22437 if test $ac_cv_func_gettimeofday != yes; then
22438 HAVE_GETTIMEOFDAY=0
22439 else
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22444 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22445 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
22446 $as_echo_n "(cached) " >&6
22447 else
22448 if test "$cross_compiling" = yes; then :
22449 # When cross-compiling:
22450 case "$host_os" in
22451 # Guess all is fine on glibc systems.
22452 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22453 # If we don't know, assume the worst.
22454 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22455 esac
22457 else
22458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22459 /* end confdefs.h. */
22460 #include <string.h>
22461 #include <sys/time.h>
22462 #include <time.h>
22463 #include <stdlib.h>
22466 main ()
22469 time_t t = 0;
22470 struct tm *lt;
22471 struct tm saved_lt;
22472 struct timeval tv;
22473 lt = localtime (&t);
22474 saved_lt = *lt;
22475 gettimeofday (&tv, NULL);
22476 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22479 return 0;
22481 _ACEOF
22482 if ac_fn_c_try_run "$LINENO"; then :
22483 gl_cv_func_gettimeofday_clobber=no
22484 else
22485 gl_cv_func_gettimeofday_clobber=yes
22487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22488 conftest.$ac_objext conftest.beam conftest.$ac_ext
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22493 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22495 case "$gl_cv_func_gettimeofday_clobber" in
22496 *yes)
22497 REPLACE_GETTIMEOFDAY=1
22500 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
22503 $as_echo "#define localtime rpl_localtime" >>confdefs.h
22507 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22510 esac
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22513 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22514 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
22515 $as_echo_n "(cached) " >&6
22516 else
22517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22518 /* end confdefs.h. */
22519 #include <sys/time.h>
22520 struct timeval c;
22521 int gettimeofday (struct timeval *restrict, void *restrict);
22524 main ()
22526 /* glibc uses struct timezone * rather than the POSIX void *
22527 if _GNU_SOURCE is defined. However, since the only portable
22528 use of gettimeofday uses NULL as the second parameter, and
22529 since the glibc definition is actually more typesafe, it is
22530 not worth wrapping this to get a compliant signature. */
22531 int (*f) (struct timeval *restrict, void *restrict)
22532 = gettimeofday;
22533 int x = f (&c, 0);
22534 return !(x | c.tv_sec | c.tv_usec);
22537 return 0;
22539 _ACEOF
22540 if ac_fn_c_try_compile "$LINENO"; then :
22541 gl_cv_func_gettimeofday_posix_signature=yes
22542 else
22543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544 /* end confdefs.h. */
22545 #include <sys/time.h>
22546 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22549 main ()
22553 return 0;
22555 _ACEOF
22556 if ac_fn_c_try_compile "$LINENO"; then :
22557 gl_cv_func_gettimeofday_posix_signature=almost
22558 else
22559 gl_cv_func_gettimeofday_posix_signature=no
22561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22566 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22567 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22568 gl_gettimeofday_timezone='struct timezone'
22569 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22570 REPLACE_GETTIMEOFDAY=1
22572 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22573 REPLACE_GETTIMEOFDAY=1
22578 cat >>confdefs.h <<_ACEOF
22579 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22580 _ACEOF
22583 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22592 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22595 for ac_header in sys/timeb.h
22596 do :
22597 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22598 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
22599 cat >>confdefs.h <<_ACEOF
22600 #define HAVE_SYS_TIMEB_H 1
22601 _ACEOF
22605 done
22607 for ac_func in _ftime
22608 do :
22609 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22610 if test "x$ac_cv_func__ftime" = x""yes; then :
22611 cat >>confdefs.h <<_ACEOF
22612 #define HAVE__FTIME 1
22613 _ACEOF
22616 done
22625 GNULIB_GETTIMEOFDAY=1
22636 if test $ac_cv_func_lstat = yes; then
22638 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22639 *no)
22640 REPLACE_LSTAT=1
22642 esac
22643 else
22644 HAVE_LSTAT=0
22647 if test $REPLACE_LSTAT = 1; then
22656 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
22665 GNULIB_LSTAT=1
22676 if test $ac_cv_have_decl_memrchr = no; then
22677 HAVE_DECL_MEMRCHR=0
22680 for ac_func in memrchr
22681 do :
22682 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
22683 if test "x$ac_cv_func_memrchr" = x""yes; then :
22684 cat >>confdefs.h <<_ACEOF
22685 #define HAVE_MEMRCHR 1
22686 _ACEOF
22689 done
22692 if test $ac_cv_func_memrchr = no; then
22701 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
22710 GNULIB_MEMRCHR=1
22722 if test $APPLE_UNIVERSAL_BUILD = 1; then
22723 # A universal build on Apple Mac OS X platforms.
22724 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
22725 # But we need a configuration result that is valid in both modes.
22726 gl_cv_func_working_mktime=no
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
22729 $as_echo_n "checking for working mktime... " >&6; }
22730 if test "${gl_cv_func_working_mktime+set}" = set; then :
22731 $as_echo_n "(cached) " >&6
22732 else
22733 if test "$cross_compiling" = yes; then :
22734 gl_cv_func_working_mktime=no
22735 else
22736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737 /* end confdefs.h. */
22738 /* Test program from Paul Eggert and Tony Leneis. */
22739 #include <limits.h>
22740 #include <stdlib.h>
22741 #include <time.h>
22743 #ifdef HAVE_UNISTD_H
22744 # include <unistd.h>
22745 #endif
22747 #if HAVE_DECL_ALARM
22748 # include <signal.h>
22749 #endif
22751 /* Work around redefinition to rpl_putenv by other config tests. */
22752 #undef putenv
22754 static time_t time_t_max;
22755 static time_t time_t_min;
22757 /* Values we'll use to set the TZ environment variable. */
22758 static char *tz_strings[] = {
22759 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22760 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22762 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22764 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22765 Based on a problem report from Andreas Jaeger. */
22766 static int
22767 spring_forward_gap ()
22769 /* glibc (up to about 1998-10-07) failed this test. */
22770 struct tm tm;
22772 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22773 instead of "TZ=America/Vancouver" in order to detect the bug even
22774 on systems that don't support the Olson extension, or don't have the
22775 full zoneinfo tables installed. */
22776 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22778 tm.tm_year = 98;
22779 tm.tm_mon = 3;
22780 tm.tm_mday = 5;
22781 tm.tm_hour = 2;
22782 tm.tm_min = 0;
22783 tm.tm_sec = 0;
22784 tm.tm_isdst = -1;
22785 return mktime (&tm) != (time_t) -1;
22788 static int
22789 mktime_test1 (time_t now)
22791 struct tm *lt;
22792 return ! (lt = localtime (&now)) || mktime (lt) == now;
22795 static int
22796 mktime_test (time_t now)
22798 return (mktime_test1 (now)
22799 && mktime_test1 ((time_t) (time_t_max - now))
22800 && mktime_test1 ((time_t) (time_t_min + now)));
22803 static int
22804 irix_6_4_bug ()
22806 /* Based on code from Ariel Faigon. */
22807 struct tm tm;
22808 tm.tm_year = 96;
22809 tm.tm_mon = 3;
22810 tm.tm_mday = 0;
22811 tm.tm_hour = 0;
22812 tm.tm_min = 0;
22813 tm.tm_sec = 0;
22814 tm.tm_isdst = -1;
22815 mktime (&tm);
22816 return tm.tm_mon == 2 && tm.tm_mday == 31;
22819 static int
22820 bigtime_test (int j)
22822 struct tm tm;
22823 time_t now;
22824 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22825 now = mktime (&tm);
22826 if (now != (time_t) -1)
22828 struct tm *lt = localtime (&now);
22829 if (! (lt
22830 && lt->tm_year == tm.tm_year
22831 && lt->tm_mon == tm.tm_mon
22832 && lt->tm_mday == tm.tm_mday
22833 && lt->tm_hour == tm.tm_hour
22834 && lt->tm_min == tm.tm_min
22835 && lt->tm_sec == tm.tm_sec
22836 && lt->tm_yday == tm.tm_yday
22837 && lt->tm_wday == tm.tm_wday
22838 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22839 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22840 return 0;
22842 return 1;
22845 static int
22846 year_2050_test ()
22848 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22849 ignoring leap seconds. */
22850 unsigned long int answer = 2527315200UL;
22852 struct tm tm;
22853 time_t t;
22854 tm.tm_year = 2050 - 1900;
22855 tm.tm_mon = 2 - 1;
22856 tm.tm_mday = 1;
22857 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22858 tm.tm_isdst = -1;
22860 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22861 instead of "TZ=America/Vancouver" in order to detect the bug even
22862 on systems that don't support the Olson extension, or don't have the
22863 full zoneinfo tables installed. */
22864 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22866 t = mktime (&tm);
22868 /* Check that the result is either a failure, or close enough
22869 to the correct answer that we can assume the discrepancy is
22870 due to leap seconds. */
22871 return (t == (time_t) -1
22872 || (0 < t && answer - 120 <= t && t <= answer + 120));
22876 main ()
22878 int result = 0;
22879 time_t t, delta;
22880 int i, j;
22881 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
22882 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
22884 #if HAVE_DECL_ALARM
22885 /* This test makes some buggy mktime implementations loop.
22886 Give up after 60 seconds; a mktime slower than that
22887 isn't worth using anyway. */
22888 signal (SIGALRM, SIG_DFL);
22889 alarm (60);
22890 #endif
22892 time_t_max = (! time_t_signed
22893 ? (time_t) -1
22894 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
22895 * 2 + 1));
22896 time_t_min = (! time_t_signed
22897 ? (time_t) 0
22898 : time_t_signed_magnitude
22899 ? ~ (time_t) 0
22900 : ~ time_t_max);
22902 delta = time_t_max / 997; /* a suitable prime number */
22903 for (i = 0; i < N_STRINGS; i++)
22905 if (tz_strings[i])
22906 putenv (tz_strings[i]);
22908 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
22909 if (! mktime_test (t))
22910 result |= 1;
22911 if ((result & 2) == 0
22912 && ! (mktime_test ((time_t) 1)
22913 && mktime_test ((time_t) (60 * 60))
22914 && mktime_test ((time_t) (60 * 60 * 24))))
22915 result |= 2;
22917 for (j = 1; (result & 4) == 0; j <<= 1)
22919 if (! bigtime_test (j))
22920 result |= 4;
22921 if (INT_MAX / 2 < j)
22922 break;
22924 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
22925 result |= 8;
22927 if (! irix_6_4_bug ())
22928 result |= 16;
22929 if (! spring_forward_gap ())
22930 result |= 32;
22931 if (! year_2050_test ())
22932 result |= 64;
22933 return result;
22935 _ACEOF
22936 if ac_fn_c_try_run "$LINENO"; then :
22937 gl_cv_func_working_mktime=yes
22938 else
22939 gl_cv_func_working_mktime=no
22941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22942 conftest.$ac_objext conftest.beam conftest.$ac_ext
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
22948 $as_echo "$gl_cv_func_working_mktime" >&6; }
22950 if test $gl_cv_func_working_mktime = no; then
22951 REPLACE_MKTIME=1
22952 else
22953 REPLACE_MKTIME=0
22956 if test $REPLACE_MKTIME = 1; then
22965 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
22974 GNULIB_MKTIME=1
22986 if test $ac_cv_func_pselect = yes; then
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
22988 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
22989 if test "${gl_cv_sig_pselect+set}" = set; then :
22990 $as_echo_n "(cached) " >&6
22991 else
22992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22993 /* end confdefs.h. */
22994 #include <sys/select.h>
22997 main ()
22999 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
23000 struct timespec const *restrict,
23001 sigset_t const *restrict) = pselect;
23002 return !p;
23004 return 0;
23006 _ACEOF
23007 if ac_fn_c_try_link "$LINENO"; then :
23008 gl_cv_sig_pselect=yes
23009 else
23010 gl_cv_sig_pselect=no
23012 rm -f core conftest.err conftest.$ac_objext \
23013 conftest$ac_exeext conftest.$ac_ext
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
23016 $as_echo "$gl_cv_sig_pselect" >&6; }
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
23019 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
23020 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
23021 $as_echo_n "(cached) " >&6
23022 else
23024 if test "$cross_compiling" = yes; then :
23026 case "$host_os" in
23027 # Guess yes on glibc systems.
23028 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
23029 # If we don't know, assume the worst.
23030 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
23031 esac
23033 else
23034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23035 /* end confdefs.h. */
23037 #include <sys/types.h>
23038 #include <sys/time.h>
23039 #if HAVE_SYS_SELECT_H
23040 # include <sys/select.h>
23041 #endif
23042 #include <unistd.h>
23043 #include <errno.h>
23046 main ()
23049 fd_set set;
23050 dup2(0, 16);
23051 FD_ZERO(&set);
23052 FD_SET(16, &set);
23053 close(16);
23054 struct timespec timeout;
23055 timeout.tv_sec = 0;
23056 timeout.tv_nsec = 5000;
23057 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
23060 return 0;
23062 _ACEOF
23063 if ac_fn_c_try_run "$LINENO"; then :
23064 gl_cv_func_pselect_detects_ebadf=yes
23065 else
23066 gl_cv_func_pselect_detects_ebadf=no
23068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23069 conftest.$ac_objext conftest.beam conftest.$ac_ext
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
23075 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
23076 case $gl_cv_func_pselect_detects_ebadf in
23077 *yes) ;;
23078 *) REPLACE_PSELECT=1 ;;
23079 esac
23082 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
23083 REPLACE_PSELECT=1
23086 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
23095 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
23103 GNULIB_PSELECT=1
23113 LIB_PTHREAD_SIGMASK=
23118 if test "$gl_threads_api" = posix; then
23119 if test $ac_cv_func_pthread_sigmask = yes; then
23121 else
23122 if test -n "$LIBMULTITHREAD"; then
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
23124 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
23125 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
23126 $as_echo_n "(cached) " >&6
23127 else
23128 gl_save_LIBS="$LIBS"
23129 LIBS="$LIBS $LIBMULTITHREAD"
23130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23131 /* end confdefs.h. */
23132 #include <pthread.h>
23133 #include <signal.h>
23136 main ()
23138 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
23140 return 0;
23143 _ACEOF
23144 if ac_fn_c_try_link "$LINENO"; then :
23145 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
23146 else
23147 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
23149 rm -f core conftest.err conftest.$ac_objext \
23150 conftest$ac_exeext conftest.$ac_ext
23151 LIBS="$gl_save_LIBS"
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
23155 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
23156 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
23157 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
23158 else
23159 HAVE_PTHREAD_SIGMASK=0
23161 else
23162 HAVE_PTHREAD_SIGMASK=0
23165 else
23166 if test $ac_cv_func_pthread_sigmask = yes; then
23167 REPLACE_PTHREAD_SIGMASK=1
23168 else
23169 HAVE_PTHREAD_SIGMASK=0
23176 if test $HAVE_PTHREAD_SIGMASK = 1; then
23179 if test -z "$LIB_PTHREAD_SIGMASK"; then
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
23181 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
23182 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
23183 $as_echo_n "(cached) " >&6
23184 else
23186 if test "$cross_compiling" = yes; then :
23188 case "$host_os" in
23189 freebsd* | hpux* | solaris | solaris2.[2-9]*)
23190 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
23192 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
23193 esac
23195 else
23196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197 /* end confdefs.h. */
23199 #include <pthread.h>
23200 #include <signal.h>
23201 #include <stddef.h>
23202 int main ()
23204 sigset_t set;
23205 sigemptyset (&set);
23206 return pthread_sigmask (1729, &set, NULL) != 0;
23208 _ACEOF
23209 if ac_fn_c_try_run "$LINENO"; then :
23210 gl_cv_func_pthread_sigmask_in_libc_works=no
23211 else
23212 gl_cv_func_pthread_sigmask_in_libc_works=yes
23214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23215 conftest.$ac_objext conftest.beam conftest.$ac_ext
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
23221 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
23222 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
23223 *no)
23224 REPLACE_PTHREAD_SIGMASK=1
23226 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
23229 esac
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
23233 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
23234 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
23235 $as_echo_n "(cached) " >&6
23236 else
23238 gl_save_LIBS="$LIBS"
23239 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
23240 if test "$cross_compiling" = yes; then :
23241 case "$host_os" in
23242 cygwin*)
23243 gl_cv_func_pthread_sigmask_return_works="guessing no";;
23245 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
23246 esac
23248 else
23249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23250 /* end confdefs.h. */
23252 #include <pthread.h>
23253 #include <signal.h>
23254 #include <stddef.h>
23255 int main ()
23257 sigset_t set;
23258 sigemptyset (&set);
23259 if (pthread_sigmask (1729, &set, NULL) == -1)
23260 return 1;
23261 return 0;
23263 _ACEOF
23264 if ac_fn_c_try_run "$LINENO"; then :
23265 gl_cv_func_pthread_sigmask_return_works=yes
23266 else
23267 gl_cv_func_pthread_sigmask_return_works=no
23269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23270 conftest.$ac_objext conftest.beam conftest.$ac_ext
23273 LIBS="$gl_save_LIBS"
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
23277 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
23278 case "$gl_cv_func_pthread_sigmask_return_works" in
23279 *no)
23280 REPLACE_PTHREAD_SIGMASK=1
23282 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
23285 esac
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
23288 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
23289 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
23290 $as_echo_n "(cached) " >&6
23291 else
23293 case "$host_os" in
23294 irix*)
23295 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
23297 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
23298 esac
23299 gl_save_LIBS="$LIBS"
23300 LIBS="$LIBS $LIBMULTITHREAD"
23301 if test "$cross_compiling" = yes; then :
23303 else
23304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23305 /* end confdefs.h. */
23307 #include <pthread.h>
23308 #include <signal.h>
23309 #include <stdio.h>
23310 #include <stdlib.h>
23311 #include <unistd.h>
23312 static volatile int sigint_occurred;
23313 static void
23314 sigint_handler (int sig)
23316 sigint_occurred++;
23318 int main ()
23320 sigset_t set;
23321 int pid = getpid ();
23322 char command[80];
23323 signal (SIGINT, sigint_handler);
23324 sigemptyset (&set);
23325 sigaddset (&set, SIGINT);
23326 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
23327 return 1;
23328 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
23329 if (!(system (command) == 0))
23330 return 2;
23331 sleep (2);
23332 if (!(sigint_occurred == 0))
23333 return 3;
23334 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
23335 return 4;
23336 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
23337 return 5;
23338 return 0;
23340 _ACEOF
23341 if ac_fn_c_try_run "$LINENO"; then :
23343 else
23344 gl_cv_func_pthread_sigmask_unblock_works=no
23346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23347 conftest.$ac_objext conftest.beam conftest.$ac_ext
23350 LIBS="$gl_save_LIBS"
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
23354 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
23355 case "$gl_cv_func_pthread_sigmask_unblock_works" in
23356 *no)
23357 REPLACE_PTHREAD_SIGMASK=1
23359 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
23362 esac
23365 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
23374 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
23377 if test $HAVE_PTHREAD_SIGMASK = 1; then
23379 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
23389 GNULIB_PTHREAD_SIGMASK=1
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5
23398 $as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; }
23399 if test "${gl_cv_func_svid_putenv+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402 if test "$cross_compiling" = yes; then :
23403 case "$host_os" in
23404 # Guess yes on glibc systems.
23405 *-gnu*) gl_cv_func_svid_putenv="guessing yes" ;;
23406 # If we don't know, assume the worst.
23407 *) gl_cv_func_svid_putenv="guessing no" ;;
23408 esac
23410 else
23411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23412 /* end confdefs.h. */
23413 $ac_includes_default
23415 main ()
23418 /* Put it in env. */
23419 if (putenv ("CONFTEST_putenv=val"))
23420 return 1;
23422 /* Try to remove it. */
23423 if (putenv ("CONFTEST_putenv"))
23424 return 2;
23426 /* Make sure it was deleted. */
23427 if (getenv ("CONFTEST_putenv") != 0)
23428 return 3;
23430 return 0;
23433 return 0;
23435 _ACEOF
23436 if ac_fn_c_try_run "$LINENO"; then :
23437 gl_cv_func_svid_putenv=yes
23438 else
23439 gl_cv_func_svid_putenv=no
23441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23442 conftest.$ac_objext conftest.beam conftest.$ac_ext
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5
23448 $as_echo "$gl_cv_func_svid_putenv" >&6; }
23449 case "$gl_cv_func_svid_putenv" in
23450 *yes) ;;
23452 REPLACE_PUTENV=1
23454 esac
23456 if test $REPLACE_PUTENV = 1; then
23465 gl_LIBOBJS="$gl_LIBOBJS putenv.$ac_objext"
23468 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default"
23469 if test "x$ac_cv_have_decl__putenv" = x""yes; then :
23470 ac_have_decl=1
23471 else
23472 ac_have_decl=0
23475 cat >>confdefs.h <<_ACEOF
23476 #define HAVE_DECL__PUTENV $ac_have_decl
23477 _ACEOF
23486 GNULIB_PUTENV=1
23495 if test $ac_cv_func_readlink = no; then
23496 HAVE_READLINK=0
23497 else
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
23499 $as_echo_n "checking whether readlink signature is correct... " >&6; }
23500 if test "${gl_cv_decl_readlink_works+set}" = set; then :
23501 $as_echo_n "(cached) " >&6
23502 else
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h. */
23505 #include <unistd.h>
23506 /* Cause compilation failure if original declaration has wrong type. */
23507 ssize_t readlink (const char *, char *, size_t);
23509 main ()
23513 return 0;
23515 _ACEOF
23516 if ac_fn_c_try_compile "$LINENO"; then :
23517 gl_cv_decl_readlink_works=yes
23518 else
23519 gl_cv_decl_readlink_works=no
23521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
23524 $as_echo "$gl_cv_decl_readlink_works" >&6; }
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
23526 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
23527 if test "${gl_cv_func_readlink_works+set}" = set; then :
23528 $as_echo_n "(cached) " >&6
23529 else
23530 # We have readlink, so assume ln -s works.
23531 ln -s conftest.no-such conftest.link
23532 ln -s conftest.link conftest.lnk2
23533 if test "$cross_compiling" = yes; then :
23534 case "$host_os" in
23535 # Guess yes on glibc systems.
23536 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
23537 # If we don't know, assume the worst.
23538 *) gl_cv_func_readlink_works="guessing no" ;;
23539 esac
23541 else
23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543 /* end confdefs.h. */
23544 #include <unistd.h>
23547 main ()
23549 char buf[20];
23550 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
23552 return 0;
23554 _ACEOF
23555 if ac_fn_c_try_run "$LINENO"; then :
23556 gl_cv_func_readlink_works=yes
23557 else
23558 gl_cv_func_readlink_works=no
23560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23561 conftest.$ac_objext conftest.beam conftest.$ac_ext
23564 rm -f conftest.link conftest.lnk2
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
23567 $as_echo "$gl_cv_func_readlink_works" >&6; }
23568 case "$gl_cv_func_readlink_works" in
23569 *yes)
23570 if test "$gl_cv_decl_readlink_works" != yes; then
23571 REPLACE_READLINK=1
23576 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
23578 REPLACE_READLINK=1
23580 esac
23583 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
23592 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
23603 GNULIB_READLINK=1
23613 if test $ac_cv_func_readlinkat = no; then
23614 HAVE_READLINKAT=0
23617 if test $HAVE_READLINKAT = 0; then
23626 gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
23634 GNULIB_READLINKAT=1
23641 for ac_func in sig2str
23642 do :
23643 ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
23644 if test "x$ac_cv_func_sig2str" = x""yes; then :
23645 cat >>confdefs.h <<_ACEOF
23646 #define HAVE_SIG2STR 1
23647 _ACEOF
23650 done
23653 if test $ac_cv_func_sig2str = no; then
23662 gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext"
23679 if test $gl_cv_have_include_next = yes; then
23680 gl_cv_next_signal_h='<'signal.h'>'
23681 else
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
23683 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
23684 if test "${gl_cv_next_signal_h+set}" = set; then :
23685 $as_echo_n "(cached) " >&6
23686 else
23688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23689 /* end confdefs.h. */
23690 #include <signal.h>
23692 _ACEOF
23693 case "$host_os" in
23694 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23695 *) gl_absname_cpp="$ac_cpp" ;;
23696 esac
23698 case "$host_os" in
23699 mingw*)
23700 gl_dirsep_regex='[/\\]'
23703 gl_dirsep_regex='\/'
23705 esac
23706 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23708 gl_header_literal_regex=`echo 'signal.h' \
23709 | sed -e "$gl_make_literal_regex_sed"`
23710 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23711 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23712 s|^/[^/]|//&|
23716 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23717 sed -n "$gl_absolute_header_sed"`'"'
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
23722 $as_echo "$gl_cv_next_signal_h" >&6; }
23724 NEXT_SIGNAL_H=$gl_cv_next_signal_h
23726 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23728 gl_next_as_first_directive='<'signal.h'>'
23729 else
23730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23731 gl_next_as_first_directive=$gl_cv_next_signal_h
23733 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
23739 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
23740 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
23741 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
23742 #include <signal.h>
23745 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
23747 else
23748 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
23757 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
23758 #include <signal.h>
23761 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
23763 else
23764 HAVE_SIGHANDLER_T=0
23770 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23771 /* <sys/types.h> is not needed according to POSIX, but the
23772 <sys/socket.h> in i386-unknown-freebsd4.10 and
23773 powerpc-apple-darwin5.5 required it. */
23774 #include <sys/types.h>
23775 #if HAVE_SYS_SOCKET_H
23776 # include <sys/socket.h>
23777 #elif HAVE_WS2TCPIP_H
23778 # include <ws2tcpip.h>
23779 #endif
23782 if test "x$ac_cv_type_socklen_t" = x""yes; then :
23784 else
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23786 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23787 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
23788 $as_echo_n "(cached) " >&6
23789 else
23790 # Systems have either "struct sockaddr *" or
23791 # "void *" as the second argument to getpeername
23792 gl_cv_socklen_t_equiv=
23793 for arg2 in "struct sockaddr" void; do
23794 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23796 /* end confdefs.h. */
23797 #include <sys/types.h>
23798 #include <sys/socket.h>
23800 int getpeername (int, $arg2 *, $t *);
23802 main ()
23804 $t len;
23805 getpeername (0, 0, &len);
23807 return 0;
23809 _ACEOF
23810 if ac_fn_c_try_compile "$LINENO"; then :
23811 gl_cv_socklen_t_equiv="$t"
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814 test "$gl_cv_socklen_t_equiv" != "" && break
23815 done
23816 test "$gl_cv_socklen_t_equiv" != "" && break
23817 done
23821 if test "$gl_cv_socklen_t_equiv" = ""; then
23822 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23825 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23827 cat >>confdefs.h <<_ACEOF
23828 #define socklen_t $gl_cv_socklen_t_equiv
23829 _ACEOF
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23835 $as_echo_n "checking for ssize_t... " >&6; }
23836 if test "${gt_cv_ssize_t+set}" = set; then :
23837 $as_echo_n "(cached) " >&6
23838 else
23839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23840 /* end confdefs.h. */
23841 #include <sys/types.h>
23843 main ()
23845 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23846 return !x;
23848 return 0;
23850 _ACEOF
23851 if ac_fn_c_try_compile "$LINENO"; then :
23852 gt_cv_ssize_t=yes
23853 else
23854 gt_cv_ssize_t=no
23856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23859 $as_echo "$gt_cv_ssize_t" >&6; }
23860 if test $gt_cv_ssize_t = no; then
23862 $as_echo "#define ssize_t int" >>confdefs.h
23870 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>
23871 #include <sys/stat.h>
23873 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
23875 cat >>confdefs.h <<_ACEOF
23876 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
23877 _ACEOF
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
23880 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
23881 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
23882 $as_echo_n "(cached) " >&6
23883 else
23884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23885 /* end confdefs.h. */
23887 #include <sys/types.h>
23888 #include <sys/stat.h>
23889 #if HAVE_SYS_TIME_H
23890 # include <sys/time.h>
23891 #endif
23892 #include <time.h>
23893 struct timespec ts;
23894 struct stat st;
23897 main ()
23900 st.st_atim = ts;
23903 return 0;
23905 _ACEOF
23906 if ac_fn_c_try_compile "$LINENO"; then :
23907 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
23908 else
23909 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
23914 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
23915 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
23917 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
23920 else
23921 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>
23922 #include <sys/stat.h>
23924 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
23926 cat >>confdefs.h <<_ACEOF
23927 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
23928 _ACEOF
23931 else
23932 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
23933 #include <sys/stat.h>
23935 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
23937 cat >>confdefs.h <<_ACEOF
23938 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
23939 _ACEOF
23942 else
23943 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>
23944 #include <sys/stat.h>
23946 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
23948 cat >>confdefs.h <<_ACEOF
23949 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
23950 _ACEOF
23965 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>
23966 #include <sys/stat.h>
23968 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
23970 cat >>confdefs.h <<_ACEOF
23971 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
23972 _ACEOF
23975 else
23976 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
23977 #include <sys/stat.h>
23979 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
23981 cat >>confdefs.h <<_ACEOF
23982 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
23983 _ACEOF
23986 else
23987 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>
23988 #include <sys/stat.h>
23990 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
23992 cat >>confdefs.h <<_ACEOF
23993 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
23994 _ACEOF
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
24006 $as_echo_n "checking for working stdalign.h... " >&6; }
24007 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
24008 $as_echo_n "(cached) " >&6
24009 else
24010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h. */
24012 #include <stdalign.h>
24013 #include <stddef.h>
24015 /* Test that alignof yields a result consistent with offsetof.
24016 This catches GCC bug 52023
24017 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
24018 #ifdef __cplusplus
24019 template <class t> struct alignof_helper { char a; t b; };
24020 # define ao(type) offsetof (alignof_helper<type>, b)
24021 #else
24022 # define ao(type) offsetof (struct { char a; type b; }, b)
24023 #endif
24024 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
24025 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
24026 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
24028 /* Test _Alignas only on platforms where gnulib can help. */
24029 #if \
24030 (__GNUC__ || __IBMC__ || __IBMCPP__ \
24031 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
24032 struct alignas_test { char c; char alignas (8) alignas_8; };
24033 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
24034 ? 1 : -1];
24035 #endif
24038 main ()
24042 return 0;
24044 _ACEOF
24045 if ac_fn_c_try_compile "$LINENO"; then :
24046 gl_cv_header_working_stdalign_h=yes
24047 else
24048 gl_cv_header_working_stdalign_h=no
24050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
24053 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
24055 if test $gl_cv_header_working_stdalign_h = yes; then
24056 STDALIGN_H=''
24057 else
24058 STDALIGN_H='stdalign.h'
24062 if test -n "$STDALIGN_H"; then
24063 GL_GENERATE_STDALIGN_H_TRUE=
24064 GL_GENERATE_STDALIGN_H_FALSE='#'
24065 else
24066 GL_GENERATE_STDALIGN_H_TRUE='#'
24067 GL_GENERATE_STDALIGN_H_FALSE=
24072 STDARG_H=''
24073 NEXT_STDARG_H='<stdarg.h>'
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
24075 $as_echo_n "checking for va_copy... " >&6; }
24076 if test "${gl_cv_func_va_copy+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24078 else
24080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24081 /* end confdefs.h. */
24082 #include <stdarg.h>
24084 main ()
24087 #ifndef va_copy
24088 void (*func) (va_list, va_list) = va_copy;
24089 #endif
24092 return 0;
24094 _ACEOF
24095 if ac_fn_c_try_compile "$LINENO"; then :
24096 gl_cv_func_va_copy=yes
24097 else
24098 gl_cv_func_va_copy=no
24100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
24104 $as_echo "$gl_cv_func_va_copy" >&6; }
24105 if test $gl_cv_func_va_copy = no; then
24106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24107 /* end confdefs.h. */
24108 #if defined _AIX && !defined __GNUC__
24109 AIX vaccine
24110 #endif
24112 _ACEOF
24113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24114 $EGREP "vaccine" >/dev/null 2>&1; then :
24115 gl_aixcc=yes
24116 else
24117 gl_aixcc=no
24119 rm -f conftest*
24121 if test $gl_aixcc = yes; then
24122 STDARG_H=stdarg.h
24131 if test $gl_cv_have_include_next = yes; then
24132 gl_cv_next_stdarg_h='<'stdarg.h'>'
24133 else
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
24135 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
24136 if test "${gl_cv_next_stdarg_h+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24138 else
24140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h. */
24142 #include <stdarg.h>
24144 _ACEOF
24145 case "$host_os" in
24146 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24147 *) gl_absname_cpp="$ac_cpp" ;;
24148 esac
24150 case "$host_os" in
24151 mingw*)
24152 gl_dirsep_regex='[/\\]'
24155 gl_dirsep_regex='\/'
24157 esac
24158 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24160 gl_header_literal_regex=`echo 'stdarg.h' \
24161 | sed -e "$gl_make_literal_regex_sed"`
24162 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24163 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24164 s|^/[^/]|//&|
24168 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24169 sed -n "$gl_absolute_header_sed"`'"'
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
24174 $as_echo "$gl_cv_next_stdarg_h" >&6; }
24176 NEXT_STDARG_H=$gl_cv_next_stdarg_h
24178 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24179 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24180 gl_next_as_first_directive='<'stdarg.h'>'
24181 else
24182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24183 gl_next_as_first_directive=$gl_cv_next_stdarg_h
24185 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
24190 if test "$gl_cv_next_stdarg_h" = '""'; then
24191 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
24192 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
24194 else
24196 saved_as_echo_n="$as_echo_n"
24197 as_echo_n=':'
24198 if test "${gl_cv_func___va_copy+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24200 else
24202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24203 /* end confdefs.h. */
24204 #include <stdarg.h>
24206 main ()
24209 #ifndef __va_copy
24210 error, bail out
24211 #endif
24214 return 0;
24216 _ACEOF
24217 if ac_fn_c_try_compile "$LINENO"; then :
24218 gl_cv_func___va_copy=yes
24219 else
24220 gl_cv_func___va_copy=no
24222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24225 as_echo_n="$saved_as_echo_n"
24227 if test $gl_cv_func___va_copy = yes; then
24229 $as_echo "#define va_copy __va_copy" >>confdefs.h
24231 else
24234 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
24240 if test -n "$STDARG_H"; then
24241 GL_GENERATE_STDARG_H_TRUE=
24242 GL_GENERATE_STDARG_H_FALSE='#'
24243 else
24244 GL_GENERATE_STDARG_H_TRUE='#'
24245 GL_GENERATE_STDARG_H_FALSE=
24253 # Define two additional variables used in the Makefile substitution.
24255 if test "$ac_cv_header_stdbool_h" = yes; then
24256 STDBOOL_H=''
24257 else
24258 STDBOOL_H='stdbool.h'
24261 if test -n "$STDBOOL_H"; then
24262 GL_GENERATE_STDBOOL_H_TRUE=
24263 GL_GENERATE_STDBOOL_H_FALSE='#'
24264 else
24265 GL_GENERATE_STDBOOL_H_TRUE='#'
24266 GL_GENERATE_STDBOOL_H_FALSE=
24270 if test "$ac_cv_type__Bool" = yes; then
24271 HAVE__BOOL=1
24272 else
24273 HAVE__BOOL=0
24280 STDDEF_H=
24281 if test $gt_cv_c_wchar_t = no; then
24282 HAVE_WCHAR_T=0
24283 STDDEF_H=stddef.h
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
24286 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
24287 if test "${gl_cv_decl_null_works+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24291 /* end confdefs.h. */
24292 #include <stddef.h>
24293 int test[2 * (sizeof NULL == sizeof (void *)) -1];
24296 main ()
24300 return 0;
24302 _ACEOF
24303 if ac_fn_c_try_compile "$LINENO"; then :
24304 gl_cv_decl_null_works=yes
24305 else
24306 gl_cv_decl_null_works=no
24308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
24311 $as_echo "$gl_cv_decl_null_works" >&6; }
24312 if test $gl_cv_decl_null_works = no; then
24313 REPLACE_NULL=1
24314 STDDEF_H=stddef.h
24317 if test -n "$STDDEF_H"; then
24318 GL_GENERATE_STDDEF_H_TRUE=
24319 GL_GENERATE_STDDEF_H_FALSE='#'
24320 else
24321 GL_GENERATE_STDDEF_H_TRUE='#'
24322 GL_GENERATE_STDDEF_H_FALSE=
24325 if test -n "$STDDEF_H"; then
24334 if test $gl_cv_have_include_next = yes; then
24335 gl_cv_next_stddef_h='<'stddef.h'>'
24336 else
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
24338 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
24339 if test "${gl_cv_next_stddef_h+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24341 else
24343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24344 /* end confdefs.h. */
24345 #include <stddef.h>
24347 _ACEOF
24348 case "$host_os" in
24349 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24350 *) gl_absname_cpp="$ac_cpp" ;;
24351 esac
24353 case "$host_os" in
24354 mingw*)
24355 gl_dirsep_regex='[/\\]'
24358 gl_dirsep_regex='\/'
24360 esac
24361 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24363 gl_header_literal_regex=`echo 'stddef.h' \
24364 | sed -e "$gl_make_literal_regex_sed"`
24365 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24366 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24367 s|^/[^/]|//&|
24371 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24372 sed -n "$gl_absolute_header_sed"`'"'
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24377 $as_echo "$gl_cv_next_stddef_h" >&6; }
24379 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24381 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24383 gl_next_as_first_directive='<'stddef.h'>'
24384 else
24385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24386 gl_next_as_first_directive=$gl_cv_next_stddef_h
24388 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24406 if test $gl_cv_have_include_next = yes; then
24407 gl_cv_next_stdio_h='<'stdio.h'>'
24408 else
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24410 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24411 if test "${gl_cv_next_stdio_h+set}" = set; then :
24412 $as_echo_n "(cached) " >&6
24413 else
24415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24416 /* end confdefs.h. */
24417 #include <stdio.h>
24419 _ACEOF
24420 case "$host_os" in
24421 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24422 *) gl_absname_cpp="$ac_cpp" ;;
24423 esac
24425 case "$host_os" in
24426 mingw*)
24427 gl_dirsep_regex='[/\\]'
24430 gl_dirsep_regex='\/'
24432 esac
24433 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24435 gl_header_literal_regex=`echo 'stdio.h' \
24436 | sed -e "$gl_make_literal_regex_sed"`
24437 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24438 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24439 s|^/[^/]|//&|
24443 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24444 sed -n "$gl_absolute_header_sed"`'"'
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24449 $as_echo "$gl_cv_next_stdio_h" >&6; }
24451 NEXT_STDIO_H=$gl_cv_next_stdio_h
24453 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24454 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24455 gl_next_as_first_directive='<'stdio.h'>'
24456 else
24457 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24458 gl_next_as_first_directive=$gl_cv_next_stdio_h
24460 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24466 GNULIB_FSCANF=1
24469 cat >>confdefs.h <<_ACEOF
24470 #define GNULIB_FSCANF 1
24471 _ACEOF
24474 GNULIB_SCANF=1
24477 cat >>confdefs.h <<_ACEOF
24478 #define GNULIB_SCANF 1
24479 _ACEOF
24482 GNULIB_FGETC=1
24483 GNULIB_GETC=1
24484 GNULIB_GETCHAR=1
24485 GNULIB_FGETS=1
24486 GNULIB_FREAD=1
24489 GNULIB_FPRINTF=1
24490 GNULIB_PRINTF=1
24491 GNULIB_VFPRINTF=1
24492 GNULIB_VPRINTF=1
24493 GNULIB_FPUTC=1
24494 GNULIB_PUTC=1
24495 GNULIB_PUTCHAR=1
24496 GNULIB_FPUTS=1
24497 GNULIB_PUTS=1
24498 GNULIB_FWRITE=1
24514 if test $gl_cv_have_include_next = yes; then
24515 gl_cv_next_stdlib_h='<'stdlib.h'>'
24516 else
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24518 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24519 if test "${gl_cv_next_stdlib_h+set}" = set; then :
24520 $as_echo_n "(cached) " >&6
24521 else
24523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24524 /* end confdefs.h. */
24525 #include <stdlib.h>
24527 _ACEOF
24528 case "$host_os" in
24529 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24530 *) gl_absname_cpp="$ac_cpp" ;;
24531 esac
24533 case "$host_os" in
24534 mingw*)
24535 gl_dirsep_regex='[/\\]'
24538 gl_dirsep_regex='\/'
24540 esac
24541 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24543 gl_header_literal_regex=`echo 'stdlib.h' \
24544 | sed -e "$gl_make_literal_regex_sed"`
24545 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24546 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24547 s|^/[^/]|//&|
24551 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24552 sed -n "$gl_absolute_header_sed"`'"'
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24557 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24559 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24561 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24563 gl_next_as_first_directive='<'stdlib.h'>'
24564 else
24565 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24566 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24568 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24578 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
24586 $as_echo "#define my_strftime nstrftime" >>confdefs.h
24598 if test "$ac_cv_have_decl_strtoimax" != yes; then
24599 HAVE_DECL_STRTOIMAX=0
24602 if test $ac_cv_func_strtoimax = yes; then
24603 HAVE_STRTOIMAX=1
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
24605 $as_echo_n "checking whether strtoimax works... " >&6; }
24606 if test "${gl_cv_func_strtoimax+set}" = set; then :
24607 $as_echo_n "(cached) " >&6
24608 else
24609 if test "$cross_compiling" = yes; then :
24610 case "$host_os" in
24611 # Guess no on AIX 5.
24612 aix5*) gl_cv_func_strtoimax="guessing no" ;;
24613 # Guess yes otherwise.
24614 *) gl_cv_func_strtoimax="guessing yes" ;;
24615 esac
24617 else
24618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h. */
24621 #include <errno.h>
24622 #include <string.h>
24623 #include <inttypes.h>
24624 int main ()
24626 if (sizeof (intmax_t) > sizeof (int))
24628 const char *s = "4294967295";
24629 char *p;
24630 intmax_t res;
24631 errno = 0;
24632 res = strtoimax (s, &p, 10);
24633 if (p != s + strlen (s))
24634 return 1;
24635 if (errno != 0)
24636 return 2;
24637 if (res != (intmax_t) 65535 * (intmax_t) 65537)
24638 return 3;
24640 else
24642 const char *s = "2147483647";
24643 char *p;
24644 intmax_t res;
24645 errno = 0;
24646 res = strtoimax (s, &p, 10);
24647 if (p != s + strlen (s))
24648 return 1;
24649 if (errno != 0)
24650 return 2;
24651 if (res != 2147483647)
24652 return 3;
24654 return 0;
24657 _ACEOF
24658 if ac_fn_c_try_run "$LINENO"; then :
24659 gl_cv_func_strtoimax=yes
24660 else
24661 gl_cv_func_strtoimax=no
24663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24664 conftest.$ac_objext conftest.beam conftest.$ac_ext
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
24670 $as_echo "$gl_cv_func_strtoimax" >&6; }
24671 case "$gl_cv_func_strtoimax" in
24672 *no) REPLACE_STRTOIMAX=1 ;;
24673 esac
24674 else
24675 HAVE_STRTOIMAX=0
24678 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24687 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
24690 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
24691 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
24692 ac_have_decl=1
24693 else
24694 ac_have_decl=0
24697 cat >>confdefs.h <<_ACEOF
24698 #define HAVE_DECL_STRTOLL $ac_have_decl
24699 _ACEOF
24709 GNULIB_STRTOIMAX=1
24719 if test "$ac_cv_have_decl_strtoumax" != yes; then
24720 HAVE_DECL_STRTOUMAX=0
24723 if test $ac_cv_func_strtoumax = no; then
24732 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
24735 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
24736 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
24737 ac_have_decl=1
24738 else
24739 ac_have_decl=0
24742 cat >>confdefs.h <<_ACEOF
24743 #define HAVE_DECL_STRTOULL $ac_have_decl
24744 _ACEOF
24754 GNULIB_STRTOUMAX=1
24762 if test $ac_cv_func_symlink = no; then
24763 HAVE_SYMLINK=0
24764 else
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
24766 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
24767 if test "${gl_cv_func_symlink_works+set}" = set; then :
24768 $as_echo_n "(cached) " >&6
24769 else
24770 if test "$cross_compiling" = yes; then :
24771 case "$host_os" in
24772 # Guess yes on glibc systems.
24773 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
24774 # If we don't know, assume the worst.
24775 *) gl_cv_func_symlink_works="guessing no" ;;
24776 esac
24778 else
24779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24780 /* end confdefs.h. */
24781 #include <unistd.h>
24784 main ()
24786 int result = 0;
24787 if (!symlink ("a", "conftest.link/"))
24788 result |= 1;
24789 if (symlink ("conftest.f", "conftest.lnk2"))
24790 result |= 2;
24791 else if (!symlink ("a", "conftest.lnk2/"))
24792 result |= 4;
24793 return result;
24796 return 0;
24798 _ACEOF
24799 if ac_fn_c_try_run "$LINENO"; then :
24800 gl_cv_func_symlink_works=yes
24801 else
24802 gl_cv_func_symlink_works=no
24804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24805 conftest.$ac_objext conftest.beam conftest.$ac_ext
24808 rm -f conftest.f conftest.link conftest.lnk2
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
24811 $as_echo "$gl_cv_func_symlink_works" >&6; }
24812 case "$gl_cv_func_symlink_works" in
24813 *yes) ;;
24815 REPLACE_SYMLINK=1
24817 esac
24820 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
24829 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
24837 GNULIB_SYMLINK=1
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
24847 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
24848 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
24849 $as_echo_n "(cached) " >&6
24850 else
24852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h. */
24854 #include <sys/select.h>
24856 main ()
24858 struct timeval b;
24860 return 0;
24862 _ACEOF
24863 if ac_fn_c_try_compile "$LINENO"; then :
24864 gl_cv_header_sys_select_h_selfcontained=yes
24865 else
24866 gl_cv_header_sys_select_h_selfcontained=no
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
24870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24871 /* end confdefs.h. */
24872 #include <sys/select.h>
24874 main ()
24876 int memset; int bzero;
24878 return 0;
24881 _ACEOF
24882 if ac_fn_c_try_compile "$LINENO"; then :
24883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24884 /* end confdefs.h. */
24885 #include <sys/select.h>
24887 main ()
24890 #undef memset
24891 #define memset nonexistent_memset
24892 extern
24893 #ifdef __cplusplus
24895 #endif
24896 void *memset (void *, int, unsigned long);
24897 #undef bzero
24898 #define bzero nonexistent_bzero
24899 extern
24900 #ifdef __cplusplus
24902 #endif
24903 void bzero (void *, unsigned long);
24904 fd_set fds;
24905 FD_ZERO (&fds);
24908 return 0;
24911 _ACEOF
24912 if ac_fn_c_try_link "$LINENO"; then :
24914 else
24915 gl_cv_header_sys_select_h_selfcontained=no
24917 rm -f core conftest.err conftest.$ac_objext \
24918 conftest$ac_exeext conftest.$ac_ext
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
24926 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
24936 if test $gl_cv_have_include_next = yes; then
24937 gl_cv_next_sys_select_h='<'sys/select.h'>'
24938 else
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
24940 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
24941 if test "${gl_cv_next_sys_select_h+set}" = set; then :
24942 $as_echo_n "(cached) " >&6
24943 else
24945 if test $ac_cv_header_sys_select_h = yes; then
24948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24949 /* end confdefs.h. */
24950 #include <sys/select.h>
24952 _ACEOF
24953 case "$host_os" in
24954 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24955 *) gl_absname_cpp="$ac_cpp" ;;
24956 esac
24958 case "$host_os" in
24959 mingw*)
24960 gl_dirsep_regex='[/\\]'
24963 gl_dirsep_regex='\/'
24965 esac
24966 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24968 gl_header_literal_regex=`echo 'sys/select.h' \
24969 | sed -e "$gl_make_literal_regex_sed"`
24970 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24971 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24972 s|^/[^/]|//&|
24976 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24977 sed -n "$gl_absolute_header_sed"`'"'
24978 else
24979 gl_cv_next_sys_select_h='<'sys/select.h'>'
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
24985 $as_echo "$gl_cv_next_sys_select_h" >&6; }
24987 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
24989 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24991 gl_next_as_first_directive='<'sys/select.h'>'
24992 else
24993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24994 gl_next_as_first_directive=$gl_cv_next_sys_select_h
24996 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
25001 if test $ac_cv_header_sys_select_h = yes; then
25002 HAVE_SYS_SELECT_H=1
25003 else
25004 HAVE_SYS_SELECT_H=0
25011 if test $ac_cv_header_sys_socket_h != yes; then
25012 for ac_header in winsock2.h
25013 do :
25014 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25015 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
25016 cat >>confdefs.h <<_ACEOF
25017 #define HAVE_WINSOCK2_H 1
25018 _ACEOF
25022 done
25025 if test "$ac_cv_header_winsock2_h" = yes; then
25026 HAVE_WINSOCK2_H=1
25027 UNISTD_H_HAVE_WINSOCK2_H=1
25028 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25029 else
25030 HAVE_WINSOCK2_H=0
25052 if test $gl_cv_have_include_next = yes; then
25053 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25054 else
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
25056 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
25057 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
25058 $as_echo_n "(cached) " >&6
25059 else
25061 if test $ac_cv_header_sys_stat_h = yes; then
25064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065 /* end confdefs.h. */
25066 #include <sys/stat.h>
25068 _ACEOF
25069 case "$host_os" in
25070 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25071 *) gl_absname_cpp="$ac_cpp" ;;
25072 esac
25074 case "$host_os" in
25075 mingw*)
25076 gl_dirsep_regex='[/\\]'
25079 gl_dirsep_regex='\/'
25081 esac
25082 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25084 gl_header_literal_regex=`echo 'sys/stat.h' \
25085 | sed -e "$gl_make_literal_regex_sed"`
25086 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25087 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25088 s|^/[^/]|//&|
25092 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25093 sed -n "$gl_absolute_header_sed"`'"'
25094 else
25095 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
25101 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
25103 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
25105 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25106 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25107 gl_next_as_first_directive='<'sys/stat.h'>'
25108 else
25109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25110 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
25112 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
25124 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
25126 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
25130 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
25131 #include <sys/stat.h>
25133 if test "x$ac_cv_type_nlink_t" = x""yes; then :
25135 else
25137 $as_echo "#define nlink_t int" >>confdefs.h
25158 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
25160 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
25161 ac_have_decl=1
25162 else
25163 ac_have_decl=0
25166 cat >>confdefs.h <<_ACEOF
25167 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
25168 _ACEOF
25170 if test $ac_cv_have_decl_localtime_r = no; then
25171 HAVE_DECL_LOCALTIME_R=0
25175 if test $ac_cv_func_localtime_r = yes; then
25176 HAVE_LOCALTIME_R=1
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
25178 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
25179 if test "${gl_cv_time_r_posix+set}" = set; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25183 /* end confdefs.h. */
25184 #include <time.h>
25186 main ()
25188 /* We don't need to append 'restrict's to the argument types,
25189 even though the POSIX signature has the 'restrict's,
25190 since C99 says they can't affect type compatibility. */
25191 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
25192 if (ptr) return 0;
25193 /* Check the return type is a pointer.
25194 On HP-UX 10 it is 'int'. */
25195 *localtime_r (0, 0);
25197 return 0;
25200 _ACEOF
25201 if ac_fn_c_try_compile "$LINENO"; then :
25202 gl_cv_time_r_posix=yes
25203 else
25204 gl_cv_time_r_posix=no
25206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25210 $as_echo "$gl_cv_time_r_posix" >&6; }
25211 if test $gl_cv_time_r_posix = yes; then
25212 REPLACE_LOCALTIME_R=0
25213 else
25214 REPLACE_LOCALTIME_R=1
25216 else
25217 HAVE_LOCALTIME_R=0
25220 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
25229 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
25240 GNULIB_TIME_R=1
25251 LIB_TIMER_TIME=
25253 gl_saved_libs=$LIBS
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
25255 $as_echo_n "checking for library containing timer_settime... " >&6; }
25256 if test "${ac_cv_search_timer_settime+set}" = set; then :
25257 $as_echo_n "(cached) " >&6
25258 else
25259 ac_func_search_save_LIBS=$LIBS
25260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25261 /* end confdefs.h. */
25263 /* Override any GCC internal prototype to avoid an error.
25264 Use char because int might match the return type of a GCC
25265 builtin and then its argument prototype would still apply. */
25266 #ifdef __cplusplus
25267 extern "C"
25268 #endif
25269 char timer_settime ();
25271 main ()
25273 return timer_settime ();
25275 return 0;
25277 _ACEOF
25278 for ac_lib in '' rt posix4; do
25279 if test -z "$ac_lib"; then
25280 ac_res="none required"
25281 else
25282 ac_res=-l$ac_lib
25283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25285 if ac_fn_c_try_link "$LINENO"; then :
25286 ac_cv_search_timer_settime=$ac_res
25288 rm -f core conftest.err conftest.$ac_objext \
25289 conftest$ac_exeext
25290 if test "${ac_cv_search_timer_settime+set}" = set; then :
25291 break
25293 done
25294 if test "${ac_cv_search_timer_settime+set}" = set; then :
25296 else
25297 ac_cv_search_timer_settime=no
25299 rm conftest.$ac_ext
25300 LIBS=$ac_func_search_save_LIBS
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
25303 $as_echo "$ac_cv_search_timer_settime" >&6; }
25304 ac_res=$ac_cv_search_timer_settime
25305 if test "$ac_res" != no; then :
25306 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25307 test "$ac_cv_search_timer_settime" = "none required" ||
25308 LIB_TIMER_TIME=$ac_cv_search_timer_settime
25311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h. */
25314 #include <features.h>
25315 #ifdef __GNU_LIBRARY__
25316 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
25317 && !defined __UCLIBC__
25318 Thread emulation available
25319 #endif
25320 #endif
25322 _ACEOF
25323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25324 $EGREP "Thread" >/dev/null 2>&1; then :
25325 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
25327 rm -f conftest*
25329 for ac_func in timer_settime
25330 do :
25331 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
25332 if test "x$ac_cv_func_timer_settime" = x""yes; then :
25333 cat >>confdefs.h <<_ACEOF
25334 #define HAVE_TIMER_SETTIME 1
25335 _ACEOF
25338 done
25340 LIBS=$gl_saved_libs
25355 if test $gl_cv_have_include_next = yes; then
25356 gl_cv_next_unistd_h='<'unistd.h'>'
25357 else
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25359 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25360 if test "${gl_cv_next_unistd_h+set}" = set; then :
25361 $as_echo_n "(cached) " >&6
25362 else
25364 if test $ac_cv_header_unistd_h = yes; then
25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h. */
25369 #include <unistd.h>
25371 _ACEOF
25372 case "$host_os" in
25373 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25374 *) gl_absname_cpp="$ac_cpp" ;;
25375 esac
25377 case "$host_os" in
25378 mingw*)
25379 gl_dirsep_regex='[/\\]'
25382 gl_dirsep_regex='\/'
25384 esac
25385 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25387 gl_header_literal_regex=`echo 'unistd.h' \
25388 | sed -e "$gl_make_literal_regex_sed"`
25389 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25390 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25391 s|^/[^/]|//&|
25395 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25396 sed -n "$gl_absolute_header_sed"`'"'
25397 else
25398 gl_cv_next_unistd_h='<'unistd.h'>'
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25404 $as_echo "$gl_cv_next_unistd_h" >&6; }
25406 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25408 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25409 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25410 gl_next_as_first_directive='<'unistd.h'>'
25411 else
25412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25413 gl_next_as_first_directive=$gl_cv_next_unistd_h
25415 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25420 if test $ac_cv_header_unistd_h = yes; then
25421 HAVE_UNISTD_H=1
25422 else
25423 HAVE_UNISTD_H=0
25436 if test $ac_cv_have_decl_unsetenv = no; then
25437 HAVE_DECL_UNSETENV=0
25439 for ac_func in unsetenv
25440 do :
25441 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
25442 if test "x$ac_cv_func_unsetenv" = x""yes; then :
25443 cat >>confdefs.h <<_ACEOF
25444 #define HAVE_UNSETENV 1
25445 _ACEOF
25448 done
25450 if test $ac_cv_func_unsetenv = no; then
25451 HAVE_UNSETENV=0
25452 else
25453 HAVE_UNSETENV=1
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
25455 $as_echo_n "checking for unsetenv() return type... " >&6; }
25456 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
25457 $as_echo_n "(cached) " >&6
25458 else
25459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25460 /* end confdefs.h. */
25462 #undef _BSD
25463 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
25464 #include <stdlib.h>
25465 extern
25466 #ifdef __cplusplus
25468 #endif
25469 int unsetenv (const char *name);
25472 main ()
25476 return 0;
25478 _ACEOF
25479 if ac_fn_c_try_compile "$LINENO"; then :
25480 gt_cv_func_unsetenv_ret='int'
25481 else
25482 gt_cv_func_unsetenv_ret='void'
25484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
25487 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
25488 if test $gt_cv_func_unsetenv_ret = 'void'; then
25490 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
25492 REPLACE_UNSETENV=1
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
25496 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
25497 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
25498 $as_echo_n "(cached) " >&6
25499 else
25500 if test "$cross_compiling" = yes; then :
25501 case "$host_os" in
25502 # Guess yes on glibc systems.
25503 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
25504 # If we don't know, assume the worst.
25505 *) gl_cv_func_unsetenv_works="guessing no" ;;
25506 esac
25508 else
25509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h. */
25512 #include <stdlib.h>
25513 #include <errno.h>
25514 extern char **environ;
25517 main ()
25520 char entry1[] = "a=1";
25521 char entry2[] = "b=2";
25522 char *env[] = { entry1, entry2, NULL };
25523 if (putenv ((char *) "a=1")) return 1;
25524 if (putenv (entry2)) return 2;
25525 entry2[0] = 'a';
25526 unsetenv ("a");
25527 if (getenv ("a")) return 3;
25528 if (!unsetenv ("") || errno != EINVAL) return 4;
25529 entry2[0] = 'b';
25530 environ = env;
25531 if (!getenv ("a")) return 5;
25532 entry2[0] = 'a';
25533 unsetenv ("a");
25534 if (getenv ("a")) return 6;
25537 return 0;
25539 _ACEOF
25540 if ac_fn_c_try_run "$LINENO"; then :
25541 gl_cv_func_unsetenv_works=yes
25542 else
25543 gl_cv_func_unsetenv_works=no
25545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25546 conftest.$ac_objext conftest.beam conftest.$ac_ext
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
25551 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
25552 case "$gl_cv_func_unsetenv_works" in
25553 *yes) ;;
25555 REPLACE_UNSETENV=1
25557 esac
25560 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
25569 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
25581 GNULIB_UNSETENV=1
25593 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
25595 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
25596 if test "${gl_cv_func_futimesat_works+set}" = set; then :
25597 $as_echo_n "(cached) " >&6
25598 else
25599 touch conftest.file
25600 if test "$cross_compiling" = yes; then :
25601 case "$host_os" in
25602 # Guess yes on glibc systems.
25603 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
25604 # If we don't know, assume the worst.
25605 *) gl_cv_func_futimesat_works="guessing no" ;;
25606 esac
25608 else
25609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610 /* end confdefs.h. */
25612 #include <stddef.h>
25613 #include <sys/times.h>
25614 #include <fcntl.h>
25617 main ()
25619 int fd = open ("conftest.file", O_RDWR);
25620 if (fd < 0) return 1;
25621 if (futimesat (fd, NULL, NULL)) return 2;
25624 return 0;
25626 _ACEOF
25627 if ac_fn_c_try_run "$LINENO"; then :
25628 gl_cv_func_futimesat_works=yes
25629 else
25630 gl_cv_func_futimesat_works=no
25632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25633 conftest.$ac_objext conftest.beam conftest.$ac_ext
25636 rm -f conftest.file
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
25639 $as_echo "$gl_cv_func_futimesat_works" >&6; }
25640 case "$gl_cv_func_futimesat_works" in
25641 *yes) ;;
25644 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
25647 esac
25650 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
25651 gl_gnulib_enabled_dosname=false
25652 gl_gnulib_enabled_euidaccess=false
25653 gl_gnulib_enabled_getgroups=false
25654 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
25655 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
25656 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
25657 gl_gnulib_enabled_pathmax=false
25658 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
25659 gl_gnulib_enabled_stat=false
25660 gl_gnulib_enabled_strtoll=false
25661 gl_gnulib_enabled_strtoull=false
25662 gl_gnulib_enabled_verify=false
25663 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
25664 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
25666 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
25675 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25677 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
25680 func_gl_gnulib_m4code_dosname ()
25682 if ! $gl_gnulib_enabled_dosname; then
25683 gl_gnulib_enabled_dosname=true
25686 func_gl_gnulib_m4code_euidaccess ()
25688 if ! $gl_gnulib_enabled_euidaccess; then
25694 for ac_func in euidaccess
25695 do :
25696 ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
25697 if test "x$ac_cv_func_euidaccess" = x""yes; then :
25698 cat >>confdefs.h <<_ACEOF
25699 #define HAVE_EUIDACCESS 1
25700 _ACEOF
25703 done
25705 if test $ac_cv_func_euidaccess = no; then
25706 HAVE_EUIDACCESS=0
25709 if test $HAVE_EUIDACCESS = 0; then
25718 gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext"
25722 for ac_header in libgen.h
25723 do :
25724 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
25725 if test "x$ac_cv_header_libgen_h" = x""yes; then :
25726 cat >>confdefs.h <<_ACEOF
25727 #define HAVE_LIBGEN_H 1
25728 _ACEOF
25732 done
25735 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25736 if test "x$ac_cv_func_getgroups" = x""yes; then :
25741 # If we don't yet have getgroups, see if it's in -lbsd.
25742 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25743 ac_save_LIBS=$LIBS
25744 if test $ac_cv_func_getgroups = no; then
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25746 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25747 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25748 $as_echo_n "(cached) " >&6
25749 else
25750 ac_check_lib_save_LIBS=$LIBS
25751 LIBS="-lbsd $LIBS"
25752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25753 /* end confdefs.h. */
25755 /* Override any GCC internal prototype to avoid an error.
25756 Use char because int might match the return type of a GCC
25757 builtin and then its argument prototype would still apply. */
25758 #ifdef __cplusplus
25759 extern "C"
25760 #endif
25761 char getgroups ();
25763 main ()
25765 return getgroups ();
25767 return 0;
25769 _ACEOF
25770 if ac_fn_c_try_link "$LINENO"; then :
25771 ac_cv_lib_bsd_getgroups=yes
25772 else
25773 ac_cv_lib_bsd_getgroups=no
25775 rm -f core conftest.err conftest.$ac_objext \
25776 conftest$ac_exeext conftest.$ac_ext
25777 LIBS=$ac_check_lib_save_LIBS
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25780 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25781 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25782 GETGROUPS_LIB=-lbsd
25787 # Run the program to test the functionality of the system-supplied
25788 # getgroups function only if there is such a function.
25789 if test $ac_cv_func_getgroups = yes; then
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
25791 $as_echo_n "checking for working getgroups... " >&6; }
25792 if test "${ac_cv_func_getgroups_works+set}" = set; then :
25793 $as_echo_n "(cached) " >&6
25794 else
25795 if test "$cross_compiling" = yes; then :
25796 case "$host_os" in # ((
25797 # Guess yes on glibc systems.
25798 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
25799 # If we don't know, assume the worst.
25800 *) ac_cv_func_getgroups_works="guessing no" ;;
25801 esac
25803 else
25804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25805 /* end confdefs.h. */
25806 $ac_includes_default
25808 main ()
25810 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
25811 return getgroups (0, 0) == -1;
25813 return 0;
25816 _ACEOF
25817 if ac_fn_c_try_run "$LINENO"; then :
25818 ac_cv_func_getgroups_works=yes
25819 else
25820 ac_cv_func_getgroups_works=no
25822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25823 conftest.$ac_objext conftest.beam conftest.$ac_ext
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
25829 $as_echo "$ac_cv_func_getgroups_works" >&6; }
25830 else
25831 ac_cv_func_getgroups_works=no
25833 case "$ac_cv_func_getgroups_works" in
25834 *yes)
25836 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
25839 esac
25840 LIBS=$ac_save_LIBS
25843 # Solaris 9 and 10 need -lgen to get the eaccess function.
25844 # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all*
25845 # programs in the package would end up linked with that potentially-shared
25846 # library, inducing unnecessary run-time overhead.
25847 LIB_EACCESS=
25849 gl_saved_libs=$LIBS
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5
25851 $as_echo_n "checking for library containing eaccess... " >&6; }
25852 if test "${ac_cv_search_eaccess+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25854 else
25855 ac_func_search_save_LIBS=$LIBS
25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h. */
25859 /* Override any GCC internal prototype to avoid an error.
25860 Use char because int might match the return type of a GCC
25861 builtin and then its argument prototype would still apply. */
25862 #ifdef __cplusplus
25863 extern "C"
25864 #endif
25865 char eaccess ();
25867 main ()
25869 return eaccess ();
25871 return 0;
25873 _ACEOF
25874 for ac_lib in '' gen; do
25875 if test -z "$ac_lib"; then
25876 ac_res="none required"
25877 else
25878 ac_res=-l$ac_lib
25879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25881 if ac_fn_c_try_link "$LINENO"; then :
25882 ac_cv_search_eaccess=$ac_res
25884 rm -f core conftest.err conftest.$ac_objext \
25885 conftest$ac_exeext
25886 if test "${ac_cv_search_eaccess+set}" = set; then :
25887 break
25889 done
25890 if test "${ac_cv_search_eaccess+set}" = set; then :
25892 else
25893 ac_cv_search_eaccess=no
25895 rm conftest.$ac_ext
25896 LIBS=$ac_func_search_save_LIBS
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5
25899 $as_echo "$ac_cv_search_eaccess" >&6; }
25900 ac_res=$ac_cv_search_eaccess
25901 if test "$ac_res" != no; then :
25902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25903 test "$ac_cv_search_eaccess" = "none required" ||
25904 LIB_EACCESS=$ac_cv_search_eaccess
25907 for ac_func in eaccess
25908 do :
25909 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
25910 if test "x$ac_cv_func_eaccess" = x""yes; then :
25911 cat >>confdefs.h <<_ACEOF
25912 #define HAVE_EACCESS 1
25913 _ACEOF
25916 done
25918 LIBS=$gl_saved_libs
25926 GNULIB_EUIDACCESS=1
25932 gl_gnulib_enabled_euidaccess=true
25933 if test $HAVE_EUIDACCESS = 0; then
25934 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
25936 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
25937 if test $HAVE_EUIDACCESS = 0; then
25938 func_gl_gnulib_m4code_stat
25942 func_gl_gnulib_m4code_getgroups ()
25944 if ! $gl_gnulib_enabled_getgroups; then
25950 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
25951 if test "x$ac_cv_func_getgroups" = x""yes; then :
25956 # If we don't yet have getgroups, see if it's in -lbsd.
25957 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
25958 ac_save_LIBS=$LIBS
25959 if test $ac_cv_func_getgroups = no; then
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
25961 $as_echo_n "checking for getgroups in -lbsd... " >&6; }
25962 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then :
25963 $as_echo_n "(cached) " >&6
25964 else
25965 ac_check_lib_save_LIBS=$LIBS
25966 LIBS="-lbsd $LIBS"
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h. */
25970 /* Override any GCC internal prototype to avoid an error.
25971 Use char because int might match the return type of a GCC
25972 builtin and then its argument prototype would still apply. */
25973 #ifdef __cplusplus
25974 extern "C"
25975 #endif
25976 char getgroups ();
25978 main ()
25980 return getgroups ();
25982 return 0;
25984 _ACEOF
25985 if ac_fn_c_try_link "$LINENO"; then :
25986 ac_cv_lib_bsd_getgroups=yes
25987 else
25988 ac_cv_lib_bsd_getgroups=no
25990 rm -f core conftest.err conftest.$ac_objext \
25991 conftest$ac_exeext conftest.$ac_ext
25992 LIBS=$ac_check_lib_save_LIBS
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
25995 $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
25996 if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then :
25997 GETGROUPS_LIB=-lbsd
26002 # Run the program to test the functionality of the system-supplied
26003 # getgroups function only if there is such a function.
26004 if test $ac_cv_func_getgroups = yes; then
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
26006 $as_echo_n "checking for working getgroups... " >&6; }
26007 if test "${ac_cv_func_getgroups_works+set}" = set; then :
26008 $as_echo_n "(cached) " >&6
26009 else
26010 if test "$cross_compiling" = yes; then :
26011 case "$host_os" in # ((
26012 # Guess yes on glibc systems.
26013 *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
26014 # If we don't know, assume the worst.
26015 *) ac_cv_func_getgroups_works="guessing no" ;;
26016 esac
26018 else
26019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26020 /* end confdefs.h. */
26021 $ac_includes_default
26023 main ()
26025 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
26026 return getgroups (0, 0) == -1;
26028 return 0;
26031 _ACEOF
26032 if ac_fn_c_try_run "$LINENO"; then :
26033 ac_cv_func_getgroups_works=yes
26034 else
26035 ac_cv_func_getgroups_works=no
26037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26038 conftest.$ac_objext conftest.beam conftest.$ac_ext
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
26044 $as_echo "$ac_cv_func_getgroups_works" >&6; }
26045 else
26046 ac_cv_func_getgroups_works=no
26048 case "$ac_cv_func_getgroups_works" in
26049 *yes)
26051 $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
26054 esac
26055 LIBS=$ac_save_LIBS
26057 if test $ac_cv_func_getgroups != yes; then
26058 HAVE_GETGROUPS=0
26059 else
26060 if test "$ac_cv_type_getgroups" != gid_t \
26061 || { case "$ac_cv_func_getgroups_works" in
26062 *yes) false;;
26063 *) true;;
26064 esac
26065 }; then
26066 REPLACE_GETGROUPS=1
26068 $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h
26070 else
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5
26072 $as_echo_n "checking whether getgroups handles negative values... " >&6; }
26073 if test "${gl_cv_func_getgroups_works+set}" = set; then :
26074 $as_echo_n "(cached) " >&6
26075 else
26076 if test "$cross_compiling" = yes; then :
26077 case "$host_os" in
26078 # Guess yes on glibc systems.
26079 *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
26080 # If we don't know, assume the worst.
26081 *) gl_cv_func_getgroups_works="guessing no" ;;
26082 esac
26084 else
26085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26086 /* end confdefs.h. */
26087 $ac_includes_default
26089 main ()
26091 int size = getgroups (0, 0);
26092 gid_t *list = malloc (size * sizeof *list);
26093 return getgroups (-1, list) != -1;
26095 return 0;
26097 _ACEOF
26098 if ac_fn_c_try_run "$LINENO"; then :
26099 gl_cv_func_getgroups_works=yes
26100 else
26101 gl_cv_func_getgroups_works=no
26103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26104 conftest.$ac_objext conftest.beam conftest.$ac_ext
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5
26109 $as_echo "$gl_cv_func_getgroups_works" >&6; }
26110 case "$gl_cv_func_getgroups_works" in
26111 *yes) ;;
26112 *) REPLACE_GETGROUPS=1 ;;
26113 esac
26116 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
26118 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
26127 gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext"
26135 GNULIB_GETGROUPS=1
26141 gl_gnulib_enabled_getgroups=true
26144 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
26146 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26149 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
26152 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
26154 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26160 ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member"
26161 if test "x$ac_cv_func_group_member" = x""yes; then :
26163 else
26165 HAVE_GROUP_MEMBER=0
26170 if test $HAVE_GROUP_MEMBER = 0; then
26179 gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext"
26190 GNULIB_GROUP_MEMBER=1
26196 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
26197 if test $HAVE_GROUP_MEMBER = 0; then
26198 func_gl_gnulib_m4code_getgroups
26200 if test $HAVE_GROUP_MEMBER = 0; then
26201 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
26205 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
26207 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26208 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
26211 func_gl_gnulib_m4code_pathmax ()
26213 if ! $gl_gnulib_enabled_pathmax; then
26217 gl_gnulib_enabled_pathmax=true
26220 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
26222 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26223 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
26226 func_gl_gnulib_m4code_stat ()
26228 if ! $gl_gnulib_enabled_stat; then
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
26233 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
26234 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
26235 $as_echo_n "(cached) " >&6
26236 else
26237 if test "$cross_compiling" = yes; then :
26238 case $host_os in
26239 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
26240 *) gl_cv_func_stat_dir_slash="guessing yes";;
26241 esac
26242 else
26243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244 /* end confdefs.h. */
26245 #include <sys/stat.h>
26248 main ()
26250 struct stat st; return stat (".", &st) != stat ("./", &st);
26252 return 0;
26254 _ACEOF
26255 if ac_fn_c_try_run "$LINENO"; then :
26256 gl_cv_func_stat_dir_slash=yes
26257 else
26258 gl_cv_func_stat_dir_slash=no
26260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26261 conftest.$ac_objext conftest.beam conftest.$ac_ext
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
26266 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
26268 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
26269 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
26270 $as_echo_n "(cached) " >&6
26271 else
26272 touch conftest.tmp
26273 # Assume that if we have lstat, we can also check symlinks.
26274 if test $ac_cv_func_lstat = yes; then
26275 ln -s conftest.tmp conftest.lnk
26277 if test "$cross_compiling" = yes; then :
26278 case "$host_os" in
26279 # Guess yes on glibc systems.
26280 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
26281 # If we don't know, assume the worst.
26282 *) gl_cv_func_stat_file_slash="guessing no" ;;
26283 esac
26285 else
26286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26287 /* end confdefs.h. */
26288 #include <sys/stat.h>
26291 main ()
26293 int result = 0;
26294 struct stat st;
26295 if (!stat ("conftest.tmp/", &st))
26296 result |= 1;
26297 #if HAVE_LSTAT
26298 if (!stat ("conftest.lnk/", &st))
26299 result |= 2;
26300 #endif
26301 return result;
26304 return 0;
26306 _ACEOF
26307 if ac_fn_c_try_run "$LINENO"; then :
26308 gl_cv_func_stat_file_slash=yes
26309 else
26310 gl_cv_func_stat_file_slash=no
26312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26313 conftest.$ac_objext conftest.beam conftest.$ac_ext
26316 rm -f conftest.tmp conftest.lnk
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
26319 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
26320 case $gl_cv_func_stat_dir_slash in
26321 *no) REPLACE_STAT=1
26323 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
26325 esac
26326 case $gl_cv_func_stat_file_slash in
26327 *no) REPLACE_STAT=1
26329 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
26331 esac
26333 if test $REPLACE_STAT = 1; then
26342 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
26351 GNULIB_STAT=1
26357 gl_gnulib_enabled_stat=true
26358 if test $REPLACE_STAT = 1; then
26359 func_gl_gnulib_m4code_dosname
26361 if test $REPLACE_STAT = 1; then
26362 func_gl_gnulib_m4code_pathmax
26364 if test $REPLACE_STAT = 1; then
26365 func_gl_gnulib_m4code_verify
26369 func_gl_gnulib_m4code_strtoll ()
26371 if ! $gl_gnulib_enabled_strtoll; then
26375 if test "$ac_cv_type_long_long_int" = yes; then
26376 for ac_func in strtoll
26377 do :
26378 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
26379 if test "x$ac_cv_func_strtoll" = x""yes; then :
26380 cat >>confdefs.h <<_ACEOF
26381 #define HAVE_STRTOLL 1
26382 _ACEOF
26385 done
26387 if test $ac_cv_func_strtoll = no; then
26388 HAVE_STRTOLL=0
26392 if test $HAVE_STRTOLL = 0; then
26401 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
26412 GNULIB_STRTOLL=1
26418 gl_gnulib_enabled_strtoll=true
26421 func_gl_gnulib_m4code_strtoull ()
26423 if ! $gl_gnulib_enabled_strtoull; then
26427 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
26428 for ac_func in strtoull
26429 do :
26430 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
26431 if test "x$ac_cv_func_strtoull" = x""yes; then :
26432 cat >>confdefs.h <<_ACEOF
26433 #define HAVE_STRTOULL 1
26434 _ACEOF
26437 done
26439 if test $ac_cv_func_strtoull = no; then
26440 HAVE_STRTOULL=0
26444 if test $HAVE_STRTOULL = 0; then
26453 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
26464 GNULIB_STRTOULL=1
26470 gl_gnulib_enabled_strtoull=true
26473 func_gl_gnulib_m4code_verify ()
26475 if ! $gl_gnulib_enabled_verify; then
26476 gl_gnulib_enabled_verify=true
26479 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
26481 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26482 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
26485 if test $HAVE_FACCESSAT = 0; then
26486 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26488 if test $HAVE_FACCESSAT = 0; then
26489 func_gl_gnulib_m4code_dosname
26491 if test $HAVE_FACCESSAT = 0; then
26492 func_gl_gnulib_m4code_euidaccess
26494 if test $HAVE_FACCESSAT = 0; then
26495 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26497 if test $HAVE_FDOPENDIR = 0; then
26498 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26500 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26501 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26503 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26504 func_gl_gnulib_m4code_dosname
26506 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
26507 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26509 if test $REPLACE_GETOPT = 1; then
26510 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
26512 if test $REPLACE_LSTAT = 1; then
26513 func_gl_gnulib_m4code_dosname
26515 if test $REPLACE_LSTAT = 1; then
26516 func_gl_gnulib_m4code_stat
26518 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
26519 func_gl_gnulib_m4code_stat
26521 if test $HAVE_READLINKAT = 0; then
26522 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
26524 if test $HAVE_READLINKAT = 0; then
26525 func_gl_gnulib_m4code_dosname
26527 if test $HAVE_READLINKAT = 0; then
26528 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
26530 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
26531 func_gl_gnulib_m4code_strtoll
26533 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
26534 func_gl_gnulib_m4code_verify
26536 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
26537 func_gl_gnulib_m4code_strtoull
26539 if test $ac_cv_func_strtoumax = no; then
26540 func_gl_gnulib_m4code_verify
26543 if $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
26544 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE=
26545 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE='#'
26546 else
26547 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE='#'
26548 gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE=
26551 if $gl_gnulib_enabled_dosname; then
26552 gl_GNULIB_ENABLED_dosname_TRUE=
26553 gl_GNULIB_ENABLED_dosname_FALSE='#'
26554 else
26555 gl_GNULIB_ENABLED_dosname_TRUE='#'
26556 gl_GNULIB_ENABLED_dosname_FALSE=
26559 if $gl_gnulib_enabled_euidaccess; then
26560 gl_GNULIB_ENABLED_euidaccess_TRUE=
26561 gl_GNULIB_ENABLED_euidaccess_FALSE='#'
26562 else
26563 gl_GNULIB_ENABLED_euidaccess_TRUE='#'
26564 gl_GNULIB_ENABLED_euidaccess_FALSE=
26567 if $gl_gnulib_enabled_getgroups; then
26568 gl_GNULIB_ENABLED_getgroups_TRUE=
26569 gl_GNULIB_ENABLED_getgroups_FALSE='#'
26570 else
26571 gl_GNULIB_ENABLED_getgroups_TRUE='#'
26572 gl_GNULIB_ENABLED_getgroups_FALSE=
26575 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
26576 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
26577 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
26578 else
26579 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
26580 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
26583 if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
26584 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE=
26585 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#'
26586 else
26587 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#'
26588 gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE=
26591 if $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
26592 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE=
26593 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE='#'
26594 else
26595 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE='#'
26596 gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE=
26599 if $gl_gnulib_enabled_pathmax; then
26600 gl_GNULIB_ENABLED_pathmax_TRUE=
26601 gl_GNULIB_ENABLED_pathmax_FALSE='#'
26602 else
26603 gl_GNULIB_ENABLED_pathmax_TRUE='#'
26604 gl_GNULIB_ENABLED_pathmax_FALSE=
26607 if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
26608 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE=
26609 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#'
26610 else
26611 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#'
26612 gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE=
26615 if $gl_gnulib_enabled_stat; then
26616 gl_GNULIB_ENABLED_stat_TRUE=
26617 gl_GNULIB_ENABLED_stat_FALSE='#'
26618 else
26619 gl_GNULIB_ENABLED_stat_TRUE='#'
26620 gl_GNULIB_ENABLED_stat_FALSE=
26623 if $gl_gnulib_enabled_strtoll; then
26624 gl_GNULIB_ENABLED_strtoll_TRUE=
26625 gl_GNULIB_ENABLED_strtoll_FALSE='#'
26626 else
26627 gl_GNULIB_ENABLED_strtoll_TRUE='#'
26628 gl_GNULIB_ENABLED_strtoll_FALSE=
26631 if $gl_gnulib_enabled_strtoull; then
26632 gl_GNULIB_ENABLED_strtoull_TRUE=
26633 gl_GNULIB_ENABLED_strtoull_FALSE='#'
26634 else
26635 gl_GNULIB_ENABLED_strtoull_TRUE='#'
26636 gl_GNULIB_ENABLED_strtoull_FALSE=
26639 if $gl_gnulib_enabled_verify; then
26640 gl_GNULIB_ENABLED_verify_TRUE=
26641 gl_GNULIB_ENABLED_verify_FALSE='#'
26642 else
26643 gl_GNULIB_ENABLED_verify_TRUE='#'
26644 gl_GNULIB_ENABLED_verify_FALSE=
26647 if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
26648 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE=
26649 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#'
26650 else
26651 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#'
26652 gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE=
26655 # End of code from modules
26665 gltests_libdeps=
26666 gltests_ltlibdeps=
26676 gl_source_base='tests'
26677 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
26679 gl_module_indicator_condition=$gltests_WITNESS
26690 LIBGNU_LIBDEPS="$gl_libdeps"
26692 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
26695 CFLAGS=$SAVE_CFLAGS
26696 LIBS=$SAVE_LIBS
26698 case "$opsys" in
26699 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26701 darwin)
26702 ## The -headerpad option tells ld (see man page) to leave room at the
26703 ## end of the header for adding load commands. Needed for dumping.
26704 ## 0x690 is the total size of 30 segment load commands (at 56
26705 ## each); under Cocoa 31 commands are required.
26706 if test "$HAVE_NS" = "yes"; then
26707 libs_nsgui="-framework AppKit"
26708 headerpad_extra=6C8
26709 else
26710 libs_nsgui=
26711 headerpad_extra=690
26713 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26715 ## This is here because src/Makefile.in did some extra fiddling around
26716 ## with LD_SWITCH_SYSTEM. It seems cleaner to put this in
26717 ## LD_SWITCH_SYSTEM_TEMACS instead,
26718 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26719 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
26722 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
26723 ## find X at run-time.
26724 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
26725 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
26726 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
26727 ## had different values in configure (in ac_link) and src/Makefile.in.
26728 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
26729 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
26731 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26732 esac
26734 if test x$ac_enable_profiling != x ; then
26735 case $opsys in
26736 *freebsd | gnu-linux) ;;
26737 *) LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -pg" ;;
26738 esac
26743 ## Common for all window systems
26744 if test "$window_system" != "none"; then
26746 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
26748 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
26755 #### Report on what we decided to do.
26756 #### Report GTK as a toolkit, even if it doesn't use Xt.
26757 #### It makes printing result more understandable as using GTK sets
26758 #### toolkit_scroll_bars to yes by default.
26759 if test "${HAVE_GTK}" = "yes"; then
26760 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
26763 echo "
26764 Configured for \`${canonical}'.
26766 Where should the build process find the source code? ${srcdir}
26767 What compiler should emacs be built with? ${CC} ${CFLAGS}
26768 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26769 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26770 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26771 What window system should Emacs use? ${window_system}
26772 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26774 if test -n "${x_includes}"; then
26775 echo " Where do we find X Windows header files? ${x_includes}"
26776 else
26777 echo " Where do we find X Windows header files? Standard dirs"
26779 if test -n "${x_libraries}"; then
26780 echo " Where do we find X Windows libraries? ${x_libraries}"
26781 else
26782 echo " Where do we find X Windows libraries? Standard dirs"
26785 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26786 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26787 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26788 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26789 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26790 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26791 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26792 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26794 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26795 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26796 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26797 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
26798 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26799 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
26800 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
26802 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26803 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26804 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26805 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26807 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26808 echo
26810 if test -n "${EMACSDATA}"; then
26811 echo " Environment variable EMACSDATA set to: $EMACSDATA"
26813 if test -n "${EMACSDOC}"; then
26814 echo " Environment variable EMACSDOC set to: $EMACSDOC"
26817 echo
26819 if test "$HAVE_NS" = "yes"; then
26820 echo
26821 echo "You must run \"${MAKE-make} install\" in order to test the built application.
26822 The installed application will go to nextstep/Emacs.app and can be
26823 run or moved from there."
26824 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26825 echo "The application will be fully self-contained."
26826 else
26827 echo "The lisp resources for the application will be installed under ${prefix}.
26828 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
26829 to run if these resources are not installed."
26831 echo
26834 if test "${opsys}" = "cygwin"; then
26835 case `uname -r` in
26836 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
26837 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
26838 echo
26840 esac
26843 # Remove any trailing slashes in these variables.
26844 test "${prefix}" != NONE &&
26845 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26846 test "${exec_prefix}" != NONE &&
26847 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26849 if test "$HAVE_NS" = "yes"; then
26850 if test "$NS_IMPL_GNUSTEP" = yes; then
26851 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"
26853 else
26854 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"
26859 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"
26861 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"
26864 opt_makefile=test/automated/Makefile
26866 if test -f "$srcdir/$opt_makefile.in"; then
26867 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26868 ac_config_files="$ac_config_files test/automated/Makefile"
26873 opt_makefile=admin/unidata/Makefile
26875 if test -f "$srcdir/$opt_makefile.in"; then
26876 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
26877 ac_config_files="$ac_config_files admin/unidata/Makefile"
26882 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
26886 ac_config_commands="$ac_config_commands mkdirs"
26889 ac_config_commands="$ac_config_commands epaths"
26892 ac_config_commands="$ac_config_commands gdbinit"
26895 cat >confcache <<\_ACEOF
26896 # This file is a shell script that caches the results of configure
26897 # tests run on this system so they can be shared between configure
26898 # scripts and configure runs, see configure's option --config-cache.
26899 # It is not useful on other systems. If it contains results you don't
26900 # want to keep, you may remove or edit it.
26902 # config.status only pays attention to the cache file if you give it
26903 # the --recheck option to rerun configure.
26905 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26906 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26907 # following values.
26909 _ACEOF
26911 # The following way of writing the cache mishandles newlines in values,
26912 # but we know of no workaround that is simple, portable, and efficient.
26913 # So, we kill variables containing newlines.
26914 # Ultrix sh set writes to stderr and can't be redirected directly,
26915 # and sets the high bit in the cache file unless we assign to the vars.
26917 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26918 eval ac_val=\$$ac_var
26919 case $ac_val in #(
26920 *${as_nl}*)
26921 case $ac_var in #(
26922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26924 esac
26925 case $ac_var in #(
26926 _ | IFS | as_nl) ;; #(
26927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26928 *) { eval $ac_var=; unset $ac_var;} ;;
26929 esac ;;
26930 esac
26931 done
26933 (set) 2>&1 |
26934 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26935 *${as_nl}ac_space=\ *)
26936 # `set' does not quote correctly, so add quotes: double-quote
26937 # substitution turns \\\\ into \\, and sed turns \\ into \.
26938 sed -n \
26939 "s/'/'\\\\''/g;
26940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26941 ;; #(
26943 # `set' quotes correctly as required by POSIX, so do not add quotes.
26944 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26946 esac |
26947 sort
26949 sed '
26950 /^ac_cv_env_/b end
26951 t clear
26952 :clear
26953 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26954 t end
26955 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26956 :end' >>confcache
26957 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26958 if test -w "$cache_file"; then
26959 test "x$cache_file" != "x/dev/null" &&
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26961 $as_echo "$as_me: updating cache $cache_file" >&6;}
26962 cat confcache >$cache_file
26963 else
26964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26968 rm -f confcache
26970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26971 # Let make expand exec_prefix.
26972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26974 DEFS=-DHAVE_CONFIG_H
26976 ac_libobjs=
26977 ac_ltlibobjs=
26978 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26979 # 1. Remove the extension, and $U if already installed.
26980 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26981 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26983 # will be set to the directory where LIBOBJS objects are built.
26984 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26985 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26986 done
26987 LIBOBJS=$ac_libobjs
26989 LTLIBOBJS=$ac_ltlibobjs
26992 if test -n "$EXEEXT"; then
26993 am__EXEEXT_TRUE=
26994 am__EXEEXT_FALSE='#'
26995 else
26996 am__EXEEXT_TRUE='#'
26997 am__EXEEXT_FALSE=
27000 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27001 as_fn_error "conditional \"AMDEP\" was never defined.
27002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27005 as_fn_error "conditional \"am__fastdepCC\" was never defined.
27006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27008 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27009 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
27010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27012 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27013 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27017 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
27018 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
27019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27021 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27022 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27025 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27026 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27029 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
27030 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
27031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27033 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27034 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27037 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27038 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27041 if test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_TRUE}" && test -z "${gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b_FALSE}"; then
27042 as_fn_error "conditional \"gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b\" was never defined.
27043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27045 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
27046 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
27047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27049 if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then
27050 as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined.
27051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27053 if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then
27054 as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined.
27055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27057 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
27058 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
27059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27061 if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then
27062 as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined.
27063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27065 if test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_TRUE}" && test -z "${gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7_FALSE}"; then
27066 as_fn_error "conditional \"gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7\" was never defined.
27067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27069 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
27070 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
27071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27073 if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then
27074 as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined.
27075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27077 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
27078 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
27079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27081 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
27082 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
27083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27085 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
27086 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
27087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27089 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
27090 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
27091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27093 if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then
27094 as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined.
27095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27098 gl_libobjs=
27099 gl_ltlibobjs=
27100 if test -n "$gl_LIBOBJS"; then
27101 # Remove the extension.
27102 sed_drop_objext='s/\.o$//;s/\.obj$//'
27103 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27104 gl_libobjs="$gl_libobjs $i.$ac_objext"
27105 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27106 done
27108 gl_LIBOBJS=$gl_libobjs
27110 gl_LTLIBOBJS=$gl_ltlibobjs
27114 gltests_libobjs=
27115 gltests_ltlibobjs=
27116 if test -n "$gltests_LIBOBJS"; then
27117 # Remove the extension.
27118 sed_drop_objext='s/\.o$//;s/\.obj$//'
27119 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27120 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27121 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27122 done
27124 gltests_LIBOBJS=$gltests_libobjs
27126 gltests_LTLIBOBJS=$gltests_ltlibobjs
27130 : ${CONFIG_STATUS=./config.status}
27131 ac_write_fail=0
27132 ac_clean_files_save=$ac_clean_files
27133 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27135 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27136 as_write_fail=0
27137 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27138 #! $SHELL
27139 # Generated by $as_me.
27140 # Run this file to recreate the current configuration.
27141 # Compiler output produced by configure, useful for debugging
27142 # configure, is in config.log if it exists.
27144 debug=false
27145 ac_cs_recheck=false
27146 ac_cs_silent=false
27148 SHELL=\${CONFIG_SHELL-$SHELL}
27149 export SHELL
27150 _ASEOF
27151 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27152 ## -------------------- ##
27153 ## M4sh Initialization. ##
27154 ## -------------------- ##
27156 # Be more Bourne compatible
27157 DUALCASE=1; export DUALCASE # for MKS sh
27158 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27159 emulate sh
27160 NULLCMD=:
27161 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27162 # is contrary to our usage. Disable this feature.
27163 alias -g '${1+"$@"}'='"$@"'
27164 setopt NO_GLOB_SUBST
27165 else
27166 case `(set -o) 2>/dev/null` in #(
27167 *posix*) :
27168 set -o posix ;; #(
27169 *) :
27171 esac
27175 as_nl='
27177 export as_nl
27178 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27179 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27180 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27181 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27182 # Prefer a ksh shell builtin over an external printf program on Solaris,
27183 # but without wasting forks for bash or zsh.
27184 if test -z "$BASH_VERSION$ZSH_VERSION" \
27185 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27186 as_echo='print -r --'
27187 as_echo_n='print -rn --'
27188 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27189 as_echo='printf %s\n'
27190 as_echo_n='printf %s'
27191 else
27192 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27193 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27194 as_echo_n='/usr/ucb/echo -n'
27195 else
27196 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27197 as_echo_n_body='eval
27198 arg=$1;
27199 case $arg in #(
27200 *"$as_nl"*)
27201 expr "X$arg" : "X\\(.*\\)$as_nl";
27202 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27203 esac;
27204 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27206 export as_echo_n_body
27207 as_echo_n='sh -c $as_echo_n_body as_echo'
27209 export as_echo_body
27210 as_echo='sh -c $as_echo_body as_echo'
27213 # The user is always right.
27214 if test "${PATH_SEPARATOR+set}" != set; then
27215 PATH_SEPARATOR=:
27216 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27217 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27218 PATH_SEPARATOR=';'
27223 # IFS
27224 # We need space, tab and new line, in precisely that order. Quoting is
27225 # there to prevent editors from complaining about space-tab.
27226 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27227 # splitting by setting IFS to empty value.)
27228 IFS=" "" $as_nl"
27230 # Find who we are. Look in the path if we contain no directory separator.
27231 case $0 in #((
27232 *[\\/]* ) as_myself=$0 ;;
27233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27234 for as_dir in $PATH
27236 IFS=$as_save_IFS
27237 test -z "$as_dir" && as_dir=.
27238 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27239 done
27240 IFS=$as_save_IFS
27243 esac
27244 # We did not find ourselves, most probably we were run as `sh COMMAND'
27245 # in which case we are not to be found in the path.
27246 if test "x$as_myself" = x; then
27247 as_myself=$0
27249 if test ! -f "$as_myself"; then
27250 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27251 exit 1
27254 # Unset variables that we do not need and which cause bugs (e.g. in
27255 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27256 # suppresses any "Segmentation fault" message there. '((' could
27257 # trigger a bug in pdksh 5.2.14.
27258 for as_var in BASH_ENV ENV MAIL MAILPATH
27259 do eval test x\${$as_var+set} = xset \
27260 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27261 done
27262 PS1='$ '
27263 PS2='> '
27264 PS4='+ '
27266 # NLS nuisances.
27267 LC_ALL=C
27268 export LC_ALL
27269 LANGUAGE=C
27270 export LANGUAGE
27272 # CDPATH.
27273 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27276 # as_fn_error ERROR [LINENO LOG_FD]
27277 # ---------------------------------
27278 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27279 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27280 # script with status $?, using 1 if that was 0.
27281 as_fn_error ()
27283 as_status=$?; test $as_status -eq 0 && as_status=1
27284 if test "$3"; then
27285 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27286 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27288 $as_echo "$as_me: error: $1" >&2
27289 as_fn_exit $as_status
27290 } # as_fn_error
27293 # as_fn_set_status STATUS
27294 # -----------------------
27295 # Set $? to STATUS, without forking.
27296 as_fn_set_status ()
27298 return $1
27299 } # as_fn_set_status
27301 # as_fn_exit STATUS
27302 # -----------------
27303 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27304 as_fn_exit ()
27306 set +e
27307 as_fn_set_status $1
27308 exit $1
27309 } # as_fn_exit
27311 # as_fn_unset VAR
27312 # ---------------
27313 # Portably unset VAR.
27314 as_fn_unset ()
27316 { eval $1=; unset $1;}
27318 as_unset=as_fn_unset
27319 # as_fn_append VAR VALUE
27320 # ----------------------
27321 # Append the text in VALUE to the end of the definition contained in VAR. Take
27322 # advantage of any shell optimizations that allow amortized linear growth over
27323 # repeated appends, instead of the typical quadratic growth present in naive
27324 # implementations.
27325 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27326 eval 'as_fn_append ()
27328 eval $1+=\$2
27330 else
27331 as_fn_append ()
27333 eval $1=\$$1\$2
27335 fi # as_fn_append
27337 # as_fn_arith ARG...
27338 # ------------------
27339 # Perform arithmetic evaluation on the ARGs, and store the result in the
27340 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27341 # must be portable across $(()) and expr.
27342 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27343 eval 'as_fn_arith ()
27345 as_val=$(( $* ))
27347 else
27348 as_fn_arith ()
27350 as_val=`expr "$@" || test $? -eq 1`
27352 fi # as_fn_arith
27355 if expr a : '\(a\)' >/dev/null 2>&1 &&
27356 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27357 as_expr=expr
27358 else
27359 as_expr=false
27362 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27363 as_basename=basename
27364 else
27365 as_basename=false
27368 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27369 as_dirname=dirname
27370 else
27371 as_dirname=false
27374 as_me=`$as_basename -- "$0" ||
27375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27376 X"$0" : 'X\(//\)$' \| \
27377 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27378 $as_echo X/"$0" |
27379 sed '/^.*\/\([^/][^/]*\)\/*$/{
27380 s//\1/
27383 /^X\/\(\/\/\)$/{
27384 s//\1/
27387 /^X\/\(\/\).*/{
27388 s//\1/
27391 s/.*/./; q'`
27393 # Avoid depending upon Character Ranges.
27394 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27395 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27396 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27397 as_cr_digits='0123456789'
27398 as_cr_alnum=$as_cr_Letters$as_cr_digits
27400 ECHO_C= ECHO_N= ECHO_T=
27401 case `echo -n x` in #(((((
27402 -n*)
27403 case `echo 'xy\c'` in
27404 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27405 xy) ECHO_C='\c';;
27406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27407 ECHO_T=' ';;
27408 esac;;
27410 ECHO_N='-n';;
27411 esac
27413 rm -f conf$$ conf$$.exe conf$$.file
27414 if test -d conf$$.dir; then
27415 rm -f conf$$.dir/conf$$.file
27416 else
27417 rm -f conf$$.dir
27418 mkdir conf$$.dir 2>/dev/null
27420 if (echo >conf$$.file) 2>/dev/null; then
27421 if ln -s conf$$.file conf$$ 2>/dev/null; then
27422 as_ln_s='ln -s'
27423 # ... but there are two gotchas:
27424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27426 # In both cases, we have to default to `cp -p'.
27427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27428 as_ln_s='cp -p'
27429 elif ln conf$$.file conf$$ 2>/dev/null; then
27430 as_ln_s=ln
27431 else
27432 as_ln_s='cp -p'
27434 else
27435 as_ln_s='cp -p'
27437 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27438 rmdir conf$$.dir 2>/dev/null
27441 # as_fn_mkdir_p
27442 # -------------
27443 # Create "$as_dir" as a directory, including parents if necessary.
27444 as_fn_mkdir_p ()
27447 case $as_dir in #(
27448 -*) as_dir=./$as_dir;;
27449 esac
27450 test -d "$as_dir" || eval $as_mkdir_p || {
27451 as_dirs=
27452 while :; do
27453 case $as_dir in #(
27454 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27455 *) as_qdir=$as_dir;;
27456 esac
27457 as_dirs="'$as_qdir' $as_dirs"
27458 as_dir=`$as_dirname -- "$as_dir" ||
27459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27460 X"$as_dir" : 'X\(//\)[^/]' \| \
27461 X"$as_dir" : 'X\(//\)$' \| \
27462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27463 $as_echo X"$as_dir" |
27464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27465 s//\1/
27468 /^X\(\/\/\)[^/].*/{
27469 s//\1/
27472 /^X\(\/\/\)$/{
27473 s//\1/
27476 /^X\(\/\).*/{
27477 s//\1/
27480 s/.*/./; q'`
27481 test -d "$as_dir" && break
27482 done
27483 test -z "$as_dirs" || eval "mkdir $as_dirs"
27484 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27487 } # as_fn_mkdir_p
27488 if mkdir -p . 2>/dev/null; then
27489 as_mkdir_p='mkdir -p "$as_dir"'
27490 else
27491 test -d ./-p && rmdir ./-p
27492 as_mkdir_p=false
27495 if test -x / >/dev/null 2>&1; then
27496 as_test_x='test -x'
27497 else
27498 if ls -dL / >/dev/null 2>&1; then
27499 as_ls_L_option=L
27500 else
27501 as_ls_L_option=
27503 as_test_x='
27504 eval sh -c '\''
27505 if test -d "$1"; then
27506 test -d "$1/.";
27507 else
27508 case $1 in #(
27509 -*)set "./$1";;
27510 esac;
27511 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27512 ???[sx]*):;;*)false;;esac;fi
27513 '\'' sh
27516 as_executable_p=$as_test_x
27518 # Sed expression to map a string onto a valid CPP name.
27519 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27521 # Sed expression to map a string onto a valid variable name.
27522 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27525 exec 6>&1
27526 ## ----------------------------------- ##
27527 ## Main body of $CONFIG_STATUS script. ##
27528 ## ----------------------------------- ##
27529 _ASEOF
27530 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27533 # Save the log message, to keep $0 and so on meaningful, and to
27534 # report actual input values of CONFIG_FILES etc. instead of their
27535 # values after options handling.
27536 ac_log="
27537 This file was extended by emacs $as_me 24.3.50, which was
27538 generated by GNU Autoconf 2.65. Invocation command line was
27540 CONFIG_FILES = $CONFIG_FILES
27541 CONFIG_HEADERS = $CONFIG_HEADERS
27542 CONFIG_LINKS = $CONFIG_LINKS
27543 CONFIG_COMMANDS = $CONFIG_COMMANDS
27544 $ $0 $@
27546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27549 _ACEOF
27551 case $ac_config_files in *"
27552 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27553 esac
27555 case $ac_config_headers in *"
27556 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27557 esac
27560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27561 # Files that config.status was made for.
27562 config_files="$ac_config_files"
27563 config_headers="$ac_config_headers"
27564 config_commands="$ac_config_commands"
27566 _ACEOF
27568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27569 ac_cs_usage="\
27570 \`$as_me' instantiates files and other configuration actions
27571 from templates according to the current configuration. Unless the files
27572 and actions are specified as TAGs, all are instantiated by default.
27574 Usage: $0 [OPTION]... [TAG]...
27576 -h, --help print this help, then exit
27577 -V, --version print version number and configuration settings, then exit
27578 --config print configuration, then exit
27579 -q, --quiet, --silent
27580 do not print progress messages
27581 -d, --debug don't remove temporary files
27582 --recheck update $as_me by reconfiguring in the same conditions
27583 --file=FILE[:TEMPLATE]
27584 instantiate the configuration file FILE
27585 --header=FILE[:TEMPLATE]
27586 instantiate the configuration header FILE
27588 Configuration files:
27589 $config_files
27591 Configuration headers:
27592 $config_headers
27594 Configuration commands:
27595 $config_commands
27597 Report bugs to the package provider."
27599 _ACEOF
27600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27601 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27602 ac_cs_version="\\
27603 emacs config.status 24.3.50
27604 configured by $0, generated by GNU Autoconf 2.65,
27605 with options \\"\$ac_cs_config\\"
27607 Copyright (C) 2009 Free Software Foundation, Inc.
27608 This config.status script is free software; the Free Software Foundation
27609 gives unlimited permission to copy, distribute and modify it."
27611 ac_pwd='$ac_pwd'
27612 srcdir='$srcdir'
27613 INSTALL='$INSTALL'
27614 MKDIR_P='$MKDIR_P'
27615 AWK='$AWK'
27616 test -n "\$AWK" || AWK=awk
27617 _ACEOF
27619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27620 # The default lists apply if the user does not specify any file.
27621 ac_need_defaults=:
27622 while test $# != 0
27624 case $1 in
27625 --*=*)
27626 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27627 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27628 ac_shift=:
27631 ac_option=$1
27632 ac_optarg=$2
27633 ac_shift=shift
27635 esac
27637 case $ac_option in
27638 # Handling of the options.
27639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27640 ac_cs_recheck=: ;;
27641 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27642 $as_echo "$ac_cs_version"; exit ;;
27643 --config | --confi | --conf | --con | --co | --c )
27644 $as_echo "$ac_cs_config"; exit ;;
27645 --debug | --debu | --deb | --de | --d | -d )
27646 debug=: ;;
27647 --file | --fil | --fi | --f )
27648 $ac_shift
27649 case $ac_optarg in
27650 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27651 esac
27652 as_fn_append CONFIG_FILES " '$ac_optarg'"
27653 ac_need_defaults=false;;
27654 --header | --heade | --head | --hea )
27655 $ac_shift
27656 case $ac_optarg in
27657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27658 esac
27659 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27660 ac_need_defaults=false;;
27661 --he | --h)
27662 # Conflict between --help and --header
27663 as_fn_error "ambiguous option: \`$1'
27664 Try \`$0 --help' for more information.";;
27665 --help | --hel | -h )
27666 $as_echo "$ac_cs_usage"; exit ;;
27667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27668 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27669 ac_cs_silent=: ;;
27671 # This is an error.
27672 -*) as_fn_error "unrecognized option: \`$1'
27673 Try \`$0 --help' for more information." ;;
27675 *) as_fn_append ac_config_targets " $1"
27676 ac_need_defaults=false ;;
27678 esac
27679 shift
27680 done
27682 ac_configure_extra_args=
27684 if $ac_cs_silent; then
27685 exec 6>/dev/null
27686 ac_configure_extra_args="$ac_configure_extra_args --silent"
27689 _ACEOF
27690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27691 if \$ac_cs_recheck; then
27692 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27693 shift
27694 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27695 CONFIG_SHELL='$SHELL'
27696 export CONFIG_SHELL
27697 exec "\$@"
27700 _ACEOF
27701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27702 exec 5>>config.log
27704 echo
27705 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27706 ## Running $as_me. ##
27707 _ASBOX
27708 $as_echo "$ac_log"
27709 } >&5
27711 _ACEOF
27712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27714 # INIT-COMMANDS
27716 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27717 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
27719 _ACEOF
27721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27723 # Handling of arguments.
27724 for ac_config_target in $ac_config_targets
27726 case $ac_config_target in
27727 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27728 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27729 "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" ;;
27730 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
27731 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
27732 "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" ;;
27733 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27734 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27735 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27736 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27737 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27738 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27739 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27740 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27741 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27742 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27743 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27744 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27745 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
27746 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
27747 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
27748 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
27749 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
27750 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
27752 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27753 esac
27754 done
27757 # If the user did not use the arguments to specify the items to instantiate,
27758 # then the envvar interface is used. Set only those that are not.
27759 # We use the long form for the default assignment because of an extremely
27760 # bizarre bug on SunOS 4.1.3.
27761 if $ac_need_defaults; then
27762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27764 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27767 # Have a temporary directory for convenience. Make it in the build tree
27768 # simply because there is no reason against having it here, and in addition,
27769 # creating and moving files from /tmp can sometimes cause problems.
27770 # Hook for its removal unless debugging.
27771 # Note that there is a small window in which the directory will not be cleaned:
27772 # after its creation but before its name has been assigned to `$tmp'.
27773 $debug ||
27775 tmp=
27776 trap 'exit_status=$?
27777 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27779 trap 'as_fn_exit 1' 1 2 13 15
27781 # Create a (secure) tmp directory for tmp files.
27784 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27785 test -n "$tmp" && test -d "$tmp"
27786 } ||
27788 tmp=./conf$$-$RANDOM
27789 (umask 077 && mkdir "$tmp")
27790 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27792 # Set up the scripts for CONFIG_FILES section.
27793 # No need to generate them if there are no CONFIG_FILES.
27794 # This happens for instance with `./config.status config.h'.
27795 if test -n "$CONFIG_FILES"; then
27797 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27798 ac_cs_awk_getline=:
27799 ac_cs_awk_pipe_init=
27800 ac_cs_awk_read_file='
27801 while ((getline aline < (F[key])) > 0)
27802 print(aline)
27803 close(F[key])'
27804 ac_cs_awk_pipe_fini=
27805 else
27806 ac_cs_awk_getline=false
27807 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27808 ac_cs_awk_read_file='
27809 print "|#_!!_#|"
27810 print "cat " F[key] " &&"
27811 '$ac_cs_awk_pipe_init
27812 # The final `:' finishes the AND list.
27813 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27815 ac_cr=`echo X | tr X '\015'`
27816 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27817 # But we know of no other shell where ac_cr would be empty at this
27818 # point, so we can use a bashism as a fallback.
27819 if test "x$ac_cr" = x; then
27820 eval ac_cr=\$\'\\r\'
27822 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27823 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27824 ac_cs_awk_cr='\r'
27825 else
27826 ac_cs_awk_cr=$ac_cr
27829 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27830 _ACEOF
27832 # Create commands to substitute file output variables.
27834 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27835 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27836 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27837 echo "_ACAWK" &&
27838 echo "_ACEOF"
27839 } >conf$$files.sh &&
27840 . ./conf$$files.sh ||
27841 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27842 rm -f conf$$files.sh
27845 echo "cat >conf$$subs.awk <<_ACEOF" &&
27846 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27847 echo "_ACEOF"
27848 } >conf$$subs.sh ||
27849 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27850 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27851 ac_delim='%!_!# '
27852 for ac_last_try in false false false false false :; do
27853 . ./conf$$subs.sh ||
27854 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27856 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27857 if test $ac_delim_n = $ac_delim_num; then
27858 break
27859 elif $ac_last_try; then
27860 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27861 else
27862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27864 done
27865 rm -f conf$$subs.sh
27867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27868 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27869 _ACEOF
27870 sed -n '
27872 s/^/S["/; s/!.*/"]=/
27875 s/^[^!]*!//
27876 :repl
27877 t repl
27878 s/'"$ac_delim"'$//
27879 t delim
27882 s/\(.\{148\}\)..*/\1/
27883 t more1
27884 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27887 b repl
27888 :more1
27889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27892 s/.\{148\}//
27893 t nl
27894 :delim
27896 s/\(.\{148\}\)..*/\1/
27897 t more2
27898 s/["\\]/\\&/g; s/^/"/; s/$/"/
27901 :more2
27902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27905 s/.\{148\}//
27906 t delim
27907 ' <conf$$subs.awk | sed '
27908 /^[^""]/{
27910 s/\n//
27912 ' >>$CONFIG_STATUS || ac_write_fail=1
27913 rm -f conf$$subs.awk
27914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27915 _ACAWK
27916 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27917 for (key in S) S_is_set[key] = 1
27918 FS = "\a"
27919 \$ac_cs_awk_pipe_init
27922 line = $ 0
27923 nfields = split(line, field, "@")
27924 substed = 0
27925 len = length(field[1])
27926 for (i = 2; i < nfields; i++) {
27927 key = field[i]
27928 keylen = length(key)
27929 if (S_is_set[key]) {
27930 value = S[key]
27931 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27932 len += length(value) + length(field[++i])
27933 substed = 1
27934 } else
27935 len += 1 + keylen
27937 if (nfields == 3 && !substed) {
27938 key = field[2]
27939 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27940 \$ac_cs_awk_read_file
27941 next
27944 print line
27946 \$ac_cs_awk_pipe_fini
27947 _ACAWK
27948 _ACEOF
27949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27950 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27951 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27952 else
27954 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27955 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27956 _ACEOF
27958 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27959 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27960 # trailing colons and then remove the whole line if VPATH becomes empty
27961 # (actually we leave an empty line to preserve line numbers).
27962 if test "x$srcdir" = x.; then
27963 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27964 s/:*\$(srcdir):*/:/
27965 s/:*\${srcdir}:*/:/
27966 s/:*@srcdir@:*/:/
27967 s/^\([^=]*=[ ]*\):*/\1/
27968 s/:*$//
27969 s/^[^=]*=[ ]*$//
27973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27974 fi # test -n "$CONFIG_FILES"
27976 # Set up the scripts for CONFIG_HEADERS section.
27977 # No need to generate them if there are no CONFIG_HEADERS.
27978 # This happens for instance with `./config.status Makefile'.
27979 if test -n "$CONFIG_HEADERS"; then
27980 cat >"$tmp/defines.awk" <<\_ACAWK ||
27981 BEGIN {
27982 _ACEOF
27984 # Transform confdefs.h into an awk script `defines.awk', embedded as
27985 # here-document in config.status, that substitutes the proper values into
27986 # config.h.in to produce config.h.
27988 # Create a delimiter string that does not exist in confdefs.h, to ease
27989 # handling of long lines.
27990 ac_delim='%!_!# '
27991 for ac_last_try in false false :; do
27992 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27993 if test -z "$ac_t"; then
27994 break
27995 elif $ac_last_try; then
27996 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27997 else
27998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28000 done
28002 # For the awk script, D is an array of macro values keyed by name,
28003 # likewise P contains macro parameters if any. Preserve backslash
28004 # newline sequences.
28006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28007 sed -n '
28008 s/.\{148\}/&'"$ac_delim"'/g
28009 t rset
28010 :rset
28011 s/^[ ]*#[ ]*define[ ][ ]*/ /
28012 t def
28014 :def
28015 s/\\$//
28016 t bsnl
28017 s/["\\]/\\&/g
28018 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28019 D["\1"]=" \3"/p
28020 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28022 :bsnl
28023 s/["\\]/\\&/g
28024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28025 D["\1"]=" \3\\\\\\n"\\/p
28026 t cont
28027 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28028 t cont
28030 :cont
28032 s/.\{148\}/&'"$ac_delim"'/g
28033 t clear
28034 :clear
28035 s/\\$//
28036 t bsnlc
28037 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28039 :bsnlc
28040 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28041 b cont
28042 ' <confdefs.h | sed '
28043 s/'"$ac_delim"'/"\\\
28044 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28047 for (key in D) D_is_set[key] = 1
28048 FS = "\a"
28050 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28051 line = \$ 0
28052 split(line, arg, " ")
28053 if (arg[1] == "#") {
28054 defundef = arg[2]
28055 mac1 = arg[3]
28056 } else {
28057 defundef = substr(arg[1], 2)
28058 mac1 = arg[2]
28060 split(mac1, mac2, "(") #)
28061 macro = mac2[1]
28062 prefix = substr(line, 1, index(line, defundef) - 1)
28063 if (D_is_set[macro]) {
28064 # Preserve the white space surrounding the "#".
28065 print prefix "define", macro P[macro] D[macro]
28066 next
28067 } else {
28068 # Replace #undef with comments. This is necessary, for example,
28069 # in the case of _POSIX_SOURCE, which is predefined and required
28070 # on some systems where configure will not decide to define it.
28071 if (defundef == "undef") {
28072 print "/*", prefix defundef, macro, "*/"
28073 next
28077 { print }
28078 _ACAWK
28079 _ACEOF
28080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28081 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28082 fi # test -n "$CONFIG_HEADERS"
28085 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28086 shift
28087 for ac_tag
28089 case $ac_tag in
28090 :[FHLC]) ac_mode=$ac_tag; continue;;
28091 esac
28092 case $ac_mode$ac_tag in
28093 :[FHL]*:*);;
28094 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28095 :[FH]-) ac_tag=-:-;;
28096 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28097 esac
28098 ac_save_IFS=$IFS
28099 IFS=:
28100 set x $ac_tag
28101 IFS=$ac_save_IFS
28102 shift
28103 ac_file=$1
28104 shift
28106 case $ac_mode in
28107 :L) ac_source=$1;;
28108 :[FH])
28109 ac_file_inputs=
28110 for ac_f
28112 case $ac_f in
28113 -) ac_f="$tmp/stdin";;
28114 *) # Look for the file first in the build tree, then in the source tree
28115 # (if the path is not absolute). The absolute path cannot be DOS-style,
28116 # because $ac_f cannot contain `:'.
28117 test -f "$ac_f" ||
28118 case $ac_f in
28119 [\\/$]*) false;;
28120 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28121 esac ||
28122 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28123 esac
28124 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28125 as_fn_append ac_file_inputs " '$ac_f'"
28126 done
28128 # Let's still pretend it is `configure' which instantiates (i.e., don't
28129 # use $as_me), people would be surprised to read:
28130 # /* config.h. Generated by config.status. */
28131 configure_input='Generated from '`
28132 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28133 `' by configure.'
28134 if test x"$ac_file" != x-; then
28135 configure_input="$ac_file. $configure_input"
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28137 $as_echo "$as_me: creating $ac_file" >&6;}
28139 # Neutralize special characters interpreted by sed in replacement strings.
28140 case $configure_input in #(
28141 *\&* | *\|* | *\\* )
28142 ac_sed_conf_input=`$as_echo "$configure_input" |
28143 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28144 *) ac_sed_conf_input=$configure_input;;
28145 esac
28147 case $ac_tag in
28148 *:-:* | *:-) cat >"$tmp/stdin" \
28149 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28150 esac
28152 esac
28154 ac_dir=`$as_dirname -- "$ac_file" ||
28155 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28156 X"$ac_file" : 'X\(//\)[^/]' \| \
28157 X"$ac_file" : 'X\(//\)$' \| \
28158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28159 $as_echo X"$ac_file" |
28160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28161 s//\1/
28164 /^X\(\/\/\)[^/].*/{
28165 s//\1/
28168 /^X\(\/\/\)$/{
28169 s//\1/
28172 /^X\(\/\).*/{
28173 s//\1/
28176 s/.*/./; q'`
28177 as_dir="$ac_dir"; as_fn_mkdir_p
28178 ac_builddir=.
28180 case "$ac_dir" in
28181 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28183 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28184 # A ".." for each directory in $ac_dir_suffix.
28185 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28186 case $ac_top_builddir_sub in
28187 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28188 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28189 esac ;;
28190 esac
28191 ac_abs_top_builddir=$ac_pwd
28192 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28193 # for backward compatibility:
28194 ac_top_builddir=$ac_top_build_prefix
28196 case $srcdir in
28197 .) # We are building in place.
28198 ac_srcdir=.
28199 ac_top_srcdir=$ac_top_builddir_sub
28200 ac_abs_top_srcdir=$ac_pwd ;;
28201 [\\/]* | ?:[\\/]* ) # Absolute name.
28202 ac_srcdir=$srcdir$ac_dir_suffix;
28203 ac_top_srcdir=$srcdir
28204 ac_abs_top_srcdir=$srcdir ;;
28205 *) # Relative name.
28206 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28207 ac_top_srcdir=$ac_top_build_prefix$srcdir
28208 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28209 esac
28210 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28213 case $ac_mode in
28216 # CONFIG_FILE
28219 case $INSTALL in
28220 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28221 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28222 esac
28223 ac_MKDIR_P=$MKDIR_P
28224 case $MKDIR_P in
28225 [\\/$]* | ?:[\\/]* ) ;;
28226 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28227 esac
28228 _ACEOF
28230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28231 # If the template does not know about datarootdir, expand it.
28232 # FIXME: This hack should be removed a few years after 2.60.
28233 ac_datarootdir_hack=; ac_datarootdir_seen=
28234 ac_sed_dataroot='
28235 /datarootdir/ {
28239 /@datadir@/p
28240 /@docdir@/p
28241 /@infodir@/p
28242 /@localedir@/p
28243 /@mandir@/p'
28244 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28245 *datarootdir*) ac_datarootdir_seen=yes;;
28246 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28248 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28249 _ACEOF
28250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28251 ac_datarootdir_hack='
28252 s&@datadir@&$datadir&g
28253 s&@docdir@&$docdir&g
28254 s&@infodir@&$infodir&g
28255 s&@localedir@&$localedir&g
28256 s&@mandir@&$mandir&g
28257 s&\\\${datarootdir}&$datarootdir&g' ;;
28258 esac
28259 _ACEOF
28261 # Neutralize VPATH when `$srcdir' = `.'.
28262 # Shell code in configure.ac might set extrasub.
28263 # FIXME: do we really want to maintain this feature?
28264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28265 ac_sed_extra="$ac_vpsub
28266 $extrasub
28267 _ACEOF
28268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28270 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28271 s|@configure_input@|$ac_sed_conf_input|;t t
28272 s&@top_builddir@&$ac_top_builddir_sub&;t t
28273 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28274 s&@srcdir@&$ac_srcdir&;t t
28275 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28276 s&@top_srcdir@&$ac_top_srcdir&;t t
28277 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28278 s&@builddir@&$ac_builddir&;t t
28279 s&@abs_builddir@&$ac_abs_builddir&;t t
28280 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28281 s&@INSTALL@&$ac_INSTALL&;t t
28282 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28283 $ac_datarootdir_hack
28285 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28286 if $ac_cs_awk_getline; then
28287 $AWK -f "$tmp/subs.awk"
28288 else
28289 $AWK -f "$tmp/subs.awk" | $SHELL
28290 fi >$tmp/out \
28291 || as_fn_error "could not create $ac_file" "$LINENO" 5
28293 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28294 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28295 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28297 which seems to be undefined. Please make sure it is defined." >&5
28298 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28299 which seems to be undefined. Please make sure it is defined." >&2;}
28301 rm -f "$tmp/stdin"
28302 case $ac_file in
28303 -) cat "$tmp/out" && rm -f "$tmp/out";;
28304 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28305 esac \
28306 || as_fn_error "could not create $ac_file" "$LINENO" 5
28310 # CONFIG_HEADER
28312 if test x"$ac_file" != x-; then
28314 $as_echo "/* $configure_input */" \
28315 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28316 } >"$tmp/config.h" \
28317 || as_fn_error "could not create $ac_file" "$LINENO" 5
28318 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28320 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28321 else
28322 rm -f "$ac_file"
28323 mv "$tmp/config.h" "$ac_file" \
28324 || as_fn_error "could not create $ac_file" "$LINENO" 5
28326 else
28327 $as_echo "/* $configure_input */" \
28328 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28329 || as_fn_error "could not create -" "$LINENO" 5
28331 # Compute "$ac_file"'s index in $config_headers.
28332 _am_arg="$ac_file"
28333 _am_stamp_count=1
28334 for _am_header in $config_headers :; do
28335 case $_am_header in
28336 $_am_arg | $_am_arg:* )
28337 break ;;
28339 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28340 esac
28341 done
28342 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28343 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28344 X"$_am_arg" : 'X\(//\)[^/]' \| \
28345 X"$_am_arg" : 'X\(//\)$' \| \
28346 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28347 $as_echo X"$_am_arg" |
28348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28349 s//\1/
28352 /^X\(\/\/\)[^/].*/{
28353 s//\1/
28356 /^X\(\/\/\)$/{
28357 s//\1/
28360 /^X\(\/\).*/{
28361 s//\1/
28364 s/.*/./; q'`/stamp-h$_am_stamp_count
28367 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28368 $as_echo "$as_me: executing $ac_file commands" >&6;}
28370 esac
28373 case $ac_file$ac_mode in
28374 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28375 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28376 # are listed without --file. Let's play safe and only enable the eval
28377 # if we detect the quoting.
28378 case $CONFIG_FILES in
28379 *\'*) eval set x "$CONFIG_FILES" ;;
28380 *) set x $CONFIG_FILES ;;
28381 esac
28382 shift
28383 for mf
28385 # Strip MF so we end up with the name of the file.
28386 mf=`echo "$mf" | sed -e 's/:.*$//'`
28387 # Check whether this is an Automake generated Makefile or not.
28388 # We used to match only the files named `Makefile.in', but
28389 # some people rename them; so instead we look at the file content.
28390 # Grep'ing the first line is not enough: some people post-process
28391 # each Makefile.in and add a new line on top of each file to say so.
28392 # Grep'ing the whole file is not good either: AIX grep has a line
28393 # limit of 2048, but all sed's we know have understand at least 4000.
28394 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28395 dirpart=`$as_dirname -- "$mf" ||
28396 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28397 X"$mf" : 'X\(//\)[^/]' \| \
28398 X"$mf" : 'X\(//\)$' \| \
28399 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28400 $as_echo X"$mf" |
28401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28402 s//\1/
28405 /^X\(\/\/\)[^/].*/{
28406 s//\1/
28409 /^X\(\/\/\)$/{
28410 s//\1/
28413 /^X\(\/\).*/{
28414 s//\1/
28417 s/.*/./; q'`
28418 else
28419 continue
28421 # Extract the definition of DEPDIR, am__include, and am__quote
28422 # from the Makefile without running `make'.
28423 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28424 test -z "$DEPDIR" && continue
28425 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28426 test -z "am__include" && continue
28427 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28428 # When using ansi2knr, U may be empty or an underscore; expand it
28429 U=`sed -n 's/^U = //p' < "$mf"`
28430 # Find all dependency output files, they are included files with
28431 # $(DEPDIR) in their names. We invoke sed twice because it is the
28432 # simplest approach to changing $(DEPDIR) to its actual value in the
28433 # expansion.
28434 for file in `sed -n "
28435 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28436 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28437 # Make sure the directory exists.
28438 test -f "$dirpart/$file" && continue
28439 fdir=`$as_dirname -- "$file" ||
28440 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28441 X"$file" : 'X\(//\)[^/]' \| \
28442 X"$file" : 'X\(//\)$' \| \
28443 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28444 $as_echo X"$file" |
28445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28446 s//\1/
28449 /^X\(\/\/\)[^/].*/{
28450 s//\1/
28453 /^X\(\/\/\)$/{
28454 s//\1/
28457 /^X\(\/\).*/{
28458 s//\1/
28461 s/.*/./; q'`
28462 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28463 # echo "creating $dirpart/$file"
28464 echo '# dummy' > "$dirpart/$file"
28465 done
28466 done
28469 "mkdirs":C)
28470 for dir in etc lisp ; do
28471 test -d ${dir} || mkdir ${dir}
28472 done
28474 "epaths":C)
28475 echo creating src/epaths.h
28476 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
28478 "gdbinit":C)
28479 if test ! -f src/.gdbinit && test -f "$srcdir/src/.gdbinit"; then
28480 echo creating src/.gdbinit
28481 echo "source $srcdir/src/.gdbinit" > src/.gdbinit
28485 esac
28486 done # for ac_tag
28489 as_fn_exit 0
28490 _ACEOF
28491 ac_clean_files=$ac_clean_files_save
28493 test $ac_write_fail = 0 ||
28494 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28497 # configure is writing to config.log, and then calls config.status.
28498 # config.status does its own redirection, appending to config.log.
28499 # Unfortunately, on DOS this fails, as config.log is still kept open
28500 # by configure, so config.status won't be able to write to it; its
28501 # output is simply discarded. So we exec the FD to /dev/null,
28502 # effectively closing config.log, so it can be properly (re)opened and
28503 # appended to by config.status. When coming back to configure, we
28504 # need to make the FD available again.
28505 if test "$no_create" != yes; then
28506 ac_cs_success=:
28507 ac_config_status_args=
28508 test "$silent" = yes &&
28509 ac_config_status_args="$ac_config_status_args --quiet"
28510 exec 5>/dev/null
28511 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28512 exec 5>>config.log
28513 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28514 # would make configure fail if this is the last instruction.
28515 $ac_cs_success || as_fn_exit $?
28517 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28519 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}