Incorporate Semantic's hideif components into hideif.el (replacing advice)
[emacs.git] / autogen / configure
blob11e046c551b99aefbb2373c3ecb127f4cf9d760d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.2.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.2.50'
553 PACKAGE_STRING='emacs 24.2.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 WINDOW_SYSTEM_OBJ
608 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_MKSTEMP
913 REPLACE_MBTOWC
914 REPLACE_MALLOC
915 REPLACE_CANONICALIZE_FILE_NAME
916 REPLACE_CALLOC
917 HAVE_DECL_UNSETENV
918 HAVE_UNLOCKPT
919 HAVE_SYS_LOADAVG_H
920 HAVE_STRUCT_RANDOM_DATA
921 HAVE_STRTOULL
922 HAVE_STRTOLL
923 HAVE_STRTOD
924 HAVE_DECL_SETENV
925 HAVE_SETENV
926 HAVE_RPMATCH
927 HAVE_REALPATH
928 HAVE_RANDOM_R
929 HAVE_RANDOM_H
930 HAVE_RANDOM
931 HAVE_PTSNAME_R
932 HAVE_PTSNAME
933 HAVE_POSIX_OPENPT
934 HAVE_MKSTEMPS
935 HAVE_MKSTEMP
936 HAVE_MKOSTEMPS
937 HAVE_MKOSTEMP
938 HAVE_MKDTEMP
939 HAVE_GRANTPT
940 HAVE_GETSUBOPT
941 HAVE_DECL_GETLOADAVG
942 HAVE_CANONICALIZE_FILE_NAME
943 HAVE_ATOLL
944 HAVE__EXIT
945 GNULIB_WCTOMB
946 GNULIB_UNSETENV
947 GNULIB_UNLOCKPT
948 GNULIB_SYSTEM_POSIX
949 GNULIB_STRTOULL
950 GNULIB_STRTOLL
951 GNULIB_STRTOD
952 GNULIB_SETENV
953 GNULIB_RPMATCH
954 GNULIB_REALPATH
955 GNULIB_REALLOC_POSIX
956 GNULIB_RANDOM_R
957 GNULIB_RANDOM
958 GNULIB_PUTENV
959 GNULIB_PTSNAME_R
960 GNULIB_PTSNAME
961 GNULIB_POSIX_OPENPT
962 GNULIB_MKSTEMPS
963 GNULIB_MKSTEMP
964 GNULIB_MKOSTEMPS
965 GNULIB_MKOSTEMP
966 GNULIB_MKDTEMP
967 GNULIB_MBTOWC
968 GNULIB_MALLOC_POSIX
969 GNULIB_GRANTPT
970 GNULIB_GETSUBOPT
971 GNULIB_GETLOADAVG
972 GNULIB_CANONICALIZE_FILE_NAME
973 GNULIB_CALLOC_POSIX
974 GNULIB_ATOLL
975 GNULIB__EXIT
976 GL_GENERATE_EXECINFO_H_FALSE
977 GL_GENERATE_EXECINFO_H_TRUE
978 LIB_EXECINFO
979 EXECINFO_H
980 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
981 UNISTD_H_HAVE_WINSOCK2_H
982 REPLACE_WRITE
983 REPLACE_USLEEP
984 REPLACE_UNLINKAT
985 REPLACE_UNLINK
986 REPLACE_TTYNAME_R
987 REPLACE_SYMLINK
988 REPLACE_SLEEP
989 REPLACE_RMDIR
990 REPLACE_READLINK
991 REPLACE_READ
992 REPLACE_PWRITE
993 REPLACE_PREAD
994 REPLACE_LSEEK
995 REPLACE_LINKAT
996 REPLACE_LINK
997 REPLACE_LCHOWN
998 REPLACE_ISATTY
999 REPLACE_GETPAGESIZE
1000 REPLACE_GETGROUPS
1001 REPLACE_GETLOGIN_R
1002 REPLACE_GETDOMAINNAME
1003 REPLACE_GETCWD
1004 REPLACE_FTRUNCATE
1005 REPLACE_FCHOWNAT
1006 REPLACE_DUP2
1007 REPLACE_DUP
1008 REPLACE_CLOSE
1009 REPLACE_CHOWN
1010 HAVE_SYS_PARAM_H
1011 HAVE_OS_H
1012 HAVE_DECL_TTYNAME_R
1013 HAVE_DECL_SETHOSTNAME
1014 HAVE_DECL_GETUSERSHELL
1015 HAVE_DECL_GETPAGESIZE
1016 HAVE_DECL_GETLOGIN_R
1017 HAVE_DECL_GETDOMAINNAME
1018 HAVE_DECL_FDATASYNC
1019 HAVE_DECL_FCHDIR
1020 HAVE_DECL_ENVIRON
1021 HAVE_USLEEP
1022 HAVE_UNLINKAT
1023 HAVE_SYMLINKAT
1024 HAVE_SYMLINK
1025 HAVE_SLEEP
1026 HAVE_SETHOSTNAME
1027 HAVE_READLINKAT
1028 HAVE_READLINK
1029 HAVE_PWRITE
1030 HAVE_PREAD
1031 HAVE_PIPE2
1032 HAVE_PIPE
1033 HAVE_LINKAT
1034 HAVE_LINK
1035 HAVE_LCHOWN
1036 HAVE_GROUP_MEMBER
1037 HAVE_GETPAGESIZE
1038 HAVE_GETLOGIN
1039 HAVE_GETHOSTNAME
1040 HAVE_GETGROUPS
1041 HAVE_GETDTABLESIZE
1042 HAVE_FTRUNCATE
1043 HAVE_FSYNC
1044 HAVE_FDATASYNC
1045 HAVE_FCHOWNAT
1046 HAVE_FCHDIR
1047 HAVE_FACCESSAT
1048 HAVE_EUIDACCESS
1049 HAVE_DUP3
1050 HAVE_DUP2
1051 HAVE_CHOWN
1052 GNULIB_WRITE
1053 GNULIB_USLEEP
1054 GNULIB_UNLINKAT
1055 GNULIB_UNLINK
1056 GNULIB_UNISTD_H_SIGPIPE
1057 GNULIB_UNISTD_H_NONBLOCKING
1058 GNULIB_TTYNAME_R
1059 GNULIB_SYMLINKAT
1060 GNULIB_SYMLINK
1061 GNULIB_SLEEP
1062 GNULIB_SETHOSTNAME
1063 GNULIB_RMDIR
1064 GNULIB_READLINKAT
1065 GNULIB_READLINK
1066 GNULIB_READ
1067 GNULIB_PWRITE
1068 GNULIB_PREAD
1069 GNULIB_PIPE2
1070 GNULIB_PIPE
1071 GNULIB_LSEEK
1072 GNULIB_LINKAT
1073 GNULIB_LINK
1074 GNULIB_LCHOWN
1075 GNULIB_ISATTY
1076 GNULIB_GROUP_MEMBER
1077 GNULIB_GETUSERSHELL
1078 GNULIB_GETPAGESIZE
1079 GNULIB_GETLOGIN_R
1080 GNULIB_GETLOGIN
1081 GNULIB_GETHOSTNAME
1082 GNULIB_GETGROUPS
1083 GNULIB_GETDTABLESIZE
1084 GNULIB_GETDOMAINNAME
1085 GNULIB_GETCWD
1086 GNULIB_FTRUNCATE
1087 GNULIB_FSYNC
1088 GNULIB_FDATASYNC
1089 GNULIB_FCHOWNAT
1090 GNULIB_FCHDIR
1091 GNULIB_FACCESSAT
1092 GNULIB_EUIDACCESS
1093 GNULIB_ENVIRON
1094 GNULIB_DUP3
1095 GNULIB_DUP2
1096 GNULIB_DUP
1097 GNULIB_CLOSE
1098 GNULIB_CHOWN
1099 GNULIB_CHDIR
1100 LIB_CLOCK_GETTIME
1101 GL_GENERATE_ALLOCA_H_FALSE
1102 GL_GENERATE_ALLOCA_H_TRUE
1103 ALLOCA_H
1104 ALLOCA
1105 GL_COND_LIBTOOL_FALSE
1106 GL_COND_LIBTOOL_TRUE
1107 POST_ALLOC_OBJ
1108 PRE_ALLOC_OBJ
1109 CYGWIN_OBJ
1110 RALLOC_OBJ
1111 OLDXMENU_DEPS
1112 LIBX_OTHER
1113 LIBXMENU
1114 OLDXMENU
1115 OLDXMENU_TARGET
1116 LIBXT_OTHER
1117 TOOLKIT_LIBW
1118 WIDGET_OBJ
1119 XOBJ
1120 XMENU_OBJ
1121 FONT_OBJ
1122 OTHER_FILES
1123 GNU_OBJC_CFLAGS
1124 ns_appsrc
1125 ns_appresdir
1126 ns_appbindir
1127 ns_appdir
1128 X_TOOLKIT_TYPE
1129 GNUSTEP_CFLAGS
1130 C_SWITCH_X_SITE
1131 LD_SWITCH_X_SITE
1132 gameuser
1133 gamedir
1134 bitmapdir
1135 archlibdir
1136 etcdir
1137 x_default_search_path
1138 lisppath
1139 locallisppath
1140 standardlisppath
1141 leimdir
1142 lispdir
1143 srcdir
1144 canonical
1145 configuration
1146 version
1147 copyright
1148 KRB4LIB
1149 DESLIB
1150 KRB5LIB
1151 CRYPTOLIB
1152 COM_ERRLIB
1153 LIBRESOLV
1154 LIBHESIOD
1155 TERMCAP_OBJ
1156 LIBS_TERMCAP
1157 BLESSMAIL_TARGET
1158 LIBS_MAIL
1159 liblockfile
1160 LIBXML2_LIBS
1161 LIBXML2_CFLAGS
1162 LIBXSM
1163 LIBGPM
1164 LIBGIF
1165 LIBTIFF
1166 LIBPNG
1167 LIBJPEG
1168 LIBXPM
1169 M17N_FLT_LIBS
1170 M17N_FLT_CFLAGS
1171 LIBOTF_LIBS
1172 LIBOTF_CFLAGS
1173 FREETYPE_LIBS
1174 FREETYPE_CFLAGS
1175 XFT_LIBS
1176 XFT_CFLAGS
1177 FONTCONFIG_LIBS
1178 FONTCONFIG_CFLAGS
1179 LIBXMU
1180 LIBXTR6
1181 LIBGNUTLS_LIBS
1182 LIBGNUTLS_CFLAGS
1183 LIBSELINUX_LIBS
1184 SETTINGS_LIBS
1185 SETTINGS_CFLAGS
1186 GOBJECT_LIBS
1187 GOBJECT_CFLAGS
1188 GCONF_LIBS
1189 GCONF_CFLAGS
1190 GSETTINGS_LIBS
1191 GSETTINGS_CFLAGS
1192 DBUS_OBJ
1193 DBUS_LIBS
1194 DBUS_CFLAGS
1195 GTK_OBJ
1196 GTK_LIBS
1197 GTK_CFLAGS
1198 IMAGEMAGICK_LIBS
1199 IMAGEMAGICK_CFLAGS
1200 RSVG_LIBS
1201 RSVG_CFLAGS
1202 LIB_PTHREAD
1203 VMLIMIT_OBJ
1204 GMALLOC_OBJ
1205 HAVE_XSERVER
1206 LIB_STANDARD
1207 NS_OBJC_OBJ
1208 NS_OBJ
1209 ns_self_contained
1210 INSTALL_ARCH_INDEP_EXTRA
1211 TEMACS_LDFLAGS2
1212 LD_SWITCH_X_SITE_RPATH
1213 XMKMF
1214 DEPFLAGS
1215 MKDEPDIR
1216 CFLAGS_SOUND
1217 ALSA_LIBS
1218 ALSA_CFLAGS
1219 LIBSOUND
1220 PKG_CONFIG
1221 CRT_DIR
1222 START_FILES
1223 LIB_MATH
1224 LIBS_SYSTEM
1225 C_SWITCH_SYSTEM
1226 UNEXEC_OBJ
1227 C_SWITCH_MACHINE
1228 LD_SWITCH_SYSTEM
1229 CANNOT_DUMP
1230 INFO_OPTS
1231 INFO_EXT
1232 HAVE_MAKEINFO
1233 PAXCTL
1234 GZIP_PROG
1235 INSTALL_INFO
1236 LN_S
1237 GNULIB_WARN_CFLAGS
1238 WARN_CFLAGS
1239 WERROR_CFLAGS
1240 RANLIB
1241 ARFLAGS
1243 EGREP
1244 GREP
1246 am__fastdepCC_FALSE
1247 am__fastdepCC_TRUE
1248 CCDEPMODE
1249 AMDEPBACKSLASH
1250 AMDEP_FALSE
1251 AMDEP_TRUE
1252 am__quote
1253 am__include
1254 DEPDIR
1255 OBJEXT
1256 EXEEXT
1257 ac_ct_CC
1258 CPPFLAGS
1259 LDFLAGS
1260 CFLAGS
1262 host_os
1263 host_vendor
1264 host_cpu
1265 host
1266 build_os
1267 build_vendor
1268 build_cpu
1269 build
1270 PROFILING_CFLAGS
1271 GZIP_INFO
1272 cache_file
1273 am__untar
1274 am__tar
1275 AMTAR
1276 am__leading_dot
1277 SET_MAKE
1279 mkdir_p
1280 MKDIR_P
1281 INSTALL_STRIP_PROGRAM
1282 STRIP
1283 install_sh
1284 MAKEINFO
1285 AUTOHEADER
1286 AUTOMAKE
1287 AUTOCONF
1288 ACLOCAL
1289 VERSION
1290 PACKAGE
1291 CYGPATH_W
1292 am__isrc
1293 INSTALL_DATA
1294 INSTALL_SCRIPT
1295 INSTALL_PROGRAM
1296 target_alias
1297 host_alias
1298 build_alias
1299 LIBS
1300 ECHO_T
1301 ECHO_N
1302 ECHO_C
1303 DEFS
1304 mandir
1305 localedir
1306 libdir
1307 psdir
1308 pdfdir
1309 dvidir
1310 htmldir
1311 infodir
1312 docdir
1313 oldincludedir
1314 includedir
1315 localstatedir
1316 sharedstatedir
1317 sysconfdir
1318 datadir
1319 datarootdir
1320 libexecdir
1321 sbindir
1322 bindir
1323 program_transform_name
1324 prefix
1325 exec_prefix
1326 PACKAGE_URL
1327 PACKAGE_BUGREPORT
1328 PACKAGE_STRING
1329 PACKAGE_VERSION
1330 PACKAGE_TARNAME
1331 PACKAGE_NAME
1332 PATH_SEPARATOR
1333 SHELL'
1334 ac_subst_files='deps_frag
1335 lisp_frag'
1336 ac_user_opts='
1337 enable_option_checking
1338 with_all
1339 with_pop
1340 with_kerberos
1341 with_kerberos5
1342 with_hesiod
1343 with_mmdf
1344 with_mail_unlink
1345 with_mailhost
1346 with_sound
1347 with_x_toolkit
1348 with_wide_int
1349 with_xpm
1350 with_jpeg
1351 with_tiff
1352 with_gif
1353 with_png
1354 with_rsvg
1355 with_xml2
1356 with_imagemagick
1357 with_xft
1358 with_libotf
1359 with_m17n_flt
1360 with_toolkit_scroll_bars
1361 with_xaw3d
1362 with_xim
1363 with_ns
1364 with_gpm
1365 with_dbus
1366 with_gconf
1367 with_gsettings
1368 with_selinux
1369 with_gnutls
1370 with_makeinfo
1371 with_compress_info
1372 with_pkg_config_prog
1373 with_crt_dir
1374 with_gameuser
1375 with_gnustep_conf
1376 enable_ns_self_contained
1377 enable_locallisppath
1378 enable_checking
1379 enable_check_lisp_object_type
1380 enable_profiling
1381 enable_autodepend
1382 enable_dependency_tracking
1383 enable_largefile
1384 enable_gcc_warnings
1385 enable_link_time_optimization
1386 with_x
1388 ac_precious_vars='build_alias
1389 host_alias
1390 target_alias
1392 CFLAGS
1393 LDFLAGS
1394 LIBS
1395 CPPFLAGS
1397 XMKMF'
1400 # Initialize some variables set by options.
1401 ac_init_help=
1402 ac_init_version=false
1403 ac_unrecognized_opts=
1404 ac_unrecognized_sep=
1405 # The variables have the same names as the options, with
1406 # dashes changed to underlines.
1407 cache_file=/dev/null
1408 exec_prefix=NONE
1409 no_create=
1410 no_recursion=
1411 prefix=NONE
1412 program_prefix=NONE
1413 program_suffix=NONE
1414 program_transform_name=s,x,x,
1415 silent=
1416 site=
1417 srcdir=
1418 verbose=
1419 x_includes=NONE
1420 x_libraries=NONE
1422 # Installation directory options.
1423 # These are left unexpanded so users can "make install exec_prefix=/foo"
1424 # and all the variables that are supposed to be based on exec_prefix
1425 # by default will actually change.
1426 # Use braces instead of parens because sh, perl, etc. also accept them.
1427 # (The list follows the same order as the GNU Coding Standards.)
1428 bindir='${exec_prefix}/bin'
1429 sbindir='${exec_prefix}/sbin'
1430 libexecdir='${exec_prefix}/libexec'
1431 datarootdir='${prefix}/share'
1432 datadir='${datarootdir}'
1433 sysconfdir='${prefix}/etc'
1434 sharedstatedir='${prefix}/com'
1435 localstatedir='${prefix}/var'
1436 includedir='${prefix}/include'
1437 oldincludedir='/usr/include'
1438 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1439 infodir='${datarootdir}/info'
1440 htmldir='${docdir}'
1441 dvidir='${docdir}'
1442 pdfdir='${docdir}'
1443 psdir='${docdir}'
1444 libdir='${exec_prefix}/lib'
1445 localedir='${datarootdir}/locale'
1446 mandir='${datarootdir}/man'
1448 ac_prev=
1449 ac_dashdash=
1450 for ac_option
1452 # If the previous option needs an argument, assign it.
1453 if test -n "$ac_prev"; then
1454 eval $ac_prev=\$ac_option
1455 ac_prev=
1456 continue
1459 case $ac_option in
1460 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1461 *) ac_optarg=yes ;;
1462 esac
1464 # Accept the important Cygnus configure options, so we can diagnose typos.
1466 case $ac_dashdash$ac_option in
1468 ac_dashdash=yes ;;
1470 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1471 ac_prev=bindir ;;
1472 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1473 bindir=$ac_optarg ;;
1475 -build | --build | --buil | --bui | --bu)
1476 ac_prev=build_alias ;;
1477 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1478 build_alias=$ac_optarg ;;
1480 -cache-file | --cache-file | --cache-fil | --cache-fi \
1481 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1482 ac_prev=cache_file ;;
1483 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1484 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1485 cache_file=$ac_optarg ;;
1487 --config-cache | -C)
1488 cache_file=config.cache ;;
1490 -datadir | --datadir | --datadi | --datad)
1491 ac_prev=datadir ;;
1492 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1493 datadir=$ac_optarg ;;
1495 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1496 | --dataroo | --dataro | --datar)
1497 ac_prev=datarootdir ;;
1498 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1499 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1500 datarootdir=$ac_optarg ;;
1502 -disable-* | --disable-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1506 as_fn_error "invalid feature name: $ac_useropt"
1507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1511 "enable_$ac_useropt"
1512 "*) ;;
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1515 esac
1516 eval enable_$ac_useropt=no ;;
1518 -docdir | --docdir | --docdi | --doc | --do)
1519 ac_prev=docdir ;;
1520 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1521 docdir=$ac_optarg ;;
1523 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1524 ac_prev=dvidir ;;
1525 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1526 dvidir=$ac_optarg ;;
1528 -enable-* | --enable-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532 as_fn_error "invalid feature name: $ac_useropt"
1533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1537 "enable_$ac_useropt"
1538 "*) ;;
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1541 esac
1542 eval enable_$ac_useropt=\$ac_optarg ;;
1544 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1545 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1546 | --exec | --exe | --ex)
1547 ac_prev=exec_prefix ;;
1548 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1549 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1550 | --exec=* | --exe=* | --ex=*)
1551 exec_prefix=$ac_optarg ;;
1553 -gas | --gas | --ga | --g)
1554 # Obsolete; use --with-gas.
1555 with_gas=yes ;;
1557 -help | --help | --hel | --he | -h)
1558 ac_init_help=long ;;
1559 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1560 ac_init_help=recursive ;;
1561 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1562 ac_init_help=short ;;
1564 -host | --host | --hos | --ho)
1565 ac_prev=host_alias ;;
1566 -host=* | --host=* | --hos=* | --ho=*)
1567 host_alias=$ac_optarg ;;
1569 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1570 ac_prev=htmldir ;;
1571 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1572 | --ht=*)
1573 htmldir=$ac_optarg ;;
1575 -includedir | --includedir | --includedi | --included | --include \
1576 | --includ | --inclu | --incl | --inc)
1577 ac_prev=includedir ;;
1578 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1579 | --includ=* | --inclu=* | --incl=* | --inc=*)
1580 includedir=$ac_optarg ;;
1582 -infodir | --infodir | --infodi | --infod | --info | --inf)
1583 ac_prev=infodir ;;
1584 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1585 infodir=$ac_optarg ;;
1587 -libdir | --libdir | --libdi | --libd)
1588 ac_prev=libdir ;;
1589 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1590 libdir=$ac_optarg ;;
1592 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1593 | --libexe | --libex | --libe)
1594 ac_prev=libexecdir ;;
1595 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1596 | --libexe=* | --libex=* | --libe=*)
1597 libexecdir=$ac_optarg ;;
1599 -localedir | --localedir | --localedi | --localed | --locale)
1600 ac_prev=localedir ;;
1601 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1602 localedir=$ac_optarg ;;
1604 -localstatedir | --localstatedir | --localstatedi | --localstated \
1605 | --localstate | --localstat | --localsta | --localst | --locals)
1606 ac_prev=localstatedir ;;
1607 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1608 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1609 localstatedir=$ac_optarg ;;
1611 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1612 ac_prev=mandir ;;
1613 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1614 mandir=$ac_optarg ;;
1616 -nfp | --nfp | --nf)
1617 # Obsolete; use --without-fp.
1618 with_fp=no ;;
1620 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1621 | --no-cr | --no-c | -n)
1622 no_create=yes ;;
1624 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1625 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1626 no_recursion=yes ;;
1628 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1629 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1630 | --oldin | --oldi | --old | --ol | --o)
1631 ac_prev=oldincludedir ;;
1632 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1633 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1634 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1635 oldincludedir=$ac_optarg ;;
1637 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1638 ac_prev=prefix ;;
1639 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1640 prefix=$ac_optarg ;;
1642 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1643 | --program-pre | --program-pr | --program-p)
1644 ac_prev=program_prefix ;;
1645 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1646 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1647 program_prefix=$ac_optarg ;;
1649 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1650 | --program-suf | --program-su | --program-s)
1651 ac_prev=program_suffix ;;
1652 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1653 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1654 program_suffix=$ac_optarg ;;
1656 -program-transform-name | --program-transform-name \
1657 | --program-transform-nam | --program-transform-na \
1658 | --program-transform-n | --program-transform- \
1659 | --program-transform | --program-transfor \
1660 | --program-transfo | --program-transf \
1661 | --program-trans | --program-tran \
1662 | --progr-tra | --program-tr | --program-t)
1663 ac_prev=program_transform_name ;;
1664 -program-transform-name=* | --program-transform-name=* \
1665 | --program-transform-nam=* | --program-transform-na=* \
1666 | --program-transform-n=* | --program-transform-=* \
1667 | --program-transform=* | --program-transfor=* \
1668 | --program-transfo=* | --program-transf=* \
1669 | --program-trans=* | --program-tran=* \
1670 | --progr-tra=* | --program-tr=* | --program-t=*)
1671 program_transform_name=$ac_optarg ;;
1673 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1674 ac_prev=pdfdir ;;
1675 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1676 pdfdir=$ac_optarg ;;
1678 -psdir | --psdir | --psdi | --psd | --ps)
1679 ac_prev=psdir ;;
1680 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1681 psdir=$ac_optarg ;;
1683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684 | -silent | --silent | --silen | --sile | --sil)
1685 silent=yes ;;
1687 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1688 ac_prev=sbindir ;;
1689 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1690 | --sbi=* | --sb=*)
1691 sbindir=$ac_optarg ;;
1693 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1694 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1695 | --sharedst | --shareds | --shared | --share | --shar \
1696 | --sha | --sh)
1697 ac_prev=sharedstatedir ;;
1698 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1699 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1700 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1701 | --sha=* | --sh=*)
1702 sharedstatedir=$ac_optarg ;;
1704 -site | --site | --sit)
1705 ac_prev=site ;;
1706 -site=* | --site=* | --sit=*)
1707 site=$ac_optarg ;;
1709 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1710 ac_prev=srcdir ;;
1711 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1712 srcdir=$ac_optarg ;;
1714 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1715 | --syscon | --sysco | --sysc | --sys | --sy)
1716 ac_prev=sysconfdir ;;
1717 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1718 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1719 sysconfdir=$ac_optarg ;;
1721 -target | --target | --targe | --targ | --tar | --ta | --t)
1722 ac_prev=target_alias ;;
1723 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1724 target_alias=$ac_optarg ;;
1726 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1727 verbose=yes ;;
1729 -version | --version | --versio | --versi | --vers | -V)
1730 ac_init_version=: ;;
1732 -with-* | --with-*)
1733 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1734 # Reject names that are not valid shell variable names.
1735 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1736 as_fn_error "invalid package name: $ac_useropt"
1737 ac_useropt_orig=$ac_useropt
1738 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1739 case $ac_user_opts in
1741 "with_$ac_useropt"
1742 "*) ;;
1743 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1744 ac_unrecognized_sep=', ';;
1745 esac
1746 eval with_$ac_useropt=\$ac_optarg ;;
1748 -without-* | --without-*)
1749 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1750 # Reject names that are not valid shell variable names.
1751 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1752 as_fn_error "invalid package name: $ac_useropt"
1753 ac_useropt_orig=$ac_useropt
1754 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1755 case $ac_user_opts in
1757 "with_$ac_useropt"
1758 "*) ;;
1759 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1760 ac_unrecognized_sep=', ';;
1761 esac
1762 eval with_$ac_useropt=no ;;
1764 --x)
1765 # Obsolete; use --with-x.
1766 with_x=yes ;;
1768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1769 | --x-incl | --x-inc | --x-in | --x-i)
1770 ac_prev=x_includes ;;
1771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1773 x_includes=$ac_optarg ;;
1775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1777 ac_prev=x_libraries ;;
1778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1780 x_libraries=$ac_optarg ;;
1782 -*) as_fn_error "unrecognized option: \`$ac_option'
1783 Try \`$0 --help' for more information."
1786 *=*)
1787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1788 # Reject names that are not valid shell variable names.
1789 case $ac_envvar in #(
1790 '' | [0-9]* | *[!_$as_cr_alnum]* )
1791 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1792 esac
1793 eval $ac_envvar=\$ac_optarg
1794 export $ac_envvar ;;
1797 # FIXME: should be removed in autoconf 3.0.
1798 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1800 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1804 esac
1805 done
1807 if test -n "$ac_prev"; then
1808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1809 as_fn_error "missing argument to $ac_option"
1812 if test -n "$ac_unrecognized_opts"; then
1813 case $enable_option_checking in
1814 no) ;;
1815 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1816 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1817 esac
1820 # Check all directory arguments for consistency.
1821 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1822 datadir sysconfdir sharedstatedir localstatedir includedir \
1823 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1824 libdir localedir mandir
1826 eval ac_val=\$$ac_var
1827 # Remove trailing slashes.
1828 case $ac_val in
1829 */ )
1830 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1831 eval $ac_var=\$ac_val;;
1832 esac
1833 # Be sure to have absolute directory names.
1834 case $ac_val in
1835 [\\/$]* | ?:[\\/]* ) continue;;
1836 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1837 esac
1838 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1839 done
1841 # There might be people who depend on the old broken behavior: `$host'
1842 # used to hold the argument of --host etc.
1843 # FIXME: To remove some day.
1844 build=$build_alias
1845 host=$host_alias
1846 target=$target_alias
1848 # FIXME: To remove some day.
1849 if test "x$host_alias" != x; then
1850 if test "x$build_alias" = x; then
1851 cross_compiling=maybe
1852 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1853 If a cross compiler is detected then cross compile mode will be used." >&2
1854 elif test "x$build_alias" != "x$host_alias"; then
1855 cross_compiling=yes
1859 ac_tool_prefix=
1860 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1862 test "$silent" = yes && exec 6>/dev/null
1865 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1866 ac_ls_di=`ls -di .` &&
1867 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1868 as_fn_error "working directory cannot be determined"
1869 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1870 as_fn_error "pwd does not report name of working directory"
1873 # Find the source files, if location was not specified.
1874 if test -z "$srcdir"; then
1875 ac_srcdir_defaulted=yes
1876 # Try the directory containing this script, then the parent directory.
1877 ac_confdir=`$as_dirname -- "$as_myself" ||
1878 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1879 X"$as_myself" : 'X\(//\)[^/]' \| \
1880 X"$as_myself" : 'X\(//\)$' \| \
1881 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1882 $as_echo X"$as_myself" |
1883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1884 s//\1/
1887 /^X\(\/\/\)[^/].*/{
1888 s//\1/
1891 /^X\(\/\/\)$/{
1892 s//\1/
1895 /^X\(\/\).*/{
1896 s//\1/
1899 s/.*/./; q'`
1900 srcdir=$ac_confdir
1901 if test ! -r "$srcdir/$ac_unique_file"; then
1902 srcdir=..
1904 else
1905 ac_srcdir_defaulted=no
1907 if test ! -r "$srcdir/$ac_unique_file"; then
1908 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1909 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1911 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1912 ac_abs_confdir=`(
1913 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1914 pwd)`
1915 # When building in place, set srcdir=.
1916 if test "$ac_abs_confdir" = "$ac_pwd"; then
1917 srcdir=.
1919 # Remove unnecessary trailing slashes from srcdir.
1920 # Double slashes in file names in object file debugging info
1921 # mess up M-x gdb in Emacs.
1922 case $srcdir in
1923 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1924 esac
1925 for ac_var in $ac_precious_vars; do
1926 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1927 eval ac_env_${ac_var}_value=\$${ac_var}
1928 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1929 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1930 done
1933 # Report the --help message.
1935 if test "$ac_init_help" = "long"; then
1936 # Omit some internal or obsolete options to make the list less imposing.
1937 # This message is too long to be a string in the A/UX 3.1 sh.
1938 cat <<_ACEOF
1939 \`configure' configures emacs 24.2.50 to adapt to many kinds of systems.
1941 Usage: $0 [OPTION]... [VAR=VALUE]...
1943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1944 VAR=VALUE. See below for descriptions of some of the useful variables.
1946 Defaults for the options are specified in brackets.
1948 Configuration:
1949 -h, --help display this help and exit
1950 --help=short display options specific to this package
1951 --help=recursive display the short help of all the included packages
1952 -V, --version display version information and exit
1953 -q, --quiet, --silent do not print \`checking...' messages
1954 --cache-file=FILE cache test results in FILE [disabled]
1955 -C, --config-cache alias for \`--cache-file=config.cache'
1956 -n, --no-create do not create output files
1957 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1959 Installation directories:
1960 --prefix=PREFIX install architecture-independent files in PREFIX
1961 [$ac_default_prefix]
1962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1963 [PREFIX]
1965 By default, \`make install' will install all the files in
1966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1968 for instance \`--prefix=\$HOME'.
1970 For better control, use the options below.
1972 Fine tuning of the installation directories:
1973 --bindir=DIR user executables [EPREFIX/bin]
1974 --sbindir=DIR system admin executables [EPREFIX/sbin]
1975 --libexecdir=DIR program executables [EPREFIX/libexec]
1976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1979 --libdir=DIR object code libraries [EPREFIX/lib]
1980 --includedir=DIR C header files [PREFIX/include]
1981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1982 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1983 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1984 --infodir=DIR info documentation [DATAROOTDIR/info]
1985 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1986 --mandir=DIR man documentation [DATAROOTDIR/man]
1987 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1988 --htmldir=DIR html documentation [DOCDIR]
1989 --dvidir=DIR dvi documentation [DOCDIR]
1990 --pdfdir=DIR pdf documentation [DOCDIR]
1991 --psdir=DIR ps documentation [DOCDIR]
1992 _ACEOF
1994 cat <<\_ACEOF
1996 Program names:
1997 --program-prefix=PREFIX prepend PREFIX to installed program names
1998 --program-suffix=SUFFIX append SUFFIX to installed program names
1999 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2001 X features:
2002 --x-includes=DIR X include files are in DIR
2003 --x-libraries=DIR X library files are in DIR
2005 System types:
2006 --build=BUILD configure for building on BUILD [guessed]
2007 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2008 _ACEOF
2011 if test -n "$ac_init_help"; then
2012 case $ac_init_help in
2013 short | recursive ) echo "Configuration of emacs 24.2.50:";;
2014 esac
2015 cat <<\_ACEOF
2017 Optional Features:
2018 --disable-option-checking ignore unrecognized --enable/--with options
2019 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2020 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2021 --disable-ns-self-contained
2022 disable self contained build under NeXTstep
2023 --enable-locallisppath=PATH
2024 directories Emacs should search for lisp files
2025 specific to this site
2026 --enable-checking[=LIST]
2027 enable expensive run-time checks. With LIST, enable
2028 only specific categories of checks. Categories are:
2029 all,yes,no. Flags are: stringbytes, stringoverrun,
2030 stringfreelist, xmallocoverrun, conslist, glyphs
2031 --enable-check-lisp-object-type
2032 enable compile time checks for the Lisp_Object data
2033 type. This is useful for development for catching
2034 certain types of bugs.
2035 --enable-profiling build emacs with profiling support. This might not
2036 work on all platforms
2037 --enable-autodepend automatically generate dependencies to .h-files.
2038 Requires GNU Make and Gcc. Enabled if GNU Make and
2039 Gcc is found
2040 --disable-dependency-tracking speeds up one-time build
2041 --enable-dependency-tracking do not reject slow dependency extractors
2042 --disable-largefile omit support for large files
2043 --enable-gcc-warnings turn on lots of GCC warnings. This is intended for
2044 developers, and may generate false alarms when used
2045 with older or non-GNU development tools.
2046 --enable-link-time-optimization
2047 build emacs with link-time optimization. This is
2048 supported only for GCC since 4.5.0.
2050 Optional Packages:
2051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2053 --without-all omit almost all features and build small executable
2054 with minimal dependencies
2055 --without-pop don't support POP mail retrieval with movemail
2056 --with-kerberos support Kerberos-authenticated POP
2057 --with-kerberos5 support Kerberos version 5 authenticated POP
2058 --with-hesiod support Hesiod to get the POP server host
2059 --with-mmdf support MMDF mailboxes
2060 --with-mail-unlink unlink, rather than empty, mail spool after reading
2061 --with-mailhost=HOSTNAME
2062 string giving default POP mail host
2063 --without-sound don't compile with sound support
2064 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2,
2065 gtk3, lucid or athena, motif, no)
2066 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2067 --without-xpm don't compile with XPM image support
2068 --without-jpeg don't compile with JPEG image support
2069 --without-tiff don't compile with TIFF image support
2070 --without-gif don't compile with GIF image support
2071 --without-png don't compile with PNG image support
2072 --without-rsvg don't compile with SVG image support
2073 --without-xml2 don't compile with XML parsing support
2074 --without-imagemagick don't compile with ImageMagick image support
2075 --without-xft don't use XFT for anti aliased fonts
2076 --without-libotf don't use libotf for OpenType font support
2077 --without-m17n-flt don't use m17n-flt for text shaping
2078 --without-toolkit-scroll-bars
2079 don't use Motif or Xaw3d scroll bars
2080 --without-xaw3d don't use Xaw3d
2081 --without-xim don't use X11 XIM
2082 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2083 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2084 console
2085 --without-dbus don't compile with D-Bus support
2086 --without-gconf don't compile with GConf support
2087 --without-gsettings don't compile with GSettings support
2088 --without-selinux don't compile with SELinux support
2089 --without-gnutls don't use -lgnutls for SSL/TLS support
2090 --without-makeinfo don't require makeinfo for building manuals
2091 --without-compress-info don't compress the installed Info pages
2092 --with-pkg-config-prog=PATH
2093 path to pkg-config for finding GTK and librsvg
2094 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2095 /usr/lib, or /usr/lib64 on some platforms.
2096 --with-gameuser=USER user for shared game score files
2097 --with-gnustep-conf=PATH
2098 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2099 or /etc/GNUstep/GNUstep.conf
2100 --with-x use the X Window System
2102 Some influential environment variables:
2103 CC C compiler command
2104 CFLAGS C compiler flags
2105 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2106 nonstandard directory <lib dir>
2107 LIBS libraries to pass to the linker, e.g. -l<library>
2108 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2109 you have headers in a nonstandard directory <include dir>
2110 CPP C preprocessor
2111 XMKMF Path to xmkmf, Makefile generator for X Window System
2113 Use these variables to override the choices made by `configure' or to help
2114 it to find libraries and programs with nonstandard names/locations.
2116 Report bugs to the package provider.
2117 _ACEOF
2118 ac_status=$?
2121 if test "$ac_init_help" = "recursive"; then
2122 # If there are subdirs, report their specific --help.
2123 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2124 test -d "$ac_dir" ||
2125 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2126 continue
2127 ac_builddir=.
2129 case "$ac_dir" in
2130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2133 # A ".." for each directory in $ac_dir_suffix.
2134 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2135 case $ac_top_builddir_sub in
2136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2138 esac ;;
2139 esac
2140 ac_abs_top_builddir=$ac_pwd
2141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2142 # for backward compatibility:
2143 ac_top_builddir=$ac_top_build_prefix
2145 case $srcdir in
2146 .) # We are building in place.
2147 ac_srcdir=.
2148 ac_top_srcdir=$ac_top_builddir_sub
2149 ac_abs_top_srcdir=$ac_pwd ;;
2150 [\\/]* | ?:[\\/]* ) # Absolute name.
2151 ac_srcdir=$srcdir$ac_dir_suffix;
2152 ac_top_srcdir=$srcdir
2153 ac_abs_top_srcdir=$srcdir ;;
2154 *) # Relative name.
2155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2156 ac_top_srcdir=$ac_top_build_prefix$srcdir
2157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2158 esac
2159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2161 cd "$ac_dir" || { ac_status=$?; continue; }
2162 # Check for guested configure.
2163 if test -f "$ac_srcdir/configure.gnu"; then
2164 echo &&
2165 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2166 elif test -f "$ac_srcdir/configure"; then
2167 echo &&
2168 $SHELL "$ac_srcdir/configure" --help=recursive
2169 else
2170 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2171 fi || ac_status=$?
2172 cd "$ac_pwd" || { ac_status=$?; break; }
2173 done
2176 test -n "$ac_init_help" && exit $ac_status
2177 if $ac_init_version; then
2178 cat <<\_ACEOF
2179 emacs configure 24.2.50
2180 generated by GNU Autoconf 2.65
2182 Copyright (C) 2009 Free Software Foundation, Inc.
2183 This configure script is free software; the Free Software Foundation
2184 gives unlimited permission to copy, distribute and modify it.
2185 _ACEOF
2186 exit
2189 ## ------------------------ ##
2190 ## Autoconf initialization. ##
2191 ## ------------------------ ##
2193 # ac_fn_c_try_compile LINENO
2194 # --------------------------
2195 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2196 ac_fn_c_try_compile ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 rm -f conftest.$ac_objext
2200 if { { ac_try="$ac_compile"
2201 case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_compile") 2>conftest.err
2208 ac_status=$?
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } && {
2216 test -z "$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2218 } && test -s conftest.$ac_objext; then :
2219 ac_retval=0
2220 else
2221 $as_echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 ac_retval=1
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227 as_fn_set_status $ac_retval
2229 } # ac_fn_c_try_compile
2231 # ac_fn_c_try_cpp LINENO
2232 # ----------------------
2233 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2234 ac_fn_c_try_cpp ()
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 if { { ac_try="$ac_cpp conftest.$ac_ext"
2238 case "(($ac_try" in
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2241 esac
2242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2243 $as_echo "$ac_try_echo"; } >&5
2244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2245 ac_status=$?
2246 if test -s conftest.err; then
2247 grep -v '^ *+' conftest.err >conftest.er1
2248 cat conftest.er1 >&5
2249 mv -f conftest.er1 conftest.err
2251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2252 test $ac_status = 0; } >/dev/null && {
2253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2254 test ! -s conftest.err
2255 }; then :
2256 ac_retval=0
2257 else
2258 $as_echo "$as_me: failed program was:" >&5
2259 sed 's/^/| /' conftest.$ac_ext >&5
2261 ac_retval=1
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264 as_fn_set_status $ac_retval
2266 } # ac_fn_c_try_cpp
2268 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2269 # -------------------------------------------------------
2270 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2271 # the include files in INCLUDES and setting the cache variable VAR
2272 # accordingly.
2273 ac_fn_c_check_header_mongrel ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278 $as_echo_n "checking for $2... " >&6; }
2279 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2280 $as_echo_n "(cached) " >&6
2282 eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285 else
2286 # Is the header compilable?
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2288 $as_echo_n "checking $2 usability... " >&6; }
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2292 #include <$2>
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 ac_header_compiler=yes
2296 else
2297 ac_header_compiler=no
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2301 $as_echo "$ac_header_compiler" >&6; }
2303 # Is the header present?
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2305 $as_echo_n "checking $2 presence... " >&6; }
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 #include <$2>
2309 _ACEOF
2310 if ac_fn_c_try_cpp "$LINENO"; then :
2311 ac_header_preproc=yes
2312 else
2313 ac_header_preproc=no
2315 rm -f conftest.err conftest.$ac_ext
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2317 $as_echo "$ac_header_preproc" >&6; }
2319 # So? What about this header?
2320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2321 yes:no: )
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2323 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2325 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2327 no:yes:* )
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2329 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2331 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2333 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2335 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2337 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2339 esac
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341 $as_echo_n "checking for $2... " >&6; }
2342 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2343 $as_echo_n "(cached) " >&6
2344 else
2345 eval "$3=\$ac_header_compiler"
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353 } # ac_fn_c_check_header_mongrel
2355 # ac_fn_c_try_run LINENO
2356 # ----------------------
2357 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2358 # that executables *can* be run.
2359 ac_fn_c_try_run ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 if { { ac_try="$ac_link"
2363 case "(($ac_try" in
2364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365 *) ac_try_echo=$ac_try;;
2366 esac
2367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2368 $as_echo "$ac_try_echo"; } >&5
2369 (eval "$ac_link") 2>&5
2370 ac_status=$?
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2373 { { case "(($ac_try" in
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2376 esac
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_try") 2>&5
2380 ac_status=$?
2381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2382 test $ac_status = 0; }; }; then :
2383 ac_retval=0
2384 else
2385 $as_echo "$as_me: program exited with status $ac_status" >&5
2386 $as_echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2389 ac_retval=$ac_status
2391 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 as_fn_set_status $ac_retval
2395 } # ac_fn_c_try_run
2397 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2398 # -------------------------------------------------------
2399 # Tests whether HEADER exists and can be compiled using the include files in
2400 # INCLUDES, setting the cache variable VAR accordingly.
2401 ac_fn_c_check_header_compile ()
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2412 #include <$2>
2413 _ACEOF
2414 if ac_fn_c_try_compile "$LINENO"; then :
2415 eval "$3=yes"
2416 else
2417 eval "$3=no"
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 eval ac_res=\$$3
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2423 $as_echo "$ac_res" >&6; }
2424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426 } # ac_fn_c_check_header_compile
2428 # ac_fn_c_try_link LINENO
2429 # -----------------------
2430 # Try to link conftest.$ac_ext, and return whether this succeeded.
2431 ac_fn_c_try_link ()
2433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434 rm -f conftest.$ac_objext conftest$ac_exeext
2435 if { { ac_try="$ac_link"
2436 case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2439 esac
2440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2441 $as_echo "$ac_try_echo"; } >&5
2442 (eval "$ac_link") 2>conftest.err
2443 ac_status=$?
2444 if test -s conftest.err; then
2445 grep -v '^ *+' conftest.err >conftest.er1
2446 cat conftest.er1 >&5
2447 mv -f conftest.er1 conftest.err
2449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2450 test $ac_status = 0; } && {
2451 test -z "$ac_c_werror_flag" ||
2452 test ! -s conftest.err
2453 } && test -s conftest$ac_exeext && {
2454 test "$cross_compiling" = yes ||
2455 $as_test_x conftest$ac_exeext
2456 }; then :
2457 ac_retval=0
2458 else
2459 $as_echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2462 ac_retval=1
2464 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2465 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2466 # interfere with the next link command; also delete a directory that is
2467 # left behind by Apple's compiler. We do this before executing the actions.
2468 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470 as_fn_set_status $ac_retval
2472 } # ac_fn_c_try_link
2474 # ac_fn_c_check_decl LINENO SYMBOL VAR
2475 # ------------------------------------
2476 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2477 ac_fn_c_check_decl ()
2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2481 $as_echo_n "checking whether $2 is declared... " >&6; }
2482 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2489 main ()
2491 #ifndef $2
2492 (void) $2;
2493 #endif
2496 return 0;
2498 _ACEOF
2499 if ac_fn_c_try_compile "$LINENO"; then :
2500 eval "$3=yes"
2501 else
2502 eval "$3=no"
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 eval ac_res=\$$3
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508 $as_echo "$ac_res" >&6; }
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511 } # ac_fn_c_check_decl
2513 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2514 # ----------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_c_check_header_preproc ()
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2526 #include <$2>
2527 _ACEOF
2528 if ac_fn_c_try_cpp "$LINENO"; then :
2529 eval "$3=yes"
2530 else
2531 eval "$3=no"
2533 rm -f conftest.err conftest.$ac_ext
2535 eval ac_res=\$$3
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540 } # ac_fn_c_check_header_preproc
2542 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2543 # ----------------------------------------------------
2544 # Tries to find if the field MEMBER exists in type AGGR, after including
2545 # INCLUDES, setting cache variable VAR accordingly.
2546 ac_fn_c_check_member ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2550 $as_echo_n "checking for $2.$3... " >&6; }
2551 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2558 main ()
2560 static $2 ac_aggr;
2561 if (ac_aggr.$3)
2562 return 0;
2564 return 0;
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 eval "$4=yes"
2569 else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2574 main ()
2576 static $2 ac_aggr;
2577 if (sizeof ac_aggr.$3)
2578 return 0;
2580 return 0;
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584 eval "$4=yes"
2585 else
2586 eval "$4=no"
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 eval ac_res=\$$4
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2597 } # ac_fn_c_check_member
2599 # ac_fn_c_check_func LINENO FUNC VAR
2600 # ----------------------------------
2601 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2602 ac_fn_c_check_func ()
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606 $as_echo_n "checking for $2... " >&6; }
2607 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2612 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2614 #define $2 innocuous_$2
2616 /* System header to define __stub macros and hopefully few prototypes,
2617 which can conflict with char $2 (); below.
2618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2619 <limits.h> exists even on freestanding compilers. */
2621 #ifdef __STDC__
2622 # include <limits.h>
2623 #else
2624 # include <assert.h>
2625 #endif
2627 #undef $2
2629 /* Override any GCC internal prototype to avoid an error.
2630 Use char because int might match the return type of a GCC
2631 builtin and then its argument prototype would still apply. */
2632 #ifdef __cplusplus
2633 extern "C"
2634 #endif
2635 char $2 ();
2636 /* The GNU C library defines this for functions which it implements
2637 to always fail with ENOSYS. Some functions are actually named
2638 something starting with __ and the normal name is an alias. */
2639 #if defined __stub_$2 || defined __stub___$2
2640 choke me
2641 #endif
2644 main ()
2646 return $2 ();
2648 return 0;
2650 _ACEOF
2651 if ac_fn_c_try_link "$LINENO"; then :
2652 eval "$3=yes"
2653 else
2654 eval "$3=no"
2656 rm -f core conftest.err conftest.$ac_objext \
2657 conftest$ac_exeext conftest.$ac_ext
2659 eval ac_res=\$$3
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2664 } # ac_fn_c_check_func
2666 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2667 # -------------------------------------------
2668 # Tests whether TYPE exists after having included INCLUDES, setting cache
2669 # variable VAR accordingly.
2670 ac_fn_c_check_type ()
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2674 $as_echo_n "checking for $2... " >&6; }
2675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 eval "$3=no"
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2683 main ()
2685 if (sizeof ($2))
2686 return 0;
2688 return 0;
2690 _ACEOF
2691 if ac_fn_c_try_compile "$LINENO"; then :
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2696 main ()
2698 if (sizeof (($2)))
2699 return 0;
2701 return 0;
2703 _ACEOF
2704 if ac_fn_c_try_compile "$LINENO"; then :
2706 else
2707 eval "$3=yes"
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 eval ac_res=\$$3
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2715 $as_echo "$ac_res" >&6; }
2716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2718 } # ac_fn_c_check_type
2720 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2721 # --------------------------------------------
2722 # Tries to find the compile-time value of EXPR in a program that includes
2723 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2724 # computed
2725 ac_fn_c_compute_int ()
2727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2728 if test "$cross_compiling" = yes; then
2729 # Depending upon the size, compute the lo and hi bounds.
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2734 main ()
2736 static int test_array [1 - 2 * !(($2) >= 0)];
2737 test_array [0] = 0
2740 return 0;
2742 _ACEOF
2743 if ac_fn_c_try_compile "$LINENO"; then :
2744 ac_lo=0 ac_mid=0
2745 while :; do
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2750 main ()
2752 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2753 test_array [0] = 0
2756 return 0;
2758 _ACEOF
2759 if ac_fn_c_try_compile "$LINENO"; then :
2760 ac_hi=$ac_mid; break
2761 else
2762 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2763 if test $ac_lo -le $ac_mid; then
2764 ac_lo= ac_hi=
2765 break
2767 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770 done
2771 else
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2776 main ()
2778 static int test_array [1 - 2 * !(($2) < 0)];
2779 test_array [0] = 0
2782 return 0;
2784 _ACEOF
2785 if ac_fn_c_try_compile "$LINENO"; then :
2786 ac_hi=-1 ac_mid=-1
2787 while :; do
2788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789 /* end confdefs.h. */
2792 main ()
2794 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2795 test_array [0] = 0
2798 return 0;
2800 _ACEOF
2801 if ac_fn_c_try_compile "$LINENO"; then :
2802 ac_lo=$ac_mid; break
2803 else
2804 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2805 if test $ac_mid -le $ac_hi; then
2806 ac_lo= ac_hi=
2807 break
2809 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 done
2813 else
2814 ac_lo= ac_hi=
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 # Binary search between lo and hi bounds.
2820 while test "x$ac_lo" != "x$ac_hi"; do
2821 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2826 main ()
2828 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2829 test_array [0] = 0
2832 return 0;
2834 _ACEOF
2835 if ac_fn_c_try_compile "$LINENO"; then :
2836 ac_hi=$ac_mid
2837 else
2838 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 done
2842 case $ac_lo in #((
2843 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2844 '') ac_retval=1 ;;
2845 esac
2846 else
2847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848 /* end confdefs.h. */
2850 static long int longval () { return $2; }
2851 static unsigned long int ulongval () { return $2; }
2852 #include <stdio.h>
2853 #include <stdlib.h>
2855 main ()
2858 FILE *f = fopen ("conftest.val", "w");
2859 if (! f)
2860 return 1;
2861 if (($2) < 0)
2863 long int i = longval ();
2864 if (i != ($2))
2865 return 1;
2866 fprintf (f, "%ld", i);
2868 else
2870 unsigned long int i = ulongval ();
2871 if (i != ($2))
2872 return 1;
2873 fprintf (f, "%lu", i);
2875 /* Do not output a trailing newline, as this causes \r\n confusion
2876 on some platforms. */
2877 return ferror (f) || fclose (f) != 0;
2880 return 0;
2882 _ACEOF
2883 if ac_fn_c_try_run "$LINENO"; then :
2884 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2885 else
2886 ac_retval=1
2888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2889 conftest.$ac_objext conftest.beam conftest.$ac_ext
2890 rm -f conftest.val
2893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2894 as_fn_set_status $ac_retval
2896 } # ac_fn_c_compute_int
2897 cat >config.log <<_ACEOF
2898 This file contains any messages produced by compilers while
2899 running configure, to aid debugging if configure makes a mistake.
2901 It was created by emacs $as_me 24.2.50, which was
2902 generated by GNU Autoconf 2.65. Invocation command line was
2904 $ $0 $@
2906 _ACEOF
2907 exec 5>>config.log
2909 cat <<_ASUNAME
2910 ## --------- ##
2911 ## Platform. ##
2912 ## --------- ##
2914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2931 _ASUNAME
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 $as_echo "PATH: $as_dir"
2939 done
2940 IFS=$as_save_IFS
2942 } >&5
2944 cat >&5 <<_ACEOF
2947 ## ----------- ##
2948 ## Core tests. ##
2949 ## ----------- ##
2951 _ACEOF
2954 # Keep a trace of the command line.
2955 # Strip out --no-create and --no-recursion so they do not pile up.
2956 # Strip out --silent because we don't want to record it for future runs.
2957 # Also quote any args containing shell meta-characters.
2958 # Make two passes to allow for proper duplicate-argument suppression.
2959 ac_configure_args=
2960 ac_configure_args0=
2961 ac_configure_args1=
2962 ac_must_keep_next=false
2963 for ac_pass in 1 2
2965 for ac_arg
2967 case $ac_arg in
2968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2970 | -silent | --silent | --silen | --sile | --sil)
2971 continue ;;
2972 *\'*)
2973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2974 esac
2975 case $ac_pass in
2976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2978 as_fn_append ac_configure_args1 " '$ac_arg'"
2979 if test $ac_must_keep_next = true; then
2980 ac_must_keep_next=false # Got value, back to normal.
2981 else
2982 case $ac_arg in
2983 *=* | --config-cache | -C | -disable-* | --disable-* \
2984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2986 | -with-* | --with-* | -without-* | --without-* | --x)
2987 case "$ac_configure_args0 " in
2988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2989 esac
2991 -* ) ac_must_keep_next=true ;;
2992 esac
2994 as_fn_append ac_configure_args " '$ac_arg'"
2996 esac
2997 done
2998 done
2999 { ac_configure_args0=; unset ac_configure_args0;}
3000 { ac_configure_args1=; unset ac_configure_args1;}
3002 # When interrupted or exit'd, cleanup temporary files, and complete
3003 # config.log. We remove comments because anyway the quotes in there
3004 # would cause problems or look ugly.
3005 # WARNING: Use '\'' to represent an apostrophe within the trap.
3006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3007 trap 'exit_status=$?
3008 # Save into config.log some information that might help in debugging.
3010 echo
3012 cat <<\_ASBOX
3013 ## ---------------- ##
3014 ## Cache variables. ##
3015 ## ---------------- ##
3016 _ASBOX
3017 echo
3018 # The following way of writing the cache mishandles newlines in values,
3020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3021 eval ac_val=\$$ac_var
3022 case $ac_val in #(
3023 *${as_nl}*)
3024 case $ac_var in #(
3025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3027 esac
3028 case $ac_var in #(
3029 _ | IFS | as_nl) ;; #(
3030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3031 *) { eval $ac_var=; unset $ac_var;} ;;
3032 esac ;;
3033 esac
3034 done
3035 (set) 2>&1 |
3036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3037 *${as_nl}ac_space=\ *)
3038 sed -n \
3039 "s/'\''/'\''\\\\'\'''\''/g;
3040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3041 ;; #(
3043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3045 esac |
3046 sort
3048 echo
3050 cat <<\_ASBOX
3051 ## ----------------- ##
3052 ## Output variables. ##
3053 ## ----------------- ##
3054 _ASBOX
3055 echo
3056 for ac_var in $ac_subst_vars
3058 eval ac_val=\$$ac_var
3059 case $ac_val in
3060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3061 esac
3062 $as_echo "$ac_var='\''$ac_val'\''"
3063 done | sort
3064 echo
3066 if test -n "$ac_subst_files"; then
3067 cat <<\_ASBOX
3068 ## ------------------- ##
3069 ## File substitutions. ##
3070 ## ------------------- ##
3071 _ASBOX
3072 echo
3073 for ac_var in $ac_subst_files
3075 eval ac_val=\$$ac_var
3076 case $ac_val in
3077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3078 esac
3079 $as_echo "$ac_var='\''$ac_val'\''"
3080 done | sort
3081 echo
3084 if test -s confdefs.h; then
3085 cat <<\_ASBOX
3086 ## ----------- ##
3087 ## confdefs.h. ##
3088 ## ----------- ##
3089 _ASBOX
3090 echo
3091 cat confdefs.h
3092 echo
3094 test "$ac_signal" != 0 &&
3095 $as_echo "$as_me: caught signal $ac_signal"
3096 $as_echo "$as_me: exit $exit_status"
3097 } >&5
3098 rm -f core *.core core.conftest.* &&
3099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3100 exit $exit_status
3102 for ac_signal in 1 2 13 15; do
3103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3104 done
3105 ac_signal=0
3107 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3108 rm -f -r conftest* confdefs.h
3110 $as_echo "/* confdefs.h */" > confdefs.h
3112 # Predefined preprocessor variables.
3114 cat >>confdefs.h <<_ACEOF
3115 #define PACKAGE_NAME "$PACKAGE_NAME"
3116 _ACEOF
3118 cat >>confdefs.h <<_ACEOF
3119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3120 _ACEOF
3122 cat >>confdefs.h <<_ACEOF
3123 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3124 _ACEOF
3126 cat >>confdefs.h <<_ACEOF
3127 #define PACKAGE_STRING "$PACKAGE_STRING"
3128 _ACEOF
3130 cat >>confdefs.h <<_ACEOF
3131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3132 _ACEOF
3134 cat >>confdefs.h <<_ACEOF
3135 #define PACKAGE_URL "$PACKAGE_URL"
3136 _ACEOF
3139 # Let the site file select an alternate cache file if it wants to.
3140 # Prefer an explicitly selected file to automatically selected ones.
3141 ac_site_file1=NONE
3142 ac_site_file2=NONE
3143 if test -n "$CONFIG_SITE"; then
3144 ac_site_file1=$CONFIG_SITE
3145 elif test "x$prefix" != xNONE; then
3146 ac_site_file1=$prefix/share/config.site
3147 ac_site_file2=$prefix/etc/config.site
3148 else
3149 ac_site_file1=$ac_default_prefix/share/config.site
3150 ac_site_file2=$ac_default_prefix/etc/config.site
3152 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3154 test "x$ac_site_file" = xNONE && continue
3155 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3157 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3158 sed 's/^/| /' "$ac_site_file" >&5
3159 . "$ac_site_file"
3161 done
3163 if test -r "$cache_file"; then
3164 # Some versions of bash will fail to source /dev/null (special files
3165 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3166 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3168 $as_echo "$as_me: loading cache $cache_file" >&6;}
3169 case $cache_file in
3170 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3171 *) . "./$cache_file";;
3172 esac
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3176 $as_echo "$as_me: creating cache $cache_file" >&6;}
3177 >$cache_file
3180 as_fn_append ac_header_list " linux/version.h"
3181 as_fn_append ac_header_list " sys/systeminfo.h"
3182 as_fn_append ac_header_list " stdio_ext.h"
3183 as_fn_append ac_header_list " fcntl.h"
3184 as_fn_append ac_header_list " coff.h"
3185 as_fn_append ac_header_list " pty.h"
3186 as_fn_append ac_header_list " sys/vlimit.h"
3187 as_fn_append ac_header_list " sys/resource.h"
3188 as_fn_append ac_header_list " sys/utsname.h"
3189 as_fn_append ac_header_list " pwd.h"
3190 as_fn_append ac_header_list " utmp.h"
3191 as_fn_append ac_header_list " dirent.h"
3192 as_fn_append ac_header_list " util.h"
3193 as_fn_append ac_header_list " sys/socket.h"
3194 as_fn_append ac_header_list " stdlib.h"
3195 as_fn_append ac_header_list " unistd.h"
3196 as_fn_append ac_header_list " sys/param.h"
3197 as_fn_append ac_header_list " pthread.h"
3198 as_fn_append ac_header_list " malloc/malloc.h"
3199 as_fn_append ac_header_list " maillock.h"
3200 as_fn_append ac_header_list " sys/un.h"
3201 as_fn_append ac_func_list " tzset"
3202 as_fn_append ac_func_list " readlinkat"
3203 as_fn_append ac_header_list " execinfo.h"
3204 gl_getopt_required=GNU
3205 as_fn_append ac_header_list " getopt.h"
3206 as_fn_append ac_func_list " gettimeofday"
3207 as_fn_append ac_func_list " nanotime"
3208 as_fn_append ac_header_list " sys/time.h"
3209 as_fn_append ac_header_list " wchar.h"
3210 as_fn_append ac_header_list " stdint.h"
3211 as_fn_append ac_header_list " inttypes.h"
3212 as_fn_append ac_func_list " lstat"
3213 as_fn_append ac_func_list " alarm"
3214 as_fn_append ac_header_list " sys/select.h"
3215 as_fn_append ac_func_list " pselect"
3216 as_fn_append ac_func_list " pthread_sigmask"
3217 as_fn_append ac_func_list " readlink"
3218 as_fn_append ac_func_list " strtoimax"
3219 as_fn_append ac_func_list " strtoumax"
3220 as_fn_append ac_func_list " symlink"
3221 as_fn_append ac_header_list " sys/stat.h"
3222 as_fn_append ac_func_list " localtime_r"
3223 as_fn_append ac_header_list " utime.h"
3224 as_fn_append ac_func_list " futimes"
3225 as_fn_append ac_func_list " futimesat"
3226 as_fn_append ac_func_list " futimens"
3227 as_fn_append ac_func_list " utimensat"
3228 as_fn_append ac_func_list " lutimes"
3229 # Check that the precious variables saved in the cache have kept the same
3230 # value.
3231 ac_cache_corrupted=false
3232 for ac_var in $ac_precious_vars; do
3233 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3234 eval ac_new_set=\$ac_env_${ac_var}_set
3235 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3236 eval ac_new_val=\$ac_env_${ac_var}_value
3237 case $ac_old_set,$ac_new_set in
3238 set,)
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3240 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3241 ac_cache_corrupted=: ;;
3242 ,set)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3244 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3245 ac_cache_corrupted=: ;;
3246 ,);;
3248 if test "x$ac_old_val" != "x$ac_new_val"; then
3249 # differences in whitespace do not lead to failure.
3250 ac_old_val_w=`echo x $ac_old_val`
3251 ac_new_val_w=`echo x $ac_new_val`
3252 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3254 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3255 ac_cache_corrupted=:
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3258 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3259 eval $ac_var=\$ac_old_val
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3262 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3264 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3265 fi;;
3266 esac
3267 # Pass precious variables to config.status.
3268 if test "$ac_new_set" = set; then
3269 case $ac_new_val in
3270 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3271 *) ac_arg=$ac_var=$ac_new_val ;;
3272 esac
3273 case " $ac_configure_args " in
3274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3275 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3276 esac
3278 done
3279 if $ac_cache_corrupted; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3283 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3284 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3286 ## -------------------- ##
3287 ## Main body of script. ##
3288 ## -------------------- ##
3290 ac_ext=c
3291 ac_cpp='$CPP $CPPFLAGS'
3292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3297 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3300 ac_aux_dir=
3301 for ac_dir in build-aux "$srcdir"/build-aux; do
3302 for ac_t in install-sh install.sh shtool; do
3303 if test -f "$ac_dir/$ac_t"; then
3304 ac_aux_dir=$ac_dir
3305 ac_install_sh="$ac_aux_dir/$ac_t -c"
3306 break 2
3308 done
3309 done
3310 if test -z "$ac_aux_dir"; then
3311 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3314 # These three variables are undocumented and unsupported,
3315 # and are intended to be withdrawn in a future Autoconf release.
3316 # They can cause serious problems if a builder's source tree is in a directory
3317 # whose full name contains unusual characters.
3318 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3319 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3320 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3323 am__api_version='1.11'
3325 # Find a good install program. We prefer a C program (faster),
3326 # so one script is as good as another. But avoid the broken or
3327 # incompatible versions:
3328 # SysV /etc/install, /usr/sbin/install
3329 # SunOS /usr/etc/install
3330 # IRIX /sbin/install
3331 # AIX /bin/install
3332 # AmigaOS /C/install, which installs bootblocks on floppy discs
3333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3336 # OS/2's system install, which has a completely different semantic
3337 # ./install, which can be erroneously created by make from ./install.sh.
3338 # Reject install programs that cannot install multiple files.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3341 if test -z "$INSTALL"; then
3342 if test "${ac_cv_path_install+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 # Account for people who put trailing slashes in PATH elements.
3351 case $as_dir/ in #((
3352 ./ | .// | /[cC]/* | \
3353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3354 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3355 /usr/ucb/* ) ;;
3357 # OSF1 and SCO ODT 3.0 have their own names for install.
3358 # Don't use installbsd from OSF since it installs stuff as root
3359 # by default.
3360 for ac_prog in ginstall scoinst install; do
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3363 if test $ac_prog = install &&
3364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3365 # AIX install. It has an incompatible calling convention.
3367 elif test $ac_prog = install &&
3368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3369 # program-specific install script used by HP pwplus--don't use.
3371 else
3372 rm -rf conftest.one conftest.two conftest.dir
3373 echo one > conftest.one
3374 echo two > conftest.two
3375 mkdir conftest.dir
3376 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3377 test -s conftest.one && test -s conftest.two &&
3378 test -s conftest.dir/conftest.one &&
3379 test -s conftest.dir/conftest.two
3380 then
3381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3382 break 3
3386 done
3387 done
3389 esac
3391 done
3392 IFS=$as_save_IFS
3394 rm -rf conftest.one conftest.two conftest.dir
3397 if test "${ac_cv_path_install+set}" = set; then
3398 INSTALL=$ac_cv_path_install
3399 else
3400 # As a last resort, use the slow shell script. Don't cache a
3401 # value for INSTALL within a source directory, because that will
3402 # break other packages using the cache if that directory is
3403 # removed, or if the value is a relative name.
3404 INSTALL=$ac_install_sh
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3408 $as_echo "$INSTALL" >&6; }
3410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3411 # It thinks the first close brace ends the variable substitution.
3412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3419 $as_echo_n "checking whether build environment is sane... " >&6; }
3420 # Just in case
3421 sleep 1
3422 echo timestamp > conftest.file
3423 # Reject unsafe characters in $srcdir or the absolute working directory
3424 # name. Accept space and tab only in the latter.
3425 am_lf='
3427 case `pwd` in
3428 *[\\\"\#\$\&\'\`$am_lf]*)
3429 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3430 esac
3431 case $srcdir in
3432 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3433 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3434 esac
3436 # Do `set' in a subshell so we don't clobber the current shell's
3437 # arguments. Must try -L first in case configure is actually a
3438 # symlink; some systems play weird games with the mod time of symlinks
3439 # (eg FreeBSD returns the mod time of the symlink's containing
3440 # directory).
3441 if (
3442 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3443 if test "$*" = "X"; then
3444 # -L didn't work.
3445 set X `ls -t "$srcdir/configure" conftest.file`
3447 rm -f conftest.file
3448 if test "$*" != "X $srcdir/configure conftest.file" \
3449 && test "$*" != "X conftest.file $srcdir/configure"; then
3451 # If neither matched, then we have a broken ls. This can happen
3452 # if, for instance, CONFIG_SHELL is bash and it inherits a
3453 # broken ls alias from the environment. This has actually
3454 # happened. Such a system could not be considered "sane".
3455 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3456 alias in your environment" "$LINENO" 5
3459 test "$2" = conftest.file
3461 then
3462 # Ok.
3464 else
3465 as_fn_error "newly created file is older than distributed files!
3466 Check your system clock" "$LINENO" 5
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3469 $as_echo "yes" >&6; }
3470 test "$program_prefix" != NONE &&
3471 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3472 # Use a double $ so make ignores it.
3473 test "$program_suffix" != NONE &&
3474 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3475 # Double any \ or $.
3476 # By default was `s,x,x', remove it if useless.
3477 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3478 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3480 # expand $ac_aux_dir to an absolute path
3481 am_aux_dir=`cd $ac_aux_dir && pwd`
3483 if test x"${MISSING+set}" != xset; then
3484 case $am_aux_dir in
3485 *\ * | *\ *)
3486 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3488 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3489 esac
3491 # Use eval to expand $SHELL
3492 if eval "$MISSING --run true"; then
3493 am_missing_run="$MISSING --run "
3494 else
3495 am_missing_run=
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3497 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3500 if test x"${install_sh}" != xset; then
3501 case $am_aux_dir in
3502 *\ * | *\ *)
3503 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3505 install_sh="\${SHELL} $am_aux_dir/install-sh"
3506 esac
3509 # Installed binaries are usually stripped using `strip' when the user
3510 # run `make install-strip'. However `strip' might not be the right
3511 # tool to use in cross-compilation environments, therefore Automake
3512 # will honor the `STRIP' environment variable to overrule this program.
3513 if test "$cross_compiling" != no; then
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}strip; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_STRIP+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$STRIP"; then
3523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3536 done
3537 done
3538 IFS=$as_save_IFS
3542 STRIP=$ac_cv_prog_STRIP
3543 if test -n "$STRIP"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3545 $as_echo "$STRIP" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3553 if test -z "$ac_cv_prog_STRIP"; then
3554 ac_ct_STRIP=$STRIP
3555 # Extract the first word of "strip", so it can be a program name with args.
3556 set dummy strip; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_STRIP"; then
3563 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_STRIP="strip"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3583 if test -n "$ac_ct_STRIP"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3585 $as_echo "$ac_ct_STRIP" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3591 if test "x$ac_ct_STRIP" = x; then
3592 STRIP=":"
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 STRIP=$ac_ct_STRIP
3602 else
3603 STRIP="$ac_cv_prog_STRIP"
3607 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3610 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3611 if test -z "$MKDIR_P"; then
3612 if test "${ac_cv_path_mkdir+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_prog in mkdir gmkdir; do
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3623 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3624 'mkdir (GNU coreutils) '* | \
3625 'mkdir (coreutils) '* | \
3626 'mkdir (fileutils) '4.1*)
3627 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3628 break 3;;
3629 esac
3630 done
3631 done
3632 done
3633 IFS=$as_save_IFS
3637 test -d ./--version && rmdir ./--version
3638 if test "${ac_cv_path_mkdir+set}" = set; then
3639 MKDIR_P="$ac_cv_path_mkdir -p"
3640 else
3641 # As a last resort, use the slow shell script. Don't cache a
3642 # value for MKDIR_P within a source directory, because that will
3643 # break other packages using the cache if that directory is
3644 # removed, or if the value is a relative name.
3645 MKDIR_P="$ac_install_sh -d"
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3649 $as_echo "$MKDIR_P" >&6; }
3652 mkdir_p="$MKDIR_P"
3653 case $mkdir_p in
3654 [\\/$]* | ?:[\\/]*) ;;
3655 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3656 esac
3658 for ac_prog in gawk mawk nawk awk
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_prog_AWK+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -n "$AWK"; then
3668 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_AWK="$ac_prog"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3681 done
3682 done
3683 IFS=$as_save_IFS
3687 AWK=$ac_cv_prog_AWK
3688 if test -n "$AWK"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3690 $as_echo "$AWK" >&6; }
3691 else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3697 test -n "$AWK" && break
3698 done
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3701 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3702 set x ${MAKE-make}
3703 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3704 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 cat >conftest.make <<\_ACEOF
3708 SHELL = /bin/sh
3709 all:
3710 @echo '@@@%%%=$(MAKE)=@@@%%%'
3711 _ACEOF
3712 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3713 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3714 *@@@%%%=?*=@@@%%%*)
3715 eval ac_cv_prog_make_${ac_make}_set=yes;;
3717 eval ac_cv_prog_make_${ac_make}_set=no;;
3718 esac
3719 rm -f conftest.make
3721 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3723 $as_echo "yes" >&6; }
3724 SET_MAKE=
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 SET_MAKE="MAKE=${MAKE-make}"
3731 rm -rf .tst 2>/dev/null
3732 mkdir .tst 2>/dev/null
3733 if test -d .tst; then
3734 am__leading_dot=.
3735 else
3736 am__leading_dot=_
3738 rmdir .tst 2>/dev/null
3740 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3741 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3742 # is not polluted with repeated "-I."
3743 am__isrc=' -I$(srcdir)'
3744 # test to see if srcdir already configured
3745 if test -f $srcdir/config.status; then
3746 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3750 # test whether we have cygpath
3751 if test -z "$CYGPATH_W"; then
3752 if (cygpath --version) >/dev/null 2>/dev/null; then
3753 CYGPATH_W='cygpath -w'
3754 else
3755 CYGPATH_W=echo
3760 # Define the identity of the package.
3761 PACKAGE='emacs'
3762 VERSION='24.2.50'
3765 cat >>confdefs.h <<_ACEOF
3766 #define PACKAGE "$PACKAGE"
3767 _ACEOF
3770 cat >>confdefs.h <<_ACEOF
3771 #define VERSION "$VERSION"
3772 _ACEOF
3774 # Some tools Automake needs.
3776 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3779 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3782 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3785 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3788 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3790 # We need awk for the "check" target. The system "awk" is bad on
3791 # some platforms.
3792 # Always define AMTAR for backward compatibility.
3794 AMTAR=${AMTAR-"${am_missing_run}tar"}
3796 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3805 lispdir='${datadir}/emacs/${version}/lisp'
3806 leimdir='${datadir}/emacs/${version}/leim'
3807 standardlisppath='${lispdir}:${leimdir}'
3808 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3809 '${datadir}/emacs/site-lisp'
3810 lisppath='${locallisppath}:${standardlisppath}'
3811 etcdir='${datadir}/emacs/${version}/etc'
3812 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3813 docdir='${datadir}/emacs/${version}/etc'
3814 gamedir='${localstatedir}/games/emacs'
3817 # Check whether --with-all was given.
3818 if test "${with_all+set}" = set; then :
3819 withval=$with_all; with_features=$withval
3820 else
3821 with_features=yes
3828 # Check whether --with-pop was given.
3829 if test "${with_pop+set}" = set; then :
3830 withval=$with_pop;
3831 else
3832 with_pop=$with_features
3835 if test "$with_pop" = yes; then
3836 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3841 # Check whether --with-kerberos was given.
3842 if test "${with_kerberos+set}" = set; then :
3843 withval=$with_kerberos;
3844 else
3845 with_kerberos=no
3848 if test "$with_kerberos" != no; then
3849 $as_echo "#define KERBEROS 1" >>confdefs.h
3854 # Check whether --with-kerberos5 was given.
3855 if test "${with_kerberos5+set}" = set; then :
3856 withval=$with_kerberos5;
3857 else
3858 with_kerberos5=no
3861 if test "${with_kerberos5}" != no; then
3862 if test "${with_kerberos}" = no; then
3863 with_kerberos=yes
3864 $as_echo "#define KERBEROS 1" >>confdefs.h
3868 $as_echo "#define KERBEROS5 1" >>confdefs.h
3873 # Check whether --with-hesiod was given.
3874 if test "${with_hesiod+set}" = set; then :
3875 withval=$with_hesiod;
3876 else
3877 with_hesiod=no
3880 if test "$with_hesiod" != no; then
3882 $as_echo "#define HESIOD 1" >>confdefs.h
3887 # Check whether --with-mmdf was given.
3888 if test "${with_mmdf+set}" = set; then :
3889 withval=$with_mmdf;
3890 else
3891 with_mmdf=no
3894 if test "$with_mmdf" != no; then
3896 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3901 # Check whether --with-mail-unlink was given.
3902 if test "${with_mail_unlink+set}" = set; then :
3903 withval=$with_mail_unlink;
3904 else
3905 with_mail_unlink=no
3908 if test "$with_mail_unlink" != no; then
3910 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3915 # Check whether --with-mailhost was given.
3916 if test "${with_mailhost+set}" = set; then :
3917 withval=$with_mailhost;
3918 cat >>confdefs.h <<_ACEOF
3919 #define MAILHOST "$withval"
3920 _ACEOF
3926 # Check whether --with-sound was given.
3927 if test "${with_sound+set}" = set; then :
3928 withval=$with_sound;
3929 else
3930 with_sound=$with_features
3935 # Check whether --with-x-toolkit was given.
3936 if test "${with_x_toolkit+set}" = set; then :
3937 withval=$with_x_toolkit; case "${withval}" in
3938 y | ye | yes ) val=gtk ;;
3939 n | no ) val=no ;;
3940 l | lu | luc | luci | lucid ) val=lucid ;;
3941 a | at | ath | athe | athen | athena ) val=athena ;;
3942 m | mo | mot | moti | motif ) val=motif ;;
3943 g | gt | gtk ) val=gtk ;;
3944 gtk2 ) val=gtk2 ;;
3945 gtk3 ) val=gtk3 ;;
3947 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3948 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk',
3949 \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms.
3950 \`athena' and \`lucid' are synonyms." "$LINENO" 5
3952 esac
3953 with_x_toolkit=$val
3959 # Check whether --with-wide-int was given.
3960 if test "${with_wide_int+set}" = set; then :
3961 withval=$with_wide_int;
3962 else
3963 with_wide_int=no
3966 if test "$with_wide_int" = yes; then
3968 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3973 # Check whether --with-xpm was given.
3974 if test "${with_xpm+set}" = set; then :
3975 withval=$with_xpm;
3976 else
3977 with_xpm=$with_features
3981 # Check whether --with-jpeg was given.
3982 if test "${with_jpeg+set}" = set; then :
3983 withval=$with_jpeg;
3984 else
3985 with_jpeg=$with_features
3989 # Check whether --with-tiff was given.
3990 if test "${with_tiff+set}" = set; then :
3991 withval=$with_tiff;
3992 else
3993 with_tiff=$with_features
3997 # Check whether --with-gif was given.
3998 if test "${with_gif+set}" = set; then :
3999 withval=$with_gif;
4000 else
4001 with_gif=$with_features
4005 # Check whether --with-png was given.
4006 if test "${with_png+set}" = set; then :
4007 withval=$with_png;
4008 else
4009 with_png=$with_features
4013 # Check whether --with-rsvg was given.
4014 if test "${with_rsvg+set}" = set; then :
4015 withval=$with_rsvg;
4016 else
4017 with_rsvg=$with_features
4021 # Check whether --with-xml2 was given.
4022 if test "${with_xml2+set}" = set; then :
4023 withval=$with_xml2;
4024 else
4025 with_xml2=$with_features
4029 # Check whether --with-imagemagick was given.
4030 if test "${with_imagemagick+set}" = set; then :
4031 withval=$with_imagemagick;
4032 else
4033 with_imagemagick=$with_features
4038 # Check whether --with-xft was given.
4039 if test "${with_xft+set}" = set; then :
4040 withval=$with_xft;
4041 else
4042 with_xft=$with_features
4046 # Check whether --with-libotf was given.
4047 if test "${with_libotf+set}" = set; then :
4048 withval=$with_libotf;
4049 else
4050 with_libotf=$with_features
4054 # Check whether --with-m17n-flt was given.
4055 if test "${with_m17n_flt+set}" = set; then :
4056 withval=$with_m17n_flt;
4057 else
4058 with_m17n_flt=$with_features
4063 # Check whether --with-toolkit-scroll-bars was given.
4064 if test "${with_toolkit_scroll_bars+set}" = set; then :
4065 withval=$with_toolkit_scroll_bars;
4066 else
4067 with_toolkit_scroll_bars=$with_features
4071 # Check whether --with-xaw3d was given.
4072 if test "${with_xaw3d+set}" = set; then :
4073 withval=$with_xaw3d;
4074 else
4075 with_xaw3d=$with_features
4079 # Check whether --with-xim was given.
4080 if test "${with_xim+set}" = set; then :
4081 withval=$with_xim;
4082 else
4083 with_xim=$with_features
4087 # Check whether --with-ns was given.
4088 if test "${with_ns+set}" = set; then :
4089 withval=$with_ns;
4090 else
4091 with_ns=no
4096 # Check whether --with-gpm was given.
4097 if test "${with_gpm+set}" = set; then :
4098 withval=$with_gpm;
4099 else
4100 with_gpm=$with_features
4104 # Check whether --with-dbus was given.
4105 if test "${with_dbus+set}" = set; then :
4106 withval=$with_dbus;
4107 else
4108 with_dbus=$with_features
4112 # Check whether --with-gconf was given.
4113 if test "${with_gconf+set}" = set; then :
4114 withval=$with_gconf;
4115 else
4116 with_gconf=$with_features
4120 # Check whether --with-gsettings was given.
4121 if test "${with_gsettings+set}" = set; then :
4122 withval=$with_gsettings;
4123 else
4124 with_gsettings=$with_features
4128 # Check whether --with-selinux was given.
4129 if test "${with_selinux+set}" = set; then :
4130 withval=$with_selinux;
4131 else
4132 with_selinux=$with_features
4136 # Check whether --with-gnutls was given.
4137 if test "${with_gnutls+set}" = set; then :
4138 withval=$with_gnutls;
4139 else
4140 with_gnutls=$with_features
4144 ## For the times when you want to build Emacs but don't have
4145 ## a suitable makeinfo, and can live without the manuals.
4147 # Check whether --with-makeinfo was given.
4148 if test "${with_makeinfo+set}" = set; then :
4149 withval=$with_makeinfo;
4150 else
4151 with_makeinfo=$with_features
4155 ## Makefile.in needs the cache file name.
4158 ## This is an option because I do not know if all info/man support
4159 ## compressed files, nor how to test if they do so.
4161 # Check whether --with-compress-info was given.
4162 if test "${with_compress_info+set}" = set; then :
4163 withval=$with_compress_info;
4164 else
4165 with_compress_info=$with_features
4168 if test $with_compress_info = yes; then
4169 GZIP_INFO=yes
4170 else
4171 GZIP_INFO=
4176 # Check whether --with-pkg-config-prog was given.
4177 if test "${with_pkg_config_prog+set}" = set; then :
4178 withval=$with_pkg_config_prog;
4181 if test "X${with_pkg_config_prog}" != X; then
4182 if test "${with_pkg_config_prog}" != yes; then
4183 PKG_CONFIG="${with_pkg_config_prog}"
4187 CRT_DIR=
4189 # Check whether --with-crt-dir was given.
4190 if test "${with_crt_dir+set}" = set; then :
4191 withval=$with_crt_dir;
4194 CRT_DIR="${with_crt_dir}"
4197 # Check whether --with-gameuser was given.
4198 if test "${with_gameuser+set}" = set; then :
4199 withval=$with_gameuser;
4202 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4203 && gameuser="${with_gameuser}"
4204 test "X$gameuser" = X && gameuser=games
4207 # Check whether --with-gnustep-conf was given.
4208 if test "${with_gnustep_conf+set}" = set; then :
4209 withval=$with_gnustep_conf;
4212 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4213 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4214 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4215 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4217 # Check whether --enable-ns-self-contained was given.
4218 if test "${enable_ns_self_contained+set}" = set; then :
4219 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4220 else
4221 EN_NS_SELF_CONTAINED=yes
4225 # Check whether --enable-locallisppath was given.
4226 if test "${enable_locallisppath+set}" = set; then :
4227 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4228 locallisppath=
4229 elif test "${enableval}" != "yes"; then
4230 locallisppath=${enableval}
4235 # Check whether --enable-checking was given.
4236 if test "${enable_checking+set}" = set; then :
4237 enableval=$enable_checking; ac_checking_flags="${enableval}"
4240 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4241 for check in $ac_checking_flags
4243 case $check in
4244 # these set all the flags to specific states
4245 yes) ac_enable_checking=1 ;;
4246 no) ac_enable_checking= ;
4247 ac_gc_check_stringbytes= ;
4248 ac_gc_check_string_overrun= ;
4249 ac_gc_check_string_free_list= ;
4250 ac_xmalloc_overrun= ;
4251 ac_gc_check_cons_list= ;
4252 ac_glyphs_debug= ;;
4253 all) ac_enable_checking=1 ;
4254 ac_gc_check_stringbytes=1 ;
4255 ac_gc_check_string_overrun=1 ;
4256 ac_gc_check_string_free_list=1 ;
4257 ac_xmalloc_overrun=1 ;
4258 ac_gc_check_cons_list=1 ;
4259 ac_glyphs_debug=1 ;;
4260 # these enable particular checks
4261 stringbytes) ac_gc_check_stringbytes=1 ;;
4262 stringoverrun) ac_gc_check_string_overrun=1 ;;
4263 stringfreelist) ac_gc_check_string_free_list=1 ;;
4264 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4265 conslist) ac_gc_check_cons_list=1 ;;
4266 glyphs) ac_glyphs_debug=1 ;;
4267 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4268 esac
4269 done
4270 IFS="$ac_save_IFS"
4272 if test x$ac_enable_checking != x ; then
4274 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4277 if test x$ac_gc_check_stringbytes != x ; then
4279 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4282 if test x$ac_gc_check_string_overrun != x ; then
4284 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4287 if test x$ac_gc_check_string_free_list != x ; then
4289 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4292 if test x$ac_xmalloc_overrun != x ; then
4294 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4297 if test x$ac_gc_check_cons_list != x ; then
4299 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4302 if test x$ac_glyphs_debug != x ; then
4304 $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h
4308 # Check whether --enable-check-lisp-object-type was given.
4309 if test "${enable_check_lisp_object_type+set}" = set; then :
4310 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4312 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4319 # Check whether --enable-profiling was given.
4320 if test "${enable_profiling+set}" = set; then :
4321 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4324 if test x$ac_enable_profiling != x ; then
4325 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4326 else
4327 PROFILING_CFLAGS=
4331 # Check whether --enable-autodepend was given.
4332 if test "${enable_autodepend+set}" = set; then :
4333 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4334 else
4335 ac_enable_autodepend=yes
4339 #### Make srcdir absolute, if it isn't already. It's important to
4340 #### avoid running the path through pwd unnecessarily, since pwd can
4341 #### give you automounter prefixes, which can go away. We do all this
4342 #### so Emacs can find its files when run uninstalled.
4343 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4344 unset CDPATH
4345 case "${srcdir}" in
4346 /* ) ;;
4348 ## We may be able to use the $PWD environment variable to make this
4349 ## absolute. But sometimes PWD is inaccurate.
4350 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4351 ## but that tested only for a well-formed and valid PWD,
4352 ## it did not object when PWD was well-formed and valid but just wrong.
4353 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4354 then
4355 srcdir="$PWD"
4356 else
4357 srcdir="`(cd ${srcdir}; pwd)`"
4360 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4361 esac
4363 ### Canonicalize the configuration name.
4365 # Make sure we can run config.sub.
4366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4367 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4370 $as_echo_n "checking build system type... " >&6; }
4371 if test "${ac_cv_build+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 ac_build_alias=$build_alias
4375 test "x$ac_build_alias" = x &&
4376 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4377 test "x$ac_build_alias" = x &&
4378 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4380 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4384 $as_echo "$ac_cv_build" >&6; }
4385 case $ac_cv_build in
4386 *-*-*) ;;
4387 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4388 esac
4389 build=$ac_cv_build
4390 ac_save_IFS=$IFS; IFS='-'
4391 set x $ac_cv_build
4392 shift
4393 build_cpu=$1
4394 build_vendor=$2
4395 shift; shift
4396 # Remember, the first character of IFS is used to create $*,
4397 # except with old shells:
4398 build_os=$*
4399 IFS=$ac_save_IFS
4400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4404 $as_echo_n "checking host system type... " >&6; }
4405 if test "${ac_cv_host+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if test "x$host_alias" = x; then
4409 ac_cv_host=$ac_cv_build
4410 else
4411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4412 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4417 $as_echo "$ac_cv_host" >&6; }
4418 case $ac_cv_host in
4419 *-*-*) ;;
4420 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4421 esac
4422 host=$ac_cv_host
4423 ac_save_IFS=$IFS; IFS='-'
4424 set x $ac_cv_host
4425 shift
4426 host_cpu=$1
4427 host_vendor=$2
4428 shift; shift
4429 # Remember, the first character of IFS is used to create $*,
4430 # except with old shells:
4431 host_os=$*
4432 IFS=$ac_save_IFS
4433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4436 canonical=$host
4437 configuration=${host_alias-${build_alias-$host}}
4441 ### If you add support for a new configuration, add code to this
4442 ### switch statement to recognize your configuration name and select
4443 ### the appropriate operating system file.
4445 ### You would hope that you could choose an s/*.h
4446 ### file based on the operating system portion. However, it turns out
4447 ### that each s/*.h file is pretty manufacturer-specific.
4448 ### So we basically have to have a special case for each
4449 ### configuration name.
4451 ### As far as handling version numbers on operating systems is
4452 ### concerned, make sure things will fail in a fixable way. If
4453 ### /etc/MACHINES doesn't say anything about version numbers, be
4454 ### prepared to handle anything reasonably. If version numbers
4455 ### matter, be sure /etc/MACHINES says something about it.
4457 opsys='' unported=no
4458 case "${canonical}" in
4460 ## GNU/Linux and similar ports
4461 *-*-linux* )
4462 opsys=gnu-linux
4465 ## FreeBSD ports
4466 *-*-freebsd* )
4467 opsys=freebsd
4470 ## FreeBSD kernel + glibc based userland
4471 *-*-kfreebsd*gnu* )
4472 opsys=gnu-kfreebsd
4475 ## NetBSD ports
4476 *-*-netbsd* )
4477 opsys=netbsd
4480 ## OpenBSD ports
4481 *-*-openbsd* )
4482 opsys=openbsd
4485 ## Apple Darwin / Mac OS X
4486 *-apple-darwin* )
4487 case "${canonical}" in
4488 i[3456]86-* ) ;;
4489 powerpc-* ) ;;
4490 x86_64-* ) ;;
4491 * ) unported=yes ;;
4492 esac
4493 opsys=darwin
4494 ## Use fink packages if available.
4495 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4496 ## if test -d /sw/include && test -d /sw/lib; then
4497 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4498 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4499 ## fi
4502 ## HP 9000 series 700 and 800, running HP/UX
4503 hppa*-hp-hpux10.2* )
4504 opsys=hpux10-20
4506 hppa*-hp-hpux1[1-9]* )
4507 opsys=hpux11
4508 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4511 ## IBM machines
4512 rs6000-ibm-aix4.[23]* )
4513 opsys=aix4-2
4515 powerpc-ibm-aix4.[23]* )
4516 opsys=aix4-2
4518 rs6000-ibm-aix[56]* )
4519 opsys=aix4-2
4521 powerpc-ibm-aix[56]* )
4522 opsys=aix4-2
4525 ## Silicon Graphics machines
4526 ## Iris 4D
4527 mips-sgi-irix6.5 )
4528 opsys=irix6-5
4529 # Without defining _LANGUAGE_C, things get masked out in the headers
4530 # so that, for instance, grepping for `free' in stdlib.h fails and
4531 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4532 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4535 ## Suns
4536 *-sun-solaris* \
4537 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4538 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4539 case "${canonical}" in
4540 i[3456]86-*-* ) ;;
4541 amd64-*-*|x86_64-*-*) ;;
4542 sparc* ) ;;
4543 * ) unported=yes ;;
4544 esac
4545 case "${canonical}" in
4546 *-sunos5.6* | *-solaris2.6* )
4547 opsys=sol2-6
4548 RANLIB="ar -ts"
4550 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4551 opsys=sol2-6
4552 emacs_check_sunpro_c=yes
4554 *-sunos5* | *-solaris* )
4555 opsys=sol2-10
4556 emacs_check_sunpro_c=yes
4558 esac
4559 ## Watch out for a compiler that we know will not work.
4560 case "${canonical}" in
4561 *-solaris* | *-sunos5* )
4562 if [ "x$CC" = x/usr/ucb/cc ]; then
4563 ## /usr/ucb/cc doesn't work;
4564 ## we should find some other compiler that does work.
4565 unset CC
4568 *) ;;
4569 esac
4572 ## Intel 386 machines where we don't care about the manufacturer.
4573 i[3456]86-*-* )
4574 case "${canonical}" in
4575 *-cygwin ) opsys=cygwin ;;
4576 *-darwin* ) opsys=darwin ;;
4577 *-sysv4.2uw* ) opsys=unixware ;;
4578 *-sysv5uw* ) opsys=unixware ;;
4579 *-sysv5OpenUNIX* ) opsys=unixware ;;
4580 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4581 esac
4585 unported=yes
4587 esac
4589 ### If the code above didn't choose an operating system, just choose
4590 ### an operating system based on the configuration name. You really
4591 ### only want to use this when you have no idea what the right
4592 ### operating system is; if you know what operating systems a machine
4593 ### runs, it's cleaner to make it explicit in the case statement
4594 ### above.
4595 if test x"${opsys}" = x; then
4596 case "${canonical}" in
4597 *-gnu* ) opsys=gnu ;;
4599 unported=yes
4601 esac
4606 if test $unported = yes; then
4607 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4608 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4612 #### Choose a compiler.
4614 ac_ext=c
4615 ac_cpp='$CPP $CPPFLAGS'
4616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4658 if test -z "$ac_cv_prog_CC"; then
4659 ac_ct_CC=$CC
4660 # Extract the first word of "gcc", so it can be a program name with args.
4661 set dummy gcc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$ac_ct_CC"; then
4668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_ac_ct_CC="gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4688 if test -n "$ac_ct_CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4690 $as_echo "$ac_ct_CC" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4696 if test "x$ac_ct_CC" = x; then
4697 CC=""
4698 else
4699 case $cross_compiling:$ac_tool_warned in
4700 yes:)
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703 ac_tool_warned=yes ;;
4704 esac
4705 CC=$ac_ct_CC
4707 else
4708 CC="$ac_cv_prog_CC"
4711 if test -z "$CC"; then
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}cc; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_CC+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$CC"; then
4721 ac_cv_prog_CC="$CC" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_CC="${ac_tool_prefix}cc"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 CC=$ac_cv_prog_CC
4741 if test -n "$CC"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4743 $as_echo "$CC" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4752 if test -z "$CC"; then
4753 # Extract the first word of "cc", so it can be a program name with args.
4754 set dummy cc; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if test "${ac_cv_prog_CC+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4762 else
4763 ac_prog_rejected=no
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4772 ac_prog_rejected=yes
4773 continue
4775 ac_cv_prog_CC="cc"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4779 done
4780 done
4781 IFS=$as_save_IFS
4783 if test $ac_prog_rejected = yes; then
4784 # We found a bogon in the path, so make sure we never use it.
4785 set dummy $ac_cv_prog_CC
4786 shift
4787 if test $# != 0; then
4788 # We chose a different compiler from the bogus one.
4789 # However, it has the same basename, so the bogon will be chosen
4790 # first if we set CC to just the basename; use the full file name.
4791 shift
4792 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4797 CC=$ac_cv_prog_CC
4798 if test -n "$CC"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4800 $as_echo "$CC" >&6; }
4801 else
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4808 if test -z "$CC"; then
4809 if test -n "$ac_tool_prefix"; then
4810 for ac_prog in cl.exe
4812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_CC+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$CC"; then
4820 ac_cv_prog_CC="$CC" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4835 IFS=$as_save_IFS
4839 CC=$ac_cv_prog_CC
4840 if test -n "$CC"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4842 $as_echo "$CC" >&6; }
4843 else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4849 test -n "$CC" && break
4850 done
4852 if test -z "$CC"; then
4853 ac_ct_CC=$CC
4854 for ac_prog in cl.exe
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$ac_ct_CC"; then
4864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_CC="$ac_prog"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4886 $as_echo "$ac_ct_CC" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 test -n "$ac_ct_CC" && break
4894 done
4896 if test "x$ac_ct_CC" = x; then
4897 CC=""
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900 yes:)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905 CC=$ac_ct_CC
4912 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4914 as_fn_error "no acceptable C compiler found in \$PATH
4915 See \`config.log' for more details." "$LINENO" 5; }
4917 # Provide some information about the compiler.
4918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4919 set X $ac_compile
4920 ac_compiler=$2
4921 for ac_option in --version -v -V -qversion; do
4922 { { ac_try="$ac_compiler $ac_option >&5"
4923 case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4930 ac_status=$?
4931 if test -s conftest.err; then
4932 sed '10a\
4933 ... rest of stderr output deleted ...
4934 10q' conftest.err >conftest.er1
4935 cat conftest.er1 >&5
4937 rm -f conftest.er1 conftest.err
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }
4940 done
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4946 main ()
4950 return 0;
4952 _ACEOF
4953 ac_clean_files_save=$ac_clean_files
4954 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4955 # Try to create an executable without -o first, disregard a.out.
4956 # It will help us diagnose broken compilers, and finding out an intuition
4957 # of exeext.
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4959 $as_echo_n "checking whether the C compiler works... " >&6; }
4960 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4962 # The possible output files:
4963 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4965 ac_rmfiles=
4966 for ac_file in $ac_files
4968 case $ac_file in
4969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4970 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4971 esac
4972 done
4973 rm -f $ac_rmfiles
4975 if { { ac_try="$ac_link_default"
4976 case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979 esac
4980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4981 $as_echo "$ac_try_echo"; } >&5
4982 (eval "$ac_link_default") 2>&5
4983 ac_status=$?
4984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }; then :
4986 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4987 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4988 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4989 # so that the user can short-circuit this test for compilers unknown to
4990 # Autoconf.
4991 for ac_file in $ac_files ''
4993 test -f "$ac_file" || continue
4994 case $ac_file in
4995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4997 [ab].out )
4998 # We found the default executable, but exeext='' is most
4999 # certainly right.
5000 break;;
5001 *.* )
5002 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5003 then :; else
5004 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5006 # We set ac_cv_exeext here because the later test for it is not
5007 # safe: cross compilers may not add the suffix if given an `-o'
5008 # argument, so we may need to know it at that point already.
5009 # Even if this section looks crufty: it has the advantage of
5010 # actually working.
5011 break;;
5013 break;;
5014 esac
5015 done
5016 test "$ac_cv_exeext" = no && ac_cv_exeext=
5018 else
5019 ac_file=''
5021 if test -z "$ac_file"; then :
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 $as_echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { as_fn_set_status 77
5030 as_fn_error "C compiler cannot create executables
5031 See \`config.log' for more details." "$LINENO" 5; }; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5034 $as_echo "yes" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5037 $as_echo_n "checking for C compiler default output file name... " >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5039 $as_echo "$ac_file" >&6; }
5040 ac_exeext=$ac_cv_exeext
5042 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5043 ac_clean_files=$ac_clean_files_save
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5045 $as_echo_n "checking for suffix of executables... " >&6; }
5046 if { { ac_try="$ac_link"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5052 $as_echo "$ac_try_echo"; } >&5
5053 (eval "$ac_link") 2>&5
5054 ac_status=$?
5055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5056 test $ac_status = 0; }; then :
5057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5058 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5059 # work properly (i.e., refer to `conftest.exe'), while it won't with
5060 # `rm'.
5061 for ac_file in conftest.exe conftest conftest.*; do
5062 test -f "$ac_file" || continue
5063 case $ac_file in
5064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5066 break;;
5067 * ) break;;
5068 esac
5069 done
5070 else
5071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5073 as_fn_error "cannot compute suffix of executables: cannot compile and link
5074 See \`config.log' for more details." "$LINENO" 5; }
5076 rm -f conftest conftest$ac_cv_exeext
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5078 $as_echo "$ac_cv_exeext" >&6; }
5080 rm -f conftest.$ac_ext
5081 EXEEXT=$ac_cv_exeext
5082 ac_exeext=$EXEEXT
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 #include <stdio.h>
5087 main ()
5089 FILE *f = fopen ("conftest.out", "w");
5090 return ferror (f) || fclose (f) != 0;
5093 return 0;
5095 _ACEOF
5096 ac_clean_files="$ac_clean_files conftest.out"
5097 # Check that the compiler produces executables we can run. If not, either
5098 # the compiler is broken, or we cross compile.
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5100 $as_echo_n "checking whether we are cross compiling... " >&6; }
5101 if test "$cross_compiling" != yes; then
5102 { { ac_try="$ac_link"
5103 case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106 esac
5107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5108 $as_echo "$ac_try_echo"; } >&5
5109 (eval "$ac_link") 2>&5
5110 ac_status=$?
5111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112 test $ac_status = 0; }
5113 if { ac_try='./conftest$ac_cv_exeext'
5114 { { case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117 esac
5118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5119 $as_echo "$ac_try_echo"; } >&5
5120 (eval "$ac_try") 2>&5
5121 ac_status=$?
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; }; then
5124 cross_compiling=no
5125 else
5126 if test "$cross_compiling" = maybe; then
5127 cross_compiling=yes
5128 else
5129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5131 as_fn_error "cannot run C compiled programs.
5132 If you meant to cross compile, use \`--host'.
5133 See \`config.log' for more details." "$LINENO" 5; }
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5138 $as_echo "$cross_compiling" >&6; }
5140 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5141 ac_clean_files=$ac_clean_files_save
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5143 $as_echo_n "checking for suffix of object files... " >&6; }
5144 if test "${ac_cv_objext+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5151 main ()
5155 return 0;
5157 _ACEOF
5158 rm -f conftest.o conftest.obj
5159 if { { ac_try="$ac_compile"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5165 $as_echo "$ac_try_echo"; } >&5
5166 (eval "$ac_compile") 2>&5
5167 ac_status=$?
5168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169 test $ac_status = 0; }; then :
5170 for ac_file in conftest.o conftest.obj conftest.*; do
5171 test -f "$ac_file" || continue;
5172 case $ac_file in
5173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5175 break;;
5176 esac
5177 done
5178 else
5179 $as_echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5184 as_fn_error "cannot compute suffix of object files: cannot compile
5185 See \`config.log' for more details." "$LINENO" 5; }
5187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5190 $as_echo "$ac_cv_objext" >&6; }
5191 OBJEXT=$ac_cv_objext
5192 ac_objext=$OBJEXT
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5194 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5195 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5202 main ()
5204 #ifndef __GNUC__
5205 choke me
5206 #endif
5209 return 0;
5211 _ACEOF
5212 if ac_fn_c_try_compile "$LINENO"; then :
5213 ac_compiler_gnu=yes
5214 else
5215 ac_compiler_gnu=no
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5222 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5223 if test $ac_compiler_gnu = yes; then
5224 GCC=yes
5225 else
5226 GCC=
5228 ac_test_CFLAGS=${CFLAGS+set}
5229 ac_save_CFLAGS=$CFLAGS
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5231 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5232 if test "${ac_cv_prog_cc_g+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_save_c_werror_flag=$ac_c_werror_flag
5236 ac_c_werror_flag=yes
5237 ac_cv_prog_cc_g=no
5238 CFLAGS="-g"
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5243 main ()
5247 return 0;
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_prog_cc_g=yes
5252 else
5253 CFLAGS=""
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 :
5267 else
5268 ac_c_werror_flag=$ac_save_c_werror_flag
5269 CFLAGS="-g"
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5274 main ()
5278 return 0;
5280 _ACEOF
5281 if ac_fn_c_try_compile "$LINENO"; then :
5282 ac_cv_prog_cc_g=yes
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 ac_c_werror_flag=$ac_save_c_werror_flag
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5292 $as_echo "$ac_cv_prog_cc_g" >&6; }
5293 if test "$ac_test_CFLAGS" = set; then
5294 CFLAGS=$ac_save_CFLAGS
5295 elif test $ac_cv_prog_cc_g = yes; then
5296 if test "$GCC" = yes; then
5297 CFLAGS="-g -O2"
5298 else
5299 CFLAGS="-g"
5301 else
5302 if test "$GCC" = yes; then
5303 CFLAGS="-O2"
5304 else
5305 CFLAGS=
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5309 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5310 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 ac_cv_prog_cc_c89=no
5314 ac_save_CC=$CC
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 #include <stdarg.h>
5318 #include <stdio.h>
5319 #include <sys/types.h>
5320 #include <sys/stat.h>
5321 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5322 struct buf { int x; };
5323 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5324 static char *e (p, i)
5325 char **p;
5326 int i;
5328 return p[i];
5330 static char *f (char * (*g) (char **, int), char **p, ...)
5332 char *s;
5333 va_list v;
5334 va_start (v,p);
5335 s = g (p, va_arg (v,int));
5336 va_end (v);
5337 return s;
5340 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5341 function prototypes and stuff, but not '\xHH' hex character constants.
5342 These don't provoke an error unfortunately, instead are silently treated
5343 as 'x'. The following induces an error, until -std is added to get
5344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5345 array size at least. It's necessary to write '\x00'==0 to get something
5346 that's true only with -std. */
5347 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5349 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5350 inside strings and character constants. */
5351 #define FOO(x) 'x'
5352 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5354 int test (int i, double x);
5355 struct s1 {int (*f) (int a);};
5356 struct s2 {int (*f) (double a);};
5357 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5358 int argc;
5359 char **argv;
5361 main ()
5363 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5365 return 0;
5367 _ACEOF
5368 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5371 CC="$ac_save_CC $ac_arg"
5372 if ac_fn_c_try_compile "$LINENO"; then :
5373 ac_cv_prog_cc_c89=$ac_arg
5375 rm -f core conftest.err conftest.$ac_objext
5376 test "x$ac_cv_prog_cc_c89" != "xno" && break
5377 done
5378 rm -f conftest.$ac_ext
5379 CC=$ac_save_CC
5382 # AC_CACHE_VAL
5383 case "x$ac_cv_prog_cc_c89" in
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5386 $as_echo "none needed" >&6; } ;;
5387 xno)
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5389 $as_echo "unsupported" >&6; } ;;
5391 CC="$CC $ac_cv_prog_cc_c89"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5393 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5394 esac
5395 if test "x$ac_cv_prog_cc_c89" != xno; then :
5399 ac_ext=c
5400 ac_cpp='$CPP $CPPFLAGS'
5401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404 DEPDIR="${am__leading_dot}deps"
5406 ac_config_commands="$ac_config_commands depfiles"
5409 am_make=${MAKE-make}
5410 cat > confinc << 'END'
5411 am__doit:
5412 @echo this is the am__doit target
5413 .PHONY: am__doit
5415 # If we don't find an include directive, just comment out the code.
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5417 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5418 am__include="#"
5419 am__quote=
5420 _am_result=none
5421 # First try GNU make style include.
5422 echo "include confinc" > confmf
5423 # Ignore all kinds of additional output from `make'.
5424 case `$am_make -s -f confmf 2> /dev/null` in #(
5425 *the\ am__doit\ target*)
5426 am__include=include
5427 am__quote=
5428 _am_result=GNU
5430 esac
5431 # Now try BSD make style include.
5432 if test "$am__include" = "#"; then
5433 echo '.include "confinc"' > confmf
5434 case `$am_make -s -f confmf 2> /dev/null` in #(
5435 *the\ am__doit\ target*)
5436 am__include=.include
5437 am__quote="\""
5438 _am_result=BSD
5440 esac
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5445 $as_echo "$_am_result" >&6; }
5446 rm -f confinc confmf
5448 # Check whether --enable-dependency-tracking was given.
5449 if test "${enable_dependency_tracking+set}" = set; then :
5450 enableval=$enable_dependency_tracking;
5453 if test "x$enable_dependency_tracking" != xno; then
5454 am_depcomp="$ac_aux_dir/depcomp"
5455 AMDEPBACKSLASH='\'
5457 if test "x$enable_dependency_tracking" != xno; then
5458 AMDEP_TRUE=
5459 AMDEP_FALSE='#'
5460 else
5461 AMDEP_TRUE='#'
5462 AMDEP_FALSE=
5467 depcc="$CC" am_compiler_list=
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5470 $as_echo_n "checking dependency style of $depcc... " >&6; }
5471 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5475 # We make a subdir and do the tests there. Otherwise we can end up
5476 # making bogus files that we don't know about and never remove. For
5477 # instance it was reported that on HP-UX the gcc test will end up
5478 # making a dummy file named `D' -- because `-MD' means `put the output
5479 # in D'.
5480 mkdir conftest.dir
5481 # Copy depcomp to subdir because otherwise we won't find it if we're
5482 # using a relative directory.
5483 cp "$am_depcomp" conftest.dir
5484 cd conftest.dir
5485 # We will build objects and dependencies in a subdirectory because
5486 # it helps to detect inapplicable dependency modes. For instance
5487 # both Tru64's cc and ICC support -MD to output dependencies as a
5488 # side effect of compilation, but ICC will put the dependencies in
5489 # the current directory while Tru64 will put them in the object
5490 # directory.
5491 mkdir sub
5493 am_cv_CC_dependencies_compiler_type=none
5494 if test "$am_compiler_list" = ""; then
5495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5497 am__universal=false
5498 case " $depcc " in #(
5499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5500 esac
5502 for depmode in $am_compiler_list; do
5503 # Setup a source with many dependencies, because some compilers
5504 # like to wrap large dependency lists on column 80 (with \), and
5505 # we should not choose a depcomp mode which is confused by this.
5507 # We need to recreate these files for each test, as the compiler may
5508 # overwrite some of them when testing with obscure command lines.
5509 # This happens at least with the AIX C compiler.
5510 : > sub/conftest.c
5511 for i in 1 2 3 4 5 6; do
5512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5513 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5514 # Solaris 8's {/usr,}/bin/sh.
5515 touch sub/conftst$i.h
5516 done
5517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5519 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5520 # mode. It turns out that the SunPro C++ compiler does not properly
5521 # handle `-M -o', and we need to detect this. Also, some Intel
5522 # versions had trouble with output in subdirs
5523 am__obj=sub/conftest.${OBJEXT-o}
5524 am__minus_obj="-o $am__obj"
5525 case $depmode in
5526 gcc)
5527 # This depmode causes a compiler race in universal mode.
5528 test "$am__universal" = false || continue
5530 nosideeffect)
5531 # after this tag, mechanisms are not by side-effect, so they'll
5532 # only be used when explicitly requested
5533 if test "x$enable_dependency_tracking" = xyes; then
5534 continue
5535 else
5536 break
5539 msvisualcpp | msvcmsys)
5540 # This compiler won't grok `-c -o', but also, the minuso test has
5541 # not run yet. These depmodes are late enough in the game, and
5542 # so weak that their functioning should not be impacted.
5543 am__obj=conftest.${OBJEXT-o}
5544 am__minus_obj=
5546 none) break ;;
5547 esac
5548 if depmode=$depmode \
5549 source=sub/conftest.c object=$am__obj \
5550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5552 >/dev/null 2>conftest.err &&
5553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5557 # icc doesn't choke on unknown options, it will just issue warnings
5558 # or remarks (even with -Werror). So we grep stderr for any message
5559 # that says an option was ignored or not supported.
5560 # When given -MP, icc 7.0 and 7.1 complain thusly:
5561 # icc: Command line warning: ignoring option '-M'; no argument required
5562 # The diagnosis changed in icc 8.0:
5563 # icc: Command line remark: option '-MP' not supported
5564 if (grep 'ignoring option' conftest.err ||
5565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5566 am_cv_CC_dependencies_compiler_type=$depmode
5567 break
5570 done
5572 cd ..
5573 rm -rf conftest.dir
5574 else
5575 am_cv_CC_dependencies_compiler_type=none
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5584 test "x$enable_dependency_tracking" != xno \
5585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5586 am__fastdepCC_TRUE=
5587 am__fastdepCC_FALSE='#'
5588 else
5589 am__fastdepCC_TRUE='#'
5590 am__fastdepCC_FALSE=
5594 if test "x$CC" != xcc; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5596 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5599 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5601 set dummy $CC; ac_cc=`$as_echo "$2" |
5602 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5603 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5610 main ()
5614 return 0;
5616 _ACEOF
5617 # Make sure it works both with $CC and with simple cc.
5618 # We do the test twice because some compilers refuse to overwrite an
5619 # existing .o file with -o, though they will create one.
5620 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5621 rm -f conftest2.*
5622 if { { case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5627 $as_echo "$ac_try_echo"; } >&5
5628 (eval "$ac_try") 2>&5
5629 ac_status=$?
5630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5631 test $ac_status = 0; } &&
5632 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635 esac
5636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5637 $as_echo "$ac_try_echo"; } >&5
5638 (eval "$ac_try") 2>&5
5639 ac_status=$?
5640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641 test $ac_status = 0; };
5642 then
5643 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5644 if test "x$CC" != xcc; then
5645 # Test first that cc exists at all.
5646 if { ac_try='cc -c conftest.$ac_ext >&5'
5647 { { 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; }; }; then
5657 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5658 rm -f conftest2.*
5659 if { { case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662 esac
5663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5664 $as_echo "$ac_try_echo"; } >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5668 test $ac_status = 0; } &&
5669 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5674 $as_echo "$ac_try_echo"; } >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5678 test $ac_status = 0; };
5679 then
5680 # cc works too.
5682 else
5683 # cc exists but doesn't like -o.
5684 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5688 else
5689 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5691 rm -f core conftest*
5694 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696 $as_echo "yes" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5701 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5705 # FIXME: we rely on the cache variable name because
5706 # there is no other way.
5707 set dummy $CC
5708 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5709 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5710 if test "$am_t" != yes; then
5711 # Losing compiler, so override with the script.
5712 # FIXME: It is wrong to rewrite CC.
5713 # But if we don't then we get into trouble of one sort or another.
5714 # A longer-term fix would be to have automake use am__CC in this case,
5715 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5716 CC="$am_aux_dir/compile $CC"
5721 if test x$GCC = xyes; then
5722 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5723 else
5724 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5727 # Avoid gnulib's threadlib module, as we do threads our own way.
5730 # Initialize gnulib right after choosing the compiler.
5732 ac_ext=c
5733 ac_cpp='$CPP $CPPFLAGS'
5734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5738 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5739 # On Suns, sometimes $CPP names a directory.
5740 if test -n "$CPP" && test -d "$CPP"; then
5741 CPP=
5743 if test -z "$CPP"; then
5744 if test "${ac_cv_prog_CPP+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 # Double quotes because CPP needs to be expanded
5748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5750 ac_preproc_ok=false
5751 for ac_c_preproc_warn_flag in '' yes
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 #ifdef __STDC__
5762 # include <limits.h>
5763 #else
5764 # include <assert.h>
5765 #endif
5766 Syntax error
5767 _ACEOF
5768 if ac_fn_c_try_cpp "$LINENO"; then :
5770 else
5771 # Broken: fails on valid input.
5772 continue
5774 rm -f conftest.err conftest.$ac_ext
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 #include <ac_nonexistent.h>
5781 _ACEOF
5782 if ac_fn_c_try_cpp "$LINENO"; then :
5783 # Broken: success on invalid input.
5784 continue
5785 else
5786 # Passes both tests.
5787 ac_preproc_ok=:
5788 break
5790 rm -f conftest.err conftest.$ac_ext
5792 done
5793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794 rm -f conftest.err conftest.$ac_ext
5795 if $ac_preproc_ok; then :
5796 break
5799 done
5800 ac_cv_prog_CPP=$CPP
5803 CPP=$ac_cv_prog_CPP
5804 else
5805 ac_cv_prog_CPP=$CPP
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5808 $as_echo "$CPP" >&6; }
5809 ac_preproc_ok=false
5810 for ac_c_preproc_warn_flag in '' yes
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 # <limits.h> exists even on freestanding compilers.
5816 # On the NeXT, cc -E runs the code through the compiler's parser,
5817 # not just through cpp. "Syntax error" is here to catch this case.
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 #ifdef __STDC__
5821 # include <limits.h>
5822 #else
5823 # include <assert.h>
5824 #endif
5825 Syntax error
5826 _ACEOF
5827 if ac_fn_c_try_cpp "$LINENO"; then :
5829 else
5830 # Broken: fails on valid input.
5831 continue
5833 rm -f conftest.err conftest.$ac_ext
5835 # OK, works on sane cases. Now check whether nonexistent headers
5836 # can be detected and how.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #include <ac_nonexistent.h>
5840 _ACEOF
5841 if ac_fn_c_try_cpp "$LINENO"; then :
5842 # Broken: success on invalid input.
5843 continue
5844 else
5845 # Passes both tests.
5846 ac_preproc_ok=:
5847 break
5849 rm -f conftest.err conftest.$ac_ext
5851 done
5852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853 rm -f conftest.err conftest.$ac_ext
5854 if $ac_preproc_ok; then :
5856 else
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5860 See \`config.log' for more details." "$LINENO" 5; }
5863 ac_ext=c
5864 ac_cpp='$CPP $CPPFLAGS'
5865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5872 if test "${ac_cv_path_GREP+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -z "$GREP"; then
5876 ac_path_GREP_found=false
5877 # Loop through the user's path and test for each of PROGNAME-LIST
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_prog in grep ggrep; do
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5887 # Check for GNU ac_path_GREP and select it if it is found.
5888 # Check for GNU $ac_path_GREP
5889 case `"$ac_path_GREP" --version 2>&1` in
5890 *GNU*)
5891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5893 ac_count=0
5894 $as_echo_n 0123456789 >"conftest.in"
5895 while :
5897 cat "conftest.in" "conftest.in" >"conftest.tmp"
5898 mv "conftest.tmp" "conftest.in"
5899 cp "conftest.in" "conftest.nl"
5900 $as_echo 'GREP' >> "conftest.nl"
5901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5903 as_fn_arith $ac_count + 1 && ac_count=$as_val
5904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5905 # Best one so far, save it but keep looking for a better one
5906 ac_cv_path_GREP="$ac_path_GREP"
5907 ac_path_GREP_max=$ac_count
5909 # 10*(2^10) chars as input seems more than enough
5910 test $ac_count -gt 10 && break
5911 done
5912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5913 esac
5915 $ac_path_GREP_found && break 3
5916 done
5917 done
5918 done
5919 IFS=$as_save_IFS
5920 if test -z "$ac_cv_path_GREP"; then
5921 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5923 else
5924 ac_cv_path_GREP=$GREP
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5929 $as_echo "$ac_cv_path_GREP" >&6; }
5930 GREP="$ac_cv_path_GREP"
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5934 $as_echo_n "checking for egrep... " >&6; }
5935 if test "${ac_cv_path_EGREP+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5939 then ac_cv_path_EGREP="$GREP -E"
5940 else
5941 if test -z "$EGREP"; then
5942 ac_path_EGREP_found=false
5943 # Loop through the user's path and test for each of PROGNAME-LIST
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_prog in egrep; do
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5952 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5953 # Check for GNU ac_path_EGREP and select it if it is found.
5954 # Check for GNU $ac_path_EGREP
5955 case `"$ac_path_EGREP" --version 2>&1` in
5956 *GNU*)
5957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5959 ac_count=0
5960 $as_echo_n 0123456789 >"conftest.in"
5961 while :
5963 cat "conftest.in" "conftest.in" >"conftest.tmp"
5964 mv "conftest.tmp" "conftest.in"
5965 cp "conftest.in" "conftest.nl"
5966 $as_echo 'EGREP' >> "conftest.nl"
5967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5969 as_fn_arith $ac_count + 1 && ac_count=$as_val
5970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5971 # Best one so far, save it but keep looking for a better one
5972 ac_cv_path_EGREP="$ac_path_EGREP"
5973 ac_path_EGREP_max=$ac_count
5975 # 10*(2^10) chars as input seems more than enough
5976 test $ac_count -gt 10 && break
5977 done
5978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5979 esac
5981 $ac_path_EGREP_found && break 3
5982 done
5983 done
5984 done
5985 IFS=$as_save_IFS
5986 if test -z "$ac_cv_path_EGREP"; then
5987 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5989 else
5990 ac_cv_path_EGREP=$EGREP
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5996 $as_echo "$ac_cv_path_EGREP" >&6; }
5997 EGREP="$ac_cv_path_EGREP"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6003 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6004 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6011 #ifdef __ACK__
6012 Amsterdam
6013 #endif
6015 _ACEOF
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6018 gl_cv_c_amsterdam_compiler=yes
6019 else
6020 gl_cv_c_amsterdam_compiler=no
6022 rm -f conftest*
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6027 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6028 if test -z "$AR"; then
6029 if test $gl_cv_c_amsterdam_compiler = yes; then
6030 AR='cc -c.a'
6031 if test -z "$ARFLAGS"; then
6032 ARFLAGS='-o'
6034 else
6035 if test -n "$ac_tool_prefix"; then
6036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6037 set dummy ${ac_tool_prefix}ar; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_AR+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$AR"; then
6044 ac_cv_prog_AR="$AR" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_AR="${ac_tool_prefix}ar"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6057 done
6058 done
6059 IFS=$as_save_IFS
6063 AR=$ac_cv_prog_AR
6064 if test -n "$AR"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6066 $as_echo "$AR" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6074 if test -z "$ac_cv_prog_AR"; then
6075 ac_ct_AR=$AR
6076 # Extract the first word of "ar", so it can be a program name with args.
6077 set dummy ar; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if test -n "$ac_ct_AR"; then
6084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_ac_ct_AR="ar"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6097 done
6098 done
6099 IFS=$as_save_IFS
6103 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6104 if test -n "$ac_ct_AR"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6106 $as_echo "$ac_ct_AR" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6112 if test "x$ac_ct_AR" = x; then
6113 AR="ar"
6114 else
6115 case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121 AR=$ac_ct_AR
6123 else
6124 AR="$ac_cv_prog_AR"
6127 if test -z "$ARFLAGS"; then
6128 ARFLAGS='cru'
6131 else
6132 if test -z "$ARFLAGS"; then
6133 ARFLAGS='cru'
6138 if test -z "$RANLIB"; then
6139 if test $gl_cv_c_amsterdam_compiler = yes; then
6140 RANLIB=':'
6141 else
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$RANLIB"; then
6151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6164 done
6165 done
6166 IFS=$as_save_IFS
6170 RANLIB=$ac_cv_prog_RANLIB
6171 if test -n "$RANLIB"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6173 $as_echo "$RANLIB" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6181 if test -z "$ac_cv_prog_RANLIB"; then
6182 ac_ct_RANLIB=$RANLIB
6183 # Extract the first word of "ranlib", so it can be a program name with args.
6184 set dummy ranlib; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190 if test -n "$ac_ct_RANLIB"; then
6191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_RANLIB="ranlib"
6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6204 done
6205 done
6206 IFS=$as_save_IFS
6210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6211 if test -n "$ac_ct_RANLIB"; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6213 $as_echo "$ac_ct_RANLIB" >&6; }
6214 else
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6219 if test "x$ac_ct_RANLIB" = x; then
6220 RANLIB=":"
6221 else
6222 case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228 RANLIB=$ac_ct_RANLIB
6230 else
6231 RANLIB="$ac_cv_prog_RANLIB"
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6239 $as_echo_n "checking for ANSI C header files... " >&6; }
6240 if test "${ac_cv_header_stdc+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 #include <stdlib.h>
6246 #include <stdarg.h>
6247 #include <string.h>
6248 #include <float.h>
6251 main ()
6255 return 0;
6257 _ACEOF
6258 if ac_fn_c_try_compile "$LINENO"; then :
6259 ac_cv_header_stdc=yes
6260 else
6261 ac_cv_header_stdc=no
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $ac_cv_header_stdc = yes; then
6266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #include <string.h>
6271 _ACEOF
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6273 $EGREP "memchr" >/dev/null 2>&1; then :
6275 else
6276 ac_cv_header_stdc=no
6278 rm -f conftest*
6282 if test $ac_cv_header_stdc = yes; then
6283 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286 #include <stdlib.h>
6288 _ACEOF
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "free" >/dev/null 2>&1; then :
6292 else
6293 ac_cv_header_stdc=no
6295 rm -f conftest*
6299 if test $ac_cv_header_stdc = yes; then
6300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6301 if test "$cross_compiling" = yes; then :
6303 else
6304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h. */
6306 #include <ctype.h>
6307 #include <stdlib.h>
6308 #if ((' ' & 0x0FF) == 0x020)
6309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6311 #else
6312 # define ISLOWER(c) \
6313 (('a' <= (c) && (c) <= 'i') \
6314 || ('j' <= (c) && (c) <= 'r') \
6315 || ('s' <= (c) && (c) <= 'z'))
6316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6317 #endif
6319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 main ()
6323 int i;
6324 for (i = 0; i < 256; i++)
6325 if (XOR (islower (i), ISLOWER (i))
6326 || toupper (i) != TOUPPER (i))
6327 return 2;
6328 return 0;
6330 _ACEOF
6331 if ac_fn_c_try_run "$LINENO"; then :
6333 else
6334 ac_cv_header_stdc=no
6336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6337 conftest.$ac_objext conftest.beam conftest.$ac_ext
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6343 $as_echo "$ac_cv_header_stdc" >&6; }
6344 if test $ac_cv_header_stdc = yes; then
6346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6352 inttypes.h stdint.h unistd.h
6353 do :
6354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6357 eval as_val=\$$as_ac_Header
6358 if test "x$as_val" = x""yes; then :
6359 cat >>confdefs.h <<_ACEOF
6360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6361 _ACEOF
6365 done
6371 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6372 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6373 MINIX=yes
6374 else
6375 MINIX=
6379 if test "$MINIX" = yes; then
6381 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6384 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6387 $as_echo "#define _MINIX 1" >>confdefs.h
6391 case "$host_os" in
6392 hpux*)
6394 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6397 esac
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6401 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6402 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6408 # define __EXTENSIONS__ 1
6409 $ac_includes_default
6411 main ()
6415 return 0;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 ac_cv_safe_to_define___extensions__=yes
6420 else
6421 ac_cv_safe_to_define___extensions__=no
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6426 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6427 test $ac_cv_safe_to_define___extensions__ = yes &&
6428 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6430 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6432 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6434 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6436 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6438 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6447 # Check whether --enable-largefile was given.
6448 if test "${enable_largefile+set}" = set; then :
6449 enableval=$enable_largefile;
6452 if test "$enable_largefile" != no; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6455 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6456 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 ac_cv_sys_largefile_CC=no
6460 if test "$GCC" != yes; then
6461 ac_save_CC=$CC
6462 while :; do
6463 # IRIX 6.2 and later do not support large files by default,
6464 # so use the C compiler's -n32 option if that helps.
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <sys/types.h>
6468 /* Check that off_t can represent 2**63 - 1 correctly.
6469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6470 since some C++ compilers masquerading as C compilers
6471 incorrectly reject 9223372036854775807. */
6472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6474 && LARGE_OFF_T % 2147483647 == 1)
6475 ? 1 : -1];
6477 main ()
6481 return 0;
6483 _ACEOF
6484 if ac_fn_c_try_compile "$LINENO"; then :
6485 break
6487 rm -f core conftest.err conftest.$ac_objext
6488 CC="$CC -n32"
6489 if ac_fn_c_try_compile "$LINENO"; then :
6490 ac_cv_sys_largefile_CC=' -n32'; break
6492 rm -f core conftest.err conftest.$ac_objext
6493 break
6494 done
6495 CC=$ac_save_CC
6496 rm -f conftest.$ac_ext
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6500 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6501 if test "$ac_cv_sys_largefile_CC" != no; then
6502 CC=$CC$ac_cv_sys_largefile_CC
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6506 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6507 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 while :; do
6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 #include <sys/types.h>
6514 /* Check that off_t can represent 2**63 - 1 correctly.
6515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6516 since some C++ compilers masquerading as C compilers
6517 incorrectly reject 9223372036854775807. */
6518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6520 && LARGE_OFF_T % 2147483647 == 1)
6521 ? 1 : -1];
6523 main ()
6527 return 0;
6529 _ACEOF
6530 if ac_fn_c_try_compile "$LINENO"; then :
6531 ac_cv_sys_file_offset_bits=no; break
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #define _FILE_OFFSET_BITS 64
6537 #include <sys/types.h>
6538 /* Check that off_t can represent 2**63 - 1 correctly.
6539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6540 since some C++ compilers masquerading as C compilers
6541 incorrectly reject 9223372036854775807. */
6542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6544 && LARGE_OFF_T % 2147483647 == 1)
6545 ? 1 : -1];
6547 main ()
6551 return 0;
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 ac_cv_sys_file_offset_bits=64; break
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 ac_cv_sys_file_offset_bits=unknown
6559 break
6560 done
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6563 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6564 case $ac_cv_sys_file_offset_bits in #(
6565 no | unknown) ;;
6567 cat >>confdefs.h <<_ACEOF
6568 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6569 _ACEOF
6571 esac
6572 rm -rf conftest*
6573 if test $ac_cv_sys_file_offset_bits = unknown; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6575 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6576 if test "${ac_cv_sys_large_files+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 while :; do
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582 #include <sys/types.h>
6583 /* Check that off_t can represent 2**63 - 1 correctly.
6584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6585 since some C++ compilers masquerading as C compilers
6586 incorrectly reject 9223372036854775807. */
6587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6589 && LARGE_OFF_T % 2147483647 == 1)
6590 ? 1 : -1];
6592 main ()
6596 return 0;
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"; then :
6600 ac_cv_sys_large_files=no; break
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6605 #define _LARGE_FILES 1
6606 #include <sys/types.h>
6607 /* Check that off_t can represent 2**63 - 1 correctly.
6608 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6609 since some C++ compilers masquerading as C compilers
6610 incorrectly reject 9223372036854775807. */
6611 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6612 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6613 && LARGE_OFF_T % 2147483647 == 1)
6614 ? 1 : -1];
6616 main ()
6620 return 0;
6622 _ACEOF
6623 if ac_fn_c_try_compile "$LINENO"; then :
6624 ac_cv_sys_large_files=1; break
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 ac_cv_sys_large_files=unknown
6628 break
6629 done
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6632 $as_echo "$ac_cv_sys_large_files" >&6; }
6633 case $ac_cv_sys_large_files in #(
6634 no | unknown) ;;
6636 cat >>confdefs.h <<_ACEOF
6637 #define _LARGE_FILES $ac_cv_sys_large_files
6638 _ACEOF
6640 esac
6641 rm -rf conftest*
6647 case $ac_cv_prog_cc_stdc in #(
6648 no) :
6649 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6650 *) :
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6652 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6653 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 ac_cv_prog_cc_c99=no
6657 ac_save_CC=$CC
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #include <stdarg.h>
6661 #include <stdbool.h>
6662 #include <stdlib.h>
6663 #include <wchar.h>
6664 #include <stdio.h>
6666 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6667 #define debug(...) fprintf (stderr, __VA_ARGS__)
6668 #define showlist(...) puts (#__VA_ARGS__)
6669 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6670 static void
6671 test_varargs_macros (void)
6673 int x = 1234;
6674 int y = 5678;
6675 debug ("Flag");
6676 debug ("X = %d\n", x);
6677 showlist (The first, second, and third items.);
6678 report (x>y, "x is %d but y is %d", x, y);
6681 // Check long long types.
6682 #define BIG64 18446744073709551615ull
6683 #define BIG32 4294967295ul
6684 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6685 #if !BIG_OK
6686 your preprocessor is broken;
6687 #endif
6688 #if BIG_OK
6689 #else
6690 your preprocessor is broken;
6691 #endif
6692 static long long int bignum = -9223372036854775807LL;
6693 static unsigned long long int ubignum = BIG64;
6695 struct incomplete_array
6697 int datasize;
6698 double data[];
6701 struct named_init {
6702 int number;
6703 const wchar_t *name;
6704 double average;
6707 typedef const char *ccp;
6709 static inline int
6710 test_restrict (ccp restrict text)
6712 // See if C++-style comments work.
6713 // Iterate through items via the restricted pointer.
6714 // Also check for declarations in for loops.
6715 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6716 continue;
6717 return 0;
6720 // Check varargs and va_copy.
6721 static void
6722 test_varargs (const char *format, ...)
6724 va_list args;
6725 va_start (args, format);
6726 va_list args_copy;
6727 va_copy (args_copy, args);
6729 const char *str;
6730 int number;
6731 float fnumber;
6733 while (*format)
6735 switch (*format++)
6737 case 's': // string
6738 str = va_arg (args_copy, const char *);
6739 break;
6740 case 'd': // int
6741 number = va_arg (args_copy, int);
6742 break;
6743 case 'f': // float
6744 fnumber = va_arg (args_copy, double);
6745 break;
6746 default:
6747 break;
6750 va_end (args_copy);
6751 va_end (args);
6755 main ()
6758 // Check bool.
6759 _Bool success = false;
6761 // Check restrict.
6762 if (test_restrict ("String literal") == 0)
6763 success = true;
6764 char *restrict newvar = "Another string";
6766 // Check varargs.
6767 test_varargs ("s, d' f .", "string", 65, 34.234);
6768 test_varargs_macros ();
6770 // Check flexible array members.
6771 struct incomplete_array *ia =
6772 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6773 ia->datasize = 10;
6774 for (int i = 0; i < ia->datasize; ++i)
6775 ia->data[i] = i * 1.234;
6777 // Check named initializers.
6778 struct named_init ni = {
6779 .number = 34,
6780 .name = L"Test wide string",
6781 .average = 543.34343,
6784 ni.number = 58;
6786 int dynamic_array[ni.number];
6787 dynamic_array[ni.number - 1] = 543;
6789 // work around unused variable warnings
6790 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6791 || dynamic_array[ni.number - 1] != 543);
6794 return 0;
6796 _ACEOF
6797 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6799 CC="$ac_save_CC $ac_arg"
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 ac_cv_prog_cc_c99=$ac_arg
6803 rm -f core conftest.err conftest.$ac_objext
6804 test "x$ac_cv_prog_cc_c99" != "xno" && break
6805 done
6806 rm -f conftest.$ac_ext
6807 CC=$ac_save_CC
6810 # AC_CACHE_VAL
6811 case "x$ac_cv_prog_cc_c99" in
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6814 $as_echo "none needed" >&6; } ;;
6815 xno)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6817 $as_echo "unsupported" >&6; } ;;
6819 CC="$CC $ac_cv_prog_cc_c99"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6821 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6822 esac
6823 if test "x$ac_cv_prog_cc_c99" != xno; then :
6824 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6825 else
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6828 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830 else
6831 ac_cv_prog_cc_c89=no
6832 ac_save_CC=$CC
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6835 #include <stdarg.h>
6836 #include <stdio.h>
6837 #include <sys/types.h>
6838 #include <sys/stat.h>
6839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6840 struct buf { int x; };
6841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6842 static char *e (p, i)
6843 char **p;
6844 int i;
6846 return p[i];
6848 static char *f (char * (*g) (char **, int), char **p, ...)
6850 char *s;
6851 va_list v;
6852 va_start (v,p);
6853 s = g (p, va_arg (v,int));
6854 va_end (v);
6855 return s;
6858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6859 function prototypes and stuff, but not '\xHH' hex character constants.
6860 These don't provoke an error unfortunately, instead are silently treated
6861 as 'x'. The following induces an error, until -std is added to get
6862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6863 array size at least. It's necessary to write '\x00'==0 to get something
6864 that's true only with -std. */
6865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6867 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6868 inside strings and character constants. */
6869 #define FOO(x) 'x'
6870 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6872 int test (int i, double x);
6873 struct s1 {int (*f) (int a);};
6874 struct s2 {int (*f) (double a);};
6875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6876 int argc;
6877 char **argv;
6879 main ()
6881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6883 return 0;
6885 _ACEOF
6886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6887 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6889 CC="$ac_save_CC $ac_arg"
6890 if ac_fn_c_try_compile "$LINENO"; then :
6891 ac_cv_prog_cc_c89=$ac_arg
6893 rm -f core conftest.err conftest.$ac_objext
6894 test "x$ac_cv_prog_cc_c89" != "xno" && break
6895 done
6896 rm -f conftest.$ac_ext
6897 CC=$ac_save_CC
6900 # AC_CACHE_VAL
6901 case "x$ac_cv_prog_cc_c89" in
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6904 $as_echo "none needed" >&6; } ;;
6905 xno)
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6907 $as_echo "unsupported" >&6; } ;;
6909 CC="$CC $ac_cv_prog_cc_c89"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6911 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6912 esac
6913 if test "x$ac_cv_prog_cc_c89" != xno; then :
6914 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6915 else
6916 ac_cv_prog_cc_stdc=no
6921 esac
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6923 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6924 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6928 case $ac_cv_prog_cc_stdc in #(
6929 no) :
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6931 $as_echo "unsupported" >&6; } ;; #(
6932 '') :
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6934 $as_echo "none needed" >&6; } ;; #(
6935 *) :
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6937 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6938 esac
6942 # Code from module alloca-opt:
6943 # Code from module allocator:
6944 # Code from module c-ctype:
6945 # Code from module c-strcase:
6946 # Code from module careadlinkat:
6947 # Code from module clock-time:
6948 # Code from module crypto/md5:
6949 # Code from module crypto/sha1:
6950 # Code from module crypto/sha256:
6951 # Code from module crypto/sha512:
6952 # Code from module dosname:
6953 # Code from module dtoastr:
6954 # Code from module dtotimespec:
6955 # Code from module dup2:
6956 # Code from module environ:
6957 # Code from module execinfo:
6958 # Code from module extensions:
6960 # Code from module extern-inline:
6961 # Code from module filemode:
6962 # Code from module getloadavg:
6963 # Code from module getopt-gnu:
6964 # Code from module getopt-posix:
6965 # Code from module gettext-h:
6966 # Code from module gettime:
6967 # Code from module gettimeofday:
6968 # Code from module ignore-value:
6969 # Code from module include_next:
6970 # Code from module intprops:
6971 # Code from module inttypes-incomplete:
6972 # Code from module largefile:
6974 # Code from module lstat:
6975 # Code from module manywarnings:
6976 # Code from module mktime:
6977 # Code from module multiarch:
6978 # Code from module nocrash:
6979 # Code from module pathmax:
6980 # Code from module pselect:
6981 # Code from module pthread_sigmask:
6982 # Code from module readlink:
6983 # Code from module signal-h:
6984 # Code from module snippet/_Noreturn:
6985 # Code from module snippet/arg-nonnull:
6986 # Code from module snippet/c++defs:
6987 # Code from module snippet/warn-on-use:
6988 # Code from module socklen:
6989 # Code from module ssize_t:
6990 # Code from module stat:
6991 # Code from module stat-time:
6992 # Code from module stdalign:
6993 # Code from module stdarg:
6997 # Code from module stdbool:
6998 # Code from module stddef:
6999 # Code from module stdint:
7000 # Code from module stdio:
7001 # Code from module stdlib:
7002 # Code from module strftime:
7003 # Code from module strtoimax:
7004 # Code from module strtoll:
7005 # Code from module strtoull:
7006 # Code from module strtoumax:
7007 # Code from module symlink:
7008 # Code from module sys_select:
7009 # Code from module sys_stat:
7010 # Code from module sys_time:
7011 # Code from module time:
7012 # Code from module time_r:
7013 # Code from module timer-time:
7014 # Code from module timespec:
7015 # Code from module timespec-add:
7016 # Code from module timespec-sub:
7017 # Code from module u64:
7018 # Code from module unistd:
7019 # Code from module utimens:
7020 # Code from module verify:
7021 # Code from module warnings:
7024 # It's helpful to have C macros available to GDB, so prefer -g3 to -g
7025 # if -g3 works and the user does not specify CFLAGS.
7026 # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains.
7027 if test "$ac_test_CFLAGS" != set; then
7028 case $CFLAGS in
7029 '-g')
7030 emacs_g3_CFLAGS='-g3';;
7031 '-g -O2')
7032 emacs_g3_CFLAGS='-g3 -O2';;
7034 emacs_g3_CFLAGS='';;
7035 esac
7036 if test -n "$emacs_g3_CFLAGS"; then
7037 emacs_save_CFLAGS=$CFLAGS
7038 CFLAGS=$emacs_g3_CFLAGS
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5
7040 $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; }
7041 if test "${emacs_cv_prog_cc_g3+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7048 main ()
7052 return 0;
7054 _ACEOF
7055 if ac_fn_c_try_link "$LINENO"; then :
7056 emacs_cv_prog_cc_g3=yes
7057 else
7058 emacs_cv_prog_cc_g3=no
7060 rm -f core conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5
7064 $as_echo "$emacs_cv_prog_cc_g3" >&6; }
7065 if test $emacs_cv_prog_cc_g3 = yes; then
7066 CFLAGS=$emacs_g3_CFLAGS
7067 else
7068 CFLAGS=$emacs_save_CFLAGS
7073 # Check whether --enable-gcc-warnings was given.
7074 if test "${enable_gcc_warnings+set}" = set; then :
7075 enableval=$enable_gcc_warnings; case $enableval in
7076 yes|no) ;;
7077 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7078 esac
7079 gl_gcc_warnings=$enableval
7080 else
7081 gl_gcc_warnings=no
7086 # Check whether --enable-link-time-optimization was given.
7087 if test "${enable_link_time_optimization+set}" = set; then :
7088 enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5
7090 $as_echo_n "checking whether link-time optimization is supported... " >&6; }
7091 ac_lto_supported=no
7092 if test x$GCC = xyes; then
7093 CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null`
7094 if test x$CPUS != x; then
7095 LTO="-flto=$CPUS"
7096 else
7097 LTO="-flto"
7099 old_CFLAGS=$CFLAGS
7100 CFLAGS="$CFLAGS $LTO"
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7105 main ()
7109 return 0;
7111 _ACEOF
7112 if ac_fn_c_try_compile "$LINENO"; then :
7113 ac_lto_supported=yes
7114 else
7115 ac_lto_supported=no
7117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118 CFLAGS="$old_CFLAGS"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5
7121 $as_echo "$ac_lto_supported" >&6; }
7122 if test "$ac_lto_supported" = "yes"; then
7123 CFLAGS="$CFLAGS $LTO"
7129 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7130 # ------------------------------------------------
7131 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7132 # Otherwise, run RUN-IF-NOT-FOUND.
7135 # When compiling with GCC, prefer -isystem to -I when including system
7136 # include files, to avoid generating useless diagnostics for the files.
7137 if test "$gl_gcc_warnings" != yes; then
7138 isystem='-I'
7139 else
7140 isystem='-isystem '
7142 # This, $nw, is the list of warnings we disable.
7145 case $with_x_toolkit in
7146 lucid | athena | motif)
7147 # Old toolkits mishandle 'const'.
7148 nw="$nw -Wwrite-strings"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7152 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7153 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7155 else
7157 gl_save_compiler_FLAGS="$CFLAGS"
7158 as_fn_append CFLAGS " -Werror"
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7163 main ()
7167 return 0;
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171 gl_cv_warn_c__Werror=yes
7172 else
7173 gl_cv_warn_c__Werror=no
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 CFLAGS="$gl_save_compiler_FLAGS"
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7180 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7181 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7182 as_fn_append WERROR_CFLAGS " -Werror"
7187 esac
7190 nw="$nw -Waggregate-return" # anachronistic
7191 nw="$nw -Wlong-long" # C90 is anachronistic
7192 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7193 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7194 nw="$nw -Wtraditional" # Warns on #elif which we use often
7195 nw="$nw -Wcast-qual" # Too many warnings for now
7196 nw="$nw -Wconversion" # Too many warnings for now
7197 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7198 nw="$nw -Wsign-conversion" # Too many warnings for now
7199 nw="$nw -Woverlength-strings" # Not a problem these days
7200 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7201 nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored
7202 nw="$nw -Wpadded" # Our structs are not padded
7203 nw="$nw -Wredundant-decls" # we regularly (re)declare functions
7204 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7205 nw="$nw -Wformat-nonliteral" # we do this a lot
7206 nw="$nw -Wvla" # warnings in gettext.h
7207 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7208 nw="$nw -Wswitch-enum" # Too many warnings for now
7209 nw="$nw -Wswitch-default" # Too many warnings for now
7210 nw="$nw -Wfloat-equal" # warns about high-quality code
7211 nw="$nw -Winline" # OK to ignore 'inline'
7212 nw="$nw -Wjump-misses-init" # We sometimes safely jump over init.
7213 nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning
7214 nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
7216 # Emacs doesn't care about shadowing; see
7217 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7218 nw="$nw -Wshadow"
7220 # The following lines should be removable at some point.
7221 nw="$nw -Wstack-protector"
7222 nw="$nw -Wstrict-overflow"
7223 nw="$nw -Wsuggest-attribute=pure"
7227 if test -n "$GCC"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7230 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7231 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7235 gl_save_CFLAGS="$CFLAGS"
7236 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7241 main ()
7245 return 0;
7247 _ACEOF
7248 if ac_fn_c_try_compile "$LINENO"; then :
7249 gl_cv_cc_nomfi_supported=yes
7250 else
7251 gl_cv_cc_nomfi_supported=no
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 CFLAGS="$gl_save_CFLAGS"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7258 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7260 if test "$gl_cv_cc_nomfi_supported" = yes; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7262 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7263 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7267 gl_save_CFLAGS="$CFLAGS"
7268 CFLAGS="$CFLAGS -W -Werror"
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 void f (void)
7273 typedef struct { int a; int b; } s_t;
7274 s_t s1 = { 0, };
7278 main ()
7282 return 0;
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 gl_cv_cc_nomfi_needed=no
7287 else
7288 gl_cv_cc_nomfi_needed=yes
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 CFLAGS="$gl_save_CFLAGS"
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7296 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7300 gl_manywarn_set=
7301 for gl_manywarn_item in \
7302 -W \
7303 -Wabi \
7304 -Waddress \
7305 -Wall \
7306 -Warray-bounds \
7307 -Wattributes \
7308 -Wbad-function-cast \
7309 -Wbuiltin-macro-redefined \
7310 -Wcast-align \
7311 -Wchar-subscripts \
7312 -Wclobbered \
7313 -Wcomment \
7314 -Wcomments \
7315 -Wcoverage-mismatch \
7316 -Wcpp \
7317 -Wdeprecated \
7318 -Wdeprecated-declarations \
7319 -Wdisabled-optimization \
7320 -Wdiv-by-zero \
7321 -Wdouble-promotion \
7322 -Wempty-body \
7323 -Wendif-labels \
7324 -Wenum-compare \
7325 -Wextra \
7326 -Wformat-contains-nul \
7327 -Wformat-extra-args \
7328 -Wformat-nonliteral \
7329 -Wformat-security \
7330 -Wformat-y2k \
7331 -Wformat-zero-length \
7332 -Wformat=2 \
7333 -Wfree-nonheap-object \
7334 -Wignored-qualifiers \
7335 -Wimplicit \
7336 -Wimplicit-function-declaration \
7337 -Wimplicit-int \
7338 -Winit-self \
7339 -Winline \
7340 -Wint-to-pointer-cast \
7341 -Winvalid-memory-model \
7342 -Winvalid-pch \
7343 -Wjump-misses-init \
7344 -Wlogical-op \
7345 -Wmain \
7346 -Wmaybe-uninitialized \
7347 -Wmissing-braces \
7348 -Wmissing-declarations \
7349 -Wmissing-field-initializers \
7350 -Wmissing-format-attribute \
7351 -Wmissing-include-dirs \
7352 -Wmissing-noreturn \
7353 -Wmissing-parameter-type \
7354 -Wmissing-prototypes \
7355 -Wmudflap \
7356 -Wmultichar \
7357 -Wnarrowing \
7358 -Wnested-externs \
7359 -Wnonnull \
7360 -Wnormalized=nfc \
7361 -Wold-style-declaration \
7362 -Wold-style-definition \
7363 -Woverflow \
7364 -Woverlength-strings \
7365 -Woverride-init \
7366 -Wpacked \
7367 -Wpacked-bitfield-compat \
7368 -Wparentheses \
7369 -Wpointer-arith \
7370 -Wpointer-sign \
7371 -Wpointer-to-int-cast \
7372 -Wpragmas \
7373 -Wreturn-type \
7374 -Wsequence-point \
7375 -Wshadow \
7376 -Wsizeof-pointer-memaccess \
7377 -Wstack-protector \
7378 -Wstrict-aliasing \
7379 -Wstrict-overflow \
7380 -Wstrict-prototypes \
7381 -Wsuggest-attribute=const \
7382 -Wsuggest-attribute=format \
7383 -Wsuggest-attribute=noreturn \
7384 -Wsuggest-attribute=pure \
7385 -Wswitch \
7386 -Wswitch-default \
7387 -Wsync-nand \
7388 -Wsystem-headers \
7389 -Wtrampolines \
7390 -Wtrigraphs \
7391 -Wtype-limits \
7392 -Wuninitialized \
7393 -Wunknown-pragmas \
7394 -Wunreachable-code \
7395 -Wunsafe-loop-optimizations \
7396 -Wunused \
7397 -Wunused-but-set-parameter \
7398 -Wunused-but-set-variable \
7399 -Wunused-function \
7400 -Wunused-label \
7401 -Wunused-local-typedefs \
7402 -Wunused-macros \
7403 -Wunused-parameter \
7404 -Wunused-result \
7405 -Wunused-value \
7406 -Wunused-variable \
7407 -Wvarargs \
7408 -Wvariadic-macros \
7409 -Wvector-operation-performance \
7410 -Wvla \
7411 -Wvolatile-register-var \
7412 -Wwrite-strings \
7414 ; do
7415 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7416 done
7418 # Disable the missing-field-initializers warning if needed
7419 if test "$gl_cv_cc_nomfi_needed" = yes; then
7420 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7423 ws=$gl_manywarn_set
7426 gl_warn_set=
7427 set x $ws; shift
7428 for gl_warn_item
7430 case " $nw " in
7431 *" $gl_warn_item "*)
7434 gl_warn_set="$gl_warn_set $gl_warn_item"
7436 esac
7437 done
7438 ws=$gl_warn_set
7440 for w in $ws; do
7441 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7443 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7444 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7445 $as_echo_n "(cached) " >&6
7446 else
7448 gl_save_compiler_FLAGS="$CFLAGS"
7449 as_fn_append CFLAGS " $w"
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 main ()
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 eval "$as_gl_Warn=yes"
7463 else
7464 eval "$as_gl_Warn=no"
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 CFLAGS="$gl_save_compiler_FLAGS"
7470 eval ac_res=\$$as_gl_Warn
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7472 $as_echo "$ac_res" >&6; }
7473 eval as_val=\$$as_gl_Warn
7474 if test "x$as_val" = x""yes; then :
7475 as_fn_append WARN_CFLAGS " $w"
7479 done
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7481 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7482 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7486 gl_save_compiler_FLAGS="$CFLAGS"
7487 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7492 main ()
7496 return 0;
7498 _ACEOF
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 gl_cv_warn_c__Wno_missing_field_initializers=yes
7501 else
7502 gl_cv_warn_c__Wno_missing_field_initializers=no
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 CFLAGS="$gl_save_compiler_FLAGS"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7509 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7510 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7511 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7514 # We need this one
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7516 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7517 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7521 gl_save_compiler_FLAGS="$CFLAGS"
7522 as_fn_append CFLAGS " -Wno-sign-compare"
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7527 main ()
7531 return 0;
7533 _ACEOF
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 gl_cv_warn_c__Wno_sign_compare=yes
7536 else
7537 gl_cv_warn_c__Wno_sign_compare=no
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 CFLAGS="$gl_save_compiler_FLAGS"
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7544 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7545 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7546 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7549 # Too many warnings for now
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7551 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7552 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7553 $as_echo_n "(cached) " >&6
7554 else
7556 gl_save_compiler_FLAGS="$CFLAGS"
7557 as_fn_append CFLAGS " -Wno-type-limits"
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7562 main ()
7566 return 0;
7568 _ACEOF
7569 if ac_fn_c_try_compile "$LINENO"; then :
7570 gl_cv_warn_c__Wno_type_limits=yes
7571 else
7572 gl_cv_warn_c__Wno_type_limits=no
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 CFLAGS="$gl_save_compiler_FLAGS"
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7579 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7580 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7581 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7584 # Too many warnings for now
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7586 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7587 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7591 gl_save_compiler_FLAGS="$CFLAGS"
7592 as_fn_append CFLAGS " -Wno-switch"
7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594 /* end confdefs.h. */
7597 main ()
7601 return 0;
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"; then :
7605 gl_cv_warn_c__Wno_switch=yes
7606 else
7607 gl_cv_warn_c__Wno_switch=no
7609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 CFLAGS="$gl_save_compiler_FLAGS"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7614 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7615 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7616 as_fn_append WARN_CFLAGS " -Wno-switch"
7619 # Too many warnings for now
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7621 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7622 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7626 gl_save_compiler_FLAGS="$CFLAGS"
7627 as_fn_append CFLAGS " -Wno-unused-parameter"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7632 main ()
7636 return 0;
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 gl_cv_warn_c__Wno_unused_parameter=yes
7641 else
7642 gl_cv_warn_c__Wno_unused_parameter=no
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 CFLAGS="$gl_save_compiler_FLAGS"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7649 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7650 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7651 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7654 # Too many warnings for now
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7656 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7657 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7661 gl_save_compiler_FLAGS="$CFLAGS"
7662 as_fn_append CFLAGS " -Wno-format-nonliteral"
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7667 main ()
7671 return 0;
7673 _ACEOF
7674 if ac_fn_c_try_compile "$LINENO"; then :
7675 gl_cv_warn_c__Wno_format_nonliteral=yes
7676 else
7677 gl_cv_warn_c__Wno_format_nonliteral=no
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 CFLAGS="$gl_save_compiler_FLAGS"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7684 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7685 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7686 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7691 # In spite of excluding -Wlogical-op above, it is enabled, as of
7692 # gcc 4.5.0 20090517.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7694 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7695 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7699 gl_save_compiler_FLAGS="$CFLAGS"
7700 as_fn_append CFLAGS " -Wno-logical-op"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7705 main ()
7709 return 0;
7711 _ACEOF
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 gl_cv_warn_c__Wno_logical_op=yes
7714 else
7715 gl_cv_warn_c__Wno_logical_op=no
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 CFLAGS="$gl_save_compiler_FLAGS"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7722 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7723 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7724 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7730 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7731 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7735 gl_save_compiler_FLAGS="$CFLAGS"
7736 as_fn_append CFLAGS " -fdiagnostics-show-option"
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7741 main ()
7745 return 0;
7747 _ACEOF
7748 if ac_fn_c_try_compile "$LINENO"; then :
7749 gl_cv_warn_c__fdiagnostics_show_option=yes
7750 else
7751 gl_cv_warn_c__fdiagnostics_show_option=no
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 CFLAGS="$gl_save_compiler_FLAGS"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7758 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7759 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7760 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7765 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7766 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7767 $as_echo_n "(cached) " >&6
7768 else
7770 gl_save_compiler_FLAGS="$CFLAGS"
7771 as_fn_append CFLAGS " -funit-at-a-time"
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7776 main ()
7780 return 0;
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 gl_cv_warn_c__funit_at_a_time=yes
7785 else
7786 gl_cv_warn_c__funit_at_a_time=no
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 CFLAGS="$gl_save_compiler_FLAGS"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7793 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7794 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7795 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7801 $as_echo "#define lint 1" >>confdefs.h
7805 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7808 # We use a slightly smaller set of warning options for lib/.
7809 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7811 nw="$nw -Wunused-macros"
7814 gl_warn_set=
7815 set x $WARN_CFLAGS; shift
7816 for gl_warn_item
7818 case " $nw " in
7819 *" $gl_warn_item "*)
7822 gl_warn_set="$gl_warn_set $gl_warn_item"
7824 esac
7825 done
7826 GNULIB_WARN_CFLAGS=$gl_warn_set
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7834 $as_echo_n "checking whether ln -s works... " >&6; }
7835 LN_S=$as_ln_s
7836 if test "$LN_S" = "ln -s"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838 $as_echo "yes" >&6; }
7839 else
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7841 $as_echo "no, using $LN_S" >&6; }
7845 # Extract the first word of "install-info", so it can be a program name with args.
7846 set dummy install-info; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 case $INSTALL_INFO in
7853 [\\/]* | ?:[\\/]*)
7854 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7868 done
7869 done
7870 IFS=$as_save_IFS
7872 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7874 esac
7876 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7877 if test -n "$INSTALL_INFO"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7879 $as_echo "$INSTALL_INFO" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7886 # Extract the first word of "gzip", so it can be a program name with args.
7887 set dummy gzip; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 case $GZIP_PROG in
7894 [\\/]* | ?:[\\/]*)
7895 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7905 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7909 done
7910 done
7911 IFS=$as_save_IFS
7914 esac
7916 GZIP_PROG=$ac_cv_path_GZIP_PROG
7917 if test -n "$GZIP_PROG"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7919 $as_echo "$GZIP_PROG" >&6; }
7920 else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7927 if test $opsys = gnu-linux; then
7928 # Extract the first word of "paxctl", so it can be a program name with args.
7929 set dummy paxctl; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 case $PAXCTL in
7936 [\\/]* | ?:[\\/]*)
7937 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7951 done
7952 done
7953 IFS=$as_save_IFS
7956 esac
7958 PAXCTL=$ac_cv_path_PAXCTL
7959 if test -n "$PAXCTL"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7961 $as_echo "$PAXCTL" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7968 if test "X$PAXCTL" != X; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5
7970 $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; }
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7975 main ()
7979 return 0;
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983 if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7984 $as_echo "yes" >&6; }
7985 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }; PAXCTL=""; fi
7988 rm -f core conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
7993 ## Need makeinfo >= 4.7 (?) to build the manuals.
7994 # Extract the first word of "makeinfo", so it can be a program name with args.
7995 set dummy makeinfo; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 case $MAKEINFO in
8002 [\\/]* | ?:[\\/]*)
8003 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 for as_dir in $PATH
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
8012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8013 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8017 done
8018 done
8019 IFS=$as_save_IFS
8021 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
8023 esac
8025 MAKEINFO=$ac_cv_path_MAKEINFO
8026 if test -n "$MAKEINFO"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8028 $as_echo "$MAKEINFO" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8035 if test "$MAKEINFO" != "no" && \
8036 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
8037 MAKEINFO=no
8040 ## Makeinfo is unusual. For a released Emacs, the manuals are
8041 ## pre-built, and not deleted by the normal clean rules. makeinfo is
8042 ## therefore in the category of "special tools" not normally required, which
8043 ## configure does not have to check for (eg autoconf itself).
8044 ## In a Bazaar checkout on the other hand, the manuals are not included.
8045 ## So makeinfo is a requirement to build from Bazaar, and configure
8046 ## should test for it as it does for any other build requirement.
8047 ## We use the presence of $srcdir/info/emacs to distinguish a release,
8048 ## with pre-built manuals, from a Bazaar checkout.
8049 HAVE_MAKEINFO=yes
8051 if test "$MAKEINFO" = "no"; then
8052 MAKEINFO=makeinfo
8053 if test "x${with_makeinfo}" = "xno"; then
8054 HAVE_MAKEINFO=no
8055 elif test ! -e $srcdir/info/emacs; then
8056 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
8057 source tree does not seem to have pre-built manuals in the \`info' directory.
8058 Either install a suitable version of makeinfo, or re-run configure
8059 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
8064 INFO_EXT=.info
8065 INFO_OPTS=--no-split
8070 if test x$GCC = xyes; then
8071 test "x$GCC_LINK_TEST_OPTIONS" != x && \
8072 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
8073 else
8074 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
8075 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
8079 late_LDFLAGS=$LDFLAGS
8080 if test x$GCC = xyes; then
8081 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
8082 else
8083 LDFLAGS="$LDFLAGS -znocombreloc"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
8087 $as_echo_n "checking for -znocombreloc... " >&6; }
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8092 main ()
8096 return 0;
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 $as_echo "yes" >&6; }
8102 else
8103 LDFLAGS=$late_LDFLAGS
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8107 rm -f core conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8111 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
8112 case "$opsys" in
8113 your-opsys-here) CANNOT_DUMP=yes ;;
8114 esac
8116 test "$CANNOT_DUMP" = "yes" && \
8118 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
8124 UNEXEC_OBJ=unexelf.o
8125 case "$opsys" in
8126 # MSDOS uses unexcoff.o
8127 # MSWindows uses unexw32.o
8128 aix4-2)
8129 UNEXEC_OBJ=unexaix.o
8131 cygwin)
8132 UNEXEC_OBJ=unexcw.o
8134 darwin)
8135 UNEXEC_OBJ=unexmacosx.o
8137 hpux10-20 | hpux11)
8138 UNEXEC_OBJ=unexhp9k800.o
8140 sol2-10)
8141 # Use the Solaris dldump() function, called from unexsol.c, to dump
8142 # emacs, instead of the generic ELF dump code found in unexelf.c.
8143 # The resulting binary has a complete symbol table, and is better
8144 # for debugging and other observability tools (debuggers, pstack, etc).
8146 # If you encounter a problem using dldump(), please consider sending
8147 # a message to the OpenSolaris tools-linking mailing list:
8148 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
8150 # It is likely that dldump() works with older Solaris too, but this has
8151 # not been tested, so for now this change is for Solaris 10 or newer.
8152 UNEXEC_OBJ=unexsol.o
8154 esac
8156 LD_SWITCH_SYSTEM=
8157 case "$opsys" in
8158 freebsd)
8159 ## Let `ld' find image libs and similar things in /usr/local/lib.
8160 ## The system compiler, GCC, has apparently been modified to not
8161 ## look there, contrary to what a stock GCC would do.
8162 ### It's not our place to do this. See bug#10313#17.
8163 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
8167 gnu-linux)
8168 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8169 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8172 netbsd)
8173 ### It's not our place to do this. See bug#10313#17.
8174 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8178 openbsd)
8179 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8180 ## otherwise Emacs dumps core on elf systems.
8181 LD_SWITCH_SYSTEM="-Z"
8183 esac
8186 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8188 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8189 ## which has not been defined yet. When this was handled with cpp,
8190 ## it was expanded to null when configure sourced the s/*.h file.
8191 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8192 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8193 ## (or somesuch), but because it is supposed to go at the _front_
8194 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8195 ## Compare with the gnu-linux case below, which added to the end
8196 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8197 ## LD_SWITCH_SYSTEM_TEMACS.
8198 case "$opsys" in
8199 netbsd|openbsd)
8200 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8201 esac
8204 C_SWITCH_MACHINE=
8205 case $canonical in
8206 alpha*)
8207 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8208 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8212 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8213 ## With ELF, make sure that all common symbols get allocated to in the
8214 ## data section. Otherwise, the dump of temacs may miss variables in
8215 ## the shared library that have been initialized. For example, with
8216 ## GNU libc, __malloc_initialized would normally be resolved to the
8217 ## shared library's .bss section, which is fatal.
8218 if test "x$GCC" = "xyes"; then
8219 C_SWITCH_MACHINE="-fno-common"
8220 else
8221 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8223 else
8224 UNEXEC_OBJ=unexalpha.o
8227 esac
8232 C_SWITCH_SYSTEM=
8233 ## Some programs in src produce warnings saying certain subprograms
8234 ## are too complex and need a MAXMEM value greater than 2000 for
8235 ## additional optimization. --nils@exp-math.uni-essen.de
8236 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8237 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8238 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8239 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8243 LIBS_SYSTEM=
8244 case "$opsys" in
8245 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8246 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8248 freebsd) LIBS_SYSTEM="-lutil" ;;
8250 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8252 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8254 ## Motif needs -lgen.
8255 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8256 esac
8260 ### Make sure subsequent tests use flags consistent with the build flags.
8262 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8263 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8264 else
8265 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8268 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8270 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8274 LIB_MATH=-lm
8275 LIB_STANDARD=
8276 START_FILES=
8277 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8279 case $opsys in
8280 cygwin )
8281 LIB_MATH=
8282 START_FILES='pre-crt0.o'
8284 darwin )
8285 ## Adding -lm confuses the dynamic linker, so omit it.
8286 LIB_MATH=
8287 START_FILES='pre-crt0.o'
8289 freebsd )
8290 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8291 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8292 SYSTEM_TYPE=berkeley-unix
8294 gnu-linux | gnu-kfreebsd )
8295 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8296 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8298 hpux10-20 | hpux11 )
8299 LIB_STANDARD=-lc
8300 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8302 netbsd | openbsd )
8303 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8304 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8305 SYSTEM_TYPE=berkeley-unix
8308 sol2* | unixware )
8309 SYSTEM_TYPE=usg-unix-v
8312 esac
8317 cat >>confdefs.h <<_ACEOF
8318 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8319 _ACEOF
8322 crt_files=
8324 for file in x $LIB_STANDARD $START_FILES; do
8325 case "$file" in
8326 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8327 esac
8328 done
8330 if test "x$crt_files" != x; then
8332 ## If user specified a crt-dir, use that unconditionally.
8333 crt_gcc=no
8335 if test "X$CRT_DIR" = "X"; then
8337 CRT_DIR=/usr/lib # default
8339 case "$canonical" in
8340 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8341 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8342 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8343 ## For anything else (eg /usr/lib32), it is up the user to specify
8344 ## the location (bug#5655).
8345 ## Test for crtn.o, not just the directory, because sometimes the
8346 ## directory exists but does not have the relevant files (bug#1287).
8347 ## FIXME better to test for binary compatibility somehow.
8348 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8351 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8352 esac
8354 case "$opsys" in
8355 hpux10-20) CRT_DIR=/lib ;;
8356 esac
8358 test "x${GCC}" = xyes && crt_gcc=yes
8360 fi # CRT_DIR = ""
8362 crt_missing=
8364 for file in $crt_files; do
8366 ## If we're using gcc, try to determine it automatically by asking
8367 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8368 ## system-dependent default from above.]
8369 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8371 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8372 case "$crt_file" in
8373 */*)
8374 CRT_DIR=`$as_dirname -- "$crt_file" ||
8375 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8376 X"$crt_file" : 'X\(//\)[^/]' \| \
8377 X"$crt_file" : 'X\(//\)$' \| \
8378 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8379 $as_echo X"$crt_file" |
8380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8381 s//\1/
8384 /^X\(\/\/\)[^/].*/{
8385 s//\1/
8388 /^X\(\/\/\)$/{
8389 s//\1/
8392 /^X\(\/\).*/{
8393 s//\1/
8396 s/.*/./; q'`
8398 esac
8401 crt_gcc=no
8403 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8404 done # $crt_files
8406 test "x$crt_missing" = x || \
8407 as_fn_error "Required file(s) not found:$crt_missing
8408 Try using the --with-crt-dir option." "$LINENO" 5
8410 fi # crt_files != ""
8414 case $opsys in
8415 netbsd | openbsd )
8416 if test -f $CRT_DIR/crti.o; then
8418 test -f $CRT_DIR/crtn.o || \
8419 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8421 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8422 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8425 esac
8428 pre_PKG_CONFIG_CFLAGS=$CFLAGS
8429 pre_PKG_CONFIG_LIBS=$LIBS
8431 # Extract the first word of "pkg-config", so it can be a program name with args.
8432 set dummy pkg-config; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8437 else
8438 case $PKG_CONFIG in
8439 [\\/]* | ?:[\\/]*)
8440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8454 done
8455 done
8456 IFS=$as_save_IFS
8458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8460 esac
8462 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8463 if test -n "$PKG_CONFIG"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8465 $as_echo "$PKG_CONFIG" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8476 if test "${with_sound}" != "no"; then
8477 # Sound support for GNU/Linux and the free BSDs.
8478 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
8479 do :
8480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8482 eval as_val=\$$as_ac_Header
8483 if test "x$as_val" = x""yes; then :
8484 cat >>confdefs.h <<_ACEOF
8485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8486 _ACEOF
8487 have_sound_header=yes
8490 done
8492 # Emulation library used on NetBSD.
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
8494 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
8495 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 ac_check_lib_save_LIBS=$LIBS
8499 LIBS="-lossaudio $LIBS"
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8503 /* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 char _oss_ioctl ();
8511 main ()
8513 return _oss_ioctl ();
8515 return 0;
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"; then :
8519 ac_cv_lib_ossaudio__oss_ioctl=yes
8520 else
8521 ac_cv_lib_ossaudio__oss_ioctl=no
8523 rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_check_lib_save_LIBS
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
8528 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
8529 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
8530 LIBSOUND=-lossaudio
8531 else
8532 LIBSOUND=
8537 ALSA_REQUIRED=1.0.0
8538 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
8540 succeeded=no
8542 if test "$PKG_CONFIG" = "no" ; then
8543 HAVE_ALSA=no
8544 else
8545 PKG_CONFIG_MIN_VERSION=0.9.0
8546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
8548 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
8550 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
8551 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
8552 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
8553 edit_cflags="
8554 s,///*,/,g
8555 s/^/ /
8556 s/ -I/ $isystem/g
8557 s/^ //
8559 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
8560 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
8562 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
8563 succeeded=yes
8564 else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8567 ALSA_CFLAGS=""
8568 ALSA_LIBS=""
8569 ## If we have a custom action on failure, don't print errors, but
8570 ## do set a variable so people can do so. Do it in a subshell
8571 ## to capture any diagnostics in invoking pkg-config.
8572 ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1`
8578 else
8579 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8580 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8584 if test $succeeded = yes; then
8585 HAVE_ALSA=yes
8586 else
8587 HAVE_ALSA=no
8590 if test $HAVE_ALSA = yes; then
8591 SAVE_CFLAGS="$CFLAGS"
8592 SAVE_LIBS="$LIBS"
8593 CFLAGS="$ALSA_CFLAGS $CFLAGS"
8594 LIBS="$ALSA_LIBS $LIBS"
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #include <asoundlib.h>
8599 main ()
8601 snd_lib_error_set_handler (0);
8603 return 0;
8605 _ACEOF
8606 if ac_fn_c_try_compile "$LINENO"; then :
8607 emacs_alsa_normal=yes
8608 else
8609 emacs_alsa_normal=no
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 if test "$emacs_alsa_normal" != yes; then
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 #include <alsa/asoundlib.h>
8617 main ()
8619 snd_lib_error_set_handler (0);
8621 return 0;
8623 _ACEOF
8624 if ac_fn_c_try_compile "$LINENO"; then :
8625 emacs_alsa_subdir=yes
8626 else
8627 emacs_alsa_subdir=no
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 if test "$emacs_alsa_subdir" != yes; then
8631 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
8633 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
8636 CFLAGS="$SAVE_CFLAGS"
8637 LIBS="$SAVE_LIBS"
8638 LIBSOUND="$LIBSOUND $ALSA_LIBS"
8639 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
8641 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
8645 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
8646 case "$opsys" in
8647 gnu-linux|freebsd|netbsd)
8649 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
8652 esac
8661 for ac_header in $ac_header_list
8662 do :
8663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8664 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8666 eval as_val=\$$as_ac_Header
8667 if test "x$as_val" = x""yes; then :
8668 cat >>confdefs.h <<_ACEOF
8669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8670 _ACEOF
8674 done
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8705 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <sys/personality.h>
8710 main ()
8712 personality (PER_LINUX32)
8714 return 0;
8716 _ACEOF
8717 if ac_fn_c_try_compile "$LINENO"; then :
8718 emacs_cv_personality_linux32=yes
8719 else
8720 emacs_cv_personality_linux32=no
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
8724 $as_echo "$emacs_cv_personality_linux32" >&6; }
8726 if test $emacs_cv_personality_linux32 = yes; then
8728 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
8732 for ac_header in term.h
8733 do :
8734 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
8735 if test "x$ac_cv_header_term_h" = x""yes; then :
8736 cat >>confdefs.h <<_ACEOF
8737 #define HAVE_TERM_H 1
8738 _ACEOF
8742 done
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8745 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8746 if test "${ac_cv_header_time+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 #include <sys/types.h>
8752 #include <sys/time.h>
8753 #include <time.h>
8756 main ()
8758 if ((struct tm *) 0)
8759 return 0;
8761 return 0;
8763 _ACEOF
8764 if ac_fn_c_try_compile "$LINENO"; then :
8765 ac_cv_header_time=yes
8766 else
8767 ac_cv_header_time=no
8769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8772 $as_echo "$ac_cv_header_time" >&6; }
8773 if test $ac_cv_header_time = yes; then
8775 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8779 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8780 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8781 ac_have_decl=1
8782 else
8783 ac_have_decl=0
8786 cat >>confdefs.h <<_ACEOF
8787 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8788 _ACEOF
8790 if test $ac_cv_have_decl_sys_siglist != yes; then
8791 # For Tru64, at least:
8792 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8793 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8794 ac_have_decl=1
8795 else
8796 ac_have_decl=0
8799 cat >>confdefs.h <<_ACEOF
8800 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8801 _ACEOF
8803 if test $ac_cv_have_decl___sys_siglist = yes; then
8805 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8810 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8811 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 #include <sys/types.h>
8817 #include <sys/wait.h>
8818 #ifndef WEXITSTATUS
8819 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8820 #endif
8821 #ifndef WIFEXITED
8822 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8823 #endif
8826 main ()
8828 int s;
8829 wait (&s);
8830 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8832 return 0;
8834 _ACEOF
8835 if ac_fn_c_try_compile "$LINENO"; then :
8836 ac_cv_header_sys_wait_h=yes
8837 else
8838 ac_cv_header_sys_wait_h=no
8840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8843 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8844 if test $ac_cv_header_sys_wait_h = yes; then
8846 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8852 $as_echo_n "checking for speed_t... " >&6; }
8853 if test "${emacs_cv_speed_t+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <termios.h>
8860 main ()
8862 speed_t x = 1;
8864 return 0;
8866 _ACEOF
8867 if ac_fn_c_try_compile "$LINENO"; then :
8868 emacs_cv_speed_t=yes
8869 else
8870 emacs_cv_speed_t=no
8872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8875 $as_echo "$emacs_cv_speed_t" >&6; }
8876 if test $emacs_cv_speed_t = yes; then
8878 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8885 for ac_header in net/if.h
8886 do :
8887 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8888 #if HAVE_SYS_SOCKET_H
8889 #include <sys/socket.h>
8890 #endif
8892 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8893 cat >>confdefs.h <<_ACEOF
8894 #define HAVE_NET_IF_H 1
8895 _ACEOF
8899 done
8901 for ac_header in ifaddrs.h
8902 do :
8903 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
8904 #if HAVE_SYS_SOCKET_H
8905 #include <sys/socket.h>
8906 #endif
8908 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
8909 cat >>confdefs.h <<_ACEOF
8910 #define HAVE_IFADDRS_H 1
8911 _ACEOF
8915 done
8917 for ac_header in net/if_dl.h
8918 do :
8919 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
8920 #if HAVE_SYS_SOCKET_H
8921 #include <sys/socket.h>
8922 #endif
8924 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
8925 cat >>confdefs.h <<_ACEOF
8926 #define HAVE_NET_IF_DL_H 1
8927 _ACEOF
8931 done
8934 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8935 #if HAVE_SYS_SOCKET_H
8936 #include <sys/socket.h>
8937 #endif
8938 #if HAVE_NET_IF_H
8939 #include <net/if.h>
8940 #endif
8942 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8944 cat >>confdefs.h <<_ACEOF
8945 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8946 _ACEOF
8950 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8951 #if HAVE_SYS_SOCKET_H
8952 #include <sys/socket.h>
8953 #endif
8954 #if HAVE_NET_IF_H
8955 #include <net/if.h>
8956 #endif
8958 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8960 cat >>confdefs.h <<_ACEOF
8961 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8962 _ACEOF
8966 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8967 #if HAVE_SYS_SOCKET_H
8968 #include <sys/socket.h>
8969 #endif
8970 #if HAVE_NET_IF_H
8971 #include <net/if.h>
8972 #endif
8974 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8976 cat >>confdefs.h <<_ACEOF
8977 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8978 _ACEOF
8982 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8983 #if HAVE_SYS_SOCKET_H
8984 #include <sys/socket.h>
8985 #endif
8986 #if HAVE_NET_IF_H
8987 #include <net/if.h>
8988 #endif
8990 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8992 cat >>confdefs.h <<_ACEOF
8993 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8994 _ACEOF
8998 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8999 #if HAVE_SYS_SOCKET_H
9000 #include <sys/socket.h>
9001 #endif
9002 #if HAVE_NET_IF_H
9003 #include <net/if.h>
9004 #endif
9006 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
9008 cat >>confdefs.h <<_ACEOF
9009 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9010 _ACEOF
9014 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
9015 #if HAVE_SYS_SOCKET_H
9016 #include <sys/socket.h>
9017 #endif
9018 #if HAVE_NET_IF_H
9019 #include <net/if.h>
9020 #endif
9022 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
9024 cat >>confdefs.h <<_ACEOF
9025 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
9026 _ACEOF
9034 DEPFLAGS=
9035 MKDEPDIR=":"
9036 deps_frag=deps.mk
9037 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9039 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9040 HAVE_GNU_MAKE=no
9041 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
9042 if test "x$testval" != x; then
9043 HAVE_GNU_MAKE=yes
9044 else
9045 ac_enable_autodepend=no
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9048 $as_echo "$HAVE_GNU_MAKE" >&6; }
9049 if test $HAVE_GNU_MAKE = yes; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9051 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9052 SAVE_CFLAGS="$CFLAGS"
9053 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9058 main ()
9062 return 0;
9064 _ACEOF
9065 if ac_fn_c_try_compile "$LINENO"; then :
9067 else
9068 ac_enable_autodepend=no
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 CFLAGS="$SAVE_CFLAGS"
9072 test -f deps.d || ac_enable_autodepend=no
9073 rm -rf deps.d
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9075 $as_echo "$ac_enable_autodepend" >&6; }
9077 if test $ac_enable_autodepend = yes; then
9078 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
9079 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
9080 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
9081 deps_frag=autodeps.mk
9084 deps_frag=$srcdir/src/$deps_frag
9090 lisp_frag=$srcdir/src/lisp.mk
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9095 $as_echo_n "checking for long file names... " >&6; }
9096 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 ac_cv_sys_long_file_names=yes
9100 # Test for long file names in all the places we know might matter:
9101 # . the current directory, where building will happen
9102 # $prefix/lib where we will be installing things
9103 # $exec_prefix/lib likewise
9104 # $TMPDIR if set, where it might want to write temporary files
9105 # /tmp where it might want to write temporary files
9106 # /var/tmp likewise
9107 # /usr/tmp likewise
9108 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9109 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9110 # in the usual case where exec_prefix is '${prefix}'.
9111 case $ac_dir in #(
9112 . | /* | ?:[\\/]*) ;; #(
9113 *) continue;;
9114 esac
9115 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9116 ac_xdir=$ac_dir/cf$$
9117 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9118 ac_tf1=$ac_xdir/conftest9012345
9119 ac_tf2=$ac_xdir/conftest9012346
9120 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9121 ac_cv_sys_long_file_names=no
9122 rm -f -r "$ac_xdir" 2>/dev/null
9123 test $ac_cv_sys_long_file_names = no && break
9124 done
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9127 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9128 if test $ac_cv_sys_long_file_names = yes; then
9130 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9135 #### Choose a window system.
9137 ## We leave window_system equal to none if
9138 ## we end up building without one. Any new window system should
9139 ## set window_system to an appropriate value and add objects to
9140 ## window-system-specific substs.
9142 window_system=none
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9144 $as_echo_n "checking for X... " >&6; }
9147 # Check whether --with-x was given.
9148 if test "${with_x+set}" = set; then :
9149 withval=$with_x;
9152 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9153 if test "x$with_x" = xno; then
9154 # The user explicitly disabled X.
9155 have_x=disabled
9156 else
9157 case $x_includes,$x_libraries in #(
9158 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9159 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 # One or both of the vars are not set, and there is no cached value.
9163 ac_x_includes=no ac_x_libraries=no
9164 rm -f -r conftest.dir
9165 if mkdir conftest.dir; then
9166 cd conftest.dir
9167 cat >Imakefile <<'_ACEOF'
9168 incroot:
9169 @echo incroot='${INCROOT}'
9170 usrlibdir:
9171 @echo usrlibdir='${USRLIBDIR}'
9172 libdir:
9173 @echo libdir='${LIBDIR}'
9174 _ACEOF
9175 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9176 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9177 for ac_var in incroot usrlibdir libdir; do
9178 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9179 done
9180 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9181 for ac_extension in a so sl dylib la dll; do
9182 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9183 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9184 ac_im_usrlibdir=$ac_im_libdir; break
9186 done
9187 # Screen out bogus values from the imake configuration. They are
9188 # bogus both because they are the default anyway, and because
9189 # using them would break gcc on systems where it needs fixed includes.
9190 case $ac_im_incroot in
9191 /usr/include) ac_x_includes= ;;
9192 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9193 esac
9194 case $ac_im_usrlibdir in
9195 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9196 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9197 esac
9199 cd ..
9200 rm -f -r conftest.dir
9203 # Standard set of common directories for X headers.
9204 # Check X11 before X11Rn because it is often a symlink to the current release.
9205 ac_x_header_dirs='
9206 /usr/X11/include
9207 /usr/X11R7/include
9208 /usr/X11R6/include
9209 /usr/X11R5/include
9210 /usr/X11R4/include
9212 /usr/include/X11
9213 /usr/include/X11R7
9214 /usr/include/X11R6
9215 /usr/include/X11R5
9216 /usr/include/X11R4
9218 /usr/local/X11/include
9219 /usr/local/X11R7/include
9220 /usr/local/X11R6/include
9221 /usr/local/X11R5/include
9222 /usr/local/X11R4/include
9224 /usr/local/include/X11
9225 /usr/local/include/X11R7
9226 /usr/local/include/X11R6
9227 /usr/local/include/X11R5
9228 /usr/local/include/X11R4
9230 /usr/X386/include
9231 /usr/x386/include
9232 /usr/XFree86/include/X11
9234 /usr/include
9235 /usr/local/include
9236 /usr/unsupported/include
9237 /usr/athena/include
9238 /usr/local/x11r5/include
9239 /usr/lpp/Xamples/include
9241 /usr/openwin/include
9242 /usr/openwin/share/include'
9244 if test "$ac_x_includes" = no; then
9245 # Guess where to find include files, by looking for Xlib.h.
9246 # First, try using that file with no special directory specified.
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9249 #include <X11/Xlib.h>
9250 _ACEOF
9251 if ac_fn_c_try_cpp "$LINENO"; then :
9252 # We can compile using X headers with no special include directory.
9253 ac_x_includes=
9254 else
9255 for ac_dir in $ac_x_header_dirs; do
9256 if test -r "$ac_dir/X11/Xlib.h"; then
9257 ac_x_includes=$ac_dir
9258 break
9260 done
9262 rm -f conftest.err conftest.$ac_ext
9263 fi # $ac_x_includes = no
9265 if test "$ac_x_libraries" = no; then
9266 # Check for the libraries.
9267 # See if we find them without any special options.
9268 # Don't add to $LIBS permanently.
9269 ac_save_LIBS=$LIBS
9270 LIBS="-lX11 $LIBS"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 #include <X11/Xlib.h>
9275 main ()
9277 XrmInitialize ()
9279 return 0;
9281 _ACEOF
9282 if ac_fn_c_try_link "$LINENO"; then :
9283 LIBS=$ac_save_LIBS
9284 # We can link X programs with no special library path.
9285 ac_x_libraries=
9286 else
9287 LIBS=$ac_save_LIBS
9288 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9290 # Don't even attempt the hair of trying to link an X program!
9291 for ac_extension in a so sl dylib la dll; do
9292 if test -r "$ac_dir/libX11.$ac_extension"; then
9293 ac_x_libraries=$ac_dir
9294 break 2
9296 done
9297 done
9299 rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301 fi # $ac_x_libraries = no
9303 case $ac_x_includes,$ac_x_libraries in #(
9304 no,* | *,no | *\'*)
9305 # Didn't find X, or a directory has "'" in its name.
9306 ac_cv_have_x="have_x=no";; #(
9308 # Record where we found X for the cache.
9309 ac_cv_have_x="have_x=yes\
9310 ac_x_includes='$ac_x_includes'\
9311 ac_x_libraries='$ac_x_libraries'"
9312 esac
9314 ;; #(
9315 *) have_x=yes;;
9316 esac
9317 eval "$ac_cv_have_x"
9318 fi # $with_x != no
9320 if test "$have_x" != yes; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9322 $as_echo "$have_x" >&6; }
9323 no_x=yes
9324 else
9325 # If each of the values was on the command line, it overrides each guess.
9326 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9327 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9328 # Update the cache value to reflect the command line values.
9329 ac_cv_have_x="have_x=yes\
9330 ac_x_includes='$x_includes'\
9331 ac_x_libraries='$x_libraries'"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9333 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9336 if test "$no_x" != yes; then
9337 window_system=x11
9340 LD_SWITCH_X_SITE_RPATH=
9341 if test "${x_libraries}" != NONE; then
9342 if test -n "${x_libraries}"; then
9343 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9344 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
9346 x_default_search_path=""
9347 x_search_path=${x_libraries}
9348 if test -z "${x_search_path}"; then
9349 x_search_path=/usr/lib
9351 for x_library in `echo ${x_search_path}: | \
9352 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9353 x_search_path="\
9354 ${x_library}/X11/%L/%T/%N%C%S:\
9355 ${x_library}/X11/%l/%T/%N%C%S:\
9356 ${x_library}/X11/%T/%N%C%S:\
9357 ${x_library}/X11/%L/%T/%N%S:\
9358 ${x_library}/X11/%l/%T/%N%S:\
9359 ${x_library}/X11/%T/%N%S"
9360 if test x"${x_default_search_path}" = x; then
9361 x_default_search_path=${x_search_path}
9362 else
9363 x_default_search_path="${x_search_path}:${x_default_search_path}"
9365 done
9369 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9370 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
9373 if test x"${x_includes}" = x; then
9374 bitmapdir=/usr/include/X11/bitmaps
9375 else
9376 # accumulate include directories that have X11 bitmap subdirectories
9377 bmd_acc="dummyval"
9378 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9379 if test -d "${bmd}/X11/bitmaps"; then
9380 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9382 if test -d "${bmd}/bitmaps"; then
9383 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9385 done
9386 if test ${bmd_acc} != "dummyval"; then
9387 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9391 HAVE_NS=no
9392 NS_IMPL_COCOA=no
9393 NS_IMPL_GNUSTEP=no
9394 tmp_CPPFLAGS="$CPPFLAGS"
9395 tmp_CFLAGS="$CFLAGS"
9396 CPPFLAGS="$CPPFLAGS -x objective-c"
9397 CFLAGS="$CFLAGS -x objective-c"
9398 TEMACS_LDFLAGS2="\${LDFLAGS}"
9399 GNU_OBJC_CFLAGS=
9400 if test "${with_ns}" != no; then
9401 if test "${opsys}" = darwin; then
9402 NS_IMPL_COCOA=yes
9403 ns_appdir=`pwd`/nextstep/Emacs.app
9404 ns_appbindir=${ns_appdir}/Contents/MacOS
9405 ns_appresdir=${ns_appdir}/Contents/Resources
9406 ns_appsrc=Cocoa/Emacs.base
9407 elif test -f $GNUSTEP_CONFIG_FILE; then
9408 NS_IMPL_GNUSTEP=yes
9409 ns_appdir=`pwd`/nextstep/Emacs.app
9410 ns_appbindir=${ns_appdir}
9411 ns_appresdir=${ns_appdir}/Resources
9412 ns_appsrc=GNUstep/Emacs.base
9413 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9414 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9415 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9416 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9417 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9418 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9419 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9420 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9421 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9422 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9423 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9424 LIB_STANDARD=
9425 START_FILES=
9426 TEMACS_LDFLAGS2=
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
9428 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
9429 if test "${emacs_cv_objc_exceptions+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #include <GNUstepBase/GSConfig.h>
9436 main ()
9438 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
9440 #else
9441 fail;
9442 #endif
9444 return 0;
9446 _ACEOF
9447 if ac_fn_c_try_compile "$LINENO"; then :
9448 emacs_cv_objc_exceptions=yes
9449 else
9450 emacs_cv_objc_exceptions=no
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
9455 $as_echo "$emacs_cv_objc_exceptions" >&6; }
9456 if test $emacs_cv_objc_exceptions = yes; then
9458 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
9460 GNU_OBJC_CFLAGS="-fobjc-exceptions"
9464 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
9466 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9467 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9468 HAVE_NS=yes
9469 else
9470 as_fn_error "\`--with-ns' was specified, but the include
9471 files are missing or cannot be compiled." "$LINENO" 5
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 #include <Foundation/NSObjCRuntime.h>
9479 main ()
9481 NSInteger i;
9483 return 0;
9485 _ACEOF
9486 if ac_fn_c_try_compile "$LINENO"; then :
9487 ns_have_nsinteger=yes
9488 else
9489 ns_have_nsinteger=no
9491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 if test $ns_have_nsinteger = yes; then
9494 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
9500 INSTALL_ARCH_INDEP_EXTRA=install-etc
9501 ns_self_contained=no
9502 NS_OBJ=
9503 NS_OBJC_OBJ=
9504 if test "${HAVE_NS}" = yes; then
9505 if test "$with_toolkit_scroll_bars" = "no"; then
9506 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
9509 window_system=nextstep
9510 # set up packaging dirs
9511 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9512 ns_self_contained=yes
9513 prefix=${ns_appresdir}
9514 exec_prefix=${ns_appbindir}
9515 libexecdir="\${ns_appbindir}/libexec"
9516 archlibdir="\${ns_appbindir}/libexec"
9517 docdir="\${ns_appresdir}/etc"
9518 etcdir="\${ns_appresdir}/etc"
9519 infodir="\${ns_appresdir}/info"
9520 mandir="\${ns_appresdir}/man"
9521 lispdir="\${ns_appresdir}/lisp"
9522 leimdir="\${ns_appresdir}/leim"
9523 INSTALL_ARCH_INDEP_EXTRA=
9525 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9527 CFLAGS="$tmp_CFLAGS"
9528 CPPFLAGS="$tmp_CPPFLAGS"
9535 ## $window_system is now set to the window system we will
9536 ## ultimately use.
9538 term_header=
9539 HAVE_X_WINDOWS=no
9540 HAVE_X11=no
9541 USE_X_TOOLKIT=none
9543 case "${window_system}" in
9544 x11 )
9545 HAVE_X_WINDOWS=yes
9546 HAVE_X11=yes
9547 term_header=xterm.h
9548 case "${with_x_toolkit}" in
9549 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9550 motif ) USE_X_TOOLKIT=MOTIF ;;
9551 gtk ) with_gtk=yes
9552 term_header=gtkutil.h
9553 USE_X_TOOLKIT=none ;;
9554 gtk2 ) with_gtk2=yes
9555 term_header=gtkutil.h
9556 USE_X_TOOLKIT=none ;;
9557 gtk3 ) with_gtk3=yes
9558 term_header=gtkutil.h
9559 USE_X_TOOLKIT=none ;;
9560 no ) USE_X_TOOLKIT=none ;;
9561 * ) USE_X_TOOLKIT=maybe ;;
9562 esac
9564 nextstep )
9565 term_header=nsterm.h
9567 esac
9569 if test -n "${term_header}"; then
9571 cat >>confdefs.h <<_ACEOF
9572 #define TERM_HEADER "${term_header}"
9573 _ACEOF
9577 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9578 # Extract the first word of "X", so it can be a program name with args.
9579 set dummy X; ac_word=$2
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581 $as_echo_n "checking for $ac_word... " >&6; }
9582 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 if test -n "$HAVE_XSERVER"; then
9586 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9587 else
9588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589 for as_dir in $PATH
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_prog_HAVE_XSERVER="true"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2
9599 done
9600 done
9601 IFS=$as_save_IFS
9603 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9606 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9607 if test -n "$HAVE_XSERVER"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9609 $as_echo "$HAVE_XSERVER" >&6; }
9610 else
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9616 if test "$HAVE_XSERVER" = true ||
9617 test -n "$DISPLAY" ||
9618 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9619 as_fn_error "You seem to be running X, but no X development libraries
9620 were found. You should install the relevant development files for X
9621 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9622 sure you have development files for image handling, i.e.
9623 tiff, gif, jpeg, png and xpm.
9624 If you are sure you want Emacs compiled without X window support, pass
9625 --without-x
9626 to configure." "$LINENO" 5
9630 ### If we're using X11, we should use the X menu package.
9631 HAVE_MENUS=no
9632 case ${HAVE_X11} in
9633 yes ) HAVE_MENUS=yes ;;
9634 esac
9636 # Does the opsystem file prohibit the use of the GNU malloc?
9637 # Assume not, until told otherwise.
9638 GNU_MALLOC=yes
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
9641 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
9642 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 #include <malloc.h>
9648 static void hook (void) {}
9650 main ()
9652 malloc_set_state (malloc_get_state ());
9653 __after_morecore_hook = hook;
9654 __malloc_initialize_hook = hook;
9656 return 0;
9658 _ACEOF
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 emacs_cv_var_doug_lea_malloc=yes
9661 else
9662 emacs_cv_var_doug_lea_malloc=no
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
9668 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
9669 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
9672 system_malloc=no
9673 case "$opsys" in
9674 ## darwin ld insists on the use of malloc routines in the System framework.
9675 darwin|sol2-10) system_malloc=yes ;;
9676 esac
9678 if test "${system_malloc}" = "yes"; then
9680 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9682 GNU_MALLOC=no
9683 GNU_MALLOC_reason="
9684 (The GNU allocators don't work with this system configuration.)"
9685 GMALLOC_OBJ=
9686 VMLIMIT_OBJ=
9687 else
9688 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9689 VMLIMIT_OBJ=vm-limit.o
9694 if test "$doug_lea_malloc" = "yes" ; then
9695 if test "$GNU_MALLOC" = yes ; then
9696 GNU_MALLOC_reason="
9697 (Using Doug Lea's new malloc from the GNU C Library.)"
9700 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9703 ## Use mmap directly for allocating larger buffers.
9704 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9705 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9706 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
9707 case "$opsys" in
9708 gnu*) REL_ALLOC=no ;;
9709 esac
9712 if test x"${REL_ALLOC}" = x; then
9713 REL_ALLOC=${GNU_MALLOC}
9716 use_mmap_for_buffers=no
9717 case "$opsys" in
9718 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9719 esac
9728 for ac_func in getpagesize
9729 do :
9730 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9731 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9732 cat >>confdefs.h <<_ACEOF
9733 #define HAVE_GETPAGESIZE 1
9734 _ACEOF
9737 done
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9740 $as_echo_n "checking for working mmap... " >&6; }
9741 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9742 $as_echo_n "(cached) " >&6
9743 else
9744 if test "$cross_compiling" = yes; then :
9745 ac_cv_func_mmap_fixed_mapped=no
9746 else
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 $ac_includes_default
9750 /* malloc might have been renamed as rpl_malloc. */
9751 #undef malloc
9753 /* Thanks to Mike Haertel and Jim Avera for this test.
9754 Here is a matrix of mmap possibilities:
9755 mmap private not fixed
9756 mmap private fixed at somewhere currently unmapped
9757 mmap private fixed at somewhere already mapped
9758 mmap shared not fixed
9759 mmap shared fixed at somewhere currently unmapped
9760 mmap shared fixed at somewhere already mapped
9761 For private mappings, we should verify that changes cannot be read()
9762 back from the file, nor mmap's back from the file at a different
9763 address. (There have been systems where private was not correctly
9764 implemented like the infamous i386 svr4.0, and systems where the
9765 VM page cache was not coherent with the file system buffer cache
9766 like early versions of FreeBSD and possibly contemporary NetBSD.)
9767 For shared mappings, we should conversely verify that changes get
9768 propagated back to all the places they're supposed to be.
9770 Grep wants private fixed already mapped.
9771 The main things grep needs to know about mmap are:
9772 * does it exist and is it safe to write into the mmap'd area
9773 * how to use it (BSD variants) */
9775 #include <fcntl.h>
9776 #include <sys/mman.h>
9778 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9779 char *malloc ();
9780 #endif
9782 /* This mess was copied from the GNU getpagesize.h. */
9783 #ifndef HAVE_GETPAGESIZE
9784 # ifdef _SC_PAGESIZE
9785 # define getpagesize() sysconf(_SC_PAGESIZE)
9786 # else /* no _SC_PAGESIZE */
9787 # ifdef HAVE_SYS_PARAM_H
9788 # include <sys/param.h>
9789 # ifdef EXEC_PAGESIZE
9790 # define getpagesize() EXEC_PAGESIZE
9791 # else /* no EXEC_PAGESIZE */
9792 # ifdef NBPG
9793 # define getpagesize() NBPG * CLSIZE
9794 # ifndef CLSIZE
9795 # define CLSIZE 1
9796 # endif /* no CLSIZE */
9797 # else /* no NBPG */
9798 # ifdef NBPC
9799 # define getpagesize() NBPC
9800 # else /* no NBPC */
9801 # ifdef PAGESIZE
9802 # define getpagesize() PAGESIZE
9803 # endif /* PAGESIZE */
9804 # endif /* no NBPC */
9805 # endif /* no NBPG */
9806 # endif /* no EXEC_PAGESIZE */
9807 # else /* no HAVE_SYS_PARAM_H */
9808 # define getpagesize() 8192 /* punt totally */
9809 # endif /* no HAVE_SYS_PARAM_H */
9810 # endif /* no _SC_PAGESIZE */
9812 #endif /* no HAVE_GETPAGESIZE */
9815 main ()
9817 char *data, *data2, *data3;
9818 const char *cdata2;
9819 int i, pagesize;
9820 int fd, fd2;
9822 pagesize = getpagesize ();
9824 /* First, make a file with some known garbage in it. */
9825 data = (char *) malloc (pagesize);
9826 if (!data)
9827 return 1;
9828 for (i = 0; i < pagesize; ++i)
9829 *(data + i) = rand ();
9830 umask (0);
9831 fd = creat ("conftest.mmap", 0600);
9832 if (fd < 0)
9833 return 2;
9834 if (write (fd, data, pagesize) != pagesize)
9835 return 3;
9836 close (fd);
9838 /* Next, check that the tail of a page is zero-filled. File must have
9839 non-zero length, otherwise we risk SIGBUS for entire page. */
9840 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9841 if (fd2 < 0)
9842 return 4;
9843 cdata2 = "";
9844 if (write (fd2, cdata2, 1) != 1)
9845 return 5;
9846 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9847 if (data2 == MAP_FAILED)
9848 return 6;
9849 for (i = 0; i < pagesize; ++i)
9850 if (*(data2 + i))
9851 return 7;
9852 close (fd2);
9853 if (munmap (data2, pagesize))
9854 return 8;
9856 /* Next, try to mmap the file at a fixed address which already has
9857 something else allocated at it. If we can, also make sure that
9858 we see the same garbage. */
9859 fd = open ("conftest.mmap", O_RDWR);
9860 if (fd < 0)
9861 return 9;
9862 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9863 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9864 return 10;
9865 for (i = 0; i < pagesize; ++i)
9866 if (*(data + i) != *(data2 + i))
9867 return 11;
9869 /* Finally, make sure that changes to the mapped area do not
9870 percolate back to the file as seen by read(). (This is a bug on
9871 some variants of i386 svr4.0.) */
9872 for (i = 0; i < pagesize; ++i)
9873 *(data2 + i) = *(data2 + i) + 1;
9874 data3 = (char *) malloc (pagesize);
9875 if (!data3)
9876 return 12;
9877 if (read (fd, data3, pagesize) != pagesize)
9878 return 13;
9879 for (i = 0; i < pagesize; ++i)
9880 if (*(data + i) != *(data3 + i))
9881 return 14;
9882 close (fd);
9883 return 0;
9885 _ACEOF
9886 if ac_fn_c_try_run "$LINENO"; then :
9887 ac_cv_func_mmap_fixed_mapped=yes
9888 else
9889 ac_cv_func_mmap_fixed_mapped=no
9891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9892 conftest.$ac_objext conftest.beam conftest.$ac_ext
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9897 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9898 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9900 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9903 rm -f conftest.mmap conftest.txt
9905 if test $use_mmap_for_buffers = yes; then
9907 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9909 REL_ALLOC=no
9912 LIBS="$LIBS_SYSTEM $LIBS"
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9915 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9916 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 ac_check_lib_save_LIBS=$LIBS
9920 LIBS="-ldnet $LIBS"
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9924 /* Override any GCC internal prototype to avoid an error.
9925 Use char because int might match the return type of a GCC
9926 builtin and then its argument prototype would still apply. */
9927 #ifdef __cplusplus
9928 extern "C"
9929 #endif
9930 char dnet_ntoa ();
9932 main ()
9934 return dnet_ntoa ();
9936 return 0;
9938 _ACEOF
9939 if ac_fn_c_try_link "$LINENO"; then :
9940 ac_cv_lib_dnet_dnet_ntoa=yes
9941 else
9942 ac_cv_lib_dnet_dnet_ntoa=no
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9949 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9950 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9951 cat >>confdefs.h <<_ACEOF
9952 #define HAVE_LIBDNET 1
9953 _ACEOF
9955 LIBS="-ldnet $LIBS"
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9961 $as_echo_n "checking for main in -lXbsd... " >&6; }
9962 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
9964 else
9965 ac_check_lib_save_LIBS=$LIBS
9966 LIBS="-lXbsd $LIBS"
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9972 main ()
9974 return main ();
9976 return 0;
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980 ac_cv_lib_Xbsd_main=yes
9981 else
9982 ac_cv_lib_Xbsd_main=no
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9989 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9990 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9991 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9995 LIB_PTHREAD=
9999 if test "$ac_cv_header_pthread_h"; then
10000 if test "$GMALLOC_OBJ" = gmalloc.o; then
10001 emacs_pthread_function=pthread_atfork
10002 else
10003 emacs_pthread_function=pthread_self
10005 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
10007 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
10008 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
10009 $as_echo_n "(cached) " >&6
10010 else
10011 ac_check_lib_save_LIBS=$LIBS
10012 LIBS="-lpthread $LIBS"
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10016 /* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
10019 #ifdef __cplusplus
10020 extern "C"
10021 #endif
10022 char $emacs_pthread_function ();
10024 main ()
10026 return $emacs_pthread_function ();
10028 return 0;
10030 _ACEOF
10031 if ac_fn_c_try_link "$LINENO"; then :
10032 eval "$as_ac_Lib=yes"
10033 else
10034 eval "$as_ac_Lib=no"
10036 rm -f core conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext conftest.$ac_ext
10038 LIBS=$ac_check_lib_save_LIBS
10040 eval ac_res=\$$as_ac_Lib
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10042 $as_echo "$ac_res" >&6; }
10043 eval as_val=\$$as_ac_Lib
10044 if test "x$as_val" = x""yes; then :
10045 HAVE_PTHREAD=yes
10049 if test "$HAVE_PTHREAD" = yes; then
10050 case "${canonical}" in
10051 *-hpux*) ;;
10052 *) LIB_PTHREAD="-lpthread"
10053 LIBS="$LIB_PTHREAD $LIBS" ;;
10054 esac
10056 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10062 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10063 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10066 ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-lpthreads $LIBS"
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char cma_open ();
10079 main ()
10081 return cma_open ();
10083 return 0;
10085 _ACEOF
10086 if ac_fn_c_try_link "$LINENO"; then :
10087 ac_cv_lib_pthreads_cma_open=yes
10088 else
10089 ac_cv_lib_pthreads_cma_open=no
10091 rm -f core conftest.err conftest.$ac_objext \
10092 conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10096 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10097 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10098 cat >>confdefs.h <<_ACEOF
10099 #define HAVE_LIBPTHREADS 1
10100 _ACEOF
10102 LIBS="-lpthreads $LIBS"
10107 ## Note: when using cpp in s/aix4.2.h, this definition depended on
10108 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
10109 ## the system file was sourced. Hence the value of LIBS_SYSTEM
10110 ## added to LIBS in configure would never contain the pthreads part,
10111 ## but the value used in Makefiles might. FIXME?
10113 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
10114 ## be harmless on older versions of X where it happens to exist.
10115 test "$opsys" = "aix4-2" && \
10116 test $ac_cv_lib_pthreads_cma_open = yes && \
10117 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
10120 case ${host_os} in
10121 aix*)
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10123 $as_echo_n "checking for -bbigtoc option... " >&6; }
10124 if test "${gdb_cv_bigtoc+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
10126 else
10128 case $GCC in
10129 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10130 *) gdb_cv_bigtoc=-bbigtoc ;;
10131 esac
10133 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h. */
10138 main ()
10140 int i;
10142 return 0;
10144 _ACEOF
10145 if ac_fn_c_try_link "$LINENO"; then :
10147 else
10148 gdb_cv_bigtoc=
10150 rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10155 $as_echo "$gdb_cv_bigtoc" >&6; }
10157 esac
10159 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10160 # used for the tests that follow. We set them back to REAL_CFLAGS and
10161 # REAL_CPPFLAGS later on.
10163 REAL_CFLAGS="$CFLAGS"
10164 REAL_CPPFLAGS="$CPPFLAGS"
10166 if test "${HAVE_X11}" = "yes"; then
10167 DEFS="$C_SWITCH_X_SITE $DEFS"
10168 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10169 LIBS="-lX11 $LIBS"
10170 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10171 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10173 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10174 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
10175 # but it's more convenient here to set LD_RUN_PATH since this
10176 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
10177 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10178 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10179 export LD_RUN_PATH
10182 if test "${opsys}" = "gnu-linux"; then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10184 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10189 main ()
10191 XOpenDisplay ("foo");
10193 return 0;
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197 xgnu_linux_first_failure=no
10198 else
10199 xgnu_linux_first_failure=yes
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 if test "${xgnu_linux_first_failure}" = "yes"; then
10204 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10205 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10206 OLD_CPPFLAGS="$CPPFLAGS"
10207 OLD_LIBS="$LIBS"
10208 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10209 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10210 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10211 LIBS="$LIBS -b i486-linuxaout"
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10216 main ()
10218 XOpenDisplay ("foo");
10220 return 0;
10222 _ACEOF
10223 if ac_fn_c_try_link "$LINENO"; then :
10224 xgnu_linux_second_failure=no
10225 else
10226 xgnu_linux_second_failure=yes
10228 rm -f core conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 if test "${xgnu_linux_second_failure}" = "yes"; then
10231 # If we get the same failure with -b, there is no use adding -b.
10232 # So take it out. This plays safe.
10233 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10234 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10235 CPPFLAGS="$OLD_CPPFLAGS"
10236 LIBS="$OLD_LIBS"
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10239 else
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10241 $as_echo "yes" >&6; }
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; }
10249 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10250 # header files included from there.
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10252 $as_echo_n "checking for Xkb... " >&6; }
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10255 #include <X11/Xlib.h>
10256 #include <X11/XKBlib.h>
10258 main ()
10260 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10262 return 0;
10264 _ACEOF
10265 if ac_fn_c_try_link "$LINENO"; then :
10266 emacs_xkb=yes
10267 else
10268 emacs_xkb=no
10270 rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10273 $as_echo "$emacs_xkb" >&6; }
10274 if test $emacs_xkb = yes; then
10276 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10280 for ac_func in XrmSetDatabase XScreenResourceString \
10281 XScreenNumberOfScreen
10282 do :
10283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10285 eval as_val=\$$as_ac_var
10286 if test "x$as_val" = x""yes; then :
10287 cat >>confdefs.h <<_ACEOF
10288 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10289 _ACEOF
10292 done
10296 if test "${window_system}" = "x11"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10298 $as_echo_n "checking X11 version 6... " >&6; }
10299 if test "${emacs_cv_x11_version_6+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #include <X11/Xlib.h>
10306 main ()
10308 #if XlibSpecificationRelease < 6
10309 fail;
10310 #endif
10313 return 0;
10315 _ACEOF
10316 if ac_fn_c_try_link "$LINENO"; then :
10317 emacs_cv_x11_version_6=yes
10318 else
10319 emacs_cv_x11_version_6=no
10321 rm -f core conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10325 if test $emacs_cv_x11_version_6 = yes; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10327 $as_echo "6 or newer" >&6; }
10329 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10332 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10334 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10335 ## XIM support.
10336 case "$opsys" in
10337 sol2-*) : ;;
10339 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10342 esac
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10345 $as_echo "before 6" >&6; }
10350 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10351 HAVE_RSVG=no
10352 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10353 if test "${with_rsvg}" != "no"; then
10354 RSVG_REQUIRED=2.11.0
10355 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10358 succeeded=no
10360 if test "$PKG_CONFIG" = "no" ; then
10362 else
10363 PKG_CONFIG_MIN_VERSION=0.9.0
10364 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10366 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10368 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
10369 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
10370 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
10371 edit_cflags="
10372 s,///*,/,g
10373 s/^/ /
10374 s/ -I/ $isystem/g
10375 s/^ //
10377 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
10378 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
10380 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
10381 succeeded=yes
10382 else
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384 $as_echo "no" >&6; }
10385 RSVG_CFLAGS=""
10386 RSVG_LIBS=""
10387 ## If we have a custom action on failure, don't print errors, but
10388 ## do set a variable so people can do so. Do it in a subshell
10389 ## to capture any diagnostics in invoking pkg-config.
10390 RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1`
10396 else
10397 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10398 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10402 if test $succeeded = yes; then
10403 HAVE_RSVG=yes
10404 else
10411 if test $HAVE_RSVG = yes; then
10413 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10415 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10416 LIBS="$RSVG_LIBS $LIBS"
10421 HAVE_IMAGEMAGICK=no
10422 if test "${HAVE_X11}" = "yes"; then
10423 if test "${with_imagemagick}" != "no"; then
10424 ## 6.2.8 is the earliest version known to work, but earlier versions
10425 ## might work - let us know if you find one.
10426 ## 6.0.7 does not work. See bug#7955.
10427 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10429 succeeded=no
10431 if test "$PKG_CONFIG" = "no" ; then
10433 else
10434 PKG_CONFIG_MIN_VERSION=0.9.0
10435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10437 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10439 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
10440 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
10441 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
10442 edit_cflags="
10443 s,///*,/,g
10444 s/^/ /
10445 s/ -I/ $isystem/g
10446 s/^ //
10448 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
10449 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
10451 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
10452 succeeded=yes
10453 else
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10456 IMAGEMAGICK_CFLAGS=""
10457 IMAGEMAGICK_LIBS=""
10458 ## If we have a custom action on failure, don't print errors, but
10459 ## do set a variable so people can do so. Do it in a subshell
10460 ## to capture any diagnostics in invoking pkg-config.
10461 IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1`
10467 else
10468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10473 if test $succeeded = yes; then
10474 HAVE_IMAGEMAGICK=yes
10475 else
10482 if test $HAVE_IMAGEMAGICK = yes; then
10484 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10486 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10487 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10488 for ac_func in MagickExportImagePixels MagickMergeImageLayers
10489 do :
10490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10491 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10492 eval as_val=\$$as_ac_var
10493 if test "x$as_val" = x""yes; then :
10494 cat >>confdefs.h <<_ACEOF
10495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10496 _ACEOF
10499 done
10506 HAVE_GTK=no
10507 GTK_OBJ=
10508 check_gtk2=no
10509 gtk3_pkg_errors=
10510 if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10511 GLIB_REQUIRED=2.28
10512 GTK_REQUIRED=3.0
10513 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10516 succeeded=no
10518 if test "$PKG_CONFIG" = "no" ; then
10519 pkg_check_gtk=no
10520 else
10521 PKG_CONFIG_MIN_VERSION=0.9.0
10522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10524 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10526 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10527 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10528 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10529 edit_cflags="
10530 s,///*,/,g
10531 s/^/ /
10532 s/ -I/ $isystem/g
10533 s/^ //
10535 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10536 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10538 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10539 succeeded=yes
10540 else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542 $as_echo "no" >&6; }
10543 GTK_CFLAGS=""
10544 GTK_LIBS=""
10545 ## If we have a custom action on failure, don't print errors, but
10546 ## do set a variable so people can do so. Do it in a subshell
10547 ## to capture any diagnostics in invoking pkg-config.
10548 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10554 else
10555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10560 if test $succeeded = yes; then
10561 pkg_check_gtk=yes
10562 else
10563 pkg_check_gtk=no
10566 if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then
10567 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10569 if test "$pkg_check_gtk" = "yes"; then
10571 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10573 GTK_OBJ=emacsgtkfixed.o
10574 term_header=gtkutil.h
10575 USE_GTK_TOOLKIT="GTK3"
10576 else
10577 check_gtk2=yes
10578 gtk3_pkg_errors="$GTK_PKG_ERRORS "
10582 if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then
10583 GLIB_REQUIRED=2.10
10584 GTK_REQUIRED=2.10
10585 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10588 succeeded=no
10590 if test "$PKG_CONFIG" = "no" ; then
10591 pkg_check_gtk=no
10592 else
10593 PKG_CONFIG_MIN_VERSION=0.9.0
10594 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10596 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10598 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
10599 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
10600 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
10601 edit_cflags="
10602 s,///*,/,g
10603 s/^/ /
10604 s/ -I/ $isystem/g
10605 s/^ //
10607 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
10608 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
10610 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
10611 succeeded=yes
10612 else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }
10615 GTK_CFLAGS=""
10616 GTK_LIBS=""
10617 ## If we have a custom action on failure, don't print errors, but
10618 ## do set a variable so people can do so. Do it in a subshell
10619 ## to capture any diagnostics in invoking pkg-config.
10620 GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1`
10626 else
10627 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10628 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10632 if test $succeeded = yes; then
10633 pkg_check_gtk=yes
10634 else
10635 pkg_check_gtk=no
10638 if test "$pkg_check_gtk" = "no" &&
10639 { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; }
10640 then
10641 as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5
10643 test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2"
10646 if test x"$pkg_check_gtk" = xyes; then
10650 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10651 CFLAGS="$CFLAGS $GTK_CFLAGS"
10652 LIBS="$GTK_LIBS $LIBS"
10653 GTK_COMPILES=no
10654 for ac_func in gtk_main
10655 do :
10656 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10657 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10658 cat >>confdefs.h <<_ACEOF
10659 #define HAVE_GTK_MAIN 1
10660 _ACEOF
10661 GTK_COMPILES=yes
10663 done
10665 if test "${GTK_COMPILES}" != "yes"; then
10666 if test "$USE_X_TOOLKIT" != "maybe"; then
10667 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10669 else
10670 HAVE_GTK=yes
10672 $as_echo "#define USE_GTK 1" >>confdefs.h
10674 GTK_OBJ="gtkutil.o $GTK_OBJ"
10675 USE_X_TOOLKIT=none
10676 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10678 else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10680 closing open displays. This is no problem if you just use
10681 one display, but if you use more than one and close one of them
10682 Emacs may crash." >&5
10683 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10684 closing open displays. This is no problem if you just use
10685 one display, but if you use more than one and close one of them
10686 Emacs may crash." >&2;}
10687 sleep 3
10695 if test "${HAVE_GTK}" = "yes"; then
10697 if test "$with_toolkit_scroll_bars" != no; then
10698 with_toolkit_scroll_bars=yes
10701 HAVE_GTK_FILE_SELECTION=no
10702 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10703 #include <gtk/gtk.h>
10705 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10706 HAVE_GTK_FILE_SELECTION=yes
10707 else
10708 HAVE_GTK_FILE_SELECTION=no
10711 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10712 for ac_func in gtk_file_selection_new
10713 do :
10714 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10715 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_GTK_FILE_SELECTION_NEW 1
10718 _ACEOF
10721 done
10726 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10727 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10728 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10729 gtk_orientable_set_orientation \
10730 gtk_window_set_has_resize_grip
10731 do :
10732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10734 eval as_val=\$$as_ac_var
10735 if test "x$as_val" = x""yes; then :
10736 cat >>confdefs.h <<_ACEOF
10737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10738 _ACEOF
10741 done
10744 term_header=gtkutil.h
10747 HAVE_DBUS=no
10748 DBUS_OBJ=
10749 if test "${with_dbus}" = "yes"; then
10751 succeeded=no
10753 if test "$PKG_CONFIG" = "no" ; then
10754 HAVE_DBUS=no
10755 else
10756 PKG_CONFIG_MIN_VERSION=0.9.0
10757 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10759 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10761 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
10762 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
10763 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
10764 edit_cflags="
10765 s,///*,/,g
10766 s/^/ /
10767 s/ -I/ $isystem/g
10768 s/^ //
10770 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
10771 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
10773 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
10774 succeeded=yes
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 DBUS_CFLAGS=""
10779 DBUS_LIBS=""
10780 ## If we have a custom action on failure, don't print errors, but
10781 ## do set a variable so people can do so. Do it in a subshell
10782 ## to capture any diagnostics in invoking pkg-config.
10783 DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1`
10789 else
10790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10795 if test $succeeded = yes; then
10796 HAVE_DBUS=yes
10797 else
10798 HAVE_DBUS=no
10801 if test "$HAVE_DBUS" = yes; then
10802 LIBS="$LIBS $DBUS_LIBS"
10804 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10806 for ac_func in dbus_watch_get_unix_fd \
10807 dbus_type_is_valid \
10808 dbus_validate_bus_name \
10809 dbus_validate_path \
10810 dbus_validate_interface \
10811 dbus_validate_member
10812 do :
10813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10815 eval as_val=\$$as_ac_var
10816 if test "x$as_val" = x""yes; then :
10817 cat >>confdefs.h <<_ACEOF
10818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10819 _ACEOF
10822 done
10824 DBUS_OBJ=dbusbind.o
10829 HAVE_GSETTINGS=no
10830 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
10832 succeeded=no
10834 if test "$PKG_CONFIG" = "no" ; then
10835 HAVE_GSETTINGS=no
10836 else
10837 PKG_CONFIG_MIN_VERSION=0.9.0
10838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
10840 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
10842 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
10843 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
10844 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
10845 edit_cflags="
10846 s,///*,/,g
10847 s/^/ /
10848 s/ -I/ $isystem/g
10849 s/^ //
10851 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
10852 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
10854 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
10855 succeeded=yes
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10859 GSETTINGS_CFLAGS=""
10860 GSETTINGS_LIBS=""
10861 ## If we have a custom action on failure, don't print errors, but
10862 ## do set a variable so people can do so. Do it in a subshell
10863 ## to capture any diagnostics in invoking pkg-config.
10864 GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1`
10870 else
10871 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10872 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10876 if test $succeeded = yes; then
10877 HAVE_GSETTINGS=yes
10878 else
10879 HAVE_GSETTINGS=no
10882 if test "$HAVE_GSETTINGS" = "yes"; then
10884 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
10886 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
10887 SETTINGS_LIBS="$GSETTINGS_LIBS"
10891 HAVE_GCONF=no
10892 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10894 succeeded=no
10896 if test "$PKG_CONFIG" = "no" ; then
10897 HAVE_GCONF=no
10898 else
10899 PKG_CONFIG_MIN_VERSION=0.9.0
10900 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10902 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10904 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
10905 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
10906 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
10907 edit_cflags="
10908 s,///*,/,g
10909 s/^/ /
10910 s/ -I/ $isystem/g
10911 s/^ //
10913 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
10914 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
10916 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
10917 succeeded=yes
10918 else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920 $as_echo "no" >&6; }
10921 GCONF_CFLAGS=""
10922 GCONF_LIBS=""
10923 ## If we have a custom action on failure, don't print errors, but
10924 ## do set a variable so people can do so. Do it in a subshell
10925 ## to capture any diagnostics in invoking pkg-config.
10926 GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1`
10932 else
10933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10938 if test $succeeded = yes; then
10939 HAVE_GCONF=yes
10940 else
10941 HAVE_GCONF=no
10944 if test "$HAVE_GCONF" = yes; then
10946 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10948 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
10949 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
10953 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
10955 succeeded=no
10957 if test "$PKG_CONFIG" = "no" ; then
10958 HAVE_GOBJECT=no
10959 else
10960 PKG_CONFIG_MIN_VERSION=0.9.0
10961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5
10963 $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; }
10965 if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 &&
10966 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` &&
10967 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then
10968 edit_cflags="
10969 s,///*,/,g
10970 s/^/ /
10971 s/ -I/ $isystem/g
10972 s/^ //
10974 GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"`
10975 GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'`
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5
10977 $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; }
10978 succeeded=yes
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982 GOBJECT_CFLAGS=""
10983 GOBJECT_LIBS=""
10984 ## If we have a custom action on failure, don't print errors, but
10985 ## do set a variable so people can do so. Do it in a subshell
10986 ## to capture any diagnostics in invoking pkg-config.
10987 GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1`
10993 else
10994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10999 if test $succeeded = yes; then
11000 HAVE_GOBJECT=yes
11001 else
11002 HAVE_GOBJECT=no
11005 if test "$HAVE_GOBJECT" = "yes"; then
11006 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS"
11007 SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS"
11009 SAVE_CFLAGS="$CFLAGS"
11010 SAVE_LIBS="$LIBS"
11011 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
11012 LIBS="$SETTINGS_LIBS $LIBS"
11013 for ac_func in g_type_init
11014 do :
11015 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11016 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11017 cat >>confdefs.h <<_ACEOF
11018 #define HAVE_G_TYPE_INIT 1
11019 _ACEOF
11022 done
11024 CFLAGS="$SAVE_CFLAGS"
11025 LIBS="$SAVE_LIBS"
11031 HAVE_LIBSELINUX=no
11032 LIBSELINUX_LIBS=
11033 if test "${with_selinux}" = "yes"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11035 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11036 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 ac_check_lib_save_LIBS=$LIBS
11040 LIBS="-lselinux $LIBS"
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 char lgetfilecon ();
11052 main ()
11054 return lgetfilecon ();
11056 return 0;
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"; then :
11060 ac_cv_lib_selinux_lgetfilecon=yes
11061 else
11062 ac_cv_lib_selinux_lgetfilecon=no
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 LIBS=$ac_check_lib_save_LIBS
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11069 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11070 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11071 HAVE_LIBSELINUX=yes
11072 else
11073 HAVE_LIBSELINUX=no
11076 if test "$HAVE_LIBSELINUX" = yes; then
11078 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11080 LIBSELINUX_LIBS=-lselinux
11085 HAVE_GNUTLS=no
11086 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11087 if test "${with_gnutls}" = "yes" ; then
11089 succeeded=no
11091 if test "$PKG_CONFIG" = "no" ; then
11092 HAVE_GNUTLS=no
11093 else
11094 PKG_CONFIG_MIN_VERSION=0.9.0
11095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
11097 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
11099 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
11100 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
11101 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
11102 edit_cflags="
11103 s,///*,/,g
11104 s/^/ /
11105 s/ -I/ $isystem/g
11106 s/^ //
11108 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
11109 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
11111 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
11112 succeeded=yes
11113 else
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; }
11116 LIBGNUTLS_CFLAGS=""
11117 LIBGNUTLS_LIBS=""
11118 ## If we have a custom action on failure, don't print errors, but
11119 ## do set a variable so people can do so. Do it in a subshell
11120 ## to capture any diagnostics in invoking pkg-config.
11121 LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1`
11127 else
11128 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11129 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11133 if test $succeeded = yes; then
11134 HAVE_GNUTLS=yes
11135 else
11136 HAVE_GNUTLS=no
11139 if test "${HAVE_GNUTLS}" = "yes"; then
11141 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11145 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11146 LIBS="$LIBGNUTLS_LIBS $LIBS"
11147 for ac_func in gnutls_certificate_set_verify_function
11148 do :
11149 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11150 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11151 cat >>confdefs.h <<_ACEOF
11152 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11153 _ACEOF
11154 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11156 done
11159 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11161 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11169 HAVE_XAW3D=no
11170 LUCID_LIBW=
11171 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11172 if test "$with_xaw3d" != no; then
11173 if test "${emacs_cv_xaw3d+set}" = set; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11179 #include <X11/Intrinsic.h>
11180 #include <X11/Xaw3d/Simple.h>
11182 main ()
11186 return 0;
11188 _ACEOF
11189 if ac_fn_c_try_link "$LINENO"; then :
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11191 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11192 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-lXaw3d $LIBS"
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char XawScrollbarSetThumb ();
11208 main ()
11210 return XawScrollbarSetThumb ();
11212 return 0;
11214 _ACEOF
11215 if ac_fn_c_try_link "$LINENO"; then :
11216 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11217 else
11218 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11220 rm -f core conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11222 LIBS=$ac_check_lib_save_LIBS
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11225 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11226 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11227 emacs_cv_xaw3d=yes
11228 else
11229 emacs_cv_xaw3d=no
11232 else
11233 emacs_cv_xaw3d=no
11235 rm -f core conftest.err conftest.$ac_objext \
11236 conftest$ac_exeext conftest.$ac_ext
11239 else
11240 emacs_cv_xaw3d=no
11242 if test $emacs_cv_xaw3d = yes; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11244 $as_echo_n "checking for xaw3d... " >&6; }
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11246 $as_echo "yes; using Lucid toolkit" >&6; }
11247 USE_X_TOOLKIT=LUCID
11248 HAVE_XAW3D=yes
11249 LUCID_LIBW=-lXaw3d
11251 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11253 else
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11255 $as_echo_n "checking for xaw3d... " >&6; }
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11259 $as_echo_n "checking for libXaw... " >&6; }
11260 if test "${emacs_cv_xaw+set}" = set; then :
11261 $as_echo_n "(cached) " >&6
11262 else
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11266 #include <X11/Intrinsic.h>
11267 #include <X11/Xaw/Simple.h>
11269 main ()
11273 return 0;
11275 _ACEOF
11276 if ac_fn_c_try_link "$LINENO"; then :
11277 emacs_cv_xaw=yes
11278 else
11279 emacs_cv_xaw=no
11281 rm -f core conftest.err conftest.$ac_objext \
11282 conftest$ac_exeext conftest.$ac_ext
11285 if test $emacs_cv_xaw = yes; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11287 $as_echo "yes; using Lucid toolkit" >&6; }
11288 USE_X_TOOLKIT=LUCID
11289 LUCID_LIBW=-lXaw
11290 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11291 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11292 else
11293 as_fn_error "No X toolkit could be found.
11294 If you are sure you want Emacs compiled without an X toolkit, pass
11295 --with-x-toolkit=no
11296 to configure. Otherwise, install the development libraries for the toolkit
11297 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11302 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11304 LIBXTR6=
11305 if test "${USE_X_TOOLKIT}" != "none"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11307 $as_echo_n "checking X11 toolkit version... " >&6; }
11308 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313 #include <X11/Intrinsic.h>
11315 main ()
11317 #if XtSpecificationRelease < 6
11318 fail;
11319 #endif
11322 return 0;
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326 emacs_cv_x11_toolkit_version_6=yes
11327 else
11328 emacs_cv_x11_toolkit_version_6=no
11330 rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11334 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11335 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11337 $as_echo "6 or newer" >&6; }
11339 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11341 LIBXTR6="-lSM -lICE"
11342 case "$opsys" in
11343 ## Use libw.a along with X11R6 Xt.
11344 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11345 esac
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11348 $as_echo "before 6" >&6; }
11351 OLDLIBS="$LIBS"
11352 if test x$HAVE_X11XTR6 = xyes; then
11353 LIBS="-lXt -lSM -lICE $LIBS"
11354 else
11355 LIBS="-lXt $LIBS"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11358 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11359 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-lXmu $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char XmuConvertStandardSelection ();
11375 main ()
11377 return XmuConvertStandardSelection ();
11379 return 0;
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11384 else
11385 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11392 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11393 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11394 cat >>confdefs.h <<_ACEOF
11395 #define HAVE_LIBXMU 1
11396 _ACEOF
11398 LIBS="-lXmu $LIBS"
11402 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11406 LIBXMU=-lXmu
11407 case $opsys in
11408 ## These systems don't supply Xmu.
11409 hpux* | aix4-2 )
11410 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11412 esac
11415 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11416 if test "${HAVE_X11}" = "yes"; then
11417 if test "${USE_X_TOOLKIT}" != "none"; then
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11419 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11420 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-lXext $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11428 /* Override any GCC internal prototype to avoid an error.
11429 Use char because int might match the return type of a GCC
11430 builtin and then its argument prototype would still apply. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char XShapeQueryExtension ();
11436 main ()
11438 return XShapeQueryExtension ();
11440 return 0;
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444 ac_cv_lib_Xext_XShapeQueryExtension=yes
11445 else
11446 ac_cv_lib_Xext_XShapeQueryExtension=no
11448 rm -f core conftest.err conftest.$ac_objext \
11449 conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11453 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11454 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11455 cat >>confdefs.h <<_ACEOF
11456 #define HAVE_LIBXEXT 1
11457 _ACEOF
11459 LIBS="-lXext $LIBS"
11466 LIBXP=
11467 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11468 # OpenMotif may be installed in such a way on some GNU/Linux systems.
11469 if test -d /usr/include/openmotif; then
11470 CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS"
11471 emacs_cv_openmotif=yes
11472 case "$canonical" in
11473 x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*)
11474 test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS"
11477 test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS"
11478 esac
11479 else
11480 emacs_cv_openmotif=no
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5
11483 $as_echo_n "checking for (Open)Motif version 2.1... " >&6; }
11484 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489 #include <Xm/Xm.h>
11491 main ()
11493 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11494 int x = 5;
11495 #else
11496 Motif version prior to 2.1.
11497 #endif
11499 return 0;
11501 _ACEOF
11502 if ac_fn_c_try_compile "$LINENO"; then :
11503 emacs_cv_motif_version_2_1=yes
11504 else
11505 emacs_cv_motif_version_2_1=no
11507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11510 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11511 if test $emacs_cv_motif_version_2_1 = yes; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11513 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11514 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11515 $as_echo_n "(cached) " >&6
11516 else
11517 ac_check_lib_save_LIBS=$LIBS
11518 LIBS="-lXp $LIBS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 /* Override any GCC internal prototype to avoid an error.
11523 Use char because int might match the return type of a GCC
11524 builtin and then its argument prototype would still apply. */
11525 #ifdef __cplusplus
11526 extern "C"
11527 #endif
11528 char XpCreateContext ();
11530 main ()
11532 return XpCreateContext ();
11534 return 0;
11536 _ACEOF
11537 if ac_fn_c_try_link "$LINENO"; then :
11538 ac_cv_lib_Xp_XpCreateContext=yes
11539 else
11540 ac_cv_lib_Xp_XpCreateContext=no
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11544 LIBS=$ac_check_lib_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11547 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11548 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11549 LIBXP=-lXp
11552 if test x$emacs_cv_openmotif = xyes; then
11553 REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS"
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11557 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11558 if test "${emacs_cv_lesstif+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 # We put this in CFLAGS temporarily to precede other -I options
11562 # that might be in CFLAGS temporarily.
11563 # We put this in CPPFLAGS where it precedes the other -I options.
11564 OLD_CPPFLAGS=$CPPFLAGS
11565 OLD_CFLAGS=$CFLAGS
11566 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11567 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11572 main ()
11574 int x = 5;
11576 return 0;
11578 _ACEOF
11579 if ac_fn_c_try_compile "$LINENO"; then :
11580 emacs_cv_lesstif=yes
11581 else
11582 emacs_cv_lesstif=no
11584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11587 $as_echo "$emacs_cv_lesstif" >&6; }
11588 if test $emacs_cv_lesstif = yes; then
11589 # Make sure this -I option remains in CPPFLAGS after it is set
11590 # back to REAL_CPPFLAGS.
11591 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11592 # have those other -I options anyway. Ultimately, having this
11593 # directory ultimately in CPPFLAGS will be enough.
11594 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11595 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11596 else
11597 CFLAGS=$OLD_CFLAGS
11598 CPPFLAGS=$OLD_CPPFLAGS
11601 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
11602 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
11604 else
11605 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
11612 USE_TOOLKIT_SCROLL_BARS=no
11613 if test "${with_toolkit_scroll_bars}" != "no"; then
11614 if test "${USE_X_TOOLKIT}" != "none"; then
11615 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11616 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11618 HAVE_XAW3D=no
11619 USE_TOOLKIT_SCROLL_BARS=yes
11620 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
11621 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11623 USE_TOOLKIT_SCROLL_BARS=yes
11625 elif test "${HAVE_GTK}" = "yes"; then
11626 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11628 USE_TOOLKIT_SCROLL_BARS=yes
11629 elif test "${HAVE_NS}" = "yes"; then
11630 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11632 USE_TOOLKIT_SCROLL_BARS=yes
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11639 #include <X11/Xlib.h>
11640 #include <X11/Xresource.h>
11642 main ()
11644 XIMProc callback;
11646 return 0;
11648 _ACEOF
11649 if ac_fn_c_try_compile "$LINENO"; then :
11650 HAVE_XIM=yes
11652 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11654 else
11655 HAVE_XIM=no
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660 if test "${with_xim}" != "no"; then
11662 $as_echo "#define USE_XIM 1" >>confdefs.h
11667 if test "${HAVE_XIM}" != "no"; then
11668 late_CFLAGS=$CFLAGS
11669 if test "$GCC" = yes; then
11670 CFLAGS="$CFLAGS --pedantic-errors"
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11675 #include <X11/Xlib.h>
11676 #include <X11/Xresource.h>
11678 main ()
11680 Display *display;
11681 XrmDatabase db;
11682 char *res_name;
11683 char *res_class;
11684 XIMProc callback;
11685 XPointer *client_data;
11686 #ifndef __GNUC__
11687 /* If we're not using GCC, it's probably not XFree86, and this is
11688 probably right, but we can't use something like --pedantic-errors. */
11689 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11690 char*, XIMProc, XPointer*);
11691 #endif
11692 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11693 client_data);
11695 return 0;
11697 _ACEOF
11698 if ac_fn_c_try_compile "$LINENO"; then :
11699 emacs_cv_arg6_star=yes
11701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11702 if test "$emacs_cv_arg6_star" = yes; then
11703 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11705 else
11706 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11709 CFLAGS=$late_CFLAGS
11712 ### Start of font-backend (under any platform) section.
11713 # (nothing here yet -- this is a placeholder)
11714 ### End of font-backend (under any platform) section.
11716 ### Start of font-backend (under X11) section.
11717 if test "${HAVE_X11}" = "yes"; then
11719 succeeded=no
11721 if test "$PKG_CONFIG" = "no" ; then
11722 HAVE_FC=no
11723 else
11724 PKG_CONFIG_MIN_VERSION=0.9.0
11725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11727 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11729 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
11730 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
11731 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
11732 edit_cflags="
11733 s,///*,/,g
11734 s/^/ /
11735 s/ -I/ $isystem/g
11736 s/^ //
11738 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
11739 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
11741 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
11742 succeeded=yes
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11746 FONTCONFIG_CFLAGS=""
11747 FONTCONFIG_LIBS=""
11748 ## If we have a custom action on failure, don't print errors, but
11749 ## do set a variable so people can do so. Do it in a subshell
11750 ## to capture any diagnostics in invoking pkg-config.
11751 FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1`
11757 else
11758 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11759 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11763 if test $succeeded = yes; then
11764 HAVE_FC=yes
11765 else
11766 HAVE_FC=no
11770 ## Use -lXft if available, unless `--with-xft=no'.
11771 HAVE_XFT=maybe
11772 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11773 with_xft="no";
11775 if test "x${with_xft}" != "xno"; then
11778 succeeded=no
11780 if test "$PKG_CONFIG" = "no" ; then
11781 HAVE_XFT=no
11782 else
11783 PKG_CONFIG_MIN_VERSION=0.9.0
11784 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11786 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11788 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
11789 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
11790 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
11791 edit_cflags="
11792 s,///*,/,g
11793 s/^/ /
11794 s/ -I/ $isystem/g
11795 s/^ //
11797 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
11798 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
11800 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
11801 succeeded=yes
11802 else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11805 XFT_CFLAGS=""
11806 XFT_LIBS=""
11807 ## If we have a custom action on failure, don't print errors, but
11808 ## do set a variable so people can do so. Do it in a subshell
11809 ## to capture any diagnostics in invoking pkg-config.
11810 XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1`
11816 else
11817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11822 if test $succeeded = yes; then
11824 else
11825 HAVE_XFT=no
11828 ## Because xftfont.c uses XRenderQueryExtension, we also
11829 ## need to link to -lXrender.
11830 HAVE_XRENDER=no
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11832 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11833 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 ac_check_lib_save_LIBS=$LIBS
11837 LIBS="-lXrender $LIBS"
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839 /* end confdefs.h. */
11841 /* Override any GCC internal prototype to avoid an error.
11842 Use char because int might match the return type of a GCC
11843 builtin and then its argument prototype would still apply. */
11844 #ifdef __cplusplus
11845 extern "C"
11846 #endif
11847 char XRenderQueryExtension ();
11849 main ()
11851 return XRenderQueryExtension ();
11853 return 0;
11855 _ACEOF
11856 if ac_fn_c_try_link "$LINENO"; then :
11857 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11858 else
11859 ac_cv_lib_Xrender_XRenderQueryExtension=no
11861 rm -f core conftest.err conftest.$ac_objext \
11862 conftest$ac_exeext conftest.$ac_ext
11863 LIBS=$ac_check_lib_save_LIBS
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11866 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11867 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11868 HAVE_XRENDER=yes
11871 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11872 OLD_CPPFLAGS="$CPPFLAGS"
11873 OLD_CFLAGS="$CFLAGS"
11874 OLD_LIBS="$LIBS"
11875 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11876 CFLAGS="$CFLAGS $XFT_CFLAGS"
11877 XFT_LIBS="-lXrender $XFT_LIBS"
11878 LIBS="$XFT_LIBS $LIBS"
11879 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11880 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11882 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11883 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
11885 else
11886 ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-lXft $XFT_LIBS $LIBS"
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11894 #ifdef __cplusplus
11895 extern "C"
11896 #endif
11897 char XftFontOpen ();
11899 main ()
11901 return XftFontOpen ();
11903 return 0;
11905 _ACEOF
11906 if ac_fn_c_try_link "$LINENO"; then :
11907 ac_cv_lib_Xft_XftFontOpen=yes
11908 else
11909 ac_cv_lib_Xft_XftFontOpen=no
11911 rm -f core conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
11913 LIBS=$ac_check_lib_save_LIBS
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11916 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11917 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11918 HAVE_XFT=yes
11925 if test "${HAVE_XFT}" = "yes"; then
11927 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11930 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11931 else
11932 CPPFLAGS="$OLD_CPPFLAGS"
11933 CFLAGS="$OLD_CFLAGS"
11934 LIBS="$OLD_LIBS"
11935 fi # "${HAVE_XFT}" = "yes"
11936 fi # "$HAVE_XFT" != no
11937 fi # "x${with_xft}" != "xno"
11939 ## We used to allow building with FreeType and without Xft.
11940 ## However, the ftx font backend driver is not in good shape.
11941 if test "$HAVE_XFT" != "yes"; then
11942 HAVE_XFT=no
11943 HAVE_FREETYPE=no
11944 else
11946 succeeded=no
11948 if test "$PKG_CONFIG" = "no" ; then
11949 HAVE_FREETYPE=no
11950 else
11951 PKG_CONFIG_MIN_VERSION=0.9.0
11952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11954 $as_echo_n "checking for freetype2... " >&6; }
11956 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
11957 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
11958 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
11959 edit_cflags="
11960 s,///*,/,g
11961 s/^/ /
11962 s/ -I/ $isystem/g
11963 s/^ //
11965 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
11966 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
11968 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
11969 succeeded=yes
11970 else
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972 $as_echo "no" >&6; }
11973 FREETYPE_CFLAGS=""
11974 FREETYPE_LIBS=""
11975 ## If we have a custom action on failure, don't print errors, but
11976 ## do set a variable so people can do so. Do it in a subshell
11977 ## to capture any diagnostics in invoking pkg-config.
11978 FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1`
11984 else
11985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11990 if test $succeeded = yes; then
11991 HAVE_FREETYPE=yes
11992 else
11993 HAVE_FREETYPE=no
11997 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12000 HAVE_LIBOTF=no
12001 if test "${HAVE_FREETYPE}" = "yes"; then
12003 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12005 if test "${with_libotf}" != "no"; then
12007 succeeded=no
12009 if test "$PKG_CONFIG" = "no" ; then
12010 HAVE_LIBOTF=no
12011 else
12012 PKG_CONFIG_MIN_VERSION=0.9.0
12013 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12015 $as_echo_n "checking for libotf... " >&6; }
12017 if $PKG_CONFIG --exists "libotf" 2>&5 &&
12018 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
12019 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
12020 edit_cflags="
12021 s,///*,/,g
12022 s/^/ /
12023 s/ -I/ $isystem/g
12024 s/^ //
12026 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
12027 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
12029 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
12030 succeeded=yes
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034 LIBOTF_CFLAGS=""
12035 LIBOTF_LIBS=""
12036 ## If we have a custom action on failure, don't print errors, but
12037 ## do set a variable so people can do so. Do it in a subshell
12038 ## to capture any diagnostics in invoking pkg-config.
12039 LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1`
12045 else
12046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12051 if test $succeeded = yes; then
12052 HAVE_LIBOTF=yes
12053 else
12054 HAVE_LIBOTF=no
12057 if test "$HAVE_LIBOTF" = "yes"; then
12059 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12062 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12063 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 ac_check_lib_save_LIBS=$LIBS
12067 LIBS="-lotf $LIBS"
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 char OTF_get_variation_glyphs ();
12079 main ()
12081 return OTF_get_variation_glyphs ();
12083 return 0;
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12088 else
12089 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12093 LIBS=$ac_check_lib_save_LIBS
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12096 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12097 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12098 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12099 else
12100 HAVE_OTF_GET_VARIATION_GLYPHS=no
12103 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12105 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12112 HAVE_M17N_FLT=no
12113 if test "${HAVE_LIBOTF}" = yes; then
12114 if test "${with_m17n_flt}" != "no"; then
12116 succeeded=no
12118 if test "$PKG_CONFIG" = "no" ; then
12119 HAVE_M17N_FLT=no
12120 else
12121 PKG_CONFIG_MIN_VERSION=0.9.0
12122 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12124 $as_echo_n "checking for m17n-flt... " >&6; }
12126 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
12127 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
12128 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
12129 edit_cflags="
12130 s,///*,/,g
12131 s/^/ /
12132 s/ -I/ $isystem/g
12133 s/^ //
12135 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
12136 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
12138 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
12139 succeeded=yes
12140 else
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12143 M17N_FLT_CFLAGS=""
12144 M17N_FLT_LIBS=""
12145 ## If we have a custom action on failure, don't print errors, but
12146 ## do set a variable so people can do so. Do it in a subshell
12147 ## to capture any diagnostics in invoking pkg-config.
12148 M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1`
12154 else
12155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12160 if test $succeeded = yes; then
12161 HAVE_M17N_FLT=yes
12162 else
12163 HAVE_M17N_FLT=no
12166 if test "$HAVE_M17N_FLT" = "yes"; then
12168 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12173 else
12174 HAVE_XFT=no
12175 HAVE_FREETYPE=no
12176 HAVE_LIBOTF=no
12177 HAVE_M17N_FLT=no
12180 ### End of font-backend (under X11) section.
12191 ### Use -lXpm if available, unless `--with-xpm=no'.
12192 HAVE_XPM=no
12193 LIBXPM=
12194 if test "${HAVE_X11}" = "yes"; then
12195 if test "${with_xpm}" != "no"; then
12196 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12197 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12199 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12200 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 ac_check_lib_save_LIBS=$LIBS
12204 LIBS="-lXpm -lX11 $LIBS"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12208 /* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12211 #ifdef __cplusplus
12212 extern "C"
12213 #endif
12214 char XpmReadFileToPixmap ();
12216 main ()
12218 return XpmReadFileToPixmap ();
12220 return 0;
12222 _ACEOF
12223 if ac_fn_c_try_link "$LINENO"; then :
12224 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12225 else
12226 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12228 rm -f core conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12233 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12234 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12235 HAVE_XPM=yes
12241 if test "${HAVE_XPM}" = "yes"; then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12243 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #include "X11/xpm.h"
12247 #ifndef XpmReturnAllocPixels
12248 no_return_alloc_pixels
12249 #endif
12251 _ACEOF
12252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12253 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12254 HAVE_XPM=no
12255 else
12256 HAVE_XPM=yes
12258 rm -f conftest*
12261 if test "${HAVE_XPM}" = "yes"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12263 $as_echo "yes" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12271 if test "${HAVE_XPM}" = "yes"; then
12273 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12275 LIBXPM=-lXpm
12280 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12281 HAVE_JPEG=no
12282 LIBJPEG=
12283 if test "${HAVE_X11}" = "yes"; then
12284 if test "${with_jpeg}" != "no"; then
12285 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12286 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12288 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12289 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 ac_check_lib_save_LIBS=$LIBS
12293 LIBS="-ljpeg $LIBS"
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12297 /* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 char jpeg_destroy_compress ();
12305 main ()
12307 return jpeg_destroy_compress ();
12309 return 0;
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"; then :
12313 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12314 else
12315 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12322 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12323 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12324 HAVE_JPEG=yes
12332 if test "${HAVE_JPEG}" = "yes"; then
12333 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 #include <jpeglib.h>
12338 version=JPEG_LIB_VERSION
12340 _ACEOF
12341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12342 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12343 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12347 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12348 HAVE_JPEG=no
12350 rm -f conftest*
12353 if test "${HAVE_JPEG}" = "yes"; then
12354 LIBJPEG=-ljpeg
12359 ### Use -lpng if available, unless `--with-png=no'.
12360 HAVE_PNG=no
12361 LIBPNG=
12362 if test "${HAVE_X11}" = "yes"; then
12363 if test "${with_png}" != "no"; then
12364 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12365 # in /usr/include/libpng.
12366 for ac_header in png.h libpng/png.h
12367 do :
12368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12369 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12370 eval as_val=\$$as_ac_Header
12371 if test "x$as_val" = x""yes; then :
12372 cat >>confdefs.h <<_ACEOF
12373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12374 _ACEOF
12375 break
12378 done
12380 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12382 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12383 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-lpng -lz -lm $LIBS"
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12394 #ifdef __cplusplus
12395 extern "C"
12396 #endif
12397 char png_get_channels ();
12399 main ()
12401 return png_get_channels ();
12403 return 0;
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 ac_cv_lib_png_png_get_channels=yes
12408 else
12409 ac_cv_lib_png_png_get_channels=no
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_lib_save_LIBS
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12416 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12417 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12418 HAVE_PNG=yes
12424 if test "${HAVE_PNG}" = "yes"; then
12426 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12428 LIBPNG="-lpng -lz -lm"
12430 ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H
12431 # include <libpng/png.h>
12432 #else
12433 # include <png.h>
12434 #endif
12437 if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then :
12439 else
12441 $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h
12449 ### Use -ltiff if available, unless `--with-tiff=no'.
12450 HAVE_TIFF=no
12451 LIBTIFF=
12452 if test "${HAVE_X11}" = "yes"; then
12453 if test "${with_tiff}" != "no"; then
12454 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12455 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12456 tifflibs="-lz -lm"
12457 # At least one tiff package requires the jpeg library.
12458 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12460 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12461 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 ac_check_lib_save_LIBS=$LIBS
12465 LIBS="-ltiff $tifflibs $LIBS"
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 char TIFFGetVersion ();
12477 main ()
12479 return TIFFGetVersion ();
12481 return 0;
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 ac_cv_lib_tiff_TIFFGetVersion=yes
12486 else
12487 ac_cv_lib_tiff_TIFFGetVersion=no
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 LIBS=$ac_check_lib_save_LIBS
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12494 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12495 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12496 HAVE_TIFF=yes
12504 if test "${HAVE_TIFF}" = "yes"; then
12506 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12508 LIBTIFF=-ltiff
12513 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12514 HAVE_GIF=no
12515 LIBGIF=
12516 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12517 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12518 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12519 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12520 # Earlier versions can crash Emacs.
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12522 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12523 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12525 else
12526 ac_check_lib_save_LIBS=$LIBS
12527 LIBS="-lgif $LIBS"
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char EGifPutExtensionLast ();
12539 main ()
12541 return EGifPutExtensionLast ();
12543 return 0;
12545 _ACEOF
12546 if ac_fn_c_try_link "$LINENO"; then :
12547 ac_cv_lib_gif_EGifPutExtensionLast=yes
12548 else
12549 ac_cv_lib_gif_EGifPutExtensionLast=no
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12553 LIBS=$ac_check_lib_save_LIBS
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12556 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12557 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12558 HAVE_GIF=yes
12559 else
12560 HAVE_GIF=maybe
12567 if test "$HAVE_GIF" = yes; then
12568 LIBGIF=-lgif
12569 elif test "$HAVE_GIF" = maybe; then
12570 # If gif_lib.h but no libgif, try libungif.
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12572 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12573 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
12575 else
12576 ac_check_lib_save_LIBS=$LIBS
12577 LIBS="-lungif $LIBS"
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584 #ifdef __cplusplus
12585 extern "C"
12586 #endif
12587 char EGifPutExtensionLast ();
12589 main ()
12591 return EGifPutExtensionLast ();
12593 return 0;
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12598 else
12599 ac_cv_lib_ungif_EGifPutExtensionLast=no
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12606 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12607 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12608 HAVE_GIF=yes
12609 else
12610 HAVE_GIF=no
12613 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12616 if test "${HAVE_GIF}" = "yes"; then
12618 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12624 if test "${HAVE_X11}" = "yes"; then
12625 MISSING=""
12626 WITH_NO=""
12627 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12628 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12629 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12630 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12631 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12632 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12633 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12634 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12635 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12636 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12638 if test "X${MISSING}" != X; then
12639 as_fn_error "The following required libraries were not found:
12640 $MISSING
12641 Maybe some development libraries/packages are missing?
12642 If you don't want to link with them give
12643 $WITH_NO
12644 as options to configure" "$LINENO" 5
12648 ### Use -lgpm if available, unless `--with-gpm=no'.
12649 HAVE_GPM=no
12650 LIBGPM=
12651 if test "${with_gpm}" != "no"; then
12652 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12653 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12655 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12656 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 ac_check_lib_save_LIBS=$LIBS
12660 LIBS="-lgpm $LIBS"
12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12664 /* Override any GCC internal prototype to avoid an error.
12665 Use char because int might match the return type of a GCC
12666 builtin and then its argument prototype would still apply. */
12667 #ifdef __cplusplus
12668 extern "C"
12669 #endif
12670 char Gpm_Open ();
12672 main ()
12674 return Gpm_Open ();
12676 return 0;
12678 _ACEOF
12679 if ac_fn_c_try_link "$LINENO"; then :
12680 ac_cv_lib_gpm_Gpm_Open=yes
12681 else
12682 ac_cv_lib_gpm_Gpm_Open=no
12684 rm -f core conftest.err conftest.$ac_objext \
12685 conftest$ac_exeext conftest.$ac_ext
12686 LIBS=$ac_check_lib_save_LIBS
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12689 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12690 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12691 HAVE_GPM=yes
12698 if test "${HAVE_GPM}" = "yes"; then
12700 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12702 LIBGPM=-lgpm
12711 GNUSTEP_CFLAGS=
12712 ### Use NeXTstep API to implement GUI.
12713 if test "${HAVE_NS}" = "yes"; then
12715 $as_echo "#define HAVE_NS 1" >>confdefs.h
12717 if test "${NS_IMPL_COCOA}" = "yes"; then
12719 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12722 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12724 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12726 # See also .m.o rule in Makefile.in */
12727 # FIXME: are all these flags really needed? Document here why. */
12728 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
12729 ## Extra CFLAGS applied to src/*.m files.
12730 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"
12732 # We also have mouse menus.
12733 HAVE_MENUS=yes
12734 OTHER_FILES=ns-app
12738 ### Use session management (-lSM -lICE) if available
12739 HAVE_X_SM=no
12740 LIBXSM=
12741 if test "${HAVE_X11}" = "yes"; then
12742 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12743 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12745 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12746 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lSM -lICE $LIBS"
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12754 /* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757 #ifdef __cplusplus
12758 extern "C"
12759 #endif
12760 char SmcOpenConnection ();
12762 main ()
12764 return SmcOpenConnection ();
12766 return 0;
12768 _ACEOF
12769 if ac_fn_c_try_link "$LINENO"; then :
12770 ac_cv_lib_SM_SmcOpenConnection=yes
12771 else
12772 ac_cv_lib_SM_SmcOpenConnection=no
12774 rm -f core conftest.err conftest.$ac_objext \
12775 conftest$ac_exeext conftest.$ac_ext
12776 LIBS=$ac_check_lib_save_LIBS
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12779 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12780 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12781 HAVE_X_SM=yes
12788 if test "${HAVE_X_SM}" = "yes"; then
12790 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12792 LIBXSM="-lSM -lICE"
12793 case "$LIBS" in
12794 *-lSM*) ;;
12795 *) LIBS="$LIBXSM $LIBS" ;;
12796 esac
12801 ### Use libxml (-lxml2) if available
12802 HAVE_LIBXML2=no
12803 if test "${with_xml2}" != "no"; then
12804 ### I'm not sure what the version number should be, so I just guessed.
12806 succeeded=no
12808 if test "$PKG_CONFIG" = "no" ; then
12809 HAVE_LIBXML2=no
12810 else
12811 PKG_CONFIG_MIN_VERSION=0.9.0
12812 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12814 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12816 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
12817 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
12818 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
12819 edit_cflags="
12820 s,///*,/,g
12821 s/^/ /
12822 s/ -I/ $isystem/g
12823 s/^ //
12825 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
12826 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
12828 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
12829 succeeded=yes
12830 else
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832 $as_echo "no" >&6; }
12833 LIBXML2_CFLAGS=""
12834 LIBXML2_LIBS=""
12835 ## If we have a custom action on failure, don't print errors, but
12836 ## do set a variable so people can do so. Do it in a subshell
12837 ## to capture any diagnostics in invoking pkg-config.
12838 LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1`
12844 else
12845 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12846 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12850 if test $succeeded = yes; then
12851 HAVE_LIBXML2=yes
12852 else
12853 HAVE_LIBXML2=no
12856 if test "${HAVE_LIBXML2}" = "yes"; then
12857 LIBS="$LIBXML2_LIBS $LIBS"
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12859 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12860 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 ac_check_lib_save_LIBS=$LIBS
12864 LIBS="-lxml2 $LIBS"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12868 /* Override any GCC internal prototype to avoid an error.
12869 Use char because int might match the return type of a GCC
12870 builtin and then its argument prototype would still apply. */
12871 #ifdef __cplusplus
12872 extern "C"
12873 #endif
12874 char htmlReadMemory ();
12876 main ()
12878 return htmlReadMemory ();
12880 return 0;
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 ac_cv_lib_xml2_htmlReadMemory=yes
12885 else
12886 ac_cv_lib_xml2_htmlReadMemory=no
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12893 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12894 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12895 HAVE_LIBXML2=yes
12896 else
12897 HAVE_LIBXML2=no
12900 if test "${HAVE_LIBXML2}" = "yes"; then
12902 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12904 else
12905 LIBXML2_LIBS=""
12906 LIBXML2_CFLAGS=""
12913 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12915 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12916 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 #include <netdb.h>
12923 main ()
12925 return h_errno;
12927 return 0;
12929 _ACEOF
12930 if ac_fn_c_try_link "$LINENO"; then :
12931 emacs_cv_netdb_declares_h_errno=yes
12932 else
12933 emacs_cv_netdb_declares_h_errno=no
12935 rm -f core conftest.err conftest.$ac_objext \
12936 conftest$ac_exeext conftest.$ac_ext
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12939 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12940 if test $emacs_cv_netdb_declares_h_errno = yes; then
12942 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12946 # sqrt and other floating-point functions such as fmod and frexp
12947 # are found in -lm on most systems.
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12949 $as_echo_n "checking for sqrt in -lm... " >&6; }
12950 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-lm $LIBS"
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12961 #ifdef __cplusplus
12962 extern "C"
12963 #endif
12964 char sqrt ();
12966 main ()
12968 return sqrt ();
12970 return 0;
12972 _ACEOF
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 ac_cv_lib_m_sqrt=yes
12975 else
12976 ac_cv_lib_m_sqrt=no
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 LIBS=$ac_check_lib_save_LIBS
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12983 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12984 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
12985 cat >>confdefs.h <<_ACEOF
12986 #define HAVE_LIBM 1
12987 _ACEOF
12989 LIBS="-lm $LIBS"
12994 # Check for mail-locking functions in a "mail" library. Probably this should
12995 # have the same check as for liblockfile below.
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12997 $as_echo_n "checking for maillock in -lmail... " >&6; }
12998 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 ac_check_lib_save_LIBS=$LIBS
13002 LIBS="-lmail $LIBS"
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13009 #ifdef __cplusplus
13010 extern "C"
13011 #endif
13012 char maillock ();
13014 main ()
13016 return maillock ();
13018 return 0;
13020 _ACEOF
13021 if ac_fn_c_try_link "$LINENO"; then :
13022 ac_cv_lib_mail_maillock=yes
13023 else
13024 ac_cv_lib_mail_maillock=no
13026 rm -f core conftest.err conftest.$ac_objext \
13027 conftest$ac_exeext conftest.$ac_ext
13028 LIBS=$ac_check_lib_save_LIBS
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13031 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13032 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13033 have_mail=yes
13034 else
13035 have_mail=no
13038 if test $have_mail = yes; then
13039 LIBS_MAIL=-lmail
13040 LIBS="$LIBS_MAIL $LIBS"
13042 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13044 else
13045 LIBS_MAIL=
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13048 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13049 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 ac_check_lib_save_LIBS=$LIBS
13053 LIBS="-llockfile $LIBS"
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13057 /* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
13060 #ifdef __cplusplus
13061 extern "C"
13062 #endif
13063 char maillock ();
13065 main ()
13067 return maillock ();
13069 return 0;
13071 _ACEOF
13072 if ac_fn_c_try_link "$LINENO"; then :
13073 ac_cv_lib_lockfile_maillock=yes
13074 else
13075 ac_cv_lib_lockfile_maillock=no
13077 rm -f core conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13082 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13083 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13084 have_lockfile=yes
13085 else
13086 have_lockfile=no
13089 if test $have_lockfile = yes; then
13090 LIBS_MAIL=-llockfile
13091 LIBS="$LIBS_MAIL $LIBS"
13093 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13095 else
13096 # If we have the shared liblockfile, assume we must use it for mail
13097 # locking (e.g. Debian). If we couldn't link against liblockfile
13098 # (no liblockfile.a installed), ensure that we don't need to.
13099 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13100 set dummy liblockfile.so; ac_word=$2
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102 $as_echo_n "checking for $ac_word... " >&6; }
13103 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13105 else
13106 if test -n "$liblockfile"; then
13107 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13108 else
13109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13111 for as_dir in $as_dummy
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13117 ac_cv_prog_liblockfile="yes"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13121 done
13122 done
13123 IFS=$as_save_IFS
13125 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13128 liblockfile=$ac_cv_prog_liblockfile
13129 if test -n "$liblockfile"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13131 $as_echo "$liblockfile" >&6; }
13132 else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134 $as_echo "no" >&6; }
13138 if test $ac_cv_prog_liblockfile = yes; then
13139 as_fn_error "Shared liblockfile found but can't link against it.
13140 This probably means that movemail could lose mail.
13141 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13149 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13150 ## interlock access to the mail spool. The alternative is a lock file named
13151 ## /usr/spool/mail/$USER.lock.
13152 mail_lock=no
13153 case "$opsys" in
13154 aix4-2) mail_lock="lockf" ;;
13156 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13158 ## On GNU/Linux systems, both methods are used by various mail programs.
13159 ## I assume most people are using newer mailers that have heard of flock.
13160 ## Change this if you need to.
13161 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13162 ## configure gets the right answers, and that means *NOT* using flock.
13163 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13164 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13165 ## Debian maintainer hasn't provided a clean fix for Emacs.
13166 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13167 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13168 ## correct logic. -- fx
13169 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13170 ## liblockfile is a Free Software replacement for libmail, used on
13171 ## Debian systems and elsewhere. -rfr.
13172 gnu-*)
13173 mail_lock="flock"
13174 if test $have_mail = yes || test $have_lockfile = yes; then
13175 test $ac_cv_header_maillock_h = yes && mail_lock=no
13178 esac
13180 BLESSMAIL_TARGET=
13181 case "$mail_lock" in
13182 flock)
13183 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13186 lockf)
13187 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13190 *) BLESSMAIL_TARGET="need-blessmail" ;;
13191 esac
13195 for ac_func in gethostname \
13196 closedir getrusage get_current_dir_name \
13197 lrand48 setsid \
13198 fpathconf select euidaccess getpagesize setlocale \
13199 utimes getrlimit setrlimit setpgid getcwd shutdown getaddrinfo \
13200 __fpending strsignal setitimer \
13201 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
13202 gai_strerror mkstemp getline getdelim fsync sync \
13203 difftime posix_memalign \
13204 getpwent endpwent getgrent endgrent \
13205 touchlock \
13206 cfmakeraw cfsetspeed copysign __executable_start
13207 do :
13208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13210 eval as_val=\$$as_ac_var
13211 if test "x$as_val" = x""yes; then :
13212 cat >>confdefs.h <<_ACEOF
13213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13214 _ACEOF
13217 done
13220 if test $opsys = unixware; then
13222 $as_echo "#define BROKEN_GETWD 1" >>confdefs.h
13224 else
13225 for ac_func in getwd
13226 do :
13227 ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd"
13228 if test "x$ac_cv_func_getwd" = x""yes; then :
13229 cat >>confdefs.h <<_ACEOF
13230 #define HAVE_GETWD 1
13231 _ACEOF
13234 done
13238 ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines
13239 ## has a broken `rint' in some library versions including math library
13240 ## version number A.09.05.
13241 ## You can fix the math library by installing patch number PHSS_4630.
13242 ## But we can fix it more reliably for Emacs by just not using rint.
13243 ## We also skip HAVE_RANDOM - see comments in src/conf_post.h.
13244 case $opsys in
13245 hpux*) : ;;
13246 *) for ac_func in random rint
13247 do :
13248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13250 eval as_val=\$$as_ac_var
13251 if test "x$as_val" = x""yes; then :
13252 cat >>confdefs.h <<_ACEOF
13253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13254 _ACEOF
13257 done
13259 esac
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13262 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13263 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13270 main ()
13272 __builtin_unwind_init ();
13274 return 0;
13276 _ACEOF
13277 if ac_fn_c_try_link "$LINENO"; then :
13278 emacs_cv_func___builtin_unwind_init=yes
13279 else
13280 emacs_cv_func___builtin_unwind_init=no
13282 rm -f core conftest.err conftest.$ac_objext \
13283 conftest$ac_exeext conftest.$ac_ext
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13286 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13287 if test $emacs_cv_func___builtin_unwind_init = yes; then
13289 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13298 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13299 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 while :; do
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 #include <sys/types.h> /* for off_t */
13306 #include <stdio.h>
13308 main ()
13310 int (*fp) (FILE *, off_t, int) = fseeko;
13311 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13313 return 0;
13315 _ACEOF
13316 if ac_fn_c_try_link "$LINENO"; then :
13317 ac_cv_sys_largefile_source=no; break
13319 rm -f core conftest.err conftest.$ac_objext \
13320 conftest$ac_exeext conftest.$ac_ext
13321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h. */
13323 #define _LARGEFILE_SOURCE 1
13324 #include <sys/types.h> /* for off_t */
13325 #include <stdio.h>
13327 main ()
13329 int (*fp) (FILE *, off_t, int) = fseeko;
13330 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13332 return 0;
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336 ac_cv_sys_largefile_source=1; break
13338 rm -f core conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
13340 ac_cv_sys_largefile_source=unknown
13341 break
13342 done
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13345 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13346 case $ac_cv_sys_largefile_source in #(
13347 no | unknown) ;;
13349 cat >>confdefs.h <<_ACEOF
13350 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13351 _ACEOF
13353 esac
13354 rm -rf conftest*
13356 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13357 # in glibc 2.1.3, but that breaks too many other things.
13358 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13359 if test $ac_cv_sys_largefile_source != unknown; then
13361 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13367 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13368 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13369 $as_echo_n "(cached) " >&6
13370 else
13371 # Use it with a single arg.
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 $ac_includes_default
13376 main ()
13378 getpgrp (0);
13380 return 0;
13382 _ACEOF
13383 if ac_fn_c_try_compile "$LINENO"; then :
13384 ac_cv_func_getpgrp_void=no
13385 else
13386 ac_cv_func_getpgrp_void=yes
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13392 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13393 if test $ac_cv_func_getpgrp_void = yes; then
13395 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13400 # UNIX98 PTYs.
13401 for ac_func in grantpt
13402 do :
13403 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
13404 if test "x$ac_cv_func_grantpt" = x""yes; then :
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_GRANTPT 1
13407 _ACEOF
13410 done
13413 # PTY-related GNU extensions.
13414 for ac_func in getpt posix_openpt
13415 do :
13416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13417 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13418 eval as_val=\$$as_ac_var
13419 if test "x$as_val" = x""yes; then :
13420 cat >>confdefs.h <<_ACEOF
13421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13422 _ACEOF
13425 done
13428 # Check this now, so that we will NOT find the above functions in ncurses.
13429 # That is because we have not set up to link ncurses in lib-src.
13430 # It's better to believe a function is not available
13431 # than to expect to find it in ncurses.
13432 # Also we need tputs and friends to be able to build at all.
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
13434 $as_echo_n "checking for library containing tputs... " >&6; }
13435 # Run a test program that contains a call to tputs, a call that is
13436 # never executed. This tests whether a pre-'main' dynamic linker
13437 # works with the library. It's too much trouble to actually call
13438 # tputs in the test program, due to portability hassles. When
13439 # cross-compiling, assume the test program will run if it links.
13441 # Maybe curses should be tried earlier?
13442 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
13443 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
13444 OLIBS=$LIBS
13445 if test -z "$tputs_library"; then
13446 LIBS_TERMCAP=
13447 msg='none required'
13448 else
13449 LIBS_TERMCAP=-l$tputs_library
13450 msg=$LIBS_TERMCAP
13451 LIBS="$LIBS_TERMCAP $LIBS"
13453 if test "$cross_compiling" = yes; then :
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13457 extern void tputs (const char *, int, int (*)(int));
13458 int main (int argc, char **argv)
13460 if (argc == 10000)
13461 tputs (argv[0], 0, 0);
13462 return 0;
13465 _ACEOF
13466 if ac_fn_c_try_link "$LINENO"; then :
13468 else
13469 msg=no
13471 rm -f core conftest.err conftest.$ac_objext \
13472 conftest$ac_exeext conftest.$ac_ext
13473 else
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13477 extern void tputs (const char *, int, int (*)(int));
13478 int main (int argc, char **argv)
13480 if (argc == 10000)
13481 tputs (argv[0], 0, 0);
13482 return 0;
13485 _ACEOF
13486 if ac_fn_c_try_run "$LINENO"; then :
13488 else
13489 msg=no
13491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13492 conftest.$ac_objext conftest.beam conftest.$ac_ext
13495 LIBS=$OLIBS
13496 if test "X$msg" != Xno; then
13497 break
13499 done
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
13501 $as_echo "$msg" >&6; }
13502 if test "X$msg" = Xno; then
13503 as_fn_error "The required function \`tputs' was not found in any library.
13504 The following libraries were tried (in order):
13505 libtinfo, libncurses, libterminfo, libtermcap, libcurses
13506 Please try installing whichever of these libraries is most appropriate
13507 for your system, together with its header files.
13508 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
13511 ## Use termcap instead of terminfo?
13512 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
13513 TERMINFO=yes
13514 ## FIXME? In the cases below where we unconditionally set
13515 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
13516 ## if that was found above to have tputs.
13517 ## Should we use the gnu* logic everywhere?
13518 case "$opsys" in
13519 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13520 ## The ncurses library has been moved out of the System framework in
13521 ## Mac OS X 10.2. So if configure detects it, set the command-line
13522 ## option to use it.
13523 darwin) LIBS_TERMCAP="-lncurses" ;;
13525 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
13527 freebsd)
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13529 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13530 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 #include <osreldate.h>
13537 main ()
13539 #if __FreeBSD_version < 400000
13540 fail;
13541 #endif
13544 return 0;
13546 _ACEOF
13547 if ac_fn_c_try_link "$LINENO"; then :
13548 emacs_cv_freebsd_terminfo=yes
13549 else
13550 emacs_cv_freebsd_terminfo=no
13552 rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13558 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13560 if test $emacs_cv_freebsd_terminfo = yes; then
13561 LIBS_TERMCAP="-lncurses"
13562 else
13563 TERMINFO=no
13564 LIBS_TERMCAP="-ltermcap"
13568 netbsd)
13569 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
13570 TERMINFO=no
13571 LIBS_TERMCAP="-ltermcap"
13575 openbsd) LIBS_TERMCAP="-lncurses" ;;
13577 ## hpux: Make sure we get select from libc rather than from libcurses
13578 ## because libcurses on HPUX 10.10 has a broken version of select.
13579 ## We used to use -lc -lcurses, but this may be cleaner.
13580 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
13581 # set that way, now it uses the default). Isn't this a contradiction?
13582 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13584 esac
13586 TERMCAP_OBJ=tparam.o
13587 if test $TERMINFO = yes; then
13589 $as_echo "#define TERMINFO 1" >>confdefs.h
13591 TERMCAP_OBJ=terminfo.o
13597 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13598 # On Darwin, res_init appears not to be useful: see bug#562 and
13599 # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
13600 resolv=no
13602 if test $opsys != darwin; then
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 #include <netinet/in.h>
13607 #include <arpa/nameser.h>
13608 #include <resolv.h>
13610 main ()
13612 return res_init();
13614 return 0;
13616 _ACEOF
13617 if ac_fn_c_try_link "$LINENO"; then :
13618 have_res_init=yes
13619 else
13620 have_res_init=no
13622 rm -f core conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext conftest.$ac_ext
13624 if test "$have_res_init" = no; then
13625 OLIBS="$LIBS"
13626 LIBS="$LIBS -lresolv"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13628 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 #include <netinet/in.h>
13632 #include <arpa/nameser.h>
13633 #include <resolv.h>
13635 main ()
13637 return res_init();
13639 return 0;
13641 _ACEOF
13642 if ac_fn_c_try_link "$LINENO"; then :
13643 have_res_init=yes
13644 else
13645 have_res_init=no
13647 rm -f core conftest.err conftest.$ac_objext \
13648 conftest$ac_exeext conftest.$ac_ext
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13650 $as_echo "$have_res_init" >&6; }
13651 if test "$have_res_init" = yes ; then
13652 resolv=yes
13654 LIBS="$OLIBS"
13657 if test "$have_res_init" = yes; then
13659 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13663 # Do we need the Hesiod library to provide the support routines?
13664 LIBHESIOD=
13665 if test "$with_hesiod" != no ; then
13666 # Don't set $LIBS here -- see comments above. FIXME which comments?
13667 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13668 if test "x$ac_cv_func_res_send" = x""yes; then :
13670 else
13671 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13672 if test "x$ac_cv_func___res_send" = x""yes; then :
13674 else
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13676 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13677 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13680 ac_check_lib_save_LIBS=$LIBS
13681 LIBS="-lresolv $LIBS"
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13688 #ifdef __cplusplus
13689 extern "C"
13690 #endif
13691 char res_send ();
13693 main ()
13695 return res_send ();
13697 return 0;
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 ac_cv_lib_resolv_res_send=yes
13702 else
13703 ac_cv_lib_resolv_res_send=no
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext conftest.$ac_ext
13707 LIBS=$ac_check_lib_save_LIBS
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13710 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13711 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13712 resolv=yes
13713 else
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13715 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13716 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 ac_check_lib_save_LIBS=$LIBS
13720 LIBS="-lresolv $LIBS"
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13724 /* Override any GCC internal prototype to avoid an error.
13725 Use char because int might match the return type of a GCC
13726 builtin and then its argument prototype would still apply. */
13727 #ifdef __cplusplus
13728 extern "C"
13729 #endif
13730 char __res_send ();
13732 main ()
13734 return __res_send ();
13736 return 0;
13738 _ACEOF
13739 if ac_fn_c_try_link "$LINENO"; then :
13740 ac_cv_lib_resolv___res_send=yes
13741 else
13742 ac_cv_lib_resolv___res_send=no
13744 rm -f core conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS=$ac_check_lib_save_LIBS
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13749 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13750 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13751 resolv=yes
13760 if test "$resolv" = yes ; then
13761 RESOLVLIB=-lresolv
13762 else
13763 RESOLVLIB=
13765 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13766 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13768 else
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13770 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13771 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 ac_check_lib_save_LIBS=$LIBS
13775 LIBS="-lhesiod $RESOLVLIB $LIBS"
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13782 #ifdef __cplusplus
13783 extern "C"
13784 #endif
13785 char hes_getmailhost ();
13787 main ()
13789 return hes_getmailhost ();
13791 return 0;
13793 _ACEOF
13794 if ac_fn_c_try_link "$LINENO"; then :
13795 ac_cv_lib_hesiod_hes_getmailhost=yes
13796 else
13797 ac_cv_lib_hesiod_hes_getmailhost=no
13799 rm -f core conftest.err conftest.$ac_objext \
13800 conftest$ac_exeext conftest.$ac_ext
13801 LIBS=$ac_check_lib_save_LIBS
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13804 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13805 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13806 hesiod=yes
13807 else
13814 if test x"$hesiod" = xyes; then
13816 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13818 LIBHESIOD=-lhesiod
13823 # Do we need libresolv (due to res_init or Hesiod)?
13824 if test "$resolv" = yes && test $opsys != darwin; then
13826 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13828 LIBRESOLV=-lresolv
13829 else
13830 LIBRESOLV=
13834 # These tell us which Kerberos-related libraries to use.
13835 COM_ERRLIB=
13836 CRYPTOLIB=
13837 KRB5LIB=
13838 DESLIB=
13839 KRB4LIB=
13841 if test "${with_kerberos}" != no; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13843 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13844 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 ac_check_lib_save_LIBS=$LIBS
13848 LIBS="-lcom_err $LIBS"
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13852 /* Override any GCC internal prototype to avoid an error.
13853 Use char because int might match the return type of a GCC
13854 builtin and then its argument prototype would still apply. */
13855 #ifdef __cplusplus
13856 extern "C"
13857 #endif
13858 char com_err ();
13860 main ()
13862 return com_err ();
13864 return 0;
13866 _ACEOF
13867 if ac_fn_c_try_link "$LINENO"; then :
13868 ac_cv_lib_com_err_com_err=yes
13869 else
13870 ac_cv_lib_com_err_com_err=no
13872 rm -f core conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
13874 LIBS=$ac_check_lib_save_LIBS
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13877 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13878 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13879 have_com_err=yes
13880 else
13881 have_com_err=no
13884 if test $have_com_err = yes; then
13885 COM_ERRLIB=-lcom_err
13886 LIBS="$COM_ERRLIB $LIBS"
13888 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13892 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13893 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 ac_check_lib_save_LIBS=$LIBS
13897 LIBS="-lcrypto $LIBS"
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13901 /* Override any GCC internal prototype to avoid an error.
13902 Use char because int might match the return type of a GCC
13903 builtin and then its argument prototype would still apply. */
13904 #ifdef __cplusplus
13905 extern "C"
13906 #endif
13907 char mit_des_cbc_encrypt ();
13909 main ()
13911 return mit_des_cbc_encrypt ();
13913 return 0;
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13918 else
13919 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 LIBS=$ac_check_lib_save_LIBS
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13926 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13927 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13928 have_crypto=yes
13929 else
13930 have_crypto=no
13933 if test $have_crypto = yes; then
13934 CRYPTOLIB=-lcrypto
13935 LIBS="$CRYPTOLIB $LIBS"
13937 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13941 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13942 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13944 else
13945 ac_check_lib_save_LIBS=$LIBS
13946 LIBS="-lk5crypto $LIBS"
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13950 /* Override any GCC internal prototype to avoid an error.
13951 Use char because int might match the return type of a GCC
13952 builtin and then its argument prototype would still apply. */
13953 #ifdef __cplusplus
13954 extern "C"
13955 #endif
13956 char mit_des_cbc_encrypt ();
13958 main ()
13960 return mit_des_cbc_encrypt ();
13962 return 0;
13964 _ACEOF
13965 if ac_fn_c_try_link "$LINENO"; then :
13966 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13967 else
13968 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13970 rm -f core conftest.err conftest.$ac_objext \
13971 conftest$ac_exeext conftest.$ac_ext
13972 LIBS=$ac_check_lib_save_LIBS
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13975 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13976 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13977 have_k5crypto=yes
13978 else
13979 have_k5crypto=no
13982 if test $have_k5crypto = yes; then
13983 CRYPTOLIB=-lk5crypto
13984 LIBS="$CRYPTOLIB $LIBS"
13986 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13990 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13991 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lkrb5 $LIBS"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14002 #ifdef __cplusplus
14003 extern "C"
14004 #endif
14005 char krb5_init_context ();
14007 main ()
14009 return krb5_init_context ();
14011 return 0;
14013 _ACEOF
14014 if ac_fn_c_try_link "$LINENO"; then :
14015 ac_cv_lib_krb5_krb5_init_context=yes
14016 else
14017 ac_cv_lib_krb5_krb5_init_context=no
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14024 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14025 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
14026 have_krb5=yes
14027 else
14028 have_krb5=no
14031 if test $have_krb5=yes; then
14032 KRB5LIB=-lkrb5
14033 LIBS="$KRB5LIB $LIBS"
14035 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
14038 if test "${with_kerberos5}" = no; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
14040 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
14041 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 ac_check_lib_save_LIBS=$LIBS
14045 LIBS="-ldes425 $LIBS"
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14049 /* Override any GCC internal prototype to avoid an error.
14050 Use char because int might match the return type of a GCC
14051 builtin and then its argument prototype would still apply. */
14052 #ifdef __cplusplus
14053 extern "C"
14054 #endif
14055 char des_cbc_encrypt ();
14057 main ()
14059 return des_cbc_encrypt ();
14061 return 0;
14063 _ACEOF
14064 if ac_fn_c_try_link "$LINENO"; then :
14065 ac_cv_lib_des425_des_cbc_encrypt=yes
14066 else
14067 ac_cv_lib_des425_des_cbc_encrypt=no
14069 rm -f core conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
14074 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
14075 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
14076 have_des425=yes
14077 else
14078 have_des425=no
14081 if test $have_des425 = yes; then
14082 DESLIB=-ldes425
14083 LIBS="$DESLIB $LIBS"
14085 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
14087 else
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
14089 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
14090 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
14091 $as_echo_n "(cached) " >&6
14092 else
14093 ac_check_lib_save_LIBS=$LIBS
14094 LIBS="-ldes $LIBS"
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14098 /* Override any GCC internal prototype to avoid an error.
14099 Use char because int might match the return type of a GCC
14100 builtin and then its argument prototype would still apply. */
14101 #ifdef __cplusplus
14102 extern "C"
14103 #endif
14104 char des_cbc_encrypt ();
14106 main ()
14108 return des_cbc_encrypt ();
14110 return 0;
14112 _ACEOF
14113 if ac_fn_c_try_link "$LINENO"; then :
14114 ac_cv_lib_des_des_cbc_encrypt=yes
14115 else
14116 ac_cv_lib_des_des_cbc_encrypt=no
14118 rm -f core conftest.err conftest.$ac_objext \
14119 conftest$ac_exeext conftest.$ac_ext
14120 LIBS=$ac_check_lib_save_LIBS
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
14123 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
14124 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
14125 have_des=yes
14126 else
14127 have_des=no
14130 if test $have_des = yes; then
14131 DESLIB=-ldes
14132 LIBS="$DESLIB $LIBS"
14134 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
14139 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
14140 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 ac_check_lib_save_LIBS=$LIBS
14144 LIBS="-lkrb4 $LIBS"
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14148 /* Override any GCC internal prototype to avoid an error.
14149 Use char because int might match the return type of a GCC
14150 builtin and then its argument prototype would still apply. */
14151 #ifdef __cplusplus
14152 extern "C"
14153 #endif
14154 char krb_get_cred ();
14156 main ()
14158 return krb_get_cred ();
14160 return 0;
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_lib_krb4_krb_get_cred=yes
14165 else
14166 ac_cv_lib_krb4_krb_get_cred=no
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14170 LIBS=$ac_check_lib_save_LIBS
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
14173 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
14174 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
14175 have_krb4=yes
14176 else
14177 have_krb4=no
14180 if test $have_krb4 = yes; then
14181 KRB4LIB=-lkrb4
14182 LIBS="$KRB4LIB $LIBS"
14184 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
14186 else
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
14188 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
14189 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 ac_check_lib_save_LIBS=$LIBS
14193 LIBS="-lkrb $LIBS"
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14200 #ifdef __cplusplus
14201 extern "C"
14202 #endif
14203 char krb_get_cred ();
14205 main ()
14207 return krb_get_cred ();
14209 return 0;
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"; then :
14213 ac_cv_lib_krb_krb_get_cred=yes
14214 else
14215 ac_cv_lib_krb_krb_get_cred=no
14217 rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14219 LIBS=$ac_check_lib_save_LIBS
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
14222 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
14223 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
14224 have_krb=yes
14225 else
14226 have_krb=no
14229 if test $have_krb = yes; then
14230 KRB4LIB=-lkrb
14231 LIBS="$KRB4LIB $LIBS"
14233 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
14239 if test "${with_kerberos5}" != no; then
14240 for ac_header in krb5.h
14241 do :
14242 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
14243 if test "x$ac_cv_header_krb5_h" = x""yes; then :
14244 cat >>confdefs.h <<_ACEOF
14245 #define HAVE_KRB5_H 1
14246 _ACEOF
14247 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
14249 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_KRB5_ERROR_TEXT 1
14253 _ACEOF
14257 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
14259 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_KRB5_ERROR_E_TEXT 1
14263 _ACEOF
14270 done
14272 else
14273 for ac_header in des.h
14274 do :
14275 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
14276 if test "x$ac_cv_header_des_h" = x""yes; then :
14277 cat >>confdefs.h <<_ACEOF
14278 #define HAVE_DES_H 1
14279 _ACEOF
14281 else
14282 for ac_header in kerberosIV/des.h
14283 do :
14284 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
14285 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
14286 cat >>confdefs.h <<_ACEOF
14287 #define HAVE_KERBEROSIV_DES_H 1
14288 _ACEOF
14290 else
14291 for ac_header in kerberos/des.h
14292 do :
14293 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
14294 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
14295 cat >>confdefs.h <<_ACEOF
14296 #define HAVE_KERBEROS_DES_H 1
14297 _ACEOF
14301 done
14305 done
14309 done
14311 for ac_header in krb.h
14312 do :
14313 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
14314 if test "x$ac_cv_header_krb_h" = x""yes; then :
14315 cat >>confdefs.h <<_ACEOF
14316 #define HAVE_KRB_H 1
14317 _ACEOF
14319 else
14320 for ac_header in kerberosIV/krb.h
14321 do :
14322 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
14323 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
14324 cat >>confdefs.h <<_ACEOF
14325 #define HAVE_KERBEROSIV_KRB_H 1
14326 _ACEOF
14328 else
14329 for ac_header in kerberos/krb.h
14330 do :
14331 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
14332 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
14333 cat >>confdefs.h <<_ACEOF
14334 #define HAVE_KERBEROS_KRB_H 1
14335 _ACEOF
14339 done
14343 done
14347 done
14350 for ac_header in com_err.h
14351 do :
14352 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
14353 if test "x$ac_cv_header_com_err_h" = x""yes; then :
14354 cat >>confdefs.h <<_ACEOF
14355 #define HAVE_COM_ERR_H 1
14356 _ACEOF
14360 done
14373 for ac_func in $ac_func_list
14374 do :
14375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14376 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14377 eval as_val=\$$as_ac_var
14378 if test "x$as_val" = x""yes; then :
14379 cat >>confdefs.h <<_ACEOF
14380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14381 _ACEOF
14384 done
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
14390 $as_echo_n "checking whether localtime caches TZ... " >&6; }
14391 if test "${emacs_cv_localtime_cache+set}" = set; then :
14392 $as_echo_n "(cached) " >&6
14393 else
14394 if test x$ac_cv_func_tzset = xyes; then
14395 if test "$cross_compiling" = yes; then :
14396 # If we have tzset, assume the worst when cross-compiling.
14397 emacs_cv_localtime_cache=yes
14398 else
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401 #include <time.h>
14402 char TZ_GMT0[] = "TZ=GMT0";
14403 char TZ_PST8[] = "TZ=PST8";
14404 main()
14406 time_t now = time ((time_t *) 0);
14407 int hour_GMT0, hour_unset;
14408 if (putenv (TZ_GMT0) != 0)
14409 exit (1);
14410 hour_GMT0 = localtime (&now)->tm_hour;
14411 unsetenv("TZ");
14412 hour_unset = localtime (&now)->tm_hour;
14413 if (putenv (TZ_PST8) != 0)
14414 exit (1);
14415 if (localtime (&now)->tm_hour == hour_GMT0)
14416 exit (1);
14417 unsetenv("TZ");
14418 if (localtime (&now)->tm_hour != hour_unset)
14419 exit (1);
14420 exit (0);
14422 _ACEOF
14423 if ac_fn_c_try_run "$LINENO"; then :
14424 emacs_cv_localtime_cache=no
14425 else
14426 emacs_cv_localtime_cache=yes
14428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14429 conftest.$ac_objext conftest.beam conftest.$ac_ext
14432 else
14433 # If we lack tzset, report that localtime does not cache TZ,
14434 # since we can't invalidate the cache if we don't have tzset.
14435 emacs_cv_localtime_cache=no
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
14439 $as_echo "$emacs_cv_localtime_cache" >&6; }
14440 if test $emacs_cv_localtime_cache = yes; then
14442 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
14446 ok_so_far=yes
14447 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14448 if test "x$ac_cv_func_socket" = x""yes; then :
14450 else
14451 ok_so_far=no
14454 if test $ok_so_far = yes; then
14455 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14456 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14458 else
14459 ok_so_far=no
14464 if test $ok_so_far = yes; then
14465 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14466 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14468 else
14469 ok_so_far=no
14474 if test $ok_so_far = yes; then
14476 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14480 if test -f /usr/lpp/X11/bin/smt.exp; then
14482 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14487 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14488 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14490 $as_echo "yes" >&6; }
14492 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14494 else
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496 $as_echo "no" >&6; }
14499 case $canonical in
14500 *-solaris2.4 | *-solaris2.4.*)
14501 : ${ac_cv_func_vfork_works=no};;
14502 esac
14504 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14505 if test "x$ac_cv_type_pid_t" = x""yes; then :
14507 else
14509 cat >>confdefs.h <<_ACEOF
14510 #define pid_t int
14511 _ACEOF
14515 for ac_header in vfork.h
14516 do :
14517 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14518 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14519 cat >>confdefs.h <<_ACEOF
14520 #define HAVE_VFORK_H 1
14521 _ACEOF
14525 done
14527 for ac_func in fork vfork
14528 do :
14529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14530 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14531 eval as_val=\$$as_ac_var
14532 if test "x$as_val" = x""yes; then :
14533 cat >>confdefs.h <<_ACEOF
14534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14535 _ACEOF
14538 done
14540 if test "x$ac_cv_func_fork" = xyes; then
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14542 $as_echo_n "checking for working fork... " >&6; }
14543 if test "${ac_cv_func_fork_works+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 if test "$cross_compiling" = yes; then :
14547 ac_cv_func_fork_works=cross
14548 else
14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 $ac_includes_default
14553 main ()
14556 /* By Ruediger Kuhlmann. */
14557 return fork () < 0;
14560 return 0;
14562 _ACEOF
14563 if ac_fn_c_try_run "$LINENO"; then :
14564 ac_cv_func_fork_works=yes
14565 else
14566 ac_cv_func_fork_works=no
14568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14569 conftest.$ac_objext conftest.beam conftest.$ac_ext
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14574 $as_echo "$ac_cv_func_fork_works" >&6; }
14576 else
14577 ac_cv_func_fork_works=$ac_cv_func_fork
14579 if test "x$ac_cv_func_fork_works" = xcross; then
14580 case $host in
14581 *-*-amigaos* | *-*-msdosdjgpp*)
14582 # Override, as these systems have only a dummy fork() stub
14583 ac_cv_func_fork_works=no
14586 ac_cv_func_fork_works=yes
14588 esac
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14590 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14592 ac_cv_func_vfork_works=$ac_cv_func_vfork
14593 if test "x$ac_cv_func_vfork" = xyes; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14595 $as_echo_n "checking for working vfork... " >&6; }
14596 if test "${ac_cv_func_vfork_works+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 if test "$cross_compiling" = yes; then :
14600 ac_cv_func_vfork_works=cross
14601 else
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604 /* Thanks to Paul Eggert for this test. */
14605 $ac_includes_default
14606 #include <sys/wait.h>
14607 #ifdef HAVE_VFORK_H
14608 # include <vfork.h>
14609 #endif
14610 /* On some sparc systems, changes by the child to local and incoming
14611 argument registers are propagated back to the parent. The compiler
14612 is told about this with #include <vfork.h>, but some compilers
14613 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14614 static variable whose address is put into a register that is
14615 clobbered by the vfork. */
14616 static void
14617 #ifdef __cplusplus
14618 sparc_address_test (int arg)
14619 # else
14620 sparc_address_test (arg) int arg;
14621 #endif
14623 static pid_t child;
14624 if (!child) {
14625 child = vfork ();
14626 if (child < 0) {
14627 perror ("vfork");
14628 _exit(2);
14630 if (!child) {
14631 arg = getpid();
14632 write(-1, "", 0);
14633 _exit (arg);
14639 main ()
14641 pid_t parent = getpid ();
14642 pid_t child;
14644 sparc_address_test (0);
14646 child = vfork ();
14648 if (child == 0) {
14649 /* Here is another test for sparc vfork register problems. This
14650 test uses lots of local variables, at least as many local
14651 variables as main has allocated so far including compiler
14652 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14653 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14654 reuse the register of parent for one of the local variables,
14655 since it will think that parent can't possibly be used any more
14656 in this routine. Assigning to the local variable will thus
14657 munge parent in the parent process. */
14658 pid_t
14659 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14660 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14661 /* Convince the compiler that p..p7 are live; otherwise, it might
14662 use the same hardware register for all 8 local variables. */
14663 if (p != p1 || p != p2 || p != p3 || p != p4
14664 || p != p5 || p != p6 || p != p7)
14665 _exit(1);
14667 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14668 from child file descriptors. If the child closes a descriptor
14669 before it execs or exits, this munges the parent's descriptor
14670 as well. Test for this by closing stdout in the child. */
14671 _exit(close(fileno(stdout)) != 0);
14672 } else {
14673 int status;
14674 struct stat st;
14676 while (wait(&status) != child)
14678 return (
14679 /* Was there some problem with vforking? */
14680 child < 0
14682 /* Did the child fail? (This shouldn't happen.) */
14683 || status
14685 /* Did the vfork/compiler bug occur? */
14686 || parent != getpid()
14688 /* Did the file descriptor bug occur? */
14689 || fstat(fileno(stdout), &st) != 0
14693 _ACEOF
14694 if ac_fn_c_try_run "$LINENO"; then :
14695 ac_cv_func_vfork_works=yes
14696 else
14697 ac_cv_func_vfork_works=no
14699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14700 conftest.$ac_objext conftest.beam conftest.$ac_ext
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14705 $as_echo "$ac_cv_func_vfork_works" >&6; }
14708 if test "x$ac_cv_func_fork_works" = xcross; then
14709 ac_cv_func_vfork_works=$ac_cv_func_vfork
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14711 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14714 if test "x$ac_cv_func_vfork_works" = xyes; then
14716 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14718 else
14720 $as_echo "#define vfork fork" >>confdefs.h
14723 if test "x$ac_cv_func_fork_works" = xyes; then
14725 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14730 for ac_func in snprintf
14731 do :
14732 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14733 if test "x$ac_cv_func_snprintf" = x""yes; then :
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_SNPRINTF 1
14736 _ACEOF
14739 done
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14743 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14744 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14745 $as_echo_n "(cached) " >&6
14746 else
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14749 #include <langinfo.h>
14751 main ()
14753 char* cs = nl_langinfo(CODESET);
14755 return 0;
14757 _ACEOF
14758 if ac_fn_c_try_link "$LINENO"; then :
14759 emacs_cv_langinfo_codeset=yes
14760 else
14761 emacs_cv_langinfo_codeset=no
14763 rm -f core conftest.err conftest.$ac_objext \
14764 conftest$ac_exeext conftest.$ac_ext
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14768 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14769 if test $emacs_cv_langinfo_codeset = yes; then
14771 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14776 $as_echo_n "checking for mbstate_t... " >&6; }
14777 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14779 else
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 $ac_includes_default
14783 # include <wchar.h>
14785 main ()
14787 mbstate_t x; return sizeof x;
14789 return 0;
14791 _ACEOF
14792 if ac_fn_c_try_compile "$LINENO"; then :
14793 ac_cv_type_mbstate_t=yes
14794 else
14795 ac_cv_type_mbstate_t=no
14797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14800 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14801 if test $ac_cv_type_mbstate_t = yes; then
14803 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14805 else
14807 $as_echo "#define mbstate_t int" >>confdefs.h
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14812 $as_echo_n "checking for C restricted array declarations... " >&6; }
14813 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14814 $as_echo_n "(cached) " >&6
14815 else
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14818 void fred (int x[__restrict]);
14820 main ()
14824 return 0;
14826 _ACEOF
14827 if ac_fn_c_try_compile "$LINENO"; then :
14828 emacs_cv_c_restrict_arr=yes
14829 else
14830 emacs_cv_c_restrict_arr=no
14832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14835 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14836 if test "$emacs_cv_c_restrict_arr" = yes; then
14838 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14844 $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h
14848 $as_echo "#define CLASH_DETECTION 1" >>confdefs.h
14851 ## Note: PTYs are broken on darwin <6. Use at your own risk.
14853 $as_echo "#define HAVE_PTYS 1" >>confdefs.h
14857 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
14863 $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h
14867 $as_echo "#define SEPCHAR ':'" >>confdefs.h
14871 $as_echo "#define subprocesses 1" >>confdefs.h
14875 $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h
14880 $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h
14886 $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h
14890 $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h
14894 $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h
14900 case $opsys in
14901 aix4-2)
14902 if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then
14903 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14908 hpux*)
14909 $as_echo "#define NO_EDITRES 1" >>confdefs.h
14912 esac
14915 case $opsys in
14916 irix6-5 | sol2* | unixware )
14918 $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h
14921 esac
14923 emacs_broken_SIGIO=no
14925 case $opsys in
14926 hpux* | irix6-5 | openbsd | sol2* | unixware )
14927 emacs_broken_SIGIO=yes
14930 aix4-2)
14932 $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h
14936 freebsd)
14938 $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h
14941 esac
14943 case $opsys in
14944 gnu-* | sol2-10 )
14946 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
14949 esac
14951 case $opsys in
14952 darwin | freebsd | netbsd | openbsd )
14954 $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h
14957 esac
14959 case $opsys in
14960 netbsd | openbsd) sound_device="/dev/audio" ;;
14961 *) sound_device="/dev/dsp" ;;
14962 esac
14965 cat >>confdefs.h <<_ACEOF
14966 #define DEFAULT_SOUND_DEVICE "$sound_device"
14967 _ACEOF
14971 case $opsys in
14972 darwin | gnu-linux | gnu-kfreebsd )
14974 $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h
14977 esac
14980 case $opsys in
14981 cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd)
14983 $as_echo "#define NARROWPROTO 1" >>confdefs.h
14986 esac
14995 case $opsys in
14996 aix4-2 )
14997 $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h
14999 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h
15001 $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h
15005 cygwin )
15006 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15008 $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
15010 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15012 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15016 darwin )
15017 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15019 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15021 $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
15023 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15025 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15029 gnu | openbsd )
15030 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15034 gnu-linux | gnu-kfreebsd | freebsd | netbsd )
15035 if test "x$ac_cv_func_grantpt" = xyes; then
15037 $as_echo "#define UNIX98_PTYS 1" >>confdefs.h
15039 $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h
15041 $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
15043 if test "x$ac_cv_func_posix_openpt" = xyes; then
15044 $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h
15046 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15048 elif test "x$ac_cv_func_getpt" = xyes; then
15049 $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h
15051 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15053 else
15054 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15057 else
15058 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15063 hpux*)
15064 $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h
15066 $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h
15068 $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h
15072 irix6-5 )
15073 $as_echo "#define PTY_ITERATION /**/" >>confdefs.h
15075 $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h
15077 $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
15079 $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h
15081 $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h
15085 sol2* )
15086 $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
15090 unixware )
15091 $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
15094 esac
15097 case $opsys in
15098 sol2* | unixware )
15099 $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h
15101 $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h
15104 $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
15107 esac
15112 case $opsys in
15113 aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
15114 $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15118 gnu-linux | gnu-kfreebsd )
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5
15121 $as_echo_n "checking for signals via characters... " >&6; }
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15125 #include <linux/version.h>
15126 #if LINUX_VERSION_CODE < 0x20400
15127 # error "Linux version too old"
15128 #endif
15131 main ()
15135 return 0;
15137 _ACEOF
15138 if ac_fn_c_try_cpp "$LINENO"; then :
15139 emacs_signals_via_chars=yes
15140 else
15141 emacs_signals_via_chars=no
15143 rm -f conftest.err conftest.$ac_ext
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5
15146 $as_echo "$emacs_signals_via_chars" >&6; }
15147 test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h
15150 esac
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C library" >&5
15156 $as_echo_n "checking whether we are using the GNU C library... " >&6; }
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15160 #include <features.h>
15161 #ifndef __GNU_LIBRARY__
15162 # error "this is not the GNU C library"
15163 #endif
15166 main ()
15170 return 0;
15172 _ACEOF
15173 if ac_fn_c_try_cpp "$LINENO"; then :
15174 emacs_glibc=yes
15175 else
15176 emacs_glibc=no
15178 rm -f conftest.err conftest.$ac_ext
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_glibc" >&5
15180 $as_echo "$emacs_glibc" >&6; }
15182 if test $emacs_glibc = yes; then
15184 emacs_pending_output=unknown
15186 case $opsys in
15187 gnu | gnu-linux | gnu-kfreebsd )
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of pending output formalism" >&5
15189 $as_echo_n "checking for style of pending output formalism... " >&6; }
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15193 #include <stdio.h>
15194 #if !defined (_IO_STDIO_H) && !defined (_STDIO_USES_IOSTREAM)
15195 # error "stdio definitions not found"
15196 #endif
15199 main ()
15203 return 0;
15205 _ACEOF
15206 if ac_fn_c_try_cpp "$LINENO"; then :
15207 emacs_pending_output=new
15209 rm -f conftest.err conftest.$ac_ext
15211 if test $emacs_pending_output = unknown; then
15212 case $opsys in
15213 gnu-linux | gnu-kfreebsd)
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15217 #include <stdio.h>
15218 #ifndef __UCLIBC__
15219 # error "not using uclibc"
15220 #endif
15223 main ()
15227 return 0;
15229 _ACEOF
15230 if ac_fn_c_try_cpp "$LINENO"; then :
15231 emacs_pending_output=uclibc
15232 else
15233 emacs_pending_output=old
15235 rm -f conftest.err conftest.$ac_ext
15237 esac
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_pending_output" >&5
15241 $as_echo "$emacs_pending_output" >&6; }
15243 case $emacs_pending_output in
15244 new)
15245 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)" >>confdefs.h
15248 uclibc)
15249 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufpos - (FILE)->__bufstart)" >>confdefs.h
15252 old)
15253 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)" >>confdefs.h
15256 esac
15258 esac
15259 if test $emacs_pending_output = unknown; then
15260 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp - (FILE)->__buffer)" >>confdefs.h
15264 else
15265 case $opsys in
15266 cygwin | darwin | freebsd | netbsd | openbsd )
15267 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)" >>confdefs.h
15271 unixware)
15272 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base)" >>confdefs.h
15277 if test x$ac_cv_header_stdio_ext_h = xyes && \
15278 test x$ac_cv_func___fpending = xyes; then
15279 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) __fpending (FILE)" >>confdefs.h
15282 $as_echo "#define DISPNEW_NEEDS_STDIO_EXT 1" >>confdefs.h
15284 else
15285 $as_echo "#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr - (FILE)->_base)" >>confdefs.h
15289 esac
15295 case $opsys in
15296 gnu)
15297 $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h
15301 hpux*)
15302 $as_echo "#define DATA_START 0x40000000" >>confdefs.h
15304 $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h
15307 irix6-5)
15308 $as_echo "#define DATA_START 0x10000000" >>confdefs.h
15310 $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h
15313 esac
15319 case $opsys in
15320 darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h
15323 gnu | freebsd | netbsd | openbsd )
15325 $as_echo "#define TABDLY OXTABS" >>confdefs.h
15327 $as_echo "#define TAB3 OXTABS" >>confdefs.h
15331 gnu-linux | gnu-kfreebsd )
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15335 #ifndef __i386__
15336 # error "not i386"
15337 #endif
15340 main ()
15344 return 0;
15346 _ACEOF
15347 if ac_fn_c_try_cpp "$LINENO"; then :
15348 $as_echo "#define ULIMIT_BREAK_VALUE (32*1024*1024)" >>confdefs.h
15351 rm -f conftest.err conftest.$ac_ext
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15356 #ifndef __ia64__
15357 # error "not ia64"
15358 #endif
15361 main ()
15365 return 0;
15367 _ACEOF
15368 if ac_fn_c_try_cpp "$LINENO"; then :
15370 $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
15373 rm -f conftest.err conftest.$ac_ext
15376 hpux*)
15378 $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h
15382 irix6-5)
15383 $as_echo "#define ULIMIT_BREAK_VALUE 0x14000000" >>confdefs.h
15386 esac
15394 case $opsys in
15395 aix4-2 | hpux* | unixware)
15396 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15400 gnu-linux | gnu-kfreebsd )
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15404 #if defined __i386__ || defined __sparc__ || defined __mc68000__ \
15405 || defined __alpha__ || defined __mips__ || defined __s390__ \
15406 || defined __arm__ || defined __powerpc__ || defined __amd64__ \
15407 || defined __ia64__ || defined __sh__
15408 /* ok */
15409 #else
15410 # error "setjmp not known to work on this arch"
15411 #endif
15414 main ()
15418 return 0;
15420 _ACEOF
15421 if ac_fn_c_try_cpp "$LINENO"; then :
15422 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15424 else
15425 $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h
15428 rm -f conftest.err conftest.$ac_ext
15430 esac
15433 if test x$GCC = xyes; then
15434 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15436 else
15437 case $opsys in
15438 freebsd | netbsd | openbsd | irix6-5 | sol2* )
15439 $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h
15442 esac
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
15445 $as_echo_n "checking for _setjmp... " >&6; }
15446 if test "${emacs_cv_func__setjmp+set}" = set; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15451 #include <setjmp.h>
15454 main ()
15456 jmp_buf j;
15457 if (! _setjmp (j))
15458 _longjmp (j, 1);
15460 return 0;
15462 _ACEOF
15463 if ac_fn_c_try_link "$LINENO"; then :
15464 emacs_cv_func__setjmp=yes
15465 else
15466 emacs_cv_func__setjmp=no
15468 rm -f core conftest.err conftest.$ac_objext \
15469 conftest$ac_exeext conftest.$ac_ext
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
15472 $as_echo "$emacs_cv_func__setjmp" >&6; }
15473 if test $emacs_cv_func__setjmp = yes; then
15475 $as_echo "#define HAVE__SETJMP 1" >>confdefs.h
15477 else
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
15479 $as_echo_n "checking for sigsetjmp... " >&6; }
15480 if test "${emacs_cv_func_sigsetjmp+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15485 #include <setjmp.h>
15488 main ()
15490 sigjmp_buf j;
15491 if (! sigsetjmp (j, 1))
15492 siglongjmp (j, 1);
15494 return 0;
15496 _ACEOF
15497 if ac_fn_c_try_link "$LINENO"; then :
15498 emacs_cv_func_sigsetjmp=yes
15499 else
15500 emacs_cv_func_sigsetjmp=no
15502 rm -f core conftest.err conftest.$ac_objext \
15503 conftest$ac_exeext conftest.$ac_ext
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5
15506 $as_echo "$emacs_cv_func_sigsetjmp" >&6; }
15507 if test $emacs_cv_func_sigsetjmp = yes; then
15509 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
15514 case $opsys in
15515 sol2* | unixware )
15517 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h
15520 esac
15523 case $opsys in
15524 hpux* | sol2* )
15526 $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h
15529 esac
15540 case $opsys in
15541 aix4-2)
15542 $as_echo "#define USG /**/" >>confdefs.h
15544 $as_echo "#define USG5 /**/" >>confdefs.h
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15549 #ifndef _AIX
15550 # error "_AIX not defined"
15551 #endif
15554 main ()
15558 return 0;
15560 _ACEOF
15561 if ac_fn_c_try_cpp "$LINENO"; then :
15563 else
15565 $as_echo "#define _AIX /**/" >>confdefs.h
15568 rm -f conftest.err conftest.$ac_ext
15571 cygwin)
15573 $as_echo "#define CYGWIN 1" >>confdefs.h
15577 darwin)
15578 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15580 $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h
15583 $as_echo "#define DARWIN_OS /**/" >>confdefs.h
15587 freebsd)
15588 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15591 $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h
15595 gnu | netbsd | openbsd )
15596 $as_echo "#define BSD4_2 /**/" >>confdefs.h
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15601 #ifndef BSD_SYSTEM
15602 # error "BSD_SYSTEM not defined"
15603 #endif
15606 main ()
15610 return 0;
15612 _ACEOF
15613 if ac_fn_c_try_cpp "$LINENO"; then :
15615 else
15616 $as_echo "#define BSD_SYSTEM 43" >>confdefs.h
15619 rm -f conftest.err conftest.$ac_ext
15622 gnu-linux | gnu-kfreebsd )
15623 $as_echo "#define USG /**/" >>confdefs.h
15626 $as_echo "#define GNU_LINUX /**/" >>confdefs.h
15630 hpux*)
15631 $as_echo "#define USG /**/" >>confdefs.h
15633 $as_echo "#define USG5 /**/" >>confdefs.h
15636 $as_echo "#define HPUX /**/" >>confdefs.h
15640 irix6-5)
15641 $as_echo "#define USG /**/" >>confdefs.h
15643 $as_echo "#define USG5 /**/" >>confdefs.h
15645 $as_echo "#define USG5_4 /**/" >>confdefs.h
15648 $as_echo "#define IRIX6_5 /**/" >>confdefs.h
15652 sol2*)
15653 $as_echo "#define USG /**/" >>confdefs.h
15655 $as_echo "#define USG5 /**/" >>confdefs.h
15657 $as_echo "#define USG5_4 /**/" >>confdefs.h
15660 $as_echo "#define SOLARIS2 /**/" >>confdefs.h
15664 unixware)
15665 $as_echo "#define USG /**/" >>confdefs.h
15667 $as_echo "#define USG5 /**/" >>confdefs.h
15669 $as_echo "#define USG5_4 /**/" >>confdefs.h
15672 esac
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5
15675 $as_echo_n "checking for usable FIONREAD... " >&6; }
15676 if test "${emacs_cv_usable_FIONREAD+set}" = set; then :
15677 $as_echo_n "(cached) " >&6
15678 else
15679 case $opsys in
15680 aix4-2)
15681 emacs_cv_usable_FIONREAD=no
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 #include <sys/types.h>
15688 #include <sys/ioctl.h>
15689 #ifdef USG5_4
15690 # include <sys/filio.h>
15691 #endif
15694 main ()
15696 int foo = ioctl (0, FIONREAD, &foo);
15698 return 0;
15700 _ACEOF
15701 if ac_fn_c_try_compile "$LINENO"; then :
15702 emacs_cv_usable_FIONREAD=yes
15703 else
15704 emacs_cv_usable_FIONREAD=no
15706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15708 esac
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5
15711 $as_echo "$emacs_cv_usable_FIONREAD" >&6; }
15712 if test $emacs_cv_usable_FIONREAD = yes; then
15714 $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h
15717 if test $emacs_broken_SIGIO = no; then
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5
15719 $as_echo_n "checking for usable SIGIO... " >&6; }
15720 if test "${emacs_cv_usable_SIGIO+set}" = set; then :
15721 $as_echo_n "(cached) " >&6
15722 else
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 #include <fcntl.h>
15726 #include <signal.h>
15729 main ()
15731 int foo = SIGIO | F_SETFL | FASYNC;
15733 return 0;
15735 _ACEOF
15736 if ac_fn_c_try_compile "$LINENO"; then :
15737 emacs_cv_usable_SIGIO=yes
15738 else
15739 emacs_cv_usable_SIGIO=no
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5
15744 $as_echo "$emacs_cv_usable_SIGIO" >&6; }
15745 if test $emacs_cv_usable_SIGIO = yes; then
15747 $as_echo "#define USABLE_SIGIO 1" >>confdefs.h
15754 case $opsys in
15755 cygwin)
15757 $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h
15761 hpux11)
15763 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
15767 irix6-5)
15769 $as_echo "#define PREFER_VSUSP 1" >>confdefs.h
15772 $as_echo "#define SETPGRP_RELEASES_CTTY 1" >>confdefs.h
15776 sol2-10)
15778 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15781 esac
15783 # Set up the CFLAGS for real compilation, so we can substitute it.
15784 CFLAGS="$REAL_CFLAGS"
15785 CPPFLAGS="$REAL_CPPFLAGS"
15787 ## Hack to detect a buggy GCC version.
15788 if test "x$GCC" = xyes \
15789 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
15790 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
15791 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
15792 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
15795 version=$PACKAGE_VERSION
15797 copyright="Copyright (C) 2012 Free Software Foundation, Inc."
15799 cat >>confdefs.h <<_ACEOF
15800 #define COPYRIGHT "$copyright"
15801 _ACEOF
15805 ### Specify what sort of things we'll be editing into Makefile and config.h.
15806 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15809 ## Unused?
15832 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
15833 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
15834 ## end of LIBX_BASE, but nothing ever set it.
15839 ## Used in lwlib/Makefile.in.
15848 if test -n "${term_header}"; then
15850 cat >>confdefs.h <<_ACEOF
15851 #define TERM_HEADER "${term_header}"
15852 _ACEOF
15857 cat >>confdefs.h <<_ACEOF
15858 #define EMACS_CONFIGURATION "${canonical}"
15859 _ACEOF
15862 cat >>confdefs.h <<_ACEOF
15863 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15864 _ACEOF
15868 XMENU_OBJ=
15869 XOBJ=
15870 FONT_OBJ=
15871 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15873 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
15875 XMENU_OBJ=xmenu.o
15876 XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o"
15877 FONT_OBJ=xfont.o
15878 if test "$HAVE_XFT" = "yes"; then
15879 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
15880 elif test "$HAVE_FREETYPE" = "yes"; then
15881 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
15889 WIDGET_OBJ=
15890 MOTIF_LIBW=
15891 if test "${USE_X_TOOLKIT}" != "none" ; then
15892 WIDGET_OBJ=widget.o
15894 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
15896 if test "${USE_X_TOOLKIT}" = "LUCID"; then
15898 $as_echo "#define USE_LUCID 1" >>confdefs.h
15900 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
15902 $as_echo "#define USE_MOTIF 1" >>confdefs.h
15904 MOTIF_LIBW=-lXm
15905 case "$opsys" in
15906 gnu-linux)
15907 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
15908 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
15911 unixware)
15912 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
15913 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
15914 MOTIF_LIBW="MOTIF_LIBW -lXimp"
15917 aix4-2)
15918 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
15919 MOTIF_LIBW="$MOTIF_LIBW -li18n"
15921 esac
15922 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
15927 TOOLKIT_LIBW=
15928 case "$USE_X_TOOLKIT" in
15929 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
15930 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
15931 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
15932 esac
15935 if test "$USE_X_TOOLKIT" = "none"; then
15936 LIBXT_OTHER="\$(LIBXSM)"
15937 OLDXMENU_TARGET="really-oldXMenu"
15938 else
15939 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
15940 OLDXMENU_TARGET="really-lwlib"
15944 ## The X Menu stuff is present in the X10 distribution, but missing
15945 ## from X11. If we have X10, just use the installed library;
15946 ## otherwise, use our own copy.
15947 if test "${HAVE_X11}" = "yes" ; then
15949 $as_echo "#define HAVE_X11 1" >>confdefs.h
15952 if test "$USE_X_TOOLKIT" = "none"; then
15953 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
15954 else
15955 OLDXMENU="\${lwlibdir}/liblw.a"
15957 LIBXMENU="\$(OLDXMENU)"
15958 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
15959 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
15960 else
15961 ## For a syntactically valid Makefile; not actually used for anything.
15962 ## See comments in src/Makefile.in.
15963 OLDXMENU=nothing
15964 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
15965 if test "${HAVE_X_WINDOWS}" = "yes"; then
15966 LIBXMENU="-lXMenu"
15967 else
15968 LIBXMENU=
15970 LIBX_OTHER=
15971 OLDXMENU_DEPS=
15974 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
15975 OLDXMENU_TARGET=
15976 OLDXMENU=nothing
15977 LIBXMENU=
15978 OLDXMENU_DEPS=
15987 if test "${HAVE_MENUS}" = "yes" ; then
15989 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
15993 if test "${GNU_MALLOC}" = "yes" ; then
15995 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
15999 RALLOC_OBJ=
16000 if test "${REL_ALLOC}" = "yes" ; then
16002 $as_echo "#define REL_ALLOC 1" >>confdefs.h
16005 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
16009 if test "$opsys" = "cygwin"; then
16010 CYGWIN_OBJ="sheap.o"
16011 ## Cygwin differs because of its unexec().
16012 PRE_ALLOC_OBJ=
16013 POST_ALLOC_OBJ=lastfile.o
16014 else
16015 CYGWIN_OBJ=
16016 PRE_ALLOC_OBJ=lastfile.o
16017 POST_ALLOC_OBJ=
16023 # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently.
16024 # it temporarily reverts them to their pre-pkg-config values,
16025 # because gnulib needs to work with both src (which uses the
16026 # pkg-config stuff) and lib-src (which does not). For example, gnulib
16027 # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt,
16028 # and it therefore needs to run in an environment where LIBS does not
16029 # already contain -lrt merely because 'pkg-config --libs' printed '-lrt'
16030 # for some package unrelated to lib-src.
16031 SAVE_CFLAGS=$CFLAGS
16032 SAVE_LIBS=$LIBS
16033 CFLAGS=$pre_PKG_CONFIG_CFLAGS
16034 LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS"
16046 LIBC_FATAL_STDERR_=1
16047 export LIBC_FATAL_STDERR_
16049 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16050 # for constant arguments. Useless!
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16052 $as_echo_n "checking for working alloca.h... " >&6; }
16053 if test "${ac_cv_working_alloca_h+set}" = set; then :
16054 $as_echo_n "(cached) " >&6
16055 else
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 #include <alloca.h>
16060 main ()
16062 char *p = (char *) alloca (2 * sizeof (int));
16063 if (p) return 0;
16065 return 0;
16067 _ACEOF
16068 if ac_fn_c_try_link "$LINENO"; then :
16069 ac_cv_working_alloca_h=yes
16070 else
16071 ac_cv_working_alloca_h=no
16073 rm -f core conftest.err conftest.$ac_objext \
16074 conftest$ac_exeext conftest.$ac_ext
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16077 $as_echo "$ac_cv_working_alloca_h" >&6; }
16078 if test $ac_cv_working_alloca_h = yes; then
16080 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16085 $as_echo_n "checking for alloca... " >&6; }
16086 if test "${ac_cv_func_alloca_works+set}" = set; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 #ifdef __GNUC__
16092 # define alloca __builtin_alloca
16093 #else
16094 # ifdef _MSC_VER
16095 # include <malloc.h>
16096 # define alloca _alloca
16097 # else
16098 # ifdef HAVE_ALLOCA_H
16099 # include <alloca.h>
16100 # else
16101 # ifdef _AIX
16102 #pragma alloca
16103 # else
16104 # ifndef alloca /* predefined by HP cc +Olibcalls */
16105 char *alloca ();
16106 # endif
16107 # endif
16108 # endif
16109 # endif
16110 #endif
16113 main ()
16115 char *p = (char *) alloca (1);
16116 if (p) return 0;
16118 return 0;
16120 _ACEOF
16121 if ac_fn_c_try_link "$LINENO"; then :
16122 ac_cv_func_alloca_works=yes
16123 else
16124 ac_cv_func_alloca_works=no
16126 rm -f core conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16130 $as_echo "$ac_cv_func_alloca_works" >&6; }
16132 if test $ac_cv_func_alloca_works = yes; then
16134 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16136 else
16137 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16138 # that cause trouble. Some versions do not even contain alloca or
16139 # contain a buggy version. If you still want to use their alloca,
16140 # use ar to extract alloca.o from them instead of compiling alloca.c.
16146 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16148 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
16152 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
16153 if test "${ac_cv_os_cray+set}" = set; then :
16154 $as_echo_n "(cached) " >&6
16155 else
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 #if defined CRAY && ! defined CRAY2
16159 webecray
16160 #else
16161 wenotbecray
16162 #endif
16164 _ACEOF
16165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16166 $EGREP "webecray" >/dev/null 2>&1; then :
16167 ac_cv_os_cray=yes
16168 else
16169 ac_cv_os_cray=no
16171 rm -f conftest*
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16175 $as_echo "$ac_cv_os_cray" >&6; }
16176 if test $ac_cv_os_cray = yes; then
16177 for ac_func in _getb67 GETB67 getb67; do
16178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16179 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16180 eval as_val=\$$as_ac_var
16181 if test "x$as_val" = x""yes; then :
16183 cat >>confdefs.h <<_ACEOF
16184 #define CRAY_STACKSEG_END $ac_func
16185 _ACEOF
16187 break
16190 done
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16194 $as_echo_n "checking stack direction for C alloca... " >&6; }
16195 if test "${ac_cv_c_stack_direction+set}" = set; then :
16196 $as_echo_n "(cached) " >&6
16197 else
16198 if test "$cross_compiling" = yes; then :
16199 ac_cv_c_stack_direction=0
16200 else
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 $ac_includes_default
16205 find_stack_direction (int *addr, int depth)
16207 int dir, dummy = 0;
16208 if (! addr)
16209 addr = &dummy;
16210 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16211 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16212 return dir + dummy;
16216 main (int argc, char **argv)
16218 return find_stack_direction (0, argc + !argv + 20) < 0;
16220 _ACEOF
16221 if ac_fn_c_try_run "$LINENO"; then :
16222 ac_cv_c_stack_direction=1
16223 else
16224 ac_cv_c_stack_direction=-1
16226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16227 conftest.$ac_objext conftest.beam conftest.$ac_ext
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16232 $as_echo "$ac_cv_c_stack_direction" >&6; }
16233 cat >>confdefs.h <<_ACEOF
16234 #define STACK_DIRECTION $ac_cv_c_stack_direction
16235 _ACEOF
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16244 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16245 if test "${ac_cv_c_bigendian+set}" = set; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16248 ac_cv_c_bigendian=unknown
16249 # See if we're dealing with a universal compiler.
16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h. */
16252 #ifndef __APPLE_CC__
16253 not a universal capable compiler
16254 #endif
16255 typedef int dummy;
16257 _ACEOF
16258 if ac_fn_c_try_compile "$LINENO"; then :
16260 # Check for potential -arch flags. It is not universal unless
16261 # there are at least two -arch flags with different values.
16262 ac_arch=
16263 ac_prev=
16264 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16265 if test -n "$ac_prev"; then
16266 case $ac_word in
16267 i?86 | x86_64 | ppc | ppc64)
16268 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16269 ac_arch=$ac_word
16270 else
16271 ac_cv_c_bigendian=universal
16272 break
16275 esac
16276 ac_prev=
16277 elif test "x$ac_word" = "x-arch"; then
16278 ac_prev=arch
16280 done
16282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16283 if test $ac_cv_c_bigendian = unknown; then
16284 # See if sys/param.h defines the BYTE_ORDER macro.
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287 #include <sys/types.h>
16288 #include <sys/param.h>
16291 main ()
16293 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16294 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16295 && LITTLE_ENDIAN)
16296 bogus endian macros
16297 #endif
16300 return 0;
16302 _ACEOF
16303 if ac_fn_c_try_compile "$LINENO"; then :
16304 # It does; now see whether it defined to BIG_ENDIAN or not.
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 #include <sys/types.h>
16308 #include <sys/param.h>
16311 main ()
16313 #if BYTE_ORDER != BIG_ENDIAN
16314 not big endian
16315 #endif
16318 return 0;
16320 _ACEOF
16321 if ac_fn_c_try_compile "$LINENO"; then :
16322 ac_cv_c_bigendian=yes
16323 else
16324 ac_cv_c_bigendian=no
16326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16330 if test $ac_cv_c_bigendian = unknown; then
16331 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 #include <limits.h>
16337 main ()
16339 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16340 bogus endian macros
16341 #endif
16344 return 0;
16346 _ACEOF
16347 if ac_fn_c_try_compile "$LINENO"; then :
16348 # It does; now see whether it defined to _BIG_ENDIAN or not.
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 #include <limits.h>
16354 main ()
16356 #ifndef _BIG_ENDIAN
16357 not big endian
16358 #endif
16361 return 0;
16363 _ACEOF
16364 if ac_fn_c_try_compile "$LINENO"; then :
16365 ac_cv_c_bigendian=yes
16366 else
16367 ac_cv_c_bigendian=no
16369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 if test $ac_cv_c_bigendian = unknown; then
16374 # Compile a test program.
16375 if test "$cross_compiling" = yes; then :
16376 # Try to guess by grepping values from an object file.
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 short int ascii_mm[] =
16380 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16381 short int ascii_ii[] =
16382 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16383 int use_ascii (int i) {
16384 return ascii_mm[i] + ascii_ii[i];
16386 short int ebcdic_ii[] =
16387 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16388 short int ebcdic_mm[] =
16389 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16390 int use_ebcdic (int i) {
16391 return ebcdic_mm[i] + ebcdic_ii[i];
16393 extern int foo;
16396 main ()
16398 return use_ascii (foo) == use_ebcdic (foo);
16400 return 0;
16402 _ACEOF
16403 if ac_fn_c_try_compile "$LINENO"; then :
16404 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16405 ac_cv_c_bigendian=yes
16407 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16408 if test "$ac_cv_c_bigendian" = unknown; then
16409 ac_cv_c_bigendian=no
16410 else
16411 # finding both strings is unlikely to happen, but who knows?
16412 ac_cv_c_bigendian=unknown
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417 else
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16420 $ac_includes_default
16422 main ()
16425 /* Are we little or big endian? From Harbison&Steele. */
16426 union
16428 long int l;
16429 char c[sizeof (long int)];
16430 } u;
16431 u.l = 1;
16432 return u.c[sizeof (long int) - 1] == 1;
16435 return 0;
16437 _ACEOF
16438 if ac_fn_c_try_run "$LINENO"; then :
16439 ac_cv_c_bigendian=no
16440 else
16441 ac_cv_c_bigendian=yes
16443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16444 conftest.$ac_objext conftest.beam conftest.$ac_ext
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16450 $as_echo "$ac_cv_c_bigendian" >&6; }
16451 case $ac_cv_c_bigendian in #(
16452 yes)
16453 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16454 ;; #(
16456 ;; #(
16457 universal)
16459 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16461 ;; #(
16463 as_fn_error "unknown endianness
16464 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16465 esac
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16469 $as_echo_n "checking for inline... " >&6; }
16470 if test "${ac_cv_c_inline+set}" = set; then :
16471 $as_echo_n "(cached) " >&6
16472 else
16473 ac_cv_c_inline=no
16474 for ac_kw in inline __inline__ __inline; do
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #ifndef __cplusplus
16478 typedef int foo_t;
16479 static $ac_kw foo_t static_foo () {return 0; }
16480 $ac_kw foo_t foo () {return 0; }
16481 #endif
16483 _ACEOF
16484 if ac_fn_c_try_compile "$LINENO"; then :
16485 ac_cv_c_inline=$ac_kw
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16488 test "$ac_cv_c_inline" != no && break
16489 done
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16493 $as_echo "$ac_cv_c_inline" >&6; }
16495 case $ac_cv_c_inline in
16496 inline | yes) ;;
16498 case $ac_cv_c_inline in
16499 no) ac_val=;;
16500 *) ac_val=$ac_cv_c_inline;;
16501 esac
16502 cat >>confdefs.h <<_ACEOF
16503 #ifndef __cplusplus
16504 #define inline $ac_val
16505 #endif
16506 _ACEOF
16508 esac
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
16512 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
16513 if test "${gl_cv_func_c99_strtold+set}" = set; then :
16514 $as_echo_n "(cached) " >&6
16515 else
16516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16517 /* end confdefs.h. */
16518 /* On HP-UX before 11.23, strtold returns a struct instead of
16519 long double. Reject implementations like that, by requiring
16520 compatibility with the C99 prototype. */
16521 #include <stdlib.h>
16522 static long double (*p) (char const *, char **) = strtold;
16523 static long double
16524 test (char const *nptr, char **endptr)
16526 long double r;
16527 r = strtold (nptr, endptr);
16528 return r;
16531 main ()
16533 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
16535 return 0;
16537 _ACEOF
16538 if ac_fn_c_try_link "$LINENO"; then :
16539 gl_cv_func_c99_strtold=yes
16540 else
16541 gl_cv_func_c99_strtold=no
16543 rm -f core conftest.err conftest.$ac_objext \
16544 conftest$ac_exeext conftest.$ac_ext
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
16547 $as_echo "$gl_cv_func_c99_strtold" >&6; }
16548 if test $gl_cv_func_c99_strtold = yes; then
16550 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
16555 GNULIB_CHDIR=0;
16556 GNULIB_CHOWN=0;
16557 GNULIB_CLOSE=0;
16558 GNULIB_DUP=0;
16559 GNULIB_DUP2=0;
16560 GNULIB_DUP3=0;
16561 GNULIB_ENVIRON=0;
16562 GNULIB_EUIDACCESS=0;
16563 GNULIB_FACCESSAT=0;
16564 GNULIB_FCHDIR=0;
16565 GNULIB_FCHOWNAT=0;
16566 GNULIB_FDATASYNC=0;
16567 GNULIB_FSYNC=0;
16568 GNULIB_FTRUNCATE=0;
16569 GNULIB_GETCWD=0;
16570 GNULIB_GETDOMAINNAME=0;
16571 GNULIB_GETDTABLESIZE=0;
16572 GNULIB_GETGROUPS=0;
16573 GNULIB_GETHOSTNAME=0;
16574 GNULIB_GETLOGIN=0;
16575 GNULIB_GETLOGIN_R=0;
16576 GNULIB_GETPAGESIZE=0;
16577 GNULIB_GETUSERSHELL=0;
16578 GNULIB_GROUP_MEMBER=0;
16579 GNULIB_ISATTY=0;
16580 GNULIB_LCHOWN=0;
16581 GNULIB_LINK=0;
16582 GNULIB_LINKAT=0;
16583 GNULIB_LSEEK=0;
16584 GNULIB_PIPE=0;
16585 GNULIB_PIPE2=0;
16586 GNULIB_PREAD=0;
16587 GNULIB_PWRITE=0;
16588 GNULIB_READ=0;
16589 GNULIB_READLINK=0;
16590 GNULIB_READLINKAT=0;
16591 GNULIB_RMDIR=0;
16592 GNULIB_SETHOSTNAME=0;
16593 GNULIB_SLEEP=0;
16594 GNULIB_SYMLINK=0;
16595 GNULIB_SYMLINKAT=0;
16596 GNULIB_TTYNAME_R=0;
16597 GNULIB_UNISTD_H_NONBLOCKING=0;
16598 GNULIB_UNISTD_H_SIGPIPE=0;
16599 GNULIB_UNLINK=0;
16600 GNULIB_UNLINKAT=0;
16601 GNULIB_USLEEP=0;
16602 GNULIB_WRITE=0;
16603 HAVE_CHOWN=1;
16604 HAVE_DUP2=1;
16605 HAVE_DUP3=1;
16606 HAVE_EUIDACCESS=1;
16607 HAVE_FACCESSAT=1;
16608 HAVE_FCHDIR=1;
16609 HAVE_FCHOWNAT=1;
16610 HAVE_FDATASYNC=1;
16611 HAVE_FSYNC=1;
16612 HAVE_FTRUNCATE=1;
16613 HAVE_GETDTABLESIZE=1;
16614 HAVE_GETGROUPS=1;
16615 HAVE_GETHOSTNAME=1;
16616 HAVE_GETLOGIN=1;
16617 HAVE_GETPAGESIZE=1;
16618 HAVE_GROUP_MEMBER=1;
16619 HAVE_LCHOWN=1;
16620 HAVE_LINK=1;
16621 HAVE_LINKAT=1;
16622 HAVE_PIPE=1;
16623 HAVE_PIPE2=1;
16624 HAVE_PREAD=1;
16625 HAVE_PWRITE=1;
16626 HAVE_READLINK=1;
16627 HAVE_READLINKAT=1;
16628 HAVE_SETHOSTNAME=1;
16629 HAVE_SLEEP=1;
16630 HAVE_SYMLINK=1;
16631 HAVE_SYMLINKAT=1;
16632 HAVE_UNLINKAT=1;
16633 HAVE_USLEEP=1;
16634 HAVE_DECL_ENVIRON=1;
16635 HAVE_DECL_FCHDIR=1;
16636 HAVE_DECL_FDATASYNC=1;
16637 HAVE_DECL_GETDOMAINNAME=1;
16638 HAVE_DECL_GETLOGIN_R=1;
16639 HAVE_DECL_GETPAGESIZE=1;
16640 HAVE_DECL_GETUSERSHELL=1;
16641 HAVE_DECL_SETHOSTNAME=1;
16642 HAVE_DECL_TTYNAME_R=1;
16643 HAVE_OS_H=0;
16644 HAVE_SYS_PARAM_H=0;
16645 REPLACE_CHOWN=0;
16646 REPLACE_CLOSE=0;
16647 REPLACE_DUP=0;
16648 REPLACE_DUP2=0;
16649 REPLACE_FCHOWNAT=0;
16650 REPLACE_FTRUNCATE=0;
16651 REPLACE_GETCWD=0;
16652 REPLACE_GETDOMAINNAME=0;
16653 REPLACE_GETLOGIN_R=0;
16654 REPLACE_GETGROUPS=0;
16655 REPLACE_GETPAGESIZE=0;
16656 REPLACE_ISATTY=0;
16657 REPLACE_LCHOWN=0;
16658 REPLACE_LINK=0;
16659 REPLACE_LINKAT=0;
16660 REPLACE_LSEEK=0;
16661 REPLACE_PREAD=0;
16662 REPLACE_PWRITE=0;
16663 REPLACE_READ=0;
16664 REPLACE_READLINK=0;
16665 REPLACE_RMDIR=0;
16666 REPLACE_SLEEP=0;
16667 REPLACE_SYMLINK=0;
16668 REPLACE_TTYNAME_R=0;
16669 REPLACE_UNLINK=0;
16670 REPLACE_UNLINKAT=0;
16671 REPLACE_USLEEP=0;
16672 REPLACE_WRITE=0;
16673 UNISTD_H_HAVE_WINSOCK2_H=0;
16674 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16685 $as_echo_n "checking if environ is properly declared... " >&6; }
16686 if test "${gt_cv_var_environ_declaration+set}" = set; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16691 /* end confdefs.h. */
16692 #if HAVE_UNISTD_H
16693 #include <unistd.h>
16694 #endif
16695 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16696 #include <stdlib.h>
16698 extern struct { int foo; } environ;
16700 main ()
16702 environ.foo = 1;
16704 return 0;
16706 _ACEOF
16707 if ac_fn_c_try_compile "$LINENO"; then :
16708 gt_cv_var_environ_declaration=no
16709 else
16710 gt_cv_var_environ_declaration=yes
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16716 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16717 if test $gt_cv_var_environ_declaration = yes; then
16719 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16724 if test $gt_cv_var_environ_declaration != yes; then
16725 HAVE_DECL_ENVIRON=0
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
16735 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
16736 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16742 #include <sys/types.h>
16743 #include <sys/stat.h>
16745 main ()
16747 struct stat s; s.st_dm_mode;
16749 return 0;
16751 _ACEOF
16752 if ac_fn_c_try_compile "$LINENO"; then :
16753 ac_cv_struct_st_dm_mode=yes
16754 else
16755 ac_cv_struct_st_dm_mode=no
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
16760 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
16762 if test $ac_cv_struct_st_dm_mode = yes; then
16764 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
16769 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
16770 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
16771 ac_have_decl=1
16772 else
16773 ac_have_decl=0
16776 cat >>confdefs.h <<_ACEOF
16777 #define HAVE_DECL_STRMODE $ac_have_decl
16778 _ACEOF
16781 GNULIB__EXIT=0;
16782 GNULIB_ATOLL=0;
16783 GNULIB_CALLOC_POSIX=0;
16784 GNULIB_CANONICALIZE_FILE_NAME=0;
16785 GNULIB_GETLOADAVG=0;
16786 GNULIB_GETSUBOPT=0;
16787 GNULIB_GRANTPT=0;
16788 GNULIB_MALLOC_POSIX=0;
16789 GNULIB_MBTOWC=0;
16790 GNULIB_MKDTEMP=0;
16791 GNULIB_MKOSTEMP=0;
16792 GNULIB_MKOSTEMPS=0;
16793 GNULIB_MKSTEMP=0;
16794 GNULIB_MKSTEMPS=0;
16795 GNULIB_POSIX_OPENPT=0;
16796 GNULIB_PTSNAME=0;
16797 GNULIB_PTSNAME_R=0;
16798 GNULIB_PUTENV=0;
16799 GNULIB_RANDOM=0;
16800 GNULIB_RANDOM_R=0;
16801 GNULIB_REALLOC_POSIX=0;
16802 GNULIB_REALPATH=0;
16803 GNULIB_RPMATCH=0;
16804 GNULIB_SETENV=0;
16805 GNULIB_STRTOD=0;
16806 GNULIB_STRTOLL=0;
16807 GNULIB_STRTOULL=0;
16808 GNULIB_SYSTEM_POSIX=0;
16809 GNULIB_UNLOCKPT=0;
16810 GNULIB_UNSETENV=0;
16811 GNULIB_WCTOMB=0;
16812 HAVE__EXIT=1;
16813 HAVE_ATOLL=1;
16814 HAVE_CANONICALIZE_FILE_NAME=1;
16815 HAVE_DECL_GETLOADAVG=1;
16816 HAVE_GETSUBOPT=1;
16817 HAVE_GRANTPT=1;
16818 HAVE_MKDTEMP=1;
16819 HAVE_MKOSTEMP=1;
16820 HAVE_MKOSTEMPS=1;
16821 HAVE_MKSTEMP=1;
16822 HAVE_MKSTEMPS=1;
16823 HAVE_POSIX_OPENPT=1;
16824 HAVE_PTSNAME=1;
16825 HAVE_PTSNAME_R=1;
16826 HAVE_RANDOM=1;
16827 HAVE_RANDOM_H=1;
16828 HAVE_RANDOM_R=1;
16829 HAVE_REALPATH=1;
16830 HAVE_RPMATCH=1;
16831 HAVE_SETENV=1;
16832 HAVE_DECL_SETENV=1;
16833 HAVE_STRTOD=1;
16834 HAVE_STRTOLL=1;
16835 HAVE_STRTOULL=1;
16836 HAVE_STRUCT_RANDOM_DATA=1;
16837 HAVE_SYS_LOADAVG_H=0;
16838 HAVE_UNLOCKPT=1;
16839 HAVE_DECL_UNSETENV=1;
16840 REPLACE_CALLOC=0;
16841 REPLACE_CANONICALIZE_FILE_NAME=0;
16842 REPLACE_MALLOC=0;
16843 REPLACE_MBTOWC=0;
16844 REPLACE_MKSTEMP=0;
16845 REPLACE_PTSNAME_R=0;
16846 REPLACE_PUTENV=0;
16847 REPLACE_RANDOM_R=0;
16848 REPLACE_REALLOC=0;
16849 REPLACE_REALPATH=0;
16850 REPLACE_SETENV=0;
16851 REPLACE_STRTOD=0;
16852 REPLACE_UNSETENV=0;
16853 REPLACE_WCTOMB=0;
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16858 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16859 if test "${gl_cv_have_include_next+set}" = set; then :
16860 $as_echo_n "(cached) " >&6
16861 else
16862 rm -rf conftestd1a conftestd1b conftestd2
16863 mkdir conftestd1a conftestd1b conftestd2
16864 cat <<EOF > conftestd1a/conftest.h
16865 #define DEFINED_IN_CONFTESTD1
16866 #include_next <conftest.h>
16867 #ifdef DEFINED_IN_CONFTESTD2
16868 int foo;
16869 #else
16870 #error "include_next doesn't work"
16871 #endif
16873 cat <<EOF > conftestd1b/conftest.h
16874 #define DEFINED_IN_CONFTESTD1
16875 #include <stdio.h>
16876 #include_next <conftest.h>
16877 #ifdef DEFINED_IN_CONFTESTD2
16878 int foo;
16879 #else
16880 #error "include_next doesn't work"
16881 #endif
16883 cat <<EOF > conftestd2/conftest.h
16884 #ifndef DEFINED_IN_CONFTESTD1
16885 #error "include_next test doesn't work"
16886 #endif
16887 #define DEFINED_IN_CONFTESTD2
16889 gl_save_CPPFLAGS="$CPPFLAGS"
16890 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16893 #include <conftest.h>
16894 _ACEOF
16895 if ac_fn_c_try_compile "$LINENO"; then :
16896 gl_cv_have_include_next=yes
16897 else
16898 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16901 #include <conftest.h>
16902 _ACEOF
16903 if ac_fn_c_try_compile "$LINENO"; then :
16904 gl_cv_have_include_next=buggy
16905 else
16906 gl_cv_have_include_next=no
16908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912 CPPFLAGS="$gl_save_CPPFLAGS"
16913 rm -rf conftestd1a conftestd1b conftestd2
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16917 $as_echo "$gl_cv_have_include_next" >&6; }
16918 PRAGMA_SYSTEM_HEADER=
16919 if test $gl_cv_have_include_next = yes; then
16920 INCLUDE_NEXT=include_next
16921 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16922 if test -n "$GCC"; then
16923 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16925 else
16926 if test $gl_cv_have_include_next = buggy; then
16927 INCLUDE_NEXT=include
16928 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16929 else
16930 INCLUDE_NEXT=include
16931 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16938 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16939 if test "${gl_cv_pragma_columns+set}" = set; then :
16940 $as_echo_n "(cached) " >&6
16941 else
16942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h. */
16945 #ifdef __TANDEM
16946 choke me
16947 #endif
16949 _ACEOF
16950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16951 $EGREP "choke me" >/dev/null 2>&1; then :
16952 gl_cv_pragma_columns=yes
16953 else
16954 gl_cv_pragma_columns=no
16956 rm -f conftest*
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16961 $as_echo "$gl_cv_pragma_columns" >&6; }
16962 if test $gl_cv_pragma_columns = yes; then
16963 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16964 else
16965 PRAGMA_COLUMNS=
16984 if test $gl_cv_have_include_next = yes; then
16985 gl_cv_next_getopt_h='<'getopt.h'>'
16986 else
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
16988 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
16989 if test "${gl_cv_next_getopt_h+set}" = set; then :
16990 $as_echo_n "(cached) " >&6
16991 else
16993 if test $ac_cv_header_getopt_h = yes; then
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998 #include <getopt.h>
17000 _ACEOF
17001 case "$host_os" in
17002 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17003 *) gl_absname_cpp="$ac_cpp" ;;
17004 esac
17006 case "$host_os" in
17007 mingw*)
17008 gl_dirsep_regex='[/\\]'
17011 gl_dirsep_regex='\/'
17013 esac
17014 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17016 gl_header_literal_regex=`echo 'getopt.h' \
17017 | sed -e "$gl_make_literal_regex_sed"`
17018 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17019 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17020 s|^/[^/]|//&|
17024 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17025 sed -n "$gl_absolute_header_sed"`'"'
17026 else
17027 gl_cv_next_getopt_h='<'getopt.h'>'
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
17033 $as_echo "$gl_cv_next_getopt_h" >&6; }
17035 NEXT_GETOPT_H=$gl_cv_next_getopt_h
17037 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17038 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17039 gl_next_as_first_directive='<'getopt.h'>'
17040 else
17041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17042 gl_next_as_first_directive=$gl_cv_next_getopt_h
17044 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
17049 if test $ac_cv_header_getopt_h = yes; then
17050 HAVE_GETOPT_H=1
17051 else
17052 HAVE_GETOPT_H=0
17056 gl_replace_getopt=
17058 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17059 for ac_header in getopt.h
17060 do :
17061 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
17062 if test "x$ac_cv_header_getopt_h" = x""yes; then :
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_GETOPT_H 1
17065 _ACEOF
17067 else
17068 gl_replace_getopt=yes
17071 done
17075 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17076 for ac_func in getopt_long_only
17077 do :
17078 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
17079 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
17080 cat >>confdefs.h <<_ACEOF
17081 #define HAVE_GETOPT_LONG_ONLY 1
17082 _ACEOF
17084 else
17085 gl_replace_getopt=yes
17087 done
17091 if test -z "$gl_replace_getopt"; then
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
17093 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
17094 if test "${gl_cv_func_getopt_posix+set}" = set; then :
17095 $as_echo_n "(cached) " >&6
17096 else
17098 if test $cross_compiling = no; then
17099 if test "$cross_compiling" = yes; then :
17100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17102 as_fn_error "cannot run test program while cross compiling
17103 See \`config.log' for more details." "$LINENO" 5; }
17104 else
17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17106 /* end confdefs.h. */
17108 #include <unistd.h>
17109 #include <stdlib.h>
17110 #include <string.h>
17113 main ()
17115 static char program[] = "program";
17116 static char a[] = "-a";
17117 static char foo[] = "foo";
17118 static char bar[] = "bar";
17119 char *argv[] = { program, a, foo, bar, NULL };
17120 int c;
17122 c = getopt (4, argv, "ab");
17123 if (!(c == 'a'))
17124 return 1;
17125 c = getopt (4, argv, "ab");
17126 if (!(c == -1))
17127 return 2;
17128 if (!(optind == 2))
17129 return 3;
17130 return 0;
17133 _ACEOF
17134 if ac_fn_c_try_run "$LINENO"; then :
17135 gl_cv_func_getopt_posix=maybe
17136 else
17137 gl_cv_func_getopt_posix=no
17139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17140 conftest.$ac_objext conftest.beam conftest.$ac_ext
17143 if test $gl_cv_func_getopt_posix = maybe; then
17144 if test "$cross_compiling" = yes; then :
17145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17147 as_fn_error "cannot run test program while cross compiling
17148 See \`config.log' for more details." "$LINENO" 5; }
17149 else
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17153 #include <unistd.h>
17154 #include <stdlib.h>
17155 #include <string.h>
17158 main ()
17160 static char program[] = "program";
17161 static char donald[] = "donald";
17162 static char p[] = "-p";
17163 static char billy[] = "billy";
17164 static char duck[] = "duck";
17165 static char a[] = "-a";
17166 static char bar[] = "bar";
17167 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
17168 int c;
17170 c = getopt (7, argv, "+abp:q:");
17171 if (!(c == -1))
17172 return 4;
17173 if (!(strcmp (argv[0], "program") == 0))
17174 return 5;
17175 if (!(strcmp (argv[1], "donald") == 0))
17176 return 6;
17177 if (!(strcmp (argv[2], "-p") == 0))
17178 return 7;
17179 if (!(strcmp (argv[3], "billy") == 0))
17180 return 8;
17181 if (!(strcmp (argv[4], "duck") == 0))
17182 return 9;
17183 if (!(strcmp (argv[5], "-a") == 0))
17184 return 10;
17185 if (!(strcmp (argv[6], "bar") == 0))
17186 return 11;
17187 if (!(optind == 1))
17188 return 12;
17189 return 0;
17192 _ACEOF
17193 if ac_fn_c_try_run "$LINENO"; then :
17194 gl_cv_func_getopt_posix=maybe
17195 else
17196 gl_cv_func_getopt_posix=no
17198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17199 conftest.$ac_objext conftest.beam conftest.$ac_ext
17203 if test $gl_cv_func_getopt_posix = maybe; then
17204 if test "$cross_compiling" = yes; then :
17205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17207 as_fn_error "cannot run test program while cross compiling
17208 See \`config.log' for more details." "$LINENO" 5; }
17209 else
17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211 /* end confdefs.h. */
17213 #include <unistd.h>
17214 #include <stdlib.h>
17215 #include <string.h>
17218 main ()
17220 static char program[] = "program";
17221 static char ab[] = "-ab";
17222 char *argv[3] = { program, ab, NULL };
17223 if (getopt (2, argv, "ab:") != 'a')
17224 return 13;
17225 if (getopt (2, argv, "ab:") != '?')
17226 return 14;
17227 if (optopt != 'b')
17228 return 15;
17229 if (optind != 2)
17230 return 16;
17231 return 0;
17234 _ACEOF
17235 if ac_fn_c_try_run "$LINENO"; then :
17236 gl_cv_func_getopt_posix=yes
17237 else
17238 gl_cv_func_getopt_posix=no
17240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17241 conftest.$ac_objext conftest.beam conftest.$ac_ext
17245 else
17246 case "$host_os" in
17247 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
17248 *) gl_cv_func_getopt_posix="guessing yes";;
17249 esac
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
17254 $as_echo "$gl_cv_func_getopt_posix" >&6; }
17255 case "$gl_cv_func_getopt_posix" in
17256 *no) gl_replace_getopt=yes ;;
17257 esac
17260 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
17262 $as_echo_n "checking for working GNU getopt function... " >&6; }
17263 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
17264 $as_echo_n "(cached) " >&6
17265 else
17266 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
17267 # optstring is necessary for programs like m4 that have POSIX-mandated
17268 # semantics for supporting options interspersed with files.
17269 # Also, since getopt_long is a GNU extension, we require optind=0.
17270 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
17271 # so take care to revert to the correct (non-)export state.
17272 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
17273 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
17274 xx) gl_had_POSIXLY_CORRECT=exported ;;
17275 x) gl_had_POSIXLY_CORRECT=yes ;;
17276 *) gl_had_POSIXLY_CORRECT= ;;
17277 esac
17278 POSIXLY_CORRECT=1
17279 export POSIXLY_CORRECT
17280 if test "$cross_compiling" = yes; then :
17281 gl_cv_func_getopt_gnu="guessing no"
17283 else
17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h. */
17286 #include <getopt.h>
17287 #include <stddef.h>
17288 #include <string.h>
17290 #include <stdlib.h>
17291 #if defined __MACH__ && defined __APPLE__
17292 /* Avoid a crash on Mac OS X. */
17293 #include <mach/mach.h>
17294 #include <mach/mach_error.h>
17295 #include <mach/thread_status.h>
17296 #include <mach/exception.h>
17297 #include <mach/task.h>
17298 #include <pthread.h>
17299 /* The exception port on which our thread listens. */
17300 static mach_port_t our_exception_port;
17301 /* The main function of the thread listening for exceptions of type
17302 EXC_BAD_ACCESS. */
17303 static void *
17304 mach_exception_thread (void *arg)
17306 /* Buffer for a message to be received. */
17307 struct {
17308 mach_msg_header_t head;
17309 mach_msg_body_t msgh_body;
17310 char data[1024];
17311 } msg;
17312 mach_msg_return_t retval;
17313 /* Wait for a message on the exception port. */
17314 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
17315 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
17316 if (retval != MACH_MSG_SUCCESS)
17317 abort ();
17318 exit (1);
17320 static void
17321 nocrash_init (void)
17323 mach_port_t self = mach_task_self ();
17324 /* Allocate a port on which the thread shall listen for exceptions. */
17325 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
17326 == KERN_SUCCESS) {
17327 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
17328 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
17329 MACH_MSG_TYPE_MAKE_SEND)
17330 == KERN_SUCCESS) {
17331 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
17332 for us. */
17333 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
17334 /* Create the thread listening on the exception port. */
17335 pthread_attr_t attr;
17336 pthread_t thread;
17337 if (pthread_attr_init (&attr) == 0
17338 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
17339 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
17340 pthread_attr_destroy (&attr);
17341 /* Replace the exception port info for these exceptions with our own.
17342 Note that we replace the exception port for the entire task, not only
17343 for a particular thread. This has the effect that when our exception
17344 port gets the message, the thread specific exception port has already
17345 been asked, and we don't need to bother about it.
17346 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
17347 task_set_exception_ports (self, mask, our_exception_port,
17348 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
17353 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17354 /* Avoid a crash on native Windows. */
17355 #define WIN32_LEAN_AND_MEAN
17356 #include <windows.h>
17357 #include <winerror.h>
17358 static LONG WINAPI
17359 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
17361 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
17363 case EXCEPTION_ACCESS_VIOLATION:
17364 case EXCEPTION_IN_PAGE_ERROR:
17365 case EXCEPTION_STACK_OVERFLOW:
17366 case EXCEPTION_GUARD_PAGE:
17367 case EXCEPTION_PRIV_INSTRUCTION:
17368 case EXCEPTION_ILLEGAL_INSTRUCTION:
17369 case EXCEPTION_DATATYPE_MISALIGNMENT:
17370 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
17371 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
17372 exit (1);
17374 return EXCEPTION_CONTINUE_SEARCH;
17376 static void
17377 nocrash_init (void)
17379 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
17381 #else
17382 /* Avoid a crash on POSIX systems. */
17383 #include <signal.h>
17384 /* A POSIX signal handler. */
17385 static void
17386 exception_handler (int sig)
17388 exit (1);
17390 static void
17391 nocrash_init (void)
17393 #ifdef SIGSEGV
17394 signal (SIGSEGV, exception_handler);
17395 #endif
17396 #ifdef SIGBUS
17397 signal (SIGBUS, exception_handler);
17398 #endif
17400 #endif
17404 main ()
17407 int result = 0;
17409 nocrash_init();
17411 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
17412 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
17413 OSF/1 5.1, Solaris 10. */
17415 static char conftest[] = "conftest";
17416 static char plus[] = "-+";
17417 char *argv[3] = { conftest, plus, NULL };
17418 opterr = 0;
17419 if (getopt (2, argv, "+a") != '?')
17420 result |= 1;
17422 /* This code succeeds on glibc 2.8, mingw,
17423 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
17424 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
17426 static char program[] = "program";
17427 static char p[] = "-p";
17428 static char foo[] = "foo";
17429 static char bar[] = "bar";
17430 char *argv[] = { program, p, foo, bar, NULL };
17432 optind = 1;
17433 if (getopt (4, argv, "p::") != 'p')
17434 result |= 2;
17435 else if (optarg != NULL)
17436 result |= 4;
17437 else if (getopt (4, argv, "p::") != -1)
17438 result |= 6;
17439 else if (optind != 2)
17440 result |= 8;
17442 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
17444 static char program[] = "program";
17445 static char foo[] = "foo";
17446 static char p[] = "-p";
17447 char *argv[] = { program, foo, p, NULL };
17448 optind = 0;
17449 if (getopt (3, argv, "-p") != 1)
17450 result |= 16;
17451 else if (getopt (3, argv, "-p") != 'p')
17452 result |= 16;
17454 /* This code fails on glibc 2.11. */
17456 static char program[] = "program";
17457 static char b[] = "-b";
17458 static char a[] = "-a";
17459 char *argv[] = { program, b, a, NULL };
17460 optind = opterr = 0;
17461 if (getopt (3, argv, "+:a:b") != 'b')
17462 result |= 32;
17463 else if (getopt (3, argv, "+:a:b") != ':')
17464 result |= 32;
17466 /* This code dumps core on glibc 2.14. */
17468 static char program[] = "program";
17469 static char w[] = "-W";
17470 static char dummy[] = "dummy";
17471 char *argv[] = { program, w, dummy, NULL };
17472 optind = opterr = 1;
17473 if (getopt (3, argv, "W;") != 'W')
17474 result |= 64;
17476 return result;
17479 return 0;
17481 _ACEOF
17482 if ac_fn_c_try_run "$LINENO"; then :
17483 gl_cv_func_getopt_gnu=yes
17484 else
17485 gl_cv_func_getopt_gnu=no
17487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17488 conftest.$ac_objext conftest.beam conftest.$ac_ext
17491 case $gl_had_POSIXLY_CORRECT in
17492 exported) ;;
17493 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
17494 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
17495 esac
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
17499 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
17500 if test "$gl_cv_func_getopt_gnu" != yes; then
17501 gl_replace_getopt=yes
17502 else
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
17504 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
17505 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 if test "$cross_compiling" = yes; then :
17509 case "$host_os" in
17510 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
17511 *) gl_cv_func_getopt_long_gnu="guessing yes";;
17512 esac
17514 else
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17517 #include <getopt.h>
17518 #include <stddef.h>
17519 #include <string.h>
17522 main ()
17524 static const struct option long_options[] =
17526 { "xtremely-",no_argument, NULL, 1003 },
17527 { "xtra", no_argument, NULL, 1001 },
17528 { "xtreme", no_argument, NULL, 1002 },
17529 { "xtremely", no_argument, NULL, 1003 },
17530 { NULL, 0, NULL, 0 }
17532 /* This code fails on OpenBSD 5.0. */
17534 static char program[] = "program";
17535 static char xtremel[] = "--xtremel";
17536 char *argv[] = { program, xtremel, NULL };
17537 int option_index;
17538 optind = 1; opterr = 0;
17539 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
17540 return 1;
17542 return 0;
17545 return 0;
17547 _ACEOF
17548 if ac_fn_c_try_run "$LINENO"; then :
17549 gl_cv_func_getopt_long_gnu=yes
17550 else
17551 gl_cv_func_getopt_long_gnu=no
17553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17554 conftest.$ac_objext conftest.beam conftest.$ac_ext
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
17560 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
17561 case "$gl_cv_func_getopt_long_gnu" in
17562 *yes) ;;
17563 *) gl_replace_getopt=yes ;;
17564 esac
17573 REPLACE_GETOPT=0
17574 if test -n "$gl_replace_getopt"; then
17575 REPLACE_GETOPT=1
17578 if test $REPLACE_GETOPT = 1; then
17580 GETOPT_H=getopt.h
17582 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17588 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
17589 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
17590 ac_have_decl=1
17591 else
17592 ac_have_decl=0
17595 cat >>confdefs.h <<_ACEOF
17596 #define HAVE_DECL_GETENV $ac_have_decl
17597 _ACEOF
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17605 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17606 if test "${ac_cv_c_restrict+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17609 ac_cv_c_restrict=no
17610 # The order here caters to the fact that C++ does not require restrict.
17611 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17614 typedef int * int_ptr;
17615 int foo (int_ptr $ac_kw ip) {
17616 return ip[0];
17619 main ()
17621 int s[1];
17622 int * $ac_kw t = s;
17623 t[0] = 0;
17624 return foo(t)
17626 return 0;
17628 _ACEOF
17629 if ac_fn_c_try_compile "$LINENO"; then :
17630 ac_cv_c_restrict=$ac_kw
17632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 test "$ac_cv_c_restrict" != no && break
17634 done
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17638 $as_echo "$ac_cv_c_restrict" >&6; }
17640 case $ac_cv_c_restrict in
17641 restrict) ;;
17642 no) $as_echo "#define restrict /**/" >>confdefs.h
17644 *) cat >>confdefs.h <<_ACEOF
17645 #define restrict $ac_cv_c_restrict
17646 _ACEOF
17648 esac
17651 GNULIB_GETTIMEOFDAY=0;
17652 HAVE_GETTIMEOFDAY=1;
17653 HAVE_STRUCT_TIMEVAL=1;
17654 HAVE_SYS_TIME_H=1;
17655 REPLACE_GETTIMEOFDAY=0;
17656 REPLACE_STRUCT_TIMEVAL=0;
17673 if test $gl_cv_have_include_next = yes; then
17674 gl_cv_next_sys_time_h='<'sys/time.h'>'
17675 else
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17677 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17678 if test "${gl_cv_next_sys_time_h+set}" = set; then :
17679 $as_echo_n "(cached) " >&6
17680 else
17682 if test $ac_cv_header_sys_time_h = yes; then
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17687 #include <sys/time.h>
17689 _ACEOF
17690 case "$host_os" in
17691 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17692 *) gl_absname_cpp="$ac_cpp" ;;
17693 esac
17695 case "$host_os" in
17696 mingw*)
17697 gl_dirsep_regex='[/\\]'
17700 gl_dirsep_regex='\/'
17702 esac
17703 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17705 gl_header_literal_regex=`echo 'sys/time.h' \
17706 | sed -e "$gl_make_literal_regex_sed"`
17707 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17708 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17709 s|^/[^/]|//&|
17713 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17714 sed -n "$gl_absolute_header_sed"`'"'
17715 else
17716 gl_cv_next_sys_time_h='<'sys/time.h'>'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17722 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17724 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17726 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17728 gl_next_as_first_directive='<'sys/time.h'>'
17729 else
17730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17731 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17733 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17739 if test $ac_cv_header_sys_time_h != yes; then
17740 HAVE_SYS_TIME_H=0
17747 if test $ac_cv_header_sys_socket_h != yes; then
17748 for ac_header in winsock2.h
17749 do :
17750 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17751 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
17752 cat >>confdefs.h <<_ACEOF
17753 #define HAVE_WINSOCK2_H 1
17754 _ACEOF
17758 done
17761 if test "$ac_cv_header_winsock2_h" = yes; then
17762 HAVE_WINSOCK2_H=1
17763 UNISTD_H_HAVE_WINSOCK2_H=1
17764 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17765 else
17766 HAVE_WINSOCK2_H=0
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17771 $as_echo_n "checking for struct timeval... " >&6; }
17772 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
17773 $as_echo_n "(cached) " >&6
17774 else
17775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777 #if HAVE_SYS_TIME_H
17778 #include <sys/time.h>
17779 #endif
17780 #include <time.h>
17781 #if HAVE_WINSOCK2_H
17782 # include <winsock2.h>
17783 #endif
17786 main ()
17788 static struct timeval x; x.tv_sec = x.tv_usec;
17790 return 0;
17792 _ACEOF
17793 if ac_fn_c_try_compile "$LINENO"; then :
17794 gl_cv_sys_struct_timeval=yes
17795 else
17796 gl_cv_sys_struct_timeval=no
17798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17802 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17803 if test $gl_cv_sys_struct_timeval != yes; then
17804 HAVE_STRUCT_TIMEVAL=0
17805 else
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17807 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17808 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
17809 $as_echo_n "(cached) " >&6
17810 else
17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17813 #if HAVE_SYS_TIME_H
17814 #include <sys/time.h>
17815 #endif
17816 #include <time.h>
17817 #if HAVE_WINSOCK2_H
17818 # include <winsock2.h>
17819 #endif
17822 main ()
17824 static struct timeval x;
17825 typedef int verify_tv_sec_type[
17826 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17830 return 0;
17832 _ACEOF
17833 if ac_fn_c_try_compile "$LINENO"; then :
17834 gl_cv_sys_struct_timeval_tv_sec=yes
17835 else
17836 gl_cv_sys_struct_timeval_tv_sec=no
17838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17842 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17843 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17844 REPLACE_STRUCT_TIMEVAL=1
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17855 $as_echo_n "checking for unsigned long long int... " >&6; }
17856 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
17857 $as_echo_n "(cached) " >&6
17858 else
17859 ac_cv_type_unsigned_long_long_int=yes
17860 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17864 /* For now, do not test the preprocessor; as of 2007 there are too many
17865 implementations with broken preprocessors. Perhaps this can
17866 be revisited in 2012. In the meantime, code should not expect
17867 #if to work with literals wider than 32 bits. */
17868 /* Test literals. */
17869 long long int ll = 9223372036854775807ll;
17870 long long int nll = -9223372036854775807LL;
17871 unsigned long long int ull = 18446744073709551615ULL;
17872 /* Test constant expressions. */
17873 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17874 ? 1 : -1)];
17875 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17876 ? 1 : -1)];
17877 int i = 63;
17879 main ()
17881 /* Test availability of runtime routines for shift and division. */
17882 long long int llmax = 9223372036854775807ll;
17883 unsigned long long int ullmax = 18446744073709551615ull;
17884 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17885 | (llmax / ll) | (llmax % ll)
17886 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17887 | (ullmax / ull) | (ullmax % ull));
17889 return 0;
17892 _ACEOF
17893 if ac_fn_c_try_link "$LINENO"; then :
17895 else
17896 ac_cv_type_unsigned_long_long_int=no
17898 rm -f core conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17903 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17904 if test $ac_cv_type_unsigned_long_long_int = yes; then
17906 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17913 $as_echo_n "checking for long long int... " >&6; }
17914 if test "${ac_cv_type_long_long_int+set}" = set; then :
17915 $as_echo_n "(cached) " >&6
17916 else
17917 ac_cv_type_long_long_int=yes
17918 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17919 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17920 if test $ac_cv_type_long_long_int = yes; then
17921 if test "$cross_compiling" = yes; then :
17923 else
17924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925 /* end confdefs.h. */
17926 #include <limits.h>
17927 #ifndef LLONG_MAX
17928 # define HALF \
17929 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17930 # define LLONG_MAX (HALF - 1 + HALF)
17931 #endif
17933 main ()
17935 long long int n = 1;
17936 int i;
17937 for (i = 0; ; i++)
17939 long long int m = n << i;
17940 if (m >> i != n)
17941 return 1;
17942 if (LLONG_MAX / 2 < m)
17943 break;
17945 return 0;
17947 return 0;
17949 _ACEOF
17950 if ac_fn_c_try_run "$LINENO"; then :
17952 else
17953 ac_cv_type_long_long_int=no
17955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17956 conftest.$ac_objext conftest.beam conftest.$ac_ext
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17963 $as_echo "$ac_cv_type_long_long_int" >&6; }
17964 if test $ac_cv_type_long_long_int = yes; then
17966 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17975 gl_cv_c_multiarch=no
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17978 #ifndef __APPLE_CC__
17979 not a universal capable compiler
17980 #endif
17981 typedef int dummy;
17983 _ACEOF
17984 if ac_fn_c_try_compile "$LINENO"; then :
17986 arch=
17987 prev=
17988 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17989 if test -n "$prev"; then
17990 case $word in
17991 i?86 | x86_64 | ppc | ppc64)
17992 if test -z "$arch" || test "$arch" = "$word"; then
17993 arch="$word"
17994 else
17995 gl_cv_c_multiarch=yes
17998 esac
17999 prev=
18000 else
18001 if test "x$word" = "x-arch"; then
18002 prev=arch
18005 done
18008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18009 if test $gl_cv_c_multiarch = yes; then
18010 APPLE_UNIVERSAL_BUILD=1
18011 else
18012 APPLE_UNIVERSAL_BUILD=0
18019 if test $ac_cv_type_long_long_int = yes; then
18020 HAVE_LONG_LONG_INT=1
18021 else
18022 HAVE_LONG_LONG_INT=0
18026 if test $ac_cv_type_unsigned_long_long_int = yes; then
18027 HAVE_UNSIGNED_LONG_LONG_INT=1
18028 else
18029 HAVE_UNSIGNED_LONG_LONG_INT=0
18034 if test $ac_cv_header_wchar_h = yes; then
18035 HAVE_WCHAR_H=1
18036 else
18037 HAVE_WCHAR_H=0
18041 if test $ac_cv_header_inttypes_h = yes; then
18042 HAVE_INTTYPES_H=1
18043 else
18044 HAVE_INTTYPES_H=0
18048 if test $ac_cv_header_sys_types_h = yes; then
18049 HAVE_SYS_TYPES_H=1
18050 else
18051 HAVE_SYS_TYPES_H=0
18064 if test $gl_cv_have_include_next = yes; then
18065 gl_cv_next_stdint_h='<'stdint.h'>'
18066 else
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18068 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18069 if test "${gl_cv_next_stdint_h+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18071 else
18073 if test $ac_cv_header_stdint_h = yes; then
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078 #include <stdint.h>
18080 _ACEOF
18081 case "$host_os" in
18082 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18083 *) gl_absname_cpp="$ac_cpp" ;;
18084 esac
18086 case "$host_os" in
18087 mingw*)
18088 gl_dirsep_regex='[/\\]'
18091 gl_dirsep_regex='\/'
18093 esac
18094 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18096 gl_header_literal_regex=`echo 'stdint.h' \
18097 | sed -e "$gl_make_literal_regex_sed"`
18098 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18099 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18100 s|^/[^/]|//&|
18104 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18105 sed -n "$gl_absolute_header_sed"`'"'
18106 else
18107 gl_cv_next_stdint_h='<'stdint.h'>'
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18113 $as_echo "$gl_cv_next_stdint_h" >&6; }
18115 NEXT_STDINT_H=$gl_cv_next_stdint_h
18117 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18118 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18119 gl_next_as_first_directive='<'stdint.h'>'
18120 else
18121 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18122 gl_next_as_first_directive=$gl_cv_next_stdint_h
18124 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18129 if test $ac_cv_header_stdint_h = yes; then
18130 HAVE_STDINT_H=1
18131 else
18132 HAVE_STDINT_H=0
18136 if test $ac_cv_header_stdint_h = yes; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18138 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18139 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
18140 $as_echo_n "(cached) " >&6
18141 else
18142 gl_cv_header_working_stdint_h=no
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18147 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18148 #include <stdint.h>
18149 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18150 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18151 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18152 #endif
18155 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18156 included before <wchar.h>. */
18157 #include <stddef.h>
18158 #include <signal.h>
18159 #if HAVE_WCHAR_H
18160 # include <stdio.h>
18161 # include <time.h>
18162 # include <wchar.h>
18163 #endif
18166 #ifdef INT8_MAX
18167 int8_t a1 = INT8_MAX;
18168 int8_t a1min = INT8_MIN;
18169 #endif
18170 #ifdef INT16_MAX
18171 int16_t a2 = INT16_MAX;
18172 int16_t a2min = INT16_MIN;
18173 #endif
18174 #ifdef INT32_MAX
18175 int32_t a3 = INT32_MAX;
18176 int32_t a3min = INT32_MIN;
18177 #endif
18178 #ifdef INT64_MAX
18179 int64_t a4 = INT64_MAX;
18180 int64_t a4min = INT64_MIN;
18181 #endif
18182 #ifdef UINT8_MAX
18183 uint8_t b1 = UINT8_MAX;
18184 #else
18185 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18186 #endif
18187 #ifdef UINT16_MAX
18188 uint16_t b2 = UINT16_MAX;
18189 #endif
18190 #ifdef UINT32_MAX
18191 uint32_t b3 = UINT32_MAX;
18192 #endif
18193 #ifdef UINT64_MAX
18194 uint64_t b4 = UINT64_MAX;
18195 #endif
18196 int_least8_t c1 = INT8_C (0x7f);
18197 int_least8_t c1max = INT_LEAST8_MAX;
18198 int_least8_t c1min = INT_LEAST8_MIN;
18199 int_least16_t c2 = INT16_C (0x7fff);
18200 int_least16_t c2max = INT_LEAST16_MAX;
18201 int_least16_t c2min = INT_LEAST16_MIN;
18202 int_least32_t c3 = INT32_C (0x7fffffff);
18203 int_least32_t c3max = INT_LEAST32_MAX;
18204 int_least32_t c3min = INT_LEAST32_MIN;
18205 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18206 int_least64_t c4max = INT_LEAST64_MAX;
18207 int_least64_t c4min = INT_LEAST64_MIN;
18208 uint_least8_t d1 = UINT8_C (0xff);
18209 uint_least8_t d1max = UINT_LEAST8_MAX;
18210 uint_least16_t d2 = UINT16_C (0xffff);
18211 uint_least16_t d2max = UINT_LEAST16_MAX;
18212 uint_least32_t d3 = UINT32_C (0xffffffff);
18213 uint_least32_t d3max = UINT_LEAST32_MAX;
18214 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18215 uint_least64_t d4max = UINT_LEAST64_MAX;
18216 int_fast8_t e1 = INT_FAST8_MAX;
18217 int_fast8_t e1min = INT_FAST8_MIN;
18218 int_fast16_t e2 = INT_FAST16_MAX;
18219 int_fast16_t e2min = INT_FAST16_MIN;
18220 int_fast32_t e3 = INT_FAST32_MAX;
18221 int_fast32_t e3min = INT_FAST32_MIN;
18222 int_fast64_t e4 = INT_FAST64_MAX;
18223 int_fast64_t e4min = INT_FAST64_MIN;
18224 uint_fast8_t f1 = UINT_FAST8_MAX;
18225 uint_fast16_t f2 = UINT_FAST16_MAX;
18226 uint_fast32_t f3 = UINT_FAST32_MAX;
18227 uint_fast64_t f4 = UINT_FAST64_MAX;
18228 #ifdef INTPTR_MAX
18229 intptr_t g = INTPTR_MAX;
18230 intptr_t gmin = INTPTR_MIN;
18231 #endif
18232 #ifdef UINTPTR_MAX
18233 uintptr_t h = UINTPTR_MAX;
18234 #endif
18235 intmax_t i = INTMAX_MAX;
18236 uintmax_t j = UINTMAX_MAX;
18238 #include <limits.h> /* for CHAR_BIT */
18239 #define TYPE_MINIMUM(t) \
18240 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18241 #define TYPE_MAXIMUM(t) \
18242 ((t) ((t) 0 < (t) -1 \
18243 ? (t) -1 \
18244 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18245 struct s {
18246 int check_PTRDIFF:
18247 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18248 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18249 ? 1 : -1;
18250 /* Detect bug in FreeBSD 6.0 / ia64. */
18251 int check_SIG_ATOMIC:
18252 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18253 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18254 ? 1 : -1;
18255 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18256 int check_WCHAR:
18257 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18258 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18259 ? 1 : -1;
18260 /* Detect bug in mingw. */
18261 int check_WINT:
18262 WINT_MIN == TYPE_MINIMUM (wint_t)
18263 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18264 ? 1 : -1;
18266 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18267 int check_UINT8_C:
18268 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18269 int check_UINT16_C:
18270 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18272 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18273 #ifdef UINT8_MAX
18274 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18275 #endif
18276 #ifdef UINT16_MAX
18277 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18278 #endif
18279 #ifdef UINT32_MAX
18280 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18281 #endif
18282 #ifdef UINT64_MAX
18283 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18284 #endif
18285 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18286 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18287 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18288 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18289 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18290 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18291 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18292 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18293 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18294 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18295 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18299 main ()
18303 return 0;
18305 _ACEOF
18306 if ac_fn_c_try_compile "$LINENO"; then :
18307 if test "$cross_compiling" = yes; then :
18308 gl_cv_header_working_stdint_h=yes
18310 else
18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18315 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18316 #include <stdint.h>
18319 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18320 included before <wchar.h>. */
18321 #include <stddef.h>
18322 #include <signal.h>
18323 #if HAVE_WCHAR_H
18324 # include <stdio.h>
18325 # include <time.h>
18326 # include <wchar.h>
18327 #endif
18330 #include <stdio.h>
18331 #include <string.h>
18332 #define MVAL(macro) MVAL1(macro)
18333 #define MVAL1(expression) #expression
18334 static const char *macro_values[] =
18336 #ifdef INT8_MAX
18337 MVAL (INT8_MAX),
18338 #endif
18339 #ifdef INT16_MAX
18340 MVAL (INT16_MAX),
18341 #endif
18342 #ifdef INT32_MAX
18343 MVAL (INT32_MAX),
18344 #endif
18345 #ifdef INT64_MAX
18346 MVAL (INT64_MAX),
18347 #endif
18348 #ifdef UINT8_MAX
18349 MVAL (UINT8_MAX),
18350 #endif
18351 #ifdef UINT16_MAX
18352 MVAL (UINT16_MAX),
18353 #endif
18354 #ifdef UINT32_MAX
18355 MVAL (UINT32_MAX),
18356 #endif
18357 #ifdef UINT64_MAX
18358 MVAL (UINT64_MAX),
18359 #endif
18360 NULL
18364 main ()
18367 const char **mv;
18368 for (mv = macro_values; *mv != NULL; mv++)
18370 const char *value = *mv;
18371 /* Test whether it looks like a cast expression. */
18372 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18373 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18374 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18375 || strncmp (value, "((int)"/*)*/, 6) == 0
18376 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18377 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18378 return mv - macro_values + 1;
18380 return 0;
18383 return 0;
18385 _ACEOF
18386 if ac_fn_c_try_run "$LINENO"; then :
18387 gl_cv_header_working_stdint_h=yes
18389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18390 conftest.$ac_objext conftest.beam conftest.$ac_ext
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18399 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18401 if test "$gl_cv_header_working_stdint_h" = yes; then
18402 STDINT_H=
18403 else
18404 for ac_header in sys/inttypes.h sys/bitypes.h
18405 do :
18406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18408 eval as_val=\$$as_ac_Header
18409 if test "x$as_val" = x""yes; then :
18410 cat >>confdefs.h <<_ACEOF
18411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18412 _ACEOF
18416 done
18418 if test $ac_cv_header_sys_inttypes_h = yes; then
18419 HAVE_SYS_INTTYPES_H=1
18420 else
18421 HAVE_SYS_INTTYPES_H=0
18424 if test $ac_cv_header_sys_bitypes_h = yes; then
18425 HAVE_SYS_BITYPES_H=1
18426 else
18427 HAVE_SYS_BITYPES_H=0
18433 if test $APPLE_UNIVERSAL_BUILD = 0; then
18436 for gltype in ptrdiff_t size_t ; do
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18438 $as_echo_n "checking for bit size of $gltype... " >&6; }
18439 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18440 $as_echo_n "(cached) " >&6
18441 else
18442 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18443 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18444 included before <wchar.h>. */
18445 #include <stddef.h>
18446 #include <signal.h>
18447 #if HAVE_WCHAR_H
18448 # include <stdio.h>
18449 # include <time.h>
18450 # include <wchar.h>
18451 #endif
18453 #include <limits.h>"; then :
18455 else
18456 result=unknown
18459 eval gl_cv_bitsizeof_${gltype}=\$result
18462 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18464 $as_echo "$ac_res" >&6; }
18465 eval result=\$gl_cv_bitsizeof_${gltype}
18466 if test $result = unknown; then
18467 result=0
18469 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18470 cat >>confdefs.h <<_ACEOF
18471 #define BITSIZEOF_${GLTYPE} $result
18472 _ACEOF
18474 eval BITSIZEOF_${GLTYPE}=\$result
18475 done
18481 for gltype in sig_atomic_t wchar_t wint_t ; do
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18483 $as_echo_n "checking for bit size of $gltype... " >&6; }
18484 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
18485 $as_echo_n "(cached) " >&6
18486 else
18487 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18488 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18489 included before <wchar.h>. */
18490 #include <stddef.h>
18491 #include <signal.h>
18492 #if HAVE_WCHAR_H
18493 # include <stdio.h>
18494 # include <time.h>
18495 # include <wchar.h>
18496 #endif
18498 #include <limits.h>"; then :
18500 else
18501 result=unknown
18504 eval gl_cv_bitsizeof_${gltype}=\$result
18507 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18509 $as_echo "$ac_res" >&6; }
18510 eval result=\$gl_cv_bitsizeof_${gltype}
18511 if test $result = unknown; then
18512 result=0
18514 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18515 cat >>confdefs.h <<_ACEOF
18516 #define BITSIZEOF_${GLTYPE} $result
18517 _ACEOF
18519 eval BITSIZEOF_${GLTYPE}=\$result
18520 done
18525 for gltype in sig_atomic_t wchar_t wint_t ; do
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18527 $as_echo_n "checking whether $gltype is signed... " >&6; }
18528 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
18529 $as_echo_n "(cached) " >&6
18530 else
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18534 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18535 included before <wchar.h>. */
18536 #include <stddef.h>
18537 #include <signal.h>
18538 #if HAVE_WCHAR_H
18539 # include <stdio.h>
18540 # include <time.h>
18541 # include <wchar.h>
18542 #endif
18544 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18546 main ()
18550 return 0;
18552 _ACEOF
18553 if ac_fn_c_try_compile "$LINENO"; then :
18554 result=yes
18555 else
18556 result=no
18558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559 eval gl_cv_type_${gltype}_signed=\$result
18562 eval ac_res=\$gl_cv_type_${gltype}_signed
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18564 $as_echo "$ac_res" >&6; }
18565 eval result=\$gl_cv_type_${gltype}_signed
18566 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18567 if test "$result" = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define HAVE_SIGNED_${GLTYPE} 1
18570 _ACEOF
18572 eval HAVE_SIGNED_${GLTYPE}=1
18573 else
18574 eval HAVE_SIGNED_${GLTYPE}=0
18576 done
18579 gl_cv_type_ptrdiff_t_signed=yes
18580 gl_cv_type_size_t_signed=no
18581 if test $APPLE_UNIVERSAL_BUILD = 0; then
18584 for gltype in ptrdiff_t size_t ; do
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18586 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18587 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18588 $as_echo_n "(cached) " >&6
18589 else
18590 eval gl_cv_type_${gltype}_suffix=no
18591 eval result=\$gl_cv_type_${gltype}_signed
18592 if test "$result" = yes; then
18593 glsufu=
18594 else
18595 glsufu=u
18597 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18598 case $glsuf in
18599 '') gltype1='int';;
18600 l) gltype1='long int';;
18601 ll) gltype1='long long int';;
18602 i64) gltype1='__int64';;
18603 u) gltype1='unsigned int';;
18604 ul) gltype1='unsigned long int';;
18605 ull) gltype1='unsigned long long int';;
18606 ui64)gltype1='unsigned __int64';;
18607 esac
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18612 included before <wchar.h>. */
18613 #include <stddef.h>
18614 #include <signal.h>
18615 #if HAVE_WCHAR_H
18616 # include <stdio.h>
18617 # include <time.h>
18618 # include <wchar.h>
18619 #endif
18621 extern $gltype foo;
18622 extern $gltype1 foo;
18624 main ()
18628 return 0;
18630 _ACEOF
18631 if ac_fn_c_try_compile "$LINENO"; then :
18632 eval gl_cv_type_${gltype}_suffix=\$glsuf
18634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 eval result=\$gl_cv_type_${gltype}_suffix
18636 test "$result" != no && break
18637 done
18639 eval ac_res=\$gl_cv_type_${gltype}_suffix
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18641 $as_echo "$ac_res" >&6; }
18642 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18643 eval result=\$gl_cv_type_${gltype}_suffix
18644 test "$result" = no && result=
18645 eval ${GLTYPE}_SUFFIX=\$result
18646 cat >>confdefs.h <<_ACEOF
18647 #define ${GLTYPE}_SUFFIX $result
18648 _ACEOF
18650 done
18656 for gltype in sig_atomic_t wchar_t wint_t ; do
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18658 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18659 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
18660 $as_echo_n "(cached) " >&6
18661 else
18662 eval gl_cv_type_${gltype}_suffix=no
18663 eval result=\$gl_cv_type_${gltype}_signed
18664 if test "$result" = yes; then
18665 glsufu=
18666 else
18667 glsufu=u
18669 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18670 case $glsuf in
18671 '') gltype1='int';;
18672 l) gltype1='long int';;
18673 ll) gltype1='long long int';;
18674 i64) gltype1='__int64';;
18675 u) gltype1='unsigned int';;
18676 ul) gltype1='unsigned long int';;
18677 ull) gltype1='unsigned long long int';;
18678 ui64)gltype1='unsigned __int64';;
18679 esac
18680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18681 /* end confdefs.h. */
18683 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18684 included before <wchar.h>. */
18685 #include <stddef.h>
18686 #include <signal.h>
18687 #if HAVE_WCHAR_H
18688 # include <stdio.h>
18689 # include <time.h>
18690 # include <wchar.h>
18691 #endif
18693 extern $gltype foo;
18694 extern $gltype1 foo;
18696 main ()
18700 return 0;
18702 _ACEOF
18703 if ac_fn_c_try_compile "$LINENO"; then :
18704 eval gl_cv_type_${gltype}_suffix=\$glsuf
18706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18707 eval result=\$gl_cv_type_${gltype}_suffix
18708 test "$result" != no && break
18709 done
18711 eval ac_res=\$gl_cv_type_${gltype}_suffix
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18713 $as_echo "$ac_res" >&6; }
18714 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18715 eval result=\$gl_cv_type_${gltype}_suffix
18716 test "$result" = no && result=
18717 eval ${GLTYPE}_SUFFIX=\$result
18718 cat >>confdefs.h <<_ACEOF
18719 #define ${GLTYPE}_SUFFIX $result
18720 _ACEOF
18722 done
18726 if test $BITSIZEOF_WINT_T -lt 32; then
18727 BITSIZEOF_WINT_T=32
18730 STDINT_H=stdint.h
18733 if test -n "$STDINT_H"; then
18734 GL_GENERATE_STDINT_H_TRUE=
18735 GL_GENERATE_STDINT_H_FALSE='#'
18736 else
18737 GL_GENERATE_STDINT_H_TRUE='#'
18738 GL_GENERATE_STDINT_H_FALSE=
18745 GNULIB_IMAXABS=0;
18746 GNULIB_IMAXDIV=0;
18747 GNULIB_STRTOIMAX=0;
18748 GNULIB_STRTOUMAX=0;
18749 HAVE_DECL_IMAXABS=1;
18750 HAVE_DECL_IMAXDIV=1;
18751 HAVE_DECL_STRTOIMAX=1;
18752 HAVE_DECL_STRTOUMAX=1;
18753 REPLACE_STRTOIMAX=0;
18754 INT32_MAX_LT_INTMAX_MAX=1;
18755 INT64_MAX_EQ_LONG_MAX='defined _LP64';
18756 PRI_MACROS_BROKEN=0;
18757 PRIPTR_PREFIX=__PRIPTR_PREFIX;
18758 UINT32_MAX_LT_UINTMAX_MAX=1;
18759 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
18775 if test $gl_cv_have_include_next = yes; then
18776 gl_cv_next_inttypes_h='<'inttypes.h'>'
18777 else
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
18779 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
18780 if test "${gl_cv_next_inttypes_h+set}" = set; then :
18781 $as_echo_n "(cached) " >&6
18782 else
18784 if test $ac_cv_header_inttypes_h = yes; then
18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18788 /* end confdefs.h. */
18789 #include <inttypes.h>
18791 _ACEOF
18792 case "$host_os" in
18793 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18794 *) gl_absname_cpp="$ac_cpp" ;;
18795 esac
18797 case "$host_os" in
18798 mingw*)
18799 gl_dirsep_regex='[/\\]'
18802 gl_dirsep_regex='\/'
18804 esac
18805 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18807 gl_header_literal_regex=`echo 'inttypes.h' \
18808 | sed -e "$gl_make_literal_regex_sed"`
18809 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18810 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18811 s|^/[^/]|//&|
18815 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18816 sed -n "$gl_absolute_header_sed"`'"'
18817 else
18818 gl_cv_next_inttypes_h='<'inttypes.h'>'
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
18824 $as_echo "$gl_cv_next_inttypes_h" >&6; }
18826 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
18828 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18830 gl_next_as_first_directive='<'inttypes.h'>'
18831 else
18832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18833 gl_next_as_first_directive=$gl_cv_next_inttypes_h
18835 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
18847 case "$host_os" in
18848 mingw*)
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
18850 $as_echo_n "checking for 64-bit off_t... " >&6; }
18851 if test "${gl_cv_type_off_t_64+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
18853 else
18854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18855 /* end confdefs.h. */
18856 #include <sys/types.h>
18857 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
18860 main ()
18864 return 0;
18866 _ACEOF
18867 if ac_fn_c_try_compile "$LINENO"; then :
18868 gl_cv_type_off_t_64=yes
18869 else
18870 gl_cv_type_off_t_64=no
18872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
18876 $as_echo "$gl_cv_type_off_t_64" >&6; }
18877 if test $gl_cv_type_off_t_64 = no; then
18878 WINDOWS_64_BIT_OFF_T=1
18879 else
18880 WINDOWS_64_BIT_OFF_T=0
18882 WINDOWS_64_BIT_ST_SIZE=1
18885 WINDOWS_64_BIT_OFF_T=0
18886 WINDOWS_64_BIT_ST_SIZE=0
18888 esac
18891 GNULIB_FCHMODAT=0;
18892 GNULIB_FSTAT=0;
18893 GNULIB_FSTATAT=0;
18894 GNULIB_FUTIMENS=0;
18895 GNULIB_LCHMOD=0;
18896 GNULIB_LSTAT=0;
18897 GNULIB_MKDIRAT=0;
18898 GNULIB_MKFIFO=0;
18899 GNULIB_MKFIFOAT=0;
18900 GNULIB_MKNOD=0;
18901 GNULIB_MKNODAT=0;
18902 GNULIB_STAT=0;
18903 GNULIB_UTIMENSAT=0;
18904 HAVE_FCHMODAT=1;
18905 HAVE_FSTATAT=1;
18906 HAVE_FUTIMENS=1;
18907 HAVE_LCHMOD=1;
18908 HAVE_LSTAT=1;
18909 HAVE_MKDIRAT=1;
18910 HAVE_MKFIFO=1;
18911 HAVE_MKFIFOAT=1;
18912 HAVE_MKNOD=1;
18913 HAVE_MKNODAT=1;
18914 HAVE_UTIMENSAT=1;
18915 REPLACE_FSTAT=0;
18916 REPLACE_FSTATAT=0;
18917 REPLACE_FUTIMENS=0;
18918 REPLACE_LSTAT=0;
18919 REPLACE_MKDIR=0;
18920 REPLACE_MKFIFO=0;
18921 REPLACE_MKNOD=0;
18922 REPLACE_STAT=0;
18923 REPLACE_UTIMENSAT=0;
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18929 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
18930 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
18931 $as_echo_n "(cached) " >&6
18932 else
18933 rm -f conftest.sym conftest.file
18934 echo >conftest.file
18935 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18936 if test "$cross_compiling" = yes; then :
18937 case "$host_os" in
18938 # Guess yes on glibc systems.
18939 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
18940 # If we don't know, assume the worst.
18941 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
18942 esac
18944 else
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18947 $ac_includes_default
18949 main ()
18951 struct stat sbuf;
18952 /* Linux will dereference the symlink and fail, as required by
18953 POSIX. That is better in the sense that it means we will not
18954 have to compile and use the lstat wrapper. */
18955 return lstat ("conftest.sym/", &sbuf) == 0;
18958 return 0;
18960 _ACEOF
18961 if ac_fn_c_try_run "$LINENO"; then :
18962 gl_cv_func_lstat_dereferences_slashed_symlink=yes
18963 else
18964 gl_cv_func_lstat_dereferences_slashed_symlink=no
18966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18967 conftest.$ac_objext conftest.beam conftest.$ac_ext
18970 else
18971 # If the 'ln -s' command failed, then we probably don't even
18972 # have an lstat function.
18973 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
18975 rm -f conftest.sym conftest.file
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
18979 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18980 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
18981 *yes)
18983 cat >>confdefs.h <<_ACEOF
18984 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18985 _ACEOF
18988 esac
18991 GNULIB_MKTIME=0;
18992 GNULIB_NANOSLEEP=0;
18993 GNULIB_STRPTIME=0;
18994 GNULIB_TIMEGM=0;
18995 GNULIB_TIME_R=0;
18996 HAVE_DECL_LOCALTIME_R=1;
18997 HAVE_NANOSLEEP=1;
18998 HAVE_STRPTIME=1;
18999 HAVE_TIMEGM=1;
19000 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19001 REPLACE_MKTIME=GNULIB_PORTCHECK;
19002 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19003 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19008 GNULIB_PSELECT=0;
19009 GNULIB_SELECT=0;
19010 HAVE_PSELECT=1;
19011 REPLACE_PSELECT=0;
19012 REPLACE_SELECT=0;
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
19020 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
19021 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
19022 $as_echo_n "(cached) " >&6
19023 else
19025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h. */
19027 #include <sys/select.h>
19029 main ()
19031 struct timeval b;
19033 return 0;
19035 _ACEOF
19036 if ac_fn_c_try_compile "$LINENO"; then :
19037 gl_cv_header_sys_select_h_selfcontained=yes
19038 else
19039 gl_cv_header_sys_select_h_selfcontained=no
19041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19042 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
19043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19044 /* end confdefs.h. */
19045 #include <sys/select.h>
19047 main ()
19049 int memset; int bzero;
19051 return 0;
19054 _ACEOF
19055 if ac_fn_c_try_compile "$LINENO"; then :
19056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19057 /* end confdefs.h. */
19058 #include <sys/select.h>
19060 main ()
19063 #undef memset
19064 #define memset nonexistent_memset
19065 extern
19066 #ifdef __cplusplus
19068 #endif
19069 void *memset (void *, int, unsigned long);
19070 #undef bzero
19071 #define bzero nonexistent_bzero
19072 extern
19073 #ifdef __cplusplus
19075 #endif
19076 void bzero (void *, unsigned long);
19077 fd_set fds;
19078 FD_ZERO (&fds);
19081 return 0;
19084 _ACEOF
19085 if ac_fn_c_try_link "$LINENO"; then :
19087 else
19088 gl_cv_header_sys_select_h_selfcontained=no
19090 rm -f core conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
19099 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
19109 if test $gl_cv_have_include_next = yes; then
19110 gl_cv_next_sys_select_h='<'sys/select.h'>'
19111 else
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
19113 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
19114 if test "${gl_cv_next_sys_select_h+set}" = set; then :
19115 $as_echo_n "(cached) " >&6
19116 else
19118 if test $ac_cv_header_sys_select_h = yes; then
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 #include <sys/select.h>
19125 _ACEOF
19126 case "$host_os" in
19127 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19128 *) gl_absname_cpp="$ac_cpp" ;;
19129 esac
19131 case "$host_os" in
19132 mingw*)
19133 gl_dirsep_regex='[/\\]'
19136 gl_dirsep_regex='\/'
19138 esac
19139 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19141 gl_header_literal_regex=`echo 'sys/select.h' \
19142 | sed -e "$gl_make_literal_regex_sed"`
19143 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19145 s|^/[^/]|//&|
19149 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19150 sed -n "$gl_absolute_header_sed"`'"'
19151 else
19152 gl_cv_next_sys_select_h='<'sys/select.h'>'
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
19158 $as_echo "$gl_cv_next_sys_select_h" >&6; }
19160 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
19162 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19164 gl_next_as_first_directive='<'sys/select.h'>'
19165 else
19166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19167 gl_next_as_first_directive=$gl_cv_next_sys_select_h
19169 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
19174 if test $ac_cv_header_sys_select_h = yes; then
19175 HAVE_SYS_SELECT_H=1
19176 else
19177 HAVE_SYS_SELECT_H=0
19184 if test $ac_cv_header_sys_socket_h != yes; then
19185 for ac_header in winsock2.h
19186 do :
19187 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19188 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
19189 cat >>confdefs.h <<_ACEOF
19190 #define HAVE_WINSOCK2_H 1
19191 _ACEOF
19195 done
19198 if test "$ac_cv_header_winsock2_h" = yes; then
19199 HAVE_WINSOCK2_H=1
19200 UNISTD_H_HAVE_WINSOCK2_H=1
19201 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19202 else
19203 HAVE_WINSOCK2_H=0
19213 GNULIB_PTHREAD_SIGMASK=0;
19214 GNULIB_RAISE=0;
19215 GNULIB_SIGNAL_H_SIGPIPE=0;
19216 GNULIB_SIGPROCMASK=0;
19217 GNULIB_SIGACTION=0;
19218 HAVE_POSIX_SIGNALBLOCKING=1;
19219 HAVE_PTHREAD_SIGMASK=1;
19220 HAVE_RAISE=1;
19221 HAVE_SIGSET_T=1;
19222 HAVE_SIGINFO_T=1;
19223 HAVE_SIGACTION=1;
19224 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
19226 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
19228 HAVE_SIGHANDLER_T=1;
19229 REPLACE_PTHREAD_SIGMASK=0;
19230 REPLACE_RAISE=0;
19238 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
19239 #include <signal.h>
19240 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
19241 #include <sys/types.h>
19244 if test "x$ac_cv_type_sigset_t" = x""yes; then :
19246 cat >>confdefs.h <<_ACEOF
19247 #define HAVE_SIGSET_T 1
19248 _ACEOF
19250 gl_cv_type_sigset_t=yes
19251 else
19252 gl_cv_type_sigset_t=no
19255 if test $gl_cv_type_sigset_t != yes; then
19256 HAVE_SIGSET_T=0
19261 if test $ac_cv_header_sys_socket_h = no; then
19262 for ac_header in ws2tcpip.h
19263 do :
19264 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
19265 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
19266 cat >>confdefs.h <<_ACEOF
19267 #define HAVE_WS2TCPIP_H 1
19268 _ACEOF
19272 done
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19277 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19278 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19279 $as_echo_n "(cached) " >&6
19280 else
19281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19282 /* end confdefs.h. */
19284 #include <stdbool.h>
19285 #ifndef bool
19286 "error: bool is not defined"
19287 #endif
19288 #ifndef false
19289 "error: false is not defined"
19290 #endif
19291 #if false
19292 "error: false is not 0"
19293 #endif
19294 #ifndef true
19295 "error: true is not defined"
19296 #endif
19297 #if true != 1
19298 "error: true is not 1"
19299 #endif
19300 #ifndef __bool_true_false_are_defined
19301 "error: __bool_true_false_are_defined is not defined"
19302 #endif
19304 struct s { _Bool s: 1; _Bool t; } s;
19306 char a[true == 1 ? 1 : -1];
19307 char b[false == 0 ? 1 : -1];
19308 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19309 char d[(bool) 0.5 == true ? 1 : -1];
19310 /* See body of main program for 'e'. */
19311 char f[(_Bool) 0.0 == false ? 1 : -1];
19312 char g[true];
19313 char h[sizeof (_Bool)];
19314 char i[sizeof s.t];
19315 enum { j = false, k = true, l = false * true, m = true * 256 };
19316 /* The following fails for
19317 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19318 _Bool n[m];
19319 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19320 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19321 /* Catch a bug in an HP-UX C compiler. See
19322 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19323 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19325 _Bool q = true;
19326 _Bool *pq = &q;
19329 main ()
19332 bool e = &s;
19333 *pq |= q;
19334 *pq |= ! q;
19335 /* Refer to every declared value, to avoid compiler optimizations. */
19336 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19337 + !m + !n + !o + !p + !q + !pq);
19340 return 0;
19342 _ACEOF
19343 if ac_fn_c_try_compile "$LINENO"; then :
19344 ac_cv_header_stdbool_h=yes
19345 else
19346 ac_cv_header_stdbool_h=no
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19351 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19352 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19353 if test "x$ac_cv_type__Bool" = x""yes; then :
19355 cat >>confdefs.h <<_ACEOF
19356 #define HAVE__BOOL 1
19357 _ACEOF
19364 REPLACE_NULL=0;
19365 HAVE_WCHAR_T=1;
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19369 $as_echo_n "checking for wchar_t... " >&6; }
19370 if test "${gt_cv_c_wchar_t+set}" = set; then :
19371 $as_echo_n "(cached) " >&6
19372 else
19373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374 /* end confdefs.h. */
19375 #include <stddef.h>
19376 wchar_t foo = (wchar_t)'\0';
19378 main ()
19382 return 0;
19384 _ACEOF
19385 if ac_fn_c_try_compile "$LINENO"; then :
19386 gt_cv_c_wchar_t=yes
19387 else
19388 gt_cv_c_wchar_t=no
19390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19393 $as_echo "$gt_cv_c_wchar_t" >&6; }
19394 if test $gt_cv_c_wchar_t = yes; then
19396 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19401 GNULIB_DPRINTF=0;
19402 GNULIB_FCLOSE=0;
19403 GNULIB_FDOPEN=0;
19404 GNULIB_FFLUSH=0;
19405 GNULIB_FGETC=0;
19406 GNULIB_FGETS=0;
19407 GNULIB_FOPEN=0;
19408 GNULIB_FPRINTF=0;
19409 GNULIB_FPRINTF_POSIX=0;
19410 GNULIB_FPURGE=0;
19411 GNULIB_FPUTC=0;
19412 GNULIB_FPUTS=0;
19413 GNULIB_FREAD=0;
19414 GNULIB_FREOPEN=0;
19415 GNULIB_FSCANF=0;
19416 GNULIB_FSEEK=0;
19417 GNULIB_FSEEKO=0;
19418 GNULIB_FTELL=0;
19419 GNULIB_FTELLO=0;
19420 GNULIB_FWRITE=0;
19421 GNULIB_GETC=0;
19422 GNULIB_GETCHAR=0;
19423 GNULIB_GETDELIM=0;
19424 GNULIB_GETLINE=0;
19425 GNULIB_OBSTACK_PRINTF=0;
19426 GNULIB_OBSTACK_PRINTF_POSIX=0;
19427 GNULIB_PCLOSE=0;
19428 GNULIB_PERROR=0;
19429 GNULIB_POPEN=0;
19430 GNULIB_PRINTF=0;
19431 GNULIB_PRINTF_POSIX=0;
19432 GNULIB_PUTC=0;
19433 GNULIB_PUTCHAR=0;
19434 GNULIB_PUTS=0;
19435 GNULIB_REMOVE=0;
19436 GNULIB_RENAME=0;
19437 GNULIB_RENAMEAT=0;
19438 GNULIB_SCANF=0;
19439 GNULIB_SNPRINTF=0;
19440 GNULIB_SPRINTF_POSIX=0;
19441 GNULIB_STDIO_H_NONBLOCKING=0;
19442 GNULIB_STDIO_H_SIGPIPE=0;
19443 GNULIB_TMPFILE=0;
19444 GNULIB_VASPRINTF=0;
19445 GNULIB_VFSCANF=0;
19446 GNULIB_VSCANF=0;
19447 GNULIB_VDPRINTF=0;
19448 GNULIB_VFPRINTF=0;
19449 GNULIB_VFPRINTF_POSIX=0;
19450 GNULIB_VPRINTF=0;
19451 GNULIB_VPRINTF_POSIX=0;
19452 GNULIB_VSNPRINTF=0;
19453 GNULIB_VSPRINTF_POSIX=0;
19454 HAVE_DECL_FPURGE=1;
19455 HAVE_DECL_FSEEKO=1;
19456 HAVE_DECL_FTELLO=1;
19457 HAVE_DECL_GETDELIM=1;
19458 HAVE_DECL_GETLINE=1;
19459 HAVE_DECL_OBSTACK_PRINTF=1;
19460 HAVE_DECL_SNPRINTF=1;
19461 HAVE_DECL_VSNPRINTF=1;
19462 HAVE_DPRINTF=1;
19463 HAVE_FSEEKO=1;
19464 HAVE_FTELLO=1;
19465 HAVE_PCLOSE=1;
19466 HAVE_POPEN=1;
19467 HAVE_RENAMEAT=1;
19468 HAVE_VASPRINTF=1;
19469 HAVE_VDPRINTF=1;
19470 REPLACE_DPRINTF=0;
19471 REPLACE_FCLOSE=0;
19472 REPLACE_FDOPEN=0;
19473 REPLACE_FFLUSH=0;
19474 REPLACE_FOPEN=0;
19475 REPLACE_FPRINTF=0;
19476 REPLACE_FPURGE=0;
19477 REPLACE_FREOPEN=0;
19478 REPLACE_FSEEK=0;
19479 REPLACE_FSEEKO=0;
19480 REPLACE_FTELL=0;
19481 REPLACE_FTELLO=0;
19482 REPLACE_GETDELIM=0;
19483 REPLACE_GETLINE=0;
19484 REPLACE_OBSTACK_PRINTF=0;
19485 REPLACE_PERROR=0;
19486 REPLACE_POPEN=0;
19487 REPLACE_PRINTF=0;
19488 REPLACE_REMOVE=0;
19489 REPLACE_RENAME=0;
19490 REPLACE_RENAMEAT=0;
19491 REPLACE_SNPRINTF=0;
19492 REPLACE_SPRINTF=0;
19493 REPLACE_STDIO_READ_FUNCS=0;
19494 REPLACE_STDIO_WRITE_FUNCS=0;
19495 REPLACE_TMPFILE=0;
19496 REPLACE_VASPRINTF=0;
19497 REPLACE_VDPRINTF=0;
19498 REPLACE_VFPRINTF=0;
19499 REPLACE_VPRINTF=0;
19500 REPLACE_VSNPRINTF=0;
19501 REPLACE_VSPRINTF=0;
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19504 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19505 if test "${ac_cv_struct_tm+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19507 else
19508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510 #include <sys/types.h>
19511 #include <time.h>
19514 main ()
19516 struct tm tm;
19517 int *p = &tm.tm_sec;
19518 return !p;
19520 return 0;
19522 _ACEOF
19523 if ac_fn_c_try_compile "$LINENO"; then :
19524 ac_cv_struct_tm=time.h
19525 else
19526 ac_cv_struct_tm=sys/time.h
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19531 $as_echo "$ac_cv_struct_tm" >&6; }
19532 if test $ac_cv_struct_tm = sys/time.h; then
19534 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19538 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
19539 #include <$ac_cv_struct_tm>
19542 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
19544 cat >>confdefs.h <<_ACEOF
19545 #define HAVE_STRUCT_TM_TM_ZONE 1
19546 _ACEOF
19551 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19553 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
19555 else
19556 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
19558 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
19559 ac_have_decl=1
19560 else
19561 ac_have_decl=0
19564 cat >>confdefs.h <<_ACEOF
19565 #define HAVE_DECL_TZNAME $ac_have_decl
19566 _ACEOF
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
19569 $as_echo_n "checking for tzname... " >&6; }
19570 if test "${ac_cv_var_tzname+set}" = set; then :
19571 $as_echo_n "(cached) " >&6
19572 else
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19575 #include <time.h>
19576 #if !HAVE_DECL_TZNAME
19577 extern char *tzname[];
19578 #endif
19581 main ()
19583 return tzname[0][0];
19585 return 0;
19587 _ACEOF
19588 if ac_fn_c_try_link "$LINENO"; then :
19589 ac_cv_var_tzname=yes
19590 else
19591 ac_cv_var_tzname=no
19593 rm -f core conftest.err conftest.$ac_objext \
19594 conftest$ac_exeext conftest.$ac_ext
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
19597 $as_echo "$ac_cv_var_tzname" >&6; }
19598 if test $ac_cv_var_tzname = yes; then
19600 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19606 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
19608 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
19610 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
19617 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
19618 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
19619 ac_have_decl=1
19620 else
19621 ac_have_decl=0
19624 cat >>confdefs.h <<_ACEOF
19625 #define HAVE_DECL_STRTOIMAX $ac_have_decl
19626 _ACEOF
19630 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
19631 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
19632 ac_have_decl=1
19633 else
19634 ac_have_decl=0
19637 cat >>confdefs.h <<_ACEOF
19638 #define HAVE_DECL_STRTOUMAX $ac_have_decl
19639 _ACEOF
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19644 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19645 if test "${ac_cv_header_stat_broken+set}" = set; then :
19646 $as_echo_n "(cached) " >&6
19647 else
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19650 #include <sys/types.h>
19651 #include <sys/stat.h>
19653 #if defined S_ISBLK && defined S_IFDIR
19654 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19655 #endif
19657 #if defined S_ISBLK && defined S_IFCHR
19658 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19659 #endif
19661 #if defined S_ISLNK && defined S_IFREG
19662 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19663 #endif
19665 #if defined S_ISSOCK && defined S_IFREG
19666 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19667 #endif
19669 _ACEOF
19670 if ac_fn_c_try_compile "$LINENO"; then :
19671 ac_cv_header_stat_broken=no
19672 else
19673 ac_cv_header_stat_broken=yes
19675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19678 $as_echo "$ac_cv_header_stat_broken" >&6; }
19679 if test $ac_cv_header_stat_broken = yes; then
19681 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19687 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19688 if test "x$ac_cv_type_mode_t" = x""yes; then :
19690 else
19692 cat >>confdefs.h <<_ACEOF
19693 #define mode_t int
19694 _ACEOF
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19701 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19702 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
19703 $as_echo_n "(cached) " >&6
19704 else
19705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19706 /* end confdefs.h. */
19707 #include <time.h>
19710 main ()
19712 static struct timespec x; x.tv_sec = x.tv_nsec;
19714 return 0;
19716 _ACEOF
19717 if ac_fn_c_try_compile "$LINENO"; then :
19718 gl_cv_sys_struct_timespec_in_time_h=yes
19719 else
19720 gl_cv_sys_struct_timespec_in_time_h=no
19722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19725 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19727 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19728 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19729 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19730 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19731 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19732 else
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19734 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19735 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
19736 $as_echo_n "(cached) " >&6
19737 else
19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739 /* end confdefs.h. */
19740 #include <sys/time.h>
19743 main ()
19745 static struct timespec x; x.tv_sec = x.tv_nsec;
19747 return 0;
19749 _ACEOF
19750 if ac_fn_c_try_compile "$LINENO"; then :
19751 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19752 else
19753 gl_cv_sys_struct_timespec_in_sys_time_h=no
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19758 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19759 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19760 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19761 else
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19763 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19764 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
19765 $as_echo_n "(cached) " >&6
19766 else
19767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19769 #include <pthread.h>
19772 main ()
19774 static struct timespec x; x.tv_sec = x.tv_nsec;
19776 return 0;
19778 _ACEOF
19779 if ac_fn_c_try_compile "$LINENO"; then :
19780 gl_cv_sys_struct_timespec_in_pthread_h=yes
19781 else
19782 gl_cv_sys_struct_timespec_in_pthread_h=no
19784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19787 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19788 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19789 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19808 if test $gl_cv_have_include_next = yes; then
19809 gl_cv_next_time_h='<'time.h'>'
19810 else
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19812 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19813 if test "${gl_cv_next_time_h+set}" = set; then :
19814 $as_echo_n "(cached) " >&6
19815 else
19817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h. */
19819 #include <time.h>
19821 _ACEOF
19822 case "$host_os" in
19823 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19824 *) gl_absname_cpp="$ac_cpp" ;;
19825 esac
19827 case "$host_os" in
19828 mingw*)
19829 gl_dirsep_regex='[/\\]'
19832 gl_dirsep_regex='\/'
19834 esac
19835 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19837 gl_header_literal_regex=`echo 'time.h' \
19838 | sed -e "$gl_make_literal_regex_sed"`
19839 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19840 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19841 s|^/[^/]|//&|
19845 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19846 sed -n "$gl_absolute_header_sed"`'"'
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19851 $as_echo "$gl_cv_next_time_h" >&6; }
19853 NEXT_TIME_H=$gl_cv_next_time_h
19855 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19857 gl_next_as_first_directive='<'time.h'>'
19858 else
19859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19860 gl_next_as_first_directive=$gl_cv_next_time_h
19862 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
19879 $as_echo_n "checking whether the utimes function works... " >&6; }
19880 if test "${gl_cv_func_working_utimes+set}" = set; then :
19881 $as_echo_n "(cached) " >&6
19882 else
19884 if test "$cross_compiling" = yes; then :
19885 gl_cv_func_working_utimes=no
19886 else
19887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19890 #include <sys/types.h>
19891 #include <sys/stat.h>
19892 #include <fcntl.h>
19893 #include <sys/time.h>
19894 #include <time.h>
19895 #include <unistd.h>
19896 #include <stdlib.h>
19897 #include <stdio.h>
19898 #include <utime.h>
19900 static int
19901 inorder (time_t a, time_t b, time_t c)
19903 return a <= b && b <= c;
19907 main ()
19909 int result = 0;
19910 char const *file = "conftest.utimes";
19911 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
19913 /* Test whether utimes() essentially works. */
19915 struct stat sbuf;
19916 FILE *f = fopen (file, "w");
19917 if (f == NULL)
19918 result |= 1;
19919 else if (fclose (f) != 0)
19920 result |= 1;
19921 else if (utimes (file, timeval) != 0)
19922 result |= 2;
19923 else if (lstat (file, &sbuf) != 0)
19924 result |= 1;
19925 else if (!(sbuf.st_atime == timeval[0].tv_sec
19926 && sbuf.st_mtime == timeval[1].tv_sec))
19927 result |= 4;
19928 if (unlink (file) != 0)
19929 result |= 1;
19932 /* Test whether utimes() with a NULL argument sets the file's timestamp
19933 to the current time. Use 'fstat' as well as 'time' to
19934 determine the "current" time, to accommodate NFS file systems
19935 if there is a time skew between the host and the NFS server. */
19937 int fd = open (file, O_WRONLY|O_CREAT, 0644);
19938 if (fd < 0)
19939 result |= 1;
19940 else
19942 time_t t0, t2;
19943 struct stat st0, st1, st2;
19944 if (time (&t0) == (time_t) -1)
19945 result |= 1;
19946 else if (fstat (fd, &st0) != 0)
19947 result |= 1;
19948 else if (utimes (file, timeval) != 0)
19949 result |= 2;
19950 else if (utimes (file, NULL) != 0)
19951 result |= 8;
19952 else if (fstat (fd, &st1) != 0)
19953 result |= 1;
19954 else if (write (fd, "\n", 1) != 1)
19955 result |= 1;
19956 else if (fstat (fd, &st2) != 0)
19957 result |= 1;
19958 else if (time (&t2) == (time_t) -1)
19959 result |= 1;
19960 else
19962 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
19963 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
19964 if (! (st1.st_atime == st1.st_mtime))
19965 result |= 16;
19966 if (! (m_ok_POSIX || m_ok_NFS))
19967 result |= 32;
19969 if (close (fd) != 0)
19970 result |= 1;
19972 if (unlink (file) != 0)
19973 result |= 1;
19976 /* Test whether utimes() with a NULL argument works on read-only files. */
19978 int fd = open (file, O_WRONLY|O_CREAT, 0444);
19979 if (fd < 0)
19980 result |= 1;
19981 else if (close (fd) != 0)
19982 result |= 1;
19983 else if (utimes (file, NULL) != 0)
19984 result |= 64;
19985 if (unlink (file) != 0)
19986 result |= 1;
19989 return result;
19992 _ACEOF
19993 if ac_fn_c_try_run "$LINENO"; then :
19994 gl_cv_func_working_utimes=yes
19995 else
19996 gl_cv_func_working_utimes=no
19998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19999 conftest.$ac_objext conftest.beam conftest.$ac_ext
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
20004 $as_echo "$gl_cv_func_working_utimes" >&6; }
20006 if test $gl_cv_func_working_utimes = yes; then
20008 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
20017 $as_echo_n "checking for struct utimbuf... " >&6; }
20018 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
20019 $as_echo_n "(cached) " >&6
20020 else
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20023 #if HAVE_SYS_TIME_H
20024 #include <sys/time.h>
20025 #endif
20026 #include <time.h>
20027 #ifdef HAVE_UTIME_H
20028 #include <utime.h>
20029 #endif
20032 main ()
20034 static struct utimbuf x; x.actime = x.modtime;
20036 return 0;
20038 _ACEOF
20039 if ac_fn_c_try_compile "$LINENO"; then :
20040 gl_cv_sys_struct_utimbuf=yes
20041 else
20042 gl_cv_sys_struct_utimbuf=no
20044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
20047 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
20049 if test $gl_cv_sys_struct_utimbuf = yes; then
20051 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
20066 if false; then
20067 GL_COND_LIBTOOL_TRUE=
20068 GL_COND_LIBTOOL_FALSE='#'
20069 else
20070 GL_COND_LIBTOOL_TRUE='#'
20071 GL_COND_LIBTOOL_FALSE=
20074 gl_cond_libtool=false
20075 gl_libdeps=
20076 gl_ltlibdeps=
20077 gl_m4_base='m4'
20087 gl_source_base='lib'
20090 if test $ac_cv_func_alloca_works = no; then
20094 # Define an additional variable used in the Makefile substitution.
20095 if test $ac_cv_working_alloca_h = yes; then
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20097 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20098 if test "${gl_cv_rpl_alloca+set}" = set; then :
20099 $as_echo_n "(cached) " >&6
20100 else
20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20105 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20106 Need own alloca
20107 #endif
20109 _ACEOF
20110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20111 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20112 gl_cv_rpl_alloca=yes
20113 else
20114 gl_cv_rpl_alloca=no
20116 rm -f conftest*
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20121 $as_echo "$gl_cv_rpl_alloca" >&6; }
20122 if test $gl_cv_rpl_alloca = yes; then
20124 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20126 ALLOCA_H=alloca.h
20127 else
20128 ALLOCA_H=
20130 else
20131 ALLOCA_H=alloca.h
20134 if test -n "$ALLOCA_H"; then
20135 GL_GENERATE_ALLOCA_H_TRUE=
20136 GL_GENERATE_ALLOCA_H_FALSE='#'
20137 else
20138 GL_GENERATE_ALLOCA_H_TRUE='#'
20139 GL_GENERATE_ALLOCA_H_FALSE=
20147 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
20148 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
20150 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
20151 # programs in the package would end up linked with that potentially-shared
20152 # library, inducing unnecessary run-time overhead.
20153 LIB_CLOCK_GETTIME=
20155 gl_saved_libs=$LIBS
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20157 $as_echo_n "checking for library containing clock_gettime... " >&6; }
20158 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20159 $as_echo_n "(cached) " >&6
20160 else
20161 ac_func_search_save_LIBS=$LIBS
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h. */
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char clock_gettime ();
20173 main ()
20175 return clock_gettime ();
20177 return 0;
20179 _ACEOF
20180 for ac_lib in '' rt posix4; do
20181 if test -z "$ac_lib"; then
20182 ac_res="none required"
20183 else
20184 ac_res=-l$ac_lib
20185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20187 if ac_fn_c_try_link "$LINENO"; then :
20188 ac_cv_search_clock_gettime=$ac_res
20190 rm -f core conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext
20192 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20193 break
20195 done
20196 if test "${ac_cv_search_clock_gettime+set}" = set; then :
20198 else
20199 ac_cv_search_clock_gettime=no
20201 rm conftest.$ac_ext
20202 LIBS=$ac_func_search_save_LIBS
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20205 $as_echo "$ac_cv_search_clock_gettime" >&6; }
20206 ac_res=$ac_cv_search_clock_gettime
20207 if test "$ac_res" != no; then :
20208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20209 test "$ac_cv_search_clock_gettime" = "none required" ||
20210 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
20213 for ac_func in clock_gettime clock_settime
20214 do :
20215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20217 eval as_val=\$$as_ac_var
20218 if test "x$as_val" = x""yes; then :
20219 cat >>confdefs.h <<_ACEOF
20220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20221 _ACEOF
20224 done
20226 LIBS=$gl_saved_libs
20252 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
20255 if test $HAVE_DUP2 = 1; then
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
20257 $as_echo_n "checking whether dup2 works... " >&6; }
20258 if test "${gl_cv_func_dup2_works+set}" = set; then :
20259 $as_echo_n "(cached) " >&6
20260 else
20261 if test "$cross_compiling" = yes; then :
20262 case "$host_os" in
20263 mingw*) # on this platform, dup2 always returns 0 for success
20264 gl_cv_func_dup2_works="guessing no" ;;
20265 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
20266 gl_cv_func_dup2_works="guessing no" ;;
20267 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
20268 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
20269 gl_cv_func_dup2_works="guessing no" ;;
20270 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
20271 gl_cv_func_dup2_works="guessing no" ;;
20272 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
20273 gl_cv_func_dup2_works="guessing no" ;;
20274 *) gl_cv_func_dup2_works="guessing yes" ;;
20275 esac
20276 else
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20280 #include <unistd.h>
20281 #include <fcntl.h>
20282 #include <errno.h>
20284 main ()
20286 int result = 0;
20287 #ifdef FD_CLOEXEC
20288 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
20289 result |= 1;
20290 #endif
20291 if (dup2 (1, 1) == 0)
20292 result |= 2;
20293 #ifdef FD_CLOEXEC
20294 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
20295 result |= 4;
20296 #endif
20297 close (0);
20298 if (dup2 (0, 0) != -1)
20299 result |= 8;
20300 /* Many gnulib modules require POSIX conformance of EBADF. */
20301 if (dup2 (2, 1000000) == -1 && errno != EBADF)
20302 result |= 16;
20303 return result;
20306 return 0;
20309 _ACEOF
20310 if ac_fn_c_try_run "$LINENO"; then :
20311 gl_cv_func_dup2_works=yes
20312 else
20313 gl_cv_func_dup2_works=no
20315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20316 conftest.$ac_objext conftest.beam conftest.$ac_ext
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
20322 $as_echo "$gl_cv_func_dup2_works" >&6; }
20323 case "$gl_cv_func_dup2_works" in
20324 *yes) ;;
20326 REPLACE_DUP2=1
20328 esac
20332 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
20341 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
20350 GNULIB_DUP2=1
20362 GNULIB_ENVIRON=1
20371 LIB_EXECINFO=''
20372 EXECINFO_H='execinfo.h'
20374 if test $ac_cv_header_execinfo_h = yes; then
20375 gl_saved_libs=$LIBS
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5
20377 $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; }
20378 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20379 $as_echo_n "(cached) " >&6
20380 else
20381 ac_func_search_save_LIBS=$LIBS
20382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20383 /* end confdefs.h. */
20385 /* Override any GCC internal prototype to avoid an error.
20386 Use char because int might match the return type of a GCC
20387 builtin and then its argument prototype would still apply. */
20388 #ifdef __cplusplus
20389 extern "C"
20390 #endif
20391 char backtrace_symbols_fd ();
20393 main ()
20395 return backtrace_symbols_fd ();
20397 return 0;
20399 _ACEOF
20400 for ac_lib in '' execinfo; do
20401 if test -z "$ac_lib"; then
20402 ac_res="none required"
20403 else
20404 ac_res=-l$ac_lib
20405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20407 if ac_fn_c_try_link "$LINENO"; then :
20408 ac_cv_search_backtrace_symbols_fd=$ac_res
20410 rm -f core conftest.err conftest.$ac_objext \
20411 conftest$ac_exeext
20412 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20413 break
20415 done
20416 if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then :
20418 else
20419 ac_cv_search_backtrace_symbols_fd=no
20421 rm conftest.$ac_ext
20422 LIBS=$ac_func_search_save_LIBS
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5
20425 $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; }
20426 ac_res=$ac_cv_search_backtrace_symbols_fd
20427 if test "$ac_res" != no; then :
20428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20429 test "$ac_cv_search_backtrace_symbols_fd" = "none required" ||
20430 LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd
20433 LIBS=$gl_saved_libs
20434 test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H=''
20437 if test -n "$EXECINFO_H"; then
20446 gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext"
20452 if test -n "$EXECINFO_H"; then
20453 GL_GENERATE_EXECINFO_H_TRUE=
20454 GL_GENERATE_EXECINFO_H_FALSE='#'
20455 else
20456 GL_GENERATE_EXECINFO_H_TRUE='#'
20457 GL_GENERATE_EXECINFO_H_FALSE=
20468 # Persuade glibc <stdlib.h> to declare getloadavg().
20471 gl_save_LIBS=$LIBS
20473 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
20474 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
20475 HAVE_GETLOADAVG=1
20476 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
20477 if test "x$ac_cv_func_getloadavg" = x""yes; then :
20479 else
20480 gl_func_getloadavg_done=no
20482 # Some systems with -lutil have (and need) -lkvm as well, some do not.
20483 # On Solaris, -lkvm requires nlist from -lelf, so check that first
20484 # to get the right answer into the cache.
20485 # For kstat on solaris, we need to test for libelf and libkvm to force the
20486 # definition of SVR4 below.
20487 if test $gl_func_getloadavg_done = no; then
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
20489 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
20490 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
20491 $as_echo_n "(cached) " >&6
20492 else
20493 ac_check_lib_save_LIBS=$LIBS
20494 LIBS="-lelf $LIBS"
20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h. */
20498 /* Override any GCC internal prototype to avoid an error.
20499 Use char because int might match the return type of a GCC
20500 builtin and then its argument prototype would still apply. */
20501 #ifdef __cplusplus
20502 extern "C"
20503 #endif
20504 char elf_begin ();
20506 main ()
20508 return elf_begin ();
20510 return 0;
20512 _ACEOF
20513 if ac_fn_c_try_link "$LINENO"; then :
20514 ac_cv_lib_elf_elf_begin=yes
20515 else
20516 ac_cv_lib_elf_elf_begin=no
20518 rm -f core conftest.err conftest.$ac_objext \
20519 conftest$ac_exeext conftest.$ac_ext
20520 LIBS=$ac_check_lib_save_LIBS
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
20523 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
20524 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
20525 LIBS="-lelf $LIBS"
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
20529 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
20530 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
20531 $as_echo_n "(cached) " >&6
20532 else
20533 ac_check_lib_save_LIBS=$LIBS
20534 LIBS="-lkvm $LIBS"
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20538 /* Override any GCC internal prototype to avoid an error.
20539 Use char because int might match the return type of a GCC
20540 builtin and then its argument prototype would still apply. */
20541 #ifdef __cplusplus
20542 extern "C"
20543 #endif
20544 char kvm_open ();
20546 main ()
20548 return kvm_open ();
20550 return 0;
20552 _ACEOF
20553 if ac_fn_c_try_link "$LINENO"; then :
20554 ac_cv_lib_kvm_kvm_open=yes
20555 else
20556 ac_cv_lib_kvm_kvm_open=no
20558 rm -f core conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20560 LIBS=$ac_check_lib_save_LIBS
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
20563 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
20564 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
20565 LIBS="-lkvm $LIBS"
20568 # Check for the 4.4BSD definition of getloadavg.
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
20570 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
20571 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
20572 $as_echo_n "(cached) " >&6
20573 else
20574 ac_check_lib_save_LIBS=$LIBS
20575 LIBS="-lutil $LIBS"
20576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20579 /* Override any GCC internal prototype to avoid an error.
20580 Use char because int might match the return type of a GCC
20581 builtin and then its argument prototype would still apply. */
20582 #ifdef __cplusplus
20583 extern "C"
20584 #endif
20585 char getloadavg ();
20587 main ()
20589 return getloadavg ();
20591 return 0;
20593 _ACEOF
20594 if ac_fn_c_try_link "$LINENO"; then :
20595 ac_cv_lib_util_getloadavg=yes
20596 else
20597 ac_cv_lib_util_getloadavg=no
20599 rm -f core conftest.err conftest.$ac_objext \
20600 conftest$ac_exeext conftest.$ac_ext
20601 LIBS=$ac_check_lib_save_LIBS
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
20604 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
20605 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
20606 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
20611 if test $gl_func_getloadavg_done = no; then
20612 # There is a commonly available library for RS/6000 AIX.
20613 # Since it is not a standard part of AIX, it might be installed locally.
20614 gl_getloadavg_LIBS=$LIBS
20615 LIBS="-L/usr/local/lib $LIBS"
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
20617 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
20618 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
20619 $as_echo_n "(cached) " >&6
20620 else
20621 ac_check_lib_save_LIBS=$LIBS
20622 LIBS="-lgetloadavg $LIBS"
20623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624 /* end confdefs.h. */
20626 /* Override any GCC internal prototype to avoid an error.
20627 Use char because int might match the return type of a GCC
20628 builtin and then its argument prototype would still apply. */
20629 #ifdef __cplusplus
20630 extern "C"
20631 #endif
20632 char getloadavg ();
20634 main ()
20636 return getloadavg ();
20638 return 0;
20640 _ACEOF
20641 if ac_fn_c_try_link "$LINENO"; then :
20642 ac_cv_lib_getloadavg_getloadavg=yes
20643 else
20644 ac_cv_lib_getloadavg_getloadavg=no
20646 rm -f core conftest.err conftest.$ac_objext \
20647 conftest$ac_exeext conftest.$ac_ext
20648 LIBS=$ac_check_lib_save_LIBS
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
20651 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
20652 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
20653 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
20654 else
20655 LIBS=$gl_getloadavg_LIBS
20660 # Set up the replacement function if necessary.
20661 if test $gl_func_getloadavg_done = no; then
20662 HAVE_GETLOADAVG=0
20664 # Solaris has libkstat which does not require root.
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
20666 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
20667 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
20668 $as_echo_n "(cached) " >&6
20669 else
20670 ac_check_lib_save_LIBS=$LIBS
20671 LIBS="-lkstat $LIBS"
20672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20675 /* Override any GCC internal prototype to avoid an error.
20676 Use char because int might match the return type of a GCC
20677 builtin and then its argument prototype would still apply. */
20678 #ifdef __cplusplus
20679 extern "C"
20680 #endif
20681 char kstat_open ();
20683 main ()
20685 return kstat_open ();
20687 return 0;
20689 _ACEOF
20690 if ac_fn_c_try_link "$LINENO"; then :
20691 ac_cv_lib_kstat_kstat_open=yes
20692 else
20693 ac_cv_lib_kstat_kstat_open=no
20695 rm -f core conftest.err conftest.$ac_objext \
20696 conftest$ac_exeext conftest.$ac_ext
20697 LIBS=$ac_check_lib_save_LIBS
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
20700 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
20701 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_LIBKSTAT 1
20704 _ACEOF
20706 LIBS="-lkstat $LIBS"
20710 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
20712 # AIX has libperfstat which does not require root
20713 if test $gl_func_getloadavg_done = no; then
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
20715 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
20716 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
20717 $as_echo_n "(cached) " >&6
20718 else
20719 ac_check_lib_save_LIBS=$LIBS
20720 LIBS="-lperfstat $LIBS"
20721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h. */
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20727 #ifdef __cplusplus
20728 extern "C"
20729 #endif
20730 char perfstat_cpu_total ();
20732 main ()
20734 return perfstat_cpu_total ();
20736 return 0;
20738 _ACEOF
20739 if ac_fn_c_try_link "$LINENO"; then :
20740 ac_cv_lib_perfstat_perfstat_cpu_total=yes
20741 else
20742 ac_cv_lib_perfstat_perfstat_cpu_total=no
20744 rm -f core conftest.err conftest.$ac_objext \
20745 conftest$ac_exeext conftest.$ac_ext
20746 LIBS=$ac_check_lib_save_LIBS
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
20749 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
20750 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
20751 cat >>confdefs.h <<_ACEOF
20752 #define HAVE_LIBPERFSTAT 1
20753 _ACEOF
20755 LIBS="-lperfstat $LIBS"
20759 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
20762 if test $gl_func_getloadavg_done = no; then
20763 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
20764 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
20765 gl_func_getloadavg_done=yes
20767 $as_echo "#define DGUX 1" >>confdefs.h
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
20770 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
20771 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
20772 $as_echo_n "(cached) " >&6
20773 else
20774 ac_check_lib_save_LIBS=$LIBS
20775 LIBS="-ldgc $LIBS"
20776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20777 /* end confdefs.h. */
20779 /* Override any GCC internal prototype to avoid an error.
20780 Use char because int might match the return type of a GCC
20781 builtin and then its argument prototype would still apply. */
20782 #ifdef __cplusplus
20783 extern "C"
20784 #endif
20785 char dg_sys_info ();
20787 main ()
20789 return dg_sys_info ();
20791 return 0;
20793 _ACEOF
20794 if ac_fn_c_try_link "$LINENO"; then :
20795 ac_cv_lib_dgc_dg_sys_info=yes
20796 else
20797 ac_cv_lib_dgc_dg_sys_info=no
20799 rm -f core conftest.err conftest.$ac_objext \
20800 conftest$ac_exeext conftest.$ac_ext
20801 LIBS=$ac_check_lib_save_LIBS
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
20804 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
20805 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
20806 cat >>confdefs.h <<_ACEOF
20807 #define HAVE_LIBDGC 1
20808 _ACEOF
20810 LIBS="-ldgc $LIBS"
20822 if test "x$gl_save_LIBS" = x; then
20823 GETLOADAVG_LIBS=$LIBS
20824 else
20825 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
20827 LIBS=$gl_save_LIBS
20830 # Test whether the system declares getloadavg. Solaris has the function
20831 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
20832 for ac_header in sys/loadavg.h
20833 do :
20834 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
20835 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
20836 cat >>confdefs.h <<_ACEOF
20837 #define HAVE_SYS_LOADAVG_H 1
20838 _ACEOF
20842 done
20844 if test $ac_cv_header_sys_loadavg_h = yes; then
20845 HAVE_SYS_LOADAVG_H=1
20846 else
20847 HAVE_SYS_LOADAVG_H=0
20849 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
20850 # include <sys/loadavg.h>
20851 #endif
20852 #include <stdlib.h>
20854 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
20856 else
20857 HAVE_DECL_GETLOADAVG=0
20861 if test $HAVE_GETLOADAVG = 0; then
20870 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
20873 # Figure out what our getloadavg.c needs.
20877 # On HPUX9, an unprivileged user can get load averages this way.
20878 if test $gl_func_getloadavg_done = no; then
20879 for ac_func in pstat_getdynamic
20880 do :
20881 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
20882 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
20883 cat >>confdefs.h <<_ACEOF
20884 #define HAVE_PSTAT_GETDYNAMIC 1
20885 _ACEOF
20886 gl_func_getloadavg_done=yes
20888 done
20892 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
20893 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
20894 # Irix 4.0.5F has the header but not the library.
20895 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
20896 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
20897 gl_func_getloadavg_done=yes
20899 $as_echo "#define SVR4 1" >>confdefs.h
20903 if test $gl_func_getloadavg_done = no; then
20904 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
20905 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
20906 gl_func_getloadavg_done=yes
20908 $as_echo "#define UMAX 1" >>confdefs.h
20911 $as_echo "#define UMAX4_3 1" >>confdefs.h
20918 if test $gl_func_getloadavg_done = no; then
20919 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
20920 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
20921 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
20928 if test $gl_func_getloadavg_done = no; then
20929 for ac_header in mach/mach.h
20930 do :
20931 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
20932 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
20933 cat >>confdefs.h <<_ACEOF
20934 #define HAVE_MACH_MACH_H 1
20935 _ACEOF
20939 done
20943 for ac_header in nlist.h
20944 do :
20945 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
20946 if test "x$ac_cv_header_nlist_h" = x""yes; then :
20947 cat >>confdefs.h <<_ACEOF
20948 #define HAVE_NLIST_H 1
20949 _ACEOF
20950 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
20952 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
20954 cat >>confdefs.h <<_ACEOF
20955 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20956 _ACEOF
20961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20963 #include <nlist.h>
20965 main ()
20967 struct nlist x;
20968 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
20969 x.n_un.n_name = "";
20970 #else
20971 x.n_name = "";
20972 #endif
20974 return 0;
20976 _ACEOF
20977 if ac_fn_c_try_link "$LINENO"; then :
20979 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
20982 rm -f core conftest.err conftest.$ac_objext \
20983 conftest$ac_exeext conftest.$ac_ext
20987 done
20995 GNULIB_GETLOADAVG=1
21006 if test $REPLACE_GETOPT = 1; then
21015 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21025 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21030 GNULIB_GL_UNISTD_H_GETOPT=1
21039 REPLACE_GETOPT=0
21040 if test -n "$gl_replace_getopt"; then
21041 REPLACE_GETOPT=1
21044 if test $REPLACE_GETOPT = 1; then
21046 GETOPT_H=getopt.h
21048 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21054 if test $REPLACE_GETOPT = 1; then
21063 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21073 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21078 GNULIB_GL_UNISTD_H_GETOPT=1
21092 gl_gettimeofday_timezone=void
21093 if test $ac_cv_func_gettimeofday != yes; then
21094 HAVE_GETTIMEOFDAY=0
21095 else
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21100 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21101 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
21102 $as_echo_n "(cached) " >&6
21103 else
21104 if test "$cross_compiling" = yes; then :
21105 # When cross-compiling:
21106 case "$host_os" in
21107 # Guess all is fine on glibc systems.
21108 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21109 # If we don't know, assume the worst.
21110 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21111 esac
21113 else
21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115 /* end confdefs.h. */
21116 #include <string.h>
21117 #include <sys/time.h>
21118 #include <time.h>
21119 #include <stdlib.h>
21122 main ()
21125 time_t t = 0;
21126 struct tm *lt;
21127 struct tm saved_lt;
21128 struct timeval tv;
21129 lt = localtime (&t);
21130 saved_lt = *lt;
21131 gettimeofday (&tv, NULL);
21132 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21135 return 0;
21137 _ACEOF
21138 if ac_fn_c_try_run "$LINENO"; then :
21139 gl_cv_func_gettimeofday_clobber=no
21140 else
21141 gl_cv_func_gettimeofday_clobber=yes
21143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21144 conftest.$ac_objext conftest.beam conftest.$ac_ext
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21149 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21151 case "$gl_cv_func_gettimeofday_clobber" in
21152 *yes)
21153 REPLACE_GETTIMEOFDAY=1
21156 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
21159 $as_echo "#define localtime rpl_localtime" >>confdefs.h
21163 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21166 esac
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21169 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21170 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
21171 $as_echo_n "(cached) " >&6
21172 else
21173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21174 /* end confdefs.h. */
21175 #include <sys/time.h>
21176 struct timeval c;
21177 int gettimeofday (struct timeval *restrict, void *restrict);
21180 main ()
21182 /* glibc uses struct timezone * rather than the POSIX void *
21183 if _GNU_SOURCE is defined. However, since the only portable
21184 use of gettimeofday uses NULL as the second parameter, and
21185 since the glibc definition is actually more typesafe, it is
21186 not worth wrapping this to get a compliant signature. */
21187 int (*f) (struct timeval *restrict, void *restrict)
21188 = gettimeofday;
21189 int x = f (&c, 0);
21190 return !(x | c.tv_sec | c.tv_usec);
21193 return 0;
21195 _ACEOF
21196 if ac_fn_c_try_compile "$LINENO"; then :
21197 gl_cv_func_gettimeofday_posix_signature=yes
21198 else
21199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21201 #include <sys/time.h>
21202 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21205 main ()
21209 return 0;
21211 _ACEOF
21212 if ac_fn_c_try_compile "$LINENO"; then :
21213 gl_cv_func_gettimeofday_posix_signature=almost
21214 else
21215 gl_cv_func_gettimeofday_posix_signature=no
21217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21222 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21223 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21224 gl_gettimeofday_timezone='struct timezone'
21225 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21226 REPLACE_GETTIMEOFDAY=1
21228 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21229 REPLACE_GETTIMEOFDAY=1
21234 cat >>confdefs.h <<_ACEOF
21235 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21236 _ACEOF
21239 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21248 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21251 for ac_header in sys/timeb.h
21252 do :
21253 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21254 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
21255 cat >>confdefs.h <<_ACEOF
21256 #define HAVE_SYS_TIMEB_H 1
21257 _ACEOF
21261 done
21263 for ac_func in _ftime
21264 do :
21265 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21266 if test "x$ac_cv_func__ftime" = x""yes; then :
21267 cat >>confdefs.h <<_ACEOF
21268 #define HAVE__FTIME 1
21269 _ACEOF
21272 done
21281 GNULIB_GETTIMEOFDAY=1
21292 if test $ac_cv_func_lstat = yes; then
21294 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21295 *no)
21296 REPLACE_LSTAT=1
21298 esac
21299 else
21300 HAVE_LSTAT=0
21303 if test $REPLACE_LSTAT = 1; then
21312 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
21324 GNULIB_LSTAT=1
21336 if test $APPLE_UNIVERSAL_BUILD = 1; then
21337 # A universal build on Apple Mac OS X platforms.
21338 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
21339 # But we need a configuration result that is valid in both modes.
21340 gl_cv_func_working_mktime=no
21342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
21343 $as_echo_n "checking for working mktime... " >&6; }
21344 if test "${gl_cv_func_working_mktime+set}" = set; then :
21345 $as_echo_n "(cached) " >&6
21346 else
21347 if test "$cross_compiling" = yes; then :
21348 gl_cv_func_working_mktime=no
21349 else
21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351 /* end confdefs.h. */
21352 /* Test program from Paul Eggert and Tony Leneis. */
21353 #include <limits.h>
21354 #include <stdlib.h>
21355 #include <time.h>
21357 #ifdef HAVE_UNISTD_H
21358 # include <unistd.h>
21359 #endif
21361 #ifndef HAVE_ALARM
21362 # define alarm(X) /* empty */
21363 #endif
21365 /* Work around redefinition to rpl_putenv by other config tests. */
21366 #undef putenv
21368 static time_t time_t_max;
21369 static time_t time_t_min;
21371 /* Values we'll use to set the TZ environment variable. */
21372 static char *tz_strings[] = {
21373 (char *) 0, "TZ=GMT0", "TZ=JST-9",
21374 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21376 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21378 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21379 Based on a problem report from Andreas Jaeger. */
21380 static int
21381 spring_forward_gap ()
21383 /* glibc (up to about 1998-10-07) failed this test. */
21384 struct tm tm;
21386 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21387 instead of "TZ=America/Vancouver" in order to detect the bug even
21388 on systems that don't support the Olson extension, or don't have the
21389 full zoneinfo tables installed. */
21390 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21392 tm.tm_year = 98;
21393 tm.tm_mon = 3;
21394 tm.tm_mday = 5;
21395 tm.tm_hour = 2;
21396 tm.tm_min = 0;
21397 tm.tm_sec = 0;
21398 tm.tm_isdst = -1;
21399 return mktime (&tm) != (time_t) -1;
21402 static int
21403 mktime_test1 (time_t now)
21405 struct tm *lt;
21406 return ! (lt = localtime (&now)) || mktime (lt) == now;
21409 static int
21410 mktime_test (time_t now)
21412 return (mktime_test1 (now)
21413 && mktime_test1 ((time_t) (time_t_max - now))
21414 && mktime_test1 ((time_t) (time_t_min + now)));
21417 static int
21418 irix_6_4_bug ()
21420 /* Based on code from Ariel Faigon. */
21421 struct tm tm;
21422 tm.tm_year = 96;
21423 tm.tm_mon = 3;
21424 tm.tm_mday = 0;
21425 tm.tm_hour = 0;
21426 tm.tm_min = 0;
21427 tm.tm_sec = 0;
21428 tm.tm_isdst = -1;
21429 mktime (&tm);
21430 return tm.tm_mon == 2 && tm.tm_mday == 31;
21433 static int
21434 bigtime_test (int j)
21436 struct tm tm;
21437 time_t now;
21438 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21439 now = mktime (&tm);
21440 if (now != (time_t) -1)
21442 struct tm *lt = localtime (&now);
21443 if (! (lt
21444 && lt->tm_year == tm.tm_year
21445 && lt->tm_mon == tm.tm_mon
21446 && lt->tm_mday == tm.tm_mday
21447 && lt->tm_hour == tm.tm_hour
21448 && lt->tm_min == tm.tm_min
21449 && lt->tm_sec == tm.tm_sec
21450 && lt->tm_yday == tm.tm_yday
21451 && lt->tm_wday == tm.tm_wday
21452 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21453 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21454 return 0;
21456 return 1;
21459 static int
21460 year_2050_test ()
21462 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21463 ignoring leap seconds. */
21464 unsigned long int answer = 2527315200UL;
21466 struct tm tm;
21467 time_t t;
21468 tm.tm_year = 2050 - 1900;
21469 tm.tm_mon = 2 - 1;
21470 tm.tm_mday = 1;
21471 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
21472 tm.tm_isdst = -1;
21474 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21475 instead of "TZ=America/Vancouver" in order to detect the bug even
21476 on systems that don't support the Olson extension, or don't have the
21477 full zoneinfo tables installed. */
21478 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21480 t = mktime (&tm);
21482 /* Check that the result is either a failure, or close enough
21483 to the correct answer that we can assume the discrepancy is
21484 due to leap seconds. */
21485 return (t == (time_t) -1
21486 || (0 < t && answer - 120 <= t && t <= answer + 120));
21490 main ()
21492 int result = 0;
21493 time_t t, delta;
21494 int i, j;
21495 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
21496 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
21498 /* This test makes some buggy mktime implementations loop.
21499 Give up after 60 seconds; a mktime slower than that
21500 isn't worth using anyway. */
21501 alarm (60);
21503 time_t_max = (! time_t_signed
21504 ? (time_t) -1
21505 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
21506 * 2 + 1));
21507 time_t_min = (! time_t_signed
21508 ? (time_t) 0
21509 : time_t_signed_magnitude
21510 ? ~ (time_t) 0
21511 : ~ time_t_max);
21513 delta = time_t_max / 997; /* a suitable prime number */
21514 for (i = 0; i < N_STRINGS; i++)
21516 if (tz_strings[i])
21517 putenv (tz_strings[i]);
21519 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
21520 if (! mktime_test (t))
21521 result |= 1;
21522 if ((result & 2) == 0
21523 && ! (mktime_test ((time_t) 1)
21524 && mktime_test ((time_t) (60 * 60))
21525 && mktime_test ((time_t) (60 * 60 * 24))))
21526 result |= 2;
21528 for (j = 1; (result & 4) == 0; j <<= 1)
21530 if (! bigtime_test (j))
21531 result |= 4;
21532 if (INT_MAX / 2 < j)
21533 break;
21535 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
21536 result |= 8;
21538 if (! irix_6_4_bug ())
21539 result |= 16;
21540 if (! spring_forward_gap ())
21541 result |= 32;
21542 if (! year_2050_test ())
21543 result |= 64;
21544 return result;
21546 _ACEOF
21547 if ac_fn_c_try_run "$LINENO"; then :
21548 gl_cv_func_working_mktime=yes
21549 else
21550 gl_cv_func_working_mktime=no
21552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21553 conftest.$ac_objext conftest.beam conftest.$ac_ext
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
21559 $as_echo "$gl_cv_func_working_mktime" >&6; }
21561 if test $gl_cv_func_working_mktime = no; then
21562 REPLACE_MKTIME=1
21563 else
21564 REPLACE_MKTIME=0
21567 if test $REPLACE_MKTIME = 1; then
21576 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
21585 GNULIB_MKTIME=1
21597 if test $ac_cv_func_pselect = yes; then
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
21599 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
21600 if test "${gl_cv_sig_pselect+set}" = set; then :
21601 $as_echo_n "(cached) " >&6
21602 else
21603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21604 /* end confdefs.h. */
21605 #include <sys/select.h>
21608 main ()
21610 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
21611 struct timespec const *restrict,
21612 sigset_t const *restrict) = pselect;
21613 return !p;
21615 return 0;
21617 _ACEOF
21618 if ac_fn_c_try_link "$LINENO"; then :
21619 gl_cv_sig_pselect=yes
21620 else
21621 gl_cv_sig_pselect=no
21623 rm -f core conftest.err conftest.$ac_objext \
21624 conftest$ac_exeext conftest.$ac_ext
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
21627 $as_echo "$gl_cv_sig_pselect" >&6; }
21630 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
21631 REPLACE_PSELECT=1
21634 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
21643 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
21651 GNULIB_PSELECT=1
21661 LIB_PTHREAD_SIGMASK=
21666 if test "$gl_threads_api" = posix; then
21667 if test $ac_cv_func_pthread_sigmask = yes; then
21669 else
21670 if test -n "$LIBMULTITHREAD"; then
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5
21672 $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; }
21673 if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then :
21674 $as_echo_n "(cached) " >&6
21675 else
21676 gl_save_LIBS="$LIBS"
21677 LIBS="$LIBS $LIBMULTITHREAD"
21678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21679 /* end confdefs.h. */
21680 #include <pthread.h>
21681 #include <signal.h>
21684 main ()
21686 return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0);
21688 return 0;
21691 _ACEOF
21692 if ac_fn_c_try_link "$LINENO"; then :
21693 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes
21694 else
21695 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no
21697 rm -f core conftest.err conftest.$ac_objext \
21698 conftest$ac_exeext conftest.$ac_ext
21699 LIBS="$gl_save_LIBS"
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5
21703 $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; }
21704 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then
21705 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD"
21706 else
21707 HAVE_PTHREAD_SIGMASK=0
21709 else
21710 HAVE_PTHREAD_SIGMASK=0
21713 else
21714 if test $ac_cv_func_pthread_sigmask = yes; then
21715 REPLACE_PTHREAD_SIGMASK=1
21716 else
21717 HAVE_PTHREAD_SIGMASK=0
21724 if test $HAVE_PTHREAD_SIGMASK = 1; then
21727 if test -z "$LIB_PTHREAD_SIGMASK"; then
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
21729 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
21730 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
21731 $as_echo_n "(cached) " >&6
21732 else
21734 if test "$cross_compiling" = yes; then :
21736 case "$host_os" in
21737 freebsd* | hpux* | solaris | solaris2.[2-9]*)
21738 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
21740 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
21741 esac
21743 else
21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21747 #include <pthread.h>
21748 #include <signal.h>
21749 #include <stddef.h>
21750 int main ()
21752 sigset_t set;
21753 sigemptyset (&set);
21754 return pthread_sigmask (1729, &set, NULL) != 0;
21756 _ACEOF
21757 if ac_fn_c_try_run "$LINENO"; then :
21758 gl_cv_func_pthread_sigmask_in_libc_works=no
21759 else
21760 gl_cv_func_pthread_sigmask_in_libc_works=yes
21762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21763 conftest.$ac_objext conftest.beam conftest.$ac_ext
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
21769 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
21770 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
21771 *no)
21772 REPLACE_PTHREAD_SIGMASK=1
21774 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
21777 esac
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
21781 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
21782 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
21783 $as_echo_n "(cached) " >&6
21784 else
21786 gl_save_LIBS="$LIBS"
21787 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
21788 if test "$cross_compiling" = yes; then :
21789 case "$host_os" in
21790 cygwin*)
21791 gl_cv_func_pthread_sigmask_return_works="guessing no";;
21793 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
21794 esac
21796 else
21797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21800 #include <pthread.h>
21801 #include <signal.h>
21802 #include <stddef.h>
21803 int main ()
21805 sigset_t set;
21806 sigemptyset (&set);
21807 if (pthread_sigmask (1729, &set, NULL) == -1)
21808 return 1;
21809 return 0;
21811 _ACEOF
21812 if ac_fn_c_try_run "$LINENO"; then :
21813 gl_cv_func_pthread_sigmask_return_works=yes
21814 else
21815 gl_cv_func_pthread_sigmask_return_works=no
21817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21818 conftest.$ac_objext conftest.beam conftest.$ac_ext
21821 LIBS="$gl_save_LIBS"
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
21825 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
21826 case "$gl_cv_func_pthread_sigmask_return_works" in
21827 *no)
21828 REPLACE_PTHREAD_SIGMASK=1
21830 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
21833 esac
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
21836 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
21837 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
21838 $as_echo_n "(cached) " >&6
21839 else
21841 case "$host_os" in
21842 irix*)
21843 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
21845 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
21846 esac
21847 gl_save_LIBS="$LIBS"
21848 LIBS="$LIBS $LIBMULTITHREAD"
21849 if test "$cross_compiling" = yes; then :
21851 else
21852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21853 /* end confdefs.h. */
21855 #include <pthread.h>
21856 #include <signal.h>
21857 #include <stdio.h>
21858 #include <stdlib.h>
21859 #include <unistd.h>
21860 static volatile int sigint_occurred;
21861 static void
21862 sigint_handler (int sig)
21864 sigint_occurred++;
21866 int main ()
21868 sigset_t set;
21869 int pid = getpid ();
21870 char command[80];
21871 signal (SIGINT, sigint_handler);
21872 sigemptyset (&set);
21873 sigaddset (&set, SIGINT);
21874 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
21875 return 1;
21876 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
21877 if (!(system (command) == 0))
21878 return 2;
21879 sleep (2);
21880 if (!(sigint_occurred == 0))
21881 return 3;
21882 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
21883 return 4;
21884 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
21885 return 5;
21886 return 0;
21888 _ACEOF
21889 if ac_fn_c_try_run "$LINENO"; then :
21891 else
21892 gl_cv_func_pthread_sigmask_unblock_works=no
21894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21895 conftest.$ac_objext conftest.beam conftest.$ac_ext
21898 LIBS="$gl_save_LIBS"
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
21902 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
21903 case "$gl_cv_func_pthread_sigmask_unblock_works" in
21904 *no)
21905 REPLACE_PTHREAD_SIGMASK=1
21907 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
21910 esac
21913 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
21922 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
21925 if test $HAVE_PTHREAD_SIGMASK = 1; then
21927 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
21937 GNULIB_PTHREAD_SIGMASK=1
21946 if test $ac_cv_func_readlink = no; then
21947 HAVE_READLINK=0
21948 else
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
21950 $as_echo_n "checking whether readlink signature is correct... " >&6; }
21951 if test "${gl_cv_decl_readlink_works+set}" = set; then :
21952 $as_echo_n "(cached) " >&6
21953 else
21954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21956 #include <unistd.h>
21957 /* Cause compilation failure if original declaration has wrong type. */
21958 ssize_t readlink (const char *, char *, size_t);
21960 main ()
21964 return 0;
21966 _ACEOF
21967 if ac_fn_c_try_compile "$LINENO"; then :
21968 gl_cv_decl_readlink_works=yes
21969 else
21970 gl_cv_decl_readlink_works=no
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
21975 $as_echo "$gl_cv_decl_readlink_works" >&6; }
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
21977 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
21978 if test "${gl_cv_func_readlink_works+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21980 else
21981 # We have readlink, so assume ln -s works.
21982 ln -s conftest.no-such conftest.link
21983 ln -s conftest.link conftest.lnk2
21984 if test "$cross_compiling" = yes; then :
21985 case "$host_os" in
21986 # Guess yes on glibc systems.
21987 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
21988 # If we don't know, assume the worst.
21989 *) gl_cv_func_readlink_works="guessing no" ;;
21990 esac
21992 else
21993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21994 /* end confdefs.h. */
21995 #include <unistd.h>
21998 main ()
22000 char buf[20];
22001 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
22003 return 0;
22005 _ACEOF
22006 if ac_fn_c_try_run "$LINENO"; then :
22007 gl_cv_func_readlink_works=yes
22008 else
22009 gl_cv_func_readlink_works=no
22011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22012 conftest.$ac_objext conftest.beam conftest.$ac_ext
22015 rm -f conftest.link conftest.lnk2
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
22018 $as_echo "$gl_cv_func_readlink_works" >&6; }
22019 case "$gl_cv_func_readlink_works" in
22020 *yes)
22021 if test "$gl_cv_decl_readlink_works" != yes; then
22022 REPLACE_READLINK=1
22027 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
22029 REPLACE_READLINK=1
22031 esac
22034 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
22043 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
22054 GNULIB_READLINK=1
22071 if test $gl_cv_have_include_next = yes; then
22072 gl_cv_next_signal_h='<'signal.h'>'
22073 else
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22075 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22076 if test "${gl_cv_next_signal_h+set}" = set; then :
22077 $as_echo_n "(cached) " >&6
22078 else
22080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h. */
22082 #include <signal.h>
22084 _ACEOF
22085 case "$host_os" in
22086 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22087 *) gl_absname_cpp="$ac_cpp" ;;
22088 esac
22090 case "$host_os" in
22091 mingw*)
22092 gl_dirsep_regex='[/\\]'
22095 gl_dirsep_regex='\/'
22097 esac
22098 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22100 gl_header_literal_regex=`echo 'signal.h' \
22101 | sed -e "$gl_make_literal_regex_sed"`
22102 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22103 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22104 s|^/[^/]|//&|
22108 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22109 sed -n "$gl_absolute_header_sed"`'"'
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22114 $as_echo "$gl_cv_next_signal_h" >&6; }
22116 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22118 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22120 gl_next_as_first_directive='<'signal.h'>'
22121 else
22122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22123 gl_next_as_first_directive=$gl_cv_next_signal_h
22125 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22131 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22132 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22133 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22134 #include <signal.h>
22137 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
22139 else
22140 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22149 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22150 #include <signal.h>
22153 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
22155 else
22156 HAVE_SIGHANDLER_T=0
22162 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22163 /* <sys/types.h> is not needed according to POSIX, but the
22164 <sys/socket.h> in i386-unknown-freebsd4.10 and
22165 powerpc-apple-darwin5.5 required it. */
22166 #include <sys/types.h>
22167 #if HAVE_SYS_SOCKET_H
22168 # include <sys/socket.h>
22169 #elif HAVE_WS2TCPIP_H
22170 # include <ws2tcpip.h>
22171 #endif
22174 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22176 else
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22178 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22179 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
22180 $as_echo_n "(cached) " >&6
22181 else
22182 # Systems have either "struct sockaddr *" or
22183 # "void *" as the second argument to getpeername
22184 gl_cv_socklen_t_equiv=
22185 for arg2 in "struct sockaddr" void; do
22186 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22188 /* end confdefs.h. */
22189 #include <sys/types.h>
22190 #include <sys/socket.h>
22192 int getpeername (int, $arg2 *, $t *);
22194 main ()
22196 $t len;
22197 getpeername (0, 0, &len);
22199 return 0;
22201 _ACEOF
22202 if ac_fn_c_try_compile "$LINENO"; then :
22203 gl_cv_socklen_t_equiv="$t"
22205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22206 test "$gl_cv_socklen_t_equiv" != "" && break
22207 done
22208 test "$gl_cv_socklen_t_equiv" != "" && break
22209 done
22213 if test "$gl_cv_socklen_t_equiv" = ""; then
22214 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22217 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22219 cat >>confdefs.h <<_ACEOF
22220 #define socklen_t $gl_cv_socklen_t_equiv
22221 _ACEOF
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22227 $as_echo_n "checking for ssize_t... " >&6; }
22228 if test "${gt_cv_ssize_t+set}" = set; then :
22229 $as_echo_n "(cached) " >&6
22230 else
22231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h. */
22233 #include <sys/types.h>
22235 main ()
22237 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22238 return !x;
22240 return 0;
22242 _ACEOF
22243 if ac_fn_c_try_compile "$LINENO"; then :
22244 gt_cv_ssize_t=yes
22245 else
22246 gt_cv_ssize_t=no
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22251 $as_echo "$gt_cv_ssize_t" >&6; }
22252 if test $gt_cv_ssize_t = no; then
22254 $as_echo "#define ssize_t int" >>confdefs.h
22262 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>
22263 #include <sys/stat.h>
22265 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
22267 cat >>confdefs.h <<_ACEOF
22268 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22269 _ACEOF
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
22272 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
22273 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22275 else
22276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277 /* end confdefs.h. */
22279 #include <sys/types.h>
22280 #include <sys/stat.h>
22281 #if HAVE_SYS_TIME_H
22282 # include <sys/time.h>
22283 #endif
22284 #include <time.h>
22285 struct timespec ts;
22286 struct stat st;
22289 main ()
22292 st.st_atim = ts;
22295 return 0;
22297 _ACEOF
22298 if ac_fn_c_try_compile "$LINENO"; then :
22299 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
22300 else
22301 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
22306 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
22307 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
22309 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
22312 else
22313 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>
22314 #include <sys/stat.h>
22316 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
22318 cat >>confdefs.h <<_ACEOF
22319 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
22320 _ACEOF
22323 else
22324 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
22325 #include <sys/stat.h>
22327 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
22329 cat >>confdefs.h <<_ACEOF
22330 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22331 _ACEOF
22334 else
22335 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>
22336 #include <sys/stat.h>
22338 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
22340 cat >>confdefs.h <<_ACEOF
22341 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
22342 _ACEOF
22357 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>
22358 #include <sys/stat.h>
22360 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
22362 cat >>confdefs.h <<_ACEOF
22363 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
22364 _ACEOF
22367 else
22368 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
22369 #include <sys/stat.h>
22371 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
22373 cat >>confdefs.h <<_ACEOF
22374 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
22375 _ACEOF
22378 else
22379 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>
22380 #include <sys/stat.h>
22382 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
22384 cat >>confdefs.h <<_ACEOF
22385 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
22386 _ACEOF
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22398 $as_echo_n "checking for working stdalign.h... " >&6; }
22399 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
22400 $as_echo_n "(cached) " >&6
22401 else
22402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403 /* end confdefs.h. */
22404 #include <stdalign.h>
22405 #include <stddef.h>
22407 /* Test that alignof yields a result consistent with offsetof.
22408 This catches GCC bug 52023
22409 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22410 #ifdef __cplusplus
22411 template <class t> struct alignof_helper { char a; t b; };
22412 # define ao(type) offsetof (alignof_helper<type>, b)
22413 #else
22414 # define ao(type) offsetof (struct { char a; type b; }, b)
22415 #endif
22416 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22417 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22418 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22420 /* Test _Alignas only on platforms where gnulib can help. */
22421 #if \
22422 (__GNUC__ || __IBMC__ || __IBMCPP__ \
22423 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22424 int alignas (8) alignas_int = 1;
22425 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
22426 #endif
22429 main ()
22433 return 0;
22435 _ACEOF
22436 if ac_fn_c_try_compile "$LINENO"; then :
22437 gl_cv_header_working_stdalign_h=yes
22438 else
22439 gl_cv_header_working_stdalign_h=no
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22444 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22446 if test $gl_cv_header_working_stdalign_h = yes; then
22447 STDALIGN_H=''
22448 else
22449 STDALIGN_H='stdalign.h'
22453 if test -n "$STDALIGN_H"; then
22454 GL_GENERATE_STDALIGN_H_TRUE=
22455 GL_GENERATE_STDALIGN_H_FALSE='#'
22456 else
22457 GL_GENERATE_STDALIGN_H_TRUE='#'
22458 GL_GENERATE_STDALIGN_H_FALSE=
22463 STDARG_H=''
22464 NEXT_STDARG_H='<stdarg.h>'
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22466 $as_echo_n "checking for va_copy... " >&6; }
22467 if test "${gl_cv_func_va_copy+set}" = set; then :
22468 $as_echo_n "(cached) " >&6
22469 else
22471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22472 /* end confdefs.h. */
22473 #include <stdarg.h>
22475 main ()
22478 #ifndef va_copy
22479 void (*func) (va_list, va_list) = va_copy;
22480 #endif
22483 return 0;
22485 _ACEOF
22486 if ac_fn_c_try_compile "$LINENO"; then :
22487 gl_cv_func_va_copy=yes
22488 else
22489 gl_cv_func_va_copy=no
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22495 $as_echo "$gl_cv_func_va_copy" >&6; }
22496 if test $gl_cv_func_va_copy = no; then
22497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22498 /* end confdefs.h. */
22499 #if defined _AIX && !defined __GNUC__
22500 AIX vaccine
22501 #endif
22503 _ACEOF
22504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22505 $EGREP "vaccine" >/dev/null 2>&1; then :
22506 gl_aixcc=yes
22507 else
22508 gl_aixcc=no
22510 rm -f conftest*
22512 if test $gl_aixcc = yes; then
22513 STDARG_H=stdarg.h
22522 if test $gl_cv_have_include_next = yes; then
22523 gl_cv_next_stdarg_h='<'stdarg.h'>'
22524 else
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22526 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22527 if test "${gl_cv_next_stdarg_h+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22529 else
22531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22532 /* end confdefs.h. */
22533 #include <stdarg.h>
22535 _ACEOF
22536 case "$host_os" in
22537 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22538 *) gl_absname_cpp="$ac_cpp" ;;
22539 esac
22541 case "$host_os" in
22542 mingw*)
22543 gl_dirsep_regex='[/\\]'
22546 gl_dirsep_regex='\/'
22548 esac
22549 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22551 gl_header_literal_regex=`echo 'stdarg.h' \
22552 | sed -e "$gl_make_literal_regex_sed"`
22553 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22554 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22555 s|^/[^/]|//&|
22559 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22560 sed -n "$gl_absolute_header_sed"`'"'
22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22565 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22567 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22569 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22570 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22571 gl_next_as_first_directive='<'stdarg.h'>'
22572 else
22573 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22574 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22576 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22581 if test "$gl_cv_next_stdarg_h" = '""'; then
22582 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22583 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22585 else
22587 saved_as_echo_n="$as_echo_n"
22588 as_echo_n=':'
22589 if test "${gl_cv_func___va_copy+set}" = set; then :
22590 $as_echo_n "(cached) " >&6
22591 else
22593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22594 /* end confdefs.h. */
22595 #include <stdarg.h>
22597 main ()
22600 #ifndef __va_copy
22601 error, bail out
22602 #endif
22605 return 0;
22607 _ACEOF
22608 if ac_fn_c_try_compile "$LINENO"; then :
22609 gl_cv_func___va_copy=yes
22610 else
22611 gl_cv_func___va_copy=no
22613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 as_echo_n="$saved_as_echo_n"
22618 if test $gl_cv_func___va_copy = yes; then
22620 $as_echo "#define va_copy __va_copy" >>confdefs.h
22622 else
22625 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22631 if test -n "$STDARG_H"; then
22632 GL_GENERATE_STDARG_H_TRUE=
22633 GL_GENERATE_STDARG_H_FALSE='#'
22634 else
22635 GL_GENERATE_STDARG_H_TRUE='#'
22636 GL_GENERATE_STDARG_H_FALSE=
22644 # Define two additional variables used in the Makefile substitution.
22646 if test "$ac_cv_header_stdbool_h" = yes; then
22647 STDBOOL_H=''
22648 else
22649 STDBOOL_H='stdbool.h'
22652 if test -n "$STDBOOL_H"; then
22653 GL_GENERATE_STDBOOL_H_TRUE=
22654 GL_GENERATE_STDBOOL_H_FALSE='#'
22655 else
22656 GL_GENERATE_STDBOOL_H_TRUE='#'
22657 GL_GENERATE_STDBOOL_H_FALSE=
22661 if test "$ac_cv_type__Bool" = yes; then
22662 HAVE__BOOL=1
22663 else
22664 HAVE__BOOL=0
22671 STDDEF_H=
22672 if test $gt_cv_c_wchar_t = no; then
22673 HAVE_WCHAR_T=0
22674 STDDEF_H=stddef.h
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22677 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22678 if test "${gl_cv_decl_null_works+set}" = set; then :
22679 $as_echo_n "(cached) " >&6
22680 else
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h. */
22683 #include <stddef.h>
22684 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22687 main ()
22691 return 0;
22693 _ACEOF
22694 if ac_fn_c_try_compile "$LINENO"; then :
22695 gl_cv_decl_null_works=yes
22696 else
22697 gl_cv_decl_null_works=no
22699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22702 $as_echo "$gl_cv_decl_null_works" >&6; }
22703 if test $gl_cv_decl_null_works = no; then
22704 REPLACE_NULL=1
22705 STDDEF_H=stddef.h
22708 if test -n "$STDDEF_H"; then
22709 GL_GENERATE_STDDEF_H_TRUE=
22710 GL_GENERATE_STDDEF_H_FALSE='#'
22711 else
22712 GL_GENERATE_STDDEF_H_TRUE='#'
22713 GL_GENERATE_STDDEF_H_FALSE=
22716 if test -n "$STDDEF_H"; then
22725 if test $gl_cv_have_include_next = yes; then
22726 gl_cv_next_stddef_h='<'stddef.h'>'
22727 else
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22729 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22730 if test "${gl_cv_next_stddef_h+set}" = set; then :
22731 $as_echo_n "(cached) " >&6
22732 else
22734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22735 /* end confdefs.h. */
22736 #include <stddef.h>
22738 _ACEOF
22739 case "$host_os" in
22740 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22741 *) gl_absname_cpp="$ac_cpp" ;;
22742 esac
22744 case "$host_os" in
22745 mingw*)
22746 gl_dirsep_regex='[/\\]'
22749 gl_dirsep_regex='\/'
22751 esac
22752 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22754 gl_header_literal_regex=`echo 'stddef.h' \
22755 | sed -e "$gl_make_literal_regex_sed"`
22756 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22757 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22758 s|^/[^/]|//&|
22762 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22763 sed -n "$gl_absolute_header_sed"`'"'
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22768 $as_echo "$gl_cv_next_stddef_h" >&6; }
22770 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22772 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22774 gl_next_as_first_directive='<'stddef.h'>'
22775 else
22776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22777 gl_next_as_first_directive=$gl_cv_next_stddef_h
22779 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22798 if test $gl_cv_have_include_next = yes; then
22799 gl_cv_next_stdio_h='<'stdio.h'>'
22800 else
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22802 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22803 if test "${gl_cv_next_stdio_h+set}" = set; then :
22804 $as_echo_n "(cached) " >&6
22805 else
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h. */
22809 #include <stdio.h>
22811 _ACEOF
22812 case "$host_os" in
22813 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22814 *) gl_absname_cpp="$ac_cpp" ;;
22815 esac
22817 case "$host_os" in
22818 mingw*)
22819 gl_dirsep_regex='[/\\]'
22822 gl_dirsep_regex='\/'
22824 esac
22825 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22827 gl_header_literal_regex=`echo 'stdio.h' \
22828 | sed -e "$gl_make_literal_regex_sed"`
22829 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22830 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22831 s|^/[^/]|//&|
22835 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22836 sed -n "$gl_absolute_header_sed"`'"'
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22841 $as_echo "$gl_cv_next_stdio_h" >&6; }
22843 NEXT_STDIO_H=$gl_cv_next_stdio_h
22845 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22847 gl_next_as_first_directive='<'stdio.h'>'
22848 else
22849 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22850 gl_next_as_first_directive=$gl_cv_next_stdio_h
22852 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22858 GNULIB_FSCANF=1
22861 cat >>confdefs.h <<_ACEOF
22862 #define GNULIB_FSCANF 1
22863 _ACEOF
22866 GNULIB_SCANF=1
22869 cat >>confdefs.h <<_ACEOF
22870 #define GNULIB_SCANF 1
22871 _ACEOF
22874 GNULIB_FGETC=1
22875 GNULIB_GETC=1
22876 GNULIB_GETCHAR=1
22877 GNULIB_FGETS=1
22878 GNULIB_FREAD=1
22881 GNULIB_FPRINTF=1
22882 GNULIB_PRINTF=1
22883 GNULIB_VFPRINTF=1
22884 GNULIB_VPRINTF=1
22885 GNULIB_FPUTC=1
22886 GNULIB_PUTC=1
22887 GNULIB_PUTCHAR=1
22888 GNULIB_FPUTS=1
22889 GNULIB_PUTS=1
22890 GNULIB_FWRITE=1
22906 if test $gl_cv_have_include_next = yes; then
22907 gl_cv_next_stdlib_h='<'stdlib.h'>'
22908 else
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22910 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22911 if test "${gl_cv_next_stdlib_h+set}" = set; then :
22912 $as_echo_n "(cached) " >&6
22913 else
22915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22916 /* end confdefs.h. */
22917 #include <stdlib.h>
22919 _ACEOF
22920 case "$host_os" in
22921 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22922 *) gl_absname_cpp="$ac_cpp" ;;
22923 esac
22925 case "$host_os" in
22926 mingw*)
22927 gl_dirsep_regex='[/\\]'
22930 gl_dirsep_regex='\/'
22932 esac
22933 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22935 gl_header_literal_regex=`echo 'stdlib.h' \
22936 | sed -e "$gl_make_literal_regex_sed"`
22937 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22938 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22939 s|^/[^/]|//&|
22943 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22944 sed -n "$gl_absolute_header_sed"`'"'
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22949 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22951 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22955 gl_next_as_first_directive='<'stdlib.h'>'
22956 else
22957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22958 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22960 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
22970 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
22978 $as_echo "#define my_strftime nstrftime" >>confdefs.h
22987 if test "$ac_cv_have_decl_strtoimax" != yes; then
22988 HAVE_DECL_STRTOIMAX=0
22991 if test $ac_cv_func_strtoimax = yes; then
22992 HAVE_STRTOIMAX=1
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
22994 $as_echo_n "checking whether strtoimax works... " >&6; }
22995 if test "${gl_cv_func_strtoimax+set}" = set; then :
22996 $as_echo_n "(cached) " >&6
22997 else
22998 if test "$cross_compiling" = yes; then :
22999 case "$host_os" in
23000 # Guess no on AIX 5.
23001 aix5*) gl_cv_func_strtoimax="guessing no" ;;
23002 # Guess yes otherwise.
23003 *) gl_cv_func_strtoimax="guessing yes" ;;
23004 esac
23006 else
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h. */
23010 #include <errno.h>
23011 #include <string.h>
23012 #include <inttypes.h>
23013 int main ()
23015 if (sizeof (intmax_t) > sizeof (int))
23017 const char *s = "4294967295";
23018 char *p;
23019 intmax_t res;
23020 errno = 0;
23021 res = strtoimax (s, &p, 10);
23022 if (p != s + strlen (s))
23023 return 1;
23024 if (errno != 0)
23025 return 2;
23026 if (res != (intmax_t) 65535 * (intmax_t) 65537)
23027 return 3;
23029 else
23031 const char *s = "2147483647";
23032 char *p;
23033 intmax_t res;
23034 errno = 0;
23035 res = strtoimax (s, &p, 10);
23036 if (p != s + strlen (s))
23037 return 1;
23038 if (errno != 0)
23039 return 2;
23040 if (res != 2147483647)
23041 return 3;
23043 return 0;
23046 _ACEOF
23047 if ac_fn_c_try_run "$LINENO"; then :
23048 gl_cv_func_strtoimax=yes
23049 else
23050 gl_cv_func_strtoimax=no
23052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23053 conftest.$ac_objext conftest.beam conftest.$ac_ext
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
23059 $as_echo "$gl_cv_func_strtoimax" >&6; }
23060 case "$gl_cv_func_strtoimax" in
23061 *no) REPLACE_STRTOIMAX=1 ;;
23062 esac
23063 else
23064 HAVE_STRTOIMAX=0
23067 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
23076 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
23079 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
23080 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
23081 ac_have_decl=1
23082 else
23083 ac_have_decl=0
23086 cat >>confdefs.h <<_ACEOF
23087 #define HAVE_DECL_STRTOLL $ac_have_decl
23088 _ACEOF
23098 GNULIB_STRTOIMAX=1
23108 if test "$ac_cv_have_decl_strtoumax" != yes; then
23109 HAVE_DECL_STRTOUMAX=0
23112 if test $ac_cv_func_strtoumax = no; then
23121 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
23124 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
23125 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
23126 ac_have_decl=1
23127 else
23128 ac_have_decl=0
23131 cat >>confdefs.h <<_ACEOF
23132 #define HAVE_DECL_STRTOULL $ac_have_decl
23133 _ACEOF
23143 GNULIB_STRTOUMAX=1
23151 if test $ac_cv_func_symlink = no; then
23152 HAVE_SYMLINK=0
23153 else
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
23155 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
23156 if test "${gl_cv_func_symlink_works+set}" = set; then :
23157 $as_echo_n "(cached) " >&6
23158 else
23159 if test "$cross_compiling" = yes; then :
23160 case "$host_os" in
23161 # Guess yes on glibc systems.
23162 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
23163 # If we don't know, assume the worst.
23164 *) gl_cv_func_symlink_works="guessing no" ;;
23165 esac
23167 else
23168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h. */
23170 #include <unistd.h>
23173 main ()
23175 int result = 0;
23176 if (!symlink ("a", "conftest.link/"))
23177 result |= 1;
23178 if (symlink ("conftest.f", "conftest.lnk2"))
23179 result |= 2;
23180 else if (!symlink ("a", "conftest.lnk2/"))
23181 result |= 4;
23182 return result;
23185 return 0;
23187 _ACEOF
23188 if ac_fn_c_try_run "$LINENO"; then :
23189 gl_cv_func_symlink_works=yes
23190 else
23191 gl_cv_func_symlink_works=no
23193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23194 conftest.$ac_objext conftest.beam conftest.$ac_ext
23197 rm -f conftest.f conftest.link conftest.lnk2
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
23200 $as_echo "$gl_cv_func_symlink_works" >&6; }
23201 case "$gl_cv_func_symlink_works" in
23202 *yes) ;;
23204 REPLACE_SYMLINK=1
23206 esac
23209 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
23218 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
23226 GNULIB_SYMLINK=1
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23236 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23237 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
23238 $as_echo_n "(cached) " >&6
23239 else
23241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23242 /* end confdefs.h. */
23243 #include <sys/select.h>
23245 main ()
23247 struct timeval b;
23249 return 0;
23251 _ACEOF
23252 if ac_fn_c_try_compile "$LINENO"; then :
23253 gl_cv_header_sys_select_h_selfcontained=yes
23254 else
23255 gl_cv_header_sys_select_h_selfcontained=no
23257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260 /* end confdefs.h. */
23261 #include <sys/select.h>
23263 main ()
23265 int memset; int bzero;
23267 return 0;
23270 _ACEOF
23271 if ac_fn_c_try_compile "$LINENO"; then :
23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273 /* end confdefs.h. */
23274 #include <sys/select.h>
23276 main ()
23279 #undef memset
23280 #define memset nonexistent_memset
23281 extern
23282 #ifdef __cplusplus
23284 #endif
23285 void *memset (void *, int, unsigned long);
23286 #undef bzero
23287 #define bzero nonexistent_bzero
23288 extern
23289 #ifdef __cplusplus
23291 #endif
23292 void bzero (void *, unsigned long);
23293 fd_set fds;
23294 FD_ZERO (&fds);
23297 return 0;
23300 _ACEOF
23301 if ac_fn_c_try_link "$LINENO"; then :
23303 else
23304 gl_cv_header_sys_select_h_selfcontained=no
23306 rm -f core conftest.err conftest.$ac_objext \
23307 conftest$ac_exeext conftest.$ac_ext
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23315 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23325 if test $gl_cv_have_include_next = yes; then
23326 gl_cv_next_sys_select_h='<'sys/select.h'>'
23327 else
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23329 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23330 if test "${gl_cv_next_sys_select_h+set}" = set; then :
23331 $as_echo_n "(cached) " >&6
23332 else
23334 if test $ac_cv_header_sys_select_h = yes; then
23337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23339 #include <sys/select.h>
23341 _ACEOF
23342 case "$host_os" in
23343 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23344 *) gl_absname_cpp="$ac_cpp" ;;
23345 esac
23347 case "$host_os" in
23348 mingw*)
23349 gl_dirsep_regex='[/\\]'
23352 gl_dirsep_regex='\/'
23354 esac
23355 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23357 gl_header_literal_regex=`echo 'sys/select.h' \
23358 | sed -e "$gl_make_literal_regex_sed"`
23359 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23360 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23361 s|^/[^/]|//&|
23365 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23366 sed -n "$gl_absolute_header_sed"`'"'
23367 else
23368 gl_cv_next_sys_select_h='<'sys/select.h'>'
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23374 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23376 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23378 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23380 gl_next_as_first_directive='<'sys/select.h'>'
23381 else
23382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23383 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23385 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23390 if test $ac_cv_header_sys_select_h = yes; then
23391 HAVE_SYS_SELECT_H=1
23392 else
23393 HAVE_SYS_SELECT_H=0
23400 if test $ac_cv_header_sys_socket_h != yes; then
23401 for ac_header in winsock2.h
23402 do :
23403 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23404 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
23405 cat >>confdefs.h <<_ACEOF
23406 #define HAVE_WINSOCK2_H 1
23407 _ACEOF
23411 done
23414 if test "$ac_cv_header_winsock2_h" = yes; then
23415 HAVE_WINSOCK2_H=1
23416 UNISTD_H_HAVE_WINSOCK2_H=1
23417 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23418 else
23419 HAVE_WINSOCK2_H=0
23441 if test $gl_cv_have_include_next = yes; then
23442 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23443 else
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23445 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23446 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
23447 $as_echo_n "(cached) " >&6
23448 else
23450 if test $ac_cv_header_sys_stat_h = yes; then
23453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23454 /* end confdefs.h. */
23455 #include <sys/stat.h>
23457 _ACEOF
23458 case "$host_os" in
23459 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23460 *) gl_absname_cpp="$ac_cpp" ;;
23461 esac
23463 case "$host_os" in
23464 mingw*)
23465 gl_dirsep_regex='[/\\]'
23468 gl_dirsep_regex='\/'
23470 esac
23471 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23473 gl_header_literal_regex=`echo 'sys/stat.h' \
23474 | sed -e "$gl_make_literal_regex_sed"`
23475 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23476 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23477 s|^/[^/]|//&|
23481 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23482 sed -n "$gl_absolute_header_sed"`'"'
23483 else
23484 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23490 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23492 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23494 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23495 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23496 gl_next_as_first_directive='<'sys/stat.h'>'
23497 else
23498 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23499 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23501 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23513 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23515 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23519 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23520 #include <sys/stat.h>
23522 if test "x$ac_cv_type_nlink_t" = x""yes; then :
23524 else
23526 $as_echo "#define nlink_t int" >>confdefs.h
23547 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
23549 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
23550 ac_have_decl=1
23551 else
23552 ac_have_decl=0
23555 cat >>confdefs.h <<_ACEOF
23556 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
23557 _ACEOF
23559 if test $ac_cv_have_decl_localtime_r = no; then
23560 HAVE_DECL_LOCALTIME_R=0
23564 if test $ac_cv_func_localtime_r = yes; then
23565 HAVE_LOCALTIME_R=1
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
23567 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
23568 if test "${gl_cv_time_r_posix+set}" = set; then :
23569 $as_echo_n "(cached) " >&6
23570 else
23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23573 #include <time.h>
23575 main ()
23577 /* We don't need to append 'restrict's to the argument types,
23578 even though the POSIX signature has the 'restrict's,
23579 since C99 says they can't affect type compatibility. */
23580 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
23581 if (ptr) return 0;
23582 /* Check the return type is a pointer.
23583 On HP-UX 10 it is 'int'. */
23584 *localtime_r (0, 0);
23586 return 0;
23589 _ACEOF
23590 if ac_fn_c_try_compile "$LINENO"; then :
23591 gl_cv_time_r_posix=yes
23592 else
23593 gl_cv_time_r_posix=no
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
23599 $as_echo "$gl_cv_time_r_posix" >&6; }
23600 if test $gl_cv_time_r_posix = yes; then
23601 REPLACE_LOCALTIME_R=0
23602 else
23603 REPLACE_LOCALTIME_R=1
23605 else
23606 HAVE_LOCALTIME_R=0
23609 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
23618 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
23629 GNULIB_TIME_R=1
23640 LIB_TIMER_TIME=
23642 gl_saved_libs=$LIBS
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5
23644 $as_echo_n "checking for library containing timer_settime... " >&6; }
23645 if test "${ac_cv_search_timer_settime+set}" = set; then :
23646 $as_echo_n "(cached) " >&6
23647 else
23648 ac_func_search_save_LIBS=$LIBS
23649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23650 /* end confdefs.h. */
23652 /* Override any GCC internal prototype to avoid an error.
23653 Use char because int might match the return type of a GCC
23654 builtin and then its argument prototype would still apply. */
23655 #ifdef __cplusplus
23656 extern "C"
23657 #endif
23658 char timer_settime ();
23660 main ()
23662 return timer_settime ();
23664 return 0;
23666 _ACEOF
23667 for ac_lib in '' rt posix4; do
23668 if test -z "$ac_lib"; then
23669 ac_res="none required"
23670 else
23671 ac_res=-l$ac_lib
23672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23674 if ac_fn_c_try_link "$LINENO"; then :
23675 ac_cv_search_timer_settime=$ac_res
23677 rm -f core conftest.err conftest.$ac_objext \
23678 conftest$ac_exeext
23679 if test "${ac_cv_search_timer_settime+set}" = set; then :
23680 break
23682 done
23683 if test "${ac_cv_search_timer_settime+set}" = set; then :
23685 else
23686 ac_cv_search_timer_settime=no
23688 rm conftest.$ac_ext
23689 LIBS=$ac_func_search_save_LIBS
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5
23692 $as_echo "$ac_cv_search_timer_settime" >&6; }
23693 ac_res=$ac_cv_search_timer_settime
23694 if test "$ac_res" != no; then :
23695 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23696 test "$ac_cv_search_timer_settime" = "none required" ||
23697 LIB_TIMER_TIME=$ac_cv_search_timer_settime
23700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23703 #include <features.h>
23704 #ifdef __GNU_LIBRARY__
23705 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \
23706 && !defined __UCLIBC__
23707 Thread emulation available
23708 #endif
23709 #endif
23711 _ACEOF
23712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23713 $EGREP "Thread" >/dev/null 2>&1; then :
23714 LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD"
23716 rm -f conftest*
23718 for ac_func in timer_settime
23719 do :
23720 ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime"
23721 if test "x$ac_cv_func_timer_settime" = x""yes; then :
23722 cat >>confdefs.h <<_ACEOF
23723 #define HAVE_TIMER_SETTIME 1
23724 _ACEOF
23727 done
23729 LIBS=$gl_saved_libs
23745 if test $gl_cv_have_include_next = yes; then
23746 gl_cv_next_unistd_h='<'unistd.h'>'
23747 else
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
23749 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
23750 if test "${gl_cv_next_unistd_h+set}" = set; then :
23751 $as_echo_n "(cached) " >&6
23752 else
23754 if test $ac_cv_header_unistd_h = yes; then
23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23758 /* end confdefs.h. */
23759 #include <unistd.h>
23761 _ACEOF
23762 case "$host_os" in
23763 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23764 *) gl_absname_cpp="$ac_cpp" ;;
23765 esac
23767 case "$host_os" in
23768 mingw*)
23769 gl_dirsep_regex='[/\\]'
23772 gl_dirsep_regex='\/'
23774 esac
23775 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23777 gl_header_literal_regex=`echo 'unistd.h' \
23778 | sed -e "$gl_make_literal_regex_sed"`
23779 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23780 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23781 s|^/[^/]|//&|
23785 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23786 sed -n "$gl_absolute_header_sed"`'"'
23787 else
23788 gl_cv_next_unistd_h='<'unistd.h'>'
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
23794 $as_echo "$gl_cv_next_unistd_h" >&6; }
23796 NEXT_UNISTD_H=$gl_cv_next_unistd_h
23798 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23799 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23800 gl_next_as_first_directive='<'unistd.h'>'
23801 else
23802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23803 gl_next_as_first_directive=$gl_cv_next_unistd_h
23805 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
23810 if test $ac_cv_header_unistd_h = yes; then
23811 HAVE_UNISTD_H=1
23812 else
23813 HAVE_UNISTD_H=0
23829 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
23831 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
23832 if test "${gl_cv_func_futimesat_works+set}" = set; then :
23833 $as_echo_n "(cached) " >&6
23834 else
23835 touch conftest.file
23836 if test "$cross_compiling" = yes; then :
23837 case "$host_os" in
23838 # Guess yes on glibc systems.
23839 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
23840 # If we don't know, assume the worst.
23841 *) gl_cv_func_futimesat_works="guessing no" ;;
23842 esac
23844 else
23845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23846 /* end confdefs.h. */
23848 #include <stddef.h>
23849 #include <sys/times.h>
23850 #include <fcntl.h>
23853 main ()
23855 int fd = open ("conftest.file", O_RDWR);
23856 if (fd < 0) return 1;
23857 if (futimesat (fd, NULL, NULL)) return 2;
23860 return 0;
23862 _ACEOF
23863 if ac_fn_c_try_run "$LINENO"; then :
23864 gl_cv_func_futimesat_works=yes
23865 else
23866 gl_cv_func_futimesat_works=no
23868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23869 conftest.$ac_objext conftest.beam conftest.$ac_ext
23872 rm -f conftest.file
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
23875 $as_echo "$gl_cv_func_futimesat_works" >&6; }
23876 case "$gl_cv_func_futimesat_works" in
23877 *yes) ;;
23880 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
23883 esac
23886 gl_gnulib_enabled_dosname=false
23887 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
23888 gl_gnulib_enabled_pathmax=false
23889 gl_gnulib_enabled_stat=false
23890 gl_gnulib_enabled_strtoll=false
23891 gl_gnulib_enabled_strtoull=false
23892 gl_gnulib_enabled_verify=false
23893 func_gl_gnulib_m4code_dosname ()
23895 if ! $gl_gnulib_enabled_dosname; then
23896 gl_gnulib_enabled_dosname=true
23899 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
23901 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
23904 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
23907 func_gl_gnulib_m4code_pathmax ()
23909 if ! $gl_gnulib_enabled_pathmax; then
23913 gl_gnulib_enabled_pathmax=true
23916 func_gl_gnulib_m4code_stat ()
23918 if ! $gl_gnulib_enabled_stat; then
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
23923 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
23924 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
23925 $as_echo_n "(cached) " >&6
23926 else
23927 if test "$cross_compiling" = yes; then :
23928 case $host_os in
23929 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
23930 *) gl_cv_func_stat_dir_slash="guessing yes";;
23931 esac
23932 else
23933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23934 /* end confdefs.h. */
23935 #include <sys/stat.h>
23938 main ()
23940 struct stat st; return stat (".", &st) != stat ("./", &st);
23942 return 0;
23944 _ACEOF
23945 if ac_fn_c_try_run "$LINENO"; then :
23946 gl_cv_func_stat_dir_slash=yes
23947 else
23948 gl_cv_func_stat_dir_slash=no
23950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23951 conftest.$ac_objext conftest.beam conftest.$ac_ext
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
23956 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
23958 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
23959 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
23960 $as_echo_n "(cached) " >&6
23961 else
23962 touch conftest.tmp
23963 # Assume that if we have lstat, we can also check symlinks.
23964 if test $ac_cv_func_lstat = yes; then
23965 ln -s conftest.tmp conftest.lnk
23967 if test "$cross_compiling" = yes; then :
23968 case "$host_os" in
23969 # Guess yes on glibc systems.
23970 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
23971 # If we don't know, assume the worst.
23972 *) gl_cv_func_stat_file_slash="guessing no" ;;
23973 esac
23975 else
23976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h. */
23978 #include <sys/stat.h>
23981 main ()
23983 int result = 0;
23984 struct stat st;
23985 if (!stat ("conftest.tmp/", &st))
23986 result |= 1;
23987 #if HAVE_LSTAT
23988 if (!stat ("conftest.lnk/", &st))
23989 result |= 2;
23990 #endif
23991 return result;
23994 return 0;
23996 _ACEOF
23997 if ac_fn_c_try_run "$LINENO"; then :
23998 gl_cv_func_stat_file_slash=yes
23999 else
24000 gl_cv_func_stat_file_slash=no
24002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24003 conftest.$ac_objext conftest.beam conftest.$ac_ext
24006 rm -f conftest.tmp conftest.lnk
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
24009 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
24010 case $gl_cv_func_stat_dir_slash in
24011 *no) REPLACE_STAT=1
24013 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
24015 esac
24016 case $gl_cv_func_stat_file_slash in
24017 *no) REPLACE_STAT=1
24019 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
24021 esac
24023 if test $REPLACE_STAT = 1; then
24032 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
24044 GNULIB_STAT=1
24050 gl_gnulib_enabled_stat=true
24051 if test $REPLACE_STAT = 1; then
24052 func_gl_gnulib_m4code_dosname
24054 if test $REPLACE_STAT = 1; then
24055 func_gl_gnulib_m4code_pathmax
24057 if test $REPLACE_STAT = 1; then
24058 func_gl_gnulib_m4code_verify
24062 func_gl_gnulib_m4code_strtoll ()
24064 if ! $gl_gnulib_enabled_strtoll; then
24068 if test "$ac_cv_type_long_long_int" = yes; then
24069 for ac_func in strtoll
24070 do :
24071 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
24072 if test "x$ac_cv_func_strtoll" = x""yes; then :
24073 cat >>confdefs.h <<_ACEOF
24074 #define HAVE_STRTOLL 1
24075 _ACEOF
24078 done
24080 if test $ac_cv_func_strtoll = no; then
24081 HAVE_STRTOLL=0
24085 if test $HAVE_STRTOLL = 0; then
24094 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
24105 GNULIB_STRTOLL=1
24111 gl_gnulib_enabled_strtoll=true
24114 func_gl_gnulib_m4code_strtoull ()
24116 if ! $gl_gnulib_enabled_strtoull; then
24120 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
24121 for ac_func in strtoull
24122 do :
24123 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
24124 if test "x$ac_cv_func_strtoull" = x""yes; then :
24125 cat >>confdefs.h <<_ACEOF
24126 #define HAVE_STRTOULL 1
24127 _ACEOF
24130 done
24132 if test $ac_cv_func_strtoull = no; then
24133 HAVE_STRTOULL=0
24137 if test $HAVE_STRTOULL = 0; then
24146 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
24157 GNULIB_STRTOULL=1
24163 gl_gnulib_enabled_strtoull=true
24166 func_gl_gnulib_m4code_verify ()
24168 if ! $gl_gnulib_enabled_verify; then
24169 gl_gnulib_enabled_verify=true
24172 if test $REPLACE_GETOPT = 1; then
24173 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
24175 if test $REPLACE_LSTAT = 1; then
24176 func_gl_gnulib_m4code_dosname
24178 if test $REPLACE_LSTAT = 1; then
24179 func_gl_gnulib_m4code_stat
24181 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
24182 func_gl_gnulib_m4code_stat
24184 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
24185 func_gl_gnulib_m4code_strtoll
24187 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
24188 func_gl_gnulib_m4code_verify
24190 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
24191 func_gl_gnulib_m4code_strtoull
24193 if test $ac_cv_func_strtoumax = no; then
24194 func_gl_gnulib_m4code_verify
24197 if $gl_gnulib_enabled_dosname; then
24198 gl_GNULIB_ENABLED_dosname_TRUE=
24199 gl_GNULIB_ENABLED_dosname_FALSE='#'
24200 else
24201 gl_GNULIB_ENABLED_dosname_TRUE='#'
24202 gl_GNULIB_ENABLED_dosname_FALSE=
24205 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
24206 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
24207 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
24208 else
24209 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
24210 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
24213 if $gl_gnulib_enabled_pathmax; then
24214 gl_GNULIB_ENABLED_pathmax_TRUE=
24215 gl_GNULIB_ENABLED_pathmax_FALSE='#'
24216 else
24217 gl_GNULIB_ENABLED_pathmax_TRUE='#'
24218 gl_GNULIB_ENABLED_pathmax_FALSE=
24221 if $gl_gnulib_enabled_stat; then
24222 gl_GNULIB_ENABLED_stat_TRUE=
24223 gl_GNULIB_ENABLED_stat_FALSE='#'
24224 else
24225 gl_GNULIB_ENABLED_stat_TRUE='#'
24226 gl_GNULIB_ENABLED_stat_FALSE=
24229 if $gl_gnulib_enabled_strtoll; then
24230 gl_GNULIB_ENABLED_strtoll_TRUE=
24231 gl_GNULIB_ENABLED_strtoll_FALSE='#'
24232 else
24233 gl_GNULIB_ENABLED_strtoll_TRUE='#'
24234 gl_GNULIB_ENABLED_strtoll_FALSE=
24237 if $gl_gnulib_enabled_strtoull; then
24238 gl_GNULIB_ENABLED_strtoull_TRUE=
24239 gl_GNULIB_ENABLED_strtoull_FALSE='#'
24240 else
24241 gl_GNULIB_ENABLED_strtoull_TRUE='#'
24242 gl_GNULIB_ENABLED_strtoull_FALSE=
24245 if $gl_gnulib_enabled_verify; then
24246 gl_GNULIB_ENABLED_verify_TRUE=
24247 gl_GNULIB_ENABLED_verify_FALSE='#'
24248 else
24249 gl_GNULIB_ENABLED_verify_TRUE='#'
24250 gl_GNULIB_ENABLED_verify_FALSE=
24253 # End of code from modules
24263 gltests_libdeps=
24264 gltests_ltlibdeps=
24274 gl_source_base='tests'
24275 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
24277 gl_module_indicator_condition=$gltests_WITNESS
24288 LIBGNU_LIBDEPS="$gl_libdeps"
24290 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
24293 CFLAGS=$SAVE_CFLAGS
24294 LIBS=$SAVE_LIBS
24296 case "$opsys" in
24297 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
24299 darwin)
24300 ## The -headerpad option tells ld (see man page) to leave room at the
24301 ## end of the header for adding load commands. Needed for dumping.
24302 ## 0x690 is the total size of 30 segment load commands (at 56
24303 ## each); under Cocoa 31 commands are required.
24304 if test "$HAVE_NS" = "yes"; then
24305 libs_nsgui="-framework AppKit"
24306 headerpad_extra=6C8
24307 else
24308 libs_nsgui=
24309 headerpad_extra=690
24311 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
24313 ## This is here because src/Makefile.in did some extra fiddling around
24314 ## with LD_SWITCH_SYSTEM. The cpp logic was:
24315 ## #ifndef LD_SWITCH_SYSTEM
24316 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
24317 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
24318 ## not using gcc, darwin.
24319 ## Because this was done in src/Makefile.in, the resulting part of
24320 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
24321 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
24322 ## rather than LD_SWITCH_SYSTEM.
24323 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
24324 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
24327 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
24328 ## find X at run-time.
24329 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
24330 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
24331 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
24332 ## had different values in configure (in ac_link) and src/Makefile.in.
24333 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
24334 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
24336 *) LD_SWITCH_SYSTEM_TEMACS= ;;
24337 esac
24339 if test "$NS_IMPL_GNUSTEP" = "yes"; then
24340 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
24346 LD_FIRSTFLAG=
24347 ORDINARY_LINK=
24348 case "$opsys" in
24349 ## gnu: GNU needs its own crt0.
24350 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
24352 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
24353 ## library search parth, i.e. it won't search /usr/lib for libc and
24354 ## friends. Using -nostartfiles instead avoids this problem, and
24355 ## will also work on earlier NetBSD releases.
24356 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
24358 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
24359 ## MkLinux/LinuxPPC needs this.
24360 ## s390x-* only supports opsys = gnu-linux so it can be added here.
24361 gnu-*)
24362 case "$canonical" in
24363 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
24364 esac
24366 esac
24369 if test "x$ORDINARY_LINK" = "xyes"; then
24371 LD_FIRSTFLAG=""
24373 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
24376 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
24377 ## freebsd, gnu-* not on powerpc*|s390x*.
24378 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
24380 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
24381 ## places that are difficult to figure out at make time. Fortunately,
24382 ## these same versions allow you to pass arbitrary flags on to the
24383 ## linker, so there is no reason not to use it as a linker.
24385 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
24386 ## searching for libraries in its internal directories, so we have to
24387 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
24388 LD_FIRSTFLAG="-nostdlib"
24391 ## FIXME? What setting of EDIT_LDFLAGS should this have?
24392 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
24397 ## FIXME? The logic here is not precisely the same as that above.
24398 ## There is no check here for a pre-defined LD_FIRSTFLAG.
24399 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
24400 LIB_GCC=
24401 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
24403 case "$opsys" in
24404 freebsd|netbsd|openbsd) LIB_GCC= ;;
24406 gnu-*)
24407 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
24408 ## build on ARM EABI under GNU/Linux. (Bug#5518)
24409 case $host_cpu in
24410 arm*)
24411 LIB_GCC="-lgcc_s"
24414 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
24415 ## immediately undefine it again and redefine it to empty.
24416 ## Was the C_SWITCH_X_SITE part really necessary?
24417 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
24418 LIB_GCC=
24420 esac
24423 ## Ask GCC where to find libgcc.a.
24424 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
24425 esac
24428 ## Common for all window systems
24429 if test "$window_system" != "none"; then
24431 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
24434 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
24436 WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o"
24443 #### Report on what we decided to do.
24444 #### Report GTK as a toolkit, even if it doesn't use Xt.
24445 #### It makes printing result more understandable as using GTK sets
24446 #### toolkit_scroll_bars to yes by default.
24447 if test "${HAVE_GTK}" = "yes"; then
24448 USE_X_TOOLKIT="$USE_GTK_TOOLKIT"
24451 echo "
24452 Configured for \`${canonical}'.
24454 Where should the build process find the source code? ${srcdir}
24455 What compiler should emacs be built with? ${CC} ${CFLAGS}
24456 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24457 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24458 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24459 What window system should Emacs use? ${window_system}
24460 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24462 if test -n "${x_includes}"; then
24463 echo " Where do we find X Windows header files? ${x_includes}"
24464 else
24465 echo " Where do we find X Windows header files? Standard dirs"
24467 if test -n "${x_libraries}"; then
24468 echo " Where do we find X Windows libraries? ${x_libraries}"
24469 else
24470 echo " Where do we find X Windows libraries? Standard dirs"
24473 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24474 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24475 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24476 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24477 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
24478 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24479 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24480 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
24482 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24483 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24484 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
24485 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
24486 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
24487 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
24488 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
24490 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24491 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24492 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24493 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24495 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24496 echo
24498 if test -n "${EMACSDATA}"; then
24499 echo " Environment variable EMACSDATA set to: $EMACSDATA"
24501 if test -n "${EMACSDOC}"; then
24502 echo " Environment variable EMACSDOC set to: $EMACSDOC"
24505 echo
24507 if test "$HAVE_NS" = "yes"; then
24508 echo
24509 echo "You must run \"${MAKE-make} install\" in order to test the built application.
24510 The installed application will go to nextstep/Emacs.app and can be
24511 run or moved from there."
24512 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24513 echo "The application will be fully self-contained."
24514 else
24515 echo "The lisp resources for the application will be installed under ${prefix}.
24516 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
24517 to run if these resources are not installed."
24519 echo
24522 if test "${opsys}" = "cygwin"; then
24523 case `uname -r` in
24524 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
24525 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
24526 echo
24528 esac
24531 # Remove any trailing slashes in these variables.
24532 test "${prefix}" != NONE &&
24533 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24534 test "${exec_prefix}" != NONE &&
24535 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24537 if test "$HAVE_NS" = "yes"; then
24538 if test "$NS_IMPL_GNUSTEP" = yes; then
24539 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"
24541 else
24542 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"
24547 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"
24549 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"
24552 opt_makefile=test/automated/Makefile
24554 if test -f $srcdir/${opt_makefile}.in; then
24555 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24556 ac_config_files="$ac_config_files test/automated/Makefile"
24561 opt_makefile=admin/unidata/Makefile
24563 if test -f $srcdir/${opt_makefile}.in; then
24564 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
24565 ac_config_files="$ac_config_files admin/unidata/Makefile"
24570 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
24574 ac_config_commands="$ac_config_commands mkdirs"
24577 ac_config_commands="$ac_config_commands epaths"
24580 ac_config_commands="$ac_config_commands gdbinit"
24583 cat >confcache <<\_ACEOF
24584 # This file is a shell script that caches the results of configure
24585 # tests run on this system so they can be shared between configure
24586 # scripts and configure runs, see configure's option --config-cache.
24587 # It is not useful on other systems. If it contains results you don't
24588 # want to keep, you may remove or edit it.
24590 # config.status only pays attention to the cache file if you give it
24591 # the --recheck option to rerun configure.
24593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24595 # following values.
24597 _ACEOF
24599 # The following way of writing the cache mishandles newlines in values,
24600 # but we know of no workaround that is simple, portable, and efficient.
24601 # So, we kill variables containing newlines.
24602 # Ultrix sh set writes to stderr and can't be redirected directly,
24603 # and sets the high bit in the cache file unless we assign to the vars.
24605 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24606 eval ac_val=\$$ac_var
24607 case $ac_val in #(
24608 *${as_nl}*)
24609 case $ac_var in #(
24610 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24611 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24612 esac
24613 case $ac_var in #(
24614 _ | IFS | as_nl) ;; #(
24615 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24616 *) { eval $ac_var=; unset $ac_var;} ;;
24617 esac ;;
24618 esac
24619 done
24621 (set) 2>&1 |
24622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24623 *${as_nl}ac_space=\ *)
24624 # `set' does not quote correctly, so add quotes: double-quote
24625 # substitution turns \\\\ into \\, and sed turns \\ into \.
24626 sed -n \
24627 "s/'/'\\\\''/g;
24628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24629 ;; #(
24631 # `set' quotes correctly as required by POSIX, so do not add quotes.
24632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24634 esac |
24635 sort
24637 sed '
24638 /^ac_cv_env_/b end
24639 t clear
24640 :clear
24641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24642 t end
24643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24644 :end' >>confcache
24645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24646 if test -w "$cache_file"; then
24647 test "x$cache_file" != "x/dev/null" &&
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24649 $as_echo "$as_me: updating cache $cache_file" >&6;}
24650 cat confcache >$cache_file
24651 else
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24653 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24656 rm -f confcache
24658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24659 # Let make expand exec_prefix.
24660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24662 DEFS=-DHAVE_CONFIG_H
24664 ac_libobjs=
24665 ac_ltlibobjs=
24666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24667 # 1. Remove the extension, and $U if already installed.
24668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24669 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24671 # will be set to the directory where LIBOBJS objects are built.
24672 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24673 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24674 done
24675 LIBOBJS=$ac_libobjs
24677 LTLIBOBJS=$ac_ltlibobjs
24680 if test -n "$EXEEXT"; then
24681 am__EXEEXT_TRUE=
24682 am__EXEEXT_FALSE='#'
24683 else
24684 am__EXEEXT_TRUE='#'
24685 am__EXEEXT_FALSE=
24688 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24689 as_fn_error "conditional \"AMDEP\" was never defined.
24690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24693 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24696 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24697 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
24698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24700 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
24701 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
24702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24705 if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then
24706 as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined.
24707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24709 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
24710 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
24711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24713 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
24714 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
24715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24717 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
24718 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
24719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24721 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
24722 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
24723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24725 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
24726 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
24727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24729 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
24730 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
24731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24733 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
24734 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
24735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24737 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
24738 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
24739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24741 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
24742 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
24743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24745 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
24746 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
24747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24749 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
24750 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
24751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24753 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
24754 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
24755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24758 gl_libobjs=
24759 gl_ltlibobjs=
24760 if test -n "$gl_LIBOBJS"; then
24761 # Remove the extension.
24762 sed_drop_objext='s/\.o$//;s/\.obj$//'
24763 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24764 gl_libobjs="$gl_libobjs $i.$ac_objext"
24765 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24766 done
24768 gl_LIBOBJS=$gl_libobjs
24770 gl_LTLIBOBJS=$gl_ltlibobjs
24774 gltests_libobjs=
24775 gltests_ltlibobjs=
24776 if test -n "$gltests_LIBOBJS"; then
24777 # Remove the extension.
24778 sed_drop_objext='s/\.o$//;s/\.obj$//'
24779 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24780 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24781 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24782 done
24784 gltests_LIBOBJS=$gltests_libobjs
24786 gltests_LTLIBOBJS=$gltests_ltlibobjs
24790 : ${CONFIG_STATUS=./config.status}
24791 ac_write_fail=0
24792 ac_clean_files_save=$ac_clean_files
24793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24796 as_write_fail=0
24797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24798 #! $SHELL
24799 # Generated by $as_me.
24800 # Run this file to recreate the current configuration.
24801 # Compiler output produced by configure, useful for debugging
24802 # configure, is in config.log if it exists.
24804 debug=false
24805 ac_cs_recheck=false
24806 ac_cs_silent=false
24808 SHELL=\${CONFIG_SHELL-$SHELL}
24809 export SHELL
24810 _ASEOF
24811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24812 ## -------------------- ##
24813 ## M4sh Initialization. ##
24814 ## -------------------- ##
24816 # Be more Bourne compatible
24817 DUALCASE=1; export DUALCASE # for MKS sh
24818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24819 emulate sh
24820 NULLCMD=:
24821 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24822 # is contrary to our usage. Disable this feature.
24823 alias -g '${1+"$@"}'='"$@"'
24824 setopt NO_GLOB_SUBST
24825 else
24826 case `(set -o) 2>/dev/null` in #(
24827 *posix*) :
24828 set -o posix ;; #(
24829 *) :
24831 esac
24835 as_nl='
24837 export as_nl
24838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24839 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24842 # Prefer a ksh shell builtin over an external printf program on Solaris,
24843 # but without wasting forks for bash or zsh.
24844 if test -z "$BASH_VERSION$ZSH_VERSION" \
24845 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24846 as_echo='print -r --'
24847 as_echo_n='print -rn --'
24848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24849 as_echo='printf %s\n'
24850 as_echo_n='printf %s'
24851 else
24852 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24853 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24854 as_echo_n='/usr/ucb/echo -n'
24855 else
24856 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24857 as_echo_n_body='eval
24858 arg=$1;
24859 case $arg in #(
24860 *"$as_nl"*)
24861 expr "X$arg" : "X\\(.*\\)$as_nl";
24862 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24863 esac;
24864 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24866 export as_echo_n_body
24867 as_echo_n='sh -c $as_echo_n_body as_echo'
24869 export as_echo_body
24870 as_echo='sh -c $as_echo_body as_echo'
24873 # The user is always right.
24874 if test "${PATH_SEPARATOR+set}" != set; then
24875 PATH_SEPARATOR=:
24876 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24877 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24878 PATH_SEPARATOR=';'
24883 # IFS
24884 # We need space, tab and new line, in precisely that order. Quoting is
24885 # there to prevent editors from complaining about space-tab.
24886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24887 # splitting by setting IFS to empty value.)
24888 IFS=" "" $as_nl"
24890 # Find who we are. Look in the path if we contain no directory separator.
24891 case $0 in #((
24892 *[\\/]* ) as_myself=$0 ;;
24893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24894 for as_dir in $PATH
24896 IFS=$as_save_IFS
24897 test -z "$as_dir" && as_dir=.
24898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24899 done
24900 IFS=$as_save_IFS
24903 esac
24904 # We did not find ourselves, most probably we were run as `sh COMMAND'
24905 # in which case we are not to be found in the path.
24906 if test "x$as_myself" = x; then
24907 as_myself=$0
24909 if test ! -f "$as_myself"; then
24910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24911 exit 1
24914 # Unset variables that we do not need and which cause bugs (e.g. in
24915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24916 # suppresses any "Segmentation fault" message there. '((' could
24917 # trigger a bug in pdksh 5.2.14.
24918 for as_var in BASH_ENV ENV MAIL MAILPATH
24919 do eval test x\${$as_var+set} = xset \
24920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24921 done
24922 PS1='$ '
24923 PS2='> '
24924 PS4='+ '
24926 # NLS nuisances.
24927 LC_ALL=C
24928 export LC_ALL
24929 LANGUAGE=C
24930 export LANGUAGE
24932 # CDPATH.
24933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24936 # as_fn_error ERROR [LINENO LOG_FD]
24937 # ---------------------------------
24938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24940 # script with status $?, using 1 if that was 0.
24941 as_fn_error ()
24943 as_status=$?; test $as_status -eq 0 && as_status=1
24944 if test "$3"; then
24945 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24948 $as_echo "$as_me: error: $1" >&2
24949 as_fn_exit $as_status
24950 } # as_fn_error
24953 # as_fn_set_status STATUS
24954 # -----------------------
24955 # Set $? to STATUS, without forking.
24956 as_fn_set_status ()
24958 return $1
24959 } # as_fn_set_status
24961 # as_fn_exit STATUS
24962 # -----------------
24963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24964 as_fn_exit ()
24966 set +e
24967 as_fn_set_status $1
24968 exit $1
24969 } # as_fn_exit
24971 # as_fn_unset VAR
24972 # ---------------
24973 # Portably unset VAR.
24974 as_fn_unset ()
24976 { eval $1=; unset $1;}
24978 as_unset=as_fn_unset
24979 # as_fn_append VAR VALUE
24980 # ----------------------
24981 # Append the text in VALUE to the end of the definition contained in VAR. Take
24982 # advantage of any shell optimizations that allow amortized linear growth over
24983 # repeated appends, instead of the typical quadratic growth present in naive
24984 # implementations.
24985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24986 eval 'as_fn_append ()
24988 eval $1+=\$2
24990 else
24991 as_fn_append ()
24993 eval $1=\$$1\$2
24995 fi # as_fn_append
24997 # as_fn_arith ARG...
24998 # ------------------
24999 # Perform arithmetic evaluation on the ARGs, and store the result in the
25000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25001 # must be portable across $(()) and expr.
25002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25003 eval 'as_fn_arith ()
25005 as_val=$(( $* ))
25007 else
25008 as_fn_arith ()
25010 as_val=`expr "$@" || test $? -eq 1`
25012 fi # as_fn_arith
25015 if expr a : '\(a\)' >/dev/null 2>&1 &&
25016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25017 as_expr=expr
25018 else
25019 as_expr=false
25022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25023 as_basename=basename
25024 else
25025 as_basename=false
25028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25029 as_dirname=dirname
25030 else
25031 as_dirname=false
25034 as_me=`$as_basename -- "$0" ||
25035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25036 X"$0" : 'X\(//\)$' \| \
25037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25038 $as_echo X/"$0" |
25039 sed '/^.*\/\([^/][^/]*\)\/*$/{
25040 s//\1/
25043 /^X\/\(\/\/\)$/{
25044 s//\1/
25047 /^X\/\(\/\).*/{
25048 s//\1/
25051 s/.*/./; q'`
25053 # Avoid depending upon Character Ranges.
25054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25057 as_cr_digits='0123456789'
25058 as_cr_alnum=$as_cr_Letters$as_cr_digits
25060 ECHO_C= ECHO_N= ECHO_T=
25061 case `echo -n x` in #(((((
25062 -n*)
25063 case `echo 'xy\c'` in
25064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25065 xy) ECHO_C='\c';;
25066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25067 ECHO_T=' ';;
25068 esac;;
25070 ECHO_N='-n';;
25071 esac
25073 rm -f conf$$ conf$$.exe conf$$.file
25074 if test -d conf$$.dir; then
25075 rm -f conf$$.dir/conf$$.file
25076 else
25077 rm -f conf$$.dir
25078 mkdir conf$$.dir 2>/dev/null
25080 if (echo >conf$$.file) 2>/dev/null; then
25081 if ln -s conf$$.file conf$$ 2>/dev/null; then
25082 as_ln_s='ln -s'
25083 # ... but there are two gotchas:
25084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25086 # In both cases, we have to default to `cp -p'.
25087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25088 as_ln_s='cp -p'
25089 elif ln conf$$.file conf$$ 2>/dev/null; then
25090 as_ln_s=ln
25091 else
25092 as_ln_s='cp -p'
25094 else
25095 as_ln_s='cp -p'
25097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25098 rmdir conf$$.dir 2>/dev/null
25101 # as_fn_mkdir_p
25102 # -------------
25103 # Create "$as_dir" as a directory, including parents if necessary.
25104 as_fn_mkdir_p ()
25107 case $as_dir in #(
25108 -*) as_dir=./$as_dir;;
25109 esac
25110 test -d "$as_dir" || eval $as_mkdir_p || {
25111 as_dirs=
25112 while :; do
25113 case $as_dir in #(
25114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25115 *) as_qdir=$as_dir;;
25116 esac
25117 as_dirs="'$as_qdir' $as_dirs"
25118 as_dir=`$as_dirname -- "$as_dir" ||
25119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25120 X"$as_dir" : 'X\(//\)[^/]' \| \
25121 X"$as_dir" : 'X\(//\)$' \| \
25122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25123 $as_echo X"$as_dir" |
25124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25125 s//\1/
25128 /^X\(\/\/\)[^/].*/{
25129 s//\1/
25132 /^X\(\/\/\)$/{
25133 s//\1/
25136 /^X\(\/\).*/{
25137 s//\1/
25140 s/.*/./; q'`
25141 test -d "$as_dir" && break
25142 done
25143 test -z "$as_dirs" || eval "mkdir $as_dirs"
25144 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25147 } # as_fn_mkdir_p
25148 if mkdir -p . 2>/dev/null; then
25149 as_mkdir_p='mkdir -p "$as_dir"'
25150 else
25151 test -d ./-p && rmdir ./-p
25152 as_mkdir_p=false
25155 if test -x / >/dev/null 2>&1; then
25156 as_test_x='test -x'
25157 else
25158 if ls -dL / >/dev/null 2>&1; then
25159 as_ls_L_option=L
25160 else
25161 as_ls_L_option=
25163 as_test_x='
25164 eval sh -c '\''
25165 if test -d "$1"; then
25166 test -d "$1/.";
25167 else
25168 case $1 in #(
25169 -*)set "./$1";;
25170 esac;
25171 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25172 ???[sx]*):;;*)false;;esac;fi
25173 '\'' sh
25176 as_executable_p=$as_test_x
25178 # Sed expression to map a string onto a valid CPP name.
25179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25181 # Sed expression to map a string onto a valid variable name.
25182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25185 exec 6>&1
25186 ## ----------------------------------- ##
25187 ## Main body of $CONFIG_STATUS script. ##
25188 ## ----------------------------------- ##
25189 _ASEOF
25190 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25193 # Save the log message, to keep $0 and so on meaningful, and to
25194 # report actual input values of CONFIG_FILES etc. instead of their
25195 # values after options handling.
25196 ac_log="
25197 This file was extended by emacs $as_me 24.2.50, which was
25198 generated by GNU Autoconf 2.65. Invocation command line was
25200 CONFIG_FILES = $CONFIG_FILES
25201 CONFIG_HEADERS = $CONFIG_HEADERS
25202 CONFIG_LINKS = $CONFIG_LINKS
25203 CONFIG_COMMANDS = $CONFIG_COMMANDS
25204 $ $0 $@
25206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25209 _ACEOF
25211 case $ac_config_files in *"
25212 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25213 esac
25215 case $ac_config_headers in *"
25216 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25217 esac
25220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25221 # Files that config.status was made for.
25222 config_files="$ac_config_files"
25223 config_headers="$ac_config_headers"
25224 config_commands="$ac_config_commands"
25226 _ACEOF
25228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25229 ac_cs_usage="\
25230 \`$as_me' instantiates files and other configuration actions
25231 from templates according to the current configuration. Unless the files
25232 and actions are specified as TAGs, all are instantiated by default.
25234 Usage: $0 [OPTION]... [TAG]...
25236 -h, --help print this help, then exit
25237 -V, --version print version number and configuration settings, then exit
25238 --config print configuration, then exit
25239 -q, --quiet, --silent
25240 do not print progress messages
25241 -d, --debug don't remove temporary files
25242 --recheck update $as_me by reconfiguring in the same conditions
25243 --file=FILE[:TEMPLATE]
25244 instantiate the configuration file FILE
25245 --header=FILE[:TEMPLATE]
25246 instantiate the configuration header FILE
25248 Configuration files:
25249 $config_files
25251 Configuration headers:
25252 $config_headers
25254 Configuration commands:
25255 $config_commands
25257 Report bugs to the package provider."
25259 _ACEOF
25260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25261 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25262 ac_cs_version="\\
25263 emacs config.status 24.2.50
25264 configured by $0, generated by GNU Autoconf 2.65,
25265 with options \\"\$ac_cs_config\\"
25267 Copyright (C) 2009 Free Software Foundation, Inc.
25268 This config.status script is free software; the Free Software Foundation
25269 gives unlimited permission to copy, distribute and modify it."
25271 ac_pwd='$ac_pwd'
25272 srcdir='$srcdir'
25273 INSTALL='$INSTALL'
25274 MKDIR_P='$MKDIR_P'
25275 AWK='$AWK'
25276 test -n "\$AWK" || AWK=awk
25277 _ACEOF
25279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25280 # The default lists apply if the user does not specify any file.
25281 ac_need_defaults=:
25282 while test $# != 0
25284 case $1 in
25285 --*=*)
25286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25288 ac_shift=:
25291 ac_option=$1
25292 ac_optarg=$2
25293 ac_shift=shift
25295 esac
25297 case $ac_option in
25298 # Handling of the options.
25299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25300 ac_cs_recheck=: ;;
25301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25302 $as_echo "$ac_cs_version"; exit ;;
25303 --config | --confi | --conf | --con | --co | --c )
25304 $as_echo "$ac_cs_config"; exit ;;
25305 --debug | --debu | --deb | --de | --d | -d )
25306 debug=: ;;
25307 --file | --fil | --fi | --f )
25308 $ac_shift
25309 case $ac_optarg in
25310 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25311 esac
25312 as_fn_append CONFIG_FILES " '$ac_optarg'"
25313 ac_need_defaults=false;;
25314 --header | --heade | --head | --hea )
25315 $ac_shift
25316 case $ac_optarg in
25317 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25318 esac
25319 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25320 ac_need_defaults=false;;
25321 --he | --h)
25322 # Conflict between --help and --header
25323 as_fn_error "ambiguous option: \`$1'
25324 Try \`$0 --help' for more information.";;
25325 --help | --hel | -h )
25326 $as_echo "$ac_cs_usage"; exit ;;
25327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25328 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25329 ac_cs_silent=: ;;
25331 # This is an error.
25332 -*) as_fn_error "unrecognized option: \`$1'
25333 Try \`$0 --help' for more information." ;;
25335 *) as_fn_append ac_config_targets " $1"
25336 ac_need_defaults=false ;;
25338 esac
25339 shift
25340 done
25342 ac_configure_extra_args=
25344 if $ac_cs_silent; then
25345 exec 6>/dev/null
25346 ac_configure_extra_args="$ac_configure_extra_args --silent"
25349 _ACEOF
25350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25351 if \$ac_cs_recheck; then
25352 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25353 shift
25354 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25355 CONFIG_SHELL='$SHELL'
25356 export CONFIG_SHELL
25357 exec "\$@"
25360 _ACEOF
25361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25362 exec 5>>config.log
25364 echo
25365 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25366 ## Running $as_me. ##
25367 _ASBOX
25368 $as_echo "$ac_log"
25369 } >&5
25371 _ACEOF
25372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25374 # INIT-COMMANDS
25376 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25377 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
25379 _ACEOF
25381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25383 # Handling of arguments.
25384 for ac_config_target in $ac_config_targets
25386 case $ac_config_target in
25387 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25388 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25389 "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" ;;
25390 "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;;
25391 "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;;
25392 "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" ;;
25393 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25394 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25395 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
25396 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25397 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25398 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25399 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25400 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25401 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25402 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25403 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25404 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25405 "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;;
25406 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
25407 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
25408 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
25409 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
25410 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
25412 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25413 esac
25414 done
25417 # If the user did not use the arguments to specify the items to instantiate,
25418 # then the envvar interface is used. Set only those that are not.
25419 # We use the long form for the default assignment because of an extremely
25420 # bizarre bug on SunOS 4.1.3.
25421 if $ac_need_defaults; then
25422 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25423 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25424 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25427 # Have a temporary directory for convenience. Make it in the build tree
25428 # simply because there is no reason against having it here, and in addition,
25429 # creating and moving files from /tmp can sometimes cause problems.
25430 # Hook for its removal unless debugging.
25431 # Note that there is a small window in which the directory will not be cleaned:
25432 # after its creation but before its name has been assigned to `$tmp'.
25433 $debug ||
25435 tmp=
25436 trap 'exit_status=$?
25437 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25439 trap 'as_fn_exit 1' 1 2 13 15
25441 # Create a (secure) tmp directory for tmp files.
25444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25445 test -n "$tmp" && test -d "$tmp"
25446 } ||
25448 tmp=./conf$$-$RANDOM
25449 (umask 077 && mkdir "$tmp")
25450 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25452 # Set up the scripts for CONFIG_FILES section.
25453 # No need to generate them if there are no CONFIG_FILES.
25454 # This happens for instance with `./config.status config.h'.
25455 if test -n "$CONFIG_FILES"; then
25457 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25458 ac_cs_awk_getline=:
25459 ac_cs_awk_pipe_init=
25460 ac_cs_awk_read_file='
25461 while ((getline aline < (F[key])) > 0)
25462 print(aline)
25463 close(F[key])'
25464 ac_cs_awk_pipe_fini=
25465 else
25466 ac_cs_awk_getline=false
25467 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25468 ac_cs_awk_read_file='
25469 print "|#_!!_#|"
25470 print "cat " F[key] " &&"
25471 '$ac_cs_awk_pipe_init
25472 # The final `:' finishes the AND list.
25473 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25475 ac_cr=`echo X | tr X '\015'`
25476 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25477 # But we know of no other shell where ac_cr would be empty at this
25478 # point, so we can use a bashism as a fallback.
25479 if test "x$ac_cr" = x; then
25480 eval ac_cr=\$\'\\r\'
25482 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25483 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25484 ac_cs_awk_cr='\r'
25485 else
25486 ac_cs_awk_cr=$ac_cr
25489 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25490 _ACEOF
25492 # Create commands to substitute file output variables.
25494 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25495 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25496 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25497 echo "_ACAWK" &&
25498 echo "_ACEOF"
25499 } >conf$$files.sh &&
25500 . ./conf$$files.sh ||
25501 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25502 rm -f conf$$files.sh
25505 echo "cat >conf$$subs.awk <<_ACEOF" &&
25506 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25507 echo "_ACEOF"
25508 } >conf$$subs.sh ||
25509 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25510 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25511 ac_delim='%!_!# '
25512 for ac_last_try in false false false false false :; do
25513 . ./conf$$subs.sh ||
25514 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25516 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25517 if test $ac_delim_n = $ac_delim_num; then
25518 break
25519 elif $ac_last_try; then
25520 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25521 else
25522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25524 done
25525 rm -f conf$$subs.sh
25527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25528 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25529 _ACEOF
25530 sed -n '
25532 s/^/S["/; s/!.*/"]=/
25535 s/^[^!]*!//
25536 :repl
25537 t repl
25538 s/'"$ac_delim"'$//
25539 t delim
25542 s/\(.\{148\}\)..*/\1/
25543 t more1
25544 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25547 b repl
25548 :more1
25549 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25552 s/.\{148\}//
25553 t nl
25554 :delim
25556 s/\(.\{148\}\)..*/\1/
25557 t more2
25558 s/["\\]/\\&/g; s/^/"/; s/$/"/
25561 :more2
25562 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25565 s/.\{148\}//
25566 t delim
25567 ' <conf$$subs.awk | sed '
25568 /^[^""]/{
25570 s/\n//
25572 ' >>$CONFIG_STATUS || ac_write_fail=1
25573 rm -f conf$$subs.awk
25574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25575 _ACAWK
25576 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25577 for (key in S) S_is_set[key] = 1
25578 FS = "\a"
25579 \$ac_cs_awk_pipe_init
25582 line = $ 0
25583 nfields = split(line, field, "@")
25584 substed = 0
25585 len = length(field[1])
25586 for (i = 2; i < nfields; i++) {
25587 key = field[i]
25588 keylen = length(key)
25589 if (S_is_set[key]) {
25590 value = S[key]
25591 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25592 len += length(value) + length(field[++i])
25593 substed = 1
25594 } else
25595 len += 1 + keylen
25597 if (nfields == 3 && !substed) {
25598 key = field[2]
25599 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25600 \$ac_cs_awk_read_file
25601 next
25604 print line
25606 \$ac_cs_awk_pipe_fini
25607 _ACAWK
25608 _ACEOF
25609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25610 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25611 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25612 else
25614 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25615 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25616 _ACEOF
25618 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25619 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25620 # trailing colons and then remove the whole line if VPATH becomes empty
25621 # (actually we leave an empty line to preserve line numbers).
25622 if test "x$srcdir" = x.; then
25623 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25624 s/:*\$(srcdir):*/:/
25625 s/:*\${srcdir}:*/:/
25626 s/:*@srcdir@:*/:/
25627 s/^\([^=]*=[ ]*\):*/\1/
25628 s/:*$//
25629 s/^[^=]*=[ ]*$//
25633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25634 fi # test -n "$CONFIG_FILES"
25636 # Set up the scripts for CONFIG_HEADERS section.
25637 # No need to generate them if there are no CONFIG_HEADERS.
25638 # This happens for instance with `./config.status Makefile'.
25639 if test -n "$CONFIG_HEADERS"; then
25640 cat >"$tmp/defines.awk" <<\_ACAWK ||
25641 BEGIN {
25642 _ACEOF
25644 # Transform confdefs.h into an awk script `defines.awk', embedded as
25645 # here-document in config.status, that substitutes the proper values into
25646 # config.h.in to produce config.h.
25648 # Create a delimiter string that does not exist in confdefs.h, to ease
25649 # handling of long lines.
25650 ac_delim='%!_!# '
25651 for ac_last_try in false false :; do
25652 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25653 if test -z "$ac_t"; then
25654 break
25655 elif $ac_last_try; then
25656 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25657 else
25658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25660 done
25662 # For the awk script, D is an array of macro values keyed by name,
25663 # likewise P contains macro parameters if any. Preserve backslash
25664 # newline sequences.
25666 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25667 sed -n '
25668 s/.\{148\}/&'"$ac_delim"'/g
25669 t rset
25670 :rset
25671 s/^[ ]*#[ ]*define[ ][ ]*/ /
25672 t def
25674 :def
25675 s/\\$//
25676 t bsnl
25677 s/["\\]/\\&/g
25678 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25679 D["\1"]=" \3"/p
25680 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25682 :bsnl
25683 s/["\\]/\\&/g
25684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25685 D["\1"]=" \3\\\\\\n"\\/p
25686 t cont
25687 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25688 t cont
25690 :cont
25692 s/.\{148\}/&'"$ac_delim"'/g
25693 t clear
25694 :clear
25695 s/\\$//
25696 t bsnlc
25697 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25699 :bsnlc
25700 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25701 b cont
25702 ' <confdefs.h | sed '
25703 s/'"$ac_delim"'/"\\\
25704 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25707 for (key in D) D_is_set[key] = 1
25708 FS = "\a"
25710 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25711 line = \$ 0
25712 split(line, arg, " ")
25713 if (arg[1] == "#") {
25714 defundef = arg[2]
25715 mac1 = arg[3]
25716 } else {
25717 defundef = substr(arg[1], 2)
25718 mac1 = arg[2]
25720 split(mac1, mac2, "(") #)
25721 macro = mac2[1]
25722 prefix = substr(line, 1, index(line, defundef) - 1)
25723 if (D_is_set[macro]) {
25724 # Preserve the white space surrounding the "#".
25725 print prefix "define", macro P[macro] D[macro]
25726 next
25727 } else {
25728 # Replace #undef with comments. This is necessary, for example,
25729 # in the case of _POSIX_SOURCE, which is predefined and required
25730 # on some systems where configure will not decide to define it.
25731 if (defundef == "undef") {
25732 print "/*", prefix defundef, macro, "*/"
25733 next
25737 { print }
25738 _ACAWK
25739 _ACEOF
25740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25741 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25742 fi # test -n "$CONFIG_HEADERS"
25745 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25746 shift
25747 for ac_tag
25749 case $ac_tag in
25750 :[FHLC]) ac_mode=$ac_tag; continue;;
25751 esac
25752 case $ac_mode$ac_tag in
25753 :[FHL]*:*);;
25754 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25755 :[FH]-) ac_tag=-:-;;
25756 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25757 esac
25758 ac_save_IFS=$IFS
25759 IFS=:
25760 set x $ac_tag
25761 IFS=$ac_save_IFS
25762 shift
25763 ac_file=$1
25764 shift
25766 case $ac_mode in
25767 :L) ac_source=$1;;
25768 :[FH])
25769 ac_file_inputs=
25770 for ac_f
25772 case $ac_f in
25773 -) ac_f="$tmp/stdin";;
25774 *) # Look for the file first in the build tree, then in the source tree
25775 # (if the path is not absolute). The absolute path cannot be DOS-style,
25776 # because $ac_f cannot contain `:'.
25777 test -f "$ac_f" ||
25778 case $ac_f in
25779 [\\/$]*) false;;
25780 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25781 esac ||
25782 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25783 esac
25784 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25785 as_fn_append ac_file_inputs " '$ac_f'"
25786 done
25788 # Let's still pretend it is `configure' which instantiates (i.e., don't
25789 # use $as_me), people would be surprised to read:
25790 # /* config.h. Generated by config.status. */
25791 configure_input='Generated from '`
25792 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25793 `' by configure.'
25794 if test x"$ac_file" != x-; then
25795 configure_input="$ac_file. $configure_input"
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25797 $as_echo "$as_me: creating $ac_file" >&6;}
25799 # Neutralize special characters interpreted by sed in replacement strings.
25800 case $configure_input in #(
25801 *\&* | *\|* | *\\* )
25802 ac_sed_conf_input=`$as_echo "$configure_input" |
25803 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25804 *) ac_sed_conf_input=$configure_input;;
25805 esac
25807 case $ac_tag in
25808 *:-:* | *:-) cat >"$tmp/stdin" \
25809 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25810 esac
25812 esac
25814 ac_dir=`$as_dirname -- "$ac_file" ||
25815 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25816 X"$ac_file" : 'X\(//\)[^/]' \| \
25817 X"$ac_file" : 'X\(//\)$' \| \
25818 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25819 $as_echo X"$ac_file" |
25820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25821 s//\1/
25824 /^X\(\/\/\)[^/].*/{
25825 s//\1/
25828 /^X\(\/\/\)$/{
25829 s//\1/
25832 /^X\(\/\).*/{
25833 s//\1/
25836 s/.*/./; q'`
25837 as_dir="$ac_dir"; as_fn_mkdir_p
25838 ac_builddir=.
25840 case "$ac_dir" in
25841 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25843 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25844 # A ".." for each directory in $ac_dir_suffix.
25845 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25846 case $ac_top_builddir_sub in
25847 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25848 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25849 esac ;;
25850 esac
25851 ac_abs_top_builddir=$ac_pwd
25852 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25853 # for backward compatibility:
25854 ac_top_builddir=$ac_top_build_prefix
25856 case $srcdir in
25857 .) # We are building in place.
25858 ac_srcdir=.
25859 ac_top_srcdir=$ac_top_builddir_sub
25860 ac_abs_top_srcdir=$ac_pwd ;;
25861 [\\/]* | ?:[\\/]* ) # Absolute name.
25862 ac_srcdir=$srcdir$ac_dir_suffix;
25863 ac_top_srcdir=$srcdir
25864 ac_abs_top_srcdir=$srcdir ;;
25865 *) # Relative name.
25866 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25867 ac_top_srcdir=$ac_top_build_prefix$srcdir
25868 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25869 esac
25870 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25873 case $ac_mode in
25876 # CONFIG_FILE
25879 case $INSTALL in
25880 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25881 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25882 esac
25883 ac_MKDIR_P=$MKDIR_P
25884 case $MKDIR_P in
25885 [\\/$]* | ?:[\\/]* ) ;;
25886 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25887 esac
25888 _ACEOF
25890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25891 # If the template does not know about datarootdir, expand it.
25892 # FIXME: This hack should be removed a few years after 2.60.
25893 ac_datarootdir_hack=; ac_datarootdir_seen=
25894 ac_sed_dataroot='
25895 /datarootdir/ {
25899 /@datadir@/p
25900 /@docdir@/p
25901 /@infodir@/p
25902 /@localedir@/p
25903 /@mandir@/p'
25904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25905 *datarootdir*) ac_datarootdir_seen=yes;;
25906 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25909 _ACEOF
25910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25911 ac_datarootdir_hack='
25912 s&@datadir@&$datadir&g
25913 s&@docdir@&$docdir&g
25914 s&@infodir@&$infodir&g
25915 s&@localedir@&$localedir&g
25916 s&@mandir@&$mandir&g
25917 s&\\\${datarootdir}&$datarootdir&g' ;;
25918 esac
25919 _ACEOF
25921 # Neutralize VPATH when `$srcdir' = `.'.
25922 # Shell code in configure.ac might set extrasub.
25923 # FIXME: do we really want to maintain this feature?
25924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25925 ac_sed_extra="$ac_vpsub
25926 $extrasub
25927 _ACEOF
25928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25931 s|@configure_input@|$ac_sed_conf_input|;t t
25932 s&@top_builddir@&$ac_top_builddir_sub&;t t
25933 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25934 s&@srcdir@&$ac_srcdir&;t t
25935 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25936 s&@top_srcdir@&$ac_top_srcdir&;t t
25937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25938 s&@builddir@&$ac_builddir&;t t
25939 s&@abs_builddir@&$ac_abs_builddir&;t t
25940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25941 s&@INSTALL@&$ac_INSTALL&;t t
25942 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25943 $ac_datarootdir_hack
25945 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25946 if $ac_cs_awk_getline; then
25947 $AWK -f "$tmp/subs.awk"
25948 else
25949 $AWK -f "$tmp/subs.awk" | $SHELL
25950 fi >$tmp/out \
25951 || as_fn_error "could not create $ac_file" "$LINENO" 5
25953 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25954 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25955 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25957 which seems to be undefined. Please make sure it is defined." >&5
25958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25959 which seems to be undefined. Please make sure it is defined." >&2;}
25961 rm -f "$tmp/stdin"
25962 case $ac_file in
25963 -) cat "$tmp/out" && rm -f "$tmp/out";;
25964 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25965 esac \
25966 || as_fn_error "could not create $ac_file" "$LINENO" 5
25970 # CONFIG_HEADER
25972 if test x"$ac_file" != x-; then
25974 $as_echo "/* $configure_input */" \
25975 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25976 } >"$tmp/config.h" \
25977 || as_fn_error "could not create $ac_file" "$LINENO" 5
25978 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25981 else
25982 rm -f "$ac_file"
25983 mv "$tmp/config.h" "$ac_file" \
25984 || as_fn_error "could not create $ac_file" "$LINENO" 5
25986 else
25987 $as_echo "/* $configure_input */" \
25988 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25989 || as_fn_error "could not create -" "$LINENO" 5
25991 # Compute "$ac_file"'s index in $config_headers.
25992 _am_arg="$ac_file"
25993 _am_stamp_count=1
25994 for _am_header in $config_headers :; do
25995 case $_am_header in
25996 $_am_arg | $_am_arg:* )
25997 break ;;
25999 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26000 esac
26001 done
26002 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26003 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26004 X"$_am_arg" : 'X\(//\)[^/]' \| \
26005 X"$_am_arg" : 'X\(//\)$' \| \
26006 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26007 $as_echo X"$_am_arg" |
26008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26009 s//\1/
26012 /^X\(\/\/\)[^/].*/{
26013 s//\1/
26016 /^X\(\/\/\)$/{
26017 s//\1/
26020 /^X\(\/\).*/{
26021 s//\1/
26024 s/.*/./; q'`/stamp-h$_am_stamp_count
26027 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26028 $as_echo "$as_me: executing $ac_file commands" >&6;}
26030 esac
26033 case $ac_file$ac_mode in
26034 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26035 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26036 # are listed without --file. Let's play safe and only enable the eval
26037 # if we detect the quoting.
26038 case $CONFIG_FILES in
26039 *\'*) eval set x "$CONFIG_FILES" ;;
26040 *) set x $CONFIG_FILES ;;
26041 esac
26042 shift
26043 for mf
26045 # Strip MF so we end up with the name of the file.
26046 mf=`echo "$mf" | sed -e 's/:.*$//'`
26047 # Check whether this is an Automake generated Makefile or not.
26048 # We used to match only the files named `Makefile.in', but
26049 # some people rename them; so instead we look at the file content.
26050 # Grep'ing the first line is not enough: some people post-process
26051 # each Makefile.in and add a new line on top of each file to say so.
26052 # Grep'ing the whole file is not good either: AIX grep has a line
26053 # limit of 2048, but all sed's we know have understand at least 4000.
26054 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26055 dirpart=`$as_dirname -- "$mf" ||
26056 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26057 X"$mf" : 'X\(//\)[^/]' \| \
26058 X"$mf" : 'X\(//\)$' \| \
26059 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26060 $as_echo X"$mf" |
26061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26062 s//\1/
26065 /^X\(\/\/\)[^/].*/{
26066 s//\1/
26069 /^X\(\/\/\)$/{
26070 s//\1/
26073 /^X\(\/\).*/{
26074 s//\1/
26077 s/.*/./; q'`
26078 else
26079 continue
26081 # Extract the definition of DEPDIR, am__include, and am__quote
26082 # from the Makefile without running `make'.
26083 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26084 test -z "$DEPDIR" && continue
26085 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26086 test -z "am__include" && continue
26087 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26088 # When using ansi2knr, U may be empty or an underscore; expand it
26089 U=`sed -n 's/^U = //p' < "$mf"`
26090 # Find all dependency output files, they are included files with
26091 # $(DEPDIR) in their names. We invoke sed twice because it is the
26092 # simplest approach to changing $(DEPDIR) to its actual value in the
26093 # expansion.
26094 for file in `sed -n "
26095 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26096 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26097 # Make sure the directory exists.
26098 test -f "$dirpart/$file" && continue
26099 fdir=`$as_dirname -- "$file" ||
26100 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26101 X"$file" : 'X\(//\)[^/]' \| \
26102 X"$file" : 'X\(//\)$' \| \
26103 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26104 $as_echo X"$file" |
26105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26106 s//\1/
26109 /^X\(\/\/\)[^/].*/{
26110 s//\1/
26113 /^X\(\/\/\)$/{
26114 s//\1/
26117 /^X\(\/\).*/{
26118 s//\1/
26121 s/.*/./; q'`
26122 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26123 # echo "creating $dirpart/$file"
26124 echo '# dummy' > "$dirpart/$file"
26125 done
26126 done
26129 "mkdirs":C)
26130 for dir in etc lisp ; do
26131 test -d ${dir} || mkdir ${dir}
26132 done
26134 "epaths":C)
26135 echo creating src/epaths.h
26136 ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force
26138 "gdbinit":C)
26139 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26140 echo creating src/.gdbinit
26141 echo source $srcdir/src/.gdbinit > src/.gdbinit
26145 esac
26146 done # for ac_tag
26149 as_fn_exit 0
26150 _ACEOF
26151 ac_clean_files=$ac_clean_files_save
26153 test $ac_write_fail = 0 ||
26154 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26157 # configure is writing to config.log, and then calls config.status.
26158 # config.status does its own redirection, appending to config.log.
26159 # Unfortunately, on DOS this fails, as config.log is still kept open
26160 # by configure, so config.status won't be able to write to it; its
26161 # output is simply discarded. So we exec the FD to /dev/null,
26162 # effectively closing config.log, so it can be properly (re)opened and
26163 # appended to by config.status. When coming back to configure, we
26164 # need to make the FD available again.
26165 if test "$no_create" != yes; then
26166 ac_cs_success=:
26167 ac_config_status_args=
26168 test "$silent" = yes &&
26169 ac_config_status_args="$ac_config_status_args --quiet"
26170 exec 5>/dev/null
26171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26172 exec 5>>config.log
26173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26174 # would make configure fail if this is the last instruction.
26175 $ac_cs_success || as_fn_exit $?
26177 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26179 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}