* iswitchb.el (iswitchb-read-buffer): Fix typo.
[emacs.git] / autogen / configure
blob59136ff758abc4ebfa1d409c918e22c08f3f9b56
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.3.
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'
553 PACKAGE_STRING='emacs 24.3'
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 LIB_GCC
609 LD_FIRSTFLAG
610 LD_SWITCH_SYSTEM_TEMACS
611 LIBGNU_LTLIBDEPS
612 LIBGNU_LIBDEPS
613 gltests_WITNESS
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_pathmax_FALSE
623 gl_GNULIB_ENABLED_pathmax_TRUE
624 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
625 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
626 gl_GNULIB_ENABLED_dosname_FALSE
627 gl_GNULIB_ENABLED_dosname_TRUE
628 LTLIBINTL
629 LIBINTL
630 WINDOWS_64_BIT_OFF_T
631 HAVE_UNISTD_H
632 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
633 NEXT_UNISTD_H
634 LIB_TIMER_TIME
635 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
636 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
637 TIME_H_DEFINES_STRUCT_TIMESPEC
638 NEXT_AS_FIRST_DIRECTIVE_TIME_H
639 NEXT_TIME_H
640 WINDOWS_64_BIT_ST_SIZE
641 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
642 NEXT_SYS_STAT_H
643 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
644 NEXT_STDLIB_H
645 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
646 NEXT_STDIO_H
647 REPLACE_VSPRINTF
648 REPLACE_VSNPRINTF
649 REPLACE_VPRINTF
650 REPLACE_VFPRINTF
651 REPLACE_VDPRINTF
652 REPLACE_VASPRINTF
653 REPLACE_TMPFILE
654 REPLACE_STDIO_WRITE_FUNCS
655 REPLACE_STDIO_READ_FUNCS
656 REPLACE_SPRINTF
657 REPLACE_SNPRINTF
658 REPLACE_RENAMEAT
659 REPLACE_RENAME
660 REPLACE_REMOVE
661 REPLACE_PRINTF
662 REPLACE_POPEN
663 REPLACE_PERROR
664 REPLACE_OBSTACK_PRINTF
665 REPLACE_GETLINE
666 REPLACE_GETDELIM
667 REPLACE_FTELLO
668 REPLACE_FTELL
669 REPLACE_FSEEKO
670 REPLACE_FSEEK
671 REPLACE_FREOPEN
672 REPLACE_FPURGE
673 REPLACE_FPRINTF
674 REPLACE_FOPEN
675 REPLACE_FFLUSH
676 REPLACE_FDOPEN
677 REPLACE_FCLOSE
678 REPLACE_DPRINTF
679 HAVE_VDPRINTF
680 HAVE_VASPRINTF
681 HAVE_RENAMEAT
682 HAVE_POPEN
683 HAVE_PCLOSE
684 HAVE_FTELLO
685 HAVE_FSEEKO
686 HAVE_DPRINTF
687 HAVE_DECL_VSNPRINTF
688 HAVE_DECL_SNPRINTF
689 HAVE_DECL_OBSTACK_PRINTF
690 HAVE_DECL_GETLINE
691 HAVE_DECL_GETDELIM
692 HAVE_DECL_FTELLO
693 HAVE_DECL_FSEEKO
694 HAVE_DECL_FPURGE
695 GNULIB_VSPRINTF_POSIX
696 GNULIB_VSNPRINTF
697 GNULIB_VPRINTF_POSIX
698 GNULIB_VPRINTF
699 GNULIB_VFPRINTF_POSIX
700 GNULIB_VFPRINTF
701 GNULIB_VDPRINTF
702 GNULIB_VSCANF
703 GNULIB_VFSCANF
704 GNULIB_VASPRINTF
705 GNULIB_TMPFILE
706 GNULIB_STDIO_H_SIGPIPE
707 GNULIB_STDIO_H_NONBLOCKING
708 GNULIB_SPRINTF_POSIX
709 GNULIB_SNPRINTF
710 GNULIB_SCANF
711 GNULIB_RENAMEAT
712 GNULIB_RENAME
713 GNULIB_REMOVE
714 GNULIB_PUTS
715 GNULIB_PUTCHAR
716 GNULIB_PUTC
717 GNULIB_PRINTF_POSIX
718 GNULIB_PRINTF
719 GNULIB_POPEN
720 GNULIB_PERROR
721 GNULIB_PCLOSE
722 GNULIB_OBSTACK_PRINTF_POSIX
723 GNULIB_OBSTACK_PRINTF
724 GNULIB_GETLINE
725 GNULIB_GETDELIM
726 GNULIB_GETCHAR
727 GNULIB_GETC
728 GNULIB_FWRITE
729 GNULIB_FTELLO
730 GNULIB_FTELL
731 GNULIB_FSEEKO
732 GNULIB_FSEEK
733 GNULIB_FSCANF
734 GNULIB_FREOPEN
735 GNULIB_FREAD
736 GNULIB_FPUTS
737 GNULIB_FPUTC
738 GNULIB_FPURGE
739 GNULIB_FPRINTF_POSIX
740 GNULIB_FPRINTF
741 GNULIB_FOPEN
742 GNULIB_FGETS
743 GNULIB_FGETC
744 GNULIB_FFLUSH
745 GNULIB_FDOPEN
746 GNULIB_FCLOSE
747 GNULIB_DPRINTF
748 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
749 NEXT_STDDEF_H
750 GL_GENERATE_STDDEF_H_FALSE
751 GL_GENERATE_STDDEF_H_TRUE
752 STDDEF_H
753 HAVE_WCHAR_T
754 REPLACE_NULL
755 HAVE__BOOL
756 GL_GENERATE_STDBOOL_H_FALSE
757 GL_GENERATE_STDBOOL_H_TRUE
758 STDBOOL_H
759 GL_GENERATE_STDARG_H_FALSE
760 GL_GENERATE_STDARG_H_TRUE
761 STDARG_H
762 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
763 NEXT_STDARG_H
764 GL_GENERATE_STDALIGN_H_FALSE
765 GL_GENERATE_STDALIGN_H_TRUE
766 STDALIGN_H
767 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
768 NEXT_SIGNAL_H
769 LIB_PTHREAD_SIGMASK
770 REPLACE_RAISE
771 REPLACE_PTHREAD_SIGMASK
772 HAVE_SIGHANDLER_T
773 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
774 HAVE_STRUCT_SIGACTION_SA_SIGACTION
775 HAVE_SIGACTION
776 HAVE_SIGINFO_T
777 HAVE_SIGSET_T
778 HAVE_RAISE
779 HAVE_PTHREAD_SIGMASK
780 HAVE_POSIX_SIGNALBLOCKING
781 GNULIB_SIGACTION
782 GNULIB_SIGPROCMASK
783 GNULIB_SIGNAL_H_SIGPIPE
784 GNULIB_RAISE
785 GNULIB_PTHREAD_SIGMASK
786 HAVE_SYS_SELECT_H
787 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
788 NEXT_SYS_SELECT_H
789 REPLACE_SELECT
790 REPLACE_PSELECT
791 HAVE_PSELECT
792 GNULIB_SELECT
793 GNULIB_PSELECT
794 REPLACE_TIMEGM
795 REPLACE_NANOSLEEP
796 REPLACE_MKTIME
797 REPLACE_LOCALTIME_R
798 HAVE_TIMEGM
799 HAVE_STRPTIME
800 HAVE_NANOSLEEP
801 HAVE_DECL_LOCALTIME_R
802 GNULIB_TIME_R
803 GNULIB_TIMEGM
804 GNULIB_STRPTIME
805 GNULIB_NANOSLEEP
806 GNULIB_MKTIME
807 REPLACE_UTIMENSAT
808 REPLACE_STAT
809 REPLACE_MKNOD
810 REPLACE_MKFIFO
811 REPLACE_MKDIR
812 REPLACE_LSTAT
813 REPLACE_FUTIMENS
814 REPLACE_FSTATAT
815 REPLACE_FSTAT
816 HAVE_UTIMENSAT
817 HAVE_MKNODAT
818 HAVE_MKNOD
819 HAVE_MKFIFOAT
820 HAVE_MKFIFO
821 HAVE_MKDIRAT
822 HAVE_LSTAT
823 HAVE_LCHMOD
824 HAVE_FUTIMENS
825 HAVE_FSTATAT
826 HAVE_FCHMODAT
827 GNULIB_UTIMENSAT
828 GNULIB_STAT
829 GNULIB_MKNODAT
830 GNULIB_MKNOD
831 GNULIB_MKFIFOAT
832 GNULIB_MKFIFO
833 GNULIB_MKDIRAT
834 GNULIB_LSTAT
835 GNULIB_LCHMOD
836 GNULIB_FUTIMENS
837 GNULIB_FSTATAT
838 GNULIB_FSTAT
839 GNULIB_FCHMODAT
840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
841 NEXT_INTTYPES_H
842 UINT64_MAX_EQ_ULONG_MAX
843 UINT32_MAX_LT_UINTMAX_MAX
844 PRIPTR_PREFIX
845 PRI_MACROS_BROKEN
846 INT64_MAX_EQ_LONG_MAX
847 INT32_MAX_LT_INTMAX_MAX
848 REPLACE_STRTOIMAX
849 HAVE_DECL_STRTOUMAX
850 HAVE_DECL_STRTOIMAX
851 HAVE_DECL_IMAXDIV
852 HAVE_DECL_IMAXABS
853 GNULIB_STRTOUMAX
854 GNULIB_STRTOIMAX
855 GNULIB_IMAXDIV
856 GNULIB_IMAXABS
857 GL_GENERATE_STDINT_H_FALSE
858 GL_GENERATE_STDINT_H_TRUE
859 STDINT_H
860 WINT_T_SUFFIX
861 WCHAR_T_SUFFIX
862 SIG_ATOMIC_T_SUFFIX
863 SIZE_T_SUFFIX
864 PTRDIFF_T_SUFFIX
865 HAVE_SIGNED_WINT_T
866 HAVE_SIGNED_WCHAR_T
867 HAVE_SIGNED_SIG_ATOMIC_T
868 BITSIZEOF_WINT_T
869 BITSIZEOF_WCHAR_T
870 BITSIZEOF_SIG_ATOMIC_T
871 BITSIZEOF_SIZE_T
872 BITSIZEOF_PTRDIFF_T
873 APPLE_UNIVERSAL_BUILD
874 HAVE_SYS_BITYPES_H
875 HAVE_SYS_INTTYPES_H
876 HAVE_STDINT_H
877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
878 NEXT_STDINT_H
879 HAVE_SYS_TYPES_H
880 HAVE_INTTYPES_H
881 HAVE_WCHAR_H
882 HAVE_UNSIGNED_LONG_LONG_INT
883 HAVE_LONG_LONG_INT
884 HAVE_WINSOCK2_H
885 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
886 NEXT_SYS_TIME_H
887 REPLACE_STRUCT_TIMEVAL
888 REPLACE_GETTIMEOFDAY
889 HAVE_SYS_TIME_H
890 HAVE_STRUCT_TIMEVAL
891 HAVE_GETTIMEOFDAY
892 GNULIB_GETTIMEOFDAY
893 GNULIB_GL_UNISTD_H_GETOPT
894 GETOPT_H
895 HAVE_GETOPT_H
896 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
897 NEXT_GETOPT_H
898 PRAGMA_COLUMNS
899 PRAGMA_SYSTEM_HEADER
900 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
901 INCLUDE_NEXT
902 GETLOADAVG_LIBS
903 REPLACE_WCTOMB
904 REPLACE_UNSETENV
905 REPLACE_STRTOD
906 REPLACE_SETENV
907 REPLACE_REALPATH
908 REPLACE_REALLOC
909 REPLACE_RANDOM_R
910 REPLACE_PUTENV
911 REPLACE_PTSNAME_R
912 REPLACE_PTSNAME
913 REPLACE_MKSTEMP
914 REPLACE_MBTOWC
915 REPLACE_MALLOC
916 REPLACE_CANONICALIZE_FILE_NAME
917 REPLACE_CALLOC
918 HAVE_DECL_UNSETENV
919 HAVE_UNLOCKPT
920 HAVE_SYS_LOADAVG_H
921 HAVE_STRUCT_RANDOM_DATA
922 HAVE_STRTOULL
923 HAVE_STRTOLL
924 HAVE_STRTOD
925 HAVE_DECL_SETENV
926 HAVE_SETENV
927 HAVE_RPMATCH
928 HAVE_REALPATH
929 HAVE_RANDOM_R
930 HAVE_RANDOM_H
931 HAVE_RANDOM
932 HAVE_PTSNAME_R
933 HAVE_PTSNAME
934 HAVE_POSIX_OPENPT
935 HAVE_MKSTEMPS
936 HAVE_MKSTEMP
937 HAVE_MKOSTEMPS
938 HAVE_MKOSTEMP
939 HAVE_MKDTEMP
940 HAVE_GRANTPT
941 HAVE_GETSUBOPT
942 HAVE_DECL_GETLOADAVG
943 HAVE_CANONICALIZE_FILE_NAME
944 HAVE_ATOLL
945 HAVE__EXIT
946 GNULIB_WCTOMB
947 GNULIB_UNSETENV
948 GNULIB_UNLOCKPT
949 GNULIB_SYSTEM_POSIX
950 GNULIB_STRTOULL
951 GNULIB_STRTOLL
952 GNULIB_STRTOD
953 GNULIB_SETENV
954 GNULIB_RPMATCH
955 GNULIB_REALPATH
956 GNULIB_REALLOC_POSIX
957 GNULIB_RANDOM_R
958 GNULIB_RANDOM
959 GNULIB_PUTENV
960 GNULIB_PTSNAME_R
961 GNULIB_PTSNAME
962 GNULIB_POSIX_OPENPT
963 GNULIB_MKSTEMPS
964 GNULIB_MKSTEMP
965 GNULIB_MKOSTEMPS
966 GNULIB_MKOSTEMP
967 GNULIB_MKDTEMP
968 GNULIB_MBTOWC
969 GNULIB_MALLOC_POSIX
970 GNULIB_GRANTPT
971 GNULIB_GETSUBOPT
972 GNULIB_GETLOADAVG
973 GNULIB_CANONICALIZE_FILE_NAME
974 GNULIB_CALLOC_POSIX
975 GNULIB_ATOLL
976 GNULIB__EXIT
977 GL_GENERATE_EXECINFO_H_FALSE
978 GL_GENERATE_EXECINFO_H_TRUE
979 LIB_EXECINFO
980 EXECINFO_H
981 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
982 UNISTD_H_HAVE_WINSOCK2_H
983 REPLACE_WRITE
984 REPLACE_USLEEP
985 REPLACE_UNLINKAT
986 REPLACE_UNLINK
987 REPLACE_TTYNAME_R
988 REPLACE_SYMLINK
989 REPLACE_SLEEP
990 REPLACE_RMDIR
991 REPLACE_READLINK
992 REPLACE_READ
993 REPLACE_PWRITE
994 REPLACE_PREAD
995 REPLACE_LSEEK
996 REPLACE_LINKAT
997 REPLACE_LINK
998 REPLACE_LCHOWN
999 REPLACE_ISATTY
1000 REPLACE_GETPAGESIZE
1001 REPLACE_GETGROUPS
1002 REPLACE_GETLOGIN_R
1003 REPLACE_GETDOMAINNAME
1004 REPLACE_GETCWD
1005 REPLACE_FTRUNCATE
1006 REPLACE_FCHOWNAT
1007 REPLACE_DUP2
1008 REPLACE_DUP
1009 REPLACE_CLOSE
1010 REPLACE_CHOWN
1011 HAVE_SYS_PARAM_H
1012 HAVE_OS_H
1013 HAVE_DECL_TTYNAME_R
1014 HAVE_DECL_SETHOSTNAME
1015 HAVE_DECL_GETUSERSHELL
1016 HAVE_DECL_GETPAGESIZE
1017 HAVE_DECL_GETLOGIN_R
1018 HAVE_DECL_GETDOMAINNAME
1019 HAVE_DECL_FDATASYNC
1020 HAVE_DECL_FCHDIR
1021 HAVE_DECL_ENVIRON
1022 HAVE_USLEEP
1023 HAVE_UNLINKAT
1024 HAVE_SYMLINKAT
1025 HAVE_SYMLINK
1026 HAVE_SLEEP
1027 HAVE_SETHOSTNAME
1028 HAVE_READLINKAT
1029 HAVE_READLINK
1030 HAVE_PWRITE
1031 HAVE_PREAD
1032 HAVE_PIPE2
1033 HAVE_PIPE
1034 HAVE_LINKAT
1035 HAVE_LINK
1036 HAVE_LCHOWN
1037 HAVE_GROUP_MEMBER
1038 HAVE_GETPAGESIZE
1039 HAVE_GETLOGIN
1040 HAVE_GETHOSTNAME
1041 HAVE_GETGROUPS
1042 HAVE_GETDTABLESIZE
1043 HAVE_FTRUNCATE
1044 HAVE_FSYNC
1045 HAVE_FDATASYNC
1046 HAVE_FCHOWNAT
1047 HAVE_FCHDIR
1048 HAVE_FACCESSAT
1049 HAVE_EUIDACCESS
1050 HAVE_DUP3
1051 HAVE_DUP2
1052 HAVE_CHOWN
1053 GNULIB_WRITE
1054 GNULIB_USLEEP
1055 GNULIB_UNLINKAT
1056 GNULIB_UNLINK
1057 GNULIB_UNISTD_H_SIGPIPE
1058 GNULIB_UNISTD_H_NONBLOCKING
1059 GNULIB_TTYNAME_R
1060 GNULIB_SYMLINKAT
1061 GNULIB_SYMLINK
1062 GNULIB_SLEEP
1063 GNULIB_SETHOSTNAME
1064 GNULIB_RMDIR
1065 GNULIB_READLINKAT
1066 GNULIB_READLINK
1067 GNULIB_READ
1068 GNULIB_PWRITE
1069 GNULIB_PREAD
1070 GNULIB_PIPE2
1071 GNULIB_PIPE
1072 GNULIB_LSEEK
1073 GNULIB_LINKAT
1074 GNULIB_LINK
1075 GNULIB_LCHOWN
1076 GNULIB_ISATTY
1077 GNULIB_GROUP_MEMBER
1078 GNULIB_GETUSERSHELL
1079 GNULIB_GETPAGESIZE
1080 GNULIB_GETLOGIN_R
1081 GNULIB_GETLOGIN
1082 GNULIB_GETHOSTNAME
1083 GNULIB_GETGROUPS
1084 GNULIB_GETDTABLESIZE
1085 GNULIB_GETDOMAINNAME
1086 GNULIB_GETCWD
1087 GNULIB_FTRUNCATE
1088 GNULIB_FSYNC
1089 GNULIB_FDATASYNC
1090 GNULIB_FCHOWNAT
1091 GNULIB_FCHDIR
1092 GNULIB_FACCESSAT
1093 GNULIB_EUIDACCESS
1094 GNULIB_ENVIRON
1095 GNULIB_DUP3
1096 GNULIB_DUP2
1097 GNULIB_DUP
1098 GNULIB_CLOSE
1099 GNULIB_CHOWN
1100 GNULIB_CHDIR
1101 LIB_CLOCK_GETTIME
1102 GL_GENERATE_ALLOCA_H_FALSE
1103 GL_GENERATE_ALLOCA_H_TRUE
1104 ALLOCA_H
1105 ALLOCA
1106 GL_COND_LIBTOOL_FALSE
1107 GL_COND_LIBTOOL_TRUE
1108 POST_ALLOC_OBJ
1109 PRE_ALLOC_OBJ
1110 CYGWIN_OBJ
1111 RALLOC_OBJ
1112 OLDXMENU_DEPS
1113 LIBX_OTHER
1114 LIBXMENU
1115 OLDXMENU
1116 OLDXMENU_TARGET
1117 LIBXT_OTHER
1118 TOOLKIT_LIBW
1119 WIDGET_OBJ
1120 XOBJ
1121 XMENU_OBJ
1122 FONT_OBJ
1123 OTHER_FILES
1124 GNU_OBJC_CFLAGS
1125 ns_appsrc
1126 ns_appresdir
1127 ns_appbindir
1128 ns_appdir
1129 X_TOOLKIT_TYPE
1130 GNUSTEP_CFLAGS
1131 C_SWITCH_X_SITE
1132 LD_SWITCH_X_SITE
1133 gameuser
1134 gamedir
1135 bitmapdir
1136 archlibdir
1137 etcdir
1138 x_default_search_path
1139 lisppath
1140 locallisppath
1141 standardlisppath
1142 leimdir
1143 lispdir
1144 srcdir
1145 canonical
1146 configuration
1147 version
1148 copyright
1149 KRB4LIB
1150 DESLIB
1151 KRB5LIB
1152 CRYPTOLIB
1153 COM_ERRLIB
1154 LIBRESOLV
1155 LIBHESIOD
1156 TERMCAP_OBJ
1157 LIBS_TERMCAP
1158 BLESSMAIL_TARGET
1159 LIBS_MAIL
1160 liblockfile
1161 LIBXML2_LIBS
1162 LIBXML2_CFLAGS
1163 LIBXSM
1164 LIBGPM
1165 LIBGIF
1166 LIBTIFF
1167 LIBPNG
1168 LIBJPEG
1169 LIBXPM
1170 M17N_FLT_LIBS
1171 M17N_FLT_CFLAGS
1172 LIBOTF_LIBS
1173 LIBOTF_CFLAGS
1174 FREETYPE_LIBS
1175 FREETYPE_CFLAGS
1176 XFT_LIBS
1177 XFT_CFLAGS
1178 FONTCONFIG_LIBS
1179 FONTCONFIG_CFLAGS
1180 LIBXMU
1181 LIBXTR6
1182 LIBGNUTLS_LIBS
1183 LIBGNUTLS_CFLAGS
1184 LIBSELINUX_LIBS
1185 SETTINGS_LIBS
1186 SETTINGS_CFLAGS
1187 GOBJECT_LIBS
1188 GOBJECT_CFLAGS
1189 GCONF_LIBS
1190 GCONF_CFLAGS
1191 GSETTINGS_LIBS
1192 GSETTINGS_CFLAGS
1193 DBUS_OBJ
1194 DBUS_LIBS
1195 DBUS_CFLAGS
1196 GTK_OBJ
1197 GTK_LIBS
1198 GTK_CFLAGS
1199 IMAGEMAGICK_LIBS
1200 IMAGEMAGICK_CFLAGS
1201 RSVG_LIBS
1202 RSVG_CFLAGS
1203 LIB_PTHREAD
1204 VMLIMIT_OBJ
1205 GMALLOC_OBJ
1206 HAVE_XSERVER
1207 W32_LIBS
1208 W32_OBJ
1209 LIB_STANDARD
1210 NS_OBJC_OBJ
1211 NS_OBJ
1212 ns_self_contained
1213 INSTALL_ARCH_INDEP_EXTRA
1214 LIBS_GNUSTEP
1215 LD_SWITCH_X_SITE_RPATH
1216 XMKMF
1217 DEPFLAGS
1218 MKDEPDIR
1219 CFLAGS_SOUND
1220 ALSA_LIBS
1221 ALSA_CFLAGS
1222 LIBSOUND
1223 PKG_CONFIG
1224 CRT_DIR
1225 START_FILES
1226 LIB_MATH
1227 LIBS_SYSTEM
1228 C_SWITCH_SYSTEM
1229 UNEXEC_OBJ
1230 C_SWITCH_MACHINE
1231 LD_SWITCH_SYSTEM
1232 CANNOT_DUMP
1233 INFO_OPTS
1234 INFO_EXT
1235 HAVE_MAKEINFO
1236 PAXCTL
1237 GZIP_PROG
1238 INSTALL_INFO
1239 LN_S
1240 GNULIB_WARN_CFLAGS
1241 WARN_CFLAGS
1242 WERROR_CFLAGS
1243 RANLIB
1244 ARFLAGS
1246 EGREP
1247 GREP
1249 am__fastdepCC_FALSE
1250 am__fastdepCC_TRUE
1251 CCDEPMODE
1252 AMDEPBACKSLASH
1253 AMDEP_FALSE
1254 AMDEP_TRUE
1255 am__quote
1256 am__include
1257 DEPDIR
1258 OBJEXT
1259 EXEEXT
1260 ac_ct_CC
1261 CPPFLAGS
1262 LDFLAGS
1263 CFLAGS
1265 host_os
1266 host_vendor
1267 host_cpu
1268 host
1269 build_os
1270 build_vendor
1271 build_cpu
1272 build
1273 PROFILING_CFLAGS
1274 GZIP_INFO
1275 cache_file
1276 am__untar
1277 am__tar
1278 AMTAR
1279 am__leading_dot
1280 SET_MAKE
1282 mkdir_p
1283 MKDIR_P
1284 INSTALL_STRIP_PROGRAM
1285 STRIP
1286 install_sh
1287 MAKEINFO
1288 AUTOHEADER
1289 AUTOMAKE
1290 AUTOCONF
1291 ACLOCAL
1292 VERSION
1293 PACKAGE
1294 CYGPATH_W
1295 am__isrc
1296 INSTALL_DATA
1297 INSTALL_SCRIPT
1298 INSTALL_PROGRAM
1299 target_alias
1300 host_alias
1301 build_alias
1302 LIBS
1303 ECHO_T
1304 ECHO_N
1305 ECHO_C
1306 DEFS
1307 mandir
1308 localedir
1309 libdir
1310 psdir
1311 pdfdir
1312 dvidir
1313 htmldir
1314 infodir
1315 docdir
1316 oldincludedir
1317 includedir
1318 localstatedir
1319 sharedstatedir
1320 sysconfdir
1321 datadir
1322 datarootdir
1323 libexecdir
1324 sbindir
1325 bindir
1326 program_transform_name
1327 prefix
1328 exec_prefix
1329 PACKAGE_URL
1330 PACKAGE_BUGREPORT
1331 PACKAGE_STRING
1332 PACKAGE_VERSION
1333 PACKAGE_TARNAME
1334 PACKAGE_NAME
1335 PATH_SEPARATOR
1336 SHELL'
1337 ac_subst_files='deps_frag
1338 lisp_frag'
1339 ac_user_opts='
1340 enable_option_checking
1341 with_all
1342 with_pop
1343 with_kerberos
1344 with_kerberos5
1345 with_hesiod
1346 with_mmdf
1347 with_mail_unlink
1348 with_mailhost
1349 with_sound
1350 with_x_toolkit
1351 with_wide_int
1352 with_xpm
1353 with_jpeg
1354 with_tiff
1355 with_gif
1356 with_png
1357 with_rsvg
1358 with_xml2
1359 with_imagemagick
1360 with_xft
1361 with_libotf
1362 with_m17n_flt
1363 with_toolkit_scroll_bars
1364 with_xaw3d
1365 with_xim
1366 with_ns
1367 with_w32
1368 with_gpm
1369 with_dbus
1370 with_gconf
1371 with_gsettings
1372 with_selinux
1373 with_gnutls
1374 with_makeinfo
1375 with_compress_info
1376 with_pkg_config_prog
1377 with_crt_dir
1378 with_gameuser
1379 with_gnustep_conf
1380 enable_ns_self_contained
1381 enable_locallisppath
1382 enable_checking
1383 enable_check_lisp_object_type
1384 enable_profiling
1385 enable_autodepend
1386 enable_dependency_tracking
1387 enable_largefile
1388 enable_gcc_warnings
1389 enable_link_time_optimization
1390 with_x
1392 ac_precious_vars='build_alias
1393 host_alias
1394 target_alias
1396 CFLAGS
1397 LDFLAGS
1398 LIBS
1399 CPPFLAGS
1401 XMKMF'
1404 # Initialize some variables set by options.
1405 ac_init_help=
1406 ac_init_version=false
1407 ac_unrecognized_opts=
1408 ac_unrecognized_sep=
1409 # The variables have the same names as the options, with
1410 # dashes changed to underlines.
1411 cache_file=/dev/null
1412 exec_prefix=NONE
1413 no_create=
1414 no_recursion=
1415 prefix=NONE
1416 program_prefix=NONE
1417 program_suffix=NONE
1418 program_transform_name=s,x,x,
1419 silent=
1420 site=
1421 srcdir=
1422 verbose=
1423 x_includes=NONE
1424 x_libraries=NONE
1426 # Installation directory options.
1427 # These are left unexpanded so users can "make install exec_prefix=/foo"
1428 # and all the variables that are supposed to be based on exec_prefix
1429 # by default will actually change.
1430 # Use braces instead of parens because sh, perl, etc. also accept them.
1431 # (The list follows the same order as the GNU Coding Standards.)
1432 bindir='${exec_prefix}/bin'
1433 sbindir='${exec_prefix}/sbin'
1434 libexecdir='${exec_prefix}/libexec'
1435 datarootdir='${prefix}/share'
1436 datadir='${datarootdir}'
1437 sysconfdir='${prefix}/etc'
1438 sharedstatedir='${prefix}/com'
1439 localstatedir='${prefix}/var'
1440 includedir='${prefix}/include'
1441 oldincludedir='/usr/include'
1442 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1443 infodir='${datarootdir}/info'
1444 htmldir='${docdir}'
1445 dvidir='${docdir}'
1446 pdfdir='${docdir}'
1447 psdir='${docdir}'
1448 libdir='${exec_prefix}/lib'
1449 localedir='${datarootdir}/locale'
1450 mandir='${datarootdir}/man'
1452 ac_prev=
1453 ac_dashdash=
1454 for ac_option
1456 # If the previous option needs an argument, assign it.
1457 if test -n "$ac_prev"; then
1458 eval $ac_prev=\$ac_option
1459 ac_prev=
1460 continue
1463 case $ac_option in
1464 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1465 *) ac_optarg=yes ;;
1466 esac
1468 # Accept the important Cygnus configure options, so we can diagnose typos.
1470 case $ac_dashdash$ac_option in
1472 ac_dashdash=yes ;;
1474 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1475 ac_prev=bindir ;;
1476 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1477 bindir=$ac_optarg ;;
1479 -build | --build | --buil | --bui | --bu)
1480 ac_prev=build_alias ;;
1481 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1482 build_alias=$ac_optarg ;;
1484 -cache-file | --cache-file | --cache-fil | --cache-fi \
1485 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1486 ac_prev=cache_file ;;
1487 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1488 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1489 cache_file=$ac_optarg ;;
1491 --config-cache | -C)
1492 cache_file=config.cache ;;
1494 -datadir | --datadir | --datadi | --datad)
1495 ac_prev=datadir ;;
1496 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1497 datadir=$ac_optarg ;;
1499 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1500 | --dataroo | --dataro | --datar)
1501 ac_prev=datarootdir ;;
1502 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1503 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1504 datarootdir=$ac_optarg ;;
1506 -disable-* | --disable-*)
1507 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1508 # Reject names that are not valid shell variable names.
1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1510 as_fn_error "invalid feature name: $ac_useropt"
1511 ac_useropt_orig=$ac_useropt
1512 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1515 "enable_$ac_useropt"
1516 "*) ;;
1517 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1518 ac_unrecognized_sep=', ';;
1519 esac
1520 eval enable_$ac_useropt=no ;;
1522 -docdir | --docdir | --docdi | --doc | --do)
1523 ac_prev=docdir ;;
1524 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1525 docdir=$ac_optarg ;;
1527 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1528 ac_prev=dvidir ;;
1529 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1530 dvidir=$ac_optarg ;;
1532 -enable-* | --enable-*)
1533 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1534 # Reject names that are not valid shell variable names.
1535 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1536 as_fn_error "invalid feature name: $ac_useropt"
1537 ac_useropt_orig=$ac_useropt
1538 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539 case $ac_user_opts in
1541 "enable_$ac_useropt"
1542 "*) ;;
1543 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1544 ac_unrecognized_sep=', ';;
1545 esac
1546 eval enable_$ac_useropt=\$ac_optarg ;;
1548 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1549 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1550 | --exec | --exe | --ex)
1551 ac_prev=exec_prefix ;;
1552 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1553 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1554 | --exec=* | --exe=* | --ex=*)
1555 exec_prefix=$ac_optarg ;;
1557 -gas | --gas | --ga | --g)
1558 # Obsolete; use --with-gas.
1559 with_gas=yes ;;
1561 -help | --help | --hel | --he | -h)
1562 ac_init_help=long ;;
1563 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1564 ac_init_help=recursive ;;
1565 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1566 ac_init_help=short ;;
1568 -host | --host | --hos | --ho)
1569 ac_prev=host_alias ;;
1570 -host=* | --host=* | --hos=* | --ho=*)
1571 host_alias=$ac_optarg ;;
1573 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1574 ac_prev=htmldir ;;
1575 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1576 | --ht=*)
1577 htmldir=$ac_optarg ;;
1579 -includedir | --includedir | --includedi | --included | --include \
1580 | --includ | --inclu | --incl | --inc)
1581 ac_prev=includedir ;;
1582 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1583 | --includ=* | --inclu=* | --incl=* | --inc=*)
1584 includedir=$ac_optarg ;;
1586 -infodir | --infodir | --infodi | --infod | --info | --inf)
1587 ac_prev=infodir ;;
1588 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1589 infodir=$ac_optarg ;;
1591 -libdir | --libdir | --libdi | --libd)
1592 ac_prev=libdir ;;
1593 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1594 libdir=$ac_optarg ;;
1596 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1597 | --libexe | --libex | --libe)
1598 ac_prev=libexecdir ;;
1599 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1600 | --libexe=* | --libex=* | --libe=*)
1601 libexecdir=$ac_optarg ;;
1603 -localedir | --localedir | --localedi | --localed | --locale)
1604 ac_prev=localedir ;;
1605 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1606 localedir=$ac_optarg ;;
1608 -localstatedir | --localstatedir | --localstatedi | --localstated \
1609 | --localstate | --localstat | --localsta | --localst | --locals)
1610 ac_prev=localstatedir ;;
1611 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1612 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1613 localstatedir=$ac_optarg ;;
1615 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1616 ac_prev=mandir ;;
1617 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1618 mandir=$ac_optarg ;;
1620 -nfp | --nfp | --nf)
1621 # Obsolete; use --without-fp.
1622 with_fp=no ;;
1624 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1625 | --no-cr | --no-c | -n)
1626 no_create=yes ;;
1628 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1629 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1630 no_recursion=yes ;;
1632 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1633 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1634 | --oldin | --oldi | --old | --ol | --o)
1635 ac_prev=oldincludedir ;;
1636 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1637 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1638 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1639 oldincludedir=$ac_optarg ;;
1641 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1642 ac_prev=prefix ;;
1643 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1644 prefix=$ac_optarg ;;
1646 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1647 | --program-pre | --program-pr | --program-p)
1648 ac_prev=program_prefix ;;
1649 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1650 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1651 program_prefix=$ac_optarg ;;
1653 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1654 | --program-suf | --program-su | --program-s)
1655 ac_prev=program_suffix ;;
1656 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1657 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1658 program_suffix=$ac_optarg ;;
1660 -program-transform-name | --program-transform-name \
1661 | --program-transform-nam | --program-transform-na \
1662 | --program-transform-n | --program-transform- \
1663 | --program-transform | --program-transfor \
1664 | --program-transfo | --program-transf \
1665 | --program-trans | --program-tran \
1666 | --progr-tra | --program-tr | --program-t)
1667 ac_prev=program_transform_name ;;
1668 -program-transform-name=* | --program-transform-name=* \
1669 | --program-transform-nam=* | --program-transform-na=* \
1670 | --program-transform-n=* | --program-transform-=* \
1671 | --program-transform=* | --program-transfor=* \
1672 | --program-transfo=* | --program-transf=* \
1673 | --program-trans=* | --program-tran=* \
1674 | --progr-tra=* | --program-tr=* | --program-t=*)
1675 program_transform_name=$ac_optarg ;;
1677 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1678 ac_prev=pdfdir ;;
1679 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1680 pdfdir=$ac_optarg ;;
1682 -psdir | --psdir | --psdi | --psd | --ps)
1683 ac_prev=psdir ;;
1684 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1685 psdir=$ac_optarg ;;
1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688 | -silent | --silent | --silen | --sile | --sil)
1689 silent=yes ;;
1691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1692 ac_prev=sbindir ;;
1693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1694 | --sbi=* | --sb=*)
1695 sbindir=$ac_optarg ;;
1697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1699 | --sharedst | --shareds | --shared | --share | --shar \
1700 | --sha | --sh)
1701 ac_prev=sharedstatedir ;;
1702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1705 | --sha=* | --sh=*)
1706 sharedstatedir=$ac_optarg ;;
1708 -site | --site | --sit)
1709 ac_prev=site ;;
1710 -site=* | --site=* | --sit=*)
1711 site=$ac_optarg ;;
1713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1714 ac_prev=srcdir ;;
1715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1716 srcdir=$ac_optarg ;;
1718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1719 | --syscon | --sysco | --sysc | --sys | --sy)
1720 ac_prev=sysconfdir ;;
1721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1723 sysconfdir=$ac_optarg ;;
1725 -target | --target | --targe | --targ | --tar | --ta | --t)
1726 ac_prev=target_alias ;;
1727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1728 target_alias=$ac_optarg ;;
1730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1731 verbose=yes ;;
1733 -version | --version | --versio | --versi | --vers | -V)
1734 ac_init_version=: ;;
1736 -with-* | --with-*)
1737 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1738 # Reject names that are not valid shell variable names.
1739 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1740 as_fn_error "invalid package name: $ac_useropt"
1741 ac_useropt_orig=$ac_useropt
1742 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1743 case $ac_user_opts in
1745 "with_$ac_useropt"
1746 "*) ;;
1747 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1748 ac_unrecognized_sep=', ';;
1749 esac
1750 eval with_$ac_useropt=\$ac_optarg ;;
1752 -without-* | --without-*)
1753 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1754 # Reject names that are not valid shell variable names.
1755 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1756 as_fn_error "invalid package name: $ac_useropt"
1757 ac_useropt_orig=$ac_useropt
1758 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1759 case $ac_user_opts in
1761 "with_$ac_useropt"
1762 "*) ;;
1763 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1764 ac_unrecognized_sep=', ';;
1765 esac
1766 eval with_$ac_useropt=no ;;
1768 --x)
1769 # Obsolete; use --with-x.
1770 with_x=yes ;;
1772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1773 | --x-incl | --x-inc | --x-in | --x-i)
1774 ac_prev=x_includes ;;
1775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1777 x_includes=$ac_optarg ;;
1779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1781 ac_prev=x_libraries ;;
1782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1784 x_libraries=$ac_optarg ;;
1786 -*) as_fn_error "unrecognized option: \`$ac_option'
1787 Try \`$0 --help' for more information."
1790 *=*)
1791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1792 # Reject names that are not valid shell variable names.
1793 case $ac_envvar in #(
1794 '' | [0-9]* | *[!_$as_cr_alnum]* )
1795 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1796 esac
1797 eval $ac_envvar=\$ac_optarg
1798 export $ac_envvar ;;
1801 # FIXME: should be removed in autoconf 3.0.
1802 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1804 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1808 esac
1809 done
1811 if test -n "$ac_prev"; then
1812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1813 as_fn_error "missing argument to $ac_option"
1816 if test -n "$ac_unrecognized_opts"; then
1817 case $enable_option_checking in
1818 no) ;;
1819 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1820 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1821 esac
1824 # Check all directory arguments for consistency.
1825 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1826 datadir sysconfdir sharedstatedir localstatedir includedir \
1827 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1828 libdir localedir mandir
1830 eval ac_val=\$$ac_var
1831 # Remove trailing slashes.
1832 case $ac_val in
1833 */ )
1834 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1835 eval $ac_var=\$ac_val;;
1836 esac
1837 # Be sure to have absolute directory names.
1838 case $ac_val in
1839 [\\/$]* | ?:[\\/]* ) continue;;
1840 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1841 esac
1842 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1843 done
1845 # There might be people who depend on the old broken behavior: `$host'
1846 # used to hold the argument of --host etc.
1847 # FIXME: To remove some day.
1848 build=$build_alias
1849 host=$host_alias
1850 target=$target_alias
1852 # FIXME: To remove some day.
1853 if test "x$host_alias" != x; then
1854 if test "x$build_alias" = x; then
1855 cross_compiling=maybe
1856 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1857 If a cross compiler is detected then cross compile mode will be used." >&2
1858 elif test "x$build_alias" != "x$host_alias"; then
1859 cross_compiling=yes
1863 ac_tool_prefix=
1864 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1866 test "$silent" = yes && exec 6>/dev/null
1869 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1870 ac_ls_di=`ls -di .` &&
1871 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1872 as_fn_error "working directory cannot be determined"
1873 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1874 as_fn_error "pwd does not report name of working directory"
1877 # Find the source files, if location was not specified.
1878 if test -z "$srcdir"; then
1879 ac_srcdir_defaulted=yes
1880 # Try the directory containing this script, then the parent directory.
1881 ac_confdir=`$as_dirname -- "$as_myself" ||
1882 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1883 X"$as_myself" : 'X\(//\)[^/]' \| \
1884 X"$as_myself" : 'X\(//\)$' \| \
1885 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1886 $as_echo X"$as_myself" |
1887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1888 s//\1/
1891 /^X\(\/\/\)[^/].*/{
1892 s//\1/
1895 /^X\(\/\/\)$/{
1896 s//\1/
1899 /^X\(\/\).*/{
1900 s//\1/
1903 s/.*/./; q'`
1904 srcdir=$ac_confdir
1905 if test ! -r "$srcdir/$ac_unique_file"; then
1906 srcdir=..
1908 else
1909 ac_srcdir_defaulted=no
1911 if test ! -r "$srcdir/$ac_unique_file"; then
1912 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1913 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1915 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1916 ac_abs_confdir=`(
1917 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1918 pwd)`
1919 # When building in place, set srcdir=.
1920 if test "$ac_abs_confdir" = "$ac_pwd"; then
1921 srcdir=.
1923 # Remove unnecessary trailing slashes from srcdir.
1924 # Double slashes in file names in object file debugging info
1925 # mess up M-x gdb in Emacs.
1926 case $srcdir in
1927 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1928 esac
1929 for ac_var in $ac_precious_vars; do
1930 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1931 eval ac_env_${ac_var}_value=\$${ac_var}
1932 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1933 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1934 done
1937 # Report the --help message.
1939 if test "$ac_init_help" = "long"; then
1940 # Omit some internal or obsolete options to make the list less imposing.
1941 # This message is too long to be a string in the A/UX 3.1 sh.
1942 cat <<_ACEOF
1943 \`configure' configures emacs 24.3 to adapt to many kinds of systems.
1945 Usage: $0 [OPTION]... [VAR=VALUE]...
1947 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1948 VAR=VALUE. See below for descriptions of some of the useful variables.
1950 Defaults for the options are specified in brackets.
1952 Configuration:
1953 -h, --help display this help and exit
1954 --help=short display options specific to this package
1955 --help=recursive display the short help of all the included packages
1956 -V, --version display version information and exit
1957 -q, --quiet, --silent do not print \`checking...' messages
1958 --cache-file=FILE cache test results in FILE [disabled]
1959 -C, --config-cache alias for \`--cache-file=config.cache'
1960 -n, --no-create do not create output files
1961 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1963 Installation directories:
1964 --prefix=PREFIX install architecture-independent files in PREFIX
1965 [$ac_default_prefix]
1966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1967 [PREFIX]
1969 By default, \`make install' will install all the files in
1970 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1971 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1972 for instance \`--prefix=\$HOME'.
1974 For better control, use the options below.
1976 Fine tuning of the installation directories:
1977 --bindir=DIR user executables [EPREFIX/bin]
1978 --sbindir=DIR system admin executables [EPREFIX/sbin]
1979 --libexecdir=DIR program executables [EPREFIX/libexec]
1980 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1981 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1982 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1983 --libdir=DIR object code libraries [EPREFIX/lib]
1984 --includedir=DIR C header files [PREFIX/include]
1985 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1986 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1987 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1988 --infodir=DIR info documentation [DATAROOTDIR/info]
1989 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1990 --mandir=DIR man documentation [DATAROOTDIR/man]
1991 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1992 --htmldir=DIR html documentation [DOCDIR]
1993 --dvidir=DIR dvi documentation [DOCDIR]
1994 --pdfdir=DIR pdf documentation [DOCDIR]
1995 --psdir=DIR ps documentation [DOCDIR]
1996 _ACEOF
1998 cat <<\_ACEOF
2000 Program names:
2001 --program-prefix=PREFIX prepend PREFIX to installed program names
2002 --program-suffix=SUFFIX append SUFFIX to installed program names
2003 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2005 X features:
2006 --x-includes=DIR X include files are in DIR
2007 --x-libraries=DIR X library files are in DIR
2009 System types:
2010 --build=BUILD configure for building on BUILD [guessed]
2011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2012 _ACEOF
2015 if test -n "$ac_init_help"; then
2016 case $ac_init_help in
2017 short | recursive ) echo "Configuration of emacs 24.3:";;
2018 esac
2019 cat <<\_ACEOF
2021 Optional Features:
2022 --disable-option-checking ignore unrecognized --enable/--with options
2023 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2024 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2025 --disable-ns-self-contained
2026 disable self contained build under NeXTstep
2027 --enable-locallisppath=PATH
2028 directories Emacs should search for lisp files
2029 specific to this site
2030 --enable-checking[=LIST]
2031 enable expensive run-time checks. With LIST, enable
2032 only specific categories of checks. Categories are:
2033 all,yes,no. Flags are: stringbytes, stringoverrun,
2034 stringfreelist, xmallocoverrun, conslist, glyphs
2035 --enable-check-lisp-object-type
2036 enable compile time checks for the Lisp_Object data
2037 type. This is useful for development for catching
2038 certain types of bugs.
2039 --enable-profiling build emacs with low-level, gprof profiling support.
2040 Mainly useful for debugging Emacs itself. May not
2041 work on all platforms. Stops profiler.el working.
2042 --enable-autodepend automatically generate dependencies to .h-files.
2043 Requires GNU Make and Gcc. Enabled if GNU Make and
2044 Gcc is found
2045 --disable-dependency-tracking speeds up one-time build
2046 --enable-dependency-tracking do not reject slow dependency extractors
2047 --disable-largefile omit support for large files
2048 --enable-gcc-warnings turn on lots of GCC warnings/errors. This is
2049 intended for developers, and may generate false
2050 alarms when used with older or non-GNU development
2051 tools.
2052 --enable-link-time-optimization
2053 build emacs with link-time optimization. This is
2054 supported only for GCC since 4.5.0.
2056 Optional Packages:
2057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2059 --without-all omit almost all features and build small executable
2060 with minimal dependencies
2061 --without-pop don't support POP mail retrieval with movemail
2062 --with-kerberos support Kerberos-authenticated POP
2063 --with-kerberos5 support Kerberos version 5 authenticated POP
2064 --with-hesiod support Hesiod to get the POP server host
2065 --with-mmdf support MMDF mailboxes
2066 --with-mail-unlink unlink, rather than empty, mail spool after reading
2067 --with-mailhost=HOSTNAME
2068 string giving default POP mail host
2069 --without-sound don't compile with sound support
2070 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2071 gtk3, lucid or athena, motif, no)
2072 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2073 --without-xpm don't compile with XPM image support
2074 --without-jpeg don't compile with JPEG image support
2075 --without-tiff don't compile with TIFF image support
2076 --without-gif don't compile with GIF image support
2077 --without-png don't compile with PNG image support
2078 --without-rsvg don't compile with SVG image support
2079 --without-xml2 don't compile with XML parsing support
2080 --without-imagemagick don't compile with ImageMagick image support
2081 --without-xft don't use XFT for anti aliased fonts
2082 --without-libotf don't use libotf for OpenType font support
2083 --without-m17n-flt don't use m17n-flt for text shaping
2084 --without-toolkit-scroll-bars
2085 don't use Motif or Xaw3d scroll bars
2086 --without-xaw3d don't use Xaw3d
2087 --without-xim don't use X11 XIM
2088 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2089 --with-w32 use native MS Windows GUI
2090 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2091 console
2092 --without-dbus don't compile with D-Bus support
2093 --without-gconf don't compile with GConf support
2094 --without-gsettings don't compile with GSettings support
2095 --without-selinux don't compile with SELinux support
2096 --without-gnutls don't use -lgnutls for SSL/TLS support
2097 --without-makeinfo don't require makeinfo for building manuals
2098 --without-compress-info don't compress the installed Info pages
2099 --with-pkg-config-prog=PATH
2100 path to pkg-config for finding GTK and librsvg
2101 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2102 /usr/lib, or /usr/lib64 on some platforms.
2103 --with-gameuser=USER user for shared game score files
2104 --with-gnustep-conf=PATH
2105 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2106 or /etc/GNUstep/GNUstep.conf
2107 --with-x use the X Window System
2109 Some influential environment variables:
2110 CC C compiler command
2111 CFLAGS C compiler flags
2112 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2113 nonstandard directory <lib dir>
2114 LIBS libraries to pass to the linker, e.g. -l<library>
2115 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2116 you have headers in a nonstandard directory <include dir>
2117 CPP C preprocessor
2118 XMKMF Path to xmkmf, Makefile generator for X Window System
2120 Use these variables to override the choices made by `configure' or to help
2121 it to find libraries and programs with nonstandard names/locations.
2123 Report bugs to the package provider.
2124 _ACEOF
2125 ac_status=$?
2128 if test "$ac_init_help" = "recursive"; then
2129 # If there are subdirs, report their specific --help.
2130 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2131 test -d "$ac_dir" ||
2132 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2133 continue
2134 ac_builddir=.
2136 case "$ac_dir" in
2137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2139 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2140 # A ".." for each directory in $ac_dir_suffix.
2141 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2142 case $ac_top_builddir_sub in
2143 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2144 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2145 esac ;;
2146 esac
2147 ac_abs_top_builddir=$ac_pwd
2148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2149 # for backward compatibility:
2150 ac_top_builddir=$ac_top_build_prefix
2152 case $srcdir in
2153 .) # We are building in place.
2154 ac_srcdir=.
2155 ac_top_srcdir=$ac_top_builddir_sub
2156 ac_abs_top_srcdir=$ac_pwd ;;
2157 [\\/]* | ?:[\\/]* ) # Absolute name.
2158 ac_srcdir=$srcdir$ac_dir_suffix;
2159 ac_top_srcdir=$srcdir
2160 ac_abs_top_srcdir=$srcdir ;;
2161 *) # Relative name.
2162 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2163 ac_top_srcdir=$ac_top_build_prefix$srcdir
2164 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2165 esac
2166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2168 cd "$ac_dir" || { ac_status=$?; continue; }
2169 # Check for guested configure.
2170 if test -f "$ac_srcdir/configure.gnu"; then
2171 echo &&
2172 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2173 elif test -f "$ac_srcdir/configure"; then
2174 echo &&
2175 $SHELL "$ac_srcdir/configure" --help=recursive
2176 else
2177 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2178 fi || ac_status=$?
2179 cd "$ac_pwd" || { ac_status=$?; break; }
2180 done
2183 test -n "$ac_init_help" && exit $ac_status
2184 if $ac_init_version; then
2185 cat <<\_ACEOF
2186 emacs configure 24.3
2187 generated by GNU Autoconf 2.65
2189 Copyright (C) 2009 Free Software Foundation, Inc.
2190 This configure script is free software; the Free Software Foundation
2191 gives unlimited permission to copy, distribute and modify it.
2192 _ACEOF
2193 exit
2196 ## ------------------------ ##
2197 ## Autoconf initialization. ##
2198 ## ------------------------ ##
2200 # ac_fn_c_try_compile LINENO
2201 # --------------------------
2202 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2203 ac_fn_c_try_compile ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 rm -f conftest.$ac_objext
2207 if { { ac_try="$ac_compile"
2208 case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_compile") 2>conftest.err
2215 ac_status=$?
2216 if test -s conftest.err; then
2217 grep -v '^ *+' conftest.err >conftest.er1
2218 cat conftest.er1 >&5
2219 mv -f conftest.er1 conftest.err
2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222 test $ac_status = 0; } && {
2223 test -z "$ac_c_werror_flag" ||
2224 test ! -s conftest.err
2225 } && test -s conftest.$ac_objext; then :
2226 ac_retval=0
2227 else
2228 $as_echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2231 ac_retval=1
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 as_fn_set_status $ac_retval
2236 } # ac_fn_c_try_compile
2238 # ac_fn_c_try_cpp LINENO
2239 # ----------------------
2240 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2241 ac_fn_c_try_cpp ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 if { { ac_try="$ac_cpp conftest.$ac_ext"
2245 case "(($ac_try" in
2246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2247 *) ac_try_echo=$ac_try;;
2248 esac
2249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2250 $as_echo "$ac_try_echo"; } >&5
2251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2252 ac_status=$?
2253 if test -s conftest.err; then
2254 grep -v '^ *+' conftest.err >conftest.er1
2255 cat conftest.er1 >&5
2256 mv -f conftest.er1 conftest.err
2258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2259 test $ac_status = 0; } >/dev/null && {
2260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2261 test ! -s conftest.err
2262 }; then :
2263 ac_retval=0
2264 else
2265 $as_echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2268 ac_retval=1
2270 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 as_fn_set_status $ac_retval
2273 } # ac_fn_c_try_cpp
2275 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2276 # -------------------------------------------------------
2277 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2278 # the include files in INCLUDES and setting the cache variable VAR
2279 # accordingly.
2280 ac_fn_c_check_header_mongrel ()
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285 $as_echo_n "checking for $2... " >&6; }
2286 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2287 $as_echo_n "(cached) " >&6
2289 eval ac_res=\$$3
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2291 $as_echo "$ac_res" >&6; }
2292 else
2293 # Is the header compilable?
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2295 $as_echo_n "checking $2 usability... " >&6; }
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2299 #include <$2>
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 ac_header_compiler=yes
2303 else
2304 ac_header_compiler=no
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2308 $as_echo "$ac_header_compiler" >&6; }
2310 # Is the header present?
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2312 $as_echo_n "checking $2 presence... " >&6; }
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2315 #include <$2>
2316 _ACEOF
2317 if ac_fn_c_try_cpp "$LINENO"; then :
2318 ac_header_preproc=yes
2319 else
2320 ac_header_preproc=no
2322 rm -f conftest.err conftest.$ac_ext
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2324 $as_echo "$ac_header_preproc" >&6; }
2326 # So? What about this header?
2327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2328 yes:no: )
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2330 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2332 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2334 no:yes:* )
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2336 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2338 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2340 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2342 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2344 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2346 esac
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 eval "$3=\$ac_header_compiler"
2354 eval ac_res=\$$3
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2360 } # ac_fn_c_check_header_mongrel
2362 # ac_fn_c_try_run LINENO
2363 # ----------------------
2364 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2365 # that executables *can* be run.
2366 ac_fn_c_try_run ()
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 if { { ac_try="$ac_link"
2370 case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2373 esac
2374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2375 $as_echo "$ac_try_echo"; } >&5
2376 (eval "$ac_link") 2>&5
2377 ac_status=$?
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2380 { { case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383 esac
2384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385 $as_echo "$ac_try_echo"; } >&5
2386 (eval "$ac_try") 2>&5
2387 ac_status=$?
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; }; }; then :
2390 ac_retval=0
2391 else
2392 $as_echo "$as_me: program exited with status $ac_status" >&5
2393 $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2396 ac_retval=$ac_status
2398 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 as_fn_set_status $ac_retval
2402 } # ac_fn_c_try_run
2404 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2405 # -------------------------------------------------------
2406 # Tests whether HEADER exists and can be compiled using the include files in
2407 # INCLUDES, setting the cache variable VAR accordingly.
2408 ac_fn_c_check_header_compile ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2412 $as_echo_n "checking for $2... " >&6; }
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 #include <$2>
2420 _ACEOF
2421 if ac_fn_c_try_compile "$LINENO"; then :
2422 eval "$3=yes"
2423 else
2424 eval "$3=no"
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 eval ac_res=\$$3
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430 $as_echo "$ac_res" >&6; }
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433 } # ac_fn_c_check_header_compile
2435 # ac_fn_c_try_link LINENO
2436 # -----------------------
2437 # Try to link conftest.$ac_ext, and return whether this succeeded.
2438 ac_fn_c_try_link ()
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 rm -f conftest.$ac_objext conftest$ac_exeext
2442 if { { ac_try="$ac_link"
2443 case "(($ac_try" in
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2446 esac
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449 (eval "$ac_link") 2>conftest.err
2450 ac_status=$?
2451 if test -s conftest.err; then
2452 grep -v '^ *+' conftest.err >conftest.er1
2453 cat conftest.er1 >&5
2454 mv -f conftest.er1 conftest.err
2456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2457 test $ac_status = 0; } && {
2458 test -z "$ac_c_werror_flag" ||
2459 test ! -s conftest.err
2460 } && test -s conftest$ac_exeext && {
2461 test "$cross_compiling" = yes ||
2462 $as_test_x conftest$ac_exeext
2463 }; then :
2464 ac_retval=0
2465 else
2466 $as_echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2469 ac_retval=1
2471 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2472 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2473 # interfere with the next link command; also delete a directory that is
2474 # left behind by Apple's compiler. We do this before executing the actions.
2475 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477 as_fn_set_status $ac_retval
2479 } # ac_fn_c_try_link
2481 # ac_fn_c_check_decl LINENO SYMBOL VAR
2482 # ------------------------------------
2483 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2484 ac_fn_c_check_decl ()
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2488 $as_echo_n "checking whether $2 is declared... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2496 main ()
2498 #ifndef $2
2499 (void) $2;
2500 #endif
2503 return 0;
2505 _ACEOF
2506 if ac_fn_c_try_compile "$LINENO"; then :
2507 eval "$3=yes"
2508 else
2509 eval "$3=no"
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 eval ac_res=\$$3
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 } # ac_fn_c_check_decl
2520 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2521 # ----------------------------------------------
2522 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2523 ac_fn_c_check_header_preproc ()
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2529 $as_echo_n "(cached) " >&6
2530 else
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2533 #include <$2>
2534 _ACEOF
2535 if ac_fn_c_try_cpp "$LINENO"; then :
2536 eval "$3=yes"
2537 else
2538 eval "$3=no"
2540 rm -f conftest.err conftest.$ac_ext
2542 eval ac_res=\$$3
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2547 } # ac_fn_c_check_header_preproc
2549 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2550 # ----------------------------------------------------
2551 # Tries to find if the field MEMBER exists in type AGGR, after including
2552 # INCLUDES, setting cache variable VAR accordingly.
2553 ac_fn_c_check_member ()
2555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2557 $as_echo_n "checking for $2.$3... " >&6; }
2558 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2565 main ()
2567 static $2 ac_aggr;
2568 if (ac_aggr.$3)
2569 return 0;
2571 return 0;
2573 _ACEOF
2574 if ac_fn_c_try_compile "$LINENO"; then :
2575 eval "$4=yes"
2576 else
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2581 main ()
2583 static $2 ac_aggr;
2584 if (sizeof ac_aggr.$3)
2585 return 0;
2587 return 0;
2589 _ACEOF
2590 if ac_fn_c_try_compile "$LINENO"; then :
2591 eval "$4=yes"
2592 else
2593 eval "$4=no"
2595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 eval ac_res=\$$4
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 $as_echo "$ac_res" >&6; }
2602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2604 } # ac_fn_c_check_member
2606 # ac_fn_c_check_func LINENO FUNC VAR
2607 # ----------------------------------
2608 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2609 ac_fn_c_check_func ()
2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613 $as_echo_n "checking for $2... " >&6; }
2614 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2619 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2621 #define $2 innocuous_$2
2623 /* System header to define __stub macros and hopefully few prototypes,
2624 which can conflict with char $2 (); below.
2625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2626 <limits.h> exists even on freestanding compilers. */
2628 #ifdef __STDC__
2629 # include <limits.h>
2630 #else
2631 # include <assert.h>
2632 #endif
2634 #undef $2
2636 /* Override any GCC internal prototype to avoid an error.
2637 Use char because int might match the return type of a GCC
2638 builtin and then its argument prototype would still apply. */
2639 #ifdef __cplusplus
2640 extern "C"
2641 #endif
2642 char $2 ();
2643 /* The GNU C library defines this for functions which it implements
2644 to always fail with ENOSYS. Some functions are actually named
2645 something starting with __ and the normal name is an alias. */
2646 #if defined __stub_$2 || defined __stub___$2
2647 choke me
2648 #endif
2651 main ()
2653 return $2 ();
2655 return 0;
2657 _ACEOF
2658 if ac_fn_c_try_link "$LINENO"; then :
2659 eval "$3=yes"
2660 else
2661 eval "$3=no"
2663 rm -f core conftest.err conftest.$ac_objext \
2664 conftest$ac_exeext conftest.$ac_ext
2666 eval ac_res=\$$3
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2668 $as_echo "$ac_res" >&6; }
2669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2671 } # ac_fn_c_check_func
2673 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2674 # -------------------------------------------
2675 # Tests whether TYPE exists after having included INCLUDES, setting cache
2676 # variable VAR accordingly.
2677 ac_fn_c_check_type ()
2679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2681 $as_echo_n "checking for $2... " >&6; }
2682 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 eval "$3=no"
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2690 main ()
2692 if (sizeof ($2))
2693 return 0;
2695 return 0;
2697 _ACEOF
2698 if ac_fn_c_try_compile "$LINENO"; then :
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2703 main ()
2705 if (sizeof (($2)))
2706 return 0;
2708 return 0;
2710 _ACEOF
2711 if ac_fn_c_try_compile "$LINENO"; then :
2713 else
2714 eval "$3=yes"
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 eval ac_res=\$$3
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2725 } # ac_fn_c_check_type
2727 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2728 # --------------------------------------------
2729 # Tries to find the compile-time value of EXPR in a program that includes
2730 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2731 # computed
2732 ac_fn_c_compute_int ()
2734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2735 if test "$cross_compiling" = yes; then
2736 # Depending upon the size, compute the lo and hi bounds.
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2741 main ()
2743 static int test_array [1 - 2 * !(($2) >= 0)];
2744 test_array [0] = 0
2747 return 0;
2749 _ACEOF
2750 if ac_fn_c_try_compile "$LINENO"; then :
2751 ac_lo=0 ac_mid=0
2752 while :; do
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2757 main ()
2759 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2760 test_array [0] = 0
2763 return 0;
2765 _ACEOF
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767 ac_hi=$ac_mid; break
2768 else
2769 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2770 if test $ac_lo -le $ac_mid; then
2771 ac_lo= ac_hi=
2772 break
2774 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777 done
2778 else
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2783 main ()
2785 static int test_array [1 - 2 * !(($2) < 0)];
2786 test_array [0] = 0
2789 return 0;
2791 _ACEOF
2792 if ac_fn_c_try_compile "$LINENO"; then :
2793 ac_hi=-1 ac_mid=-1
2794 while :; do
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2799 main ()
2801 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2802 test_array [0] = 0
2805 return 0;
2807 _ACEOF
2808 if ac_fn_c_try_compile "$LINENO"; then :
2809 ac_lo=$ac_mid; break
2810 else
2811 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2812 if test $ac_mid -le $ac_hi; then
2813 ac_lo= ac_hi=
2814 break
2816 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 done
2820 else
2821 ac_lo= ac_hi=
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 # Binary search between lo and hi bounds.
2827 while test "x$ac_lo" != "x$ac_hi"; do
2828 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2833 main ()
2835 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2836 test_array [0] = 0
2839 return 0;
2841 _ACEOF
2842 if ac_fn_c_try_compile "$LINENO"; then :
2843 ac_hi=$ac_mid
2844 else
2845 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 done
2849 case $ac_lo in #((
2850 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2851 '') ac_retval=1 ;;
2852 esac
2853 else
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2857 static long int longval () { return $2; }
2858 static unsigned long int ulongval () { return $2; }
2859 #include <stdio.h>
2860 #include <stdlib.h>
2862 main ()
2865 FILE *f = fopen ("conftest.val", "w");
2866 if (! f)
2867 return 1;
2868 if (($2) < 0)
2870 long int i = longval ();
2871 if (i != ($2))
2872 return 1;
2873 fprintf (f, "%ld", i);
2875 else
2877 unsigned long int i = ulongval ();
2878 if (i != ($2))
2879 return 1;
2880 fprintf (f, "%lu", i);
2882 /* Do not output a trailing newline, as this causes \r\n confusion
2883 on some platforms. */
2884 return ferror (f) || fclose (f) != 0;
2887 return 0;
2889 _ACEOF
2890 if ac_fn_c_try_run "$LINENO"; then :
2891 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2892 else
2893 ac_retval=1
2895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2896 conftest.$ac_objext conftest.beam conftest.$ac_ext
2897 rm -f conftest.val
2900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2901 as_fn_set_status $ac_retval
2903 } # ac_fn_c_compute_int
2904 cat >config.log <<_ACEOF
2905 This file contains any messages produced by compilers while
2906 running configure, to aid debugging if configure makes a mistake.
2908 It was created by emacs $as_me 24.3, which was
2909 generated by GNU Autoconf 2.65. Invocation command line was
2911 $ $0 $@
2913 _ACEOF
2914 exec 5>>config.log
2916 cat <<_ASUNAME
2917 ## --------- ##
2918 ## Platform. ##
2919 ## --------- ##
2921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2933 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2938 _ASUNAME
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 $as_echo "PATH: $as_dir"
2946 done
2947 IFS=$as_save_IFS
2949 } >&5
2951 cat >&5 <<_ACEOF
2954 ## ----------- ##
2955 ## Core tests. ##
2956 ## ----------- ##
2958 _ACEOF
2961 # Keep a trace of the command line.
2962 # Strip out --no-create and --no-recursion so they do not pile up.
2963 # Strip out --silent because we don't want to record it for future runs.
2964 # Also quote any args containing shell meta-characters.
2965 # Make two passes to allow for proper duplicate-argument suppression.
2966 ac_configure_args=
2967 ac_configure_args0=
2968 ac_configure_args1=
2969 ac_must_keep_next=false
2970 for ac_pass in 1 2
2972 for ac_arg
2974 case $ac_arg in
2975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2977 | -silent | --silent | --silen | --sile | --sil)
2978 continue ;;
2979 *\'*)
2980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2981 esac
2982 case $ac_pass in
2983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2985 as_fn_append ac_configure_args1 " '$ac_arg'"
2986 if test $ac_must_keep_next = true; then
2987 ac_must_keep_next=false # Got value, back to normal.
2988 else
2989 case $ac_arg in
2990 *=* | --config-cache | -C | -disable-* | --disable-* \
2991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2993 | -with-* | --with-* | -without-* | --without-* | --x)
2994 case "$ac_configure_args0 " in
2995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2996 esac
2998 -* ) ac_must_keep_next=true ;;
2999 esac
3001 as_fn_append ac_configure_args " '$ac_arg'"
3003 esac
3004 done
3005 done
3006 { ac_configure_args0=; unset ac_configure_args0;}
3007 { ac_configure_args1=; unset ac_configure_args1;}
3009 # When interrupted or exit'd, cleanup temporary files, and complete
3010 # config.log. We remove comments because anyway the quotes in there
3011 # would cause problems or look ugly.
3012 # WARNING: Use '\'' to represent an apostrophe within the trap.
3013 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3014 trap 'exit_status=$?
3015 # Save into config.log some information that might help in debugging.
3017 echo
3019 cat <<\_ASBOX
3020 ## ---------------- ##
3021 ## Cache variables. ##
3022 ## ---------------- ##
3023 _ASBOX
3024 echo
3025 # The following way of writing the cache mishandles newlines in values,
3027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3028 eval ac_val=\$$ac_var
3029 case $ac_val in #(
3030 *${as_nl}*)
3031 case $ac_var in #(
3032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3034 esac
3035 case $ac_var in #(
3036 _ | IFS | as_nl) ;; #(
3037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3038 *) { eval $ac_var=; unset $ac_var;} ;;
3039 esac ;;
3040 esac
3041 done
3042 (set) 2>&1 |
3043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3044 *${as_nl}ac_space=\ *)
3045 sed -n \
3046 "s/'\''/'\''\\\\'\'''\''/g;
3047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3048 ;; #(
3050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3052 esac |
3053 sort
3055 echo
3057 cat <<\_ASBOX
3058 ## ----------------- ##
3059 ## Output variables. ##
3060 ## ----------------- ##
3061 _ASBOX
3062 echo
3063 for ac_var in $ac_subst_vars
3065 eval ac_val=\$$ac_var
3066 case $ac_val in
3067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3068 esac
3069 $as_echo "$ac_var='\''$ac_val'\''"
3070 done | sort
3071 echo
3073 if test -n "$ac_subst_files"; then
3074 cat <<\_ASBOX
3075 ## ------------------- ##
3076 ## File substitutions. ##
3077 ## ------------------- ##
3078 _ASBOX
3079 echo
3080 for ac_var in $ac_subst_files
3082 eval ac_val=\$$ac_var
3083 case $ac_val in
3084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3085 esac
3086 $as_echo "$ac_var='\''$ac_val'\''"
3087 done | sort
3088 echo
3091 if test -s confdefs.h; then
3092 cat <<\_ASBOX
3093 ## ----------- ##
3094 ## confdefs.h. ##
3095 ## ----------- ##
3096 _ASBOX
3097 echo
3098 cat confdefs.h
3099 echo
3101 test "$ac_signal" != 0 &&
3102 $as_echo "$as_me: caught signal $ac_signal"
3103 $as_echo "$as_me: exit $exit_status"
3104 } >&5
3105 rm -f core *.core core.conftest.* &&
3106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3107 exit $exit_status
3109 for ac_signal in 1 2 13 15; do
3110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3111 done
3112 ac_signal=0
3114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3115 rm -f -r conftest* confdefs.h
3117 $as_echo "/* confdefs.h */" > confdefs.h
3119 # Predefined preprocessor variables.
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE_NAME "$PACKAGE_NAME"
3123 _ACEOF
3125 cat >>confdefs.h <<_ACEOF
3126 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3127 _ACEOF
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3131 _ACEOF
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE_STRING "$PACKAGE_STRING"
3135 _ACEOF
3137 cat >>confdefs.h <<_ACEOF
3138 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3139 _ACEOF
3141 cat >>confdefs.h <<_ACEOF
3142 #define PACKAGE_URL "$PACKAGE_URL"
3143 _ACEOF
3146 # Let the site file select an alternate cache file if it wants to.
3147 # Prefer an explicitly selected file to automatically selected ones.
3148 ac_site_file1=NONE
3149 ac_site_file2=NONE
3150 if test -n "$CONFIG_SITE"; then
3151 ac_site_file1=$CONFIG_SITE
3152 elif test "x$prefix" != xNONE; then
3153 ac_site_file1=$prefix/share/config.site
3154 ac_site_file2=$prefix/etc/config.site
3155 else
3156 ac_site_file1=$ac_default_prefix/share/config.site
3157 ac_site_file2=$ac_default_prefix/etc/config.site
3159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3161 test "x$ac_site_file" = xNONE && continue
3162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3165 sed 's/^/| /' "$ac_site_file" >&5
3166 . "$ac_site_file"
3168 done
3170 if test -r "$cache_file"; then
3171 # Some versions of bash will fail to source /dev/null (special files
3172 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3173 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3175 $as_echo "$as_me: loading cache $cache_file" >&6;}
3176 case $cache_file in
3177 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3178 *) . "./$cache_file";;
3179 esac
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3183 $as_echo "$as_me: creating cache $cache_file" >&6;}
3184 >$cache_file
3187 as_fn_append ac_header_list " linux/version.h"
3188 as_fn_append ac_header_list " sys/systeminfo.h"
3189 as_fn_append ac_header_list " stdio_ext.h"
3190 as_fn_append ac_header_list " fcntl.h"
3191 as_fn_append ac_header_list " coff.h"
3192 as_fn_append ac_header_list " pty.h"
3193 as_fn_append ac_header_list " sys/vlimit.h"
3194 as_fn_append ac_header_list " sys/resource.h"
3195 as_fn_append ac_header_list " sys/utsname.h"
3196 as_fn_append ac_header_list " pwd.h"
3197 as_fn_append ac_header_list " utmp.h"
3198 as_fn_append ac_header_list " dirent.h"
3199 as_fn_append ac_header_list " util.h"
3200 as_fn_append ac_header_list " sys/socket.h"
3201 as_fn_append ac_header_list " stdlib.h"
3202 as_fn_append ac_header_list " unistd.h"
3203 as_fn_append ac_header_list " sys/param.h"
3204 as_fn_append ac_header_list " pthread.h"
3205 as_fn_append ac_header_list " malloc/malloc.h"
3206 as_fn_append ac_header_list " maillock.h"
3207 as_fn_append ac_header_list " sys/un.h"
3208 as_fn_append ac_func_list " tzset"
3209 as_fn_append ac_func_list " readlinkat"
3210 as_fn_append ac_header_list " execinfo.h"
3211 gl_getopt_required=GNU
3212 as_fn_append ac_header_list " getopt.h"
3213 as_fn_append ac_func_list " gettimeofday"
3214 as_fn_append ac_func_list " nanotime"
3215 as_fn_append ac_header_list " sys/time.h"
3216 as_fn_append ac_header_list " wchar.h"
3217 as_fn_append ac_header_list " stdint.h"
3218 as_fn_append ac_header_list " inttypes.h"
3219 as_fn_append ac_func_list " lstat"
3220 as_fn_append ac_func_list " alarm"
3221 as_fn_append ac_header_list " sys/select.h"
3222 as_fn_append ac_func_list " pselect"
3223 as_fn_append ac_func_list " pthread_sigmask"
3224 as_fn_append ac_func_list " readlink"
3225 as_fn_append ac_func_list " strtoimax"
3226 as_fn_append ac_func_list " strtoumax"
3227 as_fn_append ac_func_list " symlink"
3228 as_fn_append ac_header_list " sys/stat.h"
3229 as_fn_append ac_func_list " localtime_r"
3230 as_fn_append ac_header_list " utime.h"
3231 as_fn_append ac_func_list " futimes"
3232 as_fn_append ac_func_list " futimesat"
3233 as_fn_append ac_func_list " futimens"
3234 as_fn_append ac_func_list " utimensat"
3235 as_fn_append ac_func_list " lutimes"
3236 # Check that the precious variables saved in the cache have kept the same
3237 # value.
3238 ac_cache_corrupted=false
3239 for ac_var in $ac_precious_vars; do
3240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3241 eval ac_new_set=\$ac_env_${ac_var}_set
3242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3243 eval ac_new_val=\$ac_env_${ac_var}_value
3244 case $ac_old_set,$ac_new_set in
3245 set,)
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3248 ac_cache_corrupted=: ;;
3249 ,set)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3252 ac_cache_corrupted=: ;;
3253 ,);;
3255 if test "x$ac_old_val" != "x$ac_new_val"; then
3256 # differences in whitespace do not lead to failure.
3257 ac_old_val_w=`echo x $ac_old_val`
3258 ac_new_val_w=`echo x $ac_new_val`
3259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3262 ac_cache_corrupted=:
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3266 eval $ac_var=\$ac_old_val
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3272 fi;;
3273 esac
3274 # Pass precious variables to config.status.
3275 if test "$ac_new_set" = set; then
3276 case $ac_new_val in
3277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3278 *) ac_arg=$ac_var=$ac_new_val ;;
3279 esac
3280 case " $ac_configure_args " in
3281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3283 esac
3285 done
3286 if $ac_cache_corrupted; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3291 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3293 ## -------------------- ##
3294 ## Main body of script. ##
3295 ## -------------------- ##
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3307 ac_aux_dir=
3308 for ac_dir in build-aux "$srcdir"/build-aux; do
3309 for ac_t in install-sh install.sh shtool; do
3310 if test -f "$ac_dir/$ac_t"; then
3311 ac_aux_dir=$ac_dir
3312 ac_install_sh="$ac_aux_dir/$ac_t -c"
3313 break 2
3315 done
3316 done
3317 if test -z "$ac_aux_dir"; then
3318 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3321 # These three variables are undocumented and unsupported,
3322 # and are intended to be withdrawn in a future Autoconf release.
3323 # They can cause serious problems if a builder's source tree is in a directory
3324 # whose full name contains unusual characters.
3325 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3326 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3327 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3330 am__api_version='1.11'
3332 # Find a good install program. We prefer a C program (faster),
3333 # so one script is as good as another. But avoid the broken or
3334 # incompatible versions:
3335 # SysV /etc/install, /usr/sbin/install
3336 # SunOS /usr/etc/install
3337 # IRIX /sbin/install
3338 # AIX /bin/install
3339 # AmigaOS /C/install, which installs bootblocks on floppy discs
3340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3343 # OS/2's system install, which has a completely different semantic
3344 # ./install, which can be erroneously created by make from ./install.sh.
3345 # Reject install programs that cannot install multiple files.
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3347 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3348 if test -z "$INSTALL"; then
3349 if test "${ac_cv_path_install+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 # Account for people who put trailing slashes in PATH elements.
3358 case $as_dir/ in #((
3359 ./ | .// | /[cC]/* | \
3360 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3361 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3362 /usr/ucb/* ) ;;
3364 # OSF1 and SCO ODT 3.0 have their own names for install.
3365 # Don't use installbsd from OSF since it installs stuff as root
3366 # by default.
3367 for ac_prog in ginstall scoinst install; do
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3370 if test $ac_prog = install &&
3371 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3372 # AIX install. It has an incompatible calling convention.
3374 elif test $ac_prog = install &&
3375 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3376 # program-specific install script used by HP pwplus--don't use.
3378 else
3379 rm -rf conftest.one conftest.two conftest.dir
3380 echo one > conftest.one
3381 echo two > conftest.two
3382 mkdir conftest.dir
3383 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3384 test -s conftest.one && test -s conftest.two &&
3385 test -s conftest.dir/conftest.one &&
3386 test -s conftest.dir/conftest.two
3387 then
3388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3389 break 3
3393 done
3394 done
3396 esac
3398 done
3399 IFS=$as_save_IFS
3401 rm -rf conftest.one conftest.two conftest.dir
3404 if test "${ac_cv_path_install+set}" = set; then
3405 INSTALL=$ac_cv_path_install
3406 else
3407 # As a last resort, use the slow shell script. Don't cache a
3408 # value for INSTALL within a source directory, because that will
3409 # break other packages using the cache if that directory is
3410 # removed, or if the value is a relative name.
3411 INSTALL=$ac_install_sh
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3415 $as_echo "$INSTALL" >&6; }
3417 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3418 # It thinks the first close brace ends the variable substitution.
3419 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3421 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3423 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3426 $as_echo_n "checking whether build environment is sane... " >&6; }
3427 # Just in case
3428 sleep 1
3429 echo timestamp > conftest.file
3430 # Reject unsafe characters in $srcdir or the absolute working directory
3431 # name. Accept space and tab only in the latter.
3432 am_lf='
3434 case `pwd` in
3435 *[\\\"\#\$\&\'\`$am_lf]*)
3436 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3437 esac
3438 case $srcdir in
3439 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3440 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3441 esac
3443 # Do `set' in a subshell so we don't clobber the current shell's
3444 # arguments. Must try -L first in case configure is actually a
3445 # symlink; some systems play weird games with the mod time of symlinks
3446 # (eg FreeBSD returns the mod time of the symlink's containing
3447 # directory).
3448 if (
3449 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3450 if test "$*" = "X"; then
3451 # -L didn't work.
3452 set X `ls -t "$srcdir/configure" conftest.file`
3454 rm -f conftest.file
3455 if test "$*" != "X $srcdir/configure conftest.file" \
3456 && test "$*" != "X conftest.file $srcdir/configure"; then
3458 # If neither matched, then we have a broken ls. This can happen
3459 # if, for instance, CONFIG_SHELL is bash and it inherits a
3460 # broken ls alias from the environment. This has actually
3461 # happened. Such a system could not be considered "sane".
3462 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3463 alias in your environment" "$LINENO" 5
3466 test "$2" = conftest.file
3468 then
3469 # Ok.
3471 else
3472 as_fn_error "newly created file is older than distributed files!
3473 Check your system clock" "$LINENO" 5
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3476 $as_echo "yes" >&6; }
3477 test "$program_prefix" != NONE &&
3478 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3479 # Use a double $ so make ignores it.
3480 test "$program_suffix" != NONE &&
3481 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3482 # Double any \ or $.
3483 # By default was `s,x,x', remove it if useless.
3484 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3485 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3487 # expand $ac_aux_dir to an absolute path
3488 am_aux_dir=`cd $ac_aux_dir && pwd`
3490 if test x"${MISSING+set}" != xset; then
3491 case $am_aux_dir in
3492 *\ * | *\ *)
3493 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3495 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3496 esac
3498 # Use eval to expand $SHELL
3499 if eval "$MISSING --run true"; then
3500 am_missing_run="$MISSING --run "
3501 else
3502 am_missing_run=
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3504 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3507 if test x"${install_sh}" != xset; then
3508 case $am_aux_dir in
3509 *\ * | *\ *)
3510 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3512 install_sh="\${SHELL} $am_aux_dir/install-sh"
3513 esac
3516 # Installed binaries are usually stripped using `strip' when the user
3517 # run `make install-strip'. However `strip' might not be the right
3518 # tool to use in cross-compilation environments, therefore Automake
3519 # will honor the `STRIP' environment variable to overrule this program.
3520 if test "$cross_compiling" != no; then
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}strip; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if test "${ac_cv_prog_STRIP+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$STRIP"; then
3530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3545 IFS=$as_save_IFS
3549 STRIP=$ac_cv_prog_STRIP
3550 if test -n "$STRIP"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3552 $as_echo "$STRIP" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3560 if test -z "$ac_cv_prog_STRIP"; then
3561 ac_ct_STRIP=$STRIP
3562 # Extract the first word of "strip", so it can be a program name with args.
3563 set dummy strip; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -n "$ac_ct_STRIP"; then
3570 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 ac_cv_prog_ac_ct_STRIP="strip"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3583 done
3584 done
3585 IFS=$as_save_IFS
3589 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3590 if test -n "$ac_ct_STRIP"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3592 $as_echo "$ac_ct_STRIP" >&6; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3598 if test "x$ac_ct_STRIP" = x; then
3599 STRIP=":"
3600 else
3601 case $cross_compiling:$ac_tool_warned in
3602 yes:)
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3605 ac_tool_warned=yes ;;
3606 esac
3607 STRIP=$ac_ct_STRIP
3609 else
3610 STRIP="$ac_cv_prog_STRIP"
3614 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3617 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3618 if test -z "$MKDIR_P"; then
3619 if test "${ac_cv_path_mkdir+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_prog in mkdir gmkdir; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3630 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3631 'mkdir (GNU coreutils) '* | \
3632 'mkdir (coreutils) '* | \
3633 'mkdir (fileutils) '4.1*)
3634 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3635 break 3;;
3636 esac
3637 done
3638 done
3639 done
3640 IFS=$as_save_IFS
3644 test -d ./--version && rmdir ./--version
3645 if test "${ac_cv_path_mkdir+set}" = set; then
3646 MKDIR_P="$ac_cv_path_mkdir -p"
3647 else
3648 # As a last resort, use the slow shell script. Don't cache a
3649 # value for MKDIR_P within a source directory, because that will
3650 # break other packages using the cache if that directory is
3651 # removed, or if the value is a relative name.
3652 MKDIR_P="$ac_install_sh -d"
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3656 $as_echo "$MKDIR_P" >&6; }
3659 mkdir_p="$MKDIR_P"
3660 case $mkdir_p in
3661 [\\/$]* | ?:[\\/]*) ;;
3662 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3663 esac
3665 for ac_prog in gawk mawk nawk awk
3667 # Extract the first word of "$ac_prog", so it can be a program name with args.
3668 set dummy $ac_prog; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_AWK+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -n "$AWK"; then
3675 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_AWK="$ac_prog"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3688 done
3689 done
3690 IFS=$as_save_IFS
3694 AWK=$ac_cv_prog_AWK
3695 if test -n "$AWK"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3697 $as_echo "$AWK" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3704 test -n "$AWK" && break
3705 done
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3709 set x ${MAKE-make}
3710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3711 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 cat >conftest.make <<\_ACEOF
3715 SHELL = /bin/sh
3716 all:
3717 @echo '@@@%%%=$(MAKE)=@@@%%%'
3718 _ACEOF
3719 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3721 *@@@%%%=?*=@@@%%%*)
3722 eval ac_cv_prog_make_${ac_make}_set=yes;;
3724 eval ac_cv_prog_make_${ac_make}_set=no;;
3725 esac
3726 rm -f conftest.make
3728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3730 $as_echo "yes" >&6; }
3731 SET_MAKE=
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 SET_MAKE="MAKE=${MAKE-make}"
3738 rm -rf .tst 2>/dev/null
3739 mkdir .tst 2>/dev/null
3740 if test -d .tst; then
3741 am__leading_dot=.
3742 else
3743 am__leading_dot=_
3745 rmdir .tst 2>/dev/null
3747 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3748 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3749 # is not polluted with repeated "-I."
3750 am__isrc=' -I$(srcdir)'
3751 # test to see if srcdir already configured
3752 if test -f $srcdir/config.status; then
3753 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3757 # test whether we have cygpath
3758 if test -z "$CYGPATH_W"; then
3759 if (cygpath --version) >/dev/null 2>/dev/null; then
3760 CYGPATH_W='cygpath -w'
3761 else
3762 CYGPATH_W=echo
3767 # Define the identity of the package.
3768 PACKAGE='emacs'
3769 VERSION='24.3'
3772 cat >>confdefs.h <<_ACEOF
3773 #define PACKAGE "$PACKAGE"
3774 _ACEOF
3777 cat >>confdefs.h <<_ACEOF
3778 #define VERSION "$VERSION"
3779 _ACEOF
3781 # Some tools Automake needs.
3783 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3786 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3789 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3792 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3795 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3797 # We need awk for the "check" target. The system "awk" is bad on
3798 # some platforms.
3799 # Always define AMTAR for backward compatibility.
3801 AMTAR=${AMTAR-"${am_missing_run}tar"}
3803 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3812 lispdir='${datadir}/emacs/${version}/lisp'
3813 leimdir='${datadir}/emacs/${version}/leim'
3814 standardlisppath='${lispdir}:${leimdir}'
3815 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3816 '${datadir}/emacs/site-lisp'
3817 lisppath='${locallisppath}:${standardlisppath}'
3818 etcdir='${datadir}/emacs/${version}/etc'
3819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3820 docdir='${datadir}/emacs/${version}/etc'
3821 gamedir='${localstatedir}/games/emacs'
3824 # Check whether --with-all was given.
3825 if test "${with_all+set}" = set; then :
3826 withval=$with_all; with_features=$withval
3827 else
3828 with_features=yes
3835 # Check whether --with-pop was given.
3836 if test "${with_pop+set}" = set; then :
3837 withval=$with_pop;
3838 else
3839 with_pop=$with_features
3842 if test "$with_pop" = yes; then
3843 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3848 # Check whether --with-kerberos was given.
3849 if test "${with_kerberos+set}" = set; then :
3850 withval=$with_kerberos;
3851 else
3852 with_kerberos=no
3855 if test "$with_kerberos" != no; then
3856 $as_echo "#define KERBEROS 1" >>confdefs.h
3861 # Check whether --with-kerberos5 was given.
3862 if test "${with_kerberos5+set}" = set; then :
3863 withval=$with_kerberos5;
3864 else
3865 with_kerberos5=no
3868 if test "${with_kerberos5}" != no; then
3869 if test "${with_kerberos}" = no; then
3870 with_kerberos=yes
3871 $as_echo "#define KERBEROS 1" >>confdefs.h
3875 $as_echo "#define KERBEROS5 1" >>confdefs.h
3880 # Check whether --with-hesiod was given.
3881 if test "${with_hesiod+set}" = set; then :
3882 withval=$with_hesiod;
3883 else
3884 with_hesiod=no
3887 if test "$with_hesiod" != no; then
3889 $as_echo "#define HESIOD 1" >>confdefs.h
3894 # Check whether --with-mmdf was given.
3895 if test "${with_mmdf+set}" = set; then :
3896 withval=$with_mmdf;
3897 else
3898 with_mmdf=no
3901 if test "$with_mmdf" != no; then
3903 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3908 # Check whether --with-mail-unlink was given.
3909 if test "${with_mail_unlink+set}" = set; then :
3910 withval=$with_mail_unlink;
3911 else
3912 with_mail_unlink=no
3915 if test "$with_mail_unlink" != no; then
3917 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3922 # Check whether --with-mailhost was given.
3923 if test "${with_mailhost+set}" = set; then :
3924 withval=$with_mailhost;
3925 cat >>confdefs.h <<_ACEOF
3926 #define MAILHOST "$withval"
3927 _ACEOF
3933 # Check whether --with-sound was given.
3934 if test "${with_sound+set}" = set; then :
3935 withval=$with_sound;
3936 else
3937 with_sound=$with_features
3942 # Check whether --with-x-toolkit was given.
3943 if test "${with_x_toolkit+set}" = set; then :
3944 withval=$with_x_toolkit; case "${withval}" in
3945 y | ye | yes ) val=gtk ;;
3946 n | no ) val=no ;;
3947 l | lu | luc | luci | lucid ) val=lucid ;;
3948 a | at | ath | athe | athen | athena ) val=athena ;;
3949 m | mo | mot | moti | motif ) val=motif ;;
3950 g | gt | gtk ) val=gtk ;;
3951 gtk2 ) val=gtk2 ;;
3952 gtk3 ) val=gtk3 ;;
3954 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3955 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3956 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3957 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3959 esac
3960 with_x_toolkit=$val
3966 # Check whether --with-wide-int was given.
3967 if test "${with_wide_int+set}" = set; then :
3968 withval=$with_wide_int;
3969 else
3970 with_wide_int=no
3973 if test "$with_wide_int" = yes; then
3975 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3980 # Check whether --with-xpm was given.
3981 if test "${with_xpm+set}" = set; then :
3982 withval=$with_xpm;
3983 else
3984 with_xpm=$with_features
3988 # Check whether --with-jpeg was given.
3989 if test "${with_jpeg+set}" = set; then :
3990 withval=$with_jpeg;
3991 else
3992 with_jpeg=$with_features
3996 # Check whether --with-tiff was given.
3997 if test "${with_tiff+set}" = set; then :
3998 withval=$with_tiff;
3999 else
4000 with_tiff=$with_features
4004 # Check whether --with-gif was given.
4005 if test "${with_gif+set}" = set; then :
4006 withval=$with_gif;
4007 else
4008 with_gif=$with_features
4012 # Check whether --with-png was given.
4013 if test "${with_png+set}" = set; then :
4014 withval=$with_png;
4015 else
4016 with_png=$with_features
4020 # Check whether --with-rsvg was given.
4021 if test "${with_rsvg+set}" = set; then :
4022 withval=$with_rsvg;
4023 else
4024 with_rsvg=$with_features
4028 # Check whether --with-xml2 was given.
4029 if test "${with_xml2+set}" = set; then :
4030 withval=$with_xml2;
4031 else
4032 with_xml2=$with_features
4036 # Check whether --with-imagemagick was given.
4037 if test "${with_imagemagick+set}" = set; then :
4038 withval=$with_imagemagick;
4039 else
4040 with_imagemagick=$with_features
4045 # Check whether --with-xft was given.
4046 if test "${with_xft+set}" = set; then :
4047 withval=$with_xft;
4048 else
4049 with_xft=$with_features
4053 # Check whether --with-libotf was given.
4054 if test "${with_libotf+set}" = set; then :
4055 withval=$with_libotf;
4056 else
4057 with_libotf=$with_features
4061 # Check whether --with-m17n-flt was given.
4062 if test "${with_m17n_flt+set}" = set; then :
4063 withval=$with_m17n_flt;
4064 else
4065 with_m17n_flt=$with_features
4070 # Check whether --with-toolkit-scroll-bars was given.
4071 if test "${with_toolkit_scroll_bars+set}" = set; then :
4072 withval=$with_toolkit_scroll_bars;
4073 else
4074 with_toolkit_scroll_bars=$with_features
4078 # Check whether --with-xaw3d was given.
4079 if test "${with_xaw3d+set}" = set; then :
4080 withval=$with_xaw3d;
4081 else
4082 with_xaw3d=$with_features
4086 # Check whether --with-xim was given.
4087 if test "${with_xim+set}" = set; then :
4088 withval=$with_xim;
4089 else
4090 with_xim=$with_features
4094 # Check whether --with-ns was given.
4095 if test "${with_ns+set}" = set; then :
4096 withval=$with_ns;
4097 else
4098 with_ns=no
4102 # Check whether --with-w32 was given.
4103 if test "${with_w32+set}" = set; then :
4104 withval=$with_w32;
4105 else
4106 with_w32=no
4111 # Check whether --with-gpm was given.
4112 if test "${with_gpm+set}" = set; then :
4113 withval=$with_gpm;
4114 else
4115 with_gpm=$with_features
4119 # Check whether --with-dbus was given.
4120 if test "${with_dbus+set}" = set; then :
4121 withval=$with_dbus;
4122 else
4123 with_dbus=$with_features
4127 # Check whether --with-gconf was given.
4128 if test "${with_gconf+set}" = set; then :
4129 withval=$with_gconf;
4130 else
4131 with_gconf=$with_features
4135 # Check whether --with-gsettings was given.
4136 if test "${with_gsettings+set}" = set; then :
4137 withval=$with_gsettings;
4138 else
4139 with_gsettings=$with_features
4143 # Check whether --with-selinux was given.
4144 if test "${with_selinux+set}" = set; then :
4145 withval=$with_selinux;
4146 else
4147 with_selinux=$with_features
4151 # Check whether --with-gnutls was given.
4152 if test "${with_gnutls+set}" = set; then :
4153 withval=$with_gnutls;
4154 else
4155 with_gnutls=$with_features
4159 ## For the times when you want to build Emacs but don't have
4160 ## a suitable makeinfo, and can live without the manuals.
4162 # Check whether --with-makeinfo was given.
4163 if test "${with_makeinfo+set}" = set; then :
4164 withval=$with_makeinfo;
4165 else
4166 with_makeinfo=$with_features
4170 ## Makefile.in needs the cache file name.
4173 ## This is an option because I do not know if all info/man support
4174 ## compressed files, nor how to test if they do so.
4176 # Check whether --with-compress-info was given.
4177 if test "${with_compress_info+set}" = set; then :
4178 withval=$with_compress_info;
4179 else
4180 with_compress_info=$with_features
4183 if test $with_compress_info = yes; then
4184 GZIP_INFO=yes
4185 else
4186 GZIP_INFO=
4191 # Check whether --with-pkg-config-prog was given.
4192 if test "${with_pkg_config_prog+set}" = set; then :
4193 withval=$with_pkg_config_prog;
4196 if test "X${with_pkg_config_prog}" != X; then
4197 if test "${with_pkg_config_prog}" != yes; then
4198 PKG_CONFIG="${with_pkg_config_prog}"
4202 CRT_DIR=
4204 # Check whether --with-crt-dir was given.
4205 if test "${with_crt_dir+set}" = set; then :
4206 withval=$with_crt_dir;
4209 CRT_DIR="${with_crt_dir}"
4212 # Check whether --with-gameuser was given.
4213 if test "${with_gameuser+set}" = set; then :
4214 withval=$with_gameuser;
4217 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4218 && gameuser="${with_gameuser}"
4219 test "X$gameuser" = X && gameuser=games
4222 # Check whether --with-gnustep-conf was given.
4223 if test "${with_gnustep_conf+set}" = set; then :
4224 withval=$with_gnustep_conf;
4227 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4228 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4229 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4230 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4232 # Check whether --enable-ns-self-contained was given.
4233 if test "${enable_ns_self_contained+set}" = set; then :
4234 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4235 else
4236 EN_NS_SELF_CONTAINED=yes
4240 # Check whether --enable-locallisppath was given.
4241 if test "${enable_locallisppath+set}" = set; then :
4242 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4243 locallisppath=
4244 elif test "${enableval}" != "yes"; then
4245 locallisppath=${enableval}
4250 # Check whether --enable-checking was given.
4251 if test "${enable_checking+set}" = set; then :
4252 enableval=$enable_checking; ac_checking_flags="${enableval}"
4255 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4256 for check in $ac_checking_flags
4258 case $check in
4259 # these set all the flags to specific states
4260 yes) ac_enable_checking=1 ;;
4261 no) ac_enable_checking= ;
4262 ac_gc_check_stringbytes= ;
4263 ac_gc_check_string_overrun= ;
4264 ac_gc_check_string_free_list= ;
4265 ac_xmalloc_overrun= ;
4266 ac_gc_check_cons_list= ;
4267 ac_glyphs_debug= ;;
4268 all) ac_enable_checking=1 ;
4269 ac_gc_check_stringbytes=1 ;
4270 ac_gc_check_string_overrun=1 ;
4271 ac_gc_check_string_free_list=1 ;
4272 ac_xmalloc_overrun=1 ;
4273 ac_gc_check_cons_list=1 ;
4274 ac_glyphs_debug=1 ;;
4275 # these enable particular checks
4276 stringbytes) ac_gc_check_stringbytes=1 ;;
4277 stringoverrun) ac_gc_check_string_overrun=1 ;;
4278 stringfreelist) ac_gc_check_string_free_list=1 ;;
4279 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4280 conslist) ac_gc_check_cons_list=1 ;;
4281 glyphs) ac_glyphs_debug=1 ;;
4282 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4283 esac
4284 done
4285 IFS="$ac_save_IFS"
4287 if test x$ac_enable_checking != x ; then
4289 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4292 if test x$ac_gc_check_stringbytes != x ; then
4294 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4297 if test x$ac_gc_check_string_overrun != x ; then
4299 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4302 if test x$ac_gc_check_string_free_list != x ; then
4304 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4307 if test x$ac_xmalloc_overrun != x ; then
4309 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4312 if test x$ac_gc_check_cons_list != x ; then
4314 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4317 if test x$ac_glyphs_debug != x ; then
4319 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4323 # Check whether --enable-check-lisp-object-type was given.
4324 if test "${enable_check_lisp_object_type+set}" = set; then :
4325 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4327 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4334 # Check whether --enable-profiling was given.
4335 if test "${enable_profiling+set}" = set; then :
4336 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4339 if test x$ac_enable_profiling != x ; then
4340 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4341 else
4342 PROFILING_CFLAGS=
4346 # Check whether --enable-autodepend was given.
4347 if test "${enable_autodepend+set}" = set; then :
4348 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4349 else
4350 ac_enable_autodepend=yes
4354 #### Make srcdir absolute, if it isn't already. It's important to
4355 #### avoid running the path through pwd unnecessarily, since pwd can
4356 #### give you automounter prefixes, which can go away. We do all this
4357 #### so Emacs can find its files when run uninstalled.
4358 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4359 unset CDPATH
4360 case "${srcdir}" in
4361 /* ) ;;
4363 ## We may be able to use the $PWD environment variable to make this
4364 ## absolute. But sometimes PWD is inaccurate.
4365 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4366 ## but that tested only for a well-formed and valid PWD,
4367 ## it did not object when PWD was well-formed and valid but just wrong.
4368 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4369 then
4370 srcdir="$PWD"
4371 else
4372 srcdir="`(cd ${srcdir}; pwd)`"
4375 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4376 esac
4378 ### Canonicalize the configuration name.
4380 # Make sure we can run config.sub.
4381 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4382 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4385 $as_echo_n "checking build system type... " >&6; }
4386 if test "${ac_cv_build+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 ac_build_alias=$build_alias
4390 test "x$ac_build_alias" = x &&
4391 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4392 test "x$ac_build_alias" = x &&
4393 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4395 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4399 $as_echo "$ac_cv_build" >&6; }
4400 case $ac_cv_build in
4401 *-*-*) ;;
4402 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4403 esac
4404 build=$ac_cv_build
4405 ac_save_IFS=$IFS; IFS='-'
4406 set x $ac_cv_build
4407 shift
4408 build_cpu=$1
4409 build_vendor=$2
4410 shift; shift
4411 # Remember, the first character of IFS is used to create $*,
4412 # except with old shells:
4413 build_os=$*
4414 IFS=$ac_save_IFS
4415 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4419 $as_echo_n "checking host system type... " >&6; }
4420 if test "${ac_cv_host+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test "x$host_alias" = x; then
4424 ac_cv_host=$ac_cv_build
4425 else
4426 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4427 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4432 $as_echo "$ac_cv_host" >&6; }
4433 case $ac_cv_host in
4434 *-*-*) ;;
4435 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4436 esac
4437 host=$ac_cv_host
4438 ac_save_IFS=$IFS; IFS='-'
4439 set x $ac_cv_host
4440 shift
4441 host_cpu=$1
4442 host_vendor=$2
4443 shift; shift
4444 # Remember, the first character of IFS is used to create $*,
4445 # except with old shells:
4446 host_os=$*
4447 IFS=$ac_save_IFS
4448 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4451 canonical=$host
4452 configuration=${host_alias-${build_alias-$host}}
4456 ### If you add support for a new configuration, add code to this
4457 ### switch statement to recognize your configuration name and select
4458 ### the appropriate operating system file.
4460 ### You would hope that you could choose an s/*.h
4461 ### file based on the operating system portion. However, it turns out
4462 ### that each s/*.h file is pretty manufacturer-specific.
4463 ### So we basically have to have a special case for each
4464 ### configuration name.
4466 ### As far as handling version numbers on operating systems is
4467 ### concerned, make sure things will fail in a fixable way. If
4468 ### /etc/MACHINES doesn't say anything about version numbers, be
4469 ### prepared to handle anything reasonably. If version numbers
4470 ### matter, be sure /etc/MACHINES says something about it.
4472 opsys='' unported=no
4473 case "${canonical}" in
4475 ## GNU/Linux and similar ports
4476 *-*-linux* )
4477 opsys=gnu-linux
4480 ## FreeBSD ports
4481 *-*-freebsd* )
4482 opsys=freebsd
4485 ## FreeBSD kernel + glibc based userland
4486 *-*-kfreebsd*gnu* )
4487 opsys=gnu-kfreebsd
4490 ## NetBSD ports
4491 *-*-netbsd* )
4492 opsys=netbsd
4495 ## OpenBSD ports
4496 *-*-openbsd* )
4497 opsys=openbsd
4500 ## Apple Darwin / Mac OS X
4501 *-apple-darwin* )
4502 case "${canonical}" in
4503 i[3456]86-* ) ;;
4504 powerpc-* ) ;;
4505 x86_64-* ) ;;
4506 * ) unported=yes ;;
4507 esac
4508 opsys=darwin
4509 ## Use fink packages if available.
4510 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4511 ## if test -d /sw/include && test -d /sw/lib; then
4512 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4513 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4514 ## fi
4517 ## HP 9000 series 700 and 800, running HP/UX
4518 hppa*-hp-hpux10.2* )
4519 opsys=hpux10-20
4521 hppa*-hp-hpux1[1-9]* )
4522 opsys=hpux11
4523 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4526 ## IBM machines
4527 rs6000-ibm-aix4.[23]* )
4528 opsys=aix4-2
4530 powerpc-ibm-aix4.[23]* )
4531 opsys=aix4-2
4533 rs6000-ibm-aix[56]* )
4534 opsys=aix4-2
4536 powerpc-ibm-aix[56]* )
4537 opsys=aix4-2
4540 ## Silicon Graphics machines
4541 ## Iris 4D
4542 mips-sgi-irix6.5 )
4543 opsys=irix6-5
4544 # Without defining _LANGUAGE_C, things get masked out in the headers
4545 # so that, for instance, grepping for `free' in stdlib.h fails and
4546 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4547 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4550 ## Suns
4551 *-sun-solaris* \
4552 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4553 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4554 case "${canonical}" in
4555 i[3456]86-*-* ) ;;
4556 amd64-*-*|x86_64-*-*) ;;
4557 sparc* ) ;;
4558 * ) unported=yes ;;
4559 esac
4560 case "${canonical}" in
4561 *-sunos5.6* | *-solaris2.6* )
4562 opsys=sol2-6
4563 RANLIB="ar -ts"
4565 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4566 opsys=sol2-6
4567 emacs_check_sunpro_c=yes
4569 *-sunos5* | *-solaris* )
4570 opsys=sol2-10
4571 emacs_check_sunpro_c=yes
4573 esac
4574 ## Watch out for a compiler that we know will not work.
4575 case "${canonical}" in
4576 *-solaris* | *-sunos5* )
4577 if [ "x$CC" = x/usr/ucb/cc ]; then
4578 ## /usr/ucb/cc doesn't work;
4579 ## we should find some other compiler that does work.
4580 unset CC
4583 *) ;;
4584 esac
4587 ## Intel 386 machines where we don't care about the manufacturer.
4588 i[3456]86-*-* )
4589 case "${canonical}" in
4590 *-cygwin ) opsys=cygwin ;;
4591 *-darwin* ) opsys=darwin ;;
4592 *-sysv4.2uw* ) opsys=unixware ;;
4593 *-sysv5uw* ) opsys=unixware ;;
4594 *-sysv5OpenUNIX* ) opsys=unixware ;;
4595 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4596 esac
4600 unported=yes
4602 esac
4604 ### If the code above didn't choose an operating system, just choose
4605 ### an operating system based on the configuration name. You really
4606 ### only want to use this when you have no idea what the right
4607 ### operating system is; if you know what operating systems a machine
4608 ### runs, it's cleaner to make it explicit in the case statement
4609 ### above.
4610 if test x"${opsys}" = x; then
4611 case "${canonical}" in
4612 *-gnu* ) opsys=gnu ;;
4614 unported=yes
4616 esac
4621 if test $unported = yes; then
4622 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4623 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4627 #### Choose a compiler.
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634 if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_CC+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4656 done
4657 done
4658 IFS=$as_save_IFS
4662 CC=$ac_cv_prog_CC
4663 if test -n "$CC"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4673 if test -z "$ac_cv_prog_CC"; then
4674 ac_ct_CC=$CC
4675 # Extract the first word of "gcc", so it can be a program name with args.
4676 set dummy gcc; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$ac_ct_CC"; then
4683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_ac_ct_CC="gcc"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4696 done
4697 done
4698 IFS=$as_save_IFS
4702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4703 if test -n "$ac_ct_CC"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4705 $as_echo "$ac_ct_CC" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4711 if test "x$ac_ct_CC" = x; then
4712 CC=""
4713 else
4714 case $cross_compiling:$ac_tool_warned in
4715 yes:)
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4719 esac
4720 CC=$ac_ct_CC
4722 else
4723 CC="$ac_cv_prog_CC"
4726 if test -z "$CC"; then
4727 if test -n "$ac_tool_prefix"; then
4728 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4729 set dummy ${ac_tool_prefix}cc; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if test "${ac_cv_prog_CC+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if test -n "$CC"; then
4736 ac_cv_prog_CC="$CC" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_prog_CC="${ac_tool_prefix}cc"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4749 done
4750 done
4751 IFS=$as_save_IFS
4755 CC=$ac_cv_prog_CC
4756 if test -n "$CC"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4758 $as_echo "$CC" >&6; }
4759 else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4767 if test -z "$CC"; then
4768 # Extract the first word of "cc", so it can be a program name with args.
4769 set dummy cc; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_CC+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$CC"; then
4776 ac_cv_prog_CC="$CC" # Let the user override the test.
4777 else
4778 ac_prog_rejected=no
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4787 ac_prog_rejected=yes
4788 continue
4790 ac_cv_prog_CC="cc"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4794 done
4795 done
4796 IFS=$as_save_IFS
4798 if test $ac_prog_rejected = yes; then
4799 # We found a bogon in the path, so make sure we never use it.
4800 set dummy $ac_cv_prog_CC
4801 shift
4802 if test $# != 0; then
4803 # We chose a different compiler from the bogus one.
4804 # However, it has the same basename, so the bogon will be chosen
4805 # first if we set CC to just the basename; use the full file name.
4806 shift
4807 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4812 CC=$ac_cv_prog_CC
4813 if test -n "$CC"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4815 $as_echo "$CC" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4823 if test -z "$CC"; then
4824 if test -n "$ac_tool_prefix"; then
4825 for ac_prog in cl.exe
4827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_CC+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$CC"; then
4835 ac_cv_prog_CC="$CC" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4854 CC=$ac_cv_prog_CC
4855 if test -n "$CC"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4857 $as_echo "$CC" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4864 test -n "$CC" && break
4865 done
4867 if test -z "$CC"; then
4868 ac_ct_CC=$CC
4869 for ac_prog in cl.exe
4871 # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy $ac_prog; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -n "$ac_ct_CC"; then
4879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_ac_ct_CC="$ac_prog"
4889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4892 done
4893 done
4894 IFS=$as_save_IFS
4898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4899 if test -n "$ac_ct_CC"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4901 $as_echo "$ac_ct_CC" >&6; }
4902 else
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4908 test -n "$ac_ct_CC" && break
4909 done
4911 if test "x$ac_ct_CC" = x; then
4912 CC=""
4913 else
4914 case $cross_compiling:$ac_tool_warned in
4915 yes:)
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4918 ac_tool_warned=yes ;;
4919 esac
4920 CC=$ac_ct_CC
4927 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929 as_fn_error "no acceptable C compiler found in \$PATH
4930 See \`config.log' for more details." "$LINENO" 5; }
4932 # Provide some information about the compiler.
4933 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4934 set X $ac_compile
4935 ac_compiler=$2
4936 for ac_option in --version -v -V -qversion; do
4937 { { ac_try="$ac_compiler $ac_option >&5"
4938 case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941 esac
4942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4943 $as_echo "$ac_try_echo"; } >&5
4944 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4945 ac_status=$?
4946 if test -s conftest.err; then
4947 sed '10a\
4948 ... rest of stderr output deleted ...
4949 10q' conftest.err >conftest.er1
4950 cat conftest.er1 >&5
4952 rm -f conftest.er1 conftest.err
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }
4955 done
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4961 main ()
4965 return 0;
4967 _ACEOF
4968 ac_clean_files_save=$ac_clean_files
4969 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4970 # Try to create an executable without -o first, disregard a.out.
4971 # It will help us diagnose broken compilers, and finding out an intuition
4972 # of exeext.
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4974 $as_echo_n "checking whether the C compiler works... " >&6; }
4975 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4977 # The possible output files:
4978 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4980 ac_rmfiles=
4981 for ac_file in $ac_files
4983 case $ac_file in
4984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4985 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4986 esac
4987 done
4988 rm -f $ac_rmfiles
4990 if { { ac_try="$ac_link_default"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4996 $as_echo "$ac_try_echo"; } >&5
4997 (eval "$ac_link_default") 2>&5
4998 ac_status=$?
4999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5000 test $ac_status = 0; }; then :
5001 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5002 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5003 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5004 # so that the user can short-circuit this test for compilers unknown to
5005 # Autoconf.
5006 for ac_file in $ac_files ''
5008 test -f "$ac_file" || continue
5009 case $ac_file in
5010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5012 [ab].out )
5013 # We found the default executable, but exeext='' is most
5014 # certainly right.
5015 break;;
5016 *.* )
5017 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5018 then :; else
5019 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5021 # We set ac_cv_exeext here because the later test for it is not
5022 # safe: cross compilers may not add the suffix if given an `-o'
5023 # argument, so we may need to know it at that point already.
5024 # Even if this section looks crufty: it has the advantage of
5025 # actually working.
5026 break;;
5028 break;;
5029 esac
5030 done
5031 test "$ac_cv_exeext" = no && ac_cv_exeext=
5033 else
5034 ac_file=''
5036 if test -z "$ac_file"; then :
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 $as_echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5044 { as_fn_set_status 77
5045 as_fn_error "C compiler cannot create executables
5046 See \`config.log' for more details." "$LINENO" 5; }; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5052 $as_echo_n "checking for C compiler default output file name... " >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5054 $as_echo "$ac_file" >&6; }
5055 ac_exeext=$ac_cv_exeext
5057 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5058 ac_clean_files=$ac_clean_files_save
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5060 $as_echo_n "checking for suffix of executables... " >&6; }
5061 if { { ac_try="$ac_link"
5062 case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065 esac
5066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5067 $as_echo "$ac_try_echo"; } >&5
5068 (eval "$ac_link") 2>&5
5069 ac_status=$?
5070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5071 test $ac_status = 0; }; then :
5072 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5073 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5074 # work properly (i.e., refer to `conftest.exe'), while it won't with
5075 # `rm'.
5076 for ac_file in conftest.exe conftest conftest.*; do
5077 test -f "$ac_file" || continue
5078 case $ac_file in
5079 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5080 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5081 break;;
5082 * ) break;;
5083 esac
5084 done
5085 else
5086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5088 as_fn_error "cannot compute suffix of executables: cannot compile and link
5089 See \`config.log' for more details." "$LINENO" 5; }
5091 rm -f conftest conftest$ac_cv_exeext
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5093 $as_echo "$ac_cv_exeext" >&6; }
5095 rm -f conftest.$ac_ext
5096 EXEEXT=$ac_cv_exeext
5097 ac_exeext=$EXEEXT
5098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5099 /* end confdefs.h. */
5100 #include <stdio.h>
5102 main ()
5104 FILE *f = fopen ("conftest.out", "w");
5105 return ferror (f) || fclose (f) != 0;
5108 return 0;
5110 _ACEOF
5111 ac_clean_files="$ac_clean_files conftest.out"
5112 # Check that the compiler produces executables we can run. If not, either
5113 # the compiler is broken, or we cross compile.
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5115 $as_echo_n "checking whether we are cross compiling... " >&6; }
5116 if test "$cross_compiling" != yes; then
5117 { { ac_try="$ac_link"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5123 $as_echo "$ac_try_echo"; } >&5
5124 (eval "$ac_link") 2>&5
5125 ac_status=$?
5126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5127 test $ac_status = 0; }
5128 if { ac_try='./conftest$ac_cv_exeext'
5129 { { case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134 $as_echo "$ac_try_echo"; } >&5
5135 (eval "$ac_try") 2>&5
5136 ac_status=$?
5137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }; }; then
5139 cross_compiling=no
5140 else
5141 if test "$cross_compiling" = maybe; then
5142 cross_compiling=yes
5143 else
5144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5146 as_fn_error "cannot run C compiled programs.
5147 If you meant to cross compile, use \`--host'.
5148 See \`config.log' for more details." "$LINENO" 5; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5153 $as_echo "$cross_compiling" >&6; }
5155 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5156 ac_clean_files=$ac_clean_files_save
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5158 $as_echo_n "checking for suffix of object files... " >&6; }
5159 if test "${ac_cv_objext+set}" = set; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5166 main ()
5170 return 0;
5172 _ACEOF
5173 rm -f conftest.o conftest.obj
5174 if { { ac_try="$ac_compile"
5175 case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5180 $as_echo "$ac_try_echo"; } >&5
5181 (eval "$ac_compile") 2>&5
5182 ac_status=$?
5183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5184 test $ac_status = 0; }; then :
5185 for ac_file in conftest.o conftest.obj conftest.*; do
5186 test -f "$ac_file" || continue;
5187 case $ac_file in
5188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5189 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5190 break;;
5191 esac
5192 done
5193 else
5194 $as_echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5199 as_fn_error "cannot compute suffix of object files: cannot compile
5200 See \`config.log' for more details." "$LINENO" 5; }
5202 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5205 $as_echo "$ac_cv_objext" >&6; }
5206 OBJEXT=$ac_cv_objext
5207 ac_objext=$OBJEXT
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5209 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5210 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5217 main ()
5219 #ifndef __GNUC__
5220 choke me
5221 #endif
5224 return 0;
5226 _ACEOF
5227 if ac_fn_c_try_compile "$LINENO"; then :
5228 ac_compiler_gnu=yes
5229 else
5230 ac_compiler_gnu=no
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5237 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5238 if test $ac_compiler_gnu = yes; then
5239 GCC=yes
5240 else
5241 GCC=
5243 ac_test_CFLAGS=${CFLAGS+set}
5244 ac_save_CFLAGS=$CFLAGS
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5246 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5247 if test "${ac_cv_prog_cc_g+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 ac_save_c_werror_flag=$ac_c_werror_flag
5251 ac_c_werror_flag=yes
5252 ac_cv_prog_cc_g=no
5253 CFLAGS="-g"
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5258 main ()
5262 return 0;
5264 _ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 ac_cv_prog_cc_g=yes
5267 else
5268 CFLAGS=""
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5273 main ()
5277 return 0;
5279 _ACEOF
5280 if ac_fn_c_try_compile "$LINENO"; then :
5282 else
5283 ac_c_werror_flag=$ac_save_c_werror_flag
5284 CFLAGS="-g"
5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5289 main ()
5293 return 0;
5295 _ACEOF
5296 if ac_fn_c_try_compile "$LINENO"; then :
5297 ac_cv_prog_cc_g=yes
5299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 ac_c_werror_flag=$ac_save_c_werror_flag
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5307 $as_echo "$ac_cv_prog_cc_g" >&6; }
5308 if test "$ac_test_CFLAGS" = set; then
5309 CFLAGS=$ac_save_CFLAGS
5310 elif test $ac_cv_prog_cc_g = yes; then
5311 if test "$GCC" = yes; then
5312 CFLAGS="-g -O2"
5313 else
5314 CFLAGS="-g"
5316 else
5317 if test "$GCC" = yes; then
5318 CFLAGS="-O2"
5319 else
5320 CFLAGS=
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5324 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5325 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 ac_cv_prog_cc_c89=no
5329 ac_save_CC=$CC
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #include <stdarg.h>
5333 #include <stdio.h>
5334 #include <sys/types.h>
5335 #include <sys/stat.h>
5336 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5337 struct buf { int x; };
5338 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5339 static char *e (p, i)
5340 char **p;
5341 int i;
5343 return p[i];
5345 static char *f (char * (*g) (char **, int), char **p, ...)
5347 char *s;
5348 va_list v;
5349 va_start (v,p);
5350 s = g (p, va_arg (v,int));
5351 va_end (v);
5352 return s;
5355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5356 function prototypes and stuff, but not '\xHH' hex character constants.
5357 These don't provoke an error unfortunately, instead are silently treated
5358 as 'x'. The following induces an error, until -std is added to get
5359 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5360 array size at least. It's necessary to write '\x00'==0 to get something
5361 that's true only with -std. */
5362 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5365 inside strings and character constants. */
5366 #define FOO(x) 'x'
5367 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5369 int test (int i, double x);
5370 struct s1 {int (*f) (int a);};
5371 struct s2 {int (*f) (double a);};
5372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5373 int argc;
5374 char **argv;
5376 main ()
5378 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5380 return 0;
5382 _ACEOF
5383 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5384 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386 CC="$ac_save_CC $ac_arg"
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_prog_cc_c89=$ac_arg
5390 rm -f core conftest.err conftest.$ac_objext
5391 test "x$ac_cv_prog_cc_c89" != "xno" && break
5392 done
5393 rm -f conftest.$ac_ext
5394 CC=$ac_save_CC
5397 # AC_CACHE_VAL
5398 case "x$ac_cv_prog_cc_c89" in
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5401 $as_echo "none needed" >&6; } ;;
5402 xno)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5404 $as_echo "unsupported" >&6; } ;;
5406 CC="$CC $ac_cv_prog_cc_c89"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5408 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5409 esac
5410 if test "x$ac_cv_prog_cc_c89" != xno; then :
5414 ac_ext=c
5415 ac_cpp='$CPP $CPPFLAGS'
5416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5419 DEPDIR="${am__leading_dot}deps"
5421 ac_config_commands="$ac_config_commands depfiles"
5424 am_make=${MAKE-make}
5425 cat > confinc << 'END'
5426 am__doit:
5427 @echo this is the am__doit target
5428 .PHONY: am__doit
5430 # If we don't find an include directive, just comment out the code.
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5432 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5433 am__include="#"
5434 am__quote=
5435 _am_result=none
5436 # First try GNU make style include.
5437 echo "include confinc" > confmf
5438 # Ignore all kinds of additional output from `make'.
5439 case `$am_make -s -f confmf 2> /dev/null` in #(
5440 *the\ am__doit\ target*)
5441 am__include=include
5442 am__quote=
5443 _am_result=GNU
5445 esac
5446 # Now try BSD make style include.
5447 if test "$am__include" = "#"; then
5448 echo '.include "confinc"' > confmf
5449 case `$am_make -s -f confmf 2> /dev/null` in #(
5450 *the\ am__doit\ target*)
5451 am__include=.include
5452 am__quote="\""
5453 _am_result=BSD
5455 esac
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5460 $as_echo "$_am_result" >&6; }
5461 rm -f confinc confmf
5463 # Check whether --enable-dependency-tracking was given.
5464 if test "${enable_dependency_tracking+set}" = set; then :
5465 enableval=$enable_dependency_tracking;
5468 if test "x$enable_dependency_tracking" != xno; then
5469 am_depcomp="$ac_aux_dir/depcomp"
5470 AMDEPBACKSLASH='\'
5472 if test "x$enable_dependency_tracking" != xno; then
5473 AMDEP_TRUE=
5474 AMDEP_FALSE='#'
5475 else
5476 AMDEP_TRUE='#'
5477 AMDEP_FALSE=
5482 depcc="$CC" am_compiler_list=
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5485 $as_echo_n "checking dependency style of $depcc... " >&6; }
5486 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5490 # We make a subdir and do the tests there. Otherwise we can end up
5491 # making bogus files that we don't know about and never remove. For
5492 # instance it was reported that on HP-UX the gcc test will end up
5493 # making a dummy file named `D' -- because `-MD' means `put the output
5494 # in D'.
5495 mkdir conftest.dir
5496 # Copy depcomp to subdir because otherwise we won't find it if we're
5497 # using a relative directory.
5498 cp "$am_depcomp" conftest.dir
5499 cd conftest.dir
5500 # We will build objects and dependencies in a subdirectory because
5501 # it helps to detect inapplicable dependency modes. For instance
5502 # both Tru64's cc and ICC support -MD to output dependencies as a
5503 # side effect of compilation, but ICC will put the dependencies in
5504 # the current directory while Tru64 will put them in the object
5505 # directory.
5506 mkdir sub
5508 am_cv_CC_dependencies_compiler_type=none
5509 if test "$am_compiler_list" = ""; then
5510 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5512 am__universal=false
5513 case " $depcc " in #(
5514 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5515 esac
5517 for depmode in $am_compiler_list; do
5518 # Setup a source with many dependencies, because some compilers
5519 # like to wrap large dependency lists on column 80 (with \), and
5520 # we should not choose a depcomp mode which is confused by this.
5522 # We need to recreate these files for each test, as the compiler may
5523 # overwrite some of them when testing with obscure command lines.
5524 # This happens at least with the AIX C compiler.
5525 : > sub/conftest.c
5526 for i in 1 2 3 4 5 6; do
5527 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5528 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5529 # Solaris 8's {/usr,}/bin/sh.
5530 touch sub/conftst$i.h
5531 done
5532 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5534 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5535 # mode. It turns out that the SunPro C++ compiler does not properly
5536 # handle `-M -o', and we need to detect this. Also, some Intel
5537 # versions had trouble with output in subdirs
5538 am__obj=sub/conftest.${OBJEXT-o}
5539 am__minus_obj="-o $am__obj"
5540 case $depmode in
5541 gcc)
5542 # This depmode causes a compiler race in universal mode.
5543 test "$am__universal" = false || continue
5545 nosideeffect)
5546 # after this tag, mechanisms are not by side-effect, so they'll
5547 # only be used when explicitly requested
5548 if test "x$enable_dependency_tracking" = xyes; then
5549 continue
5550 else
5551 break
5554 msvisualcpp | msvcmsys)
5555 # This compiler won't grok `-c -o', but also, the minuso test has
5556 # not run yet. These depmodes are late enough in the game, and
5557 # so weak that their functioning should not be impacted.
5558 am__obj=conftest.${OBJEXT-o}
5559 am__minus_obj=
5561 none) break ;;
5562 esac
5563 if depmode=$depmode \
5564 source=sub/conftest.c object=$am__obj \
5565 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5566 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5567 >/dev/null 2>conftest.err &&
5568 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5569 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5570 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5572 # icc doesn't choke on unknown options, it will just issue warnings
5573 # or remarks (even with -Werror). So we grep stderr for any message
5574 # that says an option was ignored or not supported.
5575 # When given -MP, icc 7.0 and 7.1 complain thusly:
5576 # icc: Command line warning: ignoring option '-M'; no argument required
5577 # The diagnosis changed in icc 8.0:
5578 # icc: Command line remark: option '-MP' not supported
5579 if (grep 'ignoring option' conftest.err ||
5580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5581 am_cv_CC_dependencies_compiler_type=$depmode
5582 break
5585 done
5587 cd ..
5588 rm -rf conftest.dir
5589 else
5590 am_cv_CC_dependencies_compiler_type=none
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5595 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5596 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5599 test "x$enable_dependency_tracking" != xno \
5600 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5601 am__fastdepCC_TRUE=
5602 am__fastdepCC_FALSE='#'
5603 else
5604 am__fastdepCC_TRUE='#'
5605 am__fastdepCC_FALSE=
5609 if test "x$CC" != xcc; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5611 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5614 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5616 set dummy $CC; ac_cc=`$as_echo "$2" |
5617 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5618 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5625 main ()
5629 return 0;
5631 _ACEOF
5632 # Make sure it works both with $CC and with simple cc.
5633 # We do the test twice because some compilers refuse to overwrite an
5634 # existing .o file with -o, though they will create one.
5635 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5636 rm -f conftest2.*
5637 if { { case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640 esac
5641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5642 $as_echo "$ac_try_echo"; } >&5
5643 (eval "$ac_try") 2>&5
5644 ac_status=$?
5645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5646 test $ac_status = 0; } &&
5647 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650 esac
5651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5652 $as_echo "$ac_try_echo"; } >&5
5653 (eval "$ac_try") 2>&5
5654 ac_status=$?
5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5656 test $ac_status = 0; };
5657 then
5658 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5659 if test "x$CC" != xcc; then
5660 # Test first that cc exists at all.
5661 if { ac_try='cc -c conftest.$ac_ext >&5'
5662 { { case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5667 $as_echo "$ac_try_echo"; } >&5
5668 (eval "$ac_try") 2>&5
5669 ac_status=$?
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; }; }; then
5672 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5673 rm -f conftest2.*
5674 if { { case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677 esac
5678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5679 $as_echo "$ac_try_echo"; } >&5
5680 (eval "$ac_try") 2>&5
5681 ac_status=$?
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; } &&
5684 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5687 esac
5688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5689 $as_echo "$ac_try_echo"; } >&5
5690 (eval "$ac_try") 2>&5
5691 ac_status=$?
5692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5693 test $ac_status = 0; };
5694 then
5695 # cc works too.
5697 else
5698 # cc exists but doesn't like -o.
5699 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5703 else
5704 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5706 rm -f core conftest*
5709 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5711 $as_echo "yes" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5716 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5720 # FIXME: we rely on the cache variable name because
5721 # there is no other way.
5722 set dummy $CC
5723 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5724 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5725 if test "$am_t" != yes; then
5726 # Losing compiler, so override with the script.
5727 # FIXME: It is wrong to rewrite CC.
5728 # But if we don't then we get into trouble of one sort or another.
5729 # A longer-term fix would be to have automake use am__CC in this case,
5730 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5731 CC="$am_aux_dir/compile $CC"
5736 if test x$GCC = xyes; then
5737 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5738 else
5739 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5742 # Avoid gnulib's threadlib module, as we do threads our own way.
5745 # Initialize gnulib right after choosing the compiler.
5747 ac_ext=c
5748 ac_cpp='$CPP $CPPFLAGS'
5749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5753 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5754 # On Suns, sometimes $CPP names a directory.
5755 if test -n "$CPP" && test -d "$CPP"; then
5756 CPP=
5758 if test -z "$CPP"; then
5759 if test "${ac_cv_prog_CPP+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 # Double quotes because CPP needs to be expanded
5763 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5765 ac_preproc_ok=false
5766 for ac_c_preproc_warn_flag in '' yes
5768 # Use a header file that comes with gcc, so configuring glibc
5769 # with a fresh cross-compiler works.
5770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771 # <limits.h> exists even on freestanding compilers.
5772 # On the NeXT, cc -E runs the code through the compiler's parser,
5773 # not just through cpp. "Syntax error" is here to catch this case.
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776 #ifdef __STDC__
5777 # include <limits.h>
5778 #else
5779 # include <assert.h>
5780 #endif
5781 Syntax error
5782 _ACEOF
5783 if ac_fn_c_try_cpp "$LINENO"; then :
5785 else
5786 # Broken: fails on valid input.
5787 continue
5789 rm -f conftest.err conftest.$ac_ext
5791 # OK, works on sane cases. Now check whether nonexistent headers
5792 # can be detected and how.
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795 #include <ac_nonexistent.h>
5796 _ACEOF
5797 if ac_fn_c_try_cpp "$LINENO"; then :
5798 # Broken: success on invalid input.
5799 continue
5800 else
5801 # Passes both tests.
5802 ac_preproc_ok=:
5803 break
5805 rm -f conftest.err conftest.$ac_ext
5807 done
5808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5809 rm -f conftest.err conftest.$ac_ext
5810 if $ac_preproc_ok; then :
5811 break
5814 done
5815 ac_cv_prog_CPP=$CPP
5818 CPP=$ac_cv_prog_CPP
5819 else
5820 ac_cv_prog_CPP=$CPP
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5823 $as_echo "$CPP" >&6; }
5824 ac_preproc_ok=false
5825 for ac_c_preproc_warn_flag in '' yes
5827 # Use a header file that comes with gcc, so configuring glibc
5828 # with a fresh cross-compiler works.
5829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5830 # <limits.h> exists even on freestanding compilers.
5831 # On the NeXT, cc -E runs the code through the compiler's parser,
5832 # not just through cpp. "Syntax error" is here to catch this case.
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835 #ifdef __STDC__
5836 # include <limits.h>
5837 #else
5838 # include <assert.h>
5839 #endif
5840 Syntax error
5841 _ACEOF
5842 if ac_fn_c_try_cpp "$LINENO"; then :
5844 else
5845 # Broken: fails on valid input.
5846 continue
5848 rm -f conftest.err conftest.$ac_ext
5850 # OK, works on sane cases. Now check whether nonexistent headers
5851 # can be detected and how.
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 #include <ac_nonexistent.h>
5855 _ACEOF
5856 if ac_fn_c_try_cpp "$LINENO"; then :
5857 # Broken: success on invalid input.
5858 continue
5859 else
5860 # Passes both tests.
5861 ac_preproc_ok=:
5862 break
5864 rm -f conftest.err conftest.$ac_ext
5866 done
5867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868 rm -f conftest.err conftest.$ac_ext
5869 if $ac_preproc_ok; then :
5871 else
5872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5874 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5875 See \`config.log' for more details." "$LINENO" 5; }
5878 ac_ext=c
5879 ac_cpp='$CPP $CPPFLAGS'
5880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5886 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5887 if test "${ac_cv_path_GREP+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -z "$GREP"; then
5891 ac_path_GREP_found=false
5892 # Loop through the user's path and test for each of PROGNAME-LIST
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_prog in grep ggrep; do
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5901 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5902 # Check for GNU ac_path_GREP and select it if it is found.
5903 # Check for GNU $ac_path_GREP
5904 case `"$ac_path_GREP" --version 2>&1` in
5905 *GNU*)
5906 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5908 ac_count=0
5909 $as_echo_n 0123456789 >"conftest.in"
5910 while :
5912 cat "conftest.in" "conftest.in" >"conftest.tmp"
5913 mv "conftest.tmp" "conftest.in"
5914 cp "conftest.in" "conftest.nl"
5915 $as_echo 'GREP' >> "conftest.nl"
5916 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5918 as_fn_arith $ac_count + 1 && ac_count=$as_val
5919 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5920 # Best one so far, save it but keep looking for a better one
5921 ac_cv_path_GREP="$ac_path_GREP"
5922 ac_path_GREP_max=$ac_count
5924 # 10*(2^10) chars as input seems more than enough
5925 test $ac_count -gt 10 && break
5926 done
5927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5928 esac
5930 $ac_path_GREP_found && break 3
5931 done
5932 done
5933 done
5934 IFS=$as_save_IFS
5935 if test -z "$ac_cv_path_GREP"; then
5936 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5938 else
5939 ac_cv_path_GREP=$GREP
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5944 $as_echo "$ac_cv_path_GREP" >&6; }
5945 GREP="$ac_cv_path_GREP"
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5949 $as_echo_n "checking for egrep... " >&6; }
5950 if test "${ac_cv_path_EGREP+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5954 then ac_cv_path_EGREP="$GREP -E"
5955 else
5956 if test -z "$EGREP"; then
5957 ac_path_EGREP_found=false
5958 # Loop through the user's path and test for each of PROGNAME-LIST
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_prog in egrep; do
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5967 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5968 # Check for GNU ac_path_EGREP and select it if it is found.
5969 # Check for GNU $ac_path_EGREP
5970 case `"$ac_path_EGREP" --version 2>&1` in
5971 *GNU*)
5972 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5974 ac_count=0
5975 $as_echo_n 0123456789 >"conftest.in"
5976 while :
5978 cat "conftest.in" "conftest.in" >"conftest.tmp"
5979 mv "conftest.tmp" "conftest.in"
5980 cp "conftest.in" "conftest.nl"
5981 $as_echo 'EGREP' >> "conftest.nl"
5982 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5984 as_fn_arith $ac_count + 1 && ac_count=$as_val
5985 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5986 # Best one so far, save it but keep looking for a better one
5987 ac_cv_path_EGREP="$ac_path_EGREP"
5988 ac_path_EGREP_max=$ac_count
5990 # 10*(2^10) chars as input seems more than enough
5991 test $ac_count -gt 10 && break
5992 done
5993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5994 esac
5996 $ac_path_EGREP_found && break 3
5997 done
5998 done
5999 done
6000 IFS=$as_save_IFS
6001 if test -z "$ac_cv_path_EGREP"; then
6002 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6004 else
6005 ac_cv_path_EGREP=$EGREP
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6011 $as_echo "$ac_cv_path_EGREP" >&6; }
6012 EGREP="$ac_cv_path_EGREP"
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6018 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6019 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6026 #ifdef __ACK__
6027 Amsterdam
6028 #endif
6030 _ACEOF
6031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6032 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6033 gl_cv_c_amsterdam_compiler=yes
6034 else
6035 gl_cv_c_amsterdam_compiler=no
6037 rm -f conftest*
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6042 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6043 if test -z "$AR"; then
6044 if test $gl_cv_c_amsterdam_compiler = yes; then
6045 AR='cc -c.a'
6046 if test -z "$ARFLAGS"; then
6047 ARFLAGS='-o'
6049 else
6050 if test -n "$ac_tool_prefix"; then
6051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052 set dummy ${ac_tool_prefix}ar; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if test "${ac_cv_prog_AR+set}" = set; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 if test -n "$AR"; then
6059 ac_cv_prog_AR="$AR" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_prog_AR="${ac_tool_prefix}ar"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6072 done
6073 done
6074 IFS=$as_save_IFS
6078 AR=$ac_cv_prog_AR
6079 if test -n "$AR"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6081 $as_echo "$AR" >&6; }
6082 else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 $as_echo "no" >&6; }
6089 if test -z "$ac_cv_prog_AR"; then
6090 ac_ct_AR=$AR
6091 # Extract the first word of "ar", so it can be a program name with args.
6092 set dummy ar; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -n "$ac_ct_AR"; then
6099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100 else
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 for as_dir in $PATH
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6108 ac_cv_prog_ac_ct_AR="ar"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6112 done
6113 done
6114 IFS=$as_save_IFS
6118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119 if test -n "$ac_ct_AR"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6121 $as_echo "$ac_ct_AR" >&6; }
6122 else
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6127 if test "x$ac_ct_AR" = x; then
6128 AR="ar"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131 yes:)
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6134 ac_tool_warned=yes ;;
6135 esac
6136 AR=$ac_ct_AR
6138 else
6139 AR="$ac_cv_prog_AR"
6142 if test -z "$ARFLAGS"; then
6143 ARFLAGS='cru'
6146 else
6147 if test -z "$ARFLAGS"; then
6148 ARFLAGS='cru'
6153 if test -z "$RANLIB"; then
6154 if test $gl_cv_c_amsterdam_compiler = yes; then
6155 RANLIB=':'
6156 else
6157 if test -n "$ac_tool_prefix"; then
6158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$RANLIB"; then
6166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6179 done
6180 done
6181 IFS=$as_save_IFS
6185 RANLIB=$ac_cv_prog_RANLIB
6186 if test -n "$RANLIB"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6188 $as_echo "$RANLIB" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6196 if test -z "$ac_cv_prog_RANLIB"; then
6197 ac_ct_RANLIB=$RANLIB
6198 # Extract the first word of "ranlib", so it can be a program name with args.
6199 set dummy ranlib; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$ac_ct_RANLIB"; then
6206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_ac_ct_RANLIB="ranlib"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6221 IFS=$as_save_IFS
6225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6226 if test -n "$ac_ct_RANLIB"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6228 $as_echo "$ac_ct_RANLIB" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6234 if test "x$ac_ct_RANLIB" = x; then
6235 RANLIB=":"
6236 else
6237 case $cross_compiling:$ac_tool_warned in
6238 yes:)
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243 RANLIB=$ac_ct_RANLIB
6245 else
6246 RANLIB="$ac_cv_prog_RANLIB"
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6254 $as_echo_n "checking for ANSI C header files... " >&6; }
6255 if test "${ac_cv_header_stdc+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
6257 else
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 #include <stdlib.h>
6261 #include <stdarg.h>
6262 #include <string.h>
6263 #include <float.h>
6266 main ()
6270 return 0;
6272 _ACEOF
6273 if ac_fn_c_try_compile "$LINENO"; then :
6274 ac_cv_header_stdc=yes
6275 else
6276 ac_cv_header_stdc=no
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 if test $ac_cv_header_stdc = yes; then
6281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6284 #include <string.h>
6286 _ACEOF
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288 $EGREP "memchr" >/dev/null 2>&1; then :
6290 else
6291 ac_cv_header_stdc=no
6293 rm -f conftest*
6297 if test $ac_cv_header_stdc = yes; then
6298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <stdlib.h>
6303 _ACEOF
6304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6305 $EGREP "free" >/dev/null 2>&1; then :
6307 else
6308 ac_cv_header_stdc=no
6310 rm -f conftest*
6314 if test $ac_cv_header_stdc = yes; then
6315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6316 if test "$cross_compiling" = yes; then :
6318 else
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 #include <ctype.h>
6322 #include <stdlib.h>
6323 #if ((' ' & 0x0FF) == 0x020)
6324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6326 #else
6327 # define ISLOWER(c) \
6328 (('a' <= (c) && (c) <= 'i') \
6329 || ('j' <= (c) && (c) <= 'r') \
6330 || ('s' <= (c) && (c) <= 'z'))
6331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6332 #endif
6334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6336 main ()
6338 int i;
6339 for (i = 0; i < 256; i++)
6340 if (XOR (islower (i), ISLOWER (i))
6341 || toupper (i) != TOUPPER (i))
6342 return 2;
6343 return 0;
6345 _ACEOF
6346 if ac_fn_c_try_run "$LINENO"; then :
6348 else
6349 ac_cv_header_stdc=no
6351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6352 conftest.$ac_objext conftest.beam conftest.$ac_ext
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6358 $as_echo "$ac_cv_header_stdc" >&6; }
6359 if test $ac_cv_header_stdc = yes; then
6361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6367 inttypes.h stdint.h unistd.h
6368 do :
6369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6372 eval as_val=\$$as_ac_Header
6373 if test "x$as_val" = x""yes; then :
6374 cat >>confdefs.h <<_ACEOF
6375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6376 _ACEOF
6380 done
6386 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6387 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6388 MINIX=yes
6389 else
6390 MINIX=
6394 if test "$MINIX" = yes; then
6396 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6399 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6402 $as_echo "#define _MINIX 1" >>confdefs.h
6406 case "$host_os" in
6407 hpux*)
6409 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6412 esac
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6416 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6417 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6423 # define __EXTENSIONS__ 1
6424 $ac_includes_default
6426 main ()
6430 return 0;
6432 _ACEOF
6433 if ac_fn_c_try_compile "$LINENO"; then :
6434 ac_cv_safe_to_define___extensions__=yes
6435 else
6436 ac_cv_safe_to_define___extensions__=no
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6441 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6442 test $ac_cv_safe_to_define___extensions__ = yes &&
6443 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6445 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6447 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6449 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6451 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6453 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6462 # Check whether --enable-largefile was given.
6463 if test "${enable_largefile+set}" = set; then :
6464 enableval=$enable_largefile;
6467 if test "$enable_largefile" != no; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6470 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6471 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 ac_cv_sys_largefile_CC=no
6475 if test "$GCC" != yes; then
6476 ac_save_CC=$CC
6477 while :; do
6478 # IRIX 6.2 and later do not support large files by default,
6479 # so use the C compiler's -n32 option if that helps.
6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481 /* end confdefs.h. */
6482 #include <sys/types.h>
6483 /* Check that off_t can represent 2**63 - 1 correctly.
6484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6485 since some C++ compilers masquerading as C compilers
6486 incorrectly reject 9223372036854775807. */
6487 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6489 && LARGE_OFF_T % 2147483647 == 1)
6490 ? 1 : -1];
6492 main ()
6496 return 0;
6498 _ACEOF
6499 if ac_fn_c_try_compile "$LINENO"; then :
6500 break
6502 rm -f core conftest.err conftest.$ac_objext
6503 CC="$CC -n32"
6504 if ac_fn_c_try_compile "$LINENO"; then :
6505 ac_cv_sys_largefile_CC=' -n32'; break
6507 rm -f core conftest.err conftest.$ac_objext
6508 break
6509 done
6510 CC=$ac_save_CC
6511 rm -f conftest.$ac_ext
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6515 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6516 if test "$ac_cv_sys_largefile_CC" != no; then
6517 CC=$CC$ac_cv_sys_largefile_CC
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6521 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6522 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 while :; do
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6528 #include <sys/types.h>
6529 /* Check that off_t can represent 2**63 - 1 correctly.
6530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6531 since some C++ compilers masquerading as C compilers
6532 incorrectly reject 9223372036854775807. */
6533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6535 && LARGE_OFF_T % 2147483647 == 1)
6536 ? 1 : -1];
6538 main ()
6542 return 0;
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 ac_cv_sys_file_offset_bits=no; break
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #define _FILE_OFFSET_BITS 64
6552 #include <sys/types.h>
6553 /* Check that off_t can represent 2**63 - 1 correctly.
6554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6555 since some C++ compilers masquerading as C compilers
6556 incorrectly reject 9223372036854775807. */
6557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6559 && LARGE_OFF_T % 2147483647 == 1)
6560 ? 1 : -1];
6562 main ()
6566 return 0;
6568 _ACEOF
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 ac_cv_sys_file_offset_bits=64; break
6572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573 ac_cv_sys_file_offset_bits=unknown
6574 break
6575 done
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6578 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6579 case $ac_cv_sys_file_offset_bits in #(
6580 no | unknown) ;;
6582 cat >>confdefs.h <<_ACEOF
6583 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6584 _ACEOF
6586 esac
6587 rm -rf conftest*
6588 if test $ac_cv_sys_file_offset_bits = unknown; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6590 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6591 if test "${ac_cv_sys_large_files+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 while :; do
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #include <sys/types.h>
6598 /* Check that off_t can represent 2**63 - 1 correctly.
6599 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6600 since some C++ compilers masquerading as C compilers
6601 incorrectly reject 9223372036854775807. */
6602 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6603 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6604 && LARGE_OFF_T % 2147483647 == 1)
6605 ? 1 : -1];
6607 main ()
6611 return 0;
6613 _ACEOF
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615 ac_cv_sys_large_files=no; break
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620 #define _LARGE_FILES 1
6621 #include <sys/types.h>
6622 /* Check that off_t can represent 2**63 - 1 correctly.
6623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6624 since some C++ compilers masquerading as C compilers
6625 incorrectly reject 9223372036854775807. */
6626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6628 && LARGE_OFF_T % 2147483647 == 1)
6629 ? 1 : -1];
6631 main ()
6635 return 0;
6637 _ACEOF
6638 if ac_fn_c_try_compile "$LINENO"; then :
6639 ac_cv_sys_large_files=1; break
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 ac_cv_sys_large_files=unknown
6643 break
6644 done
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6647 $as_echo "$ac_cv_sys_large_files" >&6; }
6648 case $ac_cv_sys_large_files in #(
6649 no | unknown) ;;
6651 cat >>confdefs.h <<_ACEOF
6652 #define _LARGE_FILES $ac_cv_sys_large_files
6653 _ACEOF
6655 esac
6656 rm -rf conftest*
6662 case $ac_cv_prog_cc_stdc in #(
6663 no) :
6664 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6665 *) :
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6667 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6668 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 ac_cv_prog_cc_c99=no
6672 ac_save_CC=$CC
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6675 #include <stdarg.h>
6676 #include <stdbool.h>
6677 #include <stdlib.h>
6678 #include <wchar.h>
6679 #include <stdio.h>
6681 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6682 #define debug(...) fprintf (stderr, __VA_ARGS__)
6683 #define showlist(...) puts (#__VA_ARGS__)
6684 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6685 static void
6686 test_varargs_macros (void)
6688 int x = 1234;
6689 int y = 5678;
6690 debug ("Flag");
6691 debug ("X = %d\n", x);
6692 showlist (The first, second, and third items.);
6693 report (x>y, "x is %d but y is %d", x, y);
6696 // Check long long types.
6697 #define BIG64 18446744073709551615ull
6698 #define BIG32 4294967295ul
6699 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6700 #if !BIG_OK
6701 your preprocessor is broken;
6702 #endif
6703 #if BIG_OK
6704 #else
6705 your preprocessor is broken;
6706 #endif
6707 static long long int bignum = -9223372036854775807LL;
6708 static unsigned long long int ubignum = BIG64;
6710 struct incomplete_array
6712 int datasize;
6713 double data[];
6716 struct named_init {
6717 int number;
6718 const wchar_t *name;
6719 double average;
6722 typedef const char *ccp;
6724 static inline int
6725 test_restrict (ccp restrict text)
6727 // See if C++-style comments work.
6728 // Iterate through items via the restricted pointer.
6729 // Also check for declarations in for loops.
6730 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6731 continue;
6732 return 0;
6735 // Check varargs and va_copy.
6736 static void
6737 test_varargs (const char *format, ...)
6739 va_list args;
6740 va_start (args, format);
6741 va_list args_copy;
6742 va_copy (args_copy, args);
6744 const char *str;
6745 int number;
6746 float fnumber;
6748 while (*format)
6750 switch (*format++)
6752 case 's': // string
6753 str = va_arg (args_copy, const char *);
6754 break;
6755 case 'd': // int
6756 number = va_arg (args_copy, int);
6757 break;
6758 case 'f': // float
6759 fnumber = va_arg (args_copy, double);
6760 break;
6761 default:
6762 break;
6765 va_end (args_copy);
6766 va_end (args);
6770 main ()
6773 // Check bool.
6774 _Bool success = false;
6776 // Check restrict.
6777 if (test_restrict ("String literal") == 0)
6778 success = true;
6779 char *restrict newvar = "Another string";
6781 // Check varargs.
6782 test_varargs ("s, d' f .", "string", 65, 34.234);
6783 test_varargs_macros ();
6785 // Check flexible array members.
6786 struct incomplete_array *ia =
6787 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6788 ia->datasize = 10;
6789 for (int i = 0; i < ia->datasize; ++i)
6790 ia->data[i] = i * 1.234;
6792 // Check named initializers.
6793 struct named_init ni = {
6794 .number = 34,
6795 .name = L"Test wide string",
6796 .average = 543.34343,
6799 ni.number = 58;
6801 int dynamic_array[ni.number];
6802 dynamic_array[ni.number - 1] = 543;
6804 // work around unused variable warnings
6805 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6806 || dynamic_array[ni.number - 1] != 543);
6809 return 0;
6811 _ACEOF
6812 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6814 CC="$ac_save_CC $ac_arg"
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816 ac_cv_prog_cc_c99=$ac_arg
6818 rm -f core conftest.err conftest.$ac_objext
6819 test "x$ac_cv_prog_cc_c99" != "xno" && break
6820 done
6821 rm -f conftest.$ac_ext
6822 CC=$ac_save_CC
6825 # AC_CACHE_VAL
6826 case "x$ac_cv_prog_cc_c99" in
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6829 $as_echo "none needed" >&6; } ;;
6830 xno)
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6832 $as_echo "unsupported" >&6; } ;;
6834 CC="$CC $ac_cv_prog_cc_c99"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6836 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6837 esac
6838 if test "x$ac_cv_prog_cc_c99" != xno; then :
6839 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6842 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6843 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 ac_cv_prog_cc_c89=no
6847 ac_save_CC=$CC
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <stdarg.h>
6851 #include <stdio.h>
6852 #include <sys/types.h>
6853 #include <sys/stat.h>
6854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6855 struct buf { int x; };
6856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6857 static char *e (p, i)
6858 char **p;
6859 int i;
6861 return p[i];
6863 static char *f (char * (*g) (char **, int), char **p, ...)
6865 char *s;
6866 va_list v;
6867 va_start (v,p);
6868 s = g (p, va_arg (v,int));
6869 va_end (v);
6870 return s;
6873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6874 function prototypes and stuff, but not '\xHH' hex character constants.
6875 These don't provoke an error unfortunately, instead are silently treated
6876 as 'x'. The following induces an error, until -std is added to get
6877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6878 array size at least. It's necessary to write '\x00'==0 to get something
6879 that's true only with -std. */
6880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6882 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6883 inside strings and character constants. */
6884 #define FOO(x) 'x'
6885 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6887 int test (int i, double x);
6888 struct s1 {int (*f) (int a);};
6889 struct s2 {int (*f) (double a);};
6890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6891 int argc;
6892 char **argv;
6894 main ()
6896 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6898 return 0;
6900 _ACEOF
6901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6904 CC="$ac_save_CC $ac_arg"
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906 ac_cv_prog_cc_c89=$ac_arg
6908 rm -f core conftest.err conftest.$ac_objext
6909 test "x$ac_cv_prog_cc_c89" != "xno" && break
6910 done
6911 rm -f conftest.$ac_ext
6912 CC=$ac_save_CC
6915 # AC_CACHE_VAL
6916 case "x$ac_cv_prog_cc_c89" in
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6919 $as_echo "none needed" >&6; } ;;
6920 xno)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6922 $as_echo "unsupported" >&6; } ;;
6924 CC="$CC $ac_cv_prog_cc_c89"
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6926 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6927 esac
6928 if test "x$ac_cv_prog_cc_c89" != xno; then :
6929 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6930 else
6931 ac_cv_prog_cc_stdc=no
6936 esac
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6938 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6939 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
6943 case $ac_cv_prog_cc_stdc in #(
6944 no) :
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6946 $as_echo "unsupported" >&6; } ;; #(
6947 '') :
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6949 $as_echo "none needed" >&6; } ;; #(
6950 *) :
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6952 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6953 esac
6957 # Code from module alloca-opt:
6958 # Code from module allocator:
6959 # Code from module c-ctype:
6960 # Code from module c-strcase:
6961 # Code from module careadlinkat:
6962 # Code from module clock-time:
6963 # Code from module crypto/md5:
6964 # Code from module crypto/sha1:
6965 # Code from module crypto/sha256:
6966 # Code from module crypto/sha512:
6967 # Code from module dosname:
6968 # Code from module dtoastr:
6969 # Code from module dtotimespec:
6970 # Code from module dup2:
6971 # Code from module environ:
6972 # Code from module execinfo:
6973 # Code from module extensions:
6975 # Code from module extern-inline:
6976 # Code from module filemode:
6977 # Code from module getloadavg:
6978 # Code from module getopt-gnu:
6979 # Code from module getopt-posix:
6980 # Code from module gettext-h:
6981 # Code from module gettime:
6982 # Code from module gettimeofday:
6983 # Code from module ignore-value:
6984 # Code from module include_next:
6985 # Code from module intprops:
6986 # Code from module inttypes-incomplete:
6987 # Code from module largefile:
6989 # Code from module lstat:
6990 # Code from module manywarnings:
6991 # Code from module mktime:
6992 # Code from module multiarch:
6993 # Code from module nocrash:
6994 # Code from module pathmax:
6995 # Code from module pselect:
6996 # Code from module pthread_sigmask:
6997 # Code from module readlink:
6998 # Code from module signal-h:
6999 # Code from module snippet/_Noreturn:
7000 # Code from module snippet/arg-nonnull:
7001 # Code from module snippet/c++defs:
7002 # Code from module snippet/warn-on-use:
7003 # Code from module socklen:
7004 # Code from module ssize_t:
7005 # Code from module stat:
7006 # Code from module stat-time:
7007 # Code from module stdalign:
7008 # Code from module stdarg:
7012 # Code from module stdbool:
7013 # Code from module stddef:
7014 # Code from module stdint:
7015 # Code from module stdio:
7016 # Code from module stdlib:
7017 # Code from module strftime:
7018 # Code from module strtoimax:
7019 # Code from module strtoll:
7020 # Code from module strtoull:
7021 # Code from module strtoumax:
7022 # Code from module symlink:
7023 # Code from module sys_select:
7024 # Code from module sys_stat:
7025 # Code from module sys_time:
7026 # Code from module time:
7027 # Code from module time_r:
7028 # Code from module timer-time:
7029 # Code from module timespec:
7030 # Code from module timespec-add:
7031 # Code from module timespec-sub:
7032 # Code from module u64:
7033 # Code from module unistd:
7034 # Code from module utimens:
7035 # Code from module verify:
7036 # Code from module warnings:
7039 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7040 # if -g3 works and the user does not specify CFLAGS.
7041 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7042 if test "$ac_test_CFLAGS" != set; then
7043 case $CFLAGS in
7044 '-g')
7045 emacs_g3_CFLAGS='-g3';;
7046 '-g -O2')
7047 emacs_g3_CFLAGS='-g3 -O2';;
7049 emacs_g3_CFLAGS='';;
7050 esac
7051 if test -n "$emacs_g3_CFLAGS"; then
7052 emacs_save_CFLAGS=$CFLAGS
7053 CFLAGS=$emacs_g3_CFLAGS
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7055 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7056 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7063 main ()
7067 return 0;
7069 _ACEOF
7070 if ac_fn_c_try_link "$LINENO"; then :
7071 emacs_cv_prog_cc_g3=yes
7072 else
7073 emacs_cv_prog_cc_g3=no
7075 rm -f core conftest.err conftest.$ac_objext \
7076 conftest$ac_exeext conftest.$ac_ext
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7079 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7080 if test $emacs_cv_prog_cc_g3 = yes; then
7081 CFLAGS=$emacs_g3_CFLAGS
7082 else
7083 CFLAGS=$emacs_save_CFLAGS
7088 # Check whether --enable-gcc-warnings was given.
7089 if test "${enable_gcc_warnings+set}" = set; then :
7090 enableval=$enable_gcc_warnings; case $enableval in
7091 yes|no) ;;
7092 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7093 esac
7094 gl_gcc_warnings=$enableval
7095 else
7096 gl_gcc_warnings=no
7101 # Check whether --enable-link-time-optimization was given.
7102 if test "${enable_link_time_optimization+set}" = set; then :
7103 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7105 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7106 ac_lto_supported=no
7107 if test x$GCC = xyes; then
7108 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7109 if test x$CPUS != x; then
7110 LTO="-flto=$CPUS"
7111 else
7112 LTO="-flto"
7114 old_CFLAGS=$CFLAGS
7115 CFLAGS="$CFLAGS $LTO"
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7120 main ()
7124 return 0;
7126 _ACEOF
7127 if ac_fn_c_try_compile "$LINENO"; then :
7128 ac_lto_supported=yes
7129 else
7130 ac_lto_supported=no
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 CFLAGS="$old_CFLAGS"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7136 $as_echo "$ac_lto_supported" >&6; }
7137 if test "$ac_lto_supported" = "yes"; then
7138 CFLAGS="$CFLAGS $LTO"
7144 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7145 # ------------------------------------------------
7146 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7147 # Otherwise, run RUN-IF-NOT-FOUND.
7150 # When compiling with GCC, prefer -isystem to -I when including system
7151 # include files, to avoid generating useless diagnostics for the files.
7152 if test "$gl_gcc_warnings" != yes; then
7153 isystem='-I'
7154 else
7155 isystem='-isystem '
7157 # This, $nw, is the list of warnings we disable.
7160 case $with_x_toolkit in
7161 lucid | athena | motif)
7162 # Old toolkits mishandle 'const'.
7163 nw="$nw -Wwrite-strings"
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7167 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7168 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7172 gl_save_compiler_FLAGS="$CFLAGS"
7173 as_fn_append CFLAGS " -Werror"
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7178 main ()
7182 return 0;
7184 _ACEOF
7185 if ac_fn_c_try_compile "$LINENO"; then :
7186 gl_cv_warn_c__Werror=yes
7187 else
7188 gl_cv_warn_c__Werror=no
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 CFLAGS="$gl_save_compiler_FLAGS"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7195 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7196 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7197 as_fn_append WERROR_CFLAGS " -Werror"
7202 esac
7205 nw="$nw -Waggregate-return" # anachronistic
7206 nw="$nw -Wlong-long" # C90 is anachronistic
7207 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7208 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7209 nw="$nw -Wtraditional" # Warns on #elif which we use often
7210 nw="$nw -Wcast-qual" # Too many warnings for now
7211 nw="$nw -Wconversion" # Too many warnings for now
7212 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7213 nw="$nw -Wsign-conversion" # Too many warnings for now
7214 nw="$nw -Woverlength-strings" # Not a problem these days
7215 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7216 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7217 nw="$nw -Wpadded" # Our structs are not padded
7218 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7219 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7220 nw="$nw -Wformat-nonliteral" # we do this a lot
7221 nw="$nw -Wvla" # warnings in gettext.h
7222 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7223 nw="$nw -Wswitch-enum" # Too many warnings for now
7224 nw="$nw -Wswitch-default" # Too many warnings for now
7225 nw="$nw -Wfloat-equal" # warns about high-quality code
7226 nw="$nw -Winline" # OK to ignore 'inline'
7227 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7228 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7229 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7231 # Emacs doesn't care about shadowing; see
7232 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7233 nw="$nw -Wshadow"
7235 # The following lines should be removable at some point.
7236 nw="$nw -Wstack-protector"
7237 nw="$nw -Wstrict-overflow"
7238 nw="$nw -Wsuggest-attribute=pure"
7242 if test -n "$GCC"; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7245 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7246 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7250 gl_save_CFLAGS="$CFLAGS"
7251 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7256 main ()
7260 return 0;
7262 _ACEOF
7263 if ac_fn_c_try_compile "$LINENO"; then :
7264 gl_cv_cc_nomfi_supported=yes
7265 else
7266 gl_cv_cc_nomfi_supported=no
7268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 CFLAGS="$gl_save_CFLAGS"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7273 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7275 if test "$gl_cv_cc_nomfi_supported" = yes; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7277 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7278 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7282 gl_save_CFLAGS="$CFLAGS"
7283 CFLAGS="$CFLAGS -W -Werror"
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 void f (void)
7288 typedef struct { int a; int b; } s_t;
7289 s_t s1 = { 0, };
7293 main ()
7297 return 0;
7299 _ACEOF
7300 if ac_fn_c_try_compile "$LINENO"; then :
7301 gl_cv_cc_nomfi_needed=no
7302 else
7303 gl_cv_cc_nomfi_needed=yes
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 CFLAGS="$gl_save_CFLAGS"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7311 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7315 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7316 if test "${gl_cv_cc_uninitialized_supported+set}" = set; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7320 gl_save_CFLAGS="$CFLAGS"
7321 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7326 main ()
7330 return 0;
7332 _ACEOF
7333 if ac_fn_c_try_compile "$LINENO"; then :
7334 gl_cv_cc_uninitialized_supported=yes
7335 else
7336 gl_cv_cc_uninitialized_supported=no
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 CFLAGS="$gl_save_CFLAGS"
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7343 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7347 # List all gcc warning categories.
7348 gl_manywarn_set=
7349 for gl_manywarn_item in \
7350 -W \
7351 -Wabi \
7352 -Waddress \
7353 -Wall \
7354 -Warray-bounds \
7355 -Wattributes \
7356 -Wbad-function-cast \
7357 -Wbuiltin-macro-redefined \
7358 -Wcast-align \
7359 -Wchar-subscripts \
7360 -Wclobbered \
7361 -Wcomment \
7362 -Wcomments \
7363 -Wcoverage-mismatch \
7364 -Wcpp \
7365 -Wdeprecated \
7366 -Wdeprecated-declarations \
7367 -Wdisabled-optimization \
7368 -Wdiv-by-zero \
7369 -Wdouble-promotion \
7370 -Wempty-body \
7371 -Wendif-labels \
7372 -Wenum-compare \
7373 -Wextra \
7374 -Wformat-contains-nul \
7375 -Wformat-extra-args \
7376 -Wformat-nonliteral \
7377 -Wformat-security \
7378 -Wformat-y2k \
7379 -Wformat-zero-length \
7380 -Wformat=2 \
7381 -Wfree-nonheap-object \
7382 -Wignored-qualifiers \
7383 -Wimplicit \
7384 -Wimplicit-function-declaration \
7385 -Wimplicit-int \
7386 -Winit-self \
7387 -Winline \
7388 -Wint-to-pointer-cast \
7389 -Winvalid-memory-model \
7390 -Winvalid-pch \
7391 -Wjump-misses-init \
7392 -Wlogical-op \
7393 -Wmain \
7394 -Wmaybe-uninitialized \
7395 -Wmissing-braces \
7396 -Wmissing-declarations \
7397 -Wmissing-field-initializers \
7398 -Wmissing-format-attribute \
7399 -Wmissing-include-dirs \
7400 -Wmissing-noreturn \
7401 -Wmissing-parameter-type \
7402 -Wmissing-prototypes \
7403 -Wmudflap \
7404 -Wmultichar \
7405 -Wnarrowing \
7406 -Wnested-externs \
7407 -Wnonnull \
7408 -Wnormalized=nfc \
7409 -Wold-style-declaration \
7410 -Wold-style-definition \
7411 -Woverflow \
7412 -Woverlength-strings \
7413 -Woverride-init \
7414 -Wpacked \
7415 -Wpacked-bitfield-compat \
7416 -Wparentheses \
7417 -Wpointer-arith \
7418 -Wpointer-sign \
7419 -Wpointer-to-int-cast \
7420 -Wpragmas \
7421 -Wreturn-type \
7422 -Wsequence-point \
7423 -Wshadow \
7424 -Wsizeof-pointer-memaccess \
7425 -Wstack-protector \
7426 -Wstrict-aliasing \
7427 -Wstrict-overflow \
7428 -Wstrict-prototypes \
7429 -Wsuggest-attribute=const \
7430 -Wsuggest-attribute=format \
7431 -Wsuggest-attribute=noreturn \
7432 -Wsuggest-attribute=pure \
7433 -Wswitch \
7434 -Wswitch-default \
7435 -Wsync-nand \
7436 -Wsystem-headers \
7437 -Wtrampolines \
7438 -Wtrigraphs \
7439 -Wtype-limits \
7440 -Wuninitialized \
7441 -Wunknown-pragmas \
7442 -Wunreachable-code \
7443 -Wunsafe-loop-optimizations \
7444 -Wunused \
7445 -Wunused-but-set-parameter \
7446 -Wunused-but-set-variable \
7447 -Wunused-function \
7448 -Wunused-label \
7449 -Wunused-local-typedefs \
7450 -Wunused-macros \
7451 -Wunused-parameter \
7452 -Wunused-result \
7453 -Wunused-value \
7454 -Wunused-variable \
7455 -Wvarargs \
7456 -Wvariadic-macros \
7457 -Wvector-operation-performance \
7458 -Wvla \
7459 -Wvolatile-register-var \
7460 -Wwrite-strings \
7462 ; do
7463 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7464 done
7466 # Disable specific options as needed.
7467 if test "$gl_cv_cc_nomfi_needed" = yes; then
7468 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7471 if test "$gl_cv_cc_uninitialized_supported" = no; then
7472 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7475 ws=$gl_manywarn_set
7478 gl_warn_set=
7479 set x $ws; shift
7480 for gl_warn_item
7482 case " $nw " in
7483 *" $gl_warn_item "*)
7486 gl_warn_set="$gl_warn_set $gl_warn_item"
7488 esac
7489 done
7490 ws=$gl_warn_set
7492 for w in $ws; do
7493 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7495 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7496 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7500 gl_save_compiler_FLAGS="$CFLAGS"
7501 as_fn_append CFLAGS " $w"
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7506 main ()
7510 return 0;
7512 _ACEOF
7513 if ac_fn_c_try_compile "$LINENO"; then :
7514 eval "$as_gl_Warn=yes"
7515 else
7516 eval "$as_gl_Warn=no"
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519 CFLAGS="$gl_save_compiler_FLAGS"
7522 eval ac_res=\$$as_gl_Warn
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7524 $as_echo "$ac_res" >&6; }
7525 eval as_val=\$$as_gl_Warn
7526 if test "x$as_val" = x""yes; then :
7527 as_fn_append WARN_CFLAGS " $w"
7531 done
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7533 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7534 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7538 gl_save_compiler_FLAGS="$CFLAGS"
7539 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7544 main ()
7548 return 0;
7550 _ACEOF
7551 if ac_fn_c_try_compile "$LINENO"; then :
7552 gl_cv_warn_c__Wno_missing_field_initializers=yes
7553 else
7554 gl_cv_warn_c__Wno_missing_field_initializers=no
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 CFLAGS="$gl_save_compiler_FLAGS"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7561 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7562 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7563 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7566 # We need this one
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7568 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7569 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7573 gl_save_compiler_FLAGS="$CFLAGS"
7574 as_fn_append CFLAGS " -Wno-sign-compare"
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7579 main ()
7583 return 0;
7585 _ACEOF
7586 if ac_fn_c_try_compile "$LINENO"; then :
7587 gl_cv_warn_c__Wno_sign_compare=yes
7588 else
7589 gl_cv_warn_c__Wno_sign_compare=no
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 CFLAGS="$gl_save_compiler_FLAGS"
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7596 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7597 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7598 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7601 # Too many warnings for now
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7603 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7604 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7608 gl_save_compiler_FLAGS="$CFLAGS"
7609 as_fn_append CFLAGS " -Wno-type-limits"
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7614 main ()
7618 return 0;
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 gl_cv_warn_c__Wno_type_limits=yes
7623 else
7624 gl_cv_warn_c__Wno_type_limits=no
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 CFLAGS="$gl_save_compiler_FLAGS"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7631 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7632 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7633 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7636 # Too many warnings for now
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7638 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7639 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7643 gl_save_compiler_FLAGS="$CFLAGS"
7644 as_fn_append CFLAGS " -Wno-switch"
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7649 main ()
7653 return 0;
7655 _ACEOF
7656 if ac_fn_c_try_compile "$LINENO"; then :
7657 gl_cv_warn_c__Wno_switch=yes
7658 else
7659 gl_cv_warn_c__Wno_switch=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 CFLAGS="$gl_save_compiler_FLAGS"
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7666 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7667 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7668 as_fn_append WARN_CFLAGS " -Wno-switch"
7671 # Too many warnings for now
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7673 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7674 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7678 gl_save_compiler_FLAGS="$CFLAGS"
7679 as_fn_append CFLAGS " -Wno-unused-parameter"
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7684 main ()
7688 return 0;
7690 _ACEOF
7691 if ac_fn_c_try_compile "$LINENO"; then :
7692 gl_cv_warn_c__Wno_unused_parameter=yes
7693 else
7694 gl_cv_warn_c__Wno_unused_parameter=no
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 CFLAGS="$gl_save_compiler_FLAGS"
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7701 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7702 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7703 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7706 # Too many warnings for now
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7708 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7709 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7713 gl_save_compiler_FLAGS="$CFLAGS"
7714 as_fn_append CFLAGS " -Wno-format-nonliteral"
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7719 main ()
7723 return 0;
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727 gl_cv_warn_c__Wno_format_nonliteral=yes
7728 else
7729 gl_cv_warn_c__Wno_format_nonliteral=no
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 CFLAGS="$gl_save_compiler_FLAGS"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7736 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7737 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7738 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7743 # In spite of excluding -Wlogical-op above, it is enabled, as of
7744 # gcc 4.5.0 20090517.
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7746 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7747 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7751 gl_save_compiler_FLAGS="$CFLAGS"
7752 as_fn_append CFLAGS " -Wno-logical-op"
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7757 main ()
7761 return 0;
7763 _ACEOF
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765 gl_cv_warn_c__Wno_logical_op=yes
7766 else
7767 gl_cv_warn_c__Wno_logical_op=no
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 CFLAGS="$gl_save_compiler_FLAGS"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7774 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7775 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7776 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7782 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7783 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7787 gl_save_compiler_FLAGS="$CFLAGS"
7788 as_fn_append CFLAGS " -fdiagnostics-show-option"
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7793 main ()
7797 return 0;
7799 _ACEOF
7800 if ac_fn_c_try_compile "$LINENO"; then :
7801 gl_cv_warn_c__fdiagnostics_show_option=yes
7802 else
7803 gl_cv_warn_c__fdiagnostics_show_option=no
7805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 CFLAGS="$gl_save_compiler_FLAGS"
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7810 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7811 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7812 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7817 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7818 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7822 gl_save_compiler_FLAGS="$CFLAGS"
7823 as_fn_append CFLAGS " -funit-at-a-time"
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7828 main ()
7832 return 0;
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"; then :
7836 gl_cv_warn_c__funit_at_a_time=yes
7837 else
7838 gl_cv_warn_c__funit_at_a_time=no
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 CFLAGS="$gl_save_compiler_FLAGS"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7845 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7846 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7847 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7853 $as_echo "#define lint 1" >>confdefs.h
7857 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7860 # We use a slightly smaller set of warning options for lib/.
7861 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7863 nw="$nw -Wunused-macros"
7866 gl_warn_set=
7867 set x $WARN_CFLAGS; shift
7868 for gl_warn_item
7870 case " $nw " in
7871 *" $gl_warn_item "*)
7874 gl_warn_set="$gl_warn_set $gl_warn_item"
7876 esac
7877 done
7878 GNULIB_WARN_CFLAGS=$gl_warn_set
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7886 $as_echo_n "checking whether ln -s works... " >&6; }
7887 LN_S=$as_ln_s
7888 if test "$LN_S" = "ln -s"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7890 $as_echo "yes" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7893 $as_echo "no, using $LN_S" >&6; }
7897 # Extract the first word of "install-info", so it can be a program name with args.
7898 set dummy install-info; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 case $INSTALL_INFO in
7905 [\\/]* | ?:[\\/]*)
7906 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7920 done
7921 done
7922 IFS=$as_save_IFS
7924 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7926 esac
7928 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7929 if test -n "$INSTALL_INFO"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7931 $as_echo "$INSTALL_INFO" >&6; }
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7938 # Extract the first word of "gzip", so it can be a program name with args.
7939 set dummy gzip; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 case $GZIP_PROG in
7946 [\\/]* | ?:[\\/]*)
7947 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7957 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7961 done
7962 done
7963 IFS=$as_save_IFS
7966 esac
7968 GZIP_PROG=$ac_cv_path_GZIP_PROG
7969 if test -n "$GZIP_PROG"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7971 $as_echo "$GZIP_PROG" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7979 if test $opsys = gnu-linux; then
7980 # Extract the first word of "paxctl", so it can be a program name with args.
7981 set dummy paxctl; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 case $PAXCTL in
7988 [\\/]* | ?:[\\/]*)
7989 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8003 done
8004 done
8005 IFS=$as_save_IFS
8008 esac
8010 PAXCTL=$ac_cv_path_PAXCTL
8011 if test -n "$PAXCTL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
8013 $as_echo "$PAXCTL" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8020 if test "X$PAXCTL" != X; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
8022 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8027 main ()
8031 return 0;
8033 _ACEOF
8034 if ac_fn_c_try_link "$LINENO"; then :
8035 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8036 $as_echo "yes" >&6; }
8037 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }; PAXCTL=""; fi
8040 rm -f core conftest.err conftest.$ac_objext \
8041 conftest$ac_exeext conftest.$ac_ext
8045 ## Need makeinfo >= 4.7 (?) to build the manuals.
8046 # Extract the first word of "makeinfo", so it can be a program name with args.
8047 set dummy makeinfo; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 case $MAKEINFO in
8054 [\\/]* | ?:[\\/]*)
8055 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 break 2
8069 done
8070 done
8071 IFS=$as_save_IFS
8073 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8075 esac
8077 MAKEINFO=$ac_cv_path_MAKEINFO
8078 if test -n "$MAKEINFO"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8080 $as_echo "$MAKEINFO" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8087 if test "$MAKEINFO" != "no" && \
8088 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then
8089 MAKEINFO=no
8092 ## Makeinfo is unusual. For a released Emacs, the manuals are
8093 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8094 ## therefore in the category of "special tools" not normally required, which
8095 ## configure does not have to check for (eg autoconf itself).
8096 ## In a Bazaar checkout on the other hand, the manuals are not included.
8097 ## So makeinfo is a requirement to build from Bazaar, and configure
8098 ## should test for it as it does for any other build requirement.
8099 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8100 ## with pre-built manuals, from a Bazaar checkout.
8101 HAVE_MAKEINFO=yes
8103 if test "$MAKEINFO" = "no"; then
8104 MAKEINFO=makeinfo
8105 if test "x${with_makeinfo}" = "xno"; then
8106 HAVE_MAKEINFO=no
8107 elif test ! -e $srcdir/info/emacs && test ! -e $srcdir/info/emacs.info; then
8108 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8109 source tree does not seem to have pre-built manuals in the \`info' directory.
8110 Either install a suitable version of makeinfo, or re-run configure
8111 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8116 INFO_EXT=.info
8117 INFO_OPTS=--no-split
8122 if test x$GCC = xyes; then
8123 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8124 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8125 else
8126 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8127 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8131 late_LDFLAGS=$LDFLAGS
8132 if test x$GCC = xyes; then
8133 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8134 else
8135 LDFLAGS="$LDFLAGS -znocombreloc"
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8139 $as_echo_n "checking for -znocombreloc... " >&6; }
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8144 main ()
8148 return 0;
8150 _ACEOF
8151 if ac_fn_c_try_link "$LINENO"; then :
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8153 $as_echo "yes" >&6; }
8154 else
8155 LDFLAGS=$late_LDFLAGS
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8159 rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8163 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8164 case "$opsys" in
8165 your-opsys-here) CANNOT_DUMP=yes ;;
8166 esac
8168 test "$CANNOT_DUMP" = "yes" && \
8170 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8176 UNEXEC_OBJ=unexelf.o
8177 case "$opsys" in
8178 # MSDOS uses unexcoff.o
8179 # MSWindows uses unexw32.o
8180 aix4-2)
8181 UNEXEC_OBJ=unexaix.o
8183 cygwin)
8184 UNEXEC_OBJ=unexcw.o
8186 darwin)
8187 UNEXEC_OBJ=unexmacosx.o
8189 hpux10-20 | hpux11)
8190 UNEXEC_OBJ=unexhp9k800.o
8192 sol2-10)
8193 # Use the Solaris dldump() function, called from unexsol.c, to dump
8194 # emacs, instead of the generic ELF dump code found in unexelf.c.
8195 # The resulting binary has a complete symbol table, and is better
8196 # for debugging and other observability tools (debuggers, pstack, etc).
8198 # If you encounter a problem using dldump(), please consider sending
8199 # a message to the OpenSolaris tools-linking mailing list:
8200 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8202 # It is likely that dldump() works with older Solaris too, but this has
8203 # not been tested, so for now this change is for Solaris 10 or newer.
8204 UNEXEC_OBJ=unexsol.o
8206 esac
8208 LD_SWITCH_SYSTEM=
8209 case "$opsys" in
8210 freebsd)
8211 ## Let `ld' find image libs and similar things in /usr/local/lib.
8212 ## The system compiler, GCC, has apparently been modified to not
8213 ## look there, contrary to what a stock GCC would do.
8214 ### It's not our place to do this. See bug#10313#17.
8215 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8219 gnu-linux)
8220 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8221 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8224 netbsd)
8225 ### It's not our place to do this. See bug#10313#17.
8226 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8230 openbsd)
8231 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8232 ## otherwise Emacs dumps core on elf systems.
8233 LD_SWITCH_SYSTEM="-Z"
8235 esac
8238 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8240 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8241 ## which has not been defined yet. When this was handled with cpp,
8242 ## it was expanded to null when configure sourced the s/*.h file.
8243 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8244 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8245 ## (or somesuch), but because it is supposed to go at the _front_
8246 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8247 ## Compare with the gnu-linux case below, which added to the end
8248 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8249 ## LD_SWITCH_SYSTEM_TEMACS.
8250 case "$opsys" in
8251 netbsd|openbsd)
8252 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8253 esac
8256 C_SWITCH_MACHINE=
8257 case $canonical in
8258 alpha*)
8259 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8260 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8264 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8265 ## With ELF, make sure that all common symbols get allocated to in the
8266 ## data section. Otherwise, the dump of temacs may miss variables in
8267 ## the shared library that have been initialized. For example, with
8268 ## GNU libc, __malloc_initialized would normally be resolved to the
8269 ## shared library's .bss section, which is fatal.
8270 if test "x$GCC" = "xyes"; then
8271 C_SWITCH_MACHINE="-fno-common"
8272 else
8273 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8275 else
8276 UNEXEC_OBJ=unexalpha.o
8279 esac
8284 C_SWITCH_SYSTEM=
8285 ## Some programs in src produce warnings saying certain subprograms
8286 ## are too complex and need a MAXMEM value greater than 2000 for
8287 ## additional optimization. --nils@exp-math.uni-essen.de
8288 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8289 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8290 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8291 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8295 LIBS_SYSTEM=
8296 case "$opsys" in
8297 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8298 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8300 freebsd) LIBS_SYSTEM="-lutil" ;;
8302 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8304 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8306 ## Motif needs -lgen.
8307 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8308 esac
8312 ### Make sure subsequent tests use flags consistent with the build flags.
8314 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8315 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8316 else
8317 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8320 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8322 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8326 LIB_MATH=-lm
8327 LIB_STANDARD=
8328 START_FILES=
8329 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8331 case $opsys in
8332 cygwin )
8333 LIB_MATH=
8334 START_FILES='pre-crt0.o'
8336 darwin )
8337 ## Adding -lm confuses the dynamic linker, so omit it.
8338 LIB_MATH=
8339 START_FILES='pre-crt0.o'
8341 freebsd )
8342 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8343 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8344 SYSTEM_TYPE=berkeley-unix
8346 gnu-linux | gnu-kfreebsd )
8347 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8348 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8350 hpux10-20 | hpux11 )
8351 LIB_STANDARD=-lc
8352 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8354 netbsd | openbsd )
8355 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8356 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8357 SYSTEM_TYPE=berkeley-unix
8360 sol2* | unixware )
8361 SYSTEM_TYPE=usg-unix-v
8364 esac
8369 cat >>confdefs.h <<_ACEOF
8370 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8371 _ACEOF
8374 crt_files=
8376 for file in x $LIB_STANDARD $START_FILES; do
8377 case "$file" in
8378 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8379 esac
8380 done
8382 if test "x$crt_files" != x; then
8384 ## If user specified a crt-dir, use that unconditionally.
8385 crt_gcc=no
8387 if test "X$CRT_DIR" = "X"; then
8389 CRT_DIR=/usr/lib # default
8391 case "$canonical" in
8392 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8393 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8394 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8395 ## For anything else (eg /usr/lib32), it is up the user to specify
8396 ## the location (bug#5655).
8397 ## Test for crtn.o, not just the directory, because sometimes the
8398 ## directory exists but does not have the relevant files (bug#1287).
8399 ## FIXME better to test for binary compatibility somehow.
8400 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8403 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8404 esac
8406 case "$opsys" in
8407 hpux10-20) CRT_DIR=/lib ;;
8408 esac
8410 test "x${GCC}" = xyes && crt_gcc=yes
8412 fi # CRT_DIR = ""
8414 crt_missing=
8416 for file in $crt_files; do
8418 ## If we're using gcc, try to determine it automatically by asking
8419 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8420 ## system-dependent default from above.]
8421 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8423 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8424 case "$crt_file" in
8425 */*)
8426 CRT_DIR=`$as_dirname -- "$crt_file" ||
8427 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8428 X"$crt_file" : 'X\(//\)[^/]' \| \
8429 X"$crt_file" : 'X\(//\)$' \| \
8430 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8431 $as_echo X"$crt_file" |
8432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8433 s//\1/
8436 /^X\(\/\/\)[^/].*/{
8437 s//\1/
8440 /^X\(\/\/\)$/{
8441 s//\1/
8444 /^X\(\/\).*/{
8445 s//\1/
8448 s/.*/./; q'`
8450 esac
8453 crt_gcc=no
8455 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8456 done # $crt_files
8458 test "x$crt_missing" = x || \
8459 as_fn_error "Required file(s) not found:$crt_missing
8460 Try using the --with-crt-dir option." "$LINENO" 5
8462 fi # crt_files != ""
8466 case $opsys in
8467 netbsd | openbsd )
8468 if test -f $CRT_DIR/crti.o; then
8470 test -f $CRT_DIR/crtn.o || \
8471 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8473 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8474 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8477 esac
8480 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8481 pre_PKG_CONFIG_LIBS=$LIBS
8483 # Extract the first word of "pkg-config", so it can be a program name with args.
8484 set dummy pkg-config; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 case $PKG_CONFIG in
8491 [\\/]* | ?:[\\/]*)
8492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 break 2
8506 done
8507 done
8508 IFS=$as_save_IFS
8510 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8512 esac
8514 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8515 if test -n "$PKG_CONFIG"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8517 $as_echo "$PKG_CONFIG" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8528 if test "${with_sound}" != "no"; then
8529 # Sound support for GNU/Linux and the free BSDs.
8530 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8531 do :
8532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8533 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8534 eval as_val=\$$as_ac_Header
8535 if test "x$as_val" = x""yes; then :
8536 cat >>confdefs.h <<_ACEOF
8537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8538 _ACEOF
8539 have_sound_header=yes
8542 done
8544 # Emulation library used on NetBSD.
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8546 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8547 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 ac_check_lib_save_LIBS=$LIBS
8551 LIBS="-lossaudio $LIBS"
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8555 /* Override any GCC internal prototype to avoid an error.
8556 Use char because int might match the return type of a GCC
8557 builtin and then its argument prototype would still apply. */
8558 #ifdef __cplusplus
8559 extern "C"
8560 #endif
8561 char _oss_ioctl ();
8563 main ()
8565 return _oss_ioctl ();
8567 return 0;
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"; then :
8571 ac_cv_lib_ossaudio__oss_ioctl=yes
8572 else
8573 ac_cv_lib_ossaudio__oss_ioctl=no
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 LIBS=$ac_check_lib_save_LIBS
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8580 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8581 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8582 LIBSOUND=-lossaudio
8583 else
8584 LIBSOUND=
8589 ALSA_REQUIRED=1.0.0
8590 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8592 succeeded=no
8594 if test "$PKG_CONFIG" = "no" ; then
8595 HAVE_ALSA=no
8596 else
8597 PKG_CONFIG_MIN_VERSION=0.9.0
8598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8600 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8602 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8603 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8604 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8605 edit_cflags="
8606 s,///*,/,g
8607 s/^/ /
8608 s/ -I/ $isystem/g
8609 s/^ //
8611 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8612 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8614 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8615 succeeded=yes
8616 else
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8619 ALSA_CFLAGS=""
8620 ALSA_LIBS=""
8621 ## If we have a custom action on failure, don't print errors, but
8622 ## do set a variable so people can do so. Do it in a subshell
8623 ## to capture any diagnostics in invoking pkg-config.
8624 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8630 else
8631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8636 if test $succeeded = yes; then
8637 HAVE_ALSA=yes
8638 else
8639 HAVE_ALSA=no
8642 if test $HAVE_ALSA = yes; then
8643 SAVE_CFLAGS="$CFLAGS"
8644 SAVE_LIBS="$LIBS"
8645 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8646 LIBS="$ALSA_LIBS $LIBS"
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 #include <asoundlib.h>
8651 main ()
8653 snd_lib_error_set_handler (0);
8655 return 0;
8657 _ACEOF
8658 if ac_fn_c_try_compile "$LINENO"; then :
8659 emacs_alsa_normal=yes
8660 else
8661 emacs_alsa_normal=no
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 if test "$emacs_alsa_normal" != yes; then
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <alsa/asoundlib.h>
8669 main ()
8671 snd_lib_error_set_handler (0);
8673 return 0;
8675 _ACEOF
8676 if ac_fn_c_try_compile "$LINENO"; then :
8677 emacs_alsa_subdir=yes
8678 else
8679 emacs_alsa_subdir=no
8681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 if test "$emacs_alsa_subdir" != yes; then
8683 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8685 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8688 CFLAGS="$SAVE_CFLAGS"
8689 LIBS="$SAVE_LIBS"
8690 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8691 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8693 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8697 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8698 case "$opsys" in
8699 gnu-linux|freebsd|netbsd)
8701 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8704 esac
8713 for ac_header in $ac_header_list
8714 do :
8715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8718 eval as_val=\$$as_ac_Header
8719 if test "x$as_val" = x""yes; then :
8720 cat >>confdefs.h <<_ACEOF
8721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8722 _ACEOF
8726 done
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8757 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <sys/personality.h>
8762 main ()
8764 personality (PER_LINUX32)
8766 return 0;
8768 _ACEOF
8769 if ac_fn_c_try_compile "$LINENO"; then :
8770 emacs_cv_personality_linux32=yes
8771 else
8772 emacs_cv_personality_linux32=no
8774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8776 $as_echo "$emacs_cv_personality_linux32" >&6; }
8778 if test $emacs_cv_personality_linux32 = yes; then
8780 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8784 for ac_header in term.h
8785 do :
8786 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8787 if test "x$ac_cv_header_term_h" = x""yes; then :
8788 cat >>confdefs.h <<_ACEOF
8789 #define HAVE_TERM_H 1
8790 _ACEOF
8794 done
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8797 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8798 if test "${ac_cv_header_time+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 #include <sys/types.h>
8804 #include <sys/time.h>
8805 #include <time.h>
8808 main ()
8810 if ((struct tm *) 0)
8811 return 0;
8813 return 0;
8815 _ACEOF
8816 if ac_fn_c_try_compile "$LINENO"; then :
8817 ac_cv_header_time=yes
8818 else
8819 ac_cv_header_time=no
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8824 $as_echo "$ac_cv_header_time" >&6; }
8825 if test $ac_cv_header_time = yes; then
8827 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8831 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
8834 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8835 ac_have_decl=1
8836 else
8837 ac_have_decl=0
8840 cat >>confdefs.h <<_ACEOF
8841 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8842 _ACEOF
8844 if test $ac_cv_have_decl_sys_siglist != yes; then
8845 # For Tru64, at least:
8846 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h>
8849 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8850 ac_have_decl=1
8851 else
8852 ac_have_decl=0
8855 cat >>confdefs.h <<_ACEOF
8856 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8857 _ACEOF
8859 if test $ac_cv_have_decl___sys_siglist = yes; then
8861 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8866 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8867 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <sys/types.h>
8873 #include <sys/wait.h>
8874 #ifndef WEXITSTATUS
8875 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8876 #endif
8877 #ifndef WIFEXITED
8878 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8879 #endif
8882 main ()
8884 int s;
8885 wait (&s);
8886 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8888 return 0;
8890 _ACEOF
8891 if ac_fn_c_try_compile "$LINENO"; then :
8892 ac_cv_header_sys_wait_h=yes
8893 else
8894 ac_cv_header_sys_wait_h=no
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8899 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8900 if test $ac_cv_header_sys_wait_h = yes; then
8902 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8908 $as_echo_n "checking for speed_t... " >&6; }
8909 if test "${emacs_cv_speed_t+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8914 #include <termios.h>
8916 main ()
8918 speed_t x = 1;
8920 return 0;
8922 _ACEOF
8923 if ac_fn_c_try_compile "$LINENO"; then :
8924 emacs_cv_speed_t=yes
8925 else
8926 emacs_cv_speed_t=no
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8931 $as_echo "$emacs_cv_speed_t" >&6; }
8932 if test $emacs_cv_speed_t = yes; then
8934 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8941 for ac_header in net/if.h
8942 do :
8943 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8944 #if HAVE_SYS_SOCKET_H
8945 #include <sys/socket.h>
8946 #endif
8948 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8949 cat >>confdefs.h <<_ACEOF
8950 #define HAVE_NET_IF_H 1
8951 _ACEOF
8955 done
8957 for ac_header in ifaddrs.h
8958 do :
8959 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8960 #if HAVE_SYS_SOCKET_H
8961 #include <sys/socket.h>
8962 #endif
8964 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8965 cat >>confdefs.h <<_ACEOF
8966 #define HAVE_IFADDRS_H 1
8967 _ACEOF
8971 done
8973 for ac_header in net/if_dl.h
8974 do :
8975 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8976 #if HAVE_SYS_SOCKET_H
8977 #include <sys/socket.h>
8978 #endif
8980 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8981 cat >>confdefs.h <<_ACEOF
8982 #define HAVE_NET_IF_DL_H 1
8983 _ACEOF
8987 done
8990 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8991 #if HAVE_SYS_SOCKET_H
8992 #include <sys/socket.h>
8993 #endif
8994 #if HAVE_NET_IF_H
8995 #include <net/if.h>
8996 #endif
8998 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
9000 cat >>confdefs.h <<_ACEOF
9001 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
9002 _ACEOF
9006 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
9007 #if HAVE_SYS_SOCKET_H
9008 #include <sys/socket.h>
9009 #endif
9010 #if HAVE_NET_IF_H
9011 #include <net/if.h>
9012 #endif
9014 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
9016 cat >>confdefs.h <<_ACEOF
9017 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9018 _ACEOF
9022 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
9023 #if HAVE_SYS_SOCKET_H
9024 #include <sys/socket.h>
9025 #endif
9026 #if HAVE_NET_IF_H
9027 #include <net/if.h>
9028 #endif
9030 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
9032 cat >>confdefs.h <<_ACEOF
9033 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9034 _ACEOF
9038 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
9039 #if HAVE_SYS_SOCKET_H
9040 #include <sys/socket.h>
9041 #endif
9042 #if HAVE_NET_IF_H
9043 #include <net/if.h>
9044 #endif
9046 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9050 _ACEOF
9054 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
9055 #if HAVE_SYS_SOCKET_H
9056 #include <sys/socket.h>
9057 #endif
9058 #if HAVE_NET_IF_H
9059 #include <net/if.h>
9060 #endif
9062 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9064 cat >>confdefs.h <<_ACEOF
9065 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9066 _ACEOF
9070 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9071 #if HAVE_SYS_SOCKET_H
9072 #include <sys/socket.h>
9073 #endif
9074 #if HAVE_NET_IF_H
9075 #include <net/if.h>
9076 #endif
9078 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9080 cat >>confdefs.h <<_ACEOF
9081 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9082 _ACEOF
9090 DEPFLAGS=
9091 MKDEPDIR=":"
9092 deps_frag=deps.mk
9093 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9095 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9096 HAVE_GNU_MAKE=no
9097 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9098 if test "x$testval" != x; then
9099 HAVE_GNU_MAKE=yes
9100 else
9101 ac_enable_autodepend=no
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9104 $as_echo "$HAVE_GNU_MAKE" >&6; }
9105 if test $HAVE_GNU_MAKE = yes; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9107 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9108 SAVE_CFLAGS="$CFLAGS"
9109 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9114 main ()
9118 return 0;
9120 _ACEOF
9121 if ac_fn_c_try_compile "$LINENO"; then :
9123 else
9124 ac_enable_autodepend=no
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 CFLAGS="$SAVE_CFLAGS"
9128 test -f deps.d || ac_enable_autodepend=no
9129 rm -rf deps.d
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9131 $as_echo "$ac_enable_autodepend" >&6; }
9133 if test $ac_enable_autodepend = yes; then
9134 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9135 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9136 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9137 deps_frag=autodeps.mk
9140 deps_frag=$srcdir/src/$deps_frag
9146 lisp_frag=$srcdir/src/lisp.mk
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9151 $as_echo_n "checking for long file names... " >&6; }
9152 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 ac_cv_sys_long_file_names=yes
9156 # Test for long file names in all the places we know might matter:
9157 # . the current directory, where building will happen
9158 # $prefix/lib where we will be installing things
9159 # $exec_prefix/lib likewise
9160 # $TMPDIR if set, where it might want to write temporary files
9161 # /tmp where it might want to write temporary files
9162 # /var/tmp likewise
9163 # /usr/tmp likewise
9164 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9165 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9166 # in the usual case where exec_prefix is '${prefix}'.
9167 case $ac_dir in #(
9168 . | /* | ?:[\\/]*) ;; #(
9169 *) continue;;
9170 esac
9171 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9172 ac_xdir=$ac_dir/cf$$
9173 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9174 ac_tf1=$ac_xdir/conftest9012345
9175 ac_tf2=$ac_xdir/conftest9012346
9176 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9177 ac_cv_sys_long_file_names=no
9178 rm -f -r "$ac_xdir" 2>/dev/null
9179 test $ac_cv_sys_long_file_names = no && break
9180 done
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9183 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9184 if test $ac_cv_sys_long_file_names = yes; then
9186 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9191 #### Choose a window system.
9193 ## We leave window_system equal to none if
9194 ## we end up building without one. Any new window system should
9195 ## set window_system to an appropriate value and add objects to
9196 ## window-system-specific substs.
9198 window_system=none
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9200 $as_echo_n "checking for X... " >&6; }
9203 # Check whether --with-x was given.
9204 if test "${with_x+set}" = set; then :
9205 withval=$with_x;
9208 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9209 if test "x$with_x" = xno; then
9210 # The user explicitly disabled X.
9211 have_x=disabled
9212 else
9213 case $x_includes,$x_libraries in #(
9214 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9215 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 # One or both of the vars are not set, and there is no cached value.
9219 ac_x_includes=no ac_x_libraries=no
9220 rm -f -r conftest.dir
9221 if mkdir conftest.dir; then
9222 cd conftest.dir
9223 cat >Imakefile <<'_ACEOF'
9224 incroot:
9225 @echo incroot='${INCROOT}'
9226 usrlibdir:
9227 @echo usrlibdir='${USRLIBDIR}'
9228 libdir:
9229 @echo libdir='${LIBDIR}'
9230 _ACEOF
9231 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9233 for ac_var in incroot usrlibdir libdir; do
9234 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9235 done
9236 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9237 for ac_extension in a so sl dylib la dll; do
9238 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9239 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9240 ac_im_usrlibdir=$ac_im_libdir; break
9242 done
9243 # Screen out bogus values from the imake configuration. They are
9244 # bogus both because they are the default anyway, and because
9245 # using them would break gcc on systems where it needs fixed includes.
9246 case $ac_im_incroot in
9247 /usr/include) ac_x_includes= ;;
9248 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9249 esac
9250 case $ac_im_usrlibdir in
9251 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9252 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9253 esac
9255 cd ..
9256 rm -f -r conftest.dir
9259 # Standard set of common directories for X headers.
9260 # Check X11 before X11Rn because it is often a symlink to the current release.
9261 ac_x_header_dirs='
9262 /usr/X11/include
9263 /usr/X11R7/include
9264 /usr/X11R6/include
9265 /usr/X11R5/include
9266 /usr/X11R4/include
9268 /usr/include/X11
9269 /usr/include/X11R7
9270 /usr/include/X11R6
9271 /usr/include/X11R5
9272 /usr/include/X11R4
9274 /usr/local/X11/include
9275 /usr/local/X11R7/include
9276 /usr/local/X11R6/include
9277 /usr/local/X11R5/include
9278 /usr/local/X11R4/include
9280 /usr/local/include/X11
9281 /usr/local/include/X11R7
9282 /usr/local/include/X11R6
9283 /usr/local/include/X11R5
9284 /usr/local/include/X11R4
9286 /usr/X386/include
9287 /usr/x386/include
9288 /usr/XFree86/include/X11
9290 /usr/include
9291 /usr/local/include
9292 /usr/unsupported/include
9293 /usr/athena/include
9294 /usr/local/x11r5/include
9295 /usr/lpp/Xamples/include
9297 /usr/openwin/include
9298 /usr/openwin/share/include'
9300 if test "$ac_x_includes" = no; then
9301 # Guess where to find include files, by looking for Xlib.h.
9302 # First, try using that file with no special directory specified.
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9305 #include <X11/Xlib.h>
9306 _ACEOF
9307 if ac_fn_c_try_cpp "$LINENO"; then :
9308 # We can compile using X headers with no special include directory.
9309 ac_x_includes=
9310 else
9311 for ac_dir in $ac_x_header_dirs; do
9312 if test -r "$ac_dir/X11/Xlib.h"; then
9313 ac_x_includes=$ac_dir
9314 break
9316 done
9318 rm -f conftest.err conftest.$ac_ext
9319 fi # $ac_x_includes = no
9321 if test "$ac_x_libraries" = no; then
9322 # Check for the libraries.
9323 # See if we find them without any special options.
9324 # Don't add to $LIBS permanently.
9325 ac_save_LIBS=$LIBS
9326 LIBS="-lX11 $LIBS"
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9329 #include <X11/Xlib.h>
9331 main ()
9333 XrmInitialize ()
9335 return 0;
9337 _ACEOF
9338 if ac_fn_c_try_link "$LINENO"; then :
9339 LIBS=$ac_save_LIBS
9340 # We can link X programs with no special library path.
9341 ac_x_libraries=
9342 else
9343 LIBS=$ac_save_LIBS
9344 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9346 # Don't even attempt the hair of trying to link an X program!
9347 for ac_extension in a so sl dylib la dll; do
9348 if test -r "$ac_dir/libX11.$ac_extension"; then
9349 ac_x_libraries=$ac_dir
9350 break 2
9352 done
9353 done
9355 rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
9357 fi # $ac_x_libraries = no
9359 case $ac_x_includes,$ac_x_libraries in #(
9360 no,* | *,no | *\'*)
9361 # Didn't find X, or a directory has "'" in its name.
9362 ac_cv_have_x="have_x=no";; #(
9364 # Record where we found X for the cache.
9365 ac_cv_have_x="have_x=yes\
9366 ac_x_includes='$ac_x_includes'\
9367 ac_x_libraries='$ac_x_libraries'"
9368 esac
9370 ;; #(
9371 *) have_x=yes;;
9372 esac
9373 eval "$ac_cv_have_x"
9374 fi # $with_x != no
9376 if test "$have_x" != yes; then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9378 $as_echo "$have_x" >&6; }
9379 no_x=yes
9380 else
9381 # If each of the values was on the command line, it overrides each guess.
9382 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9383 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9384 # Update the cache value to reflect the command line values.
9385 ac_cv_have_x="have_x=yes\
9386 ac_x_includes='$x_includes'\
9387 ac_x_libraries='$x_libraries'"
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9389 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9392 if test "$no_x" != yes; then
9393 window_system=x11
9396 LD_SWITCH_X_SITE_RPATH=
9397 if test "${x_libraries}" != NONE; then
9398 if test -n "${x_libraries}"; then
9399 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9400 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9402 x_default_search_path=""
9403 x_search_path=${x_libraries}
9404 if test -z "${x_search_path}"; then
9405 x_search_path=/usr/lib
9407 for x_library in `echo ${x_search_path}: | \
9408 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9409 x_search_path="\
9410 ${x_library}/X11/%L/%T/%N%C%S:\
9411 ${x_library}/X11/%l/%T/%N%C%S:\
9412 ${x_library}/X11/%T/%N%C%S:\
9413 ${x_library}/X11/%L/%T/%N%S:\
9414 ${x_library}/X11/%l/%T/%N%S:\
9415 ${x_library}/X11/%T/%N%S"
9416 if test x"${x_default_search_path}" = x; then
9417 x_default_search_path=${x_search_path}
9418 else
9419 x_default_search_path="${x_search_path}:${x_default_search_path}"
9421 done
9425 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9426 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9429 if test x"${x_includes}" = x; then
9430 bitmapdir=/usr/include/X11/bitmaps
9431 else
9432 # accumulate include directories that have X11 bitmap subdirectories
9433 bmd_acc="dummyval"
9434 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9435 if test -d "${bmd}/X11/bitmaps"; then
9436 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9438 if test -d "${bmd}/bitmaps"; then
9439 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9441 done
9442 if test ${bmd_acc} != "dummyval"; then
9443 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9447 HAVE_NS=no
9448 NS_IMPL_COCOA=no
9449 NS_IMPL_GNUSTEP=no
9450 tmp_CPPFLAGS="$CPPFLAGS"
9451 tmp_CFLAGS="$CFLAGS"
9452 CPPFLAGS="$CPPFLAGS -x objective-c"
9453 CFLAGS="$CFLAGS -x objective-c"
9454 GNU_OBJC_CFLAGS=
9455 LIBS_GNUSTEP=
9456 if test "${with_ns}" != no; then
9457 if test "${opsys}" = darwin; then
9458 NS_IMPL_COCOA=yes
9459 ns_appdir=`pwd`/nextstep/Emacs.app
9460 ns_appbindir=${ns_appdir}/Contents/MacOS
9461 ns_appresdir=${ns_appdir}/Contents/Resources
9462 ns_appsrc=Cocoa/Emacs.base
9463 elif test -f $GNUSTEP_CONFIG_FILE; then
9464 NS_IMPL_GNUSTEP=yes
9465 ns_appdir=`pwd`/nextstep/Emacs.app
9466 ns_appbindir=${ns_appdir}
9467 ns_appresdir=${ns_appdir}/Resources
9468 ns_appsrc=GNUstep/Emacs.base
9469 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9470 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9471 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9472 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9473 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9474 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9475 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9476 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9477 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9478 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9479 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9480 LIBS_GNUSTEP="-lgnustep-gui -lgnustep-base -lobjc -lpthread"
9481 LIB_STANDARD=
9482 START_FILES=
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9484 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9485 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490 #include <GNUstepBase/GSConfig.h>
9492 main ()
9494 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9496 #else
9497 fail;
9498 #endif
9500 return 0;
9502 _ACEOF
9503 if ac_fn_c_try_compile "$LINENO"; then :
9504 emacs_cv_objc_exceptions=yes
9505 else
9506 emacs_cv_objc_exceptions=no
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9511 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9512 if test $emacs_cv_objc_exceptions = yes; then
9514 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9516 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9520 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9522 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9523 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9524 HAVE_NS=yes
9525 else
9526 as_fn_error "\`--with-ns' was specified, but the include
9527 files are missing or cannot be compiled." "$LINENO" 5
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 #include <AppKit/AppKit.h>
9536 main ()
9539 #ifdef MAC_OS_X_VERSION_MAX_ALLOWED
9540 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040
9541 ; /* OK */
9542 #else
9543 #error "OSX 10.4 or newer required"
9544 #endif
9545 #endif
9548 return 0;
9550 _ACEOF
9551 if ac_fn_c_try_compile "$LINENO"; then :
9552 ns_osx_have_104=yes
9553 else
9554 ns_osx_have_104=no
9556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 #include <Foundation/NSObjCRuntime.h>
9561 main ()
9563 NSInteger i;
9565 return 0;
9567 _ACEOF
9568 if ac_fn_c_try_compile "$LINENO"; then :
9569 ns_have_nsinteger=yes
9570 else
9571 ns_have_nsinteger=no
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574 if test $ns_osx_have_104 = no; then
9575 as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5;
9577 if test $ns_have_nsinteger = yes; then
9579 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9586 INSTALL_ARCH_INDEP_EXTRA=install-etc
9587 ns_self_contained=no
9588 NS_OBJ=
9589 NS_OBJC_OBJ=
9590 if test "${HAVE_NS}" = yes; then
9591 if test "$with_toolkit_scroll_bars" = "no"; then
9592 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9595 window_system=nextstep
9596 # set up packaging dirs
9597 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9598 ns_self_contained=yes
9599 prefix=${ns_appresdir}
9600 exec_prefix=${ns_appbindir}
9601 libexecdir="\${ns_appbindir}/libexec"
9602 archlibdir="\${ns_appbindir}/libexec"
9603 docdir="\${ns_appresdir}/etc"
9604 etcdir="\${ns_appresdir}/etc"
9605 infodir="\${ns_appresdir}/info"
9606 mandir="\${ns_appresdir}/man"
9607 lispdir="\${ns_appresdir}/lisp"
9608 leimdir="\${ns_appresdir}/leim"
9609 INSTALL_ARCH_INDEP_EXTRA=
9611 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9613 CFLAGS="$tmp_CFLAGS"
9614 CPPFLAGS="$tmp_CPPFLAGS"
9621 HAVE_W32=no
9622 W32_OBJ=
9623 W32_LIBS=
9624 if test "${with_w32}" != no; then
9625 if test "${opsys}" != "cygwin"; then
9626 as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5
9628 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9629 if test "x$ac_cv_header_windows_h" = x""yes; then :
9630 HAVE_W32=yes
9631 else
9632 as_fn_error "\`--with-w32' was specified, but windows.h
9633 cannot be found." "$LINENO" 5
9638 $as_echo "#define HAVE_NTGUI 1" >>confdefs.h
9640 W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o"
9641 W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o"
9642 W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32"
9643 W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool"
9648 if test "${HAVE_W32}" = "yes"; then
9649 window_system=w32
9650 with_xft=no
9653 ## $window_system is now set to the window system we will
9654 ## ultimately use.
9656 term_header=
9657 HAVE_X_WINDOWS=no
9658 HAVE_X11=no
9659 USE_X_TOOLKIT=none
9661 case "${window_system}" in
9662 x11 )
9663 HAVE_X_WINDOWS=yes
9664 HAVE_X11=yes
9665 term_header=xterm.h
9666 case "${with_x_toolkit}" in
9667 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9668 motif ) USE_X_TOOLKIT=MOTIF ;;
9669 gtk ) with_gtk=yes
9670 term_header=gtkutil.h
9671 USE_X_TOOLKIT=none ;;
9672 gtk2 ) with_gtk2=yes
9673 term_header=gtkutil.h
9674 USE_X_TOOLKIT=none ;;
9675 gtk3 ) with_gtk3=yes
9676 term_header=gtkutil.h
9677 USE_X_TOOLKIT=none ;;
9678 no ) USE_X_TOOLKIT=none ;;
9679 * ) USE_X_TOOLKIT=maybe ;;
9680 esac
9682 nextstep )
9683 term_header=nsterm.h
9685 w32 )
9686 term_header=w32term.h
9688 esac
9690 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9691 # Extract the first word of "X", so it can be a program name with args.
9692 set dummy X; ac_word=$2
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 $as_echo_n "checking for $ac_word... " >&6; }
9695 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 if test -n "$HAVE_XSERVER"; then
9699 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9700 else
9701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 for ac_exec_ext in '' $ac_executable_extensions; do
9707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9708 ac_cv_prog_HAVE_XSERVER="true"
9709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9710 break 2
9712 done
9713 done
9714 IFS=$as_save_IFS
9716 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9719 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9720 if test -n "$HAVE_XSERVER"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9722 $as_echo "$HAVE_XSERVER" >&6; }
9723 else
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725 $as_echo "no" >&6; }
9729 if test "$HAVE_XSERVER" = true ||
9730 test -n "$DISPLAY" ||
9731 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9732 as_fn_error "You seem to be running X, but no X development libraries
9733 were found. You should install the relevant development files for X
9734 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9735 sure you have development files for image handling, i.e.
9736 tiff, gif, jpeg, png and xpm.
9737 If you are sure you want Emacs compiled without X window support, pass
9738 --without-x
9739 to configure." "$LINENO" 5
9743 ### If we're using X11, we should use the X menu package.
9744 HAVE_MENUS=no
9745 case ${HAVE_X11} in
9746 yes ) HAVE_MENUS=yes ;;
9747 esac
9749 # Does the opsystem file prohibit the use of the GNU malloc?
9750 # Assume not, until told otherwise.
9751 GNU_MALLOC=yes
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9754 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9755 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9756 $as_echo_n "(cached) " >&6
9757 else
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 #include <malloc.h>
9761 static void hook (void) {}
9763 main ()
9765 malloc_set_state (malloc_get_state ());
9766 __after_morecore_hook = hook;
9767 __malloc_initialize_hook = hook;
9769 return 0;
9771 _ACEOF
9772 if ac_fn_c_try_link "$LINENO"; then :
9773 emacs_cv_var_doug_lea_malloc=yes
9774 else
9775 emacs_cv_var_doug_lea_malloc=no
9777 rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9781 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9782 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9785 system_malloc=no
9786 case "$opsys" in
9787 ## darwin ld insists on the use of malloc routines in the System framework.
9788 darwin|sol2-10) system_malloc=yes ;;
9789 esac
9791 if test "${system_malloc}" = "yes"; then
9793 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9795 GNU_MALLOC=no
9796 GNU_MALLOC_reason="
9797 (The GNU allocators don't work with this system configuration.)"
9798 GMALLOC_OBJ=
9799 VMLIMIT_OBJ=
9800 else
9801 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9802 VMLIMIT_OBJ=vm-limit.o
9807 if test "$doug_lea_malloc" = "yes" ; then
9808 if test "$GNU_MALLOC" = yes ; then
9809 GNU_MALLOC_reason="
9810 (Using Doug Lea's new malloc from the GNU C Library.)"
9813 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9816 ## Use mmap directly for allocating larger buffers.
9817 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9818 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9819 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9820 case "$opsys" in
9821 gnu*) REL_ALLOC=no ;;
9822 esac
9825 if test x"${REL_ALLOC}" = x; then
9826 REL_ALLOC=${GNU_MALLOC}
9829 use_mmap_for_buffers=no
9830 case "$opsys" in
9831 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9832 esac
9841 for ac_func in getpagesize
9842 do :
9843 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9844 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9845 cat >>confdefs.h <<_ACEOF
9846 #define HAVE_GETPAGESIZE 1
9847 _ACEOF
9850 done
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9853 $as_echo_n "checking for working mmap... " >&6; }
9854 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 if test "$cross_compiling" = yes; then :
9858 ac_cv_func_mmap_fixed_mapped=no
9859 else
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9862 $ac_includes_default
9863 /* malloc might have been renamed as rpl_malloc. */
9864 #undef malloc
9866 /* Thanks to Mike Haertel and Jim Avera for this test.
9867 Here is a matrix of mmap possibilities:
9868 mmap private not fixed
9869 mmap private fixed at somewhere currently unmapped
9870 mmap private fixed at somewhere already mapped
9871 mmap shared not fixed
9872 mmap shared fixed at somewhere currently unmapped
9873 mmap shared fixed at somewhere already mapped
9874 For private mappings, we should verify that changes cannot be read()
9875 back from the file, nor mmap's back from the file at a different
9876 address. (There have been systems where private was not correctly
9877 implemented like the infamous i386 svr4.0, and systems where the
9878 VM page cache was not coherent with the file system buffer cache
9879 like early versions of FreeBSD and possibly contemporary NetBSD.)
9880 For shared mappings, we should conversely verify that changes get
9881 propagated back to all the places they're supposed to be.
9883 Grep wants private fixed already mapped.
9884 The main things grep needs to know about mmap are:
9885 * does it exist and is it safe to write into the mmap'd area
9886 * how to use it (BSD variants) */
9888 #include <fcntl.h>
9889 #include <sys/mman.h>
9891 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9892 char *malloc ();
9893 #endif
9895 /* This mess was copied from the GNU getpagesize.h. */
9896 #ifndef HAVE_GETPAGESIZE
9897 # ifdef _SC_PAGESIZE
9898 # define getpagesize() sysconf(_SC_PAGESIZE)
9899 # else /* no _SC_PAGESIZE */
9900 # ifdef HAVE_SYS_PARAM_H
9901 # include <sys/param.h>
9902 # ifdef EXEC_PAGESIZE
9903 # define getpagesize() EXEC_PAGESIZE
9904 # else /* no EXEC_PAGESIZE */
9905 # ifdef NBPG
9906 # define getpagesize() NBPG * CLSIZE
9907 # ifndef CLSIZE
9908 # define CLSIZE 1
9909 # endif /* no CLSIZE */
9910 # else /* no NBPG */
9911 # ifdef NBPC
9912 # define getpagesize() NBPC
9913 # else /* no NBPC */
9914 # ifdef PAGESIZE
9915 # define getpagesize() PAGESIZE
9916 # endif /* PAGESIZE */
9917 # endif /* no NBPC */
9918 # endif /* no NBPG */
9919 # endif /* no EXEC_PAGESIZE */
9920 # else /* no HAVE_SYS_PARAM_H */
9921 # define getpagesize() 8192 /* punt totally */
9922 # endif /* no HAVE_SYS_PARAM_H */
9923 # endif /* no _SC_PAGESIZE */
9925 #endif /* no HAVE_GETPAGESIZE */
9928 main ()
9930 char *data, *data2, *data3;
9931 const char *cdata2;
9932 int i, pagesize;
9933 int fd, fd2;
9935 pagesize = getpagesize ();
9937 /* First, make a file with some known garbage in it. */
9938 data = (char *) malloc (pagesize);
9939 if (!data)
9940 return 1;
9941 for (i = 0; i < pagesize; ++i)
9942 *(data + i) = rand ();
9943 umask (0);
9944 fd = creat ("conftest.mmap", 0600);
9945 if (fd < 0)
9946 return 2;
9947 if (write (fd, data, pagesize) != pagesize)
9948 return 3;
9949 close (fd);
9951 /* Next, check that the tail of a page is zero-filled. File must have
9952 non-zero length, otherwise we risk SIGBUS for entire page. */
9953 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9954 if (fd2 < 0)
9955 return 4;
9956 cdata2 = "";
9957 if (write (fd2, cdata2, 1) != 1)
9958 return 5;
9959 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9960 if (data2 == MAP_FAILED)
9961 return 6;
9962 for (i = 0; i < pagesize; ++i)
9963 if (*(data2 + i))
9964 return 7;
9965 close (fd2);
9966 if (munmap (data2, pagesize))
9967 return 8;
9969 /* Next, try to mmap the file at a fixed address which already has
9970 something else allocated at it. If we can, also make sure that
9971 we see the same garbage. */
9972 fd = open ("conftest.mmap", O_RDWR);
9973 if (fd < 0)
9974 return 9;
9975 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9976 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9977 return 10;
9978 for (i = 0; i < pagesize; ++i)
9979 if (*(data + i) != *(data2 + i))
9980 return 11;
9982 /* Finally, make sure that changes to the mapped area do not
9983 percolate back to the file as seen by read(). (This is a bug on
9984 some variants of i386 svr4.0.) */
9985 for (i = 0; i < pagesize; ++i)
9986 *(data2 + i) = *(data2 + i) + 1;
9987 data3 = (char *) malloc (pagesize);
9988 if (!data3)
9989 return 12;
9990 if (read (fd, data3, pagesize) != pagesize)
9991 return 13;
9992 for (i = 0; i < pagesize; ++i)
9993 if (*(data + i) != *(data3 + i))
9994 return 14;
9995 close (fd);
9996 return 0;
9998 _ACEOF
9999 if ac_fn_c_try_run "$LINENO"; then :
10000 ac_cv_func_mmap_fixed_mapped=yes
10001 else
10002 ac_cv_func_mmap_fixed_mapped=no
10004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10005 conftest.$ac_objext conftest.beam conftest.$ac_ext
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10010 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10011 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10013 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10016 rm -f conftest.mmap conftest.txt
10018 if test $use_mmap_for_buffers = yes; then
10020 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
10022 REL_ALLOC=no
10025 LIBS="$LIBS_SYSTEM $LIBS"
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10028 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10029 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 ac_check_lib_save_LIBS=$LIBS
10033 LIBS="-ldnet $LIBS"
10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10037 /* Override any GCC internal prototype to avoid an error.
10038 Use char because int might match the return type of a GCC
10039 builtin and then its argument prototype would still apply. */
10040 #ifdef __cplusplus
10041 extern "C"
10042 #endif
10043 char dnet_ntoa ();
10045 main ()
10047 return dnet_ntoa ();
10049 return 0;
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10053 ac_cv_lib_dnet_dnet_ntoa=yes
10054 else
10055 ac_cv_lib_dnet_dnet_ntoa=no
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 LIBS=$ac_check_lib_save_LIBS
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10062 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10063 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10064 cat >>confdefs.h <<_ACEOF
10065 #define HAVE_LIBDNET 1
10066 _ACEOF
10068 LIBS="-ldnet $LIBS"
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10074 $as_echo_n "checking for main in -lXbsd... " >&6; }
10075 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
10077 else
10078 ac_check_lib_save_LIBS=$LIBS
10079 LIBS="-lXbsd $LIBS"
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10085 main ()
10087 return main ();
10089 return 0;
10091 _ACEOF
10092 if ac_fn_c_try_link "$LINENO"; then :
10093 ac_cv_lib_Xbsd_main=yes
10094 else
10095 ac_cv_lib_Xbsd_main=no
10097 rm -f core conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 LIBS=$ac_check_lib_save_LIBS
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10102 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10103 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10104 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10108 LIB_PTHREAD=
10112 if test "$ac_cv_header_pthread_h"; then
10113 if test "$GMALLOC_OBJ" = gmalloc.o; then
10114 emacs_pthread_function=pthread_atfork
10115 else
10116 emacs_pthread_function=pthread_self
10118 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10120 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10121 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-lpthread $LIBS"
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char $emacs_pthread_function ();
10137 main ()
10139 return $emacs_pthread_function ();
10141 return 0;
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10145 eval "$as_ac_Lib=yes"
10146 else
10147 eval "$as_ac_Lib=no"
10149 rm -f core conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10153 eval ac_res=\$$as_ac_Lib
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10155 $as_echo "$ac_res" >&6; }
10156 eval as_val=\$$as_ac_Lib
10157 if test "x$as_val" = x""yes; then :
10158 HAVE_PTHREAD=yes
10162 if test "$HAVE_PTHREAD" = yes; then
10163 case "${canonical}" in
10164 *-hpux*) ;;
10165 *) LIB_PTHREAD="-lpthread"
10166 LIBS="$LIB_PTHREAD $LIBS" ;;
10167 esac
10169 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10175 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10176 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 ac_check_lib_save_LIBS=$LIBS
10180 LIBS="-lpthreads $LIBS"
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10184 /* Override any GCC internal prototype to avoid an error.
10185 Use char because int might match the return type of a GCC
10186 builtin and then its argument prototype would still apply. */
10187 #ifdef __cplusplus
10188 extern "C"
10189 #endif
10190 char cma_open ();
10192 main ()
10194 return cma_open ();
10196 return 0;
10198 _ACEOF
10199 if ac_fn_c_try_link "$LINENO"; then :
10200 ac_cv_lib_pthreads_cma_open=yes
10201 else
10202 ac_cv_lib_pthreads_cma_open=no
10204 rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10209 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10210 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_LIBPTHREADS 1
10213 _ACEOF
10215 LIBS="-lpthreads $LIBS"
10220 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10221 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10222 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10223 ## added to LIBS in configure would never contain the pthreads part,
10224 ## but the value used in Makefiles might. FIXME?
10226 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10227 ## be harmless on older versions of X where it happens to exist.
10228 test "$opsys" = "aix4-2" && \
10229 test $ac_cv_lib_pthreads_cma_open = yes && \
10230 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10233 case ${host_os} in
10234 aix*)
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10236 $as_echo_n "checking for -bbigtoc option... " >&6; }
10237 if test "${gdb_cv_bigtoc+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10241 case $GCC in
10242 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10243 *) gdb_cv_bigtoc=-bbigtoc ;;
10244 esac
10246 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10251 main ()
10253 int i;
10255 return 0;
10257 _ACEOF
10258 if ac_fn_c_try_link "$LINENO"; then :
10260 else
10261 gdb_cv_bigtoc=
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10268 $as_echo "$gdb_cv_bigtoc" >&6; }
10270 esac
10272 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10273 # used for the tests that follow. We set them back to REAL_CFLAGS and
10274 # REAL_CPPFLAGS later on.
10276 REAL_CFLAGS="$CFLAGS"
10277 REAL_CPPFLAGS="$CPPFLAGS"
10279 if test "${HAVE_X11}" = "yes"; then
10280 DEFS="$C_SWITCH_X_SITE $DEFS"
10281 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10282 LIBS="-lX11 $LIBS"
10283 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10284 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10286 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10287 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10288 # but it's more convenient here to set LD_RUN_PATH since this
10289 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10290 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10291 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10292 export LD_RUN_PATH
10295 if test "${opsys}" = "gnu-linux"; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10297 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10302 main ()
10304 XOpenDisplay ("foo");
10306 return 0;
10308 _ACEOF
10309 if ac_fn_c_try_link "$LINENO"; then :
10310 xgnu_linux_first_failure=no
10311 else
10312 xgnu_linux_first_failure=yes
10314 rm -f core conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 if test "${xgnu_linux_first_failure}" = "yes"; then
10317 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10318 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10319 OLD_CPPFLAGS="$CPPFLAGS"
10320 OLD_LIBS="$LIBS"
10321 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10322 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10323 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10324 LIBS="$LIBS -b i486-linuxaout"
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10329 main ()
10331 XOpenDisplay ("foo");
10333 return 0;
10335 _ACEOF
10336 if ac_fn_c_try_link "$LINENO"; then :
10337 xgnu_linux_second_failure=no
10338 else
10339 xgnu_linux_second_failure=yes
10341 rm -f core conftest.err conftest.$ac_objext \
10342 conftest$ac_exeext conftest.$ac_ext
10343 if test "${xgnu_linux_second_failure}" = "yes"; then
10344 # If we get the same failure with -b, there is no use adding -b.
10345 # So take it out. This plays safe.
10346 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10347 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10348 CPPFLAGS="$OLD_CPPFLAGS"
10349 LIBS="$OLD_LIBS"
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10354 $as_echo "yes" >&6; }
10356 else
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10362 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10363 # header files included from there.
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10365 $as_echo_n "checking for Xkb... " >&6; }
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368 #include <X11/Xlib.h>
10369 #include <X11/XKBlib.h>
10371 main ()
10373 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10375 return 0;
10377 _ACEOF
10378 if ac_fn_c_try_link "$LINENO"; then :
10379 emacs_xkb=yes
10380 else
10381 emacs_xkb=no
10383 rm -f core conftest.err conftest.$ac_objext \
10384 conftest$ac_exeext conftest.$ac_ext
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10386 $as_echo "$emacs_xkb" >&6; }
10387 if test $emacs_xkb = yes; then
10389 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10393 for ac_func in XrmSetDatabase XScreenResourceString \
10394 XScreenNumberOfScreen
10395 do :
10396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10398 eval as_val=\$$as_ac_var
10399 if test "x$as_val" = x""yes; then :
10400 cat >>confdefs.h <<_ACEOF
10401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10402 _ACEOF
10405 done
10409 if test "${window_system}" = "x11"; then
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10411 $as_echo_n "checking X11 version 6... " >&6; }
10412 if test "${emacs_cv_x11_version_6+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10417 #include <X11/Xlib.h>
10419 main ()
10421 #if XlibSpecificationRelease < 6
10422 fail;
10423 #endif
10426 return 0;
10428 _ACEOF
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 emacs_cv_x11_version_6=yes
10431 else
10432 emacs_cv_x11_version_6=no
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10438 if test $emacs_cv_x11_version_6 = yes; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10440 $as_echo "6 or newer" >&6; }
10442 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10445 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10447 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10448 ## XIM support.
10449 case "$opsys" in
10450 sol2-*) : ;;
10452 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10455 esac
10456 else
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10458 $as_echo "before 6" >&6; }
10463 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10464 HAVE_RSVG=no
10465 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10466 if test "${with_rsvg}" != "no"; then
10467 RSVG_REQUIRED=2.11.0
10468 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10471 succeeded=no
10473 if test "$PKG_CONFIG" = "no" ; then
10475 else
10476 PKG_CONFIG_MIN_VERSION=0.9.0
10477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10479 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10481 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10482 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10483 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10484 edit_cflags="
10485 s,///*,/,g
10486 s/^/ /
10487 s/ -I/ $isystem/g
10488 s/^ //
10490 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10491 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10493 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10494 succeeded=yes
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10498 RSVG_CFLAGS=""
10499 RSVG_LIBS=""
10500 ## If we have a custom action on failure, don't print errors, but
10501 ## do set a variable so people can do so. Do it in a subshell
10502 ## to capture any diagnostics in invoking pkg-config.
10503 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10509 else
10510 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10511 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10515 if test $succeeded = yes; then
10516 HAVE_RSVG=yes
10517 else
10524 if test $HAVE_RSVG = yes; then
10526 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10528 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10529 LIBS="$RSVG_LIBS $LIBS"
10534 HAVE_IMAGEMAGICK=no
10535 if test "${HAVE_X11}" = "yes"; then
10536 if test "${with_imagemagick}" != "no"; then
10537 ## 6.2.8 is the earliest version known to work, but earlier versions
10538 ## might work - let us know if you find one.
10539 ## 6.0.7 does not work. See bug#7955.
10540 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10542 succeeded=no
10544 if test "$PKG_CONFIG" = "no" ; then
10546 else
10547 PKG_CONFIG_MIN_VERSION=0.9.0
10548 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10550 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10552 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10553 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10554 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10555 edit_cflags="
10556 s,///*,/,g
10557 s/^/ /
10558 s/ -I/ $isystem/g
10559 s/^ //
10561 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10562 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10564 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10565 succeeded=yes
10566 else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10569 IMAGEMAGICK_CFLAGS=""
10570 IMAGEMAGICK_LIBS=""
10571 ## If we have a custom action on failure, don't print errors, but
10572 ## do set a variable so people can do so. Do it in a subshell
10573 ## to capture any diagnostics in invoking pkg-config.
10574 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10580 else
10581 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10582 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10586 if test $succeeded = yes; then
10587 HAVE_IMAGEMAGICK=yes
10588 else
10595 if test $HAVE_IMAGEMAGICK = yes; then
10597 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10599 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10600 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10601 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10602 do :
10603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10604 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10605 eval as_val=\$$as_ac_var
10606 if test "x$as_val" = x""yes; then :
10607 cat >>confdefs.h <<_ACEOF
10608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10609 _ACEOF
10612 done
10619 HAVE_GTK=no
10620 GTK_OBJ=
10621 check_gtk2=no
10622 gtk3_pkg_errors=
10623 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10624 GLIB_REQUIRED=2.28
10625 GTK_REQUIRED=3.0
10626 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10629 succeeded=no
10631 if test "$PKG_CONFIG" = "no" ; then
10632 pkg_check_gtk=no
10633 else
10634 PKG_CONFIG_MIN_VERSION=0.9.0
10635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10637 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10639 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10640 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10641 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10642 edit_cflags="
10643 s,///*,/,g
10644 s/^/ /
10645 s/ -I/ $isystem/g
10646 s/^ //
10648 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10649 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10651 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10652 succeeded=yes
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10656 GTK_CFLAGS=""
10657 GTK_LIBS=""
10658 ## If we have a custom action on failure, don't print errors, but
10659 ## do set a variable so people can do so. Do it in a subshell
10660 ## to capture any diagnostics in invoking pkg-config.
10661 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10667 else
10668 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10669 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10673 if test $succeeded = yes; then
10674 pkg_check_gtk=yes
10675 else
10676 pkg_check_gtk=no
10679 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10680 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10682 if test "$pkg_check_gtk" = "yes"; then
10684 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10686 GTK_OBJ=emacsgtkfixed.o
10687 term_header=gtkutil.h
10688 USE_GTK_TOOLKIT="GTK3"
10689 else
10690 check_gtk2=yes
10691 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10695 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10696 GLIB_REQUIRED=2.10
10697 GTK_REQUIRED=2.10
10698 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10701 succeeded=no
10703 if test "$PKG_CONFIG" = "no" ; then
10704 pkg_check_gtk=no
10705 else
10706 PKG_CONFIG_MIN_VERSION=0.9.0
10707 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10709 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10711 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10712 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10713 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10714 edit_cflags="
10715 s,///*,/,g
10716 s/^/ /
10717 s/ -I/ $isystem/g
10718 s/^ //
10720 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10721 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10723 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10724 succeeded=yes
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728 GTK_CFLAGS=""
10729 GTK_LIBS=""
10730 ## If we have a custom action on failure, don't print errors, but
10731 ## do set a variable so people can do so. Do it in a subshell
10732 ## to capture any diagnostics in invoking pkg-config.
10733 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10739 else
10740 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10741 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10745 if test $succeeded = yes; then
10746 pkg_check_gtk=yes
10747 else
10748 pkg_check_gtk=no
10751 if test "$pkg_check_gtk" = "no" &&
10752 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10753 then
10754 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10756 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10759 if test x"$pkg_check_gtk" = xyes; then
10763 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10764 CFLAGS="$CFLAGS $GTK_CFLAGS"
10765 LIBS="$GTK_LIBS $LIBS"
10766 GTK_COMPILES=no
10767 for ac_func in gtk_main
10768 do :
10769 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10770 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10771 cat >>confdefs.h <<_ACEOF
10772 #define HAVE_GTK_MAIN 1
10773 _ACEOF
10774 GTK_COMPILES=yes
10776 done
10778 if test "${GTK_COMPILES}" != "yes"; then
10779 if test "$USE_X_TOOLKIT" != "maybe"; then
10780 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10782 else
10783 HAVE_GTK=yes
10785 $as_echo "#define USE_GTK 1" >>confdefs.h
10787 GTK_OBJ="gtkutil.o $GTK_OBJ"
10788 USE_X_TOOLKIT=none
10789 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10793 closing open displays. This is no problem if you just use
10794 one display, but if you use more than one and close one of them
10795 Emacs may crash." >&5
10796 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10797 closing open displays. This is no problem if you just use
10798 one display, but if you use more than one and close one of them
10799 Emacs may crash." >&2;}
10800 sleep 3
10808 if test "${HAVE_GTK}" = "yes"; then
10810 if test "$with_toolkit_scroll_bars" != no; then
10811 with_toolkit_scroll_bars=yes
10814 HAVE_GTK_FILE_SELECTION=no
10815 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10816 #include <gtk/gtk.h>
10818 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10819 HAVE_GTK_FILE_SELECTION=yes
10820 else
10821 HAVE_GTK_FILE_SELECTION=no
10824 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10825 for ac_func in gtk_file_selection_new
10826 do :
10827 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10828 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10829 cat >>confdefs.h <<_ACEOF
10830 #define HAVE_GTK_FILE_SELECTION_NEW 1
10831 _ACEOF
10834 done
10839 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10840 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10841 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10842 gtk_orientable_set_orientation \
10843 gtk_window_set_has_resize_grip
10844 do :
10845 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10846 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10847 eval as_val=\$$as_ac_var
10848 if test "x$as_val" = x""yes; then :
10849 cat >>confdefs.h <<_ACEOF
10850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10851 _ACEOF
10854 done
10857 term_header=gtkutil.h
10860 HAVE_DBUS=no
10861 DBUS_OBJ=
10862 if test "${with_dbus}" = "yes"; then
10864 succeeded=no
10866 if test "$PKG_CONFIG" = "no" ; then
10867 HAVE_DBUS=no
10868 else
10869 PKG_CONFIG_MIN_VERSION=0.9.0
10870 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10872 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10874 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10875 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10876 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10877 edit_cflags="
10878 s,///*,/,g
10879 s/^/ /
10880 s/ -I/ $isystem/g
10881 s/^ //
10883 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10884 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10886 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10887 succeeded=yes
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 DBUS_CFLAGS=""
10892 DBUS_LIBS=""
10893 ## If we have a custom action on failure, don't print errors, but
10894 ## do set a variable so people can do so. Do it in a subshell
10895 ## to capture any diagnostics in invoking pkg-config.
10896 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10902 else
10903 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10904 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10908 if test $succeeded = yes; then
10909 HAVE_DBUS=yes
10910 else
10911 HAVE_DBUS=no
10914 if test "$HAVE_DBUS" = yes; then
10915 LIBS="$LIBS $DBUS_LIBS"
10917 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10919 for ac_func in dbus_watch_get_unix_fd \
10920 dbus_type_is_valid \
10921 dbus_validate_bus_name \
10922 dbus_validate_path \
10923 dbus_validate_interface \
10924 dbus_validate_member
10925 do :
10926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10928 eval as_val=\$$as_ac_var
10929 if test "x$as_val" = x""yes; then :
10930 cat >>confdefs.h <<_ACEOF
10931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10932 _ACEOF
10935 done
10937 DBUS_OBJ=dbusbind.o
10942 HAVE_GSETTINGS=no
10943 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10945 succeeded=no
10947 if test "$PKG_CONFIG" = "no" ; then
10948 HAVE_GSETTINGS=no
10949 else
10950 PKG_CONFIG_MIN_VERSION=0.9.0
10951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10953 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10955 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10956 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10957 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10958 edit_cflags="
10959 s,///*,/,g
10960 s/^/ /
10961 s/ -I/ $isystem/g
10962 s/^ //
10964 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10965 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10967 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10968 succeeded=yes
10969 else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 $as_echo "no" >&6; }
10972 GSETTINGS_CFLAGS=""
10973 GSETTINGS_LIBS=""
10974 ## If we have a custom action on failure, don't print errors, but
10975 ## do set a variable so people can do so. Do it in a subshell
10976 ## to capture any diagnostics in invoking pkg-config.
10977 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10983 else
10984 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10985 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10989 if test $succeeded = yes; then
10990 HAVE_GSETTINGS=yes
10991 else
10992 HAVE_GSETTINGS=no
10995 if test "$HAVE_GSETTINGS" = "yes"; then
10997 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10999 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
11000 SETTINGS_LIBS="$GSETTINGS_LIBS"
11004 HAVE_GCONF=no
11005 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
11007 succeeded=no
11009 if test "$PKG_CONFIG" = "no" ; then
11010 HAVE_GCONF=no
11011 else
11012 PKG_CONFIG_MIN_VERSION=0.9.0
11013 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11015 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11017 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
11018 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
11019 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
11020 edit_cflags="
11021 s,///*,/,g
11022 s/^/ /
11023 s/ -I/ $isystem/g
11024 s/^ //
11026 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
11027 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
11029 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
11030 succeeded=yes
11031 else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033 $as_echo "no" >&6; }
11034 GCONF_CFLAGS=""
11035 GCONF_LIBS=""
11036 ## If we have a custom action on failure, don't print errors, but
11037 ## do set a variable so people can do so. Do it in a subshell
11038 ## to capture any diagnostics in invoking pkg-config.
11039 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
11045 else
11046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11051 if test $succeeded = yes; then
11052 HAVE_GCONF=yes
11053 else
11054 HAVE_GCONF=no
11057 if test "$HAVE_GCONF" = yes; then
11059 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11061 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
11062 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
11066 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
11068 succeeded=no
11070 if test "$PKG_CONFIG" = "no" ; then
11071 HAVE_GOBJECT=no
11072 else
11073 PKG_CONFIG_MIN_VERSION=0.9.0
11074 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
11076 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
11078 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
11079 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
11080 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
11081 edit_cflags="
11082 s,///*,/,g
11083 s/^/ /
11084 s/ -I/ $isystem/g
11085 s/^ //
11087 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
11088 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
11090 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
11091 succeeded=yes
11092 else
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11095 GOBJECT_CFLAGS=""
11096 GOBJECT_LIBS=""
11097 ## If we have a custom action on failure, don't print errors, but
11098 ## do set a variable so people can do so. Do it in a subshell
11099 ## to capture any diagnostics in invoking pkg-config.
11100 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
11106 else
11107 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11108 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11112 if test $succeeded = yes; then
11113 HAVE_GOBJECT=yes
11114 else
11115 HAVE_GOBJECT=no
11118 if test "$HAVE_GOBJECT" = "yes"; then
11119 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11120 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11122 SAVE_CFLAGS="$CFLAGS"
11123 SAVE_LIBS="$LIBS"
11124 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11125 LIBS="$SETTINGS_LIBS $LIBS"
11126 for ac_func in g_type_init
11127 do :
11128 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11129 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11130 cat >>confdefs.h <<_ACEOF
11131 #define HAVE_G_TYPE_INIT 1
11132 _ACEOF
11135 done
11137 CFLAGS="$SAVE_CFLAGS"
11138 LIBS="$SAVE_LIBS"
11144 HAVE_LIBSELINUX=no
11145 LIBSELINUX_LIBS=
11146 if test "${with_selinux}" = "yes"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11148 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11149 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 ac_check_lib_save_LIBS=$LIBS
11153 LIBS="-lselinux $LIBS"
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11157 /* Override any GCC internal prototype to avoid an error.
11158 Use char because int might match the return type of a GCC
11159 builtin and then its argument prototype would still apply. */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 char lgetfilecon ();
11165 main ()
11167 return lgetfilecon ();
11169 return 0;
11171 _ACEOF
11172 if ac_fn_c_try_link "$LINENO"; then :
11173 ac_cv_lib_selinux_lgetfilecon=yes
11174 else
11175 ac_cv_lib_selinux_lgetfilecon=no
11177 rm -f core conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_lib_save_LIBS
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11182 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11183 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11184 HAVE_LIBSELINUX=yes
11185 else
11186 HAVE_LIBSELINUX=no
11189 if test "$HAVE_LIBSELINUX" = yes; then
11191 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11193 LIBSELINUX_LIBS=-lselinux
11198 HAVE_GNUTLS=no
11199 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11200 if test "${with_gnutls}" = "yes" ; then
11202 succeeded=no
11204 if test "$PKG_CONFIG" = "no" ; then
11205 HAVE_GNUTLS=no
11206 else
11207 PKG_CONFIG_MIN_VERSION=0.9.0
11208 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11210 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11212 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11213 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11214 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11215 edit_cflags="
11216 s,///*,/,g
11217 s/^/ /
11218 s/ -I/ $isystem/g
11219 s/^ //
11221 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11222 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11224 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11225 succeeded=yes
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 LIBGNUTLS_CFLAGS=""
11230 LIBGNUTLS_LIBS=""
11231 ## If we have a custom action on failure, don't print errors, but
11232 ## do set a variable so people can do so. Do it in a subshell
11233 ## to capture any diagnostics in invoking pkg-config.
11234 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11240 else
11241 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11242 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11246 if test $succeeded = yes; then
11247 HAVE_GNUTLS=yes
11248 else
11249 HAVE_GNUTLS=no
11252 if test "${HAVE_GNUTLS}" = "yes"; then
11254 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11258 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11259 LIBS="$LIBGNUTLS_LIBS $LIBS"
11260 for ac_func in gnutls_certificate_set_verify_function
11261 do :
11262 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11263 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11264 cat >>confdefs.h <<_ACEOF
11265 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11266 _ACEOF
11267 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11269 done
11272 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11274 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11282 HAVE_XAW3D=no
11283 LUCID_LIBW=
11284 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11285 if test "$with_xaw3d" != no; then
11286 if test "${emacs_cv_xaw3d+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11292 #include <X11/Intrinsic.h>
11293 #include <X11/Xaw3d/Simple.h>
11295 main ()
11299 return 0;
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11304 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11305 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 ac_check_lib_save_LIBS=$LIBS
11309 LIBS="-lXaw3d $LIBS"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char XawScrollbarSetThumb ();
11321 main ()
11323 return XawScrollbarSetThumb ();
11325 return 0;
11327 _ACEOF
11328 if ac_fn_c_try_link "$LINENO"; then :
11329 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11330 else
11331 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11333 rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11335 LIBS=$ac_check_lib_save_LIBS
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11338 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11339 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11340 emacs_cv_xaw3d=yes
11341 else
11342 emacs_cv_xaw3d=no
11345 else
11346 emacs_cv_xaw3d=no
11348 rm -f core conftest.err conftest.$ac_objext \
11349 conftest$ac_exeext conftest.$ac_ext
11352 else
11353 emacs_cv_xaw3d=no
11355 if test $emacs_cv_xaw3d = yes; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11357 $as_echo_n "checking for xaw3d... " >&6; }
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11359 $as_echo "yes; using Lucid toolkit" >&6; }
11360 USE_X_TOOLKIT=LUCID
11361 HAVE_XAW3D=yes
11362 LUCID_LIBW=-lXaw3d
11364 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11368 $as_echo_n "checking for xaw3d... " >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11372 $as_echo_n "checking for libXaw... " >&6; }
11373 if test "${emacs_cv_xaw+set}" = set; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11379 #include <X11/Intrinsic.h>
11380 #include <X11/Xaw/Simple.h>
11382 main ()
11386 return 0;
11388 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then :
11390 emacs_cv_xaw=yes
11391 else
11392 emacs_cv_xaw=no
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11398 if test $emacs_cv_xaw = yes; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11400 $as_echo "yes; using Lucid toolkit" >&6; }
11401 USE_X_TOOLKIT=LUCID
11402 LUCID_LIBW=-lXaw
11403 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11404 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11405 else
11406 as_fn_error "No X toolkit could be found.
11407 If you are sure you want Emacs compiled without an X toolkit, pass
11408 --with-x-toolkit=no
11409 to configure. Otherwise, install the development libraries for the toolkit
11410 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11415 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11417 LIBXTR6=
11418 if test "${USE_X_TOOLKIT}" != "none"; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11420 $as_echo_n "checking X11 toolkit version... " >&6; }
11421 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h. */
11426 #include <X11/Intrinsic.h>
11428 main ()
11430 #if XtSpecificationRelease < 6
11431 fail;
11432 #endif
11435 return 0;
11437 _ACEOF
11438 if ac_fn_c_try_link "$LINENO"; then :
11439 emacs_cv_x11_toolkit_version_6=yes
11440 else
11441 emacs_cv_x11_toolkit_version_6=no
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11447 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11448 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11450 $as_echo "6 or newer" >&6; }
11452 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11454 LIBXTR6="-lSM -lICE"
11455 case "$opsys" in
11456 ## Use libw.a along with X11R6 Xt.
11457 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11458 esac
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11461 $as_echo "before 6" >&6; }
11464 OLDLIBS="$LIBS"
11465 if test x$HAVE_X11XTR6 = xyes; then
11466 LIBS="-lXt -lSM -lICE $LIBS"
11467 else
11468 LIBS="-lXt $LIBS"
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11471 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11472 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
11474 else
11475 ac_check_lib_save_LIBS=$LIBS
11476 LIBS="-lXmu $LIBS"
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11480 /* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char XmuConvertStandardSelection ();
11488 main ()
11490 return XmuConvertStandardSelection ();
11492 return 0;
11494 _ACEOF
11495 if ac_fn_c_try_link "$LINENO"; then :
11496 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11497 else
11498 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11500 rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
11502 LIBS=$ac_check_lib_save_LIBS
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11505 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11506 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11507 cat >>confdefs.h <<_ACEOF
11508 #define HAVE_LIBXMU 1
11509 _ACEOF
11511 LIBS="-lXmu $LIBS"
11515 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11519 LIBXMU=-lXmu
11520 case $opsys in
11521 ## These systems don't supply Xmu.
11522 hpux* | aix4-2 )
11523 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11525 esac
11528 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11529 if test "${HAVE_X11}" = "yes"; then
11530 if test "${USE_X_TOOLKIT}" != "none"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11532 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11533 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
11535 else
11536 ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-lXext $LIBS"
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11541 /* Override any GCC internal prototype to avoid an error.
11542 Use char because int might match the return type of a GCC
11543 builtin and then its argument prototype would still apply. */
11544 #ifdef __cplusplus
11545 extern "C"
11546 #endif
11547 char XShapeQueryExtension ();
11549 main ()
11551 return XShapeQueryExtension ();
11553 return 0;
11555 _ACEOF
11556 if ac_fn_c_try_link "$LINENO"; then :
11557 ac_cv_lib_Xext_XShapeQueryExtension=yes
11558 else
11559 ac_cv_lib_Xext_XShapeQueryExtension=no
11561 rm -f core conftest.err conftest.$ac_objext \
11562 conftest$ac_exeext conftest.$ac_ext
11563 LIBS=$ac_check_lib_save_LIBS
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11566 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11567 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11568 cat >>confdefs.h <<_ACEOF
11569 #define HAVE_LIBXEXT 1
11570 _ACEOF
11572 LIBS="-lXext $LIBS"
11579 LIBXP=
11580 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11581 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11582 if test -d /usr/include/openmotif; then
11583 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11584 emacs_cv_openmotif=yes
11585 case "$canonical" in
11586 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11587 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11590 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11591 esac
11592 else
11593 emacs_cv_openmotif=no
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11596 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11597 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11602 #include <Xm/Xm.h>
11604 main ()
11606 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11607 int x = 5;
11608 #else
11609 Motif version prior to 2.1.
11610 #endif
11612 return 0;
11614 _ACEOF
11615 if ac_fn_c_try_compile "$LINENO"; then :
11616 emacs_cv_motif_version_2_1=yes
11617 else
11618 emacs_cv_motif_version_2_1=no
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11623 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11624 if test $emacs_cv_motif_version_2_1 = yes; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11626 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11627 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 ac_check_lib_save_LIBS=$LIBS
11631 LIBS="-lXp $LIBS"
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 char XpCreateContext ();
11643 main ()
11645 return XpCreateContext ();
11647 return 0;
11649 _ACEOF
11650 if ac_fn_c_try_link "$LINENO"; then :
11651 ac_cv_lib_Xp_XpCreateContext=yes
11652 else
11653 ac_cv_lib_Xp_XpCreateContext=no
11655 rm -f core conftest.err conftest.$ac_objext \
11656 conftest$ac_exeext conftest.$ac_ext
11657 LIBS=$ac_check_lib_save_LIBS
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11660 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11661 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11662 LIBXP=-lXp
11665 if test x$emacs_cv_openmotif = xyes; then
11666 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11668 else
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11670 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11671 if test "${emacs_cv_lesstif+set}" = set; then :
11672 $as_echo_n "(cached) " >&6
11673 else
11674 # We put this in CFLAGS temporarily to precede other -I options
11675 # that might be in CFLAGS temporarily.
11676 # We put this in CPPFLAGS where it precedes the other -I options.
11677 OLD_CPPFLAGS=$CPPFLAGS
11678 OLD_CFLAGS=$CFLAGS
11679 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11680 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11683 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11685 main ()
11687 int x = 5;
11689 return 0;
11691 _ACEOF
11692 if ac_fn_c_try_compile "$LINENO"; then :
11693 emacs_cv_lesstif=yes
11694 else
11695 emacs_cv_lesstif=no
11697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11700 $as_echo "$emacs_cv_lesstif" >&6; }
11701 if test $emacs_cv_lesstif = yes; then
11702 # Make sure this -I option remains in CPPFLAGS after it is set
11703 # back to REAL_CPPFLAGS.
11704 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11705 # have those other -I options anyway. Ultimately, having this
11706 # directory ultimately in CPPFLAGS will be enough.
11707 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11708 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11709 else
11710 CFLAGS=$OLD_CFLAGS
11711 CPPFLAGS=$OLD_CPPFLAGS
11714 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11715 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11717 else
11718 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11725 USE_TOOLKIT_SCROLL_BARS=no
11726 if test "${with_toolkit_scroll_bars}" != "no"; then
11727 if test "${USE_X_TOOLKIT}" != "none"; then
11728 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11729 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11731 HAVE_XAW3D=no
11732 USE_TOOLKIT_SCROLL_BARS=yes
11733 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11734 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11736 USE_TOOLKIT_SCROLL_BARS=yes
11738 elif test "${HAVE_GTK}" = "yes"; then
11739 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11741 USE_TOOLKIT_SCROLL_BARS=yes
11742 elif test "${HAVE_NS}" = "yes"; then
11743 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11745 USE_TOOLKIT_SCROLL_BARS=yes
11746 elif test "${HAVE_W32}" = "yes"; then
11747 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11749 USE_TOOLKIT_SCROLL_BARS=yes
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11756 #include <X11/Xlib.h>
11757 #include <X11/Xresource.h>
11759 main ()
11761 XIMProc callback;
11763 return 0;
11765 _ACEOF
11766 if ac_fn_c_try_compile "$LINENO"; then :
11767 HAVE_XIM=yes
11769 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11771 else
11772 HAVE_XIM=no
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 if test "${with_xim}" != "no"; then
11779 $as_echo "#define USE_XIM 1" >>confdefs.h
11784 if test "${HAVE_XIM}" != "no"; then
11785 late_CFLAGS=$CFLAGS
11786 if test "$GCC" = yes; then
11787 CFLAGS="$CFLAGS --pedantic-errors"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11792 #include <X11/Xlib.h>
11793 #include <X11/Xresource.h>
11795 main ()
11797 Display *display;
11798 XrmDatabase db;
11799 char *res_name;
11800 char *res_class;
11801 XIMProc callback;
11802 XPointer *client_data;
11803 #ifndef __GNUC__
11804 /* If we're not using GCC, it's probably not XFree86, and this is
11805 probably right, but we can't use something like --pedantic-errors. */
11806 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11807 char*, XIMProc, XPointer*);
11808 #endif
11809 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11810 client_data);
11812 return 0;
11814 _ACEOF
11815 if ac_fn_c_try_compile "$LINENO"; then :
11816 emacs_cv_arg6_star=yes
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 if test "$emacs_cv_arg6_star" = yes; then
11820 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11822 else
11823 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11826 CFLAGS=$late_CFLAGS
11829 ### Start of font-backend (under any platform) section.
11830 # (nothing here yet -- this is a placeholder)
11831 ### End of font-backend (under any platform) section.
11833 ### Start of font-backend (under X11) section.
11834 if test "${HAVE_X11}" = "yes"; then
11836 succeeded=no
11838 if test "$PKG_CONFIG" = "no" ; then
11839 HAVE_FC=no
11840 else
11841 PKG_CONFIG_MIN_VERSION=0.9.0
11842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11844 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11846 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11847 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11848 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11849 edit_cflags="
11850 s,///*,/,g
11851 s/^/ /
11852 s/ -I/ $isystem/g
11853 s/^ //
11855 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11856 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11858 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11859 succeeded=yes
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11863 FONTCONFIG_CFLAGS=""
11864 FONTCONFIG_LIBS=""
11865 ## If we have a custom action on failure, don't print errors, but
11866 ## do set a variable so people can do so. Do it in a subshell
11867 ## to capture any diagnostics in invoking pkg-config.
11868 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11874 else
11875 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11876 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11880 if test $succeeded = yes; then
11881 HAVE_FC=yes
11882 else
11883 HAVE_FC=no
11887 ## Use -lXft if available, unless `--with-xft=no'.
11888 HAVE_XFT=maybe
11889 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11890 with_xft="no";
11892 if test "x${with_xft}" != "xno"; then
11895 succeeded=no
11897 if test "$PKG_CONFIG" = "no" ; then
11898 HAVE_XFT=no
11899 else
11900 PKG_CONFIG_MIN_VERSION=0.9.0
11901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11903 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11905 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11906 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11907 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11908 edit_cflags="
11909 s,///*,/,g
11910 s/^/ /
11911 s/ -I/ $isystem/g
11912 s/^ //
11914 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11915 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11917 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11918 succeeded=yes
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922 XFT_CFLAGS=""
11923 XFT_LIBS=""
11924 ## If we have a custom action on failure, don't print errors, but
11925 ## do set a variable so people can do so. Do it in a subshell
11926 ## to capture any diagnostics in invoking pkg-config.
11927 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11933 else
11934 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11935 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11939 if test $succeeded = yes; then
11941 else
11942 HAVE_XFT=no
11945 ## Because xftfont.c uses XRenderQueryExtension, we also
11946 ## need to link to -lXrender.
11947 HAVE_XRENDER=no
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11949 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11950 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lXrender $LIBS"
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 char XRenderQueryExtension ();
11966 main ()
11968 return XRenderQueryExtension ();
11970 return 0;
11972 _ACEOF
11973 if ac_fn_c_try_link "$LINENO"; then :
11974 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11975 else
11976 ac_cv_lib_Xrender_XRenderQueryExtension=no
11978 rm -f core conftest.err conftest.$ac_objext \
11979 conftest$ac_exeext conftest.$ac_ext
11980 LIBS=$ac_check_lib_save_LIBS
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11983 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11984 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11985 HAVE_XRENDER=yes
11988 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11989 OLD_CPPFLAGS="$CPPFLAGS"
11990 OLD_CFLAGS="$CFLAGS"
11991 OLD_LIBS="$LIBS"
11992 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11993 CFLAGS="$CFLAGS $XFT_CFLAGS"
11994 XFT_LIBS="-lXrender $XFT_LIBS"
11995 LIBS="$XFT_LIBS $LIBS"
11996 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11997 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11999 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12000 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-lXft $XFT_LIBS $LIBS"
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12008 /* Override any GCC internal prototype to avoid an error.
12009 Use char because int might match the return type of a GCC
12010 builtin and then its argument prototype would still apply. */
12011 #ifdef __cplusplus
12012 extern "C"
12013 #endif
12014 char XftFontOpen ();
12016 main ()
12018 return XftFontOpen ();
12020 return 0;
12022 _ACEOF
12023 if ac_fn_c_try_link "$LINENO"; then :
12024 ac_cv_lib_Xft_XftFontOpen=yes
12025 else
12026 ac_cv_lib_Xft_XftFontOpen=no
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12030 LIBS=$ac_check_lib_save_LIBS
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12033 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12034 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12035 HAVE_XFT=yes
12042 if test "${HAVE_XFT}" = "yes"; then
12044 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12047 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12048 else
12049 CPPFLAGS="$OLD_CPPFLAGS"
12050 CFLAGS="$OLD_CFLAGS"
12051 LIBS="$OLD_LIBS"
12052 fi # "${HAVE_XFT}" = "yes"
12053 fi # "$HAVE_XFT" != no
12054 fi # "x${with_xft}" != "xno"
12056 ## We used to allow building with FreeType and without Xft.
12057 ## However, the ftx font backend driver is not in good shape.
12058 if test "$HAVE_XFT" != "yes"; then
12059 HAVE_XFT=no
12060 HAVE_FREETYPE=no
12061 else
12063 succeeded=no
12065 if test "$PKG_CONFIG" = "no" ; then
12066 HAVE_FREETYPE=no
12067 else
12068 PKG_CONFIG_MIN_VERSION=0.9.0
12069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12071 $as_echo_n "checking for freetype2... " >&6; }
12073 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
12074 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
12075 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
12076 edit_cflags="
12077 s,///*,/,g
12078 s/^/ /
12079 s/ -I/ $isystem/g
12080 s/^ //
12082 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
12083 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
12085 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
12086 succeeded=yes
12087 else
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12089 $as_echo "no" >&6; }
12090 FREETYPE_CFLAGS=""
12091 FREETYPE_LIBS=""
12092 ## If we have a custom action on failure, don't print errors, but
12093 ## do set a variable so people can do so. Do it in a subshell
12094 ## to capture any diagnostics in invoking pkg-config.
12095 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
12101 else
12102 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12103 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12107 if test $succeeded = yes; then
12108 HAVE_FREETYPE=yes
12109 else
12110 HAVE_FREETYPE=no
12114 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12117 HAVE_LIBOTF=no
12118 if test "${HAVE_FREETYPE}" = "yes"; then
12120 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12122 if test "${with_libotf}" != "no"; then
12124 succeeded=no
12126 if test "$PKG_CONFIG" = "no" ; then
12127 HAVE_LIBOTF=no
12128 else
12129 PKG_CONFIG_MIN_VERSION=0.9.0
12130 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12132 $as_echo_n "checking for libotf... " >&6; }
12134 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12135 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12136 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12137 edit_cflags="
12138 s,///*,/,g
12139 s/^/ /
12140 s/ -I/ $isystem/g
12141 s/^ //
12143 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12144 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12146 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12147 succeeded=yes
12148 else
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 LIBOTF_CFLAGS=""
12152 LIBOTF_LIBS=""
12153 ## If we have a custom action on failure, don't print errors, but
12154 ## do set a variable so people can do so. Do it in a subshell
12155 ## to capture any diagnostics in invoking pkg-config.
12156 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12162 else
12163 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12164 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12168 if test $succeeded = yes; then
12169 HAVE_LIBOTF=yes
12170 else
12171 HAVE_LIBOTF=no
12174 if test "$HAVE_LIBOTF" = "yes"; then
12176 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12179 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12180 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 ac_check_lib_save_LIBS=$LIBS
12184 LIBS="-lotf $LIBS"
12185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186 /* end confdefs.h. */
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char OTF_get_variation_glyphs ();
12196 main ()
12198 return OTF_get_variation_glyphs ();
12200 return 0;
12202 _ACEOF
12203 if ac_fn_c_try_link "$LINENO"; then :
12204 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12205 else
12206 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_lib_save_LIBS
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12213 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12214 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12215 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12216 else
12217 HAVE_OTF_GET_VARIATION_GLYPHS=no
12220 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12222 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12229 HAVE_M17N_FLT=no
12230 if test "${HAVE_LIBOTF}" = yes; then
12231 if test "${with_m17n_flt}" != "no"; then
12233 succeeded=no
12235 if test "$PKG_CONFIG" = "no" ; then
12236 HAVE_M17N_FLT=no
12237 else
12238 PKG_CONFIG_MIN_VERSION=0.9.0
12239 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12241 $as_echo_n "checking for m17n-flt... " >&6; }
12243 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12244 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12245 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12246 edit_cflags="
12247 s,///*,/,g
12248 s/^/ /
12249 s/ -I/ $isystem/g
12250 s/^ //
12252 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12253 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12255 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12256 succeeded=yes
12257 else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 M17N_FLT_CFLAGS=""
12261 M17N_FLT_LIBS=""
12262 ## If we have a custom action on failure, don't print errors, but
12263 ## do set a variable so people can do so. Do it in a subshell
12264 ## to capture any diagnostics in invoking pkg-config.
12265 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12271 else
12272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12277 if test $succeeded = yes; then
12278 HAVE_M17N_FLT=yes
12279 else
12280 HAVE_M17N_FLT=no
12283 if test "$HAVE_M17N_FLT" = "yes"; then
12285 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12290 else
12291 HAVE_XFT=no
12292 HAVE_FREETYPE=no
12293 HAVE_LIBOTF=no
12294 HAVE_M17N_FLT=no
12297 ### End of font-backend (under X11) section.
12308 ### Use -lXpm if available, unless `--with-xpm=no'.
12309 HAVE_XPM=no
12310 LIBXPM=
12312 if test "${HAVE_W32}" = "yes"; then
12313 if test "${with_xpm}" != "no"; then
12314 SAVE_CPPFLAGS="$CPPFLAGS"
12315 SAVE_LDFLAGS="$LDFLAGS"
12316 CPPFLAGS="$CPPFLAGS -I/usr/include/noX"
12317 LDFLAGS="$LDFLAGS -L/usr/lib/noX"
12318 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12319 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5
12321 $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; }
12322 if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-lXpm $LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 char XpmReadFileToImage ();
12338 main ()
12340 return XpmReadFileToImage ();
12342 return 0;
12344 _ACEOF
12345 if ac_fn_c_try_link "$LINENO"; then :
12346 ac_cv_lib_Xpm_XpmReadFileToImage=yes
12347 else
12348 ac_cv_lib_Xpm_XpmReadFileToImage=no
12350 rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5
12355 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; }
12356 if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then :
12357 HAVE_XPM=yes
12363 if test "${HAVE_XPM}" = "yes"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12365 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368 #include "X11/xpm.h"
12369 #ifndef XpmReturnAllocPixels
12370 no_return_alloc_pixels
12371 #endif
12373 _ACEOF
12374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12375 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12376 HAVE_XPM=no
12377 else
12378 HAVE_XPM=yes
12380 rm -f conftest*
12383 if test "${HAVE_XPM}" = "yes"; then
12384 REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12386 $as_echo "yes" >&6; }
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12390 CPPFLAGS="$SAVE_CPPFLAGS"
12391 LDFLAGS="$SAVE_LDFLAGS"
12396 if test "${HAVE_XPM}" = "yes"; then
12398 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12400 LIBXPM=-lXpm
12404 if test "${HAVE_X11}" = "yes"; then
12405 if test "${with_xpm}" != "no"; then
12406 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12407 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12409 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12410 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-lXpm -lX11 $LIBS"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char XpmReadFileToPixmap ();
12426 main ()
12428 return XpmReadFileToPixmap ();
12430 return 0;
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12435 else
12436 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12438 rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12443 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12444 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12445 HAVE_XPM=yes
12451 if test "${HAVE_XPM}" = "yes"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12453 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456 #include "X11/xpm.h"
12457 #ifndef XpmReturnAllocPixels
12458 no_return_alloc_pixels
12459 #endif
12461 _ACEOF
12462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12463 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12464 HAVE_XPM=no
12465 else
12466 HAVE_XPM=yes
12468 rm -f conftest*
12471 if test "${HAVE_XPM}" = "yes"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12473 $as_echo "yes" >&6; }
12474 else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12481 if test "${HAVE_XPM}" = "yes"; then
12483 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12485 LIBXPM=-lXpm
12491 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12492 HAVE_JPEG=no
12493 LIBJPEG=
12494 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12495 if test "${with_jpeg}" != "no"; then
12496 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12497 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12499 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12500 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 ac_check_lib_save_LIBS=$LIBS
12504 LIBS="-ljpeg $LIBS"
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12508 /* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12511 #ifdef __cplusplus
12512 extern "C"
12513 #endif
12514 char jpeg_destroy_compress ();
12516 main ()
12518 return jpeg_destroy_compress ();
12520 return 0;
12522 _ACEOF
12523 if ac_fn_c_try_link "$LINENO"; then :
12524 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12525 else
12526 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 LIBS=$ac_check_lib_save_LIBS
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12533 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12534 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12535 HAVE_JPEG=yes
12543 if test "${HAVE_JPEG}" = "yes"; then
12544 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548 #include <jpeglib.h>
12549 version=JPEG_LIB_VERSION
12551 _ACEOF
12552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12553 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12554 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12556 else
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12558 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12559 HAVE_JPEG=no
12561 rm -f conftest*
12564 if test "${HAVE_JPEG}" = "yes"; then
12565 LIBJPEG=-ljpeg
12570 ### Use -lpng if available, unless `--with-png=no'.
12571 HAVE_PNG=no
12572 LIBPNG=
12573 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12574 if test "${with_png}" != "no"; then
12575 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12576 # in /usr/include/libpng.
12577 for ac_header in png.h libpng/png.h
12578 do :
12579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12580 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12581 eval as_val=\$$as_ac_Header
12582 if test "x$as_val" = x""yes; then :
12583 cat >>confdefs.h <<_ACEOF
12584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12585 _ACEOF
12586 break
12589 done
12591 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12593 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12594 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lpng -lz -lm $LIBS"
12599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h. */
12602 /* Override any GCC internal prototype to avoid an error.
12603 Use char because int might match the return type of a GCC
12604 builtin and then its argument prototype would still apply. */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 char png_get_channels ();
12610 main ()
12612 return png_get_channels ();
12614 return 0;
12616 _ACEOF
12617 if ac_fn_c_try_link "$LINENO"; then :
12618 ac_cv_lib_png_png_get_channels=yes
12619 else
12620 ac_cv_lib_png_png_get_channels=no
12622 rm -f core conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624 LIBS=$ac_check_lib_save_LIBS
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12627 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12628 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12629 HAVE_PNG=yes
12635 if test "${HAVE_PNG}" = "yes"; then
12637 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12639 LIBPNG="-lpng -lz -lm"
12641 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12642 # include <libpng/png.h>
12643 #else
12644 # include <png.h>
12645 #endif
12648 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12650 else
12652 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12660 ### Use -ltiff if available, unless `--with-tiff=no'.
12661 HAVE_TIFF=no
12662 LIBTIFF=
12663 if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then
12664 if test "${with_tiff}" != "no"; then
12665 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12666 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12667 tifflibs="-lz -lm"
12668 # At least one tiff package requires the jpeg library.
12669 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12671 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12672 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12673 $as_echo_n "(cached) " >&6
12674 else
12675 ac_check_lib_save_LIBS=$LIBS
12676 LIBS="-ltiff $tifflibs $LIBS"
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12680 /* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12683 #ifdef __cplusplus
12684 extern "C"
12685 #endif
12686 char TIFFGetVersion ();
12688 main ()
12690 return TIFFGetVersion ();
12692 return 0;
12694 _ACEOF
12695 if ac_fn_c_try_link "$LINENO"; then :
12696 ac_cv_lib_tiff_TIFFGetVersion=yes
12697 else
12698 ac_cv_lib_tiff_TIFFGetVersion=no
12700 rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702 LIBS=$ac_check_lib_save_LIBS
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12705 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12706 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12707 HAVE_TIFF=yes
12715 if test "${HAVE_TIFF}" = "yes"; then
12717 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12719 LIBTIFF=-ltiff
12724 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12725 HAVE_GIF=no
12726 LIBGIF=
12727 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \
12728 || test "${HAVE_W32}" = "yes"; then
12729 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12730 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12731 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12732 # Earlier versions can crash Emacs.
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12734 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12735 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 ac_check_lib_save_LIBS=$LIBS
12739 LIBS="-lgif $LIBS"
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12746 #ifdef __cplusplus
12747 extern "C"
12748 #endif
12749 char EGifPutExtensionLast ();
12751 main ()
12753 return EGifPutExtensionLast ();
12755 return 0;
12757 _ACEOF
12758 if ac_fn_c_try_link "$LINENO"; then :
12759 ac_cv_lib_gif_EGifPutExtensionLast=yes
12760 else
12761 ac_cv_lib_gif_EGifPutExtensionLast=no
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_lib_save_LIBS
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12768 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12769 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12770 HAVE_GIF=yes
12771 else
12772 HAVE_GIF=maybe
12779 if test "$HAVE_GIF" = yes; then
12780 LIBGIF=-lgif
12781 elif test "$HAVE_GIF" = maybe; then
12782 # If gif_lib.h but no libgif, try libungif.
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12784 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12785 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 ac_check_lib_save_LIBS=$LIBS
12789 LIBS="-lungif $LIBS"
12790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12793 /* Override any GCC internal prototype to avoid an error.
12794 Use char because int might match the return type of a GCC
12795 builtin and then its argument prototype would still apply. */
12796 #ifdef __cplusplus
12797 extern "C"
12798 #endif
12799 char EGifPutExtensionLast ();
12801 main ()
12803 return EGifPutExtensionLast ();
12805 return 0;
12807 _ACEOF
12808 if ac_fn_c_try_link "$LINENO"; then :
12809 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12810 else
12811 ac_cv_lib_ungif_EGifPutExtensionLast=no
12813 rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12815 LIBS=$ac_check_lib_save_LIBS
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12818 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12819 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12820 HAVE_GIF=yes
12821 else
12822 HAVE_GIF=no
12825 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12828 if test "${HAVE_GIF}" = "yes"; then
12830 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12836 if test "${HAVE_X11}" = "yes"; then
12837 MISSING=""
12838 WITH_NO=""
12839 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12840 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12841 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12842 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12843 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12844 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12845 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12846 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12847 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12848 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12850 if test "X${MISSING}" != X; then
12851 as_fn_error "The following required libraries were not found:
12852 $MISSING
12853 Maybe some development libraries/packages are missing?
12854 If you don't want to link with them give
12855 $WITH_NO
12856 as options to configure" "$LINENO" 5
12860 ### Use -lgpm if available, unless `--with-gpm=no'.
12861 HAVE_GPM=no
12862 LIBGPM=
12863 if test "${with_gpm}" != "no"; then
12864 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12865 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12867 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12868 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 ac_check_lib_save_LIBS=$LIBS
12872 LIBS="-lgpm $LIBS"
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12876 /* Override any GCC internal prototype to avoid an error.
12877 Use char because int might match the return type of a GCC
12878 builtin and then its argument prototype would still apply. */
12879 #ifdef __cplusplus
12880 extern "C"
12881 #endif
12882 char Gpm_Open ();
12884 main ()
12886 return Gpm_Open ();
12888 return 0;
12890 _ACEOF
12891 if ac_fn_c_try_link "$LINENO"; then :
12892 ac_cv_lib_gpm_Gpm_Open=yes
12893 else
12894 ac_cv_lib_gpm_Gpm_Open=no
12896 rm -f core conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext conftest.$ac_ext
12898 LIBS=$ac_check_lib_save_LIBS
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12901 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12902 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12903 HAVE_GPM=yes
12910 if test "${HAVE_GPM}" = "yes"; then
12912 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12914 LIBGPM=-lgpm
12923 GNUSTEP_CFLAGS=
12924 ### Use NeXTstep API to implement GUI.
12925 if test "${HAVE_NS}" = "yes"; then
12927 $as_echo "#define HAVE_NS 1" >>confdefs.h
12929 if test "${NS_IMPL_COCOA}" = "yes"; then
12931 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12934 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12936 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12938 # See also .m.o rule in Makefile.in */
12939 # FIXME: are all these flags really needed? Document here why. */
12940 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12941 ## Extra CFLAGS applied to src/*.m files.
12942 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"
12944 # We also have mouse menus.
12945 HAVE_MENUS=yes
12946 OTHER_FILES=ns-app
12949 if test "${HAVE_W32}" = "yes"; then
12950 HAVE_MENUS=yes
12953 ### Use session management (-lSM -lICE) if available
12954 HAVE_X_SM=no
12955 LIBXSM=
12956 if test "${HAVE_X11}" = "yes"; then
12957 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12958 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12960 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12961 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 ac_check_lib_save_LIBS=$LIBS
12965 LIBS="-lSM -lICE $LIBS"
12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 char SmcOpenConnection ();
12977 main ()
12979 return SmcOpenConnection ();
12981 return 0;
12983 _ACEOF
12984 if ac_fn_c_try_link "$LINENO"; then :
12985 ac_cv_lib_SM_SmcOpenConnection=yes
12986 else
12987 ac_cv_lib_SM_SmcOpenConnection=no
12989 rm -f core conftest.err conftest.$ac_objext \
12990 conftest$ac_exeext conftest.$ac_ext
12991 LIBS=$ac_check_lib_save_LIBS
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12994 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12995 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12996 HAVE_X_SM=yes
13003 if test "${HAVE_X_SM}" = "yes"; then
13005 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13007 LIBXSM="-lSM -lICE"
13008 case "$LIBS" in
13009 *-lSM*) ;;
13010 *) LIBS="$LIBXSM $LIBS" ;;
13011 esac
13016 ### Use libxml (-lxml2) if available
13017 HAVE_LIBXML2=no
13018 if test "${with_xml2}" != "no"; then
13019 ### I'm not sure what the version number should be, so I just guessed.
13021 succeeded=no
13023 if test "$PKG_CONFIG" = "no" ; then
13024 HAVE_LIBXML2=no
13025 else
13026 PKG_CONFIG_MIN_VERSION=0.9.0
13027 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13029 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13031 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
13032 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
13033 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
13034 edit_cflags="
13035 s,///*,/,g
13036 s/^/ /
13037 s/ -I/ $isystem/g
13038 s/^ //
13040 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
13041 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
13043 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
13044 succeeded=yes
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048 LIBXML2_CFLAGS=""
13049 LIBXML2_LIBS=""
13050 ## If we have a custom action on failure, don't print errors, but
13051 ## do set a variable so people can do so. Do it in a subshell
13052 ## to capture any diagnostics in invoking pkg-config.
13053 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
13059 else
13060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13065 if test $succeeded = yes; then
13066 HAVE_LIBXML2=yes
13067 else
13068 HAVE_LIBXML2=no
13071 if test "${HAVE_LIBXML2}" = "yes"; then
13072 LIBS="$LIBXML2_LIBS $LIBS"
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13074 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13075 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13076 $as_echo_n "(cached) " >&6
13077 else
13078 ac_check_lib_save_LIBS=$LIBS
13079 LIBS="-lxml2 $LIBS"
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h. */
13083 /* Override any GCC internal prototype to avoid an error.
13084 Use char because int might match the return type of a GCC
13085 builtin and then its argument prototype would still apply. */
13086 #ifdef __cplusplus
13087 extern "C"
13088 #endif
13089 char htmlReadMemory ();
13091 main ()
13093 return htmlReadMemory ();
13095 return 0;
13097 _ACEOF
13098 if ac_fn_c_try_link "$LINENO"; then :
13099 ac_cv_lib_xml2_htmlReadMemory=yes
13100 else
13101 ac_cv_lib_xml2_htmlReadMemory=no
13103 rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13105 LIBS=$ac_check_lib_save_LIBS
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13108 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13109 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13110 HAVE_LIBXML2=yes
13111 else
13112 HAVE_LIBXML2=no
13115 if test "${HAVE_LIBXML2}" = "yes"; then
13117 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13119 else
13120 LIBXML2_LIBS=""
13121 LIBXML2_CFLAGS=""
13128 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13130 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13131 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
13133 else
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <netdb.h>
13138 main ()
13140 return h_errno;
13142 return 0;
13144 _ACEOF
13145 if ac_fn_c_try_link "$LINENO"; then :
13146 emacs_cv_netdb_declares_h_errno=yes
13147 else
13148 emacs_cv_netdb_declares_h_errno=no
13150 rm -f core conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13154 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13155 if test $emacs_cv_netdb_declares_h_errno = yes; then
13157 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13161 # sqrt and other floating-point functions such as fmod and frexp
13162 # are found in -lm on most systems.
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13164 $as_echo_n "checking for sqrt in -lm... " >&6; }
13165 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13166 $as_echo_n "(cached) " >&6
13167 else
13168 ac_check_lib_save_LIBS=$LIBS
13169 LIBS="-lm $LIBS"
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13173 /* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 char sqrt ();
13181 main ()
13183 return sqrt ();
13185 return 0;
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"; then :
13189 ac_cv_lib_m_sqrt=yes
13190 else
13191 ac_cv_lib_m_sqrt=no
13193 rm -f core conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13198 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13199 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13200 cat >>confdefs.h <<_ACEOF
13201 #define HAVE_LIBM 1
13202 _ACEOF
13204 LIBS="-lm $LIBS"
13209 # Check for mail-locking functions in a "mail" library. Probably this should
13210 # have the same check as for liblockfile below.
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13212 $as_echo_n "checking for maillock in -lmail... " >&6; }
13213 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 ac_check_lib_save_LIBS=$LIBS
13217 LIBS="-lmail $LIBS"
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13221 /* Override any GCC internal prototype to avoid an error.
13222 Use char because int might match the return type of a GCC
13223 builtin and then its argument prototype would still apply. */
13224 #ifdef __cplusplus
13225 extern "C"
13226 #endif
13227 char maillock ();
13229 main ()
13231 return maillock ();
13233 return 0;
13235 _ACEOF
13236 if ac_fn_c_try_link "$LINENO"; then :
13237 ac_cv_lib_mail_maillock=yes
13238 else
13239 ac_cv_lib_mail_maillock=no
13241 rm -f core conftest.err conftest.$ac_objext \
13242 conftest$ac_exeext conftest.$ac_ext
13243 LIBS=$ac_check_lib_save_LIBS
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13246 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13247 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13248 have_mail=yes
13249 else
13250 have_mail=no
13253 if test $have_mail = yes; then
13254 LIBS_MAIL=-lmail
13255 LIBS="$LIBS_MAIL $LIBS"
13257 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13259 else
13260 LIBS_MAIL=
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13263 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13264 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 ac_check_lib_save_LIBS=$LIBS
13268 LIBS="-llockfile $LIBS"
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13272 /* Override any GCC internal prototype to avoid an error.
13273 Use char because int might match the return type of a GCC
13274 builtin and then its argument prototype would still apply. */
13275 #ifdef __cplusplus
13276 extern "C"
13277 #endif
13278 char maillock ();
13280 main ()
13282 return maillock ();
13284 return 0;
13286 _ACEOF
13287 if ac_fn_c_try_link "$LINENO"; then :
13288 ac_cv_lib_lockfile_maillock=yes
13289 else
13290 ac_cv_lib_lockfile_maillock=no
13292 rm -f core conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13297 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13298 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13299 have_lockfile=yes
13300 else
13301 have_lockfile=no
13304 if test $have_lockfile = yes; then
13305 LIBS_MAIL=-llockfile
13306 LIBS="$LIBS_MAIL $LIBS"
13308 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13310 else
13311 # If we have the shared liblockfile, assume we must use it for mail
13312 # locking (e.g. Debian). If we couldn't link against liblockfile
13313 # (no liblockfile.a installed), ensure that we don't need to.
13314 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13315 set dummy liblockfile.so; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$liblockfile"; then
13322 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13326 for as_dir in $as_dummy
13328 IFS=$as_save_IFS
13329 test -z "$as_dir" && as_dir=.
13330 for ac_exec_ext in '' $ac_executable_extensions; do
13331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13332 ac_cv_prog_liblockfile="yes"
13333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13334 break 2
13336 done
13337 done
13338 IFS=$as_save_IFS
13340 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13343 liblockfile=$ac_cv_prog_liblockfile
13344 if test -n "$liblockfile"; then
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13346 $as_echo "$liblockfile" >&6; }
13347 else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349 $as_echo "no" >&6; }
13353 if test $ac_cv_prog_liblockfile = yes; then
13354 as_fn_error "Shared liblockfile found but can't link against it.
13355 This probably means that movemail could lose mail.
13356 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13364 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13365 ## interlock access to the mail spool. The alternative is a lock file named
13366 ## /usr/spool/mail/$USER.lock.
13367 mail_lock=no
13368 case "$opsys" in
13369 aix4-2) mail_lock="lockf" ;;
13371 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13373 ## On GNU/Linux systems, both methods are used by various mail programs.
13374 ## I assume most people are using newer mailers that have heard of flock.
13375 ## Change this if you need to.
13376 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13377 ## configure gets the right answers, and that means *NOT* using flock.
13378 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13379 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13380 ## Debian maintainer hasn't provided a clean fix for Emacs.
13381 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13382 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13383 ## correct logic. -- fx
13384 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13385 ## liblockfile is a Free Software replacement for libmail, used on
13386 ## Debian systems and elsewhere. -rfr.
13387 gnu-*)
13388 mail_lock="flock"
13389 if test $have_mail = yes || test $have_lockfile = yes; then
13390 test $ac_cv_header_maillock_h = yes && mail_lock=no
13393 esac
13395 BLESSMAIL_TARGET=
13396 case "$mail_lock" in
13397 flock)
13398 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13401 lockf)
13402 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13405 *) BLESSMAIL_TARGET="need-blessmail" ;;
13406 esac
13410 for ac_func in gethostname \
13411 closedir getrusage get_current_dir_name \
13412 lrand48 setsid \
13413 fpathconf select euidaccess getpagesize setlocale \
13414 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13415 __fpending strsignal setitimer \
13416 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13417 gai_strerror mkstemp getline getdelim fsync sync \
13418 difftime posix_memalign \
13419 getpwent endpwent getgrent endgrent \
13420 touchlock \
13421 cfmakeraw cfsetspeed copysign __executable_start
13422 do :
13423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13424 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13425 eval as_val=\$$as_ac_var
13426 if test "x$as_val" = x""yes; then :
13427 cat >>confdefs.h <<_ACEOF
13428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13429 _ACEOF
13432 done
13435 if test $opsys = unixware; then
13437 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13439 else
13440 for ac_func in getwd
13441 do :
13442 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13443 if test "x$ac_cv_func_getwd" = x""yes; then :
13444 cat >>confdefs.h <<_ACEOF
13445 #define HAVE_GETWD 1
13446 _ACEOF
13449 done
13453 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13454 ## has a broken `rint' in some library versions including math library
13455 ## version number A.09.05.
13456 ## You can fix the math library by installing patch number PHSS_4630.
13457 ## But we can fix it more reliably for Emacs by just not using rint.
13458 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13459 case $opsys in
13460 hpux*) : ;;
13461 *) for ac_func in random rint
13462 do :
13463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13465 eval as_val=\$$as_ac_var
13466 if test "x$as_val" = x""yes; then :
13467 cat >>confdefs.h <<_ACEOF
13468 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13469 _ACEOF
13472 done
13474 esac
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13477 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13478 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13485 main ()
13487 __builtin_unwind_init ();
13489 return 0;
13491 _ACEOF
13492 if ac_fn_c_try_link "$LINENO"; then :
13493 emacs_cv_func___builtin_unwind_init=yes
13494 else
13495 emacs_cv_func___builtin_unwind_init=no
13497 rm -f core conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13501 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13502 if test $emacs_cv_func___builtin_unwind_init = yes; then
13504 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13513 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13514 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 while :; do
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 #include <sys/types.h> /* for off_t */
13521 #include <stdio.h>
13523 main ()
13525 int (*fp) (FILE *, off_t, int) = fseeko;
13526 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13528 return 0;
13530 _ACEOF
13531 if ac_fn_c_try_link "$LINENO"; then :
13532 ac_cv_sys_largefile_source=no; break
13534 rm -f core conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13538 #define _LARGEFILE_SOURCE 1
13539 #include <sys/types.h> /* for off_t */
13540 #include <stdio.h>
13542 main ()
13544 int (*fp) (FILE *, off_t, int) = fseeko;
13545 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13547 return 0;
13549 _ACEOF
13550 if ac_fn_c_try_link "$LINENO"; then :
13551 ac_cv_sys_largefile_source=1; break
13553 rm -f core conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
13555 ac_cv_sys_largefile_source=unknown
13556 break
13557 done
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13560 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13561 case $ac_cv_sys_largefile_source in #(
13562 no | unknown) ;;
13564 cat >>confdefs.h <<_ACEOF
13565 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13566 _ACEOF
13568 esac
13569 rm -rf conftest*
13571 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13572 # in glibc 2.1.3, but that breaks too many other things.
13573 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13574 if test $ac_cv_sys_largefile_source != unknown; then
13576 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13582 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13583 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13584 $as_echo_n "(cached) " >&6
13585 else
13586 # Use it with a single arg.
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 $ac_includes_default
13591 main ()
13593 getpgrp (0);
13595 return 0;
13597 _ACEOF
13598 if ac_fn_c_try_compile "$LINENO"; then :
13599 ac_cv_func_getpgrp_void=no
13600 else
13601 ac_cv_func_getpgrp_void=yes
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13607 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13608 if test $ac_cv_func_getpgrp_void = yes; then
13610 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13615 # UNIX98 PTYs.
13616 for ac_func in grantpt
13617 do :
13618 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13619 if test "x$ac_cv_func_grantpt" = x""yes; then :
13620 cat >>confdefs.h <<_ACEOF
13621 #define HAVE_GRANTPT 1
13622 _ACEOF
13625 done
13628 # PTY-related GNU extensions.
13629 for ac_func in getpt posix_openpt
13630 do :
13631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13632 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13633 eval as_val=\$$as_ac_var
13634 if test "x$as_val" = x""yes; then :
13635 cat >>confdefs.h <<_ACEOF
13636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13637 _ACEOF
13640 done
13643 # Check this now, so that we will NOT find the above functions in ncurses.
13644 # That is because we have not set up to link ncurses in lib-src.
13645 # It's better to believe a function is not available
13646 # than to expect to find it in ncurses.
13647 # Also we need tputs and friends to be able to build at all.
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13649 $as_echo_n "checking for library containing tputs... " >&6; }
13650 # Run a test program that contains a call to tputs, a call that is
13651 # never executed. This tests whether a pre-'main' dynamic linker
13652 # works with the library. It's too much trouble to actually call
13653 # tputs in the test program, due to portability hassles. When
13654 # cross-compiling, assume the test program will run if it links.
13656 # Maybe curses should be tried earlier?
13657 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13658 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13659 OLIBS=$LIBS
13660 if test -z "$tputs_library"; then
13661 LIBS_TERMCAP=
13662 msg='none required'
13663 else
13664 LIBS_TERMCAP=-l$tputs_library
13665 msg=$LIBS_TERMCAP
13666 LIBS="$LIBS_TERMCAP $LIBS"
13668 if test "$cross_compiling" = yes; then :
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13672 extern void tputs (const char *, int, int (*)(int));
13673 int main (int argc, char **argv)
13675 if (argc == 10000)
13676 tputs (argv[0], 0, 0);
13677 return 0;
13680 _ACEOF
13681 if ac_fn_c_try_link "$LINENO"; then :
13683 else
13684 msg=no
13686 rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
13688 else
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13692 extern void tputs (const char *, int, int (*)(int));
13693 int main (int argc, char **argv)
13695 if (argc == 10000)
13696 tputs (argv[0], 0, 0);
13697 return 0;
13700 _ACEOF
13701 if ac_fn_c_try_run "$LINENO"; then :
13703 else
13704 msg=no
13706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13707 conftest.$ac_objext conftest.beam conftest.$ac_ext
13710 LIBS=$OLIBS
13711 if test "X$msg" != Xno; then
13712 break
13714 done
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13716 $as_echo "$msg" >&6; }
13717 if test "X$msg" = Xno; then
13718 as_fn_error "The required function \`tputs' was not found in any library.
13719 The following libraries were tried (in order):
13720 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13721 Please try installing whichever of these libraries is most appropriate
13722 for your system, together with its header files.
13723 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13726 ## Use termcap instead of terminfo?
13727 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13728 TERMINFO=yes
13729 ## FIXME? In the cases below where we unconditionally set
13730 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13731 ## if that was found above to have tputs.
13732 ## Should we use the gnu* logic everywhere?
13733 case "$opsys" in
13734 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13735 ## The ncurses library has been moved out of the System framework in
13736 ## Mac OS X 10.2. So if configure detects it, set the command-line
13737 ## option to use it.
13738 darwin) LIBS_TERMCAP="-lncurses" ;;
13740 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13742 freebsd)
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13744 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13745 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include <osreldate.h>
13752 main ()
13754 #if __FreeBSD_version < 400000
13755 fail;
13756 #endif
13759 return 0;
13761 _ACEOF
13762 if ac_fn_c_try_link "$LINENO"; then :
13763 emacs_cv_freebsd_terminfo=yes
13764 else
13765 emacs_cv_freebsd_terminfo=no
13767 rm -f core conftest.err conftest.$ac_objext \
13768 conftest$ac_exeext conftest.$ac_ext
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13773 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13775 if test $emacs_cv_freebsd_terminfo = yes; then
13776 LIBS_TERMCAP="-lncurses"
13777 else
13778 TERMINFO=no
13779 LIBS_TERMCAP="-ltermcap"
13783 netbsd)
13784 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13785 TERMINFO=no
13786 LIBS_TERMCAP="-ltermcap"
13790 openbsd) LIBS_TERMCAP="-lncurses" ;;
13792 ## hpux: Make sure we get select from libc rather than from libcurses
13793 ## because libcurses on HPUX 10.10 has a broken version of select.
13794 ## We used to use -lc -lcurses, but this may be cleaner.
13795 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13796 # set that way, now it uses the default). Isn't this a contradiction?
13797 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13799 esac
13801 TERMCAP_OBJ=tparam.o
13802 if test $TERMINFO = yes; then
13804 $as_echo "#define TERMINFO 1" >>confdefs.h
13806 TERMCAP_OBJ=terminfo.o
13812 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13813 # On Darwin, res_init appears not to be useful: see bug#562 and
13814 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13815 resolv=no
13817 if test $opsys != darwin; then
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 #include <netinet/in.h>
13822 #include <arpa/nameser.h>
13823 #include <resolv.h>
13825 main ()
13827 return res_init();
13829 return 0;
13831 _ACEOF
13832 if ac_fn_c_try_link "$LINENO"; then :
13833 have_res_init=yes
13834 else
13835 have_res_init=no
13837 rm -f core conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13839 if test "$have_res_init" = no; then
13840 OLIBS="$LIBS"
13841 LIBS="$LIBS -lresolv"
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13843 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 #include <netinet/in.h>
13847 #include <arpa/nameser.h>
13848 #include <resolv.h>
13850 main ()
13852 return res_init();
13854 return 0;
13856 _ACEOF
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 have_res_init=yes
13859 else
13860 have_res_init=no
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13865 $as_echo "$have_res_init" >&6; }
13866 if test "$have_res_init" = yes ; then
13867 resolv=yes
13869 LIBS="$OLIBS"
13872 if test "$have_res_init" = yes; then
13874 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13878 # Do we need the Hesiod library to provide the support routines?
13879 LIBHESIOD=
13880 if test "$with_hesiod" != no ; then
13881 # Don't set $LIBS here -- see comments above. FIXME which comments?
13882 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13883 if test "x$ac_cv_func_res_send" = x""yes; then :
13885 else
13886 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13887 if test "x$ac_cv_func___res_send" = x""yes; then :
13889 else
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13891 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13892 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13894 else
13895 ac_check_lib_save_LIBS=$LIBS
13896 LIBS="-lresolv $LIBS"
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13900 /* Override any GCC internal prototype to avoid an error.
13901 Use char because int might match the return type of a GCC
13902 builtin and then its argument prototype would still apply. */
13903 #ifdef __cplusplus
13904 extern "C"
13905 #endif
13906 char res_send ();
13908 main ()
13910 return res_send ();
13912 return 0;
13914 _ACEOF
13915 if ac_fn_c_try_link "$LINENO"; then :
13916 ac_cv_lib_resolv_res_send=yes
13917 else
13918 ac_cv_lib_resolv_res_send=no
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 LIBS=$ac_check_lib_save_LIBS
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13925 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13926 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13927 resolv=yes
13928 else
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13930 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13931 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13932 $as_echo_n "(cached) " >&6
13933 else
13934 ac_check_lib_save_LIBS=$LIBS
13935 LIBS="-lresolv $LIBS"
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13942 #ifdef __cplusplus
13943 extern "C"
13944 #endif
13945 char __res_send ();
13947 main ()
13949 return __res_send ();
13951 return 0;
13953 _ACEOF
13954 if ac_fn_c_try_link "$LINENO"; then :
13955 ac_cv_lib_resolv___res_send=yes
13956 else
13957 ac_cv_lib_resolv___res_send=no
13959 rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 LIBS=$ac_check_lib_save_LIBS
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13964 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13965 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13966 resolv=yes
13975 if test "$resolv" = yes ; then
13976 RESOLVLIB=-lresolv
13977 else
13978 RESOLVLIB=
13980 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13981 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13985 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13986 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 ac_check_lib_save_LIBS=$LIBS
13990 LIBS="-lhesiod $RESOLVLIB $LIBS"
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 /* Override any GCC internal prototype to avoid an error.
13995 Use char because int might match the return type of a GCC
13996 builtin and then its argument prototype would still apply. */
13997 #ifdef __cplusplus
13998 extern "C"
13999 #endif
14000 char hes_getmailhost ();
14002 main ()
14004 return hes_getmailhost ();
14006 return 0;
14008 _ACEOF
14009 if ac_fn_c_try_link "$LINENO"; then :
14010 ac_cv_lib_hesiod_hes_getmailhost=yes
14011 else
14012 ac_cv_lib_hesiod_hes_getmailhost=no
14014 rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14016 LIBS=$ac_check_lib_save_LIBS
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
14019 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
14020 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
14021 hesiod=yes
14022 else
14029 if test x"$hesiod" = xyes; then
14031 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
14033 LIBHESIOD=-lhesiod
14038 # Do we need libresolv (due to res_init or Hesiod)?
14039 if test "$resolv" = yes && test $opsys != darwin; then
14041 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
14043 LIBRESOLV=-lresolv
14044 else
14045 LIBRESOLV=
14049 # These tell us which Kerberos-related libraries to use.
14050 COM_ERRLIB=
14051 CRYPTOLIB=
14052 KRB5LIB=
14053 DESLIB=
14054 KRB4LIB=
14056 if test "${with_kerberos}" != no; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
14058 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
14059 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 ac_check_lib_save_LIBS=$LIBS
14063 LIBS="-lcom_err $LIBS"
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14067 /* Override any GCC internal prototype to avoid an error.
14068 Use char because int might match the return type of a GCC
14069 builtin and then its argument prototype would still apply. */
14070 #ifdef __cplusplus
14071 extern "C"
14072 #endif
14073 char com_err ();
14075 main ()
14077 return com_err ();
14079 return 0;
14081 _ACEOF
14082 if ac_fn_c_try_link "$LINENO"; then :
14083 ac_cv_lib_com_err_com_err=yes
14084 else
14085 ac_cv_lib_com_err_com_err=no
14087 rm -f core conftest.err conftest.$ac_objext \
14088 conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
14092 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
14093 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
14094 have_com_err=yes
14095 else
14096 have_com_err=no
14099 if test $have_com_err = yes; then
14100 COM_ERRLIB=-lcom_err
14101 LIBS="$COM_ERRLIB $LIBS"
14103 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
14107 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
14108 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 ac_check_lib_save_LIBS=$LIBS
14112 LIBS="-lcrypto $LIBS"
14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14114 /* end confdefs.h. */
14116 /* Override any GCC internal prototype to avoid an error.
14117 Use char because int might match the return type of a GCC
14118 builtin and then its argument prototype would still apply. */
14119 #ifdef __cplusplus
14120 extern "C"
14121 #endif
14122 char mit_des_cbc_encrypt ();
14124 main ()
14126 return mit_des_cbc_encrypt ();
14128 return 0;
14130 _ACEOF
14131 if ac_fn_c_try_link "$LINENO"; then :
14132 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
14133 else
14134 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
14136 rm -f core conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
14141 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
14142 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
14143 have_crypto=yes
14144 else
14145 have_crypto=no
14148 if test $have_crypto = yes; then
14149 CRYPTOLIB=-lcrypto
14150 LIBS="$CRYPTOLIB $LIBS"
14152 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
14156 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
14157 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 ac_check_lib_save_LIBS=$LIBS
14161 LIBS="-lk5crypto $LIBS"
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14165 /* Override any GCC internal prototype to avoid an error.
14166 Use char because int might match the return type of a GCC
14167 builtin and then its argument prototype would still apply. */
14168 #ifdef __cplusplus
14169 extern "C"
14170 #endif
14171 char mit_des_cbc_encrypt ();
14173 main ()
14175 return mit_des_cbc_encrypt ();
14177 return 0;
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
14182 else
14183 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14187 LIBS=$ac_check_lib_save_LIBS
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
14190 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
14191 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
14192 have_k5crypto=yes
14193 else
14194 have_k5crypto=no
14197 if test $have_k5crypto = yes; then
14198 CRYPTOLIB=-lk5crypto
14199 LIBS="$CRYPTOLIB $LIBS"
14201 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14205 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14206 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14209 ac_check_lib_save_LIBS=$LIBS
14210 LIBS="-lkrb5 $LIBS"
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14214 /* Override any GCC internal prototype to avoid an error.
14215 Use char because int might match the return type of a GCC
14216 builtin and then its argument prototype would still apply. */
14217 #ifdef __cplusplus
14218 extern "C"
14219 #endif
14220 char krb5_init_context ();
14222 main ()
14224 return krb5_init_context ();
14226 return 0;
14228 _ACEOF
14229 if ac_fn_c_try_link "$LINENO"; then :
14230 ac_cv_lib_krb5_krb5_init_context=yes
14231 else
14232 ac_cv_lib_krb5_krb5_init_context=no
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 LIBS=$ac_check_lib_save_LIBS
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14239 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14240 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14241 have_krb5=yes
14242 else
14243 have_krb5=no
14246 if test $have_krb5=yes; then
14247 KRB5LIB=-lkrb5
14248 LIBS="$KRB5LIB $LIBS"
14250 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14253 if test "${with_kerberos5}" = no; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14255 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14256 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 ac_check_lib_save_LIBS=$LIBS
14260 LIBS="-ldes425 $LIBS"
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14264 /* Override any GCC internal prototype to avoid an error.
14265 Use char because int might match the return type of a GCC
14266 builtin and then its argument prototype would still apply. */
14267 #ifdef __cplusplus
14268 extern "C"
14269 #endif
14270 char des_cbc_encrypt ();
14272 main ()
14274 return des_cbc_encrypt ();
14276 return 0;
14278 _ACEOF
14279 if ac_fn_c_try_link "$LINENO"; then :
14280 ac_cv_lib_des425_des_cbc_encrypt=yes
14281 else
14282 ac_cv_lib_des425_des_cbc_encrypt=no
14284 rm -f core conftest.err conftest.$ac_objext \
14285 conftest$ac_exeext conftest.$ac_ext
14286 LIBS=$ac_check_lib_save_LIBS
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14289 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14290 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14291 have_des425=yes
14292 else
14293 have_des425=no
14296 if test $have_des425 = yes; then
14297 DESLIB=-ldes425
14298 LIBS="$DESLIB $LIBS"
14300 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14302 else
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14304 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14305 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14306 $as_echo_n "(cached) " >&6
14307 else
14308 ac_check_lib_save_LIBS=$LIBS
14309 LIBS="-ldes $LIBS"
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14316 #ifdef __cplusplus
14317 extern "C"
14318 #endif
14319 char des_cbc_encrypt ();
14321 main ()
14323 return des_cbc_encrypt ();
14325 return 0;
14327 _ACEOF
14328 if ac_fn_c_try_link "$LINENO"; then :
14329 ac_cv_lib_des_des_cbc_encrypt=yes
14330 else
14331 ac_cv_lib_des_des_cbc_encrypt=no
14333 rm -f core conftest.err conftest.$ac_objext \
14334 conftest$ac_exeext conftest.$ac_ext
14335 LIBS=$ac_check_lib_save_LIBS
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14338 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14339 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14340 have_des=yes
14341 else
14342 have_des=no
14345 if test $have_des = yes; then
14346 DESLIB=-ldes
14347 LIBS="$DESLIB $LIBS"
14349 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14354 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14355 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14357 else
14358 ac_check_lib_save_LIBS=$LIBS
14359 LIBS="-lkrb4 $LIBS"
14360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14363 /* Override any GCC internal prototype to avoid an error.
14364 Use char because int might match the return type of a GCC
14365 builtin and then its argument prototype would still apply. */
14366 #ifdef __cplusplus
14367 extern "C"
14368 #endif
14369 char krb_get_cred ();
14371 main ()
14373 return krb_get_cred ();
14375 return 0;
14377 _ACEOF
14378 if ac_fn_c_try_link "$LINENO"; then :
14379 ac_cv_lib_krb4_krb_get_cred=yes
14380 else
14381 ac_cv_lib_krb4_krb_get_cred=no
14383 rm -f core conftest.err conftest.$ac_objext \
14384 conftest$ac_exeext conftest.$ac_ext
14385 LIBS=$ac_check_lib_save_LIBS
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14388 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14389 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14390 have_krb4=yes
14391 else
14392 have_krb4=no
14395 if test $have_krb4 = yes; then
14396 KRB4LIB=-lkrb4
14397 LIBS="$KRB4LIB $LIBS"
14399 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14401 else
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14403 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14404 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 ac_check_lib_save_LIBS=$LIBS
14408 LIBS="-lkrb $LIBS"
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14412 /* Override any GCC internal prototype to avoid an error.
14413 Use char because int might match the return type of a GCC
14414 builtin and then its argument prototype would still apply. */
14415 #ifdef __cplusplus
14416 extern "C"
14417 #endif
14418 char krb_get_cred ();
14420 main ()
14422 return krb_get_cred ();
14424 return 0;
14426 _ACEOF
14427 if ac_fn_c_try_link "$LINENO"; then :
14428 ac_cv_lib_krb_krb_get_cred=yes
14429 else
14430 ac_cv_lib_krb_krb_get_cred=no
14432 rm -f core conftest.err conftest.$ac_objext \
14433 conftest$ac_exeext conftest.$ac_ext
14434 LIBS=$ac_check_lib_save_LIBS
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14437 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14438 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14439 have_krb=yes
14440 else
14441 have_krb=no
14444 if test $have_krb = yes; then
14445 KRB4LIB=-lkrb
14446 LIBS="$KRB4LIB $LIBS"
14448 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14454 if test "${with_kerberos5}" != no; then
14455 for ac_header in krb5.h
14456 do :
14457 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14458 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14459 cat >>confdefs.h <<_ACEOF
14460 #define HAVE_KRB5_H 1
14461 _ACEOF
14462 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14464 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14466 cat >>confdefs.h <<_ACEOF
14467 #define HAVE_KRB5_ERROR_TEXT 1
14468 _ACEOF
14472 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14474 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14476 cat >>confdefs.h <<_ACEOF
14477 #define HAVE_KRB5_ERROR_E_TEXT 1
14478 _ACEOF
14485 done
14487 else
14488 for ac_header in des.h
14489 do :
14490 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14491 if test "x$ac_cv_header_des_h" = x""yes; then :
14492 cat >>confdefs.h <<_ACEOF
14493 #define HAVE_DES_H 1
14494 _ACEOF
14496 else
14497 for ac_header in kerberosIV/des.h
14498 do :
14499 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14500 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14501 cat >>confdefs.h <<_ACEOF
14502 #define HAVE_KERBEROSIV_DES_H 1
14503 _ACEOF
14505 else
14506 for ac_header in kerberos/des.h
14507 do :
14508 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14509 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14510 cat >>confdefs.h <<_ACEOF
14511 #define HAVE_KERBEROS_DES_H 1
14512 _ACEOF
14516 done
14520 done
14524 done
14526 for ac_header in krb.h
14527 do :
14528 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14529 if test "x$ac_cv_header_krb_h" = x""yes; then :
14530 cat >>confdefs.h <<_ACEOF
14531 #define HAVE_KRB_H 1
14532 _ACEOF
14534 else
14535 for ac_header in kerberosIV/krb.h
14536 do :
14537 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14538 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_KERBEROSIV_KRB_H 1
14541 _ACEOF
14543 else
14544 for ac_header in kerberos/krb.h
14545 do :
14546 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14547 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_KERBEROS_KRB_H 1
14550 _ACEOF
14554 done
14558 done
14562 done
14565 for ac_header in com_err.h
14566 do :
14567 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14568 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14569 cat >>confdefs.h <<_ACEOF
14570 #define HAVE_COM_ERR_H 1
14571 _ACEOF
14575 done
14588 for ac_func in $ac_func_list
14589 do :
14590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14591 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14592 eval as_val=\$$as_ac_var
14593 if test "x$as_val" = x""yes; then :
14594 cat >>confdefs.h <<_ACEOF
14595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14596 _ACEOF
14599 done
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14605 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14606 if test "${emacs_cv_localtime_cache+set}" = set; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609 if test x$ac_cv_func_tzset = xyes; then
14610 if test "$cross_compiling" = yes; then :
14611 # If we have tzset, assume the worst when cross-compiling.
14612 emacs_cv_localtime_cache=yes
14613 else
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 #include <time.h>
14617 char TZ_GMT0[] = "TZ=GMT0";
14618 char TZ_PST8[] = "TZ=PST8";
14619 main()
14621 time_t now = time ((time_t *) 0);
14622 int hour_GMT0, hour_unset;
14623 if (putenv (TZ_GMT0) != 0)
14624 exit (1);
14625 hour_GMT0 = localtime (&now)->tm_hour;
14626 unsetenv("TZ");
14627 hour_unset = localtime (&now)->tm_hour;
14628 if (putenv (TZ_PST8) != 0)
14629 exit (1);
14630 if (localtime (&now)->tm_hour == hour_GMT0)
14631 exit (1);
14632 unsetenv("TZ");
14633 if (localtime (&now)->tm_hour != hour_unset)
14634 exit (1);
14635 exit (0);
14637 _ACEOF
14638 if ac_fn_c_try_run "$LINENO"; then :
14639 emacs_cv_localtime_cache=no
14640 else
14641 emacs_cv_localtime_cache=yes
14643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14644 conftest.$ac_objext conftest.beam conftest.$ac_ext
14647 else
14648 # If we lack tzset, report that localtime does not cache TZ,
14649 # since we can't invalidate the cache if we don't have tzset.
14650 emacs_cv_localtime_cache=no
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14654 $as_echo "$emacs_cv_localtime_cache" >&6; }
14655 if test $emacs_cv_localtime_cache = yes; then
14657 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14661 ok_so_far=yes
14662 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14663 if test "x$ac_cv_func_socket" = x""yes; then :
14665 else
14666 ok_so_far=no
14669 if test $ok_so_far = yes; then
14670 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14671 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14673 else
14674 ok_so_far=no
14679 if test $ok_so_far = yes; then
14680 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14681 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14683 else
14684 ok_so_far=no
14689 if test $ok_so_far = yes; then
14691 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14695 if test -f /usr/lpp/X11/bin/smt.exp; then
14697 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14702 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14703 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14705 $as_echo "yes" >&6; }
14707 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14709 else
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14711 $as_echo "no" >&6; }
14714 case $canonical in
14715 *-solaris2.4 | *-solaris2.4.*)
14716 : ${ac_cv_func_vfork_works=no};;
14717 esac
14719 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14720 if test "x$ac_cv_type_pid_t" = x""yes; then :
14722 else
14724 cat >>confdefs.h <<_ACEOF
14725 #define pid_t int
14726 _ACEOF
14730 for ac_header in vfork.h
14731 do :
14732 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14733 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_VFORK_H 1
14736 _ACEOF
14740 done
14742 for ac_func in fork vfork
14743 do :
14744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14745 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14746 eval as_val=\$$as_ac_var
14747 if test "x$as_val" = x""yes; then :
14748 cat >>confdefs.h <<_ACEOF
14749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14750 _ACEOF
14753 done
14755 if test "x$ac_cv_func_fork" = xyes; then
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14757 $as_echo_n "checking for working fork... " >&6; }
14758 if test "${ac_cv_func_fork_works+set}" = set; then :
14759 $as_echo_n "(cached) " >&6
14760 else
14761 if test "$cross_compiling" = yes; then :
14762 ac_cv_func_fork_works=cross
14763 else
14764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765 /* end confdefs.h. */
14766 $ac_includes_default
14768 main ()
14771 /* By Ruediger Kuhlmann. */
14772 return fork () < 0;
14775 return 0;
14777 _ACEOF
14778 if ac_fn_c_try_run "$LINENO"; then :
14779 ac_cv_func_fork_works=yes
14780 else
14781 ac_cv_func_fork_works=no
14783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14784 conftest.$ac_objext conftest.beam conftest.$ac_ext
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14789 $as_echo "$ac_cv_func_fork_works" >&6; }
14791 else
14792 ac_cv_func_fork_works=$ac_cv_func_fork
14794 if test "x$ac_cv_func_fork_works" = xcross; then
14795 case $host in
14796 *-*-amigaos* | *-*-msdosdjgpp*)
14797 # Override, as these systems have only a dummy fork() stub
14798 ac_cv_func_fork_works=no
14801 ac_cv_func_fork_works=yes
14803 esac
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14805 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14807 ac_cv_func_vfork_works=$ac_cv_func_vfork
14808 if test "x$ac_cv_func_vfork" = xyes; then
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14810 $as_echo_n "checking for working vfork... " >&6; }
14811 if test "${ac_cv_func_vfork_works+set}" = set; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 if test "$cross_compiling" = yes; then :
14815 ac_cv_func_vfork_works=cross
14816 else
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14819 /* Thanks to Paul Eggert for this test. */
14820 $ac_includes_default
14821 #include <sys/wait.h>
14822 #ifdef HAVE_VFORK_H
14823 # include <vfork.h>
14824 #endif
14825 /* On some sparc systems, changes by the child to local and incoming
14826 argument registers are propagated back to the parent. The compiler
14827 is told about this with #include <vfork.h>, but some compilers
14828 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14829 static variable whose address is put into a register that is
14830 clobbered by the vfork. */
14831 static void
14832 #ifdef __cplusplus
14833 sparc_address_test (int arg)
14834 # else
14835 sparc_address_test (arg) int arg;
14836 #endif
14838 static pid_t child;
14839 if (!child) {
14840 child = vfork ();
14841 if (child < 0) {
14842 perror ("vfork");
14843 _exit(2);
14845 if (!child) {
14846 arg = getpid();
14847 write(-1, "", 0);
14848 _exit (arg);
14854 main ()
14856 pid_t parent = getpid ();
14857 pid_t child;
14859 sparc_address_test (0);
14861 child = vfork ();
14863 if (child == 0) {
14864 /* Here is another test for sparc vfork register problems. This
14865 test uses lots of local variables, at least as many local
14866 variables as main has allocated so far including compiler
14867 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14868 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14869 reuse the register of parent for one of the local variables,
14870 since it will think that parent can't possibly be used any more
14871 in this routine. Assigning to the local variable will thus
14872 munge parent in the parent process. */
14873 pid_t
14874 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14875 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14876 /* Convince the compiler that p..p7 are live; otherwise, it might
14877 use the same hardware register for all 8 local variables. */
14878 if (p != p1 || p != p2 || p != p3 || p != p4
14879 || p != p5 || p != p6 || p != p7)
14880 _exit(1);
14882 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14883 from child file descriptors. If the child closes a descriptor
14884 before it execs or exits, this munges the parent's descriptor
14885 as well. Test for this by closing stdout in the child. */
14886 _exit(close(fileno(stdout)) != 0);
14887 } else {
14888 int status;
14889 struct stat st;
14891 while (wait(&status) != child)
14893 return (
14894 /* Was there some problem with vforking? */
14895 child < 0
14897 /* Did the child fail? (This shouldn't happen.) */
14898 || status
14900 /* Did the vfork/compiler bug occur? */
14901 || parent != getpid()
14903 /* Did the file descriptor bug occur? */
14904 || fstat(fileno(stdout), &st) != 0
14908 _ACEOF
14909 if ac_fn_c_try_run "$LINENO"; then :
14910 ac_cv_func_vfork_works=yes
14911 else
14912 ac_cv_func_vfork_works=no
14914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14915 conftest.$ac_objext conftest.beam conftest.$ac_ext
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14920 $as_echo "$ac_cv_func_vfork_works" >&6; }
14923 if test "x$ac_cv_func_fork_works" = xcross; then
14924 ac_cv_func_vfork_works=$ac_cv_func_vfork
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14926 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14929 if test "x$ac_cv_func_vfork_works" = xyes; then
14931 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14933 else
14935 $as_echo "#define vfork fork" >>confdefs.h
14938 if test "x$ac_cv_func_fork_works" = xyes; then
14940 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14945 for ac_func in snprintf
14946 do :
14947 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14948 if test "x$ac_cv_func_snprintf" = x""yes; then :
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_SNPRINTF 1
14951 _ACEOF
14954 done
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14958 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14959 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964 #include <langinfo.h>
14966 main ()
14968 char* cs = nl_langinfo(CODESET);
14970 return 0;
14972 _ACEOF
14973 if ac_fn_c_try_link "$LINENO"; then :
14974 emacs_cv_langinfo_codeset=yes
14975 else
14976 emacs_cv_langinfo_codeset=no
14978 rm -f core conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14983 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14984 if test $emacs_cv_langinfo_codeset = yes; then
14986 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14991 $as_echo_n "checking for mbstate_t... " >&6; }
14992 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14997 $ac_includes_default
14998 # include <wchar.h>
15000 main ()
15002 mbstate_t x; return sizeof x;
15004 return 0;
15006 _ACEOF
15007 if ac_fn_c_try_compile "$LINENO"; then :
15008 ac_cv_type_mbstate_t=yes
15009 else
15010 ac_cv_type_mbstate_t=no
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
15015 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15016 if test $ac_cv_type_mbstate_t = yes; then
15018 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
15020 else
15022 $as_echo "#define mbstate_t int" >>confdefs.h
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
15027 $as_echo_n "checking for C restricted array declarations... " >&6; }
15028 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
15029 $as_echo_n "(cached) " >&6
15030 else
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15033 void fred (int x[__restrict]);
15035 main ()
15039 return 0;
15041 _ACEOF
15042 if ac_fn_c_try_compile "$LINENO"; then :
15043 emacs_cv_c_restrict_arr=yes
15044 else
15045 emacs_cv_c_restrict_arr=no
15047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
15050 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
15051 if test "$emacs_cv_c_restrict_arr" = yes; then
15053 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
15059 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
15063 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
15066 ## Note: PTYs are broken on darwin <6. Use at your own risk.
15068 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
15072 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
15078 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
15082 $as_echo "#define SEPCHAR ':'" >>confdefs.h
15086 $as_echo "#define subprocesses 1" >>confdefs.h
15090 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
15095 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
15101 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
15105 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
15109 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
15115 case $opsys in
15116 aix4-2)
15117 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
15118 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15123 hpux*)
15124 $as_echo "#define NO_EDITRES 1" >>confdefs.h
15127 esac
15130 case $opsys in
15131 irix6-5 | sol2* | unixware )
15133 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
15136 esac
15138 emacs_broken_SIGIO=no
15140 case $opsys in
15141 hpux* | irix6-5 | openbsd | sol2* | unixware )
15142 emacs_broken_SIGIO=yes
15145 aix4-2)
15147 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
15151 freebsd)
15153 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
15156 esac
15158 case $opsys in
15159 gnu-* | sol2-10 )
15161 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
15164 esac
15166 case $opsys in
15167 darwin | freebsd | netbsd | openbsd )
15169 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
15172 esac
15174 case $opsys in
15175 netbsd | openbsd) sound_device="/dev/audio" ;;
15176 *) sound_device="/dev/dsp" ;;
15177 esac
15180 cat >>confdefs.h <<_ACEOF
15181 #define DEFAULT_SOUND_DEVICE "$sound_device"
15182 _ACEOF
15186 case $opsys in
15187 darwin | gnu-linux | gnu-kfreebsd )
15189 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
15192 esac
15195 case $opsys in
15196 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
15198 $as_echo "#define NARROWPROTO 1" >>confdefs.h
15201 esac
15210 case $opsys in
15211 aix4-2 )
15212 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
15214 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15216 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15220 cygwin )
15221 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15223 $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
15225 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15227 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15231 darwin )
15232 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15234 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15236 $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
15238 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15240 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15244 gnu | openbsd )
15245 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15249 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15250 if test "x$ac_cv_func_grantpt" = xyes; then
15252 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15254 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15256 $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
15258 if test "x$ac_cv_func_posix_openpt" = xyes; then
15259 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15261 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15263 elif test "x$ac_cv_func_getpt" = xyes; then
15264 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15266 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15268 else
15269 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15272 else
15273 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15278 hpux*)
15279 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15281 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15283 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15287 irix6-5 )
15288 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15290 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15292 $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(SIGCLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCLD, &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
15294 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15296 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15300 sol2* )
15301 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); 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
15305 unixware )
15306 $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCLD); 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
15309 esac
15312 case $opsys in
15313 sol2* | unixware )
15314 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15316 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15319 $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
15322 esac
15327 case $opsys in
15328 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd | darwin )
15329 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15333 gnu-linux | gnu-kfreebsd )
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15336 $as_echo_n "checking for signals via characters... " >&6; }
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15340 #include <linux/version.h>
15341 #if LINUX_VERSION_CODE < 0x20400
15342 # error "Linux version too old"
15343 #endif
15346 main ()
15350 return 0;
15352 _ACEOF
15353 if ac_fn_c_try_cpp "$LINENO"; then :
15354 emacs_signals_via_chars=yes
15355 else
15356 emacs_signals_via_chars=no
15358 rm -f conftest.err conftest.$ac_ext
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15361 $as_echo "$emacs_signals_via_chars" >&6; }
15362 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15365 esac
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15371 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15375 #include <features.h>
15376 #ifndef __GNU_LIBRARY__
15377 # error "this is not the GNU C library"
15378 #endif
15381 main ()
15385 return 0;
15387 _ACEOF
15388 if ac_fn_c_try_cpp "$LINENO"; then :
15389 emacs_glibc=yes
15390 else
15391 emacs_glibc=no
15393 rm -f conftest.err conftest.$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15395 $as_echo "$emacs_glibc" >&6; }
15397 if test $emacs_glibc = yes; then
15399 emacs_pending_output=unknown
15401 case $opsys in
15402 gnu | gnu-linux | gnu-kfreebsd )
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15404 $as_echo_n "checking for style of pending output formalism... " >&6; }
15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15408 #include <stdio.h>
15409 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15410 # error "stdio definitions not found"
15411 #endif
15414 main ()
15418 return 0;
15420 _ACEOF
15421 if ac_fn_c_try_cpp "$LINENO"; then :
15422 emacs_pending_output=new
15424 rm -f conftest.err conftest.$ac_ext
15426 if test $emacs_pending_output = unknown; then
15427 case $opsys in
15428 gnu-linux | gnu-kfreebsd)
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15432 #include <stdio.h>
15433 #ifndef __UCLIBC__
15434 # error "not using uclibc"
15435 #endif
15438 main ()
15442 return 0;
15444 _ACEOF
15445 if ac_fn_c_try_cpp "$LINENO"; then :
15446 emacs_pending_output=uclibc
15447 else
15448 emacs_pending_output=old
15450 rm -f conftest.err conftest.$ac_ext
15452 esac
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15456 $as_echo "$emacs_pending_output" >&6; }
15458 case $emacs_pending_output in
15459 new)
15460 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15463 uclibc)
15464 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15467 old)
15468 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15471 esac
15473 esac
15474 if test $emacs_pending_output = unknown; then
15475 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15479 else
15480 case $opsys in
15481 cygwin | darwin | freebsd | netbsd | openbsd )
15482 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15486 unixware)
15487 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15492 if test x$ac_cv_header_stdio_ext_h = xyes && \
15493 test x$ac_cv_func___fpending = xyes; then
15494 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15497 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15499 else
15500 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15504 esac
15510 case $opsys in
15511 gnu)
15512 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15516 aix*)
15517 $as_echo "#define DATA_START 0x20000000" >>confdefs.h
15519 $as_echo "#define DATA_SEG_BITS 0x20000000" >>confdefs.h
15522 hpux*)
15523 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15525 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15528 irix6-5)
15529 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15531 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15534 esac
15540 case $opsys in
15541 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15544 gnu | freebsd | netbsd | openbsd )
15546 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15548 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15552 gnu-linux | gnu-kfreebsd )
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15556 #ifndef __i386__
15557 # error "not i386"
15558 #endif
15561 main ()
15565 return 0;
15567 _ACEOF
15568 if ac_fn_c_try_cpp "$LINENO"; then :
15569 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15572 rm -f conftest.err conftest.$ac_ext
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15577 #ifndef __ia64__
15578 # error "not ia64"
15579 #endif
15582 main ()
15586 return 0;
15588 _ACEOF
15589 if ac_fn_c_try_cpp "$LINENO"; then :
15591 $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
15594 rm -f conftest.err conftest.$ac_ext
15597 hpux*)
15599 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15603 irix6-5)
15604 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15607 esac
15615 case $opsys in
15616 hpux* | unixware)
15617 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15621 gnu-linux | gnu-kfreebsd )
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15625 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15626 || defined __alpha__ || defined __mips__ || defined __s390__ \
15627 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15628 || defined __ia64__ || defined __sh__
15629 /* ok */
15630 #else
15631 # error "setjmp not known to work on this arch"
15632 #endif
15635 main ()
15639 return 0;
15641 _ACEOF
15642 if ac_fn_c_try_cpp "$LINENO"; then :
15643 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15645 else
15646 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15649 rm -f conftest.err conftest.$ac_ext
15651 esac
15654 if test x$GCC = xyes; then
15655 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15657 else
15658 case $opsys in
15659 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15660 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15663 esac
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15666 $as_echo_n "checking for _setjmp... " >&6; }
15667 if test "${emacs_cv_func__setjmp+set}" = set; then :
15668 $as_echo_n "(cached) " >&6
15669 else
15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15672 #include <setjmp.h>
15675 main ()
15677 jmp_buf j;
15678 if (! _setjmp (j))
15679 _longjmp (j, 1);
15681 return 0;
15683 _ACEOF
15684 if ac_fn_c_try_link "$LINENO"; then :
15685 emacs_cv_func__setjmp=yes
15686 else
15687 emacs_cv_func__setjmp=no
15689 rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15693 $as_echo "$emacs_cv_func__setjmp" >&6; }
15694 if test $emacs_cv_func__setjmp = yes; then
15696 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15698 else
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15700 $as_echo_n "checking for sigsetjmp... " >&6; }
15701 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15702 $as_echo_n "(cached) " >&6
15703 else
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 #include <setjmp.h>
15709 main ()
15711 sigjmp_buf j;
15712 if (! sigsetjmp (j, 1))
15713 siglongjmp (j, 1);
15715 return 0;
15717 _ACEOF
15718 if ac_fn_c_try_link "$LINENO"; then :
15719 emacs_cv_func_sigsetjmp=yes
15720 else
15721 emacs_cv_func_sigsetjmp=no
15723 rm -f core conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15727 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15728 if test $emacs_cv_func_sigsetjmp = yes; then
15730 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15735 case $opsys in
15736 sol2* | unixware )
15738 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15741 esac
15744 case $opsys in
15745 hpux* | sol2* )
15747 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15750 esac
15761 case $opsys in
15762 aix4-2)
15763 $as_echo "#define USG /**/" >>confdefs.h
15765 $as_echo "#define USG5 /**/" >>confdefs.h
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15770 #ifndef _AIX
15771 # error "_AIX not defined"
15772 #endif
15775 main ()
15779 return 0;
15781 _ACEOF
15782 if ac_fn_c_try_cpp "$LINENO"; then :
15784 else
15786 $as_echo "#define _AIX /**/" >>confdefs.h
15789 rm -f conftest.err conftest.$ac_ext
15792 cygwin)
15794 $as_echo "#define CYGWIN 1" >>confdefs.h
15798 darwin)
15799 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15801 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15804 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15808 freebsd)
15809 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15812 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15816 gnu | netbsd | openbsd )
15817 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15822 #ifndef BSD_SYSTEM
15823 # error "BSD_SYSTEM not defined"
15824 #endif
15827 main ()
15831 return 0;
15833 _ACEOF
15834 if ac_fn_c_try_cpp "$LINENO"; then :
15836 else
15837 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15840 rm -f conftest.err conftest.$ac_ext
15843 gnu-linux | gnu-kfreebsd )
15844 $as_echo "#define USG /**/" >>confdefs.h
15847 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15851 hpux*)
15852 $as_echo "#define USG /**/" >>confdefs.h
15854 $as_echo "#define USG5 /**/" >>confdefs.h
15857 $as_echo "#define HPUX /**/" >>confdefs.h
15861 irix6-5)
15862 $as_echo "#define USG /**/" >>confdefs.h
15864 $as_echo "#define USG5 /**/" >>confdefs.h
15866 $as_echo "#define USG5_4 /**/" >>confdefs.h
15869 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15873 sol2*)
15874 $as_echo "#define USG /**/" >>confdefs.h
15876 $as_echo "#define USG5 /**/" >>confdefs.h
15878 $as_echo "#define USG5_4 /**/" >>confdefs.h
15881 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15885 unixware)
15886 $as_echo "#define USG /**/" >>confdefs.h
15888 $as_echo "#define USG5 /**/" >>confdefs.h
15890 $as_echo "#define USG5_4 /**/" >>confdefs.h
15893 esac
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15896 $as_echo_n "checking for usable FIONREAD... " >&6; }
15897 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15898 $as_echo_n "(cached) " >&6
15899 else
15900 case $opsys in
15901 aix4-2)
15902 emacs_cv_usable_FIONREAD=no
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15908 #include <sys/types.h>
15909 #include <sys/ioctl.h>
15910 #ifdef USG5_4
15911 # include <sys/filio.h>
15912 #endif
15915 main ()
15917 int foo = ioctl (0, FIONREAD, &foo);
15919 return 0;
15921 _ACEOF
15922 if ac_fn_c_try_compile "$LINENO"; then :
15923 emacs_cv_usable_FIONREAD=yes
15924 else
15925 emacs_cv_usable_FIONREAD=no
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15929 esac
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15932 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15933 if test $emacs_cv_usable_FIONREAD = yes; then
15935 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15938 if test $emacs_broken_SIGIO = no; then
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15940 $as_echo_n "checking for usable SIGIO... " >&6; }
15941 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15942 $as_echo_n "(cached) " >&6
15943 else
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15946 #include <fcntl.h>
15947 #include <signal.h>
15950 main ()
15952 int foo = SIGIO | F_SETFL | FASYNC;
15954 return 0;
15956 _ACEOF
15957 if ac_fn_c_try_compile "$LINENO"; then :
15958 emacs_cv_usable_SIGIO=yes
15959 else
15960 emacs_cv_usable_SIGIO=no
15962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15965 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15966 if test $emacs_cv_usable_SIGIO = yes; then
15968 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15975 case $opsys in
15976 cygwin)
15978 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15982 hpux11)
15984 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15988 irix6-5)
15990 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15993 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15997 sol2-10)
15999 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16002 esac
16004 # Set up the CFLAGS for real compilation, so we can substitute it.
16005 CFLAGS="$REAL_CFLAGS"
16006 CPPFLAGS="$REAL_CPPFLAGS"
16008 ## Hack to detect a buggy GCC version.
16009 if test "x$GCC" = xyes \
16010 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
16011 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
16012 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
16013 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
16016 version=$PACKAGE_VERSION
16018 copyright="Copyright (C) 2013 Free Software Foundation, Inc."
16020 cat >>confdefs.h <<_ACEOF
16021 #define COPYRIGHT "$copyright"
16022 _ACEOF
16026 ### Specify what sort of things we'll be editing into Makefile and config.h.
16027 ### Use configuration here uncanonicalized to avoid exceeding size limits.
16030 ## Unused?
16053 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
16054 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
16055 ## end of LIBX_BASE, but nothing ever set it.
16060 ## Used in lwlib/Makefile.in.
16069 if test -n "${term_header}"; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define TERM_HEADER "${term_header}"
16073 _ACEOF
16078 cat >>confdefs.h <<_ACEOF
16079 #define EMACS_CONFIGURATION "${canonical}"
16080 _ACEOF
16083 cat >>confdefs.h <<_ACEOF
16084 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
16085 _ACEOF
16089 XMENU_OBJ=
16090 XOBJ=
16091 FONT_OBJ=
16092 if test "${HAVE_X_WINDOWS}" = "yes" ; then
16094 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
16096 XMENU_OBJ=xmenu.o
16097 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
16098 FONT_OBJ=xfont.o
16099 if test "$HAVE_XFT" = "yes"; then
16100 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
16101 elif test "$HAVE_FREETYPE" = "yes"; then
16102 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
16110 WIDGET_OBJ=
16111 MOTIF_LIBW=
16112 if test "${USE_X_TOOLKIT}" != "none" ; then
16113 WIDGET_OBJ=widget.o
16115 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
16117 if test "${USE_X_TOOLKIT}" = "LUCID"; then
16119 $as_echo "#define USE_LUCID 1" >>confdefs.h
16121 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
16123 $as_echo "#define USE_MOTIF 1" >>confdefs.h
16125 MOTIF_LIBW=-lXm
16126 case "$opsys" in
16127 gnu-linux)
16128 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
16129 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
16132 unixware)
16133 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
16134 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
16135 MOTIF_LIBW="MOTIF_LIBW -lXimp"
16138 aix4-2)
16139 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
16140 MOTIF_LIBW="$MOTIF_LIBW -li18n"
16142 esac
16143 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
16148 TOOLKIT_LIBW=
16149 case "$USE_X_TOOLKIT" in
16150 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
16151 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
16152 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
16153 esac
16156 if test "$USE_X_TOOLKIT" = "none"; then
16157 LIBXT_OTHER="\$(LIBXSM)"
16158 OLDXMENU_TARGET="really-oldXMenu"
16159 else
16160 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
16161 OLDXMENU_TARGET="really-lwlib"
16165 ## The X Menu stuff is present in the X10 distribution, but missing
16166 ## from X11. If we have X10, just use the installed library;
16167 ## otherwise, use our own copy.
16168 if test "${HAVE_X11}" = "yes" ; then
16170 $as_echo "#define HAVE_X11 1" >>confdefs.h
16173 if test "$USE_X_TOOLKIT" = "none"; then
16174 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
16175 else
16176 OLDXMENU="\${lwlibdir}/liblw.a"
16178 LIBXMENU="\$(OLDXMENU)"
16179 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
16180 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
16181 else
16182 ## For a syntactically valid Makefile; not actually used for anything.
16183 ## See comments in src/Makefile.in.
16184 OLDXMENU=nothing
16185 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
16186 if test "${HAVE_X_WINDOWS}" = "yes"; then
16187 LIBXMENU="-lXMenu"
16188 else
16189 LIBXMENU=
16191 LIBX_OTHER=
16192 OLDXMENU_DEPS=
16195 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
16196 OLDXMENU_TARGET=
16197 OLDXMENU=nothing
16198 LIBXMENU=
16199 OLDXMENU_DEPS=
16208 if test "${HAVE_MENUS}" = "yes" ; then
16210 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
16214 if test "${GNU_MALLOC}" = "yes" ; then
16216 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
16220 RALLOC_OBJ=
16221 if test "${REL_ALLOC}" = "yes" ; then
16223 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16226 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16230 if test "$opsys" = "cygwin"; then
16231 CYGWIN_OBJ="sheap.o cygw32.o"
16232 ## Cygwin differs because of its unexec().
16233 PRE_ALLOC_OBJ=
16234 POST_ALLOC_OBJ=lastfile.o
16235 else
16236 CYGWIN_OBJ=
16237 PRE_ALLOC_OBJ=lastfile.o
16238 POST_ALLOC_OBJ=
16244 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16245 # it temporarily reverts them to their pre-pkg-config values,
16246 # because gnulib needs to work with both src (which uses the
16247 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16248 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16249 # and it therefore needs to run in an environment where LIBS does not
16250 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16251 # for some package unrelated to lib-src.
16252 SAVE_CFLAGS=$CFLAGS
16253 SAVE_LIBS=$LIBS
16254 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16255 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16267 LIBC_FATAL_STDERR_=1
16268 export LIBC_FATAL_STDERR_
16270 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16271 # for constant arguments. Useless!
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16273 $as_echo_n "checking for working alloca.h... " >&6; }
16274 if test "${ac_cv_working_alloca_h+set}" = set; then :
16275 $as_echo_n "(cached) " >&6
16276 else
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 #include <alloca.h>
16281 main ()
16283 char *p = (char *) alloca (2 * sizeof (int));
16284 if (p) return 0;
16286 return 0;
16288 _ACEOF
16289 if ac_fn_c_try_link "$LINENO"; then :
16290 ac_cv_working_alloca_h=yes
16291 else
16292 ac_cv_working_alloca_h=no
16294 rm -f core conftest.err conftest.$ac_objext \
16295 conftest$ac_exeext conftest.$ac_ext
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16298 $as_echo "$ac_cv_working_alloca_h" >&6; }
16299 if test $ac_cv_working_alloca_h = yes; then
16301 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16306 $as_echo_n "checking for alloca... " >&6; }
16307 if test "${ac_cv_func_alloca_works+set}" = set; then :
16308 $as_echo_n "(cached) " >&6
16309 else
16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311 /* end confdefs.h. */
16312 #ifdef __GNUC__
16313 # define alloca __builtin_alloca
16314 #else
16315 # ifdef _MSC_VER
16316 # include <malloc.h>
16317 # define alloca _alloca
16318 # else
16319 # ifdef HAVE_ALLOCA_H
16320 # include <alloca.h>
16321 # else
16322 # ifdef _AIX
16323 #pragma alloca
16324 # else
16325 # ifndef alloca /* predefined by HP cc +Olibcalls */
16326 char *alloca ();
16327 # endif
16328 # endif
16329 # endif
16330 # endif
16331 #endif
16334 main ()
16336 char *p = (char *) alloca (1);
16337 if (p) return 0;
16339 return 0;
16341 _ACEOF
16342 if ac_fn_c_try_link "$LINENO"; then :
16343 ac_cv_func_alloca_works=yes
16344 else
16345 ac_cv_func_alloca_works=no
16347 rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16351 $as_echo "$ac_cv_func_alloca_works" >&6; }
16353 if test $ac_cv_func_alloca_works = yes; then
16355 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16357 else
16358 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16359 # that cause trouble. Some versions do not even contain alloca or
16360 # contain a buggy version. If you still want to use their alloca,
16361 # use ar to extract alloca.o from them instead of compiling alloca.c.
16367 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16369 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16373 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16374 if test "${ac_cv_os_cray+set}" = set; then :
16375 $as_echo_n "(cached) " >&6
16376 else
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 #if defined CRAY && ! defined CRAY2
16380 webecray
16381 #else
16382 wenotbecray
16383 #endif
16385 _ACEOF
16386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16387 $EGREP "webecray" >/dev/null 2>&1; then :
16388 ac_cv_os_cray=yes
16389 else
16390 ac_cv_os_cray=no
16392 rm -f conftest*
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16396 $as_echo "$ac_cv_os_cray" >&6; }
16397 if test $ac_cv_os_cray = yes; then
16398 for ac_func in _getb67 GETB67 getb67; do
16399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16401 eval as_val=\$$as_ac_var
16402 if test "x$as_val" = x""yes; then :
16404 cat >>confdefs.h <<_ACEOF
16405 #define CRAY_STACKSEG_END $ac_func
16406 _ACEOF
16408 break
16411 done
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16415 $as_echo_n "checking stack direction for C alloca... " >&6; }
16416 if test "${ac_cv_c_stack_direction+set}" = set; then :
16417 $as_echo_n "(cached) " >&6
16418 else
16419 if test "$cross_compiling" = yes; then :
16420 ac_cv_c_stack_direction=0
16421 else
16422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16423 /* end confdefs.h. */
16424 $ac_includes_default
16426 find_stack_direction (int *addr, int depth)
16428 int dir, dummy = 0;
16429 if (! addr)
16430 addr = &dummy;
16431 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16432 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16433 return dir + dummy;
16437 main (int argc, char **argv)
16439 return find_stack_direction (0, argc + !argv + 20) < 0;
16441 _ACEOF
16442 if ac_fn_c_try_run "$LINENO"; then :
16443 ac_cv_c_stack_direction=1
16444 else
16445 ac_cv_c_stack_direction=-1
16447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16448 conftest.$ac_objext conftest.beam conftest.$ac_ext
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16453 $as_echo "$ac_cv_c_stack_direction" >&6; }
16454 cat >>confdefs.h <<_ACEOF
16455 #define STACK_DIRECTION $ac_cv_c_stack_direction
16456 _ACEOF
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16465 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16466 if test "${ac_cv_c_bigendian+set}" = set; then :
16467 $as_echo_n "(cached) " >&6
16468 else
16469 ac_cv_c_bigendian=unknown
16470 # See if we're dealing with a universal compiler.
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473 #ifndef __APPLE_CC__
16474 not a universal capable compiler
16475 #endif
16476 typedef int dummy;
16478 _ACEOF
16479 if ac_fn_c_try_compile "$LINENO"; then :
16481 # Check for potential -arch flags. It is not universal unless
16482 # there are at least two -arch flags with different values.
16483 ac_arch=
16484 ac_prev=
16485 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16486 if test -n "$ac_prev"; then
16487 case $ac_word in
16488 i?86 | x86_64 | ppc | ppc64)
16489 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16490 ac_arch=$ac_word
16491 else
16492 ac_cv_c_bigendian=universal
16493 break
16496 esac
16497 ac_prev=
16498 elif test "x$ac_word" = "x-arch"; then
16499 ac_prev=arch
16501 done
16503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16504 if test $ac_cv_c_bigendian = unknown; then
16505 # See if sys/param.h defines the BYTE_ORDER macro.
16506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16508 #include <sys/types.h>
16509 #include <sys/param.h>
16512 main ()
16514 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16515 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16516 && LITTLE_ENDIAN)
16517 bogus endian macros
16518 #endif
16521 return 0;
16523 _ACEOF
16524 if ac_fn_c_try_compile "$LINENO"; then :
16525 # It does; now see whether it defined to BIG_ENDIAN or not.
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16528 #include <sys/types.h>
16529 #include <sys/param.h>
16532 main ()
16534 #if BYTE_ORDER != BIG_ENDIAN
16535 not big endian
16536 #endif
16539 return 0;
16541 _ACEOF
16542 if ac_fn_c_try_compile "$LINENO"; then :
16543 ac_cv_c_bigendian=yes
16544 else
16545 ac_cv_c_bigendian=no
16547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 if test $ac_cv_c_bigendian = unknown; then
16552 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 #include <limits.h>
16558 main ()
16560 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16561 bogus endian macros
16562 #endif
16565 return 0;
16567 _ACEOF
16568 if ac_fn_c_try_compile "$LINENO"; then :
16569 # It does; now see whether it defined to _BIG_ENDIAN or not.
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16572 #include <limits.h>
16575 main ()
16577 #ifndef _BIG_ENDIAN
16578 not big endian
16579 #endif
16582 return 0;
16584 _ACEOF
16585 if ac_fn_c_try_compile "$LINENO"; then :
16586 ac_cv_c_bigendian=yes
16587 else
16588 ac_cv_c_bigendian=no
16590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 if test $ac_cv_c_bigendian = unknown; then
16595 # Compile a test program.
16596 if test "$cross_compiling" = yes; then :
16597 # Try to guess by grepping values from an object file.
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 short int ascii_mm[] =
16601 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16602 short int ascii_ii[] =
16603 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16604 int use_ascii (int i) {
16605 return ascii_mm[i] + ascii_ii[i];
16607 short int ebcdic_ii[] =
16608 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16609 short int ebcdic_mm[] =
16610 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16611 int use_ebcdic (int i) {
16612 return ebcdic_mm[i] + ebcdic_ii[i];
16614 extern int foo;
16617 main ()
16619 return use_ascii (foo) == use_ebcdic (foo);
16621 return 0;
16623 _ACEOF
16624 if ac_fn_c_try_compile "$LINENO"; then :
16625 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16626 ac_cv_c_bigendian=yes
16628 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16629 if test "$ac_cv_c_bigendian" = unknown; then
16630 ac_cv_c_bigendian=no
16631 else
16632 # finding both strings is unlikely to happen, but who knows?
16633 ac_cv_c_bigendian=unknown
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 else
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641 $ac_includes_default
16643 main ()
16646 /* Are we little or big endian? From Harbison&Steele. */
16647 union
16649 long int l;
16650 char c[sizeof (long int)];
16651 } u;
16652 u.l = 1;
16653 return u.c[sizeof (long int) - 1] == 1;
16656 return 0;
16658 _ACEOF
16659 if ac_fn_c_try_run "$LINENO"; then :
16660 ac_cv_c_bigendian=no
16661 else
16662 ac_cv_c_bigendian=yes
16664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16665 conftest.$ac_objext conftest.beam conftest.$ac_ext
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16671 $as_echo "$ac_cv_c_bigendian" >&6; }
16672 case $ac_cv_c_bigendian in #(
16673 yes)
16674 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16675 ;; #(
16677 ;; #(
16678 universal)
16680 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16682 ;; #(
16684 as_fn_error "unknown endianness
16685 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16686 esac
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16690 $as_echo_n "checking for inline... " >&6; }
16691 if test "${ac_cv_c_inline+set}" = set; then :
16692 $as_echo_n "(cached) " >&6
16693 else
16694 ac_cv_c_inline=no
16695 for ac_kw in inline __inline__ __inline; do
16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16698 #ifndef __cplusplus
16699 typedef int foo_t;
16700 static $ac_kw foo_t static_foo () {return 0; }
16701 $ac_kw foo_t foo () {return 0; }
16702 #endif
16704 _ACEOF
16705 if ac_fn_c_try_compile "$LINENO"; then :
16706 ac_cv_c_inline=$ac_kw
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 test "$ac_cv_c_inline" != no && break
16710 done
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16714 $as_echo "$ac_cv_c_inline" >&6; }
16716 case $ac_cv_c_inline in
16717 inline | yes) ;;
16719 case $ac_cv_c_inline in
16720 no) ac_val=;;
16721 *) ac_val=$ac_cv_c_inline;;
16722 esac
16723 cat >>confdefs.h <<_ACEOF
16724 #ifndef __cplusplus
16725 #define inline $ac_val
16726 #endif
16727 _ACEOF
16729 esac
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16733 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16734 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16735 $as_echo_n "(cached) " >&6
16736 else
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16739 /* On HP-UX before 11.23, strtold returns a struct instead of
16740 long double. Reject implementations like that, by requiring
16741 compatibility with the C99 prototype. */
16742 #include <stdlib.h>
16743 static long double (*p) (char const *, char **) = strtold;
16744 static long double
16745 test (char const *nptr, char **endptr)
16747 long double r;
16748 r = strtold (nptr, endptr);
16749 return r;
16752 main ()
16754 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16756 return 0;
16758 _ACEOF
16759 if ac_fn_c_try_link "$LINENO"; then :
16760 gl_cv_func_c99_strtold=yes
16761 else
16762 gl_cv_func_c99_strtold=no
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16768 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16769 if test $gl_cv_func_c99_strtold = yes; then
16771 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16776 GNULIB_CHDIR=0;
16777 GNULIB_CHOWN=0;
16778 GNULIB_CLOSE=0;
16779 GNULIB_DUP=0;
16780 GNULIB_DUP2=0;
16781 GNULIB_DUP3=0;
16782 GNULIB_ENVIRON=0;
16783 GNULIB_EUIDACCESS=0;
16784 GNULIB_FACCESSAT=0;
16785 GNULIB_FCHDIR=0;
16786 GNULIB_FCHOWNAT=0;
16787 GNULIB_FDATASYNC=0;
16788 GNULIB_FSYNC=0;
16789 GNULIB_FTRUNCATE=0;
16790 GNULIB_GETCWD=0;
16791 GNULIB_GETDOMAINNAME=0;
16792 GNULIB_GETDTABLESIZE=0;
16793 GNULIB_GETGROUPS=0;
16794 GNULIB_GETHOSTNAME=0;
16795 GNULIB_GETLOGIN=0;
16796 GNULIB_GETLOGIN_R=0;
16797 GNULIB_GETPAGESIZE=0;
16798 GNULIB_GETUSERSHELL=0;
16799 GNULIB_GROUP_MEMBER=0;
16800 GNULIB_ISATTY=0;
16801 GNULIB_LCHOWN=0;
16802 GNULIB_LINK=0;
16803 GNULIB_LINKAT=0;
16804 GNULIB_LSEEK=0;
16805 GNULIB_PIPE=0;
16806 GNULIB_PIPE2=0;
16807 GNULIB_PREAD=0;
16808 GNULIB_PWRITE=0;
16809 GNULIB_READ=0;
16810 GNULIB_READLINK=0;
16811 GNULIB_READLINKAT=0;
16812 GNULIB_RMDIR=0;
16813 GNULIB_SETHOSTNAME=0;
16814 GNULIB_SLEEP=0;
16815 GNULIB_SYMLINK=0;
16816 GNULIB_SYMLINKAT=0;
16817 GNULIB_TTYNAME_R=0;
16818 GNULIB_UNISTD_H_NONBLOCKING=0;
16819 GNULIB_UNISTD_H_SIGPIPE=0;
16820 GNULIB_UNLINK=0;
16821 GNULIB_UNLINKAT=0;
16822 GNULIB_USLEEP=0;
16823 GNULIB_WRITE=0;
16824 HAVE_CHOWN=1;
16825 HAVE_DUP2=1;
16826 HAVE_DUP3=1;
16827 HAVE_EUIDACCESS=1;
16828 HAVE_FACCESSAT=1;
16829 HAVE_FCHDIR=1;
16830 HAVE_FCHOWNAT=1;
16831 HAVE_FDATASYNC=1;
16832 HAVE_FSYNC=1;
16833 HAVE_FTRUNCATE=1;
16834 HAVE_GETDTABLESIZE=1;
16835 HAVE_GETGROUPS=1;
16836 HAVE_GETHOSTNAME=1;
16837 HAVE_GETLOGIN=1;
16838 HAVE_GETPAGESIZE=1;
16839 HAVE_GROUP_MEMBER=1;
16840 HAVE_LCHOWN=1;
16841 HAVE_LINK=1;
16842 HAVE_LINKAT=1;
16843 HAVE_PIPE=1;
16844 HAVE_PIPE2=1;
16845 HAVE_PREAD=1;
16846 HAVE_PWRITE=1;
16847 HAVE_READLINK=1;
16848 HAVE_READLINKAT=1;
16849 HAVE_SETHOSTNAME=1;
16850 HAVE_SLEEP=1;
16851 HAVE_SYMLINK=1;
16852 HAVE_SYMLINKAT=1;
16853 HAVE_UNLINKAT=1;
16854 HAVE_USLEEP=1;
16855 HAVE_DECL_ENVIRON=1;
16856 HAVE_DECL_FCHDIR=1;
16857 HAVE_DECL_FDATASYNC=1;
16858 HAVE_DECL_GETDOMAINNAME=1;
16859 HAVE_DECL_GETLOGIN_R=1;
16860 HAVE_DECL_GETPAGESIZE=1;
16861 HAVE_DECL_GETUSERSHELL=1;
16862 HAVE_DECL_SETHOSTNAME=1;
16863 HAVE_DECL_TTYNAME_R=1;
16864 HAVE_OS_H=0;
16865 HAVE_SYS_PARAM_H=0;
16866 REPLACE_CHOWN=0;
16867 REPLACE_CLOSE=0;
16868 REPLACE_DUP=0;
16869 REPLACE_DUP2=0;
16870 REPLACE_FCHOWNAT=0;
16871 REPLACE_FTRUNCATE=0;
16872 REPLACE_GETCWD=0;
16873 REPLACE_GETDOMAINNAME=0;
16874 REPLACE_GETLOGIN_R=0;
16875 REPLACE_GETGROUPS=0;
16876 REPLACE_GETPAGESIZE=0;
16877 REPLACE_ISATTY=0;
16878 REPLACE_LCHOWN=0;
16879 REPLACE_LINK=0;
16880 REPLACE_LINKAT=0;
16881 REPLACE_LSEEK=0;
16882 REPLACE_PREAD=0;
16883 REPLACE_PWRITE=0;
16884 REPLACE_READ=0;
16885 REPLACE_READLINK=0;
16886 REPLACE_RMDIR=0;
16887 REPLACE_SLEEP=0;
16888 REPLACE_SYMLINK=0;
16889 REPLACE_TTYNAME_R=0;
16890 REPLACE_UNLINK=0;
16891 REPLACE_UNLINKAT=0;
16892 REPLACE_USLEEP=0;
16893 REPLACE_WRITE=0;
16894 UNISTD_H_HAVE_WINSOCK2_H=0;
16895 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16906 $as_echo_n "checking if environ is properly declared... " >&6; }
16907 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16908 $as_echo_n "(cached) " >&6
16909 else
16911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16912 /* end confdefs.h. */
16913 #if HAVE_UNISTD_H
16914 #include <unistd.h>
16915 #endif
16916 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16917 #include <stdlib.h>
16919 extern struct { int foo; } environ;
16921 main ()
16923 environ.foo = 1;
16925 return 0;
16927 _ACEOF
16928 if ac_fn_c_try_compile "$LINENO"; then :
16929 gt_cv_var_environ_declaration=no
16930 else
16931 gt_cv_var_environ_declaration=yes
16933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16937 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16938 if test $gt_cv_var_environ_declaration = yes; then
16940 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16945 if test $gt_cv_var_environ_declaration != yes; then
16946 HAVE_DECL_ENVIRON=0
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16956 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16957 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16958 $as_echo_n "(cached) " >&6
16959 else
16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16961 /* end confdefs.h. */
16963 #include <sys/types.h>
16964 #include <sys/stat.h>
16966 main ()
16968 struct stat s; s.st_dm_mode;
16970 return 0;
16972 _ACEOF
16973 if ac_fn_c_try_compile "$LINENO"; then :
16974 ac_cv_struct_st_dm_mode=yes
16975 else
16976 ac_cv_struct_st_dm_mode=no
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16981 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16983 if test $ac_cv_struct_st_dm_mode = yes; then
16985 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16990 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16991 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16992 ac_have_decl=1
16993 else
16994 ac_have_decl=0
16997 cat >>confdefs.h <<_ACEOF
16998 #define HAVE_DECL_STRMODE $ac_have_decl
16999 _ACEOF
17002 GNULIB__EXIT=0;
17003 GNULIB_ATOLL=0;
17004 GNULIB_CALLOC_POSIX=0;
17005 GNULIB_CANONICALIZE_FILE_NAME=0;
17006 GNULIB_GETLOADAVG=0;
17007 GNULIB_GETSUBOPT=0;
17008 GNULIB_GRANTPT=0;
17009 GNULIB_MALLOC_POSIX=0;
17010 GNULIB_MBTOWC=0;
17011 GNULIB_MKDTEMP=0;
17012 GNULIB_MKOSTEMP=0;
17013 GNULIB_MKOSTEMPS=0;
17014 GNULIB_MKSTEMP=0;
17015 GNULIB_MKSTEMPS=0;
17016 GNULIB_POSIX_OPENPT=0;
17017 GNULIB_PTSNAME=0;
17018 GNULIB_PTSNAME_R=0;
17019 GNULIB_PUTENV=0;
17020 GNULIB_RANDOM=0;
17021 GNULIB_RANDOM_R=0;
17022 GNULIB_REALLOC_POSIX=0;
17023 GNULIB_REALPATH=0;
17024 GNULIB_RPMATCH=0;
17025 GNULIB_SETENV=0;
17026 GNULIB_STRTOD=0;
17027 GNULIB_STRTOLL=0;
17028 GNULIB_STRTOULL=0;
17029 GNULIB_SYSTEM_POSIX=0;
17030 GNULIB_UNLOCKPT=0;
17031 GNULIB_UNSETENV=0;
17032 GNULIB_WCTOMB=0;
17033 HAVE__EXIT=1;
17034 HAVE_ATOLL=1;
17035 HAVE_CANONICALIZE_FILE_NAME=1;
17036 HAVE_DECL_GETLOADAVG=1;
17037 HAVE_GETSUBOPT=1;
17038 HAVE_GRANTPT=1;
17039 HAVE_MKDTEMP=1;
17040 HAVE_MKOSTEMP=1;
17041 HAVE_MKOSTEMPS=1;
17042 HAVE_MKSTEMP=1;
17043 HAVE_MKSTEMPS=1;
17044 HAVE_POSIX_OPENPT=1;
17045 HAVE_PTSNAME=1;
17046 HAVE_PTSNAME_R=1;
17047 HAVE_RANDOM=1;
17048 HAVE_RANDOM_H=1;
17049 HAVE_RANDOM_R=1;
17050 HAVE_REALPATH=1;
17051 HAVE_RPMATCH=1;
17052 HAVE_SETENV=1;
17053 HAVE_DECL_SETENV=1;
17054 HAVE_STRTOD=1;
17055 HAVE_STRTOLL=1;
17056 HAVE_STRTOULL=1;
17057 HAVE_STRUCT_RANDOM_DATA=1;
17058 HAVE_SYS_LOADAVG_H=0;
17059 HAVE_UNLOCKPT=1;
17060 HAVE_DECL_UNSETENV=1;
17061 REPLACE_CALLOC=0;
17062 REPLACE_CANONICALIZE_FILE_NAME=0;
17063 REPLACE_MALLOC=0;
17064 REPLACE_MBTOWC=0;
17065 REPLACE_MKSTEMP=0;
17066 REPLACE_PTSNAME=0;
17067 REPLACE_PTSNAME_R=0;
17068 REPLACE_PUTENV=0;
17069 REPLACE_RANDOM_R=0;
17070 REPLACE_REALLOC=0;
17071 REPLACE_REALPATH=0;
17072 REPLACE_SETENV=0;
17073 REPLACE_STRTOD=0;
17074 REPLACE_UNSETENV=0;
17075 REPLACE_WCTOMB=0;
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
17080 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
17081 if test "${gl_cv_have_include_next+set}" = set; then :
17082 $as_echo_n "(cached) " >&6
17083 else
17084 rm -rf conftestd1a conftestd1b conftestd2
17085 mkdir conftestd1a conftestd1b conftestd2
17086 cat <<EOF > conftestd1a/conftest.h
17087 #define DEFINED_IN_CONFTESTD1
17088 #include_next <conftest.h>
17089 #ifdef DEFINED_IN_CONFTESTD2
17090 int foo;
17091 #else
17092 #error "include_next doesn't work"
17093 #endif
17095 cat <<EOF > conftestd1b/conftest.h
17096 #define DEFINED_IN_CONFTESTD1
17097 #include <stdio.h>
17098 #include_next <conftest.h>
17099 #ifdef DEFINED_IN_CONFTESTD2
17100 int foo;
17101 #else
17102 #error "include_next doesn't work"
17103 #endif
17105 cat <<EOF > conftestd2/conftest.h
17106 #ifndef DEFINED_IN_CONFTESTD1
17107 #error "include_next test doesn't work"
17108 #endif
17109 #define DEFINED_IN_CONFTESTD2
17111 gl_save_CPPFLAGS="$CPPFLAGS"
17112 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17114 /* end confdefs.h. */
17115 #include <conftest.h>
17116 _ACEOF
17117 if ac_fn_c_try_compile "$LINENO"; then :
17118 gl_cv_have_include_next=yes
17119 else
17120 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h. */
17123 #include <conftest.h>
17124 _ACEOF
17125 if ac_fn_c_try_compile "$LINENO"; then :
17126 gl_cv_have_include_next=buggy
17127 else
17128 gl_cv_have_include_next=no
17130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 CPPFLAGS="$gl_save_CPPFLAGS"
17135 rm -rf conftestd1a conftestd1b conftestd2
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
17139 $as_echo "$gl_cv_have_include_next" >&6; }
17140 PRAGMA_SYSTEM_HEADER=
17141 if test $gl_cv_have_include_next = yes; then
17142 INCLUDE_NEXT=include_next
17143 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17144 if test -n "$GCC"; then
17145 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
17147 else
17148 if test $gl_cv_have_include_next = buggy; then
17149 INCLUDE_NEXT=include
17150 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
17151 else
17152 INCLUDE_NEXT=include
17153 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
17160 $as_echo_n "checking whether system header files limit the line length... " >&6; }
17161 if test "${gl_cv_pragma_columns+set}" = set; then :
17162 $as_echo_n "(cached) " >&6
17163 else
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17167 #ifdef __TANDEM
17168 choke me
17169 #endif
17171 _ACEOF
17172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17173 $EGREP "choke me" >/dev/null 2>&1; then :
17174 gl_cv_pragma_columns=yes
17175 else
17176 gl_cv_pragma_columns=no
17178 rm -f conftest*
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
17183 $as_echo "$gl_cv_pragma_columns" >&6; }
17184 if test $gl_cv_pragma_columns = yes; then
17185 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
17186 else
17187 PRAGMA_COLUMNS=
17206 if test $gl_cv_have_include_next = yes; then
17207 gl_cv_next_getopt_h='<'getopt.h'>'
17208 else
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
17210 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
17211 if test "${gl_cv_next_getopt_h+set}" = set; then :
17212 $as_echo_n "(cached) " >&6
17213 else
17215 if test $ac_cv_header_getopt_h = yes; then
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 #include <getopt.h>
17222 _ACEOF
17223 case "$host_os" in
17224 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17225 *) gl_absname_cpp="$ac_cpp" ;;
17226 esac
17228 case "$host_os" in
17229 mingw*)
17230 gl_dirsep_regex='[/\\]'
17233 gl_dirsep_regex='\/'
17235 esac
17236 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17238 gl_header_literal_regex=`echo 'getopt.h' \
17239 | sed -e "$gl_make_literal_regex_sed"`
17240 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17242 s|^/[^/]|//&|
17246 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17247 sed -n "$gl_absolute_header_sed"`'"'
17248 else
17249 gl_cv_next_getopt_h='<'getopt.h'>'
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17255 $as_echo "$gl_cv_next_getopt_h" >&6; }
17257 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17259 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17260 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17261 gl_next_as_first_directive='<'getopt.h'>'
17262 else
17263 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17264 gl_next_as_first_directive=$gl_cv_next_getopt_h
17266 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17271 if test $ac_cv_header_getopt_h = yes; then
17272 HAVE_GETOPT_H=1
17273 else
17274 HAVE_GETOPT_H=0
17278 gl_replace_getopt=
17280 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17281 for ac_header in getopt.h
17282 do :
17283 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17284 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17285 cat >>confdefs.h <<_ACEOF
17286 #define HAVE_GETOPT_H 1
17287 _ACEOF
17289 else
17290 gl_replace_getopt=yes
17293 done
17297 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17298 for ac_func in getopt_long_only
17299 do :
17300 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17301 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17302 cat >>confdefs.h <<_ACEOF
17303 #define HAVE_GETOPT_LONG_ONLY 1
17304 _ACEOF
17306 else
17307 gl_replace_getopt=yes
17309 done
17313 if test -z "$gl_replace_getopt"; then
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17315 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17316 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17317 $as_echo_n "(cached) " >&6
17318 else
17320 if test $cross_compiling = no; then
17321 if test "$cross_compiling" = yes; then :
17322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17324 as_fn_error "cannot run test program while cross compiling
17325 See \`config.log' for more details." "$LINENO" 5; }
17326 else
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17330 #include <unistd.h>
17331 #include <stdlib.h>
17332 #include <string.h>
17335 main ()
17337 static char program[] = "program";
17338 static char a[] = "-a";
17339 static char foo[] = "foo";
17340 static char bar[] = "bar";
17341 char *argv[] = { program, a, foo, bar, NULL };
17342 int c;
17344 c = getopt (4, argv, "ab");
17345 if (!(c == 'a'))
17346 return 1;
17347 c = getopt (4, argv, "ab");
17348 if (!(c == -1))
17349 return 2;
17350 if (!(optind == 2))
17351 return 3;
17352 return 0;
17355 _ACEOF
17356 if ac_fn_c_try_run "$LINENO"; then :
17357 gl_cv_func_getopt_posix=maybe
17358 else
17359 gl_cv_func_getopt_posix=no
17361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17362 conftest.$ac_objext conftest.beam conftest.$ac_ext
17365 if test $gl_cv_func_getopt_posix = maybe; then
17366 if test "$cross_compiling" = yes; then :
17367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17369 as_fn_error "cannot run test program while cross compiling
17370 See \`config.log' for more details." "$LINENO" 5; }
17371 else
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17375 #include <unistd.h>
17376 #include <stdlib.h>
17377 #include <string.h>
17380 main ()
17382 static char program[] = "program";
17383 static char donald[] = "donald";
17384 static char p[] = "-p";
17385 static char billy[] = "billy";
17386 static char duck[] = "duck";
17387 static char a[] = "-a";
17388 static char bar[] = "bar";
17389 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17390 int c;
17392 c = getopt (7, argv, "+abp:q:");
17393 if (!(c == -1))
17394 return 4;
17395 if (!(strcmp (argv[0], "program") == 0))
17396 return 5;
17397 if (!(strcmp (argv[1], "donald") == 0))
17398 return 6;
17399 if (!(strcmp (argv[2], "-p") == 0))
17400 return 7;
17401 if (!(strcmp (argv[3], "billy") == 0))
17402 return 8;
17403 if (!(strcmp (argv[4], "duck") == 0))
17404 return 9;
17405 if (!(strcmp (argv[5], "-a") == 0))
17406 return 10;
17407 if (!(strcmp (argv[6], "bar") == 0))
17408 return 11;
17409 if (!(optind == 1))
17410 return 12;
17411 return 0;
17414 _ACEOF
17415 if ac_fn_c_try_run "$LINENO"; then :
17416 gl_cv_func_getopt_posix=maybe
17417 else
17418 gl_cv_func_getopt_posix=no
17420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17421 conftest.$ac_objext conftest.beam conftest.$ac_ext
17425 if test $gl_cv_func_getopt_posix = maybe; then
17426 if test "$cross_compiling" = yes; then :
17427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17429 as_fn_error "cannot run test program while cross compiling
17430 See \`config.log' for more details." "$LINENO" 5; }
17431 else
17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433 /* end confdefs.h. */
17435 #include <unistd.h>
17436 #include <stdlib.h>
17437 #include <string.h>
17440 main ()
17442 static char program[] = "program";
17443 static char ab[] = "-ab";
17444 char *argv[3] = { program, ab, NULL };
17445 if (getopt (2, argv, "ab:") != 'a')
17446 return 13;
17447 if (getopt (2, argv, "ab:") != '?')
17448 return 14;
17449 if (optopt != 'b')
17450 return 15;
17451 if (optind != 2)
17452 return 16;
17453 return 0;
17456 _ACEOF
17457 if ac_fn_c_try_run "$LINENO"; then :
17458 gl_cv_func_getopt_posix=yes
17459 else
17460 gl_cv_func_getopt_posix=no
17462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17463 conftest.$ac_objext conftest.beam conftest.$ac_ext
17467 else
17468 case "$host_os" in
17469 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17470 *) gl_cv_func_getopt_posix="guessing yes";;
17471 esac
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17476 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17477 case "$gl_cv_func_getopt_posix" in
17478 *no) gl_replace_getopt=yes ;;
17479 esac
17482 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17484 $as_echo_n "checking for working GNU getopt function... " >&6; }
17485 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17486 $as_echo_n "(cached) " >&6
17487 else
17488 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17489 # optstring is necessary for programs like m4 that have POSIX-mandated
17490 # semantics for supporting options interspersed with files.
17491 # Also, since getopt_long is a GNU extension, we require optind=0.
17492 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17493 # so take care to revert to the correct (non-)export state.
17494 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17495 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17496 xx) gl_had_POSIXLY_CORRECT=exported ;;
17497 x) gl_had_POSIXLY_CORRECT=yes ;;
17498 *) gl_had_POSIXLY_CORRECT= ;;
17499 esac
17500 POSIXLY_CORRECT=1
17501 export POSIXLY_CORRECT
17502 if test "$cross_compiling" = yes; then :
17503 gl_cv_func_getopt_gnu="guessing no"
17505 else
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508 #include <getopt.h>
17509 #include <stddef.h>
17510 #include <string.h>
17512 #include <stdlib.h>
17513 #if defined __MACH__ && defined __APPLE__
17514 /* Avoid a crash on Mac OS X. */
17515 #include <mach/mach.h>
17516 #include <mach/mach_error.h>
17517 #include <mach/thread_status.h>
17518 #include <mach/exception.h>
17519 #include <mach/task.h>
17520 #include <pthread.h>
17521 /* The exception port on which our thread listens. */
17522 static mach_port_t our_exception_port;
17523 /* The main function of the thread listening for exceptions of type
17524 EXC_BAD_ACCESS. */
17525 static void *
17526 mach_exception_thread (void *arg)
17528 /* Buffer for a message to be received. */
17529 struct {
17530 mach_msg_header_t head;
17531 mach_msg_body_t msgh_body;
17532 char data[1024];
17533 } msg;
17534 mach_msg_return_t retval;
17535 /* Wait for a message on the exception port. */
17536 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17537 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17538 if (retval != MACH_MSG_SUCCESS)
17539 abort ();
17540 exit (1);
17542 static void
17543 nocrash_init (void)
17545 mach_port_t self = mach_task_self ();
17546 /* Allocate a port on which the thread shall listen for exceptions. */
17547 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17548 == KERN_SUCCESS) {
17549 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17550 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17551 MACH_MSG_TYPE_MAKE_SEND)
17552 == KERN_SUCCESS) {
17553 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17554 for us. */
17555 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17556 /* Create the thread listening on the exception port. */
17557 pthread_attr_t attr;
17558 pthread_t thread;
17559 if (pthread_attr_init (&attr) == 0
17560 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17561 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17562 pthread_attr_destroy (&attr);
17563 /* Replace the exception port info for these exceptions with our own.
17564 Note that we replace the exception port for the entire task, not only
17565 for a particular thread. This has the effect that when our exception
17566 port gets the message, the thread specific exception port has already
17567 been asked, and we don't need to bother about it.
17568 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17569 task_set_exception_ports (self, mask, our_exception_port,
17570 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17575 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17576 /* Avoid a crash on native Windows. */
17577 #define WIN32_LEAN_AND_MEAN
17578 #include <windows.h>
17579 #include <winerror.h>
17580 static LONG WINAPI
17581 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17583 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17585 case EXCEPTION_ACCESS_VIOLATION:
17586 case EXCEPTION_IN_PAGE_ERROR:
17587 case EXCEPTION_STACK_OVERFLOW:
17588 case EXCEPTION_GUARD_PAGE:
17589 case EXCEPTION_PRIV_INSTRUCTION:
17590 case EXCEPTION_ILLEGAL_INSTRUCTION:
17591 case EXCEPTION_DATATYPE_MISALIGNMENT:
17592 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17593 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17594 exit (1);
17596 return EXCEPTION_CONTINUE_SEARCH;
17598 static void
17599 nocrash_init (void)
17601 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17603 #else
17604 /* Avoid a crash on POSIX systems. */
17605 #include <signal.h>
17606 /* A POSIX signal handler. */
17607 static void
17608 exception_handler (int sig)
17610 exit (1);
17612 static void
17613 nocrash_init (void)
17615 #ifdef SIGSEGV
17616 signal (SIGSEGV, exception_handler);
17617 #endif
17618 #ifdef SIGBUS
17619 signal (SIGBUS, exception_handler);
17620 #endif
17622 #endif
17626 main ()
17629 int result = 0;
17631 nocrash_init();
17633 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17634 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17635 OSF/1 5.1, Solaris 10. */
17637 static char conftest[] = "conftest";
17638 static char plus[] = "-+";
17639 char *argv[3] = { conftest, plus, NULL };
17640 opterr = 0;
17641 if (getopt (2, argv, "+a") != '?')
17642 result |= 1;
17644 /* This code succeeds on glibc 2.8, mingw,
17645 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17646 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17648 static char program[] = "program";
17649 static char p[] = "-p";
17650 static char foo[] = "foo";
17651 static char bar[] = "bar";
17652 char *argv[] = { program, p, foo, bar, NULL };
17654 optind = 1;
17655 if (getopt (4, argv, "p::") != 'p')
17656 result |= 2;
17657 else if (optarg != NULL)
17658 result |= 4;
17659 else if (getopt (4, argv, "p::") != -1)
17660 result |= 6;
17661 else if (optind != 2)
17662 result |= 8;
17664 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17666 static char program[] = "program";
17667 static char foo[] = "foo";
17668 static char p[] = "-p";
17669 char *argv[] = { program, foo, p, NULL };
17670 optind = 0;
17671 if (getopt (3, argv, "-p") != 1)
17672 result |= 16;
17673 else if (getopt (3, argv, "-p") != 'p')
17674 result |= 16;
17676 /* This code fails on glibc 2.11. */
17678 static char program[] = "program";
17679 static char b[] = "-b";
17680 static char a[] = "-a";
17681 char *argv[] = { program, b, a, NULL };
17682 optind = opterr = 0;
17683 if (getopt (3, argv, "+:a:b") != 'b')
17684 result |= 32;
17685 else if (getopt (3, argv, "+:a:b") != ':')
17686 result |= 32;
17688 /* This code dumps core on glibc 2.14. */
17690 static char program[] = "program";
17691 static char w[] = "-W";
17692 static char dummy[] = "dummy";
17693 char *argv[] = { program, w, dummy, NULL };
17694 optind = opterr = 1;
17695 if (getopt (3, argv, "W;") != 'W')
17696 result |= 64;
17698 return result;
17701 return 0;
17703 _ACEOF
17704 if ac_fn_c_try_run "$LINENO"; then :
17705 gl_cv_func_getopt_gnu=yes
17706 else
17707 gl_cv_func_getopt_gnu=no
17709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17710 conftest.$ac_objext conftest.beam conftest.$ac_ext
17713 case $gl_had_POSIXLY_CORRECT in
17714 exported) ;;
17715 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17716 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17717 esac
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17721 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17722 if test "$gl_cv_func_getopt_gnu" != yes; then
17723 gl_replace_getopt=yes
17724 else
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17726 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17727 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17728 $as_echo_n "(cached) " >&6
17729 else
17730 if test "$cross_compiling" = yes; then :
17731 case "$host_os" in
17732 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17733 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17734 esac
17736 else
17737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17738 /* end confdefs.h. */
17739 #include <getopt.h>
17740 #include <stddef.h>
17741 #include <string.h>
17744 main ()
17746 static const struct option long_options[] =
17748 { "xtremely-",no_argument, NULL, 1003 },
17749 { "xtra", no_argument, NULL, 1001 },
17750 { "xtreme", no_argument, NULL, 1002 },
17751 { "xtremely", no_argument, NULL, 1003 },
17752 { NULL, 0, NULL, 0 }
17754 /* This code fails on OpenBSD 5.0. */
17756 static char program[] = "program";
17757 static char xtremel[] = "--xtremel";
17758 char *argv[] = { program, xtremel, NULL };
17759 int option_index;
17760 optind = 1; opterr = 0;
17761 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17762 return 1;
17764 return 0;
17767 return 0;
17769 _ACEOF
17770 if ac_fn_c_try_run "$LINENO"; then :
17771 gl_cv_func_getopt_long_gnu=yes
17772 else
17773 gl_cv_func_getopt_long_gnu=no
17775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17776 conftest.$ac_objext conftest.beam conftest.$ac_ext
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17782 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17783 case "$gl_cv_func_getopt_long_gnu" in
17784 *yes) ;;
17785 *) gl_replace_getopt=yes ;;
17786 esac
17795 REPLACE_GETOPT=0
17796 if test -n "$gl_replace_getopt"; then
17797 REPLACE_GETOPT=1
17800 if test $REPLACE_GETOPT = 1; then
17802 GETOPT_H=getopt.h
17804 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17810 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17811 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17812 ac_have_decl=1
17813 else
17814 ac_have_decl=0
17817 cat >>confdefs.h <<_ACEOF
17818 #define HAVE_DECL_GETENV $ac_have_decl
17819 _ACEOF
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17827 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17828 if test "${ac_cv_c_restrict+set}" = set; then :
17829 $as_echo_n "(cached) " >&6
17830 else
17831 ac_cv_c_restrict=no
17832 # The order here caters to the fact that C++ does not require restrict.
17833 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836 typedef int * int_ptr;
17837 int foo (int_ptr $ac_kw ip) {
17838 return ip[0];
17841 main ()
17843 int s[1];
17844 int * $ac_kw t = s;
17845 t[0] = 0;
17846 return foo(t)
17848 return 0;
17850 _ACEOF
17851 if ac_fn_c_try_compile "$LINENO"; then :
17852 ac_cv_c_restrict=$ac_kw
17854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17855 test "$ac_cv_c_restrict" != no && break
17856 done
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17860 $as_echo "$ac_cv_c_restrict" >&6; }
17862 case $ac_cv_c_restrict in
17863 restrict) ;;
17864 no) $as_echo "#define restrict /**/" >>confdefs.h
17866 *) cat >>confdefs.h <<_ACEOF
17867 #define restrict $ac_cv_c_restrict
17868 _ACEOF
17870 esac
17873 GNULIB_GETTIMEOFDAY=0;
17874 HAVE_GETTIMEOFDAY=1;
17875 HAVE_STRUCT_TIMEVAL=1;
17876 HAVE_SYS_TIME_H=1;
17877 REPLACE_GETTIMEOFDAY=0;
17878 REPLACE_STRUCT_TIMEVAL=0;
17895 if test $gl_cv_have_include_next = yes; then
17896 gl_cv_next_sys_time_h='<'sys/time.h'>'
17897 else
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17899 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17900 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17901 $as_echo_n "(cached) " >&6
17902 else
17904 if test $ac_cv_header_sys_time_h = yes; then
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h. */
17909 #include <sys/time.h>
17911 _ACEOF
17912 case "$host_os" in
17913 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17914 *) gl_absname_cpp="$ac_cpp" ;;
17915 esac
17917 case "$host_os" in
17918 mingw*)
17919 gl_dirsep_regex='[/\\]'
17922 gl_dirsep_regex='\/'
17924 esac
17925 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17927 gl_header_literal_regex=`echo 'sys/time.h' \
17928 | sed -e "$gl_make_literal_regex_sed"`
17929 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17930 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17931 s|^/[^/]|//&|
17935 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17936 sed -n "$gl_absolute_header_sed"`'"'
17937 else
17938 gl_cv_next_sys_time_h='<'sys/time.h'>'
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17944 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17946 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17948 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17950 gl_next_as_first_directive='<'sys/time.h'>'
17951 else
17952 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17953 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17955 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17961 if test $ac_cv_header_sys_time_h != yes; then
17962 HAVE_SYS_TIME_H=0
17969 if test $ac_cv_header_sys_socket_h != yes; then
17970 for ac_header in winsock2.h
17971 do :
17972 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17973 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17974 cat >>confdefs.h <<_ACEOF
17975 #define HAVE_WINSOCK2_H 1
17976 _ACEOF
17980 done
17983 if test "$ac_cv_header_winsock2_h" = yes; then
17984 HAVE_WINSOCK2_H=1
17985 UNISTD_H_HAVE_WINSOCK2_H=1
17986 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17987 else
17988 HAVE_WINSOCK2_H=0
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17993 $as_echo_n "checking for struct timeval... " >&6; }
17994 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17996 else
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
17999 #if HAVE_SYS_TIME_H
18000 #include <sys/time.h>
18001 #endif
18002 #include <time.h>
18003 #if HAVE_WINSOCK2_H
18004 # include <winsock2.h>
18005 #endif
18008 main ()
18010 static struct timeval x; x.tv_sec = x.tv_usec;
18012 return 0;
18014 _ACEOF
18015 if ac_fn_c_try_compile "$LINENO"; then :
18016 gl_cv_sys_struct_timeval=yes
18017 else
18018 gl_cv_sys_struct_timeval=no
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
18024 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
18025 if test $gl_cv_sys_struct_timeval != yes; then
18026 HAVE_STRUCT_TIMEVAL=0
18027 else
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
18029 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
18030 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
18031 $as_echo_n "(cached) " >&6
18032 else
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18035 #if HAVE_SYS_TIME_H
18036 #include <sys/time.h>
18037 #endif
18038 #include <time.h>
18039 #if HAVE_WINSOCK2_H
18040 # include <winsock2.h>
18041 #endif
18044 main ()
18046 static struct timeval x;
18047 typedef int verify_tv_sec_type[
18048 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
18052 return 0;
18054 _ACEOF
18055 if ac_fn_c_try_compile "$LINENO"; then :
18056 gl_cv_sys_struct_timeval_tv_sec=yes
18057 else
18058 gl_cv_sys_struct_timeval_tv_sec=no
18060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
18064 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
18065 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
18066 REPLACE_STRUCT_TIMEVAL=1
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18077 $as_echo_n "checking for unsigned long long int... " >&6; }
18078 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
18079 $as_echo_n "(cached) " >&6
18080 else
18081 ac_cv_type_unsigned_long_long_int=yes
18082 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18086 /* For now, do not test the preprocessor; as of 2007 there are too many
18087 implementations with broken preprocessors. Perhaps this can
18088 be revisited in 2012. In the meantime, code should not expect
18089 #if to work with literals wider than 32 bits. */
18090 /* Test literals. */
18091 long long int ll = 9223372036854775807ll;
18092 long long int nll = -9223372036854775807LL;
18093 unsigned long long int ull = 18446744073709551615ULL;
18094 /* Test constant expressions. */
18095 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18096 ? 1 : -1)];
18097 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18098 ? 1 : -1)];
18099 int i = 63;
18101 main ()
18103 /* Test availability of runtime routines for shift and division. */
18104 long long int llmax = 9223372036854775807ll;
18105 unsigned long long int ullmax = 18446744073709551615ull;
18106 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18107 | (llmax / ll) | (llmax % ll)
18108 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18109 | (ullmax / ull) | (ullmax % ull));
18111 return 0;
18114 _ACEOF
18115 if ac_fn_c_try_link "$LINENO"; then :
18117 else
18118 ac_cv_type_unsigned_long_long_int=no
18120 rm -f core conftest.err conftest.$ac_objext \
18121 conftest$ac_exeext conftest.$ac_ext
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18125 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18126 if test $ac_cv_type_unsigned_long_long_int = yes; then
18128 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18135 $as_echo_n "checking for long long int... " >&6; }
18136 if test "${ac_cv_type_long_long_int+set}" = set; then :
18137 $as_echo_n "(cached) " >&6
18138 else
18139 ac_cv_type_long_long_int=yes
18140 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18141 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18142 if test $ac_cv_type_long_long_int = yes; then
18143 if test "$cross_compiling" = yes; then :
18145 else
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18148 #include <limits.h>
18149 #ifndef LLONG_MAX
18150 # define HALF \
18151 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18152 # define LLONG_MAX (HALF - 1 + HALF)
18153 #endif
18155 main ()
18157 long long int n = 1;
18158 int i;
18159 for (i = 0; ; i++)
18161 long long int m = n << i;
18162 if (m >> i != n)
18163 return 1;
18164 if (LLONG_MAX / 2 < m)
18165 break;
18167 return 0;
18169 return 0;
18171 _ACEOF
18172 if ac_fn_c_try_run "$LINENO"; then :
18174 else
18175 ac_cv_type_long_long_int=no
18177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18178 conftest.$ac_objext conftest.beam conftest.$ac_ext
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18185 $as_echo "$ac_cv_type_long_long_int" >&6; }
18186 if test $ac_cv_type_long_long_int = yes; then
18188 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18197 gl_cv_c_multiarch=no
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18200 #ifndef __APPLE_CC__
18201 not a universal capable compiler
18202 #endif
18203 typedef int dummy;
18205 _ACEOF
18206 if ac_fn_c_try_compile "$LINENO"; then :
18208 arch=
18209 prev=
18210 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18211 if test -n "$prev"; then
18212 case $word in
18213 i?86 | x86_64 | ppc | ppc64)
18214 if test -z "$arch" || test "$arch" = "$word"; then
18215 arch="$word"
18216 else
18217 gl_cv_c_multiarch=yes
18220 esac
18221 prev=
18222 else
18223 if test "x$word" = "x-arch"; then
18224 prev=arch
18227 done
18230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 if test $gl_cv_c_multiarch = yes; then
18232 APPLE_UNIVERSAL_BUILD=1
18233 else
18234 APPLE_UNIVERSAL_BUILD=0
18241 if test $ac_cv_type_long_long_int = yes; then
18242 HAVE_LONG_LONG_INT=1
18243 else
18244 HAVE_LONG_LONG_INT=0
18248 if test $ac_cv_type_unsigned_long_long_int = yes; then
18249 HAVE_UNSIGNED_LONG_LONG_INT=1
18250 else
18251 HAVE_UNSIGNED_LONG_LONG_INT=0
18256 if test $ac_cv_header_wchar_h = yes; then
18257 HAVE_WCHAR_H=1
18258 else
18259 HAVE_WCHAR_H=0
18263 if test $ac_cv_header_inttypes_h = yes; then
18264 HAVE_INTTYPES_H=1
18265 else
18266 HAVE_INTTYPES_H=0
18270 if test $ac_cv_header_sys_types_h = yes; then
18271 HAVE_SYS_TYPES_H=1
18272 else
18273 HAVE_SYS_TYPES_H=0
18286 if test $gl_cv_have_include_next = yes; then
18287 gl_cv_next_stdint_h='<'stdint.h'>'
18288 else
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18290 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18291 if test "${gl_cv_next_stdint_h+set}" = set; then :
18292 $as_echo_n "(cached) " >&6
18293 else
18295 if test $ac_cv_header_stdint_h = yes; then
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18300 #include <stdint.h>
18302 _ACEOF
18303 case "$host_os" in
18304 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18305 *) gl_absname_cpp="$ac_cpp" ;;
18306 esac
18308 case "$host_os" in
18309 mingw*)
18310 gl_dirsep_regex='[/\\]'
18313 gl_dirsep_regex='\/'
18315 esac
18316 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18318 gl_header_literal_regex=`echo 'stdint.h' \
18319 | sed -e "$gl_make_literal_regex_sed"`
18320 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18321 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18322 s|^/[^/]|//&|
18326 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18327 sed -n "$gl_absolute_header_sed"`'"'
18328 else
18329 gl_cv_next_stdint_h='<'stdint.h'>'
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18335 $as_echo "$gl_cv_next_stdint_h" >&6; }
18337 NEXT_STDINT_H=$gl_cv_next_stdint_h
18339 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18341 gl_next_as_first_directive='<'stdint.h'>'
18342 else
18343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18344 gl_next_as_first_directive=$gl_cv_next_stdint_h
18346 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18351 if test $ac_cv_header_stdint_h = yes; then
18352 HAVE_STDINT_H=1
18353 else
18354 HAVE_STDINT_H=0
18358 if test $ac_cv_header_stdint_h = yes; then
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18360 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18361 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 gl_cv_header_working_stdint_h=no
18365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* end confdefs.h. */
18369 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18370 #include <stdint.h>
18371 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18372 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18373 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18374 #endif
18377 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18378 included before <wchar.h>. */
18379 #include <stddef.h>
18380 #include <signal.h>
18381 #if HAVE_WCHAR_H
18382 # include <stdio.h>
18383 # include <time.h>
18384 # include <wchar.h>
18385 #endif
18388 #ifdef INT8_MAX
18389 int8_t a1 = INT8_MAX;
18390 int8_t a1min = INT8_MIN;
18391 #endif
18392 #ifdef INT16_MAX
18393 int16_t a2 = INT16_MAX;
18394 int16_t a2min = INT16_MIN;
18395 #endif
18396 #ifdef INT32_MAX
18397 int32_t a3 = INT32_MAX;
18398 int32_t a3min = INT32_MIN;
18399 #endif
18400 #ifdef INT64_MAX
18401 int64_t a4 = INT64_MAX;
18402 int64_t a4min = INT64_MIN;
18403 #endif
18404 #ifdef UINT8_MAX
18405 uint8_t b1 = UINT8_MAX;
18406 #else
18407 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18408 #endif
18409 #ifdef UINT16_MAX
18410 uint16_t b2 = UINT16_MAX;
18411 #endif
18412 #ifdef UINT32_MAX
18413 uint32_t b3 = UINT32_MAX;
18414 #endif
18415 #ifdef UINT64_MAX
18416 uint64_t b4 = UINT64_MAX;
18417 #endif
18418 int_least8_t c1 = INT8_C (0x7f);
18419 int_least8_t c1max = INT_LEAST8_MAX;
18420 int_least8_t c1min = INT_LEAST8_MIN;
18421 int_least16_t c2 = INT16_C (0x7fff);
18422 int_least16_t c2max = INT_LEAST16_MAX;
18423 int_least16_t c2min = INT_LEAST16_MIN;
18424 int_least32_t c3 = INT32_C (0x7fffffff);
18425 int_least32_t c3max = INT_LEAST32_MAX;
18426 int_least32_t c3min = INT_LEAST32_MIN;
18427 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18428 int_least64_t c4max = INT_LEAST64_MAX;
18429 int_least64_t c4min = INT_LEAST64_MIN;
18430 uint_least8_t d1 = UINT8_C (0xff);
18431 uint_least8_t d1max = UINT_LEAST8_MAX;
18432 uint_least16_t d2 = UINT16_C (0xffff);
18433 uint_least16_t d2max = UINT_LEAST16_MAX;
18434 uint_least32_t d3 = UINT32_C (0xffffffff);
18435 uint_least32_t d3max = UINT_LEAST32_MAX;
18436 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18437 uint_least64_t d4max = UINT_LEAST64_MAX;
18438 int_fast8_t e1 = INT_FAST8_MAX;
18439 int_fast8_t e1min = INT_FAST8_MIN;
18440 int_fast16_t e2 = INT_FAST16_MAX;
18441 int_fast16_t e2min = INT_FAST16_MIN;
18442 int_fast32_t e3 = INT_FAST32_MAX;
18443 int_fast32_t e3min = INT_FAST32_MIN;
18444 int_fast64_t e4 = INT_FAST64_MAX;
18445 int_fast64_t e4min = INT_FAST64_MIN;
18446 uint_fast8_t f1 = UINT_FAST8_MAX;
18447 uint_fast16_t f2 = UINT_FAST16_MAX;
18448 uint_fast32_t f3 = UINT_FAST32_MAX;
18449 uint_fast64_t f4 = UINT_FAST64_MAX;
18450 #ifdef INTPTR_MAX
18451 intptr_t g = INTPTR_MAX;
18452 intptr_t gmin = INTPTR_MIN;
18453 #endif
18454 #ifdef UINTPTR_MAX
18455 uintptr_t h = UINTPTR_MAX;
18456 #endif
18457 intmax_t i = INTMAX_MAX;
18458 uintmax_t j = UINTMAX_MAX;
18460 #include <limits.h> /* for CHAR_BIT */
18461 #define TYPE_MINIMUM(t) \
18462 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18463 #define TYPE_MAXIMUM(t) \
18464 ((t) ((t) 0 < (t) -1 \
18465 ? (t) -1 \
18466 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18467 struct s {
18468 int check_PTRDIFF:
18469 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18470 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18471 ? 1 : -1;
18472 /* Detect bug in FreeBSD 6.0 / ia64. */
18473 int check_SIG_ATOMIC:
18474 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18475 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18476 ? 1 : -1;
18477 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18478 int check_WCHAR:
18479 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18480 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18481 ? 1 : -1;
18482 /* Detect bug in mingw. */
18483 int check_WINT:
18484 WINT_MIN == TYPE_MINIMUM (wint_t)
18485 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18486 ? 1 : -1;
18488 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18489 int check_UINT8_C:
18490 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18491 int check_UINT16_C:
18492 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18494 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18495 #ifdef UINT8_MAX
18496 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18497 #endif
18498 #ifdef UINT16_MAX
18499 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18500 #endif
18501 #ifdef UINT32_MAX
18502 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18503 #endif
18504 #ifdef UINT64_MAX
18505 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18506 #endif
18507 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18508 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18509 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18510 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18511 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18512 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18513 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18514 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18515 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18516 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18517 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18521 main ()
18525 return 0;
18527 _ACEOF
18528 if ac_fn_c_try_compile "$LINENO"; then :
18529 if test "$cross_compiling" = yes; then :
18530 gl_cv_header_working_stdint_h=yes
18532 else
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18537 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18538 #include <stdint.h>
18541 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18542 included before <wchar.h>. */
18543 #include <stddef.h>
18544 #include <signal.h>
18545 #if HAVE_WCHAR_H
18546 # include <stdio.h>
18547 # include <time.h>
18548 # include <wchar.h>
18549 #endif
18552 #include <stdio.h>
18553 #include <string.h>
18554 #define MVAL(macro) MVAL1(macro)
18555 #define MVAL1(expression) #expression
18556 static const char *macro_values[] =
18558 #ifdef INT8_MAX
18559 MVAL (INT8_MAX),
18560 #endif
18561 #ifdef INT16_MAX
18562 MVAL (INT16_MAX),
18563 #endif
18564 #ifdef INT32_MAX
18565 MVAL (INT32_MAX),
18566 #endif
18567 #ifdef INT64_MAX
18568 MVAL (INT64_MAX),
18569 #endif
18570 #ifdef UINT8_MAX
18571 MVAL (UINT8_MAX),
18572 #endif
18573 #ifdef UINT16_MAX
18574 MVAL (UINT16_MAX),
18575 #endif
18576 #ifdef UINT32_MAX
18577 MVAL (UINT32_MAX),
18578 #endif
18579 #ifdef UINT64_MAX
18580 MVAL (UINT64_MAX),
18581 #endif
18582 NULL
18586 main ()
18589 const char **mv;
18590 for (mv = macro_values; *mv != NULL; mv++)
18592 const char *value = *mv;
18593 /* Test whether it looks like a cast expression. */
18594 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18595 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18596 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18597 || strncmp (value, "((int)"/*)*/, 6) == 0
18598 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18599 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18600 return mv - macro_values + 1;
18602 return 0;
18605 return 0;
18607 _ACEOF
18608 if ac_fn_c_try_run "$LINENO"; then :
18609 gl_cv_header_working_stdint_h=yes
18611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18612 conftest.$ac_objext conftest.beam conftest.$ac_ext
18617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18621 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18623 if test "$gl_cv_header_working_stdint_h" = yes; then
18624 STDINT_H=
18625 else
18626 for ac_header in sys/inttypes.h sys/bitypes.h
18627 do :
18628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18629 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18630 eval as_val=\$$as_ac_Header
18631 if test "x$as_val" = x""yes; then :
18632 cat >>confdefs.h <<_ACEOF
18633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18634 _ACEOF
18638 done
18640 if test $ac_cv_header_sys_inttypes_h = yes; then
18641 HAVE_SYS_INTTYPES_H=1
18642 else
18643 HAVE_SYS_INTTYPES_H=0
18646 if test $ac_cv_header_sys_bitypes_h = yes; then
18647 HAVE_SYS_BITYPES_H=1
18648 else
18649 HAVE_SYS_BITYPES_H=0
18655 if test $APPLE_UNIVERSAL_BUILD = 0; then
18658 for gltype in ptrdiff_t size_t ; do
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18660 $as_echo_n "checking for bit size of $gltype... " >&6; }
18661 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18662 $as_echo_n "(cached) " >&6
18663 else
18664 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18665 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18666 included before <wchar.h>. */
18667 #include <stddef.h>
18668 #include <signal.h>
18669 #if HAVE_WCHAR_H
18670 # include <stdio.h>
18671 # include <time.h>
18672 # include <wchar.h>
18673 #endif
18675 #include <limits.h>"; then :
18677 else
18678 result=unknown
18681 eval gl_cv_bitsizeof_${gltype}=\$result
18684 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18686 $as_echo "$ac_res" >&6; }
18687 eval result=\$gl_cv_bitsizeof_${gltype}
18688 if test $result = unknown; then
18689 result=0
18691 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18692 cat >>confdefs.h <<_ACEOF
18693 #define BITSIZEOF_${GLTYPE} $result
18694 _ACEOF
18696 eval BITSIZEOF_${GLTYPE}=\$result
18697 done
18703 for gltype in sig_atomic_t wchar_t wint_t ; do
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18705 $as_echo_n "checking for bit size of $gltype... " >&6; }
18706 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18707 $as_echo_n "(cached) " >&6
18708 else
18709 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18710 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18711 included before <wchar.h>. */
18712 #include <stddef.h>
18713 #include <signal.h>
18714 #if HAVE_WCHAR_H
18715 # include <stdio.h>
18716 # include <time.h>
18717 # include <wchar.h>
18718 #endif
18720 #include <limits.h>"; then :
18722 else
18723 result=unknown
18726 eval gl_cv_bitsizeof_${gltype}=\$result
18729 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18731 $as_echo "$ac_res" >&6; }
18732 eval result=\$gl_cv_bitsizeof_${gltype}
18733 if test $result = unknown; then
18734 result=0
18736 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18737 cat >>confdefs.h <<_ACEOF
18738 #define BITSIZEOF_${GLTYPE} $result
18739 _ACEOF
18741 eval BITSIZEOF_${GLTYPE}=\$result
18742 done
18747 for gltype in sig_atomic_t wchar_t wint_t ; do
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18749 $as_echo_n "checking whether $gltype is signed... " >&6; }
18750 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18751 $as_echo_n "(cached) " >&6
18752 else
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18756 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18757 included before <wchar.h>. */
18758 #include <stddef.h>
18759 #include <signal.h>
18760 #if HAVE_WCHAR_H
18761 # include <stdio.h>
18762 # include <time.h>
18763 # include <wchar.h>
18764 #endif
18766 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18768 main ()
18772 return 0;
18774 _ACEOF
18775 if ac_fn_c_try_compile "$LINENO"; then :
18776 result=yes
18777 else
18778 result=no
18780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18781 eval gl_cv_type_${gltype}_signed=\$result
18784 eval ac_res=\$gl_cv_type_${gltype}_signed
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18786 $as_echo "$ac_res" >&6; }
18787 eval result=\$gl_cv_type_${gltype}_signed
18788 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18789 if test "$result" = yes; then
18790 cat >>confdefs.h <<_ACEOF
18791 #define HAVE_SIGNED_${GLTYPE} 1
18792 _ACEOF
18794 eval HAVE_SIGNED_${GLTYPE}=1
18795 else
18796 eval HAVE_SIGNED_${GLTYPE}=0
18798 done
18801 gl_cv_type_ptrdiff_t_signed=yes
18802 gl_cv_type_size_t_signed=no
18803 if test $APPLE_UNIVERSAL_BUILD = 0; then
18806 for gltype in ptrdiff_t size_t ; do
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18808 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18809 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18810 $as_echo_n "(cached) " >&6
18811 else
18812 eval gl_cv_type_${gltype}_suffix=no
18813 eval result=\$gl_cv_type_${gltype}_signed
18814 if test "$result" = yes; then
18815 glsufu=
18816 else
18817 glsufu=u
18819 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18820 case $glsuf in
18821 '') gltype1='int';;
18822 l) gltype1='long int';;
18823 ll) gltype1='long long int';;
18824 i64) gltype1='__int64';;
18825 u) gltype1='unsigned int';;
18826 ul) gltype1='unsigned long int';;
18827 ull) gltype1='unsigned long long int';;
18828 ui64)gltype1='unsigned __int64';;
18829 esac
18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18833 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18834 included before <wchar.h>. */
18835 #include <stddef.h>
18836 #include <signal.h>
18837 #if HAVE_WCHAR_H
18838 # include <stdio.h>
18839 # include <time.h>
18840 # include <wchar.h>
18841 #endif
18843 extern $gltype foo;
18844 extern $gltype1 foo;
18846 main ()
18850 return 0;
18852 _ACEOF
18853 if ac_fn_c_try_compile "$LINENO"; then :
18854 eval gl_cv_type_${gltype}_suffix=\$glsuf
18856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857 eval result=\$gl_cv_type_${gltype}_suffix
18858 test "$result" != no && break
18859 done
18861 eval ac_res=\$gl_cv_type_${gltype}_suffix
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18863 $as_echo "$ac_res" >&6; }
18864 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18865 eval result=\$gl_cv_type_${gltype}_suffix
18866 test "$result" = no && result=
18867 eval ${GLTYPE}_SUFFIX=\$result
18868 cat >>confdefs.h <<_ACEOF
18869 #define ${GLTYPE}_SUFFIX $result
18870 _ACEOF
18872 done
18878 for gltype in sig_atomic_t wchar_t wint_t ; do
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18880 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18881 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18882 $as_echo_n "(cached) " >&6
18883 else
18884 eval gl_cv_type_${gltype}_suffix=no
18885 eval result=\$gl_cv_type_${gltype}_signed
18886 if test "$result" = yes; then
18887 glsufu=
18888 else
18889 glsufu=u
18891 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18892 case $glsuf in
18893 '') gltype1='int';;
18894 l) gltype1='long int';;
18895 ll) gltype1='long long int';;
18896 i64) gltype1='__int64';;
18897 u) gltype1='unsigned int';;
18898 ul) gltype1='unsigned long int';;
18899 ull) gltype1='unsigned long long int';;
18900 ui64)gltype1='unsigned __int64';;
18901 esac
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903 /* end confdefs.h. */
18905 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18906 included before <wchar.h>. */
18907 #include <stddef.h>
18908 #include <signal.h>
18909 #if HAVE_WCHAR_H
18910 # include <stdio.h>
18911 # include <time.h>
18912 # include <wchar.h>
18913 #endif
18915 extern $gltype foo;
18916 extern $gltype1 foo;
18918 main ()
18922 return 0;
18924 _ACEOF
18925 if ac_fn_c_try_compile "$LINENO"; then :
18926 eval gl_cv_type_${gltype}_suffix=\$glsuf
18928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18929 eval result=\$gl_cv_type_${gltype}_suffix
18930 test "$result" != no && break
18931 done
18933 eval ac_res=\$gl_cv_type_${gltype}_suffix
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18935 $as_echo "$ac_res" >&6; }
18936 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18937 eval result=\$gl_cv_type_${gltype}_suffix
18938 test "$result" = no && result=
18939 eval ${GLTYPE}_SUFFIX=\$result
18940 cat >>confdefs.h <<_ACEOF
18941 #define ${GLTYPE}_SUFFIX $result
18942 _ACEOF
18944 done
18948 if test $BITSIZEOF_WINT_T -lt 32; then
18949 BITSIZEOF_WINT_T=32
18952 STDINT_H=stdint.h
18955 if test -n "$STDINT_H"; then
18956 GL_GENERATE_STDINT_H_TRUE=
18957 GL_GENERATE_STDINT_H_FALSE='#'
18958 else
18959 GL_GENERATE_STDINT_H_TRUE='#'
18960 GL_GENERATE_STDINT_H_FALSE=
18967 GNULIB_IMAXABS=0;
18968 GNULIB_IMAXDIV=0;
18969 GNULIB_STRTOIMAX=0;
18970 GNULIB_STRTOUMAX=0;
18971 HAVE_DECL_IMAXABS=1;
18972 HAVE_DECL_IMAXDIV=1;
18973 HAVE_DECL_STRTOIMAX=1;
18974 HAVE_DECL_STRTOUMAX=1;
18975 REPLACE_STRTOIMAX=0;
18976 INT32_MAX_LT_INTMAX_MAX=1;
18977 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18978 PRI_MACROS_BROKEN=0;
18979 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18980 UINT32_MAX_LT_UINTMAX_MAX=1;
18981 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18997 if test $gl_cv_have_include_next = yes; then
18998 gl_cv_next_inttypes_h='<'inttypes.h'>'
18999 else
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19001 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19002 if test "${gl_cv_next_inttypes_h+set}" = set; then :
19003 $as_echo_n "(cached) " >&6
19004 else
19006 if test $ac_cv_header_inttypes_h = yes; then
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19011 #include <inttypes.h>
19013 _ACEOF
19014 case "$host_os" in
19015 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19016 *) gl_absname_cpp="$ac_cpp" ;;
19017 esac
19019 case "$host_os" in
19020 mingw*)
19021 gl_dirsep_regex='[/\\]'
19024 gl_dirsep_regex='\/'
19026 esac
19027 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19029 gl_header_literal_regex=`echo 'inttypes.h' \
19030 | sed -e "$gl_make_literal_regex_sed"`
19031 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19032 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19033 s|^/[^/]|//&|
19037 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19038 sed -n "$gl_absolute_header_sed"`'"'
19039 else
19040 gl_cv_next_inttypes_h='<'inttypes.h'>'
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19046 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19048 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19050 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19051 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19052 gl_next_as_first_directive='<'inttypes.h'>'
19053 else
19054 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19055 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19057 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19069 case "$host_os" in
19070 mingw*)
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
19072 $as_echo_n "checking for 64-bit off_t... " >&6; }
19073 if test "${gl_cv_type_off_t_64+set}" = set; then :
19074 $as_echo_n "(cached) " >&6
19075 else
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19078 #include <sys/types.h>
19079 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
19082 main ()
19086 return 0;
19088 _ACEOF
19089 if ac_fn_c_try_compile "$LINENO"; then :
19090 gl_cv_type_off_t_64=yes
19091 else
19092 gl_cv_type_off_t_64=no
19094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
19098 $as_echo "$gl_cv_type_off_t_64" >&6; }
19099 if test $gl_cv_type_off_t_64 = no; then
19100 WINDOWS_64_BIT_OFF_T=1
19101 else
19102 WINDOWS_64_BIT_OFF_T=0
19104 WINDOWS_64_BIT_ST_SIZE=1
19107 WINDOWS_64_BIT_OFF_T=0
19108 WINDOWS_64_BIT_ST_SIZE=0
19110 esac
19113 GNULIB_FCHMODAT=0;
19114 GNULIB_FSTAT=0;
19115 GNULIB_FSTATAT=0;
19116 GNULIB_FUTIMENS=0;
19117 GNULIB_LCHMOD=0;
19118 GNULIB_LSTAT=0;
19119 GNULIB_MKDIRAT=0;
19120 GNULIB_MKFIFO=0;
19121 GNULIB_MKFIFOAT=0;
19122 GNULIB_MKNOD=0;
19123 GNULIB_MKNODAT=0;
19124 GNULIB_STAT=0;
19125 GNULIB_UTIMENSAT=0;
19126 HAVE_FCHMODAT=1;
19127 HAVE_FSTATAT=1;
19128 HAVE_FUTIMENS=1;
19129 HAVE_LCHMOD=1;
19130 HAVE_LSTAT=1;
19131 HAVE_MKDIRAT=1;
19132 HAVE_MKFIFO=1;
19133 HAVE_MKFIFOAT=1;
19134 HAVE_MKNOD=1;
19135 HAVE_MKNODAT=1;
19136 HAVE_UTIMENSAT=1;
19137 REPLACE_FSTAT=0;
19138 REPLACE_FSTATAT=0;
19139 REPLACE_FUTIMENS=0;
19140 REPLACE_LSTAT=0;
19141 REPLACE_MKDIR=0;
19142 REPLACE_MKFIFO=0;
19143 REPLACE_MKNOD=0;
19144 REPLACE_STAT=0;
19145 REPLACE_UTIMENSAT=0;
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19151 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19152 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
19153 $as_echo_n "(cached) " >&6
19154 else
19155 rm -f conftest.sym conftest.file
19156 echo >conftest.file
19157 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19158 if test "$cross_compiling" = yes; then :
19159 case "$host_os" in
19160 # Guess yes on glibc systems.
19161 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19162 # If we don't know, assume the worst.
19163 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19164 esac
19166 else
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h. */
19169 $ac_includes_default
19171 main ()
19173 struct stat sbuf;
19174 /* Linux will dereference the symlink and fail, as required by
19175 POSIX. That is better in the sense that it means we will not
19176 have to compile and use the lstat wrapper. */
19177 return lstat ("conftest.sym/", &sbuf) == 0;
19180 return 0;
19182 _ACEOF
19183 if ac_fn_c_try_run "$LINENO"; then :
19184 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19185 else
19186 gl_cv_func_lstat_dereferences_slashed_symlink=no
19188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19189 conftest.$ac_objext conftest.beam conftest.$ac_ext
19192 else
19193 # If the 'ln -s' command failed, then we probably don't even
19194 # have an lstat function.
19195 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
19197 rm -f conftest.sym conftest.file
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19201 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19202 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19203 *yes)
19205 cat >>confdefs.h <<_ACEOF
19206 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19207 _ACEOF
19210 esac
19213 GNULIB_MKTIME=0;
19214 GNULIB_NANOSLEEP=0;
19215 GNULIB_STRPTIME=0;
19216 GNULIB_TIMEGM=0;
19217 GNULIB_TIME_R=0;
19218 HAVE_DECL_LOCALTIME_R=1;
19219 HAVE_NANOSLEEP=1;
19220 HAVE_STRPTIME=1;
19221 HAVE_TIMEGM=1;
19222 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19223 REPLACE_MKTIME=GNULIB_PORTCHECK;
19224 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19225 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19230 GNULIB_PSELECT=0;
19231 GNULIB_SELECT=0;
19232 HAVE_PSELECT=1;
19233 REPLACE_PSELECT=0;
19234 REPLACE_SELECT=0;
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19242 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19243 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19244 $as_echo_n "(cached) " >&6
19245 else
19247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19248 /* end confdefs.h. */
19249 #include <sys/select.h>
19251 main ()
19253 struct timeval b;
19255 return 0;
19257 _ACEOF
19258 if ac_fn_c_try_compile "$LINENO"; then :
19259 gl_cv_header_sys_select_h_selfcontained=yes
19260 else
19261 gl_cv_header_sys_select_h_selfcontained=no
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266 /* end confdefs.h. */
19267 #include <sys/select.h>
19269 main ()
19271 int memset; int bzero;
19273 return 0;
19276 _ACEOF
19277 if ac_fn_c_try_compile "$LINENO"; then :
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280 #include <sys/select.h>
19282 main ()
19285 #undef memset
19286 #define memset nonexistent_memset
19287 extern
19288 #ifdef __cplusplus
19290 #endif
19291 void *memset (void *, int, unsigned long);
19292 #undef bzero
19293 #define bzero nonexistent_bzero
19294 extern
19295 #ifdef __cplusplus
19297 #endif
19298 void bzero (void *, unsigned long);
19299 fd_set fds;
19300 FD_ZERO (&fds);
19303 return 0;
19306 _ACEOF
19307 if ac_fn_c_try_link "$LINENO"; then :
19309 else
19310 gl_cv_header_sys_select_h_selfcontained=no
19312 rm -f core conftest.err conftest.$ac_objext \
19313 conftest$ac_exeext conftest.$ac_ext
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19321 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19331 if test $gl_cv_have_include_next = yes; then
19332 gl_cv_next_sys_select_h='<'sys/select.h'>'
19333 else
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19335 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19336 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19337 $as_echo_n "(cached) " >&6
19338 else
19340 if test $ac_cv_header_sys_select_h = yes; then
19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h. */
19345 #include <sys/select.h>
19347 _ACEOF
19348 case "$host_os" in
19349 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19350 *) gl_absname_cpp="$ac_cpp" ;;
19351 esac
19353 case "$host_os" in
19354 mingw*)
19355 gl_dirsep_regex='[/\\]'
19358 gl_dirsep_regex='\/'
19360 esac
19361 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19363 gl_header_literal_regex=`echo 'sys/select.h' \
19364 | sed -e "$gl_make_literal_regex_sed"`
19365 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19366 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19367 s|^/[^/]|//&|
19371 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19372 sed -n "$gl_absolute_header_sed"`'"'
19373 else
19374 gl_cv_next_sys_select_h='<'sys/select.h'>'
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19380 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19382 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19384 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19386 gl_next_as_first_directive='<'sys/select.h'>'
19387 else
19388 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19389 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19391 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19396 if test $ac_cv_header_sys_select_h = yes; then
19397 HAVE_SYS_SELECT_H=1
19398 else
19399 HAVE_SYS_SELECT_H=0
19406 if test $ac_cv_header_sys_socket_h != yes; then
19407 for ac_header in winsock2.h
19408 do :
19409 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19410 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19411 cat >>confdefs.h <<_ACEOF
19412 #define HAVE_WINSOCK2_H 1
19413 _ACEOF
19417 done
19420 if test "$ac_cv_header_winsock2_h" = yes; then
19421 HAVE_WINSOCK2_H=1
19422 UNISTD_H_HAVE_WINSOCK2_H=1
19423 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19424 else
19425 HAVE_WINSOCK2_H=0
19435 GNULIB_PTHREAD_SIGMASK=0;
19436 GNULIB_RAISE=0;
19437 GNULIB_SIGNAL_H_SIGPIPE=0;
19438 GNULIB_SIGPROCMASK=0;
19439 GNULIB_SIGACTION=0;
19440 HAVE_POSIX_SIGNALBLOCKING=1;
19441 HAVE_PTHREAD_SIGMASK=1;
19442 HAVE_RAISE=1;
19443 HAVE_SIGSET_T=1;
19444 HAVE_SIGINFO_T=1;
19445 HAVE_SIGACTION=1;
19446 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19448 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19450 HAVE_SIGHANDLER_T=1;
19451 REPLACE_PTHREAD_SIGMASK=0;
19452 REPLACE_RAISE=0;
19460 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19461 #include <signal.h>
19462 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19463 #include <sys/types.h>
19466 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19468 cat >>confdefs.h <<_ACEOF
19469 #define HAVE_SIGSET_T 1
19470 _ACEOF
19472 gl_cv_type_sigset_t=yes
19473 else
19474 gl_cv_type_sigset_t=no
19477 if test $gl_cv_type_sigset_t != yes; then
19478 HAVE_SIGSET_T=0
19483 if test $ac_cv_header_sys_socket_h = no; then
19484 for ac_header in ws2tcpip.h
19485 do :
19486 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19487 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_WS2TCPIP_H 1
19490 _ACEOF
19494 done
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19499 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19500 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19501 $as_echo_n "(cached) " >&6
19502 else
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19504 /* end confdefs.h. */
19506 #include <stdbool.h>
19507 #ifndef bool
19508 "error: bool is not defined"
19509 #endif
19510 #ifndef false
19511 "error: false is not defined"
19512 #endif
19513 #if false
19514 "error: false is not 0"
19515 #endif
19516 #ifndef true
19517 "error: true is not defined"
19518 #endif
19519 #if true != 1
19520 "error: true is not 1"
19521 #endif
19522 #ifndef __bool_true_false_are_defined
19523 "error: __bool_true_false_are_defined is not defined"
19524 #endif
19526 struct s { _Bool s: 1; _Bool t; } s;
19528 char a[true == 1 ? 1 : -1];
19529 char b[false == 0 ? 1 : -1];
19530 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19531 char d[(bool) 0.5 == true ? 1 : -1];
19532 /* See body of main program for 'e'. */
19533 char f[(_Bool) 0.0 == false ? 1 : -1];
19534 char g[true];
19535 char h[sizeof (_Bool)];
19536 char i[sizeof s.t];
19537 enum { j = false, k = true, l = false * true, m = true * 256 };
19538 /* The following fails for
19539 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19540 _Bool n[m];
19541 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19542 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19543 /* Catch a bug in an HP-UX C compiler. See
19544 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19545 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19547 _Bool q = true;
19548 _Bool *pq = &q;
19551 main ()
19554 bool e = &s;
19555 *pq |= q;
19556 *pq |= ! q;
19557 /* Refer to every declared value, to avoid compiler optimizations. */
19558 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19559 + !m + !n + !o + !p + !q + !pq);
19562 return 0;
19564 _ACEOF
19565 if ac_fn_c_try_compile "$LINENO"; then :
19566 ac_cv_header_stdbool_h=yes
19567 else
19568 ac_cv_header_stdbool_h=no
19570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19573 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19574 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19575 if test "x$ac_cv_type__Bool" = x""yes; then :
19577 cat >>confdefs.h <<_ACEOF
19578 #define HAVE__BOOL 1
19579 _ACEOF
19586 REPLACE_NULL=0;
19587 HAVE_WCHAR_T=1;
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19591 $as_echo_n "checking for wchar_t... " >&6; }
19592 if test "${gt_cv_c_wchar_t+set}" = set; then :
19593 $as_echo_n "(cached) " >&6
19594 else
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19597 #include <stddef.h>
19598 wchar_t foo = (wchar_t)'\0';
19600 main ()
19604 return 0;
19606 _ACEOF
19607 if ac_fn_c_try_compile "$LINENO"; then :
19608 gt_cv_c_wchar_t=yes
19609 else
19610 gt_cv_c_wchar_t=no
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19615 $as_echo "$gt_cv_c_wchar_t" >&6; }
19616 if test $gt_cv_c_wchar_t = yes; then
19618 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19623 GNULIB_DPRINTF=0;
19624 GNULIB_FCLOSE=0;
19625 GNULIB_FDOPEN=0;
19626 GNULIB_FFLUSH=0;
19627 GNULIB_FGETC=0;
19628 GNULIB_FGETS=0;
19629 GNULIB_FOPEN=0;
19630 GNULIB_FPRINTF=0;
19631 GNULIB_FPRINTF_POSIX=0;
19632 GNULIB_FPURGE=0;
19633 GNULIB_FPUTC=0;
19634 GNULIB_FPUTS=0;
19635 GNULIB_FREAD=0;
19636 GNULIB_FREOPEN=0;
19637 GNULIB_FSCANF=0;
19638 GNULIB_FSEEK=0;
19639 GNULIB_FSEEKO=0;
19640 GNULIB_FTELL=0;
19641 GNULIB_FTELLO=0;
19642 GNULIB_FWRITE=0;
19643 GNULIB_GETC=0;
19644 GNULIB_GETCHAR=0;
19645 GNULIB_GETDELIM=0;
19646 GNULIB_GETLINE=0;
19647 GNULIB_OBSTACK_PRINTF=0;
19648 GNULIB_OBSTACK_PRINTF_POSIX=0;
19649 GNULIB_PCLOSE=0;
19650 GNULIB_PERROR=0;
19651 GNULIB_POPEN=0;
19652 GNULIB_PRINTF=0;
19653 GNULIB_PRINTF_POSIX=0;
19654 GNULIB_PUTC=0;
19655 GNULIB_PUTCHAR=0;
19656 GNULIB_PUTS=0;
19657 GNULIB_REMOVE=0;
19658 GNULIB_RENAME=0;
19659 GNULIB_RENAMEAT=0;
19660 GNULIB_SCANF=0;
19661 GNULIB_SNPRINTF=0;
19662 GNULIB_SPRINTF_POSIX=0;
19663 GNULIB_STDIO_H_NONBLOCKING=0;
19664 GNULIB_STDIO_H_SIGPIPE=0;
19665 GNULIB_TMPFILE=0;
19666 GNULIB_VASPRINTF=0;
19667 GNULIB_VFSCANF=0;
19668 GNULIB_VSCANF=0;
19669 GNULIB_VDPRINTF=0;
19670 GNULIB_VFPRINTF=0;
19671 GNULIB_VFPRINTF_POSIX=0;
19672 GNULIB_VPRINTF=0;
19673 GNULIB_VPRINTF_POSIX=0;
19674 GNULIB_VSNPRINTF=0;
19675 GNULIB_VSPRINTF_POSIX=0;
19676 HAVE_DECL_FPURGE=1;
19677 HAVE_DECL_FSEEKO=1;
19678 HAVE_DECL_FTELLO=1;
19679 HAVE_DECL_GETDELIM=1;
19680 HAVE_DECL_GETLINE=1;
19681 HAVE_DECL_OBSTACK_PRINTF=1;
19682 HAVE_DECL_SNPRINTF=1;
19683 HAVE_DECL_VSNPRINTF=1;
19684 HAVE_DPRINTF=1;
19685 HAVE_FSEEKO=1;
19686 HAVE_FTELLO=1;
19687 HAVE_PCLOSE=1;
19688 HAVE_POPEN=1;
19689 HAVE_RENAMEAT=1;
19690 HAVE_VASPRINTF=1;
19691 HAVE_VDPRINTF=1;
19692 REPLACE_DPRINTF=0;
19693 REPLACE_FCLOSE=0;
19694 REPLACE_FDOPEN=0;
19695 REPLACE_FFLUSH=0;
19696 REPLACE_FOPEN=0;
19697 REPLACE_FPRINTF=0;
19698 REPLACE_FPURGE=0;
19699 REPLACE_FREOPEN=0;
19700 REPLACE_FSEEK=0;
19701 REPLACE_FSEEKO=0;
19702 REPLACE_FTELL=0;
19703 REPLACE_FTELLO=0;
19704 REPLACE_GETDELIM=0;
19705 REPLACE_GETLINE=0;
19706 REPLACE_OBSTACK_PRINTF=0;
19707 REPLACE_PERROR=0;
19708 REPLACE_POPEN=0;
19709 REPLACE_PRINTF=0;
19710 REPLACE_REMOVE=0;
19711 REPLACE_RENAME=0;
19712 REPLACE_RENAMEAT=0;
19713 REPLACE_SNPRINTF=0;
19714 REPLACE_SPRINTF=0;
19715 REPLACE_STDIO_READ_FUNCS=0;
19716 REPLACE_STDIO_WRITE_FUNCS=0;
19717 REPLACE_TMPFILE=0;
19718 REPLACE_VASPRINTF=0;
19719 REPLACE_VDPRINTF=0;
19720 REPLACE_VFPRINTF=0;
19721 REPLACE_VPRINTF=0;
19722 REPLACE_VSNPRINTF=0;
19723 REPLACE_VSPRINTF=0;
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19726 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19727 if test "${ac_cv_struct_tm+set}" = set; then :
19728 $as_echo_n "(cached) " >&6
19729 else
19730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19731 /* end confdefs.h. */
19732 #include <sys/types.h>
19733 #include <time.h>
19736 main ()
19738 struct tm tm;
19739 int *p = &tm.tm_sec;
19740 return !p;
19742 return 0;
19744 _ACEOF
19745 if ac_fn_c_try_compile "$LINENO"; then :
19746 ac_cv_struct_tm=time.h
19747 else
19748 ac_cv_struct_tm=sys/time.h
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19753 $as_echo "$ac_cv_struct_tm" >&6; }
19754 if test $ac_cv_struct_tm = sys/time.h; then
19756 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19760 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19761 #include <$ac_cv_struct_tm>
19764 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_STRUCT_TM_TM_ZONE 1
19768 _ACEOF
19773 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19775 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19777 else
19778 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19780 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19781 ac_have_decl=1
19782 else
19783 ac_have_decl=0
19786 cat >>confdefs.h <<_ACEOF
19787 #define HAVE_DECL_TZNAME $ac_have_decl
19788 _ACEOF
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19791 $as_echo_n "checking for tzname... " >&6; }
19792 if test "${ac_cv_var_tzname+set}" = set; then :
19793 $as_echo_n "(cached) " >&6
19794 else
19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796 /* end confdefs.h. */
19797 #include <time.h>
19798 #if !HAVE_DECL_TZNAME
19799 extern char *tzname[];
19800 #endif
19803 main ()
19805 return tzname[0][0];
19807 return 0;
19809 _ACEOF
19810 if ac_fn_c_try_link "$LINENO"; then :
19811 ac_cv_var_tzname=yes
19812 else
19813 ac_cv_var_tzname=no
19815 rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19819 $as_echo "$ac_cv_var_tzname" >&6; }
19820 if test $ac_cv_var_tzname = yes; then
19822 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19828 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19830 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19832 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19839 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19840 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19841 ac_have_decl=1
19842 else
19843 ac_have_decl=0
19846 cat >>confdefs.h <<_ACEOF
19847 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19848 _ACEOF
19852 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19853 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19854 ac_have_decl=1
19855 else
19856 ac_have_decl=0
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19861 _ACEOF
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19866 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19867 if test "${ac_cv_header_stat_broken+set}" = set; then :
19868 $as_echo_n "(cached) " >&6
19869 else
19870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19871 /* end confdefs.h. */
19872 #include <sys/types.h>
19873 #include <sys/stat.h>
19875 #if defined S_ISBLK && defined S_IFDIR
19876 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19877 #endif
19879 #if defined S_ISBLK && defined S_IFCHR
19880 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19881 #endif
19883 #if defined S_ISLNK && defined S_IFREG
19884 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19885 #endif
19887 #if defined S_ISSOCK && defined S_IFREG
19888 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19889 #endif
19891 _ACEOF
19892 if ac_fn_c_try_compile "$LINENO"; then :
19893 ac_cv_header_stat_broken=no
19894 else
19895 ac_cv_header_stat_broken=yes
19897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19900 $as_echo "$ac_cv_header_stat_broken" >&6; }
19901 if test $ac_cv_header_stat_broken = yes; then
19903 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19909 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19910 if test "x$ac_cv_type_mode_t" = x""yes; then :
19912 else
19914 cat >>confdefs.h <<_ACEOF
19915 #define mode_t int
19916 _ACEOF
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19923 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19924 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19925 $as_echo_n "(cached) " >&6
19926 else
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19929 #include <time.h>
19932 main ()
19934 static struct timespec x; x.tv_sec = x.tv_nsec;
19936 return 0;
19938 _ACEOF
19939 if ac_fn_c_try_compile "$LINENO"; then :
19940 gl_cv_sys_struct_timespec_in_time_h=yes
19941 else
19942 gl_cv_sys_struct_timespec_in_time_h=no
19944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19947 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19949 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19950 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19951 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19952 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19953 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19954 else
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19956 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19957 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19958 $as_echo_n "(cached) " >&6
19959 else
19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961 /* end confdefs.h. */
19962 #include <sys/time.h>
19965 main ()
19967 static struct timespec x; x.tv_sec = x.tv_nsec;
19969 return 0;
19971 _ACEOF
19972 if ac_fn_c_try_compile "$LINENO"; then :
19973 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19974 else
19975 gl_cv_sys_struct_timespec_in_sys_time_h=no
19977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19980 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19981 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19982 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19983 else
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19985 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19986 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19987 $as_echo_n "(cached) " >&6
19988 else
19989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19990 /* end confdefs.h. */
19991 #include <pthread.h>
19994 main ()
19996 static struct timespec x; x.tv_sec = x.tv_nsec;
19998 return 0;
20000 _ACEOF
20001 if ac_fn_c_try_compile "$LINENO"; then :
20002 gl_cv_sys_struct_timespec_in_pthread_h=yes
20003 else
20004 gl_cv_sys_struct_timespec_in_pthread_h=no
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20009 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20010 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20011 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20030 if test $gl_cv_have_include_next = yes; then
20031 gl_cv_next_time_h='<'time.h'>'
20032 else
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20034 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20035 if test "${gl_cv_next_time_h+set}" = set; then :
20036 $as_echo_n "(cached) " >&6
20037 else
20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20041 #include <time.h>
20043 _ACEOF
20044 case "$host_os" in
20045 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20046 *) gl_absname_cpp="$ac_cpp" ;;
20047 esac
20049 case "$host_os" in
20050 mingw*)
20051 gl_dirsep_regex='[/\\]'
20054 gl_dirsep_regex='\/'
20056 esac
20057 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20059 gl_header_literal_regex=`echo 'time.h' \
20060 | sed -e "$gl_make_literal_regex_sed"`
20061 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20062 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20063 s|^/[^/]|//&|
20067 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20068 sed -n "$gl_absolute_header_sed"`'"'
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20073 $as_echo "$gl_cv_next_time_h" >&6; }
20075 NEXT_TIME_H=$gl_cv_next_time_h
20077 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20078 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20079 gl_next_as_first_directive='<'time.h'>'
20080 else
20081 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20082 gl_next_as_first_directive=$gl_cv_next_time_h
20084 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
20101 $as_echo_n "checking whether the utimes function works... " >&6; }
20102 if test "${gl_cv_func_working_utimes+set}" = set; then :
20103 $as_echo_n "(cached) " >&6
20104 else
20106 if test "$cross_compiling" = yes; then :
20107 gl_cv_func_working_utimes=no
20108 else
20109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20110 /* end confdefs.h. */
20112 #include <sys/types.h>
20113 #include <sys/stat.h>
20114 #include <fcntl.h>
20115 #include <sys/time.h>
20116 #include <time.h>
20117 #include <unistd.h>
20118 #include <stdlib.h>
20119 #include <stdio.h>
20120 #include <utime.h>
20122 static int
20123 inorder (time_t a, time_t b, time_t c)
20125 return a <= b && b <= c;
20129 main ()
20131 int result = 0;
20132 char const *file = "conftest.utimes";
20133 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
20135 /* Test whether utimes() essentially works. */
20137 struct stat sbuf;
20138 FILE *f = fopen (file, "w");
20139 if (f == NULL)
20140 result |= 1;
20141 else if (fclose (f) != 0)
20142 result |= 1;
20143 else if (utimes (file, timeval) != 0)
20144 result |= 2;
20145 else if (lstat (file, &sbuf) != 0)
20146 result |= 1;
20147 else if (!(sbuf.st_atime == timeval[0].tv_sec
20148 && sbuf.st_mtime == timeval[1].tv_sec))
20149 result |= 4;
20150 if (unlink (file) != 0)
20151 result |= 1;
20154 /* Test whether utimes() with a NULL argument sets the file's timestamp
20155 to the current time. Use 'fstat' as well as 'time' to
20156 determine the "current" time, to accommodate NFS file systems
20157 if there is a time skew between the host and the NFS server. */
20159 int fd = open (file, O_WRONLY|O_CREAT, 0644);
20160 if (fd < 0)
20161 result |= 1;
20162 else
20164 time_t t0, t2;
20165 struct stat st0, st1, st2;
20166 if (time (&t0) == (time_t) -1)
20167 result |= 1;
20168 else if (fstat (fd, &st0) != 0)
20169 result |= 1;
20170 else if (utimes (file, timeval) != 0)
20171 result |= 2;
20172 else if (utimes (file, NULL) != 0)
20173 result |= 8;
20174 else if (fstat (fd, &st1) != 0)
20175 result |= 1;
20176 else if (write (fd, "\n", 1) != 1)
20177 result |= 1;
20178 else if (fstat (fd, &st2) != 0)
20179 result |= 1;
20180 else if (time (&t2) == (time_t) -1)
20181 result |= 1;
20182 else
20184 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
20185 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
20186 if (! (st1.st_atime == st1.st_mtime))
20187 result |= 16;
20188 if (! (m_ok_POSIX || m_ok_NFS))
20189 result |= 32;
20191 if (close (fd) != 0)
20192 result |= 1;
20194 if (unlink (file) != 0)
20195 result |= 1;
20198 /* Test whether utimes() with a NULL argument works on read-only files. */
20200 int fd = open (file, O_WRONLY|O_CREAT, 0444);
20201 if (fd < 0)
20202 result |= 1;
20203 else if (close (fd) != 0)
20204 result |= 1;
20205 else if (utimes (file, NULL) != 0)
20206 result |= 64;
20207 if (unlink (file) != 0)
20208 result |= 1;
20211 return result;
20214 _ACEOF
20215 if ac_fn_c_try_run "$LINENO"; then :
20216 gl_cv_func_working_utimes=yes
20217 else
20218 gl_cv_func_working_utimes=no
20220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20221 conftest.$ac_objext conftest.beam conftest.$ac_ext
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20226 $as_echo "$gl_cv_func_working_utimes" >&6; }
20228 if test $gl_cv_func_working_utimes = yes; then
20230 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20239 $as_echo_n "checking for struct utimbuf... " >&6; }
20240 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20241 $as_echo_n "(cached) " >&6
20242 else
20243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20244 /* end confdefs.h. */
20245 #if HAVE_SYS_TIME_H
20246 #include <sys/time.h>
20247 #endif
20248 #include <time.h>
20249 #ifdef HAVE_UTIME_H
20250 #include <utime.h>
20251 #endif
20254 main ()
20256 static struct utimbuf x; x.actime = x.modtime;
20258 return 0;
20260 _ACEOF
20261 if ac_fn_c_try_compile "$LINENO"; then :
20262 gl_cv_sys_struct_utimbuf=yes
20263 else
20264 gl_cv_sys_struct_utimbuf=no
20266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20269 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20271 if test $gl_cv_sys_struct_utimbuf = yes; then
20273 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20288 if false; then
20289 GL_COND_LIBTOOL_TRUE=
20290 GL_COND_LIBTOOL_FALSE='#'
20291 else
20292 GL_COND_LIBTOOL_TRUE='#'
20293 GL_COND_LIBTOOL_FALSE=
20296 gl_cond_libtool=false
20297 gl_libdeps=
20298 gl_ltlibdeps=
20299 gl_m4_base='m4'
20309 gl_source_base='lib'
20312 if test $ac_cv_func_alloca_works = no; then
20316 # Define an additional variable used in the Makefile substitution.
20317 if test $ac_cv_working_alloca_h = yes; then
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20319 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20320 if test "${gl_cv_rpl_alloca+set}" = set; then :
20321 $as_echo_n "(cached) " >&6
20322 else
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20327 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20328 Need own alloca
20329 #endif
20331 _ACEOF
20332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20333 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20334 gl_cv_rpl_alloca=yes
20335 else
20336 gl_cv_rpl_alloca=no
20338 rm -f conftest*
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20343 $as_echo "$gl_cv_rpl_alloca" >&6; }
20344 if test $gl_cv_rpl_alloca = yes; then
20346 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20348 ALLOCA_H=alloca.h
20349 else
20350 ALLOCA_H=
20352 else
20353 ALLOCA_H=alloca.h
20356 if test -n "$ALLOCA_H"; then
20357 GL_GENERATE_ALLOCA_H_TRUE=
20358 GL_GENERATE_ALLOCA_H_FALSE='#'
20359 else
20360 GL_GENERATE_ALLOCA_H_TRUE='#'
20361 GL_GENERATE_ALLOCA_H_FALSE=
20369 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20370 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20372 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20373 # programs in the package would end up linked with that potentially-shared
20374 # library, inducing unnecessary run-time overhead.
20375 LIB_CLOCK_GETTIME=
20377 gl_saved_libs=$LIBS
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20379 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20380 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20381 $as_echo_n "(cached) " >&6
20382 else
20383 ac_func_search_save_LIBS=$LIBS
20384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20385 /* end confdefs.h. */
20387 /* Override any GCC internal prototype to avoid an error.
20388 Use char because int might match the return type of a GCC
20389 builtin and then its argument prototype would still apply. */
20390 #ifdef __cplusplus
20391 extern "C"
20392 #endif
20393 char clock_gettime ();
20395 main ()
20397 return clock_gettime ();
20399 return 0;
20401 _ACEOF
20402 for ac_lib in '' rt posix4; do
20403 if test -z "$ac_lib"; then
20404 ac_res="none required"
20405 else
20406 ac_res=-l$ac_lib
20407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20409 if ac_fn_c_try_link "$LINENO"; then :
20410 ac_cv_search_clock_gettime=$ac_res
20412 rm -f core conftest.err conftest.$ac_objext \
20413 conftest$ac_exeext
20414 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20415 break
20417 done
20418 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20420 else
20421 ac_cv_search_clock_gettime=no
20423 rm conftest.$ac_ext
20424 LIBS=$ac_func_search_save_LIBS
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20427 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20428 ac_res=$ac_cv_search_clock_gettime
20429 if test "$ac_res" != no; then :
20430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20431 test "$ac_cv_search_clock_gettime" = "none required" ||
20432 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20435 for ac_func in clock_gettime clock_settime
20436 do :
20437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20438 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20439 eval as_val=\$$as_ac_var
20440 if test "x$as_val" = x""yes; then :
20441 cat >>confdefs.h <<_ACEOF
20442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20443 _ACEOF
20446 done
20448 LIBS=$gl_saved_libs
20474 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20477 if test $HAVE_DUP2 = 1; then
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20479 $as_echo_n "checking whether dup2 works... " >&6; }
20480 if test "${gl_cv_func_dup2_works+set}" = set; then :
20481 $as_echo_n "(cached) " >&6
20482 else
20483 if test "$cross_compiling" = yes; then :
20484 case "$host_os" in
20485 mingw*) # on this platform, dup2 always returns 0 for success
20486 gl_cv_func_dup2_works="guessing no" ;;
20487 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20488 gl_cv_func_dup2_works="guessing no" ;;
20489 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20490 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20491 gl_cv_func_dup2_works="guessing no" ;;
20492 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20493 gl_cv_func_dup2_works="guessing no" ;;
20494 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20495 gl_cv_func_dup2_works="guessing no" ;;
20496 *) gl_cv_func_dup2_works="guessing yes" ;;
20497 esac
20498 else
20499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20500 /* end confdefs.h. */
20502 #include <unistd.h>
20503 #include <fcntl.h>
20504 #include <errno.h>
20506 main ()
20508 int result = 0;
20509 #ifdef FD_CLOEXEC
20510 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20511 result |= 1;
20512 #endif
20513 if (dup2 (1, 1) == 0)
20514 result |= 2;
20515 #ifdef FD_CLOEXEC
20516 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20517 result |= 4;
20518 #endif
20519 close (0);
20520 if (dup2 (0, 0) != -1)
20521 result |= 8;
20522 /* Many gnulib modules require POSIX conformance of EBADF. */
20523 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20524 result |= 16;
20525 return result;
20528 return 0;
20531 _ACEOF
20532 if ac_fn_c_try_run "$LINENO"; then :
20533 gl_cv_func_dup2_works=yes
20534 else
20535 gl_cv_func_dup2_works=no
20537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20538 conftest.$ac_objext conftest.beam conftest.$ac_ext
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20544 $as_echo "$gl_cv_func_dup2_works" >&6; }
20545 case "$gl_cv_func_dup2_works" in
20546 *yes) ;;
20548 REPLACE_DUP2=1
20550 esac
20554 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20563 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20572 GNULIB_DUP2=1
20584 GNULIB_ENVIRON=1
20593 LIB_EXECINFO=''
20594 EXECINFO_H='execinfo.h'
20596 if test $ac_cv_header_execinfo_h = yes; then
20597 gl_saved_libs=$LIBS
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20599 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20600 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20601 $as_echo_n "(cached) " >&6
20602 else
20603 ac_func_search_save_LIBS=$LIBS
20604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20607 /* Override any GCC internal prototype to avoid an error.
20608 Use char because int might match the return type of a GCC
20609 builtin and then its argument prototype would still apply. */
20610 #ifdef __cplusplus
20611 extern "C"
20612 #endif
20613 char backtrace_symbols_fd ();
20615 main ()
20617 return backtrace_symbols_fd ();
20619 return 0;
20621 _ACEOF
20622 for ac_lib in '' execinfo; do
20623 if test -z "$ac_lib"; then
20624 ac_res="none required"
20625 else
20626 ac_res=-l$ac_lib
20627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20629 if ac_fn_c_try_link "$LINENO"; then :
20630 ac_cv_search_backtrace_symbols_fd=$ac_res
20632 rm -f core conftest.err conftest.$ac_objext \
20633 conftest$ac_exeext
20634 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20635 break
20637 done
20638 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20640 else
20641 ac_cv_search_backtrace_symbols_fd=no
20643 rm conftest.$ac_ext
20644 LIBS=$ac_func_search_save_LIBS
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20647 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20648 ac_res=$ac_cv_search_backtrace_symbols_fd
20649 if test "$ac_res" != no; then :
20650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20651 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20652 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20655 LIBS=$gl_saved_libs
20656 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20659 if test -n "$EXECINFO_H"; then
20668 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20674 if test -n "$EXECINFO_H"; then
20675 GL_GENERATE_EXECINFO_H_TRUE=
20676 GL_GENERATE_EXECINFO_H_FALSE='#'
20677 else
20678 GL_GENERATE_EXECINFO_H_TRUE='#'
20679 GL_GENERATE_EXECINFO_H_FALSE=
20690 # Persuade glibc <stdlib.h> to declare getloadavg().
20693 gl_save_LIBS=$LIBS
20695 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20696 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20697 HAVE_GETLOADAVG=1
20698 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20699 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20701 else
20702 gl_func_getloadavg_done=no
20704 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20705 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20706 # to get the right answer into the cache.
20707 # For kstat on solaris, we need to test for libelf and libkvm to force the
20708 # definition of SVR4 below.
20709 if test $gl_func_getloadavg_done = no; then
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20711 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20712 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20713 $as_echo_n "(cached) " >&6
20714 else
20715 ac_check_lib_save_LIBS=$LIBS
20716 LIBS="-lelf $LIBS"
20717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h. */
20720 /* Override any GCC internal prototype to avoid an error.
20721 Use char because int might match the return type of a GCC
20722 builtin and then its argument prototype would still apply. */
20723 #ifdef __cplusplus
20724 extern "C"
20725 #endif
20726 char elf_begin ();
20728 main ()
20730 return elf_begin ();
20732 return 0;
20734 _ACEOF
20735 if ac_fn_c_try_link "$LINENO"; then :
20736 ac_cv_lib_elf_elf_begin=yes
20737 else
20738 ac_cv_lib_elf_elf_begin=no
20740 rm -f core conftest.err conftest.$ac_objext \
20741 conftest$ac_exeext conftest.$ac_ext
20742 LIBS=$ac_check_lib_save_LIBS
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20745 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20746 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20747 LIBS="-lelf $LIBS"
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20751 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20752 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20753 $as_echo_n "(cached) " >&6
20754 else
20755 ac_check_lib_save_LIBS=$LIBS
20756 LIBS="-lkvm $LIBS"
20757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20758 /* end confdefs.h. */
20760 /* Override any GCC internal prototype to avoid an error.
20761 Use char because int might match the return type of a GCC
20762 builtin and then its argument prototype would still apply. */
20763 #ifdef __cplusplus
20764 extern "C"
20765 #endif
20766 char kvm_open ();
20768 main ()
20770 return kvm_open ();
20772 return 0;
20774 _ACEOF
20775 if ac_fn_c_try_link "$LINENO"; then :
20776 ac_cv_lib_kvm_kvm_open=yes
20777 else
20778 ac_cv_lib_kvm_kvm_open=no
20780 rm -f core conftest.err conftest.$ac_objext \
20781 conftest$ac_exeext conftest.$ac_ext
20782 LIBS=$ac_check_lib_save_LIBS
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20785 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20786 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20787 LIBS="-lkvm $LIBS"
20790 # Check for the 4.4BSD definition of getloadavg.
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20792 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20793 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20794 $as_echo_n "(cached) " >&6
20795 else
20796 ac_check_lib_save_LIBS=$LIBS
20797 LIBS="-lutil $LIBS"
20798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799 /* end confdefs.h. */
20801 /* Override any GCC internal prototype to avoid an error.
20802 Use char because int might match the return type of a GCC
20803 builtin and then its argument prototype would still apply. */
20804 #ifdef __cplusplus
20805 extern "C"
20806 #endif
20807 char getloadavg ();
20809 main ()
20811 return getloadavg ();
20813 return 0;
20815 _ACEOF
20816 if ac_fn_c_try_link "$LINENO"; then :
20817 ac_cv_lib_util_getloadavg=yes
20818 else
20819 ac_cv_lib_util_getloadavg=no
20821 rm -f core conftest.err conftest.$ac_objext \
20822 conftest$ac_exeext conftest.$ac_ext
20823 LIBS=$ac_check_lib_save_LIBS
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20826 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20827 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20828 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20833 if test $gl_func_getloadavg_done = no; then
20834 # There is a commonly available library for RS/6000 AIX.
20835 # Since it is not a standard part of AIX, it might be installed locally.
20836 gl_getloadavg_LIBS=$LIBS
20837 LIBS="-L/usr/local/lib $LIBS"
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20839 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20840 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20841 $as_echo_n "(cached) " >&6
20842 else
20843 ac_check_lib_save_LIBS=$LIBS
20844 LIBS="-lgetloadavg $LIBS"
20845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846 /* end confdefs.h. */
20848 /* Override any GCC internal prototype to avoid an error.
20849 Use char because int might match the return type of a GCC
20850 builtin and then its argument prototype would still apply. */
20851 #ifdef __cplusplus
20852 extern "C"
20853 #endif
20854 char getloadavg ();
20856 main ()
20858 return getloadavg ();
20860 return 0;
20862 _ACEOF
20863 if ac_fn_c_try_link "$LINENO"; then :
20864 ac_cv_lib_getloadavg_getloadavg=yes
20865 else
20866 ac_cv_lib_getloadavg_getloadavg=no
20868 rm -f core conftest.err conftest.$ac_objext \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20873 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20874 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20875 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20876 else
20877 LIBS=$gl_getloadavg_LIBS
20882 # Set up the replacement function if necessary.
20883 if test $gl_func_getloadavg_done = no; then
20884 HAVE_GETLOADAVG=0
20886 # Solaris has libkstat which does not require root.
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20888 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20889 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20890 $as_echo_n "(cached) " >&6
20891 else
20892 ac_check_lib_save_LIBS=$LIBS
20893 LIBS="-lkstat $LIBS"
20894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20895 /* end confdefs.h. */
20897 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */
20900 #ifdef __cplusplus
20901 extern "C"
20902 #endif
20903 char kstat_open ();
20905 main ()
20907 return kstat_open ();
20909 return 0;
20911 _ACEOF
20912 if ac_fn_c_try_link "$LINENO"; then :
20913 ac_cv_lib_kstat_kstat_open=yes
20914 else
20915 ac_cv_lib_kstat_kstat_open=no
20917 rm -f core conftest.err conftest.$ac_objext \
20918 conftest$ac_exeext conftest.$ac_ext
20919 LIBS=$ac_check_lib_save_LIBS
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20922 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20923 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20924 cat >>confdefs.h <<_ACEOF
20925 #define HAVE_LIBKSTAT 1
20926 _ACEOF
20928 LIBS="-lkstat $LIBS"
20932 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20934 # AIX has libperfstat which does not require root
20935 if test $gl_func_getloadavg_done = no; then
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20937 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20938 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20939 $as_echo_n "(cached) " >&6
20940 else
20941 ac_check_lib_save_LIBS=$LIBS
20942 LIBS="-lperfstat $LIBS"
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20946 /* Override any GCC internal prototype to avoid an error.
20947 Use char because int might match the return type of a GCC
20948 builtin and then its argument prototype would still apply. */
20949 #ifdef __cplusplus
20950 extern "C"
20951 #endif
20952 char perfstat_cpu_total ();
20954 main ()
20956 return perfstat_cpu_total ();
20958 return 0;
20960 _ACEOF
20961 if ac_fn_c_try_link "$LINENO"; then :
20962 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20963 else
20964 ac_cv_lib_perfstat_perfstat_cpu_total=no
20966 rm -f core conftest.err conftest.$ac_objext \
20967 conftest$ac_exeext conftest.$ac_ext
20968 LIBS=$ac_check_lib_save_LIBS
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20971 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20972 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20973 cat >>confdefs.h <<_ACEOF
20974 #define HAVE_LIBPERFSTAT 1
20975 _ACEOF
20977 LIBS="-lperfstat $LIBS"
20981 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20984 if test $gl_func_getloadavg_done = no; then
20985 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20986 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20987 gl_func_getloadavg_done=yes
20989 $as_echo "#define DGUX 1" >>confdefs.h
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20992 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20993 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20994 $as_echo_n "(cached) " >&6
20995 else
20996 ac_check_lib_save_LIBS=$LIBS
20997 LIBS="-ldgc $LIBS"
20998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20999 /* end confdefs.h. */
21001 /* Override any GCC internal prototype to avoid an error.
21002 Use char because int might match the return type of a GCC
21003 builtin and then its argument prototype would still apply. */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 char dg_sys_info ();
21009 main ()
21011 return dg_sys_info ();
21013 return 0;
21015 _ACEOF
21016 if ac_fn_c_try_link "$LINENO"; then :
21017 ac_cv_lib_dgc_dg_sys_info=yes
21018 else
21019 ac_cv_lib_dgc_dg_sys_info=no
21021 rm -f core conftest.err conftest.$ac_objext \
21022 conftest$ac_exeext conftest.$ac_ext
21023 LIBS=$ac_check_lib_save_LIBS
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
21026 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
21027 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
21028 cat >>confdefs.h <<_ACEOF
21029 #define HAVE_LIBDGC 1
21030 _ACEOF
21032 LIBS="-ldgc $LIBS"
21044 if test "x$gl_save_LIBS" = x; then
21045 GETLOADAVG_LIBS=$LIBS
21046 else
21047 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
21049 LIBS=$gl_save_LIBS
21052 # Test whether the system declares getloadavg. Solaris has the function
21053 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
21054 for ac_header in sys/loadavg.h
21055 do :
21056 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
21057 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
21058 cat >>confdefs.h <<_ACEOF
21059 #define HAVE_SYS_LOADAVG_H 1
21060 _ACEOF
21064 done
21066 if test $ac_cv_header_sys_loadavg_h = yes; then
21067 HAVE_SYS_LOADAVG_H=1
21068 else
21069 HAVE_SYS_LOADAVG_H=0
21071 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
21072 # include <sys/loadavg.h>
21073 #endif
21074 #include <stdlib.h>
21076 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
21078 else
21079 HAVE_DECL_GETLOADAVG=0
21083 if test $HAVE_GETLOADAVG = 0; then
21092 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
21095 # Figure out what our getloadavg.c needs.
21099 # On HPUX9, an unprivileged user can get load averages this way.
21100 if test $gl_func_getloadavg_done = no; then
21101 for ac_func in pstat_getdynamic
21102 do :
21103 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
21104 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
21105 cat >>confdefs.h <<_ACEOF
21106 #define HAVE_PSTAT_GETDYNAMIC 1
21107 _ACEOF
21108 gl_func_getloadavg_done=yes
21110 done
21114 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
21115 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
21116 # Irix 4.0.5F has the header but not the library.
21117 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
21118 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
21119 gl_func_getloadavg_done=yes
21121 $as_echo "#define SVR4 1" >>confdefs.h
21125 if test $gl_func_getloadavg_done = no; then
21126 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
21127 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
21128 gl_func_getloadavg_done=yes
21130 $as_echo "#define UMAX 1" >>confdefs.h
21133 $as_echo "#define UMAX4_3 1" >>confdefs.h
21140 if test $gl_func_getloadavg_done = no; then
21141 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
21142 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
21143 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
21150 if test $gl_func_getloadavg_done = no; then
21151 for ac_header in mach/mach.h
21152 do :
21153 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
21154 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
21155 cat >>confdefs.h <<_ACEOF
21156 #define HAVE_MACH_MACH_H 1
21157 _ACEOF
21161 done
21165 for ac_header in nlist.h
21166 do :
21167 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
21168 if test "x$ac_cv_header_nlist_h" = x""yes; then :
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_NLIST_H 1
21171 _ACEOF
21172 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
21174 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
21176 cat >>confdefs.h <<_ACEOF
21177 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
21178 _ACEOF
21183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21184 /* end confdefs.h. */
21185 #include <nlist.h>
21187 main ()
21189 struct nlist x;
21190 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
21191 x.n_un.n_name = "";
21192 #else
21193 x.n_name = "";
21194 #endif
21196 return 0;
21198 _ACEOF
21199 if ac_fn_c_try_link "$LINENO"; then :
21201 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
21204 rm -f core conftest.err conftest.$ac_objext \
21205 conftest$ac_exeext conftest.$ac_ext
21209 done
21217 GNULIB_GETLOADAVG=1
21228 if test $REPLACE_GETOPT = 1; then
21237 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21247 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21252 GNULIB_GL_UNISTD_H_GETOPT=1
21261 REPLACE_GETOPT=0
21262 if test -n "$gl_replace_getopt"; then
21263 REPLACE_GETOPT=1
21266 if test $REPLACE_GETOPT = 1; then
21268 GETOPT_H=getopt.h
21270 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21276 if test $REPLACE_GETOPT = 1; then
21285 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21295 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21300 GNULIB_GL_UNISTD_H_GETOPT=1
21314 gl_gettimeofday_timezone=void
21315 if test $ac_cv_func_gettimeofday != yes; then
21316 HAVE_GETTIMEOFDAY=0
21317 else
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21322 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21323 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21324 $as_echo_n "(cached) " >&6
21325 else
21326 if test "$cross_compiling" = yes; then :
21327 # When cross-compiling:
21328 case "$host_os" in
21329 # Guess all is fine on glibc systems.
21330 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21331 # If we don't know, assume the worst.
21332 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21333 esac
21335 else
21336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h. */
21338 #include <string.h>
21339 #include <sys/time.h>
21340 #include <time.h>
21341 #include <stdlib.h>
21344 main ()
21347 time_t t = 0;
21348 struct tm *lt;
21349 struct tm saved_lt;
21350 struct timeval tv;
21351 lt = localtime (&t);
21352 saved_lt = *lt;
21353 gettimeofday (&tv, NULL);
21354 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21357 return 0;
21359 _ACEOF
21360 if ac_fn_c_try_run "$LINENO"; then :
21361 gl_cv_func_gettimeofday_clobber=no
21362 else
21363 gl_cv_func_gettimeofday_clobber=yes
21365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21366 conftest.$ac_objext conftest.beam conftest.$ac_ext
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21371 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21373 case "$gl_cv_func_gettimeofday_clobber" in
21374 *yes)
21375 REPLACE_GETTIMEOFDAY=1
21378 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21381 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21385 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21388 esac
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21391 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21392 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21393 $as_echo_n "(cached) " >&6
21394 else
21395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21396 /* end confdefs.h. */
21397 #include <sys/time.h>
21398 struct timeval c;
21399 int gettimeofday (struct timeval *restrict, void *restrict);
21402 main ()
21404 /* glibc uses struct timezone * rather than the POSIX void *
21405 if _GNU_SOURCE is defined. However, since the only portable
21406 use of gettimeofday uses NULL as the second parameter, and
21407 since the glibc definition is actually more typesafe, it is
21408 not worth wrapping this to get a compliant signature. */
21409 int (*f) (struct timeval *restrict, void *restrict)
21410 = gettimeofday;
21411 int x = f (&c, 0);
21412 return !(x | c.tv_sec | c.tv_usec);
21415 return 0;
21417 _ACEOF
21418 if ac_fn_c_try_compile "$LINENO"; then :
21419 gl_cv_func_gettimeofday_posix_signature=yes
21420 else
21421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h. */
21423 #include <sys/time.h>
21424 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21427 main ()
21431 return 0;
21433 _ACEOF
21434 if ac_fn_c_try_compile "$LINENO"; then :
21435 gl_cv_func_gettimeofday_posix_signature=almost
21436 else
21437 gl_cv_func_gettimeofday_posix_signature=no
21439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21444 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21445 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21446 gl_gettimeofday_timezone='struct timezone'
21447 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21448 REPLACE_GETTIMEOFDAY=1
21450 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21451 REPLACE_GETTIMEOFDAY=1
21456 cat >>confdefs.h <<_ACEOF
21457 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21458 _ACEOF
21461 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21470 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21473 for ac_header in sys/timeb.h
21474 do :
21475 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21476 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21477 cat >>confdefs.h <<_ACEOF
21478 #define HAVE_SYS_TIMEB_H 1
21479 _ACEOF
21483 done
21485 for ac_func in _ftime
21486 do :
21487 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21488 if test "x$ac_cv_func__ftime" = x""yes; then :
21489 cat >>confdefs.h <<_ACEOF
21490 #define HAVE__FTIME 1
21491 _ACEOF
21494 done
21503 GNULIB_GETTIMEOFDAY=1
21514 if test $ac_cv_func_lstat = yes; then
21516 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21517 *no)
21518 REPLACE_LSTAT=1
21520 esac
21521 else
21522 HAVE_LSTAT=0
21525 if test $REPLACE_LSTAT = 1; then
21534 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21546 GNULIB_LSTAT=1
21558 if test $APPLE_UNIVERSAL_BUILD = 1; then
21559 # A universal build on Apple Mac OS X platforms.
21560 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21561 # But we need a configuration result that is valid in both modes.
21562 gl_cv_func_working_mktime=no
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21565 $as_echo_n "checking for working mktime... " >&6; }
21566 if test "${gl_cv_func_working_mktime+set}" = set; then :
21567 $as_echo_n "(cached) " >&6
21568 else
21569 if test "$cross_compiling" = yes; then :
21570 gl_cv_func_working_mktime=no
21571 else
21572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21573 /* end confdefs.h. */
21574 /* Test program from Paul Eggert and Tony Leneis. */
21575 #include <limits.h>
21576 #include <stdlib.h>
21577 #include <time.h>
21579 #ifdef HAVE_UNISTD_H
21580 # include <unistd.h>
21581 #endif
21583 #ifndef HAVE_ALARM
21584 # define alarm(X) /* empty */
21585 #endif
21587 /* Work around redefinition to rpl_putenv by other config tests. */
21588 #undef putenv
21590 static time_t time_t_max;
21591 static time_t time_t_min;
21593 /* Values we'll use to set the TZ environment variable. */
21594 static char *tz_strings[] = {
21595 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21596 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21598 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21600 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21601 Based on a problem report from Andreas Jaeger. */
21602 static int
21603 spring_forward_gap ()
21605 /* glibc (up to about 1998-10-07) failed this test. */
21606 struct tm tm;
21608 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21609 instead of "TZ=America/Vancouver" in order to detect the bug even
21610 on systems that don't support the Olson extension, or don't have the
21611 full zoneinfo tables installed. */
21612 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21614 tm.tm_year = 98;
21615 tm.tm_mon = 3;
21616 tm.tm_mday = 5;
21617 tm.tm_hour = 2;
21618 tm.tm_min = 0;
21619 tm.tm_sec = 0;
21620 tm.tm_isdst = -1;
21621 return mktime (&tm) != (time_t) -1;
21624 static int
21625 mktime_test1 (time_t now)
21627 struct tm *lt;
21628 return ! (lt = localtime (&now)) || mktime (lt) == now;
21631 static int
21632 mktime_test (time_t now)
21634 return (mktime_test1 (now)
21635 && mktime_test1 ((time_t) (time_t_max - now))
21636 && mktime_test1 ((time_t) (time_t_min + now)));
21639 static int
21640 irix_6_4_bug ()
21642 /* Based on code from Ariel Faigon. */
21643 struct tm tm;
21644 tm.tm_year = 96;
21645 tm.tm_mon = 3;
21646 tm.tm_mday = 0;
21647 tm.tm_hour = 0;
21648 tm.tm_min = 0;
21649 tm.tm_sec = 0;
21650 tm.tm_isdst = -1;
21651 mktime (&tm);
21652 return tm.tm_mon == 2 && tm.tm_mday == 31;
21655 static int
21656 bigtime_test (int j)
21658 struct tm tm;
21659 time_t now;
21660 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21661 now = mktime (&tm);
21662 if (now != (time_t) -1)
21664 struct tm *lt = localtime (&now);
21665 if (! (lt
21666 && lt->tm_year == tm.tm_year
21667 && lt->tm_mon == tm.tm_mon
21668 && lt->tm_mday == tm.tm_mday
21669 && lt->tm_hour == tm.tm_hour
21670 && lt->tm_min == tm.tm_min
21671 && lt->tm_sec == tm.tm_sec
21672 && lt->tm_yday == tm.tm_yday
21673 && lt->tm_wday == tm.tm_wday
21674 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21675 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21676 return 0;
21678 return 1;
21681 static int
21682 year_2050_test ()
21684 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21685 ignoring leap seconds. */
21686 unsigned long int answer = 2527315200UL;
21688 struct tm tm;
21689 time_t t;
21690 tm.tm_year = 2050 - 1900;
21691 tm.tm_mon = 2 - 1;
21692 tm.tm_mday = 1;
21693 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21694 tm.tm_isdst = -1;
21696 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21697 instead of "TZ=America/Vancouver" in order to detect the bug even
21698 on systems that don't support the Olson extension, or don't have the
21699 full zoneinfo tables installed. */
21700 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21702 t = mktime (&tm);
21704 /* Check that the result is either a failure, or close enough
21705 to the correct answer that we can assume the discrepancy is
21706 due to leap seconds. */
21707 return (t == (time_t) -1
21708 || (0 < t && answer - 120 <= t && t <= answer + 120));
21712 main ()
21714 int result = 0;
21715 time_t t, delta;
21716 int i, j;
21717 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21718 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21720 /* This test makes some buggy mktime implementations loop.
21721 Give up after 60 seconds; a mktime slower than that
21722 isn't worth using anyway. */
21723 alarm (60);
21725 time_t_max = (! time_t_signed
21726 ? (time_t) -1
21727 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21728 * 2 + 1));
21729 time_t_min = (! time_t_signed
21730 ? (time_t) 0
21731 : time_t_signed_magnitude
21732 ? ~ (time_t) 0
21733 : ~ time_t_max);
21735 delta = time_t_max / 997; /* a suitable prime number */
21736 for (i = 0; i < N_STRINGS; i++)
21738 if (tz_strings[i])
21739 putenv (tz_strings[i]);
21741 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21742 if (! mktime_test (t))
21743 result |= 1;
21744 if ((result & 2) == 0
21745 && ! (mktime_test ((time_t) 1)
21746 && mktime_test ((time_t) (60 * 60))
21747 && mktime_test ((time_t) (60 * 60 * 24))))
21748 result |= 2;
21750 for (j = 1; (result & 4) == 0; j <<= 1)
21752 if (! bigtime_test (j))
21753 result |= 4;
21754 if (INT_MAX / 2 < j)
21755 break;
21757 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21758 result |= 8;
21760 if (! irix_6_4_bug ())
21761 result |= 16;
21762 if (! spring_forward_gap ())
21763 result |= 32;
21764 if (! year_2050_test ())
21765 result |= 64;
21766 return result;
21768 _ACEOF
21769 if ac_fn_c_try_run "$LINENO"; then :
21770 gl_cv_func_working_mktime=yes
21771 else
21772 gl_cv_func_working_mktime=no
21774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21775 conftest.$ac_objext conftest.beam conftest.$ac_ext
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21781 $as_echo "$gl_cv_func_working_mktime" >&6; }
21783 if test $gl_cv_func_working_mktime = no; then
21784 REPLACE_MKTIME=1
21785 else
21786 REPLACE_MKTIME=0
21789 if test $REPLACE_MKTIME = 1; then
21798 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21807 GNULIB_MKTIME=1
21819 if test $ac_cv_func_pselect = yes; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21821 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21822 if test "${gl_cv_sig_pselect+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21824 else
21825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826 /* end confdefs.h. */
21827 #include <sys/select.h>
21830 main ()
21832 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21833 struct timespec const *restrict,
21834 sigset_t const *restrict) = pselect;
21835 return !p;
21837 return 0;
21839 _ACEOF
21840 if ac_fn_c_try_link "$LINENO"; then :
21841 gl_cv_sig_pselect=yes
21842 else
21843 gl_cv_sig_pselect=no
21845 rm -f core conftest.err conftest.$ac_objext \
21846 conftest$ac_exeext conftest.$ac_ext
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21849 $as_echo "$gl_cv_sig_pselect" >&6; }
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5
21852 $as_echo_n "checking whether pselect detects invalid fds... " >&6; }
21853 if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then :
21854 $as_echo_n "(cached) " >&6
21855 else
21857 if test "$cross_compiling" = yes; then :
21859 case "$host_os" in
21860 # Guess yes on glibc systems.
21861 *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;;
21862 # If we don't know, assume the worst.
21863 *) gl_cv_func_pselect_detects_ebadf="guessing no" ;;
21864 esac
21866 else
21867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21868 /* end confdefs.h. */
21870 #include <sys/types.h>
21871 #include <sys/time.h>
21872 #if HAVE_SYS_SELECT_H
21873 # include <sys/select.h>
21874 #endif
21875 #include <unistd.h>
21876 #include <errno.h>
21879 main ()
21882 fd_set set;
21883 dup2(0, 16);
21884 FD_ZERO(&set);
21885 FD_SET(16, &set);
21886 close(16);
21887 struct timespec timeout;
21888 timeout.tv_sec = 0;
21889 timeout.tv_nsec = 5000;
21890 return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF;
21893 return 0;
21895 _ACEOF
21896 if ac_fn_c_try_run "$LINENO"; then :
21897 gl_cv_func_pselect_detects_ebadf=yes
21898 else
21899 gl_cv_func_pselect_detects_ebadf=no
21901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21902 conftest.$ac_objext conftest.beam conftest.$ac_ext
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5
21908 $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; }
21909 case $gl_cv_func_pselect_detects_ebadf in
21910 *yes) ;;
21911 *) REPLACE_PSELECT=1 ;;
21912 esac
21915 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
21916 REPLACE_PSELECT=1
21919 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
21928 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
21936 GNULIB_PSELECT=1
21946 LIB_PTHREAD_SIGMASK=
21951 if test "$gl_threads_api" = posix; then
21952 if test $ac_cv_func_pthread_sigmask = yes; then
21954 else
21955 if test -n "$LIBMULTITHREAD"; then
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
21957 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
21958 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
21959 $as_echo_n "(cached) " >&6
21960 else
21961 gl_save_LIBS="$LIBS"
21962 LIBS="$LIBS $LIBMULTITHREAD"
21963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21964 /* end confdefs.h. */
21965 #include <pthread.h>
21966 #include <signal.h>
21969 main ()
21971 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
21973 return 0;
21976 _ACEOF
21977 if ac_fn_c_try_link "$LINENO"; then :
21978 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
21979 else
21980 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
21982 rm -f core conftest.err conftest.$ac_objext \
21983 conftest$ac_exeext conftest.$ac_ext
21984 LIBS="$gl_save_LIBS"
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
21988 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
21989 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
21990 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
21991 else
21992 HAVE_PTHREAD_SIGMASK=0
21994 else
21995 HAVE_PTHREAD_SIGMASK=0
21998 else
21999 if test $ac_cv_func_pthread_sigmask = yes; then
22000 REPLACE_PTHREAD_SIGMASK=1
22001 else
22002 HAVE_PTHREAD_SIGMASK=0
22009 if test $HAVE_PTHREAD_SIGMASK = 1; then
22012 if test -z "$LIB_PTHREAD_SIGMASK"; then
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
22014 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
22015 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
22016 $as_echo_n "(cached) " >&6
22017 else
22019 if test "$cross_compiling" = yes; then :
22021 case "$host_os" in
22022 freebsd* | hpux* | solaris | solaris2.[2-9]*)
22023 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
22025 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
22026 esac
22028 else
22029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22030 /* end confdefs.h. */
22032 #include <pthread.h>
22033 #include <signal.h>
22034 #include <stddef.h>
22035 int main ()
22037 sigset_t set;
22038 sigemptyset (&set);
22039 return pthread_sigmask (1729, &set, NULL) != 0;
22041 _ACEOF
22042 if ac_fn_c_try_run "$LINENO"; then :
22043 gl_cv_func_pthread_sigmask_in_libc_works=no
22044 else
22045 gl_cv_func_pthread_sigmask_in_libc_works=yes
22047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22048 conftest.$ac_objext conftest.beam conftest.$ac_ext
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
22054 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
22055 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
22056 *no)
22057 REPLACE_PTHREAD_SIGMASK=1
22059 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
22062 esac
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
22066 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
22067 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
22068 $as_echo_n "(cached) " >&6
22069 else
22071 gl_save_LIBS="$LIBS"
22072 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
22073 if test "$cross_compiling" = yes; then :
22074 case "$host_os" in
22075 cygwin*)
22076 gl_cv_func_pthread_sigmask_return_works="guessing no";;
22078 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
22079 esac
22081 else
22082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22083 /* end confdefs.h. */
22085 #include <pthread.h>
22086 #include <signal.h>
22087 #include <stddef.h>
22088 int main ()
22090 sigset_t set;
22091 sigemptyset (&set);
22092 if (pthread_sigmask (1729, &set, NULL) == -1)
22093 return 1;
22094 return 0;
22096 _ACEOF
22097 if ac_fn_c_try_run "$LINENO"; then :
22098 gl_cv_func_pthread_sigmask_return_works=yes
22099 else
22100 gl_cv_func_pthread_sigmask_return_works=no
22102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22103 conftest.$ac_objext conftest.beam conftest.$ac_ext
22106 LIBS="$gl_save_LIBS"
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
22110 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
22111 case "$gl_cv_func_pthread_sigmask_return_works" in
22112 *no)
22113 REPLACE_PTHREAD_SIGMASK=1
22115 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
22118 esac
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
22121 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
22122 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
22123 $as_echo_n "(cached) " >&6
22124 else
22126 case "$host_os" in
22127 irix*)
22128 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
22130 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
22131 esac
22132 gl_save_LIBS="$LIBS"
22133 LIBS="$LIBS $LIBMULTITHREAD"
22134 if test "$cross_compiling" = yes; then :
22136 else
22137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22138 /* end confdefs.h. */
22140 #include <pthread.h>
22141 #include <signal.h>
22142 #include <stdio.h>
22143 #include <stdlib.h>
22144 #include <unistd.h>
22145 static volatile int sigint_occurred;
22146 static void
22147 sigint_handler (int sig)
22149 sigint_occurred++;
22151 int main ()
22153 sigset_t set;
22154 int pid = getpid ();
22155 char command[80];
22156 signal (SIGINT, sigint_handler);
22157 sigemptyset (&set);
22158 sigaddset (&set, SIGINT);
22159 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
22160 return 1;
22161 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
22162 if (!(system (command) == 0))
22163 return 2;
22164 sleep (2);
22165 if (!(sigint_occurred == 0))
22166 return 3;
22167 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
22168 return 4;
22169 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
22170 return 5;
22171 return 0;
22173 _ACEOF
22174 if ac_fn_c_try_run "$LINENO"; then :
22176 else
22177 gl_cv_func_pthread_sigmask_unblock_works=no
22179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22180 conftest.$ac_objext conftest.beam conftest.$ac_ext
22183 LIBS="$gl_save_LIBS"
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
22187 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
22188 case "$gl_cv_func_pthread_sigmask_unblock_works" in
22189 *no)
22190 REPLACE_PTHREAD_SIGMASK=1
22192 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
22195 esac
22198 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
22207 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
22210 if test $HAVE_PTHREAD_SIGMASK = 1; then
22212 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
22222 GNULIB_PTHREAD_SIGMASK=1
22231 if test $ac_cv_func_readlink = no; then
22232 HAVE_READLINK=0
22233 else
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
22235 $as_echo_n "checking whether readlink signature is correct... " >&6; }
22236 if test "${gl_cv_decl_readlink_works+set}" = set; then :
22237 $as_echo_n "(cached) " >&6
22238 else
22239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240 /* end confdefs.h. */
22241 #include <unistd.h>
22242 /* Cause compilation failure if original declaration has wrong type. */
22243 ssize_t readlink (const char *, char *, size_t);
22245 main ()
22249 return 0;
22251 _ACEOF
22252 if ac_fn_c_try_compile "$LINENO"; then :
22253 gl_cv_decl_readlink_works=yes
22254 else
22255 gl_cv_decl_readlink_works=no
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
22260 $as_echo "$gl_cv_decl_readlink_works" >&6; }
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
22262 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
22263 if test "${gl_cv_func_readlink_works+set}" = set; then :
22264 $as_echo_n "(cached) " >&6
22265 else
22266 # We have readlink, so assume ln -s works.
22267 ln -s conftest.no-such conftest.link
22268 ln -s conftest.link conftest.lnk2
22269 if test "$cross_compiling" = yes; then :
22270 case "$host_os" in
22271 # Guess yes on glibc systems.
22272 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
22273 # If we don't know, assume the worst.
22274 *) gl_cv_func_readlink_works="guessing no" ;;
22275 esac
22277 else
22278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22279 /* end confdefs.h. */
22280 #include <unistd.h>
22283 main ()
22285 char buf[20];
22286 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22288 return 0;
22290 _ACEOF
22291 if ac_fn_c_try_run "$LINENO"; then :
22292 gl_cv_func_readlink_works=yes
22293 else
22294 gl_cv_func_readlink_works=no
22296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22297 conftest.$ac_objext conftest.beam conftest.$ac_ext
22300 rm -f conftest.link conftest.lnk2
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22303 $as_echo "$gl_cv_func_readlink_works" >&6; }
22304 case "$gl_cv_func_readlink_works" in
22305 *yes)
22306 if test "$gl_cv_decl_readlink_works" != yes; then
22307 REPLACE_READLINK=1
22312 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22314 REPLACE_READLINK=1
22316 esac
22319 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22328 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22339 GNULIB_READLINK=1
22356 if test $gl_cv_have_include_next = yes; then
22357 gl_cv_next_signal_h='<'signal.h'>'
22358 else
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22360 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22361 if test "${gl_cv_next_signal_h+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22363 else
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22367 #include <signal.h>
22369 _ACEOF
22370 case "$host_os" in
22371 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22372 *) gl_absname_cpp="$ac_cpp" ;;
22373 esac
22375 case "$host_os" in
22376 mingw*)
22377 gl_dirsep_regex='[/\\]'
22380 gl_dirsep_regex='\/'
22382 esac
22383 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22385 gl_header_literal_regex=`echo 'signal.h' \
22386 | sed -e "$gl_make_literal_regex_sed"`
22387 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22388 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22389 s|^/[^/]|//&|
22393 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22394 sed -n "$gl_absolute_header_sed"`'"'
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22399 $as_echo "$gl_cv_next_signal_h" >&6; }
22401 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22403 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22404 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22405 gl_next_as_first_directive='<'signal.h'>'
22406 else
22407 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22408 gl_next_as_first_directive=$gl_cv_next_signal_h
22410 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22416 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22417 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22418 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22419 #include <signal.h>
22422 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22424 else
22425 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22434 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22435 #include <signal.h>
22438 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22440 else
22441 HAVE_SIGHANDLER_T=0
22447 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22448 /* <sys/types.h> is not needed according to POSIX, but the
22449 <sys/socket.h> in i386-unknown-freebsd4.10 and
22450 powerpc-apple-darwin5.5 required it. */
22451 #include <sys/types.h>
22452 #if HAVE_SYS_SOCKET_H
22453 # include <sys/socket.h>
22454 #elif HAVE_WS2TCPIP_H
22455 # include <ws2tcpip.h>
22456 #endif
22459 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22461 else
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22463 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22464 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22465 $as_echo_n "(cached) " >&6
22466 else
22467 # Systems have either "struct sockaddr *" or
22468 # "void *" as the second argument to getpeername
22469 gl_cv_socklen_t_equiv=
22470 for arg2 in "struct sockaddr" void; do
22471 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22474 #include <sys/types.h>
22475 #include <sys/socket.h>
22477 int getpeername (int, $arg2 *, $t *);
22479 main ()
22481 $t len;
22482 getpeername (0, 0, &len);
22484 return 0;
22486 _ACEOF
22487 if ac_fn_c_try_compile "$LINENO"; then :
22488 gl_cv_socklen_t_equiv="$t"
22490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22491 test "$gl_cv_socklen_t_equiv" != "" && break
22492 done
22493 test "$gl_cv_socklen_t_equiv" != "" && break
22494 done
22498 if test "$gl_cv_socklen_t_equiv" = ""; then
22499 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22502 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22504 cat >>confdefs.h <<_ACEOF
22505 #define socklen_t $gl_cv_socklen_t_equiv
22506 _ACEOF
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22512 $as_echo_n "checking for ssize_t... " >&6; }
22513 if test "${gt_cv_ssize_t+set}" = set; then :
22514 $as_echo_n "(cached) " >&6
22515 else
22516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22517 /* end confdefs.h. */
22518 #include <sys/types.h>
22520 main ()
22522 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22523 return !x;
22525 return 0;
22527 _ACEOF
22528 if ac_fn_c_try_compile "$LINENO"; then :
22529 gt_cv_ssize_t=yes
22530 else
22531 gt_cv_ssize_t=no
22533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22536 $as_echo "$gt_cv_ssize_t" >&6; }
22537 if test $gt_cv_ssize_t = no; then
22539 $as_echo "#define ssize_t int" >>confdefs.h
22547 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>
22548 #include <sys/stat.h>
22550 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22552 cat >>confdefs.h <<_ACEOF
22553 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22554 _ACEOF
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22557 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22558 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22559 $as_echo_n "(cached) " >&6
22560 else
22561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22562 /* end confdefs.h. */
22564 #include <sys/types.h>
22565 #include <sys/stat.h>
22566 #if HAVE_SYS_TIME_H
22567 # include <sys/time.h>
22568 #endif
22569 #include <time.h>
22570 struct timespec ts;
22571 struct stat st;
22574 main ()
22577 st.st_atim = ts;
22580 return 0;
22582 _ACEOF
22583 if ac_fn_c_try_compile "$LINENO"; then :
22584 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22585 else
22586 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22591 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22592 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22594 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22597 else
22598 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>
22599 #include <sys/stat.h>
22601 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22603 cat >>confdefs.h <<_ACEOF
22604 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22605 _ACEOF
22608 else
22609 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22610 #include <sys/stat.h>
22612 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22614 cat >>confdefs.h <<_ACEOF
22615 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22616 _ACEOF
22619 else
22620 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>
22621 #include <sys/stat.h>
22623 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22625 cat >>confdefs.h <<_ACEOF
22626 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22627 _ACEOF
22642 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>
22643 #include <sys/stat.h>
22645 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22647 cat >>confdefs.h <<_ACEOF
22648 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22649 _ACEOF
22652 else
22653 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22654 #include <sys/stat.h>
22656 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22658 cat >>confdefs.h <<_ACEOF
22659 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22660 _ACEOF
22663 else
22664 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>
22665 #include <sys/stat.h>
22667 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22669 cat >>confdefs.h <<_ACEOF
22670 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22671 _ACEOF
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22683 $as_echo_n "checking for working stdalign.h... " >&6; }
22684 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22685 $as_echo_n "(cached) " >&6
22686 else
22687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22688 /* end confdefs.h. */
22689 #include <stdalign.h>
22690 #include <stddef.h>
22692 /* Test that alignof yields a result consistent with offsetof.
22693 This catches GCC bug 52023
22694 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22695 #ifdef __cplusplus
22696 template <class t> struct alignof_helper { char a; t b; };
22697 # define ao(type) offsetof (alignof_helper<type>, b)
22698 #else
22699 # define ao(type) offsetof (struct { char a; type b; }, b)
22700 #endif
22701 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22702 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22703 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22705 /* Test _Alignas only on platforms where gnulib can help. */
22706 #if \
22707 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22708 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22709 int alignas (8) alignas_int = 1;
22710 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22711 #endif
22714 main ()
22718 return 0;
22720 _ACEOF
22721 if ac_fn_c_try_compile "$LINENO"; then :
22722 gl_cv_header_working_stdalign_h=yes
22723 else
22724 gl_cv_header_working_stdalign_h=no
22726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22729 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22731 if test $gl_cv_header_working_stdalign_h = yes; then
22732 STDALIGN_H=''
22733 else
22734 STDALIGN_H='stdalign.h'
22738 if test -n "$STDALIGN_H"; then
22739 GL_GENERATE_STDALIGN_H_TRUE=
22740 GL_GENERATE_STDALIGN_H_FALSE='#'
22741 else
22742 GL_GENERATE_STDALIGN_H_TRUE='#'
22743 GL_GENERATE_STDALIGN_H_FALSE=
22748 STDARG_H=''
22749 NEXT_STDARG_H='<stdarg.h>'
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22751 $as_echo_n "checking for va_copy... " >&6; }
22752 if test "${gl_cv_func_va_copy+set}" = set; then :
22753 $as_echo_n "(cached) " >&6
22754 else
22756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22757 /* end confdefs.h. */
22758 #include <stdarg.h>
22760 main ()
22763 #ifndef va_copy
22764 void (*func) (va_list, va_list) = va_copy;
22765 #endif
22768 return 0;
22770 _ACEOF
22771 if ac_fn_c_try_compile "$LINENO"; then :
22772 gl_cv_func_va_copy=yes
22773 else
22774 gl_cv_func_va_copy=no
22776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22780 $as_echo "$gl_cv_func_va_copy" >&6; }
22781 if test $gl_cv_func_va_copy = no; then
22782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22783 /* end confdefs.h. */
22784 #if defined _AIX && !defined __GNUC__
22785 AIX vaccine
22786 #endif
22788 _ACEOF
22789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22790 $EGREP "vaccine" >/dev/null 2>&1; then :
22791 gl_aixcc=yes
22792 else
22793 gl_aixcc=no
22795 rm -f conftest*
22797 if test $gl_aixcc = yes; then
22798 STDARG_H=stdarg.h
22807 if test $gl_cv_have_include_next = yes; then
22808 gl_cv_next_stdarg_h='<'stdarg.h'>'
22809 else
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22811 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22812 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22813 $as_echo_n "(cached) " >&6
22814 else
22816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22817 /* end confdefs.h. */
22818 #include <stdarg.h>
22820 _ACEOF
22821 case "$host_os" in
22822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22823 *) gl_absname_cpp="$ac_cpp" ;;
22824 esac
22826 case "$host_os" in
22827 mingw*)
22828 gl_dirsep_regex='[/\\]'
22831 gl_dirsep_regex='\/'
22833 esac
22834 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22836 gl_header_literal_regex=`echo 'stdarg.h' \
22837 | sed -e "$gl_make_literal_regex_sed"`
22838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22840 s|^/[^/]|//&|
22844 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22845 sed -n "$gl_absolute_header_sed"`'"'
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22850 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22852 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22854 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22855 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22856 gl_next_as_first_directive='<'stdarg.h'>'
22857 else
22858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22859 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22861 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22866 if test "$gl_cv_next_stdarg_h" = '""'; then
22867 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22868 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22870 else
22872 saved_as_echo_n="$as_echo_n"
22873 as_echo_n=':'
22874 if test "${gl_cv_func___va_copy+set}" = set; then :
22875 $as_echo_n "(cached) " >&6
22876 else
22878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22879 /* end confdefs.h. */
22880 #include <stdarg.h>
22882 main ()
22885 #ifndef __va_copy
22886 error, bail out
22887 #endif
22890 return 0;
22892 _ACEOF
22893 if ac_fn_c_try_compile "$LINENO"; then :
22894 gl_cv_func___va_copy=yes
22895 else
22896 gl_cv_func___va_copy=no
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 as_echo_n="$saved_as_echo_n"
22903 if test $gl_cv_func___va_copy = yes; then
22905 $as_echo "#define va_copy __va_copy" >>confdefs.h
22907 else
22910 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22916 if test -n "$STDARG_H"; then
22917 GL_GENERATE_STDARG_H_TRUE=
22918 GL_GENERATE_STDARG_H_FALSE='#'
22919 else
22920 GL_GENERATE_STDARG_H_TRUE='#'
22921 GL_GENERATE_STDARG_H_FALSE=
22929 # Define two additional variables used in the Makefile substitution.
22931 if test "$ac_cv_header_stdbool_h" = yes; then
22932 STDBOOL_H=''
22933 else
22934 STDBOOL_H='stdbool.h'
22937 if test -n "$STDBOOL_H"; then
22938 GL_GENERATE_STDBOOL_H_TRUE=
22939 GL_GENERATE_STDBOOL_H_FALSE='#'
22940 else
22941 GL_GENERATE_STDBOOL_H_TRUE='#'
22942 GL_GENERATE_STDBOOL_H_FALSE=
22946 if test "$ac_cv_type__Bool" = yes; then
22947 HAVE__BOOL=1
22948 else
22949 HAVE__BOOL=0
22956 STDDEF_H=
22957 if test $gt_cv_c_wchar_t = no; then
22958 HAVE_WCHAR_T=0
22959 STDDEF_H=stddef.h
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22962 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22963 if test "${gl_cv_decl_null_works+set}" = set; then :
22964 $as_echo_n "(cached) " >&6
22965 else
22966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22967 /* end confdefs.h. */
22968 #include <stddef.h>
22969 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22972 main ()
22976 return 0;
22978 _ACEOF
22979 if ac_fn_c_try_compile "$LINENO"; then :
22980 gl_cv_decl_null_works=yes
22981 else
22982 gl_cv_decl_null_works=no
22984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22987 $as_echo "$gl_cv_decl_null_works" >&6; }
22988 if test $gl_cv_decl_null_works = no; then
22989 REPLACE_NULL=1
22990 STDDEF_H=stddef.h
22993 if test -n "$STDDEF_H"; then
22994 GL_GENERATE_STDDEF_H_TRUE=
22995 GL_GENERATE_STDDEF_H_FALSE='#'
22996 else
22997 GL_GENERATE_STDDEF_H_TRUE='#'
22998 GL_GENERATE_STDDEF_H_FALSE=
23001 if test -n "$STDDEF_H"; then
23010 if test $gl_cv_have_include_next = yes; then
23011 gl_cv_next_stddef_h='<'stddef.h'>'
23012 else
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23014 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23015 if test "${gl_cv_next_stddef_h+set}" = set; then :
23016 $as_echo_n "(cached) " >&6
23017 else
23019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23020 /* end confdefs.h. */
23021 #include <stddef.h>
23023 _ACEOF
23024 case "$host_os" in
23025 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23026 *) gl_absname_cpp="$ac_cpp" ;;
23027 esac
23029 case "$host_os" in
23030 mingw*)
23031 gl_dirsep_regex='[/\\]'
23034 gl_dirsep_regex='\/'
23036 esac
23037 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23039 gl_header_literal_regex=`echo 'stddef.h' \
23040 | sed -e "$gl_make_literal_regex_sed"`
23041 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23042 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23043 s|^/[^/]|//&|
23047 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23048 sed -n "$gl_absolute_header_sed"`'"'
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23053 $as_echo "$gl_cv_next_stddef_h" >&6; }
23055 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23057 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23058 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23059 gl_next_as_first_directive='<'stddef.h'>'
23060 else
23061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23062 gl_next_as_first_directive=$gl_cv_next_stddef_h
23064 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23083 if test $gl_cv_have_include_next = yes; then
23084 gl_cv_next_stdio_h='<'stdio.h'>'
23085 else
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23087 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23088 if test "${gl_cv_next_stdio_h+set}" = set; then :
23089 $as_echo_n "(cached) " >&6
23090 else
23092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23093 /* end confdefs.h. */
23094 #include <stdio.h>
23096 _ACEOF
23097 case "$host_os" in
23098 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23099 *) gl_absname_cpp="$ac_cpp" ;;
23100 esac
23102 case "$host_os" in
23103 mingw*)
23104 gl_dirsep_regex='[/\\]'
23107 gl_dirsep_regex='\/'
23109 esac
23110 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23112 gl_header_literal_regex=`echo 'stdio.h' \
23113 | sed -e "$gl_make_literal_regex_sed"`
23114 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23115 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23116 s|^/[^/]|//&|
23120 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23121 sed -n "$gl_absolute_header_sed"`'"'
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23126 $as_echo "$gl_cv_next_stdio_h" >&6; }
23128 NEXT_STDIO_H=$gl_cv_next_stdio_h
23130 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23132 gl_next_as_first_directive='<'stdio.h'>'
23133 else
23134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23135 gl_next_as_first_directive=$gl_cv_next_stdio_h
23137 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23143 GNULIB_FSCANF=1
23146 cat >>confdefs.h <<_ACEOF
23147 #define GNULIB_FSCANF 1
23148 _ACEOF
23151 GNULIB_SCANF=1
23154 cat >>confdefs.h <<_ACEOF
23155 #define GNULIB_SCANF 1
23156 _ACEOF
23159 GNULIB_FGETC=1
23160 GNULIB_GETC=1
23161 GNULIB_GETCHAR=1
23162 GNULIB_FGETS=1
23163 GNULIB_FREAD=1
23166 GNULIB_FPRINTF=1
23167 GNULIB_PRINTF=1
23168 GNULIB_VFPRINTF=1
23169 GNULIB_VPRINTF=1
23170 GNULIB_FPUTC=1
23171 GNULIB_PUTC=1
23172 GNULIB_PUTCHAR=1
23173 GNULIB_FPUTS=1
23174 GNULIB_PUTS=1
23175 GNULIB_FWRITE=1
23191 if test $gl_cv_have_include_next = yes; then
23192 gl_cv_next_stdlib_h='<'stdlib.h'>'
23193 else
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23195 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23196 if test "${gl_cv_next_stdlib_h+set}" = set; then :
23197 $as_echo_n "(cached) " >&6
23198 else
23200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23201 /* end confdefs.h. */
23202 #include <stdlib.h>
23204 _ACEOF
23205 case "$host_os" in
23206 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23207 *) gl_absname_cpp="$ac_cpp" ;;
23208 esac
23210 case "$host_os" in
23211 mingw*)
23212 gl_dirsep_regex='[/\\]'
23215 gl_dirsep_regex='\/'
23217 esac
23218 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23220 gl_header_literal_regex=`echo 'stdlib.h' \
23221 | sed -e "$gl_make_literal_regex_sed"`
23222 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23223 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23224 s|^/[^/]|//&|
23228 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23229 sed -n "$gl_absolute_header_sed"`'"'
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23234 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23236 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23238 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23239 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23240 gl_next_as_first_directive='<'stdlib.h'>'
23241 else
23242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23243 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23245 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23255 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
23263 $as_echo "#define my_strftime nstrftime" >>confdefs.h
23272 if test "$ac_cv_have_decl_strtoimax" != yes; then
23273 HAVE_DECL_STRTOIMAX=0
23276 if test $ac_cv_func_strtoimax = yes; then
23277 HAVE_STRTOIMAX=1
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
23279 $as_echo_n "checking whether strtoimax works... " >&6; }
23280 if test "${gl_cv_func_strtoimax+set}" = set; then :
23281 $as_echo_n "(cached) " >&6
23282 else
23283 if test "$cross_compiling" = yes; then :
23284 case "$host_os" in
23285 # Guess no on AIX 5.
23286 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23287 # Guess yes otherwise.
23288 *) gl_cv_func_strtoimax="guessing yes" ;;
23289 esac
23291 else
23292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23293 /* end confdefs.h. */
23295 #include <errno.h>
23296 #include <string.h>
23297 #include <inttypes.h>
23298 int main ()
23300 if (sizeof (intmax_t) > sizeof (int))
23302 const char *s = "4294967295";
23303 char *p;
23304 intmax_t res;
23305 errno = 0;
23306 res = strtoimax (s, &p, 10);
23307 if (p != s + strlen (s))
23308 return 1;
23309 if (errno != 0)
23310 return 2;
23311 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23312 return 3;
23314 else
23316 const char *s = "2147483647";
23317 char *p;
23318 intmax_t res;
23319 errno = 0;
23320 res = strtoimax (s, &p, 10);
23321 if (p != s + strlen (s))
23322 return 1;
23323 if (errno != 0)
23324 return 2;
23325 if (res != 2147483647)
23326 return 3;
23328 return 0;
23331 _ACEOF
23332 if ac_fn_c_try_run "$LINENO"; then :
23333 gl_cv_func_strtoimax=yes
23334 else
23335 gl_cv_func_strtoimax=no
23337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23338 conftest.$ac_objext conftest.beam conftest.$ac_ext
23343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23344 $as_echo "$gl_cv_func_strtoimax" >&6; }
23345 case "$gl_cv_func_strtoimax" in
23346 *no) REPLACE_STRTOIMAX=1 ;;
23347 esac
23348 else
23349 HAVE_STRTOIMAX=0
23352 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23361 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23364 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23365 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23366 ac_have_decl=1
23367 else
23368 ac_have_decl=0
23371 cat >>confdefs.h <<_ACEOF
23372 #define HAVE_DECL_STRTOLL $ac_have_decl
23373 _ACEOF
23383 GNULIB_STRTOIMAX=1
23393 if test "$ac_cv_have_decl_strtoumax" != yes; then
23394 HAVE_DECL_STRTOUMAX=0
23397 if test $ac_cv_func_strtoumax = no; then
23406 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23409 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23410 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23411 ac_have_decl=1
23412 else
23413 ac_have_decl=0
23416 cat >>confdefs.h <<_ACEOF
23417 #define HAVE_DECL_STRTOULL $ac_have_decl
23418 _ACEOF
23428 GNULIB_STRTOUMAX=1
23436 if test $ac_cv_func_symlink = no; then
23437 HAVE_SYMLINK=0
23438 else
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23440 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23441 if test "${gl_cv_func_symlink_works+set}" = set; then :
23442 $as_echo_n "(cached) " >&6
23443 else
23444 if test "$cross_compiling" = yes; then :
23445 case "$host_os" in
23446 # Guess yes on glibc systems.
23447 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23448 # If we don't know, assume the worst.
23449 *) gl_cv_func_symlink_works="guessing no" ;;
23450 esac
23452 else
23453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23454 /* end confdefs.h. */
23455 #include <unistd.h>
23458 main ()
23460 int result = 0;
23461 if (!symlink ("a", "conftest.link/"))
23462 result |= 1;
23463 if (symlink ("conftest.f", "conftest.lnk2"))
23464 result |= 2;
23465 else if (!symlink ("a", "conftest.lnk2/"))
23466 result |= 4;
23467 return result;
23470 return 0;
23472 _ACEOF
23473 if ac_fn_c_try_run "$LINENO"; then :
23474 gl_cv_func_symlink_works=yes
23475 else
23476 gl_cv_func_symlink_works=no
23478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23479 conftest.$ac_objext conftest.beam conftest.$ac_ext
23482 rm -f conftest.f conftest.link conftest.lnk2
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23485 $as_echo "$gl_cv_func_symlink_works" >&6; }
23486 case "$gl_cv_func_symlink_works" in
23487 *yes) ;;
23489 REPLACE_SYMLINK=1
23491 esac
23494 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23503 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23511 GNULIB_SYMLINK=1
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23521 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23522 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23523 $as_echo_n "(cached) " >&6
23524 else
23526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527 /* end confdefs.h. */
23528 #include <sys/select.h>
23530 main ()
23532 struct timeval b;
23534 return 0;
23536 _ACEOF
23537 if ac_fn_c_try_compile "$LINENO"; then :
23538 gl_cv_header_sys_select_h_selfcontained=yes
23539 else
23540 gl_cv_header_sys_select_h_selfcontained=no
23542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23543 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23545 /* end confdefs.h. */
23546 #include <sys/select.h>
23548 main ()
23550 int memset; int bzero;
23552 return 0;
23555 _ACEOF
23556 if ac_fn_c_try_compile "$LINENO"; then :
23557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558 /* end confdefs.h. */
23559 #include <sys/select.h>
23561 main ()
23564 #undef memset
23565 #define memset nonexistent_memset
23566 extern
23567 #ifdef __cplusplus
23569 #endif
23570 void *memset (void *, int, unsigned long);
23571 #undef bzero
23572 #define bzero nonexistent_bzero
23573 extern
23574 #ifdef __cplusplus
23576 #endif
23577 void bzero (void *, unsigned long);
23578 fd_set fds;
23579 FD_ZERO (&fds);
23582 return 0;
23585 _ACEOF
23586 if ac_fn_c_try_link "$LINENO"; then :
23588 else
23589 gl_cv_header_sys_select_h_selfcontained=no
23591 rm -f core conftest.err conftest.$ac_objext \
23592 conftest$ac_exeext conftest.$ac_ext
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23600 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23610 if test $gl_cv_have_include_next = yes; then
23611 gl_cv_next_sys_select_h='<'sys/select.h'>'
23612 else
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23614 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23615 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23616 $as_echo_n "(cached) " >&6
23617 else
23619 if test $ac_cv_header_sys_select_h = yes; then
23622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23623 /* end confdefs.h. */
23624 #include <sys/select.h>
23626 _ACEOF
23627 case "$host_os" in
23628 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23629 *) gl_absname_cpp="$ac_cpp" ;;
23630 esac
23632 case "$host_os" in
23633 mingw*)
23634 gl_dirsep_regex='[/\\]'
23637 gl_dirsep_regex='\/'
23639 esac
23640 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23642 gl_header_literal_regex=`echo 'sys/select.h' \
23643 | sed -e "$gl_make_literal_regex_sed"`
23644 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23645 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23646 s|^/[^/]|//&|
23650 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23651 sed -n "$gl_absolute_header_sed"`'"'
23652 else
23653 gl_cv_next_sys_select_h='<'sys/select.h'>'
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23659 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23661 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23663 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23664 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23665 gl_next_as_first_directive='<'sys/select.h'>'
23666 else
23667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23668 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23670 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23675 if test $ac_cv_header_sys_select_h = yes; then
23676 HAVE_SYS_SELECT_H=1
23677 else
23678 HAVE_SYS_SELECT_H=0
23685 if test $ac_cv_header_sys_socket_h != yes; then
23686 for ac_header in winsock2.h
23687 do :
23688 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23689 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23690 cat >>confdefs.h <<_ACEOF
23691 #define HAVE_WINSOCK2_H 1
23692 _ACEOF
23696 done
23699 if test "$ac_cv_header_winsock2_h" = yes; then
23700 HAVE_WINSOCK2_H=1
23701 UNISTD_H_HAVE_WINSOCK2_H=1
23702 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23703 else
23704 HAVE_WINSOCK2_H=0
23728 if test $gl_cv_have_include_next = yes; then
23729 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23730 else
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23732 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23733 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23734 $as_echo_n "(cached) " >&6
23735 else
23737 if test $ac_cv_header_sys_stat_h = yes; then
23740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h. */
23742 #include <sys/stat.h>
23744 _ACEOF
23745 case "$host_os" in
23746 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23747 *) gl_absname_cpp="$ac_cpp" ;;
23748 esac
23750 case "$host_os" in
23751 mingw*)
23752 gl_dirsep_regex='[/\\]'
23755 gl_dirsep_regex='\/'
23757 esac
23758 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23760 gl_header_literal_regex=`echo 'sys/stat.h' \
23761 | sed -e "$gl_make_literal_regex_sed"`
23762 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23764 s|^/[^/]|//&|
23768 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23769 sed -n "$gl_absolute_header_sed"`'"'
23770 else
23771 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23777 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23779 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23781 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23783 gl_next_as_first_directive='<'sys/stat.h'>'
23784 else
23785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23786 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23788 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23800 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23802 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23806 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23807 #include <sys/stat.h>
23809 if test "x$ac_cv_type_nlink_t" = x""yes; then :
23811 else
23813 $as_echo "#define nlink_t int" >>confdefs.h
23834 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23836 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
23837 ac_have_decl=1
23838 else
23839 ac_have_decl=0
23842 cat >>confdefs.h <<_ACEOF
23843 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23844 _ACEOF
23846 if test $ac_cv_have_decl_localtime_r = no; then
23847 HAVE_DECL_LOCALTIME_R=0
23851 if test $ac_cv_func_localtime_r = yes; then
23852 HAVE_LOCALTIME_R=1
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23854 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23855 if test "${gl_cv_time_r_posix+set}" = set; then :
23856 $as_echo_n "(cached) " >&6
23857 else
23858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23859 /* end confdefs.h. */
23860 #include <time.h>
23862 main ()
23864 /* We don't need to append 'restrict's to the argument types,
23865 even though the POSIX signature has the 'restrict's,
23866 since C99 says they can't affect type compatibility. */
23867 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23868 if (ptr) return 0;
23869 /* Check the return type is a pointer.
23870 On HP-UX 10 it is 'int'. */
23871 *localtime_r (0, 0);
23873 return 0;
23876 _ACEOF
23877 if ac_fn_c_try_compile "$LINENO"; then :
23878 gl_cv_time_r_posix=yes
23879 else
23880 gl_cv_time_r_posix=no
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23886 $as_echo "$gl_cv_time_r_posix" >&6; }
23887 if test $gl_cv_time_r_posix = yes; then
23888 REPLACE_LOCALTIME_R=0
23889 else
23890 REPLACE_LOCALTIME_R=1
23892 else
23893 HAVE_LOCALTIME_R=0
23896 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
23905 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
23916 GNULIB_TIME_R=1
23927 LIB_TIMER_TIME=
23929 gl_saved_libs=$LIBS
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
23931 $as_echo_n "checking for library containing timer_settime... " >&6; }
23932 if test "${ac_cv_search_timer_settime+set}" = set; then :
23933 $as_echo_n "(cached) " >&6
23934 else
23935 ac_func_search_save_LIBS=$LIBS
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h. */
23939 /* Override any GCC internal prototype to avoid an error.
23940 Use char because int might match the return type of a GCC
23941 builtin and then its argument prototype would still apply. */
23942 #ifdef __cplusplus
23943 extern "C"
23944 #endif
23945 char timer_settime ();
23947 main ()
23949 return timer_settime ();
23951 return 0;
23953 _ACEOF
23954 for ac_lib in '' rt posix4; do
23955 if test -z "$ac_lib"; then
23956 ac_res="none required"
23957 else
23958 ac_res=-l$ac_lib
23959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23961 if ac_fn_c_try_link "$LINENO"; then :
23962 ac_cv_search_timer_settime=$ac_res
23964 rm -f core conftest.err conftest.$ac_objext \
23965 conftest$ac_exeext
23966 if test "${ac_cv_search_timer_settime+set}" = set; then :
23967 break
23969 done
23970 if test "${ac_cv_search_timer_settime+set}" = set; then :
23972 else
23973 ac_cv_search_timer_settime=no
23975 rm conftest.$ac_ext
23976 LIBS=$ac_func_search_save_LIBS
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
23979 $as_echo "$ac_cv_search_timer_settime" >&6; }
23980 ac_res=$ac_cv_search_timer_settime
23981 if test "$ac_res" != no; then :
23982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23983 test "$ac_cv_search_timer_settime" = "none required" ||
23984 LIB_TIMER_TIME=$ac_cv_search_timer_settime
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23990 #include <features.h>
23991 #ifdef __GNU_LIBRARY__
23992 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
23993 && !defined __UCLIBC__
23994 Thread emulation available
23995 #endif
23996 #endif
23998 _ACEOF
23999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24000 $EGREP "Thread" >/dev/null 2>&1; then :
24001 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
24003 rm -f conftest*
24005 for ac_func in timer_settime
24006 do :
24007 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
24008 if test "x$ac_cv_func_timer_settime" = x""yes; then :
24009 cat >>confdefs.h <<_ACEOF
24010 #define HAVE_TIMER_SETTIME 1
24011 _ACEOF
24014 done
24016 LIBS=$gl_saved_libs
24032 if test $gl_cv_have_include_next = yes; then
24033 gl_cv_next_unistd_h='<'unistd.h'>'
24034 else
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24036 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24037 if test "${gl_cv_next_unistd_h+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24039 else
24041 if test $ac_cv_header_unistd_h = yes; then
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045 /* end confdefs.h. */
24046 #include <unistd.h>
24048 _ACEOF
24049 case "$host_os" in
24050 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24051 *) gl_absname_cpp="$ac_cpp" ;;
24052 esac
24054 case "$host_os" in
24055 mingw*)
24056 gl_dirsep_regex='[/\\]'
24059 gl_dirsep_regex='\/'
24061 esac
24062 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24064 gl_header_literal_regex=`echo 'unistd.h' \
24065 | sed -e "$gl_make_literal_regex_sed"`
24066 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24068 s|^/[^/]|//&|
24072 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24073 sed -n "$gl_absolute_header_sed"`'"'
24074 else
24075 gl_cv_next_unistd_h='<'unistd.h'>'
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24081 $as_echo "$gl_cv_next_unistd_h" >&6; }
24083 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24085 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24087 gl_next_as_first_directive='<'unistd.h'>'
24088 else
24089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24090 gl_next_as_first_directive=$gl_cv_next_unistd_h
24092 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24097 if test $ac_cv_header_unistd_h = yes; then
24098 HAVE_UNISTD_H=1
24099 else
24100 HAVE_UNISTD_H=0
24116 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
24118 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
24119 if test "${gl_cv_func_futimesat_works+set}" = set; then :
24120 $as_echo_n "(cached) " >&6
24121 else
24122 touch conftest.file
24123 if test "$cross_compiling" = yes; then :
24124 case "$host_os" in
24125 # Guess yes on glibc systems.
24126 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
24127 # If we don't know, assume the worst.
24128 *) gl_cv_func_futimesat_works="guessing no" ;;
24129 esac
24131 else
24132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h. */
24135 #include <stddef.h>
24136 #include <sys/times.h>
24137 #include <fcntl.h>
24140 main ()
24142 int fd = open ("conftest.file", O_RDWR);
24143 if (fd < 0) return 1;
24144 if (futimesat (fd, NULL, NULL)) return 2;
24147 return 0;
24149 _ACEOF
24150 if ac_fn_c_try_run "$LINENO"; then :
24151 gl_cv_func_futimesat_works=yes
24152 else
24153 gl_cv_func_futimesat_works=no
24155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24156 conftest.$ac_objext conftest.beam conftest.$ac_ext
24159 rm -f conftest.file
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
24162 $as_echo "$gl_cv_func_futimesat_works" >&6; }
24163 case "$gl_cv_func_futimesat_works" in
24164 *yes) ;;
24167 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
24170 esac
24173 gl_gnulib_enabled_dosname=false
24174 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
24175 gl_gnulib_enabled_pathmax=false
24176 gl_gnulib_enabled_stat=false
24177 gl_gnulib_enabled_strtoll=false
24178 gl_gnulib_enabled_strtoull=false
24179 gl_gnulib_enabled_verify=false
24180 func_gl_gnulib_m4code_dosname ()
24182 if ! $gl_gnulib_enabled_dosname; then
24183 gl_gnulib_enabled_dosname=true
24186 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
24188 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24191 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
24194 func_gl_gnulib_m4code_pathmax ()
24196 if ! $gl_gnulib_enabled_pathmax; then
24200 gl_gnulib_enabled_pathmax=true
24203 func_gl_gnulib_m4code_stat ()
24205 if ! $gl_gnulib_enabled_stat; then
24209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
24210 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
24211 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
24212 $as_echo_n "(cached) " >&6
24213 else
24214 if test "$cross_compiling" = yes; then :
24215 case $host_os in
24216 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
24217 *) gl_cv_func_stat_dir_slash="guessing yes";;
24218 esac
24219 else
24220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24221 /* end confdefs.h. */
24222 #include <sys/stat.h>
24225 main ()
24227 struct stat st; return stat (".", &st) != stat ("./", &st);
24229 return 0;
24231 _ACEOF
24232 if ac_fn_c_try_run "$LINENO"; then :
24233 gl_cv_func_stat_dir_slash=yes
24234 else
24235 gl_cv_func_stat_dir_slash=no
24237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24238 conftest.$ac_objext conftest.beam conftest.$ac_ext
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
24243 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
24245 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
24246 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
24247 $as_echo_n "(cached) " >&6
24248 else
24249 touch conftest.tmp
24250 # Assume that if we have lstat, we can also check symlinks.
24251 if test $ac_cv_func_lstat = yes; then
24252 ln -s conftest.tmp conftest.lnk
24254 if test "$cross_compiling" = yes; then :
24255 case "$host_os" in
24256 # Guess yes on glibc systems.
24257 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
24258 # If we don't know, assume the worst.
24259 *) gl_cv_func_stat_file_slash="guessing no" ;;
24260 esac
24262 else
24263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24264 /* end confdefs.h. */
24265 #include <sys/stat.h>
24268 main ()
24270 int result = 0;
24271 struct stat st;
24272 if (!stat ("conftest.tmp/", &st))
24273 result |= 1;
24274 #if HAVE_LSTAT
24275 if (!stat ("conftest.lnk/", &st))
24276 result |= 2;
24277 #endif
24278 return result;
24281 return 0;
24283 _ACEOF
24284 if ac_fn_c_try_run "$LINENO"; then :
24285 gl_cv_func_stat_file_slash=yes
24286 else
24287 gl_cv_func_stat_file_slash=no
24289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24290 conftest.$ac_objext conftest.beam conftest.$ac_ext
24293 rm -f conftest.tmp conftest.lnk
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24296 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24297 case $gl_cv_func_stat_dir_slash in
24298 *no) REPLACE_STAT=1
24300 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
24302 esac
24303 case $gl_cv_func_stat_file_slash in
24304 *no) REPLACE_STAT=1
24306 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24308 esac
24310 if test $REPLACE_STAT = 1; then
24319 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
24331 GNULIB_STAT=1
24337 gl_gnulib_enabled_stat=true
24338 if test $REPLACE_STAT = 1; then
24339 func_gl_gnulib_m4code_dosname
24341 if test $REPLACE_STAT = 1; then
24342 func_gl_gnulib_m4code_pathmax
24344 if test $REPLACE_STAT = 1; then
24345 func_gl_gnulib_m4code_verify
24349 func_gl_gnulib_m4code_strtoll ()
24351 if ! $gl_gnulib_enabled_strtoll; then
24355 if test "$ac_cv_type_long_long_int" = yes; then
24356 for ac_func in strtoll
24357 do :
24358 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
24359 if test "x$ac_cv_func_strtoll" = x""yes; then :
24360 cat >>confdefs.h <<_ACEOF
24361 #define HAVE_STRTOLL 1
24362 _ACEOF
24365 done
24367 if test $ac_cv_func_strtoll = no; then
24368 HAVE_STRTOLL=0
24372 if test $HAVE_STRTOLL = 0; then
24381 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
24392 GNULIB_STRTOLL=1
24398 gl_gnulib_enabled_strtoll=true
24401 func_gl_gnulib_m4code_strtoull ()
24403 if ! $gl_gnulib_enabled_strtoull; then
24407 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
24408 for ac_func in strtoull
24409 do :
24410 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
24411 if test "x$ac_cv_func_strtoull" = x""yes; then :
24412 cat >>confdefs.h <<_ACEOF
24413 #define HAVE_STRTOULL 1
24414 _ACEOF
24417 done
24419 if test $ac_cv_func_strtoull = no; then
24420 HAVE_STRTOULL=0
24424 if test $HAVE_STRTOULL = 0; then
24433 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
24444 GNULIB_STRTOULL=1
24450 gl_gnulib_enabled_strtoull=true
24453 func_gl_gnulib_m4code_verify ()
24455 if ! $gl_gnulib_enabled_verify; then
24456 gl_gnulib_enabled_verify=true
24459 if test $REPLACE_GETOPT = 1; then
24460 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24462 if test $REPLACE_LSTAT = 1; then
24463 func_gl_gnulib_m4code_dosname
24465 if test $REPLACE_LSTAT = 1; then
24466 func_gl_gnulib_m4code_stat
24468 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
24469 func_gl_gnulib_m4code_stat
24471 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24472 func_gl_gnulib_m4code_strtoll
24474 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24475 func_gl_gnulib_m4code_verify
24477 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
24478 func_gl_gnulib_m4code_strtoull
24480 if test $ac_cv_func_strtoumax = no; then
24481 func_gl_gnulib_m4code_verify
24484 if $gl_gnulib_enabled_dosname; then
24485 gl_GNULIB_ENABLED_dosname_TRUE=
24486 gl_GNULIB_ENABLED_dosname_FALSE='#'
24487 else
24488 gl_GNULIB_ENABLED_dosname_TRUE='#'
24489 gl_GNULIB_ENABLED_dosname_FALSE=
24492 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24493 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
24494 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
24495 else
24496 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
24497 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
24500 if $gl_gnulib_enabled_pathmax; then
24501 gl_GNULIB_ENABLED_pathmax_TRUE=
24502 gl_GNULIB_ENABLED_pathmax_FALSE='#'
24503 else
24504 gl_GNULIB_ENABLED_pathmax_TRUE='#'
24505 gl_GNULIB_ENABLED_pathmax_FALSE=
24508 if $gl_gnulib_enabled_stat; then
24509 gl_GNULIB_ENABLED_stat_TRUE=
24510 gl_GNULIB_ENABLED_stat_FALSE='#'
24511 else
24512 gl_GNULIB_ENABLED_stat_TRUE='#'
24513 gl_GNULIB_ENABLED_stat_FALSE=
24516 if $gl_gnulib_enabled_strtoll; then
24517 gl_GNULIB_ENABLED_strtoll_TRUE=
24518 gl_GNULIB_ENABLED_strtoll_FALSE='#'
24519 else
24520 gl_GNULIB_ENABLED_strtoll_TRUE='#'
24521 gl_GNULIB_ENABLED_strtoll_FALSE=
24524 if $gl_gnulib_enabled_strtoull; then
24525 gl_GNULIB_ENABLED_strtoull_TRUE=
24526 gl_GNULIB_ENABLED_strtoull_FALSE='#'
24527 else
24528 gl_GNULIB_ENABLED_strtoull_TRUE='#'
24529 gl_GNULIB_ENABLED_strtoull_FALSE=
24532 if $gl_gnulib_enabled_verify; then
24533 gl_GNULIB_ENABLED_verify_TRUE=
24534 gl_GNULIB_ENABLED_verify_FALSE='#'
24535 else
24536 gl_GNULIB_ENABLED_verify_TRUE='#'
24537 gl_GNULIB_ENABLED_verify_FALSE=
24540 # End of code from modules
24550 gltests_libdeps=
24551 gltests_ltlibdeps=
24561 gl_source_base='tests'
24562 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
24564 gl_module_indicator_condition=$gltests_WITNESS
24575 LIBGNU_LIBDEPS="$gl_libdeps"
24577 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24580 CFLAGS=$SAVE_CFLAGS
24581 LIBS=$SAVE_LIBS
24583 case "$opsys" in
24584 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24586 darwin)
24587 ## The -headerpad option tells ld (see man page) to leave room at the
24588 ## end of the header for adding load commands. Needed for dumping.
24589 ## 0x690 is the total size of 30 segment load commands (at 56
24590 ## each); under Cocoa 31 commands are required.
24591 if test "$HAVE_NS" = "yes"; then
24592 libs_nsgui="-framework AppKit"
24593 headerpad_extra=6C8
24594 else
24595 libs_nsgui=
24596 headerpad_extra=690
24598 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24600 ## This is here because src/Makefile.in did some extra fiddling around
24601 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24602 ## #ifndef LD_SWITCH_SYSTEM
24603 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24604 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24605 ## not using gcc, darwin.
24606 ## Because this was done in src/Makefile.in, the resulting part of
24607 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24608 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24609 ## rather than LD_SWITCH_SYSTEM.
24610 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24611 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24614 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24615 ## find X at run-time.
24616 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24617 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24618 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24619 ## had different values in configure (in ac_link) and src/Makefile.in.
24620 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24621 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24623 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24624 esac
24629 LD_FIRSTFLAG=
24630 ORDINARY_LINK=
24631 case "$opsys" in
24632 ## gnu: GNU needs its own crt0.
24633 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24635 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24636 ## library search parth, i.e. it won't search /usr/lib for libc and
24637 ## friends. Using -nostartfiles instead avoids this problem, and
24638 ## will also work on earlier NetBSD releases.
24639 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24641 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24642 ## MkLinux/LinuxPPC needs this.
24643 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24644 gnu-*)
24645 case "$canonical" in
24646 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
24647 esac
24649 esac
24652 if test "x$ORDINARY_LINK" = "xyes"; then
24654 LD_FIRSTFLAG=""
24656 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24659 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24660 ## freebsd, gnu-* not on powerpc*|s390x*.
24661 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24663 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24664 ## places that are difficult to figure out at make time. Fortunately,
24665 ## these same versions allow you to pass arbitrary flags on to the
24666 ## linker, so there is no reason not to use it as a linker.
24668 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24669 ## searching for libraries in its internal directories, so we have to
24670 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24671 LD_FIRSTFLAG="-nostdlib"
24674 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24675 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24680 ## FIXME? The logic here is not precisely the same as that above.
24681 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24682 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24683 LIB_GCC=
24684 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24686 case "$opsys" in
24687 freebsd|netbsd|openbsd) LIB_GCC= ;;
24689 gnu-*)
24690 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24691 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24692 case $host_cpu in
24693 arm*)
24694 LIB_GCC="-lgcc_s"
24697 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24698 ## immediately undefine it again and redefine it to empty.
24699 ## Was the C_SWITCH_X_SITE part really necessary?
24700 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24701 LIB_GCC=
24703 esac
24706 ## Ask GCC where to find libgcc.a.
24707 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24708 esac
24711 ## Common for all window systems
24712 if test "$window_system" != "none"; then
24714 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24717 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24719 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
24726 #### Report on what we decided to do.
24727 #### Report GTK as a toolkit, even if it doesn't use Xt.
24728 #### It makes printing result more understandable as using GTK sets
24729 #### toolkit_scroll_bars to yes by default.
24730 if test "${HAVE_GTK}" = "yes"; then
24731 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
24734 echo "
24735 Configured for \`${canonical}'.
24737 Where should the build process find the source code? ${srcdir}
24738 What compiler should emacs be built with? ${CC} ${CFLAGS}
24739 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24740 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24741 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24742 What window system should Emacs use? ${window_system}
24743 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24745 if test -n "${x_includes}"; then
24746 echo " Where do we find X Windows header files? ${x_includes}"
24747 else
24748 echo " Where do we find X Windows header files? Standard dirs"
24750 if test -n "${x_libraries}"; then
24751 echo " Where do we find X Windows libraries? ${x_libraries}"
24752 else
24753 echo " Where do we find X Windows libraries? Standard dirs"
24756 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24757 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24758 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24759 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24760 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24761 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24762 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24763 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24765 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24766 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24767 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24768 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24769 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24770 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24771 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24773 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24774 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24775 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24776 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24778 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24779 echo
24781 if test -n "${EMACSDATA}"; then
24782 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24784 if test -n "${EMACSDOC}"; then
24785 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24788 echo
24790 if test "$HAVE_NS" = "yes"; then
24791 echo
24792 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24793 The installed application will go to nextstep/Emacs.app and can be
24794 run or moved from there."
24795 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24796 echo "The application will be fully self-contained."
24797 else
24798 echo "The lisp resources for the application will be installed under ${prefix}.
24799 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24800 to run if these resources are not installed."
24802 echo
24805 if test "${opsys}" = "cygwin"; then
24806 case `uname -r` in
24807 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24808 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24809 echo
24811 esac
24814 # Remove any trailing slashes in these variables.
24815 test "${prefix}" != NONE &&
24816 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24817 test "${exec_prefix}" != NONE &&
24818 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24820 if test "$HAVE_NS" = "yes"; then
24821 if test "$NS_IMPL_GNUSTEP" = yes; then
24822 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"
24824 else
24825 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"
24830 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"
24832 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"
24835 opt_makefile=test/automated/Makefile
24837 if test -f $srcdir/${opt_makefile}.in; then
24838 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24839 ac_config_files="$ac_config_files test/automated/Makefile"
24844 opt_makefile=admin/unidata/Makefile
24846 if test -f $srcdir/${opt_makefile}.in; then
24847 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24848 ac_config_files="$ac_config_files admin/unidata/Makefile"
24853 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24857 ac_config_commands="$ac_config_commands mkdirs"
24860 ac_config_commands="$ac_config_commands epaths"
24863 ac_config_commands="$ac_config_commands gdbinit"
24866 cat >confcache <<\_ACEOF
24867 # This file is a shell script that caches the results of configure
24868 # tests run on this system so they can be shared between configure
24869 # scripts and configure runs, see configure's option --config-cache.
24870 # It is not useful on other systems. If it contains results you don't
24871 # want to keep, you may remove or edit it.
24873 # config.status only pays attention to the cache file if you give it
24874 # the --recheck option to rerun configure.
24876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24878 # following values.
24880 _ACEOF
24882 # The following way of writing the cache mishandles newlines in values,
24883 # but we know of no workaround that is simple, portable, and efficient.
24884 # So, we kill variables containing newlines.
24885 # Ultrix sh set writes to stderr and can't be redirected directly,
24886 # and sets the high bit in the cache file unless we assign to the vars.
24888 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24889 eval ac_val=\$$ac_var
24890 case $ac_val in #(
24891 *${as_nl}*)
24892 case $ac_var in #(
24893 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24894 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24895 esac
24896 case $ac_var in #(
24897 _ | IFS | as_nl) ;; #(
24898 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24899 *) { eval $ac_var=; unset $ac_var;} ;;
24900 esac ;;
24901 esac
24902 done
24904 (set) 2>&1 |
24905 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24906 *${as_nl}ac_space=\ *)
24907 # `set' does not quote correctly, so add quotes: double-quote
24908 # substitution turns \\\\ into \\, and sed turns \\ into \.
24909 sed -n \
24910 "s/'/'\\\\''/g;
24911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24912 ;; #(
24914 # `set' quotes correctly as required by POSIX, so do not add quotes.
24915 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24917 esac |
24918 sort
24920 sed '
24921 /^ac_cv_env_/b end
24922 t clear
24923 :clear
24924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24925 t end
24926 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24927 :end' >>confcache
24928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24929 if test -w "$cache_file"; then
24930 test "x$cache_file" != "x/dev/null" &&
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24932 $as_echo "$as_me: updating cache $cache_file" >&6;}
24933 cat confcache >$cache_file
24934 else
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24936 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24939 rm -f confcache
24941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24942 # Let make expand exec_prefix.
24943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24945 DEFS=-DHAVE_CONFIG_H
24947 ac_libobjs=
24948 ac_ltlibobjs=
24949 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24950 # 1. Remove the extension, and $U if already installed.
24951 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24952 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24953 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24954 # will be set to the directory where LIBOBJS objects are built.
24955 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24956 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24957 done
24958 LIBOBJS=$ac_libobjs
24960 LTLIBOBJS=$ac_ltlibobjs
24963 if test -n "$EXEEXT"; then
24964 am__EXEEXT_TRUE=
24965 am__EXEEXT_FALSE='#'
24966 else
24967 am__EXEEXT_TRUE='#'
24968 am__EXEEXT_FALSE=
24971 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24972 as_fn_error "conditional \"AMDEP\" was never defined.
24973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24975 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24976 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24979 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24980 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24983 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24984 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24988 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24989 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24992 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24993 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24996 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24997 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25000 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25001 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25004 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25005 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25008 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25009 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25012 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
25013 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
25014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25016 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
25017 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
25018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25020 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
25021 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
25022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25024 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
25025 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
25026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25028 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
25029 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
25030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25032 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
25033 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
25034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25036 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
25037 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
25038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25041 gl_libobjs=
25042 gl_ltlibobjs=
25043 if test -n "$gl_LIBOBJS"; then
25044 # Remove the extension.
25045 sed_drop_objext='s/\.o$//;s/\.obj$//'
25046 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25047 gl_libobjs="$gl_libobjs $i.$ac_objext"
25048 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25049 done
25051 gl_LIBOBJS=$gl_libobjs
25053 gl_LTLIBOBJS=$gl_ltlibobjs
25057 gltests_libobjs=
25058 gltests_ltlibobjs=
25059 if test -n "$gltests_LIBOBJS"; then
25060 # Remove the extension.
25061 sed_drop_objext='s/\.o$//;s/\.obj$//'
25062 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25063 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25064 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25065 done
25067 gltests_LIBOBJS=$gltests_libobjs
25069 gltests_LTLIBOBJS=$gltests_ltlibobjs
25073 : ${CONFIG_STATUS=./config.status}
25074 ac_write_fail=0
25075 ac_clean_files_save=$ac_clean_files
25076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25078 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25079 as_write_fail=0
25080 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25081 #! $SHELL
25082 # Generated by $as_me.
25083 # Run this file to recreate the current configuration.
25084 # Compiler output produced by configure, useful for debugging
25085 # configure, is in config.log if it exists.
25087 debug=false
25088 ac_cs_recheck=false
25089 ac_cs_silent=false
25091 SHELL=\${CONFIG_SHELL-$SHELL}
25092 export SHELL
25093 _ASEOF
25094 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25095 ## -------------------- ##
25096 ## M4sh Initialization. ##
25097 ## -------------------- ##
25099 # Be more Bourne compatible
25100 DUALCASE=1; export DUALCASE # for MKS sh
25101 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25102 emulate sh
25103 NULLCMD=:
25104 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25105 # is contrary to our usage. Disable this feature.
25106 alias -g '${1+"$@"}'='"$@"'
25107 setopt NO_GLOB_SUBST
25108 else
25109 case `(set -o) 2>/dev/null` in #(
25110 *posix*) :
25111 set -o posix ;; #(
25112 *) :
25114 esac
25118 as_nl='
25120 export as_nl
25121 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25122 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25125 # Prefer a ksh shell builtin over an external printf program on Solaris,
25126 # but without wasting forks for bash or zsh.
25127 if test -z "$BASH_VERSION$ZSH_VERSION" \
25128 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25129 as_echo='print -r --'
25130 as_echo_n='print -rn --'
25131 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25132 as_echo='printf %s\n'
25133 as_echo_n='printf %s'
25134 else
25135 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25136 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25137 as_echo_n='/usr/ucb/echo -n'
25138 else
25139 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25140 as_echo_n_body='eval
25141 arg=$1;
25142 case $arg in #(
25143 *"$as_nl"*)
25144 expr "X$arg" : "X\\(.*\\)$as_nl";
25145 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25146 esac;
25147 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25149 export as_echo_n_body
25150 as_echo_n='sh -c $as_echo_n_body as_echo'
25152 export as_echo_body
25153 as_echo='sh -c $as_echo_body as_echo'
25156 # The user is always right.
25157 if test "${PATH_SEPARATOR+set}" != set; then
25158 PATH_SEPARATOR=:
25159 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25160 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25161 PATH_SEPARATOR=';'
25166 # IFS
25167 # We need space, tab and new line, in precisely that order. Quoting is
25168 # there to prevent editors from complaining about space-tab.
25169 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25170 # splitting by setting IFS to empty value.)
25171 IFS=" "" $as_nl"
25173 # Find who we are. Look in the path if we contain no directory separator.
25174 case $0 in #((
25175 *[\\/]* ) as_myself=$0 ;;
25176 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25177 for as_dir in $PATH
25179 IFS=$as_save_IFS
25180 test -z "$as_dir" && as_dir=.
25181 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25182 done
25183 IFS=$as_save_IFS
25186 esac
25187 # We did not find ourselves, most probably we were run as `sh COMMAND'
25188 # in which case we are not to be found in the path.
25189 if test "x$as_myself" = x; then
25190 as_myself=$0
25192 if test ! -f "$as_myself"; then
25193 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25194 exit 1
25197 # Unset variables that we do not need and which cause bugs (e.g. in
25198 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25199 # suppresses any "Segmentation fault" message there. '((' could
25200 # trigger a bug in pdksh 5.2.14.
25201 for as_var in BASH_ENV ENV MAIL MAILPATH
25202 do eval test x\${$as_var+set} = xset \
25203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25204 done
25205 PS1='$ '
25206 PS2='> '
25207 PS4='+ '
25209 # NLS nuisances.
25210 LC_ALL=C
25211 export LC_ALL
25212 LANGUAGE=C
25213 export LANGUAGE
25215 # CDPATH.
25216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25219 # as_fn_error ERROR [LINENO LOG_FD]
25220 # ---------------------------------
25221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25223 # script with status $?, using 1 if that was 0.
25224 as_fn_error ()
25226 as_status=$?; test $as_status -eq 0 && as_status=1
25227 if test "$3"; then
25228 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25229 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25231 $as_echo "$as_me: error: $1" >&2
25232 as_fn_exit $as_status
25233 } # as_fn_error
25236 # as_fn_set_status STATUS
25237 # -----------------------
25238 # Set $? to STATUS, without forking.
25239 as_fn_set_status ()
25241 return $1
25242 } # as_fn_set_status
25244 # as_fn_exit STATUS
25245 # -----------------
25246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25247 as_fn_exit ()
25249 set +e
25250 as_fn_set_status $1
25251 exit $1
25252 } # as_fn_exit
25254 # as_fn_unset VAR
25255 # ---------------
25256 # Portably unset VAR.
25257 as_fn_unset ()
25259 { eval $1=; unset $1;}
25261 as_unset=as_fn_unset
25262 # as_fn_append VAR VALUE
25263 # ----------------------
25264 # Append the text in VALUE to the end of the definition contained in VAR. Take
25265 # advantage of any shell optimizations that allow amortized linear growth over
25266 # repeated appends, instead of the typical quadratic growth present in naive
25267 # implementations.
25268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25269 eval 'as_fn_append ()
25271 eval $1+=\$2
25273 else
25274 as_fn_append ()
25276 eval $1=\$$1\$2
25278 fi # as_fn_append
25280 # as_fn_arith ARG...
25281 # ------------------
25282 # Perform arithmetic evaluation on the ARGs, and store the result in the
25283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25284 # must be portable across $(()) and expr.
25285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25286 eval 'as_fn_arith ()
25288 as_val=$(( $* ))
25290 else
25291 as_fn_arith ()
25293 as_val=`expr "$@" || test $? -eq 1`
25295 fi # as_fn_arith
25298 if expr a : '\(a\)' >/dev/null 2>&1 &&
25299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25300 as_expr=expr
25301 else
25302 as_expr=false
25305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25306 as_basename=basename
25307 else
25308 as_basename=false
25311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25312 as_dirname=dirname
25313 else
25314 as_dirname=false
25317 as_me=`$as_basename -- "$0" ||
25318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25319 X"$0" : 'X\(//\)$' \| \
25320 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25321 $as_echo X/"$0" |
25322 sed '/^.*\/\([^/][^/]*\)\/*$/{
25323 s//\1/
25326 /^X\/\(\/\/\)$/{
25327 s//\1/
25330 /^X\/\(\/\).*/{
25331 s//\1/
25334 s/.*/./; q'`
25336 # Avoid depending upon Character Ranges.
25337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25340 as_cr_digits='0123456789'
25341 as_cr_alnum=$as_cr_Letters$as_cr_digits
25343 ECHO_C= ECHO_N= ECHO_T=
25344 case `echo -n x` in #(((((
25345 -n*)
25346 case `echo 'xy\c'` in
25347 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25348 xy) ECHO_C='\c';;
25349 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25350 ECHO_T=' ';;
25351 esac;;
25353 ECHO_N='-n';;
25354 esac
25356 rm -f conf$$ conf$$.exe conf$$.file
25357 if test -d conf$$.dir; then
25358 rm -f conf$$.dir/conf$$.file
25359 else
25360 rm -f conf$$.dir
25361 mkdir conf$$.dir 2>/dev/null
25363 if (echo >conf$$.file) 2>/dev/null; then
25364 if ln -s conf$$.file conf$$ 2>/dev/null; then
25365 as_ln_s='ln -s'
25366 # ... but there are two gotchas:
25367 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25368 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25369 # In both cases, we have to default to `cp -p'.
25370 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25371 as_ln_s='cp -p'
25372 elif ln conf$$.file conf$$ 2>/dev/null; then
25373 as_ln_s=ln
25374 else
25375 as_ln_s='cp -p'
25377 else
25378 as_ln_s='cp -p'
25380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25381 rmdir conf$$.dir 2>/dev/null
25384 # as_fn_mkdir_p
25385 # -------------
25386 # Create "$as_dir" as a directory, including parents if necessary.
25387 as_fn_mkdir_p ()
25390 case $as_dir in #(
25391 -*) as_dir=./$as_dir;;
25392 esac
25393 test -d "$as_dir" || eval $as_mkdir_p || {
25394 as_dirs=
25395 while :; do
25396 case $as_dir in #(
25397 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25398 *) as_qdir=$as_dir;;
25399 esac
25400 as_dirs="'$as_qdir' $as_dirs"
25401 as_dir=`$as_dirname -- "$as_dir" ||
25402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25403 X"$as_dir" : 'X\(//\)[^/]' \| \
25404 X"$as_dir" : 'X\(//\)$' \| \
25405 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25406 $as_echo X"$as_dir" |
25407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25408 s//\1/
25411 /^X\(\/\/\)[^/].*/{
25412 s//\1/
25415 /^X\(\/\/\)$/{
25416 s//\1/
25419 /^X\(\/\).*/{
25420 s//\1/
25423 s/.*/./; q'`
25424 test -d "$as_dir" && break
25425 done
25426 test -z "$as_dirs" || eval "mkdir $as_dirs"
25427 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25430 } # as_fn_mkdir_p
25431 if mkdir -p . 2>/dev/null; then
25432 as_mkdir_p='mkdir -p "$as_dir"'
25433 else
25434 test -d ./-p && rmdir ./-p
25435 as_mkdir_p=false
25438 if test -x / >/dev/null 2>&1; then
25439 as_test_x='test -x'
25440 else
25441 if ls -dL / >/dev/null 2>&1; then
25442 as_ls_L_option=L
25443 else
25444 as_ls_L_option=
25446 as_test_x='
25447 eval sh -c '\''
25448 if test -d "$1"; then
25449 test -d "$1/.";
25450 else
25451 case $1 in #(
25452 -*)set "./$1";;
25453 esac;
25454 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25455 ???[sx]*):;;*)false;;esac;fi
25456 '\'' sh
25459 as_executable_p=$as_test_x
25461 # Sed expression to map a string onto a valid CPP name.
25462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25464 # Sed expression to map a string onto a valid variable name.
25465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25468 exec 6>&1
25469 ## ----------------------------------- ##
25470 ## Main body of $CONFIG_STATUS script. ##
25471 ## ----------------------------------- ##
25472 _ASEOF
25473 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25476 # Save the log message, to keep $0 and so on meaningful, and to
25477 # report actual input values of CONFIG_FILES etc. instead of their
25478 # values after options handling.
25479 ac_log="
25480 This file was extended by emacs $as_me 24.3, which was
25481 generated by GNU Autoconf 2.65. Invocation command line was
25483 CONFIG_FILES = $CONFIG_FILES
25484 CONFIG_HEADERS = $CONFIG_HEADERS
25485 CONFIG_LINKS = $CONFIG_LINKS
25486 CONFIG_COMMANDS = $CONFIG_COMMANDS
25487 $ $0 $@
25489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25492 _ACEOF
25494 case $ac_config_files in *"
25495 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25496 esac
25498 case $ac_config_headers in *"
25499 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25500 esac
25503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25504 # Files that config.status was made for.
25505 config_files="$ac_config_files"
25506 config_headers="$ac_config_headers"
25507 config_commands="$ac_config_commands"
25509 _ACEOF
25511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25512 ac_cs_usage="\
25513 \`$as_me' instantiates files and other configuration actions
25514 from templates according to the current configuration. Unless the files
25515 and actions are specified as TAGs, all are instantiated by default.
25517 Usage: $0 [OPTION]... [TAG]...
25519 -h, --help print this help, then exit
25520 -V, --version print version number and configuration settings, then exit
25521 --config print configuration, then exit
25522 -q, --quiet, --silent
25523 do not print progress messages
25524 -d, --debug don't remove temporary files
25525 --recheck update $as_me by reconfiguring in the same conditions
25526 --file=FILE[:TEMPLATE]
25527 instantiate the configuration file FILE
25528 --header=FILE[:TEMPLATE]
25529 instantiate the configuration header FILE
25531 Configuration files:
25532 $config_files
25534 Configuration headers:
25535 $config_headers
25537 Configuration commands:
25538 $config_commands
25540 Report bugs to the package provider."
25542 _ACEOF
25543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25545 ac_cs_version="\\
25546 emacs config.status 24.3
25547 configured by $0, generated by GNU Autoconf 2.65,
25548 with options \\"\$ac_cs_config\\"
25550 Copyright (C) 2009 Free Software Foundation, Inc.
25551 This config.status script is free software; the Free Software Foundation
25552 gives unlimited permission to copy, distribute and modify it."
25554 ac_pwd='$ac_pwd'
25555 srcdir='$srcdir'
25556 INSTALL='$INSTALL'
25557 MKDIR_P='$MKDIR_P'
25558 AWK='$AWK'
25559 test -n "\$AWK" || AWK=awk
25560 _ACEOF
25562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25563 # The default lists apply if the user does not specify any file.
25564 ac_need_defaults=:
25565 while test $# != 0
25567 case $1 in
25568 --*=*)
25569 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25570 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25571 ac_shift=:
25574 ac_option=$1
25575 ac_optarg=$2
25576 ac_shift=shift
25578 esac
25580 case $ac_option in
25581 # Handling of the options.
25582 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25583 ac_cs_recheck=: ;;
25584 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25585 $as_echo "$ac_cs_version"; exit ;;
25586 --config | --confi | --conf | --con | --co | --c )
25587 $as_echo "$ac_cs_config"; exit ;;
25588 --debug | --debu | --deb | --de | --d | -d )
25589 debug=: ;;
25590 --file | --fil | --fi | --f )
25591 $ac_shift
25592 case $ac_optarg in
25593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25594 esac
25595 as_fn_append CONFIG_FILES " '$ac_optarg'"
25596 ac_need_defaults=false;;
25597 --header | --heade | --head | --hea )
25598 $ac_shift
25599 case $ac_optarg in
25600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25601 esac
25602 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25603 ac_need_defaults=false;;
25604 --he | --h)
25605 # Conflict between --help and --header
25606 as_fn_error "ambiguous option: \`$1'
25607 Try \`$0 --help' for more information.";;
25608 --help | --hel | -h )
25609 $as_echo "$ac_cs_usage"; exit ;;
25610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25612 ac_cs_silent=: ;;
25614 # This is an error.
25615 -*) as_fn_error "unrecognized option: \`$1'
25616 Try \`$0 --help' for more information." ;;
25618 *) as_fn_append ac_config_targets " $1"
25619 ac_need_defaults=false ;;
25621 esac
25622 shift
25623 done
25625 ac_configure_extra_args=
25627 if $ac_cs_silent; then
25628 exec 6>/dev/null
25629 ac_configure_extra_args="$ac_configure_extra_args --silent"
25632 _ACEOF
25633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25634 if \$ac_cs_recheck; then
25635 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25636 shift
25637 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25638 CONFIG_SHELL='$SHELL'
25639 export CONFIG_SHELL
25640 exec "\$@"
25643 _ACEOF
25644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25645 exec 5>>config.log
25647 echo
25648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25649 ## Running $as_me. ##
25650 _ASBOX
25651 $as_echo "$ac_log"
25652 } >&5
25654 _ACEOF
25655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25657 # INIT-COMMANDS
25659 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25660 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25662 _ACEOF
25664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25666 # Handling of arguments.
25667 for ac_config_target in $ac_config_targets
25669 case $ac_config_target in
25670 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25671 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25672 "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" ;;
25673 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25674 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25675 "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" ;;
25676 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25677 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25678 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25679 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25680 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25681 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25682 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25683 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25684 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25685 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25686 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25687 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25688 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
25689 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25690 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
25691 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25692 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25693 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25695 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25696 esac
25697 done
25700 # If the user did not use the arguments to specify the items to instantiate,
25701 # then the envvar interface is used. Set only those that are not.
25702 # We use the long form for the default assignment because of an extremely
25703 # bizarre bug on SunOS 4.1.3.
25704 if $ac_need_defaults; then
25705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25710 # Have a temporary directory for convenience. Make it in the build tree
25711 # simply because there is no reason against having it here, and in addition,
25712 # creating and moving files from /tmp can sometimes cause problems.
25713 # Hook for its removal unless debugging.
25714 # Note that there is a small window in which the directory will not be cleaned:
25715 # after its creation but before its name has been assigned to `$tmp'.
25716 $debug ||
25718 tmp=
25719 trap 'exit_status=$?
25720 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25722 trap 'as_fn_exit 1' 1 2 13 15
25724 # Create a (secure) tmp directory for tmp files.
25727 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25728 test -n "$tmp" && test -d "$tmp"
25729 } ||
25731 tmp=./conf$$-$RANDOM
25732 (umask 077 && mkdir "$tmp")
25733 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25735 # Set up the scripts for CONFIG_FILES section.
25736 # No need to generate them if there are no CONFIG_FILES.
25737 # This happens for instance with `./config.status config.h'.
25738 if test -n "$CONFIG_FILES"; then
25740 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25741 ac_cs_awk_getline=:
25742 ac_cs_awk_pipe_init=
25743 ac_cs_awk_read_file='
25744 while ((getline aline < (F[key])) > 0)
25745 print(aline)
25746 close(F[key])'
25747 ac_cs_awk_pipe_fini=
25748 else
25749 ac_cs_awk_getline=false
25750 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25751 ac_cs_awk_read_file='
25752 print "|#_!!_#|"
25753 print "cat " F[key] " &&"
25754 '$ac_cs_awk_pipe_init
25755 # The final `:' finishes the AND list.
25756 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25758 ac_cr=`echo X | tr X '\015'`
25759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25760 # But we know of no other shell where ac_cr would be empty at this
25761 # point, so we can use a bashism as a fallback.
25762 if test "x$ac_cr" = x; then
25763 eval ac_cr=\$\'\\r\'
25765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25767 ac_cs_awk_cr='\r'
25768 else
25769 ac_cs_awk_cr=$ac_cr
25772 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25773 _ACEOF
25775 # Create commands to substitute file output variables.
25777 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25778 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25779 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25780 echo "_ACAWK" &&
25781 echo "_ACEOF"
25782 } >conf$$files.sh &&
25783 . ./conf$$files.sh ||
25784 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25785 rm -f conf$$files.sh
25788 echo "cat >conf$$subs.awk <<_ACEOF" &&
25789 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25790 echo "_ACEOF"
25791 } >conf$$subs.sh ||
25792 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25793 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25794 ac_delim='%!_!# '
25795 for ac_last_try in false false false false false :; do
25796 . ./conf$$subs.sh ||
25797 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25799 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25800 if test $ac_delim_n = $ac_delim_num; then
25801 break
25802 elif $ac_last_try; then
25803 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25804 else
25805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25807 done
25808 rm -f conf$$subs.sh
25810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25811 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25812 _ACEOF
25813 sed -n '
25815 s/^/S["/; s/!.*/"]=/
25818 s/^[^!]*!//
25819 :repl
25820 t repl
25821 s/'"$ac_delim"'$//
25822 t delim
25825 s/\(.\{148\}\)..*/\1/
25826 t more1
25827 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25830 b repl
25831 :more1
25832 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25835 s/.\{148\}//
25836 t nl
25837 :delim
25839 s/\(.\{148\}\)..*/\1/
25840 t more2
25841 s/["\\]/\\&/g; s/^/"/; s/$/"/
25844 :more2
25845 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25848 s/.\{148\}//
25849 t delim
25850 ' <conf$$subs.awk | sed '
25851 /^[^""]/{
25853 s/\n//
25855 ' >>$CONFIG_STATUS || ac_write_fail=1
25856 rm -f conf$$subs.awk
25857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25858 _ACAWK
25859 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25860 for (key in S) S_is_set[key] = 1
25861 FS = "\a"
25862 \$ac_cs_awk_pipe_init
25865 line = $ 0
25866 nfields = split(line, field, "@")
25867 substed = 0
25868 len = length(field[1])
25869 for (i = 2; i < nfields; i++) {
25870 key = field[i]
25871 keylen = length(key)
25872 if (S_is_set[key]) {
25873 value = S[key]
25874 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25875 len += length(value) + length(field[++i])
25876 substed = 1
25877 } else
25878 len += 1 + keylen
25880 if (nfields == 3 && !substed) {
25881 key = field[2]
25882 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25883 \$ac_cs_awk_read_file
25884 next
25887 print line
25889 \$ac_cs_awk_pipe_fini
25890 _ACAWK
25891 _ACEOF
25892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25893 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25894 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25895 else
25897 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25898 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25899 _ACEOF
25901 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25902 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25903 # trailing colons and then remove the whole line if VPATH becomes empty
25904 # (actually we leave an empty line to preserve line numbers).
25905 if test "x$srcdir" = x.; then
25906 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25907 s/:*\$(srcdir):*/:/
25908 s/:*\${srcdir}:*/:/
25909 s/:*@srcdir@:*/:/
25910 s/^\([^=]*=[ ]*\):*/\1/
25911 s/:*$//
25912 s/^[^=]*=[ ]*$//
25916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25917 fi # test -n "$CONFIG_FILES"
25919 # Set up the scripts for CONFIG_HEADERS section.
25920 # No need to generate them if there are no CONFIG_HEADERS.
25921 # This happens for instance with `./config.status Makefile'.
25922 if test -n "$CONFIG_HEADERS"; then
25923 cat >"$tmp/defines.awk" <<\_ACAWK ||
25924 BEGIN {
25925 _ACEOF
25927 # Transform confdefs.h into an awk script `defines.awk', embedded as
25928 # here-document in config.status, that substitutes the proper values into
25929 # config.h.in to produce config.h.
25931 # Create a delimiter string that does not exist in confdefs.h, to ease
25932 # handling of long lines.
25933 ac_delim='%!_!# '
25934 for ac_last_try in false false :; do
25935 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25936 if test -z "$ac_t"; then
25937 break
25938 elif $ac_last_try; then
25939 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25940 else
25941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25943 done
25945 # For the awk script, D is an array of macro values keyed by name,
25946 # likewise P contains macro parameters if any. Preserve backslash
25947 # newline sequences.
25949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25950 sed -n '
25951 s/.\{148\}/&'"$ac_delim"'/g
25952 t rset
25953 :rset
25954 s/^[ ]*#[ ]*define[ ][ ]*/ /
25955 t def
25957 :def
25958 s/\\$//
25959 t bsnl
25960 s/["\\]/\\&/g
25961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25962 D["\1"]=" \3"/p
25963 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25965 :bsnl
25966 s/["\\]/\\&/g
25967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25968 D["\1"]=" \3\\\\\\n"\\/p
25969 t cont
25970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25971 t cont
25973 :cont
25975 s/.\{148\}/&'"$ac_delim"'/g
25976 t clear
25977 :clear
25978 s/\\$//
25979 t bsnlc
25980 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25982 :bsnlc
25983 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25984 b cont
25985 ' <confdefs.h | sed '
25986 s/'"$ac_delim"'/"\\\
25987 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25990 for (key in D) D_is_set[key] = 1
25991 FS = "\a"
25993 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25994 line = \$ 0
25995 split(line, arg, " ")
25996 if (arg[1] == "#") {
25997 defundef = arg[2]
25998 mac1 = arg[3]
25999 } else {
26000 defundef = substr(arg[1], 2)
26001 mac1 = arg[2]
26003 split(mac1, mac2, "(") #)
26004 macro = mac2[1]
26005 prefix = substr(line, 1, index(line, defundef) - 1)
26006 if (D_is_set[macro]) {
26007 # Preserve the white space surrounding the "#".
26008 print prefix "define", macro P[macro] D[macro]
26009 next
26010 } else {
26011 # Replace #undef with comments. This is necessary, for example,
26012 # in the case of _POSIX_SOURCE, which is predefined and required
26013 # on some systems where configure will not decide to define it.
26014 if (defundef == "undef") {
26015 print "/*", prefix defundef, macro, "*/"
26016 next
26020 { print }
26021 _ACAWK
26022 _ACEOF
26023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26024 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26025 fi # test -n "$CONFIG_HEADERS"
26028 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26029 shift
26030 for ac_tag
26032 case $ac_tag in
26033 :[FHLC]) ac_mode=$ac_tag; continue;;
26034 esac
26035 case $ac_mode$ac_tag in
26036 :[FHL]*:*);;
26037 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26038 :[FH]-) ac_tag=-:-;;
26039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26040 esac
26041 ac_save_IFS=$IFS
26042 IFS=:
26043 set x $ac_tag
26044 IFS=$ac_save_IFS
26045 shift
26046 ac_file=$1
26047 shift
26049 case $ac_mode in
26050 :L) ac_source=$1;;
26051 :[FH])
26052 ac_file_inputs=
26053 for ac_f
26055 case $ac_f in
26056 -) ac_f="$tmp/stdin";;
26057 *) # Look for the file first in the build tree, then in the source tree
26058 # (if the path is not absolute). The absolute path cannot be DOS-style,
26059 # because $ac_f cannot contain `:'.
26060 test -f "$ac_f" ||
26061 case $ac_f in
26062 [\\/$]*) false;;
26063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26064 esac ||
26065 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26066 esac
26067 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26068 as_fn_append ac_file_inputs " '$ac_f'"
26069 done
26071 # Let's still pretend it is `configure' which instantiates (i.e., don't
26072 # use $as_me), people would be surprised to read:
26073 # /* config.h. Generated by config.status. */
26074 configure_input='Generated from '`
26075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26076 `' by configure.'
26077 if test x"$ac_file" != x-; then
26078 configure_input="$ac_file. $configure_input"
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26080 $as_echo "$as_me: creating $ac_file" >&6;}
26082 # Neutralize special characters interpreted by sed in replacement strings.
26083 case $configure_input in #(
26084 *\&* | *\|* | *\\* )
26085 ac_sed_conf_input=`$as_echo "$configure_input" |
26086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26087 *) ac_sed_conf_input=$configure_input;;
26088 esac
26090 case $ac_tag in
26091 *:-:* | *:-) cat >"$tmp/stdin" \
26092 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26093 esac
26095 esac
26097 ac_dir=`$as_dirname -- "$ac_file" ||
26098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26099 X"$ac_file" : 'X\(//\)[^/]' \| \
26100 X"$ac_file" : 'X\(//\)$' \| \
26101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26102 $as_echo X"$ac_file" |
26103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26104 s//\1/
26107 /^X\(\/\/\)[^/].*/{
26108 s//\1/
26111 /^X\(\/\/\)$/{
26112 s//\1/
26115 /^X\(\/\).*/{
26116 s//\1/
26119 s/.*/./; q'`
26120 as_dir="$ac_dir"; as_fn_mkdir_p
26121 ac_builddir=.
26123 case "$ac_dir" in
26124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26127 # A ".." for each directory in $ac_dir_suffix.
26128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26129 case $ac_top_builddir_sub in
26130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26132 esac ;;
26133 esac
26134 ac_abs_top_builddir=$ac_pwd
26135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26136 # for backward compatibility:
26137 ac_top_builddir=$ac_top_build_prefix
26139 case $srcdir in
26140 .) # We are building in place.
26141 ac_srcdir=.
26142 ac_top_srcdir=$ac_top_builddir_sub
26143 ac_abs_top_srcdir=$ac_pwd ;;
26144 [\\/]* | ?:[\\/]* ) # Absolute name.
26145 ac_srcdir=$srcdir$ac_dir_suffix;
26146 ac_top_srcdir=$srcdir
26147 ac_abs_top_srcdir=$srcdir ;;
26148 *) # Relative name.
26149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26150 ac_top_srcdir=$ac_top_build_prefix$srcdir
26151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26152 esac
26153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26156 case $ac_mode in
26159 # CONFIG_FILE
26162 case $INSTALL in
26163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26164 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26165 esac
26166 ac_MKDIR_P=$MKDIR_P
26167 case $MKDIR_P in
26168 [\\/$]* | ?:[\\/]* ) ;;
26169 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26170 esac
26171 _ACEOF
26173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26174 # If the template does not know about datarootdir, expand it.
26175 # FIXME: This hack should be removed a few years after 2.60.
26176 ac_datarootdir_hack=; ac_datarootdir_seen=
26177 ac_sed_dataroot='
26178 /datarootdir/ {
26182 /@datadir@/p
26183 /@docdir@/p
26184 /@infodir@/p
26185 /@localedir@/p
26186 /@mandir@/p'
26187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26188 *datarootdir*) ac_datarootdir_seen=yes;;
26189 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26192 _ACEOF
26193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26194 ac_datarootdir_hack='
26195 s&@datadir@&$datadir&g
26196 s&@docdir@&$docdir&g
26197 s&@infodir@&$infodir&g
26198 s&@localedir@&$localedir&g
26199 s&@mandir@&$mandir&g
26200 s&\\\${datarootdir}&$datarootdir&g' ;;
26201 esac
26202 _ACEOF
26204 # Neutralize VPATH when `$srcdir' = `.'.
26205 # Shell code in configure.ac might set extrasub.
26206 # FIXME: do we really want to maintain this feature?
26207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26208 ac_sed_extra="$ac_vpsub
26209 $extrasub
26210 _ACEOF
26211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26214 s|@configure_input@|$ac_sed_conf_input|;t t
26215 s&@top_builddir@&$ac_top_builddir_sub&;t t
26216 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26217 s&@srcdir@&$ac_srcdir&;t t
26218 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26219 s&@top_srcdir@&$ac_top_srcdir&;t t
26220 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26221 s&@builddir@&$ac_builddir&;t t
26222 s&@abs_builddir@&$ac_abs_builddir&;t t
26223 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26224 s&@INSTALL@&$ac_INSTALL&;t t
26225 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26226 $ac_datarootdir_hack
26228 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26229 if $ac_cs_awk_getline; then
26230 $AWK -f "$tmp/subs.awk"
26231 else
26232 $AWK -f "$tmp/subs.awk" | $SHELL
26233 fi >$tmp/out \
26234 || as_fn_error "could not create $ac_file" "$LINENO" 5
26236 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26237 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26240 which seems to be undefined. Please make sure it is defined." >&5
26241 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26242 which seems to be undefined. Please make sure it is defined." >&2;}
26244 rm -f "$tmp/stdin"
26245 case $ac_file in
26246 -) cat "$tmp/out" && rm -f "$tmp/out";;
26247 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26248 esac \
26249 || as_fn_error "could not create $ac_file" "$LINENO" 5
26253 # CONFIG_HEADER
26255 if test x"$ac_file" != x-; then
26257 $as_echo "/* $configure_input */" \
26258 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26259 } >"$tmp/config.h" \
26260 || as_fn_error "could not create $ac_file" "$LINENO" 5
26261 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26263 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26264 else
26265 rm -f "$ac_file"
26266 mv "$tmp/config.h" "$ac_file" \
26267 || as_fn_error "could not create $ac_file" "$LINENO" 5
26269 else
26270 $as_echo "/* $configure_input */" \
26271 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26272 || as_fn_error "could not create -" "$LINENO" 5
26274 # Compute "$ac_file"'s index in $config_headers.
26275 _am_arg="$ac_file"
26276 _am_stamp_count=1
26277 for _am_header in $config_headers :; do
26278 case $_am_header in
26279 $_am_arg | $_am_arg:* )
26280 break ;;
26282 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26283 esac
26284 done
26285 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26286 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26287 X"$_am_arg" : 'X\(//\)[^/]' \| \
26288 X"$_am_arg" : 'X\(//\)$' \| \
26289 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26290 $as_echo X"$_am_arg" |
26291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26292 s//\1/
26295 /^X\(\/\/\)[^/].*/{
26296 s//\1/
26299 /^X\(\/\/\)$/{
26300 s//\1/
26303 /^X\(\/\).*/{
26304 s//\1/
26307 s/.*/./; q'`/stamp-h$_am_stamp_count
26310 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26311 $as_echo "$as_me: executing $ac_file commands" >&6;}
26313 esac
26316 case $ac_file$ac_mode in
26317 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26318 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26319 # are listed without --file. Let's play safe and only enable the eval
26320 # if we detect the quoting.
26321 case $CONFIG_FILES in
26322 *\'*) eval set x "$CONFIG_FILES" ;;
26323 *) set x $CONFIG_FILES ;;
26324 esac
26325 shift
26326 for mf
26328 # Strip MF so we end up with the name of the file.
26329 mf=`echo "$mf" | sed -e 's/:.*$//'`
26330 # Check whether this is an Automake generated Makefile or not.
26331 # We used to match only the files named `Makefile.in', but
26332 # some people rename them; so instead we look at the file content.
26333 # Grep'ing the first line is not enough: some people post-process
26334 # each Makefile.in and add a new line on top of each file to say so.
26335 # Grep'ing the whole file is not good either: AIX grep has a line
26336 # limit of 2048, but all sed's we know have understand at least 4000.
26337 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26338 dirpart=`$as_dirname -- "$mf" ||
26339 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26340 X"$mf" : 'X\(//\)[^/]' \| \
26341 X"$mf" : 'X\(//\)$' \| \
26342 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26343 $as_echo X"$mf" |
26344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26345 s//\1/
26348 /^X\(\/\/\)[^/].*/{
26349 s//\1/
26352 /^X\(\/\/\)$/{
26353 s//\1/
26356 /^X\(\/\).*/{
26357 s//\1/
26360 s/.*/./; q'`
26361 else
26362 continue
26364 # Extract the definition of DEPDIR, am__include, and am__quote
26365 # from the Makefile without running `make'.
26366 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26367 test -z "$DEPDIR" && continue
26368 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26369 test -z "am__include" && continue
26370 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26371 # When using ansi2knr, U may be empty or an underscore; expand it
26372 U=`sed -n 's/^U = //p' < "$mf"`
26373 # Find all dependency output files, they are included files with
26374 # $(DEPDIR) in their names. We invoke sed twice because it is the
26375 # simplest approach to changing $(DEPDIR) to its actual value in the
26376 # expansion.
26377 for file in `sed -n "
26378 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26379 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26380 # Make sure the directory exists.
26381 test -f "$dirpart/$file" && continue
26382 fdir=`$as_dirname -- "$file" ||
26383 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26384 X"$file" : 'X\(//\)[^/]' \| \
26385 X"$file" : 'X\(//\)$' \| \
26386 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26387 $as_echo X"$file" |
26388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26389 s//\1/
26392 /^X\(\/\/\)[^/].*/{
26393 s//\1/
26396 /^X\(\/\/\)$/{
26397 s//\1/
26400 /^X\(\/\).*/{
26401 s//\1/
26404 s/.*/./; q'`
26405 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26406 # echo "creating $dirpart/$file"
26407 echo '# dummy' > "$dirpart/$file"
26408 done
26409 done
26412 "mkdirs":C)
26413 for dir in etc lisp ; do
26414 test -d ${dir} || mkdir ${dir}
26415 done
26417 "epaths":C)
26418 echo creating src/epaths.h
26419 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
26421 "gdbinit":C)
26422 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26423 echo creating src/.gdbinit
26424 echo source $srcdir/src/.gdbinit > src/.gdbinit
26428 esac
26429 done # for ac_tag
26432 as_fn_exit 0
26433 _ACEOF
26434 ac_clean_files=$ac_clean_files_save
26436 test $ac_write_fail = 0 ||
26437 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26440 # configure is writing to config.log, and then calls config.status.
26441 # config.status does its own redirection, appending to config.log.
26442 # Unfortunately, on DOS this fails, as config.log is still kept open
26443 # by configure, so config.status won't be able to write to it; its
26444 # output is simply discarded. So we exec the FD to /dev/null,
26445 # effectively closing config.log, so it can be properly (re)opened and
26446 # appended to by config.status. When coming back to configure, we
26447 # need to make the FD available again.
26448 if test "$no_create" != yes; then
26449 ac_cs_success=:
26450 ac_config_status_args=
26451 test "$silent" = yes &&
26452 ac_config_status_args="$ac_config_status_args --quiet"
26453 exec 5>/dev/null
26454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26455 exec 5>>config.log
26456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26457 # would make configure fail if this is the last instruction.
26458 $ac_cs_success || as_fn_exit $?
26460 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26462 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}