In Lisp manual, don't capitalize pty.
[emacs.git] / autogen / configure
blobbb69633a8c612bc2e3731219285fe41eddadfff8
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.1.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.1.50'
553 PACKAGE_STRING='emacs 24.1.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_func_list=
595 gl_getopt_required=POSIX
596 ac_header_list=
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 LIB_GCC
608 LD_FIRSTFLAG
609 LD_SWITCH_SYSTEM_TEMACS
610 POST_ALLOC_OBJ
611 PRE_ALLOC_OBJ
612 CYGWIN_OBJ
613 RALLOC_OBJ
614 OLDXMENU_DEPS
615 LIBX_OTHER
616 LIBXMENU
617 OLDXMENU
618 OLDXMENU_TARGET
619 LIBXT_OTHER
620 TOOLKIT_LIBW
621 WIDGET_OBJ
622 XOBJ
623 XMENU_OBJ
624 FONT_OBJ
625 OTHER_FILES
626 GNU_OBJC_CFLAGS
627 ns_appsrc
628 ns_appresdir
629 ns_appbindir
630 ns_appdir
631 S_FILE
632 X_TOOLKIT_TYPE
633 GNUSTEP_CFLAGS
634 C_SWITCH_X_SITE
635 LD_SWITCH_X_SITE
636 gameuser
637 gamedir
638 bitmapdir
639 archlibdir
640 etcdir
641 x_default_search_path
642 lisppath
643 locallisppath
644 leimdir
645 lispdir
646 srcdir
647 canonical
648 configuration
649 version
650 KRB4LIB
651 DESLIB
652 KRB5LIB
653 CRYPTOLIB
654 COM_ERRLIB
655 LIBRESOLV
656 LIBHESIOD
657 TERMCAP_OBJ
658 LIBS_TERMCAP
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 LIBXML2_LIBS
663 LIBXML2_CFLAGS
664 LIBXSM
665 LIBGPM
666 LIBGIF
667 LIBTIFF
668 LIBPNG
669 LIBJPEG
670 LIBXPM
671 M17N_FLT_LIBS
672 M17N_FLT_CFLAGS
673 LIBOTF_LIBS
674 LIBOTF_CFLAGS
675 FREETYPE_LIBS
676 FREETYPE_CFLAGS
677 XFT_LIBS
678 XFT_CFLAGS
679 FONTCONFIG_LIBS
680 FONTCONFIG_CFLAGS
681 LIBXMU
682 LIBXTR6
683 LIBGNUTLS_LIBS
684 LIBGNUTLS_CFLAGS
685 LIBSELINUX_LIBS
686 SETTINGS_LIBS
687 SETTINGS_CFLAGS
688 GCONF_LIBS
689 GCONF_CFLAGS
690 GSETTINGS_LIBS
691 GSETTINGS_CFLAGS
692 DBUS_OBJ
693 DBUS_LIBS
694 DBUS_CFLAGS
695 GTK_OBJ
696 GTK_LIBS
697 GTK_CFLAGS
698 IMAGEMAGICK_LIBS
699 IMAGEMAGICK_CFLAGS
700 RSVG_LIBS
701 RSVG_CFLAGS
702 LIB_PTHREAD
703 VMLIMIT_OBJ
704 GMALLOC_OBJ
705 HAVE_XSERVER
706 LIB_STANDARD
707 NS_OBJC_OBJ
708 NS_OBJ
709 ns_self_contained
710 INSTALL_ARCH_INDEP_EXTRA
711 TEMACS_LDFLAGS2
712 LD_SWITCH_X_SITE_RPATH
713 XMKMF
714 DEPFLAGS
715 MKDEPDIR
716 CFLAGS_SOUND
717 ALSA_LIBS
718 ALSA_CFLAGS
719 LIBSOUND
720 PKG_CONFIG
721 LIBGNU_LTLIBDEPS
722 LIBGNU_LIBDEPS
723 gltests_WITNESS
724 gl_GNULIB_ENABLED_verify_FALSE
725 gl_GNULIB_ENABLED_verify_TRUE
726 gl_GNULIB_ENABLED_strtoull_FALSE
727 gl_GNULIB_ENABLED_strtoull_TRUE
728 gl_GNULIB_ENABLED_strtoll_FALSE
729 gl_GNULIB_ENABLED_strtoll_TRUE
730 gl_GNULIB_ENABLED_stat_FALSE
731 gl_GNULIB_ENABLED_stat_TRUE
732 gl_GNULIB_ENABLED_pathmax_FALSE
733 gl_GNULIB_ENABLED_pathmax_TRUE
734 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
735 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
736 gl_GNULIB_ENABLED_dosname_FALSE
737 gl_GNULIB_ENABLED_dosname_TRUE
738 LTLIBINTL
739 LIBINTL
740 WINDOWS_64_BIT_OFF_T
741 HAVE_UNISTD_H
742 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
743 NEXT_UNISTD_H
744 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
745 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
746 TIME_H_DEFINES_STRUCT_TIMESPEC
747 NEXT_AS_FIRST_DIRECTIVE_TIME_H
748 NEXT_TIME_H
749 WINDOWS_64_BIT_ST_SIZE
750 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
751 NEXT_SYS_STAT_H
752 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
753 NEXT_STDLIB_H
754 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
755 NEXT_STDIO_H
756 REPLACE_VSPRINTF
757 REPLACE_VSNPRINTF
758 REPLACE_VPRINTF
759 REPLACE_VFPRINTF
760 REPLACE_VDPRINTF
761 REPLACE_VASPRINTF
762 REPLACE_TMPFILE
763 REPLACE_STDIO_WRITE_FUNCS
764 REPLACE_STDIO_READ_FUNCS
765 REPLACE_SPRINTF
766 REPLACE_SNPRINTF
767 REPLACE_RENAMEAT
768 REPLACE_RENAME
769 REPLACE_REMOVE
770 REPLACE_PRINTF
771 REPLACE_POPEN
772 REPLACE_PERROR
773 REPLACE_OBSTACK_PRINTF
774 REPLACE_GETLINE
775 REPLACE_GETDELIM
776 REPLACE_FTELLO
777 REPLACE_FTELL
778 REPLACE_FSEEKO
779 REPLACE_FSEEK
780 REPLACE_FREOPEN
781 REPLACE_FPURGE
782 REPLACE_FPRINTF
783 REPLACE_FOPEN
784 REPLACE_FFLUSH
785 REPLACE_FDOPEN
786 REPLACE_FCLOSE
787 REPLACE_DPRINTF
788 HAVE_VDPRINTF
789 HAVE_VASPRINTF
790 HAVE_RENAMEAT
791 HAVE_POPEN
792 HAVE_PCLOSE
793 HAVE_FTELLO
794 HAVE_FSEEKO
795 HAVE_DPRINTF
796 HAVE_DECL_VSNPRINTF
797 HAVE_DECL_SNPRINTF
798 HAVE_DECL_OBSTACK_PRINTF
799 HAVE_DECL_GETLINE
800 HAVE_DECL_GETDELIM
801 HAVE_DECL_FTELLO
802 HAVE_DECL_FSEEKO
803 HAVE_DECL_FPURGE
804 GNULIB_VSPRINTF_POSIX
805 GNULIB_VSNPRINTF
806 GNULIB_VPRINTF_POSIX
807 GNULIB_VPRINTF
808 GNULIB_VFPRINTF_POSIX
809 GNULIB_VFPRINTF
810 GNULIB_VDPRINTF
811 GNULIB_VSCANF
812 GNULIB_VFSCANF
813 GNULIB_VASPRINTF
814 GNULIB_TMPFILE
815 GNULIB_STDIO_H_SIGPIPE
816 GNULIB_STDIO_H_NONBLOCKING
817 GNULIB_SPRINTF_POSIX
818 GNULIB_SNPRINTF
819 GNULIB_SCANF
820 GNULIB_RENAMEAT
821 GNULIB_RENAME
822 GNULIB_REMOVE
823 GNULIB_PUTS
824 GNULIB_PUTCHAR
825 GNULIB_PUTC
826 GNULIB_PRINTF_POSIX
827 GNULIB_PRINTF
828 GNULIB_POPEN
829 GNULIB_PERROR
830 GNULIB_PCLOSE
831 GNULIB_OBSTACK_PRINTF_POSIX
832 GNULIB_OBSTACK_PRINTF
833 GNULIB_GETLINE
834 GNULIB_GETDELIM
835 GNULIB_GETCHAR
836 GNULIB_GETC
837 GNULIB_FWRITE
838 GNULIB_FTELLO
839 GNULIB_FTELL
840 GNULIB_FSEEKO
841 GNULIB_FSEEK
842 GNULIB_FSCANF
843 GNULIB_FREOPEN
844 GNULIB_FREAD
845 GNULIB_FPUTS
846 GNULIB_FPUTC
847 GNULIB_FPURGE
848 GNULIB_FPRINTF_POSIX
849 GNULIB_FPRINTF
850 GNULIB_FOPEN
851 GNULIB_FGETS
852 GNULIB_FGETC
853 GNULIB_FFLUSH
854 GNULIB_FDOPEN
855 GNULIB_FCLOSE
856 GNULIB_DPRINTF
857 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
858 NEXT_STDDEF_H
859 GL_GENERATE_STDDEF_H_FALSE
860 GL_GENERATE_STDDEF_H_TRUE
861 STDDEF_H
862 HAVE_WCHAR_T
863 REPLACE_NULL
864 HAVE__BOOL
865 GL_GENERATE_STDBOOL_H_FALSE
866 GL_GENERATE_STDBOOL_H_TRUE
867 STDBOOL_H
868 GL_GENERATE_STDARG_H_FALSE
869 GL_GENERATE_STDARG_H_TRUE
870 STDARG_H
871 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
872 NEXT_STDARG_H
873 GL_GENERATE_STDALIGN_H_FALSE
874 GL_GENERATE_STDALIGN_H_TRUE
875 STDALIGN_H
876 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
877 NEXT_SIGNAL_H
878 LIB_PTHREAD_SIGMASK
879 REPLACE_RAISE
880 REPLACE_PTHREAD_SIGMASK
881 HAVE_SIGHANDLER_T
882 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
883 HAVE_STRUCT_SIGACTION_SA_SIGACTION
884 HAVE_SIGACTION
885 HAVE_SIGINFO_T
886 HAVE_SIGSET_T
887 HAVE_RAISE
888 HAVE_PTHREAD_SIGMASK
889 HAVE_POSIX_SIGNALBLOCKING
890 GNULIB_SIGACTION
891 GNULIB_SIGPROCMASK
892 GNULIB_SIGNAL_H_SIGPIPE
893 GNULIB_RAISE
894 GNULIB_PTHREAD_SIGMASK
895 HAVE_SYS_SELECT_H
896 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
897 NEXT_SYS_SELECT_H
898 REPLACE_SELECT
899 REPLACE_PSELECT
900 HAVE_PSELECT
901 GNULIB_SELECT
902 GNULIB_PSELECT
903 REPLACE_TIMEGM
904 REPLACE_NANOSLEEP
905 REPLACE_MKTIME
906 REPLACE_LOCALTIME_R
907 HAVE_TIMEGM
908 HAVE_STRPTIME
909 HAVE_NANOSLEEP
910 HAVE_DECL_LOCALTIME_R
911 GNULIB_TIME_R
912 GNULIB_TIMEGM
913 GNULIB_STRPTIME
914 GNULIB_NANOSLEEP
915 GNULIB_MKTIME
916 REPLACE_UTIMENSAT
917 REPLACE_STAT
918 REPLACE_MKNOD
919 REPLACE_MKFIFO
920 REPLACE_MKDIR
921 REPLACE_LSTAT
922 REPLACE_FUTIMENS
923 REPLACE_FSTATAT
924 REPLACE_FSTAT
925 HAVE_UTIMENSAT
926 HAVE_MKNODAT
927 HAVE_MKNOD
928 HAVE_MKFIFOAT
929 HAVE_MKFIFO
930 HAVE_MKDIRAT
931 HAVE_LSTAT
932 HAVE_LCHMOD
933 HAVE_FUTIMENS
934 HAVE_FSTATAT
935 HAVE_FCHMODAT
936 GNULIB_UTIMENSAT
937 GNULIB_STAT
938 GNULIB_MKNODAT
939 GNULIB_MKNOD
940 GNULIB_MKFIFOAT
941 GNULIB_MKFIFO
942 GNULIB_MKDIRAT
943 GNULIB_LSTAT
944 GNULIB_LCHMOD
945 GNULIB_FUTIMENS
946 GNULIB_FSTATAT
947 GNULIB_FSTAT
948 GNULIB_FCHMODAT
949 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
950 NEXT_INTTYPES_H
951 UINT64_MAX_EQ_ULONG_MAX
952 UINT32_MAX_LT_UINTMAX_MAX
953 PRIPTR_PREFIX
954 PRI_MACROS_BROKEN
955 INT64_MAX_EQ_LONG_MAX
956 INT32_MAX_LT_INTMAX_MAX
957 REPLACE_STRTOIMAX
958 HAVE_DECL_STRTOUMAX
959 HAVE_DECL_STRTOIMAX
960 HAVE_DECL_IMAXDIV
961 HAVE_DECL_IMAXABS
962 GNULIB_STRTOUMAX
963 GNULIB_STRTOIMAX
964 GNULIB_IMAXDIV
965 GNULIB_IMAXABS
966 GL_GENERATE_STDINT_H_FALSE
967 GL_GENERATE_STDINT_H_TRUE
968 STDINT_H
969 WINT_T_SUFFIX
970 WCHAR_T_SUFFIX
971 SIG_ATOMIC_T_SUFFIX
972 SIZE_T_SUFFIX
973 PTRDIFF_T_SUFFIX
974 HAVE_SIGNED_WINT_T
975 HAVE_SIGNED_WCHAR_T
976 HAVE_SIGNED_SIG_ATOMIC_T
977 BITSIZEOF_WINT_T
978 BITSIZEOF_WCHAR_T
979 BITSIZEOF_SIG_ATOMIC_T
980 BITSIZEOF_SIZE_T
981 BITSIZEOF_PTRDIFF_T
982 APPLE_UNIVERSAL_BUILD
983 HAVE_SYS_BITYPES_H
984 HAVE_SYS_INTTYPES_H
985 HAVE_STDINT_H
986 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
987 NEXT_STDINT_H
988 HAVE_SYS_TYPES_H
989 HAVE_INTTYPES_H
990 HAVE_WCHAR_H
991 HAVE_UNSIGNED_LONG_LONG_INT
992 HAVE_LONG_LONG_INT
993 HAVE_WINSOCK2_H
994 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
995 NEXT_SYS_TIME_H
996 REPLACE_STRUCT_TIMEVAL
997 REPLACE_GETTIMEOFDAY
998 HAVE_SYS_TIME_H
999 HAVE_STRUCT_TIMEVAL
1000 HAVE_GETTIMEOFDAY
1001 GNULIB_GETTIMEOFDAY
1002 GNULIB_GL_UNISTD_H_GETOPT
1003 GETOPT_H
1004 HAVE_GETOPT_H
1005 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1006 NEXT_GETOPT_H
1007 PRAGMA_COLUMNS
1008 PRAGMA_SYSTEM_HEADER
1009 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1010 INCLUDE_NEXT
1011 GETLOADAVG_LIBS
1012 REPLACE_WCTOMB
1013 REPLACE_UNSETENV
1014 REPLACE_STRTOD
1015 REPLACE_SETENV
1016 REPLACE_REALPATH
1017 REPLACE_REALLOC
1018 REPLACE_RANDOM_R
1019 REPLACE_PUTENV
1020 REPLACE_PTSNAME_R
1021 REPLACE_MKSTEMP
1022 REPLACE_MBTOWC
1023 REPLACE_MALLOC
1024 REPLACE_CANONICALIZE_FILE_NAME
1025 REPLACE_CALLOC
1026 HAVE_DECL_UNSETENV
1027 HAVE_UNLOCKPT
1028 HAVE_SYS_LOADAVG_H
1029 HAVE_STRUCT_RANDOM_DATA
1030 HAVE_STRTOULL
1031 HAVE_STRTOLL
1032 HAVE_STRTOD
1033 HAVE_DECL_SETENV
1034 HAVE_SETENV
1035 HAVE_RPMATCH
1036 HAVE_REALPATH
1037 HAVE_RANDOM_R
1038 HAVE_RANDOM_H
1039 HAVE_RANDOM
1040 HAVE_PTSNAME_R
1041 HAVE_PTSNAME
1042 HAVE_POSIX_OPENPT
1043 HAVE_MKSTEMPS
1044 HAVE_MKSTEMP
1045 HAVE_MKOSTEMPS
1046 HAVE_MKOSTEMP
1047 HAVE_MKDTEMP
1048 HAVE_GRANTPT
1049 HAVE_GETSUBOPT
1050 HAVE_DECL_GETLOADAVG
1051 HAVE_CANONICALIZE_FILE_NAME
1052 HAVE_ATOLL
1053 HAVE__EXIT
1054 GNULIB_WCTOMB
1055 GNULIB_UNSETENV
1056 GNULIB_UNLOCKPT
1057 GNULIB_SYSTEM_POSIX
1058 GNULIB_STRTOULL
1059 GNULIB_STRTOLL
1060 GNULIB_STRTOD
1061 GNULIB_SETENV
1062 GNULIB_RPMATCH
1063 GNULIB_REALPATH
1064 GNULIB_REALLOC_POSIX
1065 GNULIB_RANDOM_R
1066 GNULIB_RANDOM
1067 GNULIB_PUTENV
1068 GNULIB_PTSNAME_R
1069 GNULIB_PTSNAME
1070 GNULIB_POSIX_OPENPT
1071 GNULIB_MKSTEMPS
1072 GNULIB_MKSTEMP
1073 GNULIB_MKOSTEMPS
1074 GNULIB_MKOSTEMP
1075 GNULIB_MKDTEMP
1076 GNULIB_MBTOWC
1077 GNULIB_MALLOC_POSIX
1078 GNULIB_GRANTPT
1079 GNULIB_GETSUBOPT
1080 GNULIB_GETLOADAVG
1081 GNULIB_CANONICALIZE_FILE_NAME
1082 GNULIB_CALLOC_POSIX
1083 GNULIB_ATOLL
1084 GNULIB__EXIT
1085 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1086 UNISTD_H_HAVE_WINSOCK2_H
1087 REPLACE_WRITE
1088 REPLACE_USLEEP
1089 REPLACE_UNLINKAT
1090 REPLACE_UNLINK
1091 REPLACE_TTYNAME_R
1092 REPLACE_SYMLINK
1093 REPLACE_SLEEP
1094 REPLACE_RMDIR
1095 REPLACE_READLINK
1096 REPLACE_READ
1097 REPLACE_PWRITE
1098 REPLACE_PREAD
1099 REPLACE_LSEEK
1100 REPLACE_LINKAT
1101 REPLACE_LINK
1102 REPLACE_LCHOWN
1103 REPLACE_ISATTY
1104 REPLACE_GETPAGESIZE
1105 REPLACE_GETGROUPS
1106 REPLACE_GETLOGIN_R
1107 REPLACE_GETDOMAINNAME
1108 REPLACE_GETCWD
1109 REPLACE_FTRUNCATE
1110 REPLACE_FCHOWNAT
1111 REPLACE_DUP2
1112 REPLACE_DUP
1113 REPLACE_CLOSE
1114 REPLACE_CHOWN
1115 HAVE_SYS_PARAM_H
1116 HAVE_OS_H
1117 HAVE_DECL_TTYNAME_R
1118 HAVE_DECL_SETHOSTNAME
1119 HAVE_DECL_GETUSERSHELL
1120 HAVE_DECL_GETPAGESIZE
1121 HAVE_DECL_GETLOGIN_R
1122 HAVE_DECL_GETDOMAINNAME
1123 HAVE_DECL_FDATASYNC
1124 HAVE_DECL_FCHDIR
1125 HAVE_DECL_ENVIRON
1126 HAVE_USLEEP
1127 HAVE_UNLINKAT
1128 HAVE_SYMLINKAT
1129 HAVE_SYMLINK
1130 HAVE_SLEEP
1131 HAVE_SETHOSTNAME
1132 HAVE_READLINKAT
1133 HAVE_READLINK
1134 HAVE_PWRITE
1135 HAVE_PREAD
1136 HAVE_PIPE2
1137 HAVE_PIPE
1138 HAVE_LINKAT
1139 HAVE_LINK
1140 HAVE_LCHOWN
1141 HAVE_GROUP_MEMBER
1142 HAVE_GETPAGESIZE
1143 HAVE_GETLOGIN
1144 HAVE_GETHOSTNAME
1145 HAVE_GETGROUPS
1146 HAVE_GETDTABLESIZE
1147 HAVE_FTRUNCATE
1148 HAVE_FSYNC
1149 HAVE_FDATASYNC
1150 HAVE_FCHOWNAT
1151 HAVE_FCHDIR
1152 HAVE_FACCESSAT
1153 HAVE_EUIDACCESS
1154 HAVE_DUP3
1155 HAVE_DUP2
1156 HAVE_CHOWN
1157 GNULIB_WRITE
1158 GNULIB_USLEEP
1159 GNULIB_UNLINKAT
1160 GNULIB_UNLINK
1161 GNULIB_UNISTD_H_SIGPIPE
1162 GNULIB_UNISTD_H_NONBLOCKING
1163 GNULIB_TTYNAME_R
1164 GNULIB_SYMLINKAT
1165 GNULIB_SYMLINK
1166 GNULIB_SLEEP
1167 GNULIB_SETHOSTNAME
1168 GNULIB_RMDIR
1169 GNULIB_READLINKAT
1170 GNULIB_READLINK
1171 GNULIB_READ
1172 GNULIB_PWRITE
1173 GNULIB_PREAD
1174 GNULIB_PIPE2
1175 GNULIB_PIPE
1176 GNULIB_LSEEK
1177 GNULIB_LINKAT
1178 GNULIB_LINK
1179 GNULIB_LCHOWN
1180 GNULIB_ISATTY
1181 GNULIB_GROUP_MEMBER
1182 GNULIB_GETUSERSHELL
1183 GNULIB_GETPAGESIZE
1184 GNULIB_GETLOGIN_R
1185 GNULIB_GETLOGIN
1186 GNULIB_GETHOSTNAME
1187 GNULIB_GETGROUPS
1188 GNULIB_GETDTABLESIZE
1189 GNULIB_GETDOMAINNAME
1190 GNULIB_GETCWD
1191 GNULIB_FTRUNCATE
1192 GNULIB_FSYNC
1193 GNULIB_FDATASYNC
1194 GNULIB_FCHOWNAT
1195 GNULIB_FCHDIR
1196 GNULIB_FACCESSAT
1197 GNULIB_EUIDACCESS
1198 GNULIB_ENVIRON
1199 GNULIB_DUP3
1200 GNULIB_DUP2
1201 GNULIB_DUP
1202 GNULIB_CLOSE
1203 GNULIB_CHOWN
1204 GNULIB_CHDIR
1205 LIB_CLOCK_GETTIME
1206 GL_GENERATE_ALLOCA_H_FALSE
1207 GL_GENERATE_ALLOCA_H_TRUE
1208 ALLOCA_H
1209 ALLOCA
1210 GL_COND_LIBTOOL_FALSE
1211 GL_COND_LIBTOOL_TRUE
1212 CRT_DIR
1213 START_FILES
1214 LIB_MATH
1215 LIBS_SYSTEM
1216 C_SWITCH_SYSTEM
1217 UNEXEC_OBJ
1218 C_SWITCH_MACHINE
1219 LD_SWITCH_SYSTEM
1220 CANNOT_DUMP
1221 INFO_OPTS
1222 INFO_EXT
1223 HAVE_MAKEINFO
1224 PAXCTL
1225 GZIP_PROG
1226 INSTALL_INFO
1227 GNULIB_WARN_CFLAGS
1228 WARN_CFLAGS
1229 WERROR_CFLAGS
1230 RANLIB
1231 ARFLAGS
1233 EGREP
1234 GREP
1236 am__fastdepCC_FALSE
1237 am__fastdepCC_TRUE
1238 CCDEPMODE
1239 AMDEPBACKSLASH
1240 AMDEP_FALSE
1241 AMDEP_TRUE
1242 am__quote
1243 am__include
1244 DEPDIR
1245 OBJEXT
1246 EXEEXT
1247 ac_ct_CC
1248 CPPFLAGS
1249 LDFLAGS
1250 CFLAGS
1252 host_os
1253 host_vendor
1254 host_cpu
1255 host
1256 build_os
1257 build_vendor
1258 build_cpu
1259 build
1260 PROFILING_CFLAGS
1261 GZIP_INFO
1262 cache_file
1263 am__untar
1264 am__tar
1265 AMTAR
1266 am__leading_dot
1267 SET_MAKE
1269 mkdir_p
1270 MKDIR_P
1271 INSTALL_STRIP_PROGRAM
1272 STRIP
1273 install_sh
1274 MAKEINFO
1275 AUTOHEADER
1276 AUTOMAKE
1277 AUTOCONF
1278 ACLOCAL
1279 VERSION
1280 PACKAGE
1281 CYGPATH_W
1282 am__isrc
1283 INSTALL_DATA
1284 INSTALL_SCRIPT
1285 INSTALL_PROGRAM
1286 target_alias
1287 host_alias
1288 build_alias
1289 LIBS
1290 ECHO_T
1291 ECHO_N
1292 ECHO_C
1293 DEFS
1294 mandir
1295 localedir
1296 libdir
1297 psdir
1298 pdfdir
1299 dvidir
1300 htmldir
1301 infodir
1302 docdir
1303 oldincludedir
1304 includedir
1305 localstatedir
1306 sharedstatedir
1307 sysconfdir
1308 datadir
1309 datarootdir
1310 libexecdir
1311 sbindir
1312 bindir
1313 program_transform_name
1314 prefix
1315 exec_prefix
1316 PACKAGE_URL
1317 PACKAGE_BUGREPORT
1318 PACKAGE_STRING
1319 PACKAGE_VERSION
1320 PACKAGE_TARNAME
1321 PACKAGE_NAME
1322 PATH_SEPARATOR
1323 SHELL'
1324 ac_subst_files='deps_frag
1325 lisp_frag
1326 ns_frag'
1327 ac_user_opts='
1328 enable_option_checking
1329 with_pop
1330 with_kerberos
1331 with_kerberos5
1332 with_hesiod
1333 with_mmdf
1334 with_mail_unlink
1335 with_mailhost
1336 with_sound
1337 with_sync_input
1338 with_x_toolkit
1339 with_wide_int
1340 with_xpm
1341 with_jpeg
1342 with_tiff
1343 with_gif
1344 with_png
1345 with_rsvg
1346 with_xml2
1347 with_imagemagick
1348 with_xft
1349 with_libotf
1350 with_m17n_flt
1351 with_toolkit_scroll_bars
1352 with_xaw3d
1353 with_xim
1354 with_ns
1355 with_gpm
1356 with_dbus
1357 with_gconf
1358 with_gsettings
1359 with_selinux
1360 with_gnutls
1361 with_makeinfo
1362 with_compress_info
1363 with_pkg_config_prog
1364 with_crt_dir
1365 with_gameuser
1366 with_gnustep_conf
1367 enable_ns_self_contained
1368 enable_asserts
1369 enable_locallisppath
1370 enable_checking
1371 enable_check_lisp_object_type
1372 enable_profiling
1373 enable_autodepend
1374 enable_dependency_tracking
1375 enable_largefile
1376 enable_gcc_warnings
1377 with_x
1379 ac_precious_vars='build_alias
1380 host_alias
1381 target_alias
1383 CFLAGS
1384 LDFLAGS
1385 LIBS
1386 CPPFLAGS
1388 XMKMF'
1391 # Initialize some variables set by options.
1392 ac_init_help=
1393 ac_init_version=false
1394 ac_unrecognized_opts=
1395 ac_unrecognized_sep=
1396 # The variables have the same names as the options, with
1397 # dashes changed to underlines.
1398 cache_file=/dev/null
1399 exec_prefix=NONE
1400 no_create=
1401 no_recursion=
1402 prefix=NONE
1403 program_prefix=NONE
1404 program_suffix=NONE
1405 program_transform_name=s,x,x,
1406 silent=
1407 site=
1408 srcdir=
1409 verbose=
1410 x_includes=NONE
1411 x_libraries=NONE
1413 # Installation directory options.
1414 # These are left unexpanded so users can "make install exec_prefix=/foo"
1415 # and all the variables that are supposed to be based on exec_prefix
1416 # by default will actually change.
1417 # Use braces instead of parens because sh, perl, etc. also accept them.
1418 # (The list follows the same order as the GNU Coding Standards.)
1419 bindir='${exec_prefix}/bin'
1420 sbindir='${exec_prefix}/sbin'
1421 libexecdir='${exec_prefix}/libexec'
1422 datarootdir='${prefix}/share'
1423 datadir='${datarootdir}'
1424 sysconfdir='${prefix}/etc'
1425 sharedstatedir='${prefix}/com'
1426 localstatedir='${prefix}/var'
1427 includedir='${prefix}/include'
1428 oldincludedir='/usr/include'
1429 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1430 infodir='${datarootdir}/info'
1431 htmldir='${docdir}'
1432 dvidir='${docdir}'
1433 pdfdir='${docdir}'
1434 psdir='${docdir}'
1435 libdir='${exec_prefix}/lib'
1436 localedir='${datarootdir}/locale'
1437 mandir='${datarootdir}/man'
1439 ac_prev=
1440 ac_dashdash=
1441 for ac_option
1443 # If the previous option needs an argument, assign it.
1444 if test -n "$ac_prev"; then
1445 eval $ac_prev=\$ac_option
1446 ac_prev=
1447 continue
1450 case $ac_option in
1451 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1452 *) ac_optarg=yes ;;
1453 esac
1455 # Accept the important Cygnus configure options, so we can diagnose typos.
1457 case $ac_dashdash$ac_option in
1459 ac_dashdash=yes ;;
1461 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1462 ac_prev=bindir ;;
1463 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1464 bindir=$ac_optarg ;;
1466 -build | --build | --buil | --bui | --bu)
1467 ac_prev=build_alias ;;
1468 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1469 build_alias=$ac_optarg ;;
1471 -cache-file | --cache-file | --cache-fil | --cache-fi \
1472 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1473 ac_prev=cache_file ;;
1474 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1475 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1476 cache_file=$ac_optarg ;;
1478 --config-cache | -C)
1479 cache_file=config.cache ;;
1481 -datadir | --datadir | --datadi | --datad)
1482 ac_prev=datadir ;;
1483 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1484 datadir=$ac_optarg ;;
1486 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1487 | --dataroo | --dataro | --datar)
1488 ac_prev=datarootdir ;;
1489 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1490 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1491 datarootdir=$ac_optarg ;;
1493 -disable-* | --disable-*)
1494 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1495 # Reject names that are not valid shell variable names.
1496 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1497 as_fn_error "invalid feature name: $ac_useropt"
1498 ac_useropt_orig=$ac_useropt
1499 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1500 case $ac_user_opts in
1502 "enable_$ac_useropt"
1503 "*) ;;
1504 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1505 ac_unrecognized_sep=', ';;
1506 esac
1507 eval enable_$ac_useropt=no ;;
1509 -docdir | --docdir | --docdi | --doc | --do)
1510 ac_prev=docdir ;;
1511 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1512 docdir=$ac_optarg ;;
1514 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1515 ac_prev=dvidir ;;
1516 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1517 dvidir=$ac_optarg ;;
1519 -enable-* | --enable-*)
1520 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1521 # Reject names that are not valid shell variable names.
1522 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523 as_fn_error "invalid feature name: $ac_useropt"
1524 ac_useropt_orig=$ac_useropt
1525 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1526 case $ac_user_opts in
1528 "enable_$ac_useropt"
1529 "*) ;;
1530 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1531 ac_unrecognized_sep=', ';;
1532 esac
1533 eval enable_$ac_useropt=\$ac_optarg ;;
1535 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1536 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1537 | --exec | --exe | --ex)
1538 ac_prev=exec_prefix ;;
1539 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1540 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1541 | --exec=* | --exe=* | --ex=*)
1542 exec_prefix=$ac_optarg ;;
1544 -gas | --gas | --ga | --g)
1545 # Obsolete; use --with-gas.
1546 with_gas=yes ;;
1548 -help | --help | --hel | --he | -h)
1549 ac_init_help=long ;;
1550 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1551 ac_init_help=recursive ;;
1552 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1553 ac_init_help=short ;;
1555 -host | --host | --hos | --ho)
1556 ac_prev=host_alias ;;
1557 -host=* | --host=* | --hos=* | --ho=*)
1558 host_alias=$ac_optarg ;;
1560 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1561 ac_prev=htmldir ;;
1562 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1563 | --ht=*)
1564 htmldir=$ac_optarg ;;
1566 -includedir | --includedir | --includedi | --included | --include \
1567 | --includ | --inclu | --incl | --inc)
1568 ac_prev=includedir ;;
1569 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1570 | --includ=* | --inclu=* | --incl=* | --inc=*)
1571 includedir=$ac_optarg ;;
1573 -infodir | --infodir | --infodi | --infod | --info | --inf)
1574 ac_prev=infodir ;;
1575 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1576 infodir=$ac_optarg ;;
1578 -libdir | --libdir | --libdi | --libd)
1579 ac_prev=libdir ;;
1580 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1581 libdir=$ac_optarg ;;
1583 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1584 | --libexe | --libex | --libe)
1585 ac_prev=libexecdir ;;
1586 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1587 | --libexe=* | --libex=* | --libe=*)
1588 libexecdir=$ac_optarg ;;
1590 -localedir | --localedir | --localedi | --localed | --locale)
1591 ac_prev=localedir ;;
1592 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1593 localedir=$ac_optarg ;;
1595 -localstatedir | --localstatedir | --localstatedi | --localstated \
1596 | --localstate | --localstat | --localsta | --localst | --locals)
1597 ac_prev=localstatedir ;;
1598 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1599 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1600 localstatedir=$ac_optarg ;;
1602 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1603 ac_prev=mandir ;;
1604 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1605 mandir=$ac_optarg ;;
1607 -nfp | --nfp | --nf)
1608 # Obsolete; use --without-fp.
1609 with_fp=no ;;
1611 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1612 | --no-cr | --no-c | -n)
1613 no_create=yes ;;
1615 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1616 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1617 no_recursion=yes ;;
1619 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1620 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1621 | --oldin | --oldi | --old | --ol | --o)
1622 ac_prev=oldincludedir ;;
1623 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1624 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1625 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1626 oldincludedir=$ac_optarg ;;
1628 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1629 ac_prev=prefix ;;
1630 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1631 prefix=$ac_optarg ;;
1633 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1634 | --program-pre | --program-pr | --program-p)
1635 ac_prev=program_prefix ;;
1636 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1637 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1638 program_prefix=$ac_optarg ;;
1640 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1641 | --program-suf | --program-su | --program-s)
1642 ac_prev=program_suffix ;;
1643 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1644 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1645 program_suffix=$ac_optarg ;;
1647 -program-transform-name | --program-transform-name \
1648 | --program-transform-nam | --program-transform-na \
1649 | --program-transform-n | --program-transform- \
1650 | --program-transform | --program-transfor \
1651 | --program-transfo | --program-transf \
1652 | --program-trans | --program-tran \
1653 | --progr-tra | --program-tr | --program-t)
1654 ac_prev=program_transform_name ;;
1655 -program-transform-name=* | --program-transform-name=* \
1656 | --program-transform-nam=* | --program-transform-na=* \
1657 | --program-transform-n=* | --program-transform-=* \
1658 | --program-transform=* | --program-transfor=* \
1659 | --program-transfo=* | --program-transf=* \
1660 | --program-trans=* | --program-tran=* \
1661 | --progr-tra=* | --program-tr=* | --program-t=*)
1662 program_transform_name=$ac_optarg ;;
1664 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1665 ac_prev=pdfdir ;;
1666 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1667 pdfdir=$ac_optarg ;;
1669 -psdir | --psdir | --psdi | --psd | --ps)
1670 ac_prev=psdir ;;
1671 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1672 psdir=$ac_optarg ;;
1674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675 | -silent | --silent | --silen | --sile | --sil)
1676 silent=yes ;;
1678 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1679 ac_prev=sbindir ;;
1680 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1681 | --sbi=* | --sb=*)
1682 sbindir=$ac_optarg ;;
1684 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1685 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1686 | --sharedst | --shareds | --shared | --share | --shar \
1687 | --sha | --sh)
1688 ac_prev=sharedstatedir ;;
1689 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1690 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1691 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1692 | --sha=* | --sh=*)
1693 sharedstatedir=$ac_optarg ;;
1695 -site | --site | --sit)
1696 ac_prev=site ;;
1697 -site=* | --site=* | --sit=*)
1698 site=$ac_optarg ;;
1700 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1701 ac_prev=srcdir ;;
1702 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1703 srcdir=$ac_optarg ;;
1705 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1706 | --syscon | --sysco | --sysc | --sys | --sy)
1707 ac_prev=sysconfdir ;;
1708 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1709 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1710 sysconfdir=$ac_optarg ;;
1712 -target | --target | --targe | --targ | --tar | --ta | --t)
1713 ac_prev=target_alias ;;
1714 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1715 target_alias=$ac_optarg ;;
1717 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1718 verbose=yes ;;
1720 -version | --version | --versio | --versi | --vers | -V)
1721 ac_init_version=: ;;
1723 -with-* | --with-*)
1724 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1725 # Reject names that are not valid shell variable names.
1726 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1727 as_fn_error "invalid package name: $ac_useropt"
1728 ac_useropt_orig=$ac_useropt
1729 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1730 case $ac_user_opts in
1732 "with_$ac_useropt"
1733 "*) ;;
1734 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1735 ac_unrecognized_sep=', ';;
1736 esac
1737 eval with_$ac_useropt=\$ac_optarg ;;
1739 -without-* | --without-*)
1740 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1741 # Reject names that are not valid shell variable names.
1742 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1743 as_fn_error "invalid package name: $ac_useropt"
1744 ac_useropt_orig=$ac_useropt
1745 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1746 case $ac_user_opts in
1748 "with_$ac_useropt"
1749 "*) ;;
1750 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1751 ac_unrecognized_sep=', ';;
1752 esac
1753 eval with_$ac_useropt=no ;;
1755 --x)
1756 # Obsolete; use --with-x.
1757 with_x=yes ;;
1759 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1760 | --x-incl | --x-inc | --x-in | --x-i)
1761 ac_prev=x_includes ;;
1762 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1763 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1764 x_includes=$ac_optarg ;;
1766 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1767 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1768 ac_prev=x_libraries ;;
1769 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1770 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1771 x_libraries=$ac_optarg ;;
1773 -*) as_fn_error "unrecognized option: \`$ac_option'
1774 Try \`$0 --help' for more information."
1777 *=*)
1778 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1779 # Reject names that are not valid shell variable names.
1780 case $ac_envvar in #(
1781 '' | [0-9]* | *[!_$as_cr_alnum]* )
1782 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1783 esac
1784 eval $ac_envvar=\$ac_optarg
1785 export $ac_envvar ;;
1788 # FIXME: should be removed in autoconf 3.0.
1789 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1790 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1791 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1792 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1795 esac
1796 done
1798 if test -n "$ac_prev"; then
1799 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1800 as_fn_error "missing argument to $ac_option"
1803 if test -n "$ac_unrecognized_opts"; then
1804 case $enable_option_checking in
1805 no) ;;
1806 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1807 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1808 esac
1811 # Check all directory arguments for consistency.
1812 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1813 datadir sysconfdir sharedstatedir localstatedir includedir \
1814 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1815 libdir localedir mandir
1817 eval ac_val=\$$ac_var
1818 # Remove trailing slashes.
1819 case $ac_val in
1820 */ )
1821 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1822 eval $ac_var=\$ac_val;;
1823 esac
1824 # Be sure to have absolute directory names.
1825 case $ac_val in
1826 [\\/$]* | ?:[\\/]* ) continue;;
1827 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1828 esac
1829 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1830 done
1832 # There might be people who depend on the old broken behavior: `$host'
1833 # used to hold the argument of --host etc.
1834 # FIXME: To remove some day.
1835 build=$build_alias
1836 host=$host_alias
1837 target=$target_alias
1839 # FIXME: To remove some day.
1840 if test "x$host_alias" != x; then
1841 if test "x$build_alias" = x; then
1842 cross_compiling=maybe
1843 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1844 If a cross compiler is detected then cross compile mode will be used." >&2
1845 elif test "x$build_alias" != "x$host_alias"; then
1846 cross_compiling=yes
1850 ac_tool_prefix=
1851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1853 test "$silent" = yes && exec 6>/dev/null
1856 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1857 ac_ls_di=`ls -di .` &&
1858 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1859 as_fn_error "working directory cannot be determined"
1860 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1861 as_fn_error "pwd does not report name of working directory"
1864 # Find the source files, if location was not specified.
1865 if test -z "$srcdir"; then
1866 ac_srcdir_defaulted=yes
1867 # Try the directory containing this script, then the parent directory.
1868 ac_confdir=`$as_dirname -- "$as_myself" ||
1869 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1870 X"$as_myself" : 'X\(//\)[^/]' \| \
1871 X"$as_myself" : 'X\(//\)$' \| \
1872 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1873 $as_echo X"$as_myself" |
1874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1875 s//\1/
1878 /^X\(\/\/\)[^/].*/{
1879 s//\1/
1882 /^X\(\/\/\)$/{
1883 s//\1/
1886 /^X\(\/\).*/{
1887 s//\1/
1890 s/.*/./; q'`
1891 srcdir=$ac_confdir
1892 if test ! -r "$srcdir/$ac_unique_file"; then
1893 srcdir=..
1895 else
1896 ac_srcdir_defaulted=no
1898 if test ! -r "$srcdir/$ac_unique_file"; then
1899 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1900 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1902 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1903 ac_abs_confdir=`(
1904 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1905 pwd)`
1906 # When building in place, set srcdir=.
1907 if test "$ac_abs_confdir" = "$ac_pwd"; then
1908 srcdir=.
1910 # Remove unnecessary trailing slashes from srcdir.
1911 # Double slashes in file names in object file debugging info
1912 # mess up M-x gdb in Emacs.
1913 case $srcdir in
1914 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1915 esac
1916 for ac_var in $ac_precious_vars; do
1917 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1918 eval ac_env_${ac_var}_value=\$${ac_var}
1919 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1920 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1921 done
1924 # Report the --help message.
1926 if test "$ac_init_help" = "long"; then
1927 # Omit some internal or obsolete options to make the list less imposing.
1928 # This message is too long to be a string in the A/UX 3.1 sh.
1929 cat <<_ACEOF
1930 \`configure' configures emacs 24.1.50 to adapt to many kinds of systems.
1932 Usage: $0 [OPTION]... [VAR=VALUE]...
1934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1935 VAR=VALUE. See below for descriptions of some of the useful variables.
1937 Defaults for the options are specified in brackets.
1939 Configuration:
1940 -h, --help display this help and exit
1941 --help=short display options specific to this package
1942 --help=recursive display the short help of all the included packages
1943 -V, --version display version information and exit
1944 -q, --quiet, --silent do not print \`checking...' messages
1945 --cache-file=FILE cache test results in FILE [disabled]
1946 -C, --config-cache alias for \`--cache-file=config.cache'
1947 -n, --no-create do not create output files
1948 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1950 Installation directories:
1951 --prefix=PREFIX install architecture-independent files in PREFIX
1952 [$ac_default_prefix]
1953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1954 [PREFIX]
1956 By default, \`make install' will install all the files in
1957 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1958 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1959 for instance \`--prefix=\$HOME'.
1961 For better control, use the options below.
1963 Fine tuning of the installation directories:
1964 --bindir=DIR user executables [EPREFIX/bin]
1965 --sbindir=DIR system admin executables [EPREFIX/sbin]
1966 --libexecdir=DIR program executables [EPREFIX/libexec]
1967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1969 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1970 --libdir=DIR object code libraries [EPREFIX/lib]
1971 --includedir=DIR C header files [PREFIX/include]
1972 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1973 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1974 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1975 --infodir=DIR info documentation [DATAROOTDIR/info]
1976 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1977 --mandir=DIR man documentation [DATAROOTDIR/man]
1978 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1979 --htmldir=DIR html documentation [DOCDIR]
1980 --dvidir=DIR dvi documentation [DOCDIR]
1981 --pdfdir=DIR pdf documentation [DOCDIR]
1982 --psdir=DIR ps documentation [DOCDIR]
1983 _ACEOF
1985 cat <<\_ACEOF
1987 Program names:
1988 --program-prefix=PREFIX prepend PREFIX to installed program names
1989 --program-suffix=SUFFIX append SUFFIX to installed program names
1990 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1992 X features:
1993 --x-includes=DIR X include files are in DIR
1994 --x-libraries=DIR X library files are in DIR
1996 System types:
1997 --build=BUILD configure for building on BUILD [guessed]
1998 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1999 _ACEOF
2002 if test -n "$ac_init_help"; then
2003 case $ac_init_help in
2004 short | recursive ) echo "Configuration of emacs 24.1.50:";;
2005 esac
2006 cat <<\_ACEOF
2008 Optional Features:
2009 --disable-option-checking ignore unrecognized --enable/--with options
2010 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2011 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2012 --disable-ns-self-contained
2013 disable self contained build under NeXTstep
2014 --enable-asserts compile code with asserts enabled
2015 --enable-locallisppath=PATH
2016 directories Emacs should search for lisp files
2017 specific to this site
2018 --enable-checking[=LIST]
2019 enable expensive run-time checks. With LIST, enable
2020 only specific categories of checks. Categories are:
2021 all,yes,no. Flags are: stringbytes, stringoverrun,
2022 stringfreelist, xmallocoverrun, conslist
2023 --enable-check-lisp-object-type
2024 enable compile time checks for the Lisp_Object data
2025 type. This is useful for development for catching
2026 certain types of bugs.
2027 --enable-profiling build emacs with profiling support. This might not
2028 work on all platforms
2029 --enable-autodepend automatically generate dependencies to .h-files.
2030 Requires GNU Make and Gcc. Enabled if GNU Make and
2031 Gcc is found
2032 --disable-dependency-tracking speeds up one-time build
2033 --enable-dependency-tracking do not reject slow dependency extractors
2034 --disable-largefile omit support for large files
2035 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2037 Optional Packages:
2038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2040 --without-pop don't support POP mail retrieval with movemail
2041 --with-kerberos support Kerberos-authenticated POP
2042 --with-kerberos5 support Kerberos version 5 authenticated POP
2043 --with-hesiod support Hesiod to get the POP server host
2044 --with-mmdf support MMDF mailboxes
2045 --with-mail-unlink unlink, rather than empty, mail spool after reading
2046 --with-mailhost=HOSTNAME
2047 string giving default POP mail host
2048 --without-sound don't compile with sound support
2049 --without-sync-input process async input synchronously
2050 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
2051 lucid or athena, motif, no)
2052 --with-wide-int prefer wide Emacs integers (typically 62-bit)
2053 --without-xpm don't compile with XPM image support
2054 --without-jpeg don't compile with JPEG image support
2055 --without-tiff don't compile with TIFF image support
2056 --without-gif don't compile with GIF image support
2057 --without-png don't compile with PNG image support
2058 --without-rsvg don't compile with SVG image support
2059 --without-xml2 don't compile with XML parsing support
2060 --without-imagemagick don't compile with ImageMagick image support
2061 --without-xft don't use XFT for anti aliased fonts
2062 --without-libotf don't use libotf for OpenType font support
2063 --without-m17n-flt don't use m17n-flt for text shaping
2064 --without-toolkit-scroll-bars
2065 don't use Motif or Xaw3d scroll bars
2066 --without-xaw3d don't use Xaw3d
2067 --without-xim don't use X11 XIM
2068 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
2069 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
2070 console
2071 --without-dbus don't compile with D-Bus support
2072 --without-gconf don't compile with GConf support
2073 --without-gsettings don't compile with GSettings support
2074 --without-selinux don't compile with SELinux support
2075 --without-gnutls don't use -lgnutls for SSL/TLS support
2076 --without-makeinfo don't require makeinfo for building manuals
2077 --without-compress-info don't compress the installed Info pages
2078 --with-pkg-config-prog=PATH
2079 path to pkg-config for finding GTK and librsvg
2080 --with-crt-dir=DIR directory containing crtn.o etc. The default is
2081 /usr/lib, or /usr/lib64 on some platforms.
2082 --with-gameuser=USER user for shared game score files
2083 --with-gnustep-conf=PATH
2084 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
2085 or /etc/GNUstep/GNUstep.conf
2086 --with-x use the X Window System
2088 Some influential environment variables:
2089 CC C compiler command
2090 CFLAGS C compiler flags
2091 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2092 nonstandard directory <lib dir>
2093 LIBS libraries to pass to the linker, e.g. -l<library>
2094 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2095 you have headers in a nonstandard directory <include dir>
2096 CPP C preprocessor
2097 XMKMF Path to xmkmf, Makefile generator for X Window System
2099 Use these variables to override the choices made by `configure' or to help
2100 it to find libraries and programs with nonstandard names/locations.
2102 Report bugs to the package provider.
2103 _ACEOF
2104 ac_status=$?
2107 if test "$ac_init_help" = "recursive"; then
2108 # If there are subdirs, report their specific --help.
2109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2110 test -d "$ac_dir" ||
2111 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2112 continue
2113 ac_builddir=.
2115 case "$ac_dir" in
2116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2118 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2119 # A ".." for each directory in $ac_dir_suffix.
2120 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2121 case $ac_top_builddir_sub in
2122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2124 esac ;;
2125 esac
2126 ac_abs_top_builddir=$ac_pwd
2127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2128 # for backward compatibility:
2129 ac_top_builddir=$ac_top_build_prefix
2131 case $srcdir in
2132 .) # We are building in place.
2133 ac_srcdir=.
2134 ac_top_srcdir=$ac_top_builddir_sub
2135 ac_abs_top_srcdir=$ac_pwd ;;
2136 [\\/]* | ?:[\\/]* ) # Absolute name.
2137 ac_srcdir=$srcdir$ac_dir_suffix;
2138 ac_top_srcdir=$srcdir
2139 ac_abs_top_srcdir=$srcdir ;;
2140 *) # Relative name.
2141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2142 ac_top_srcdir=$ac_top_build_prefix$srcdir
2143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2144 esac
2145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2147 cd "$ac_dir" || { ac_status=$?; continue; }
2148 # Check for guested configure.
2149 if test -f "$ac_srcdir/configure.gnu"; then
2150 echo &&
2151 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2152 elif test -f "$ac_srcdir/configure"; then
2153 echo &&
2154 $SHELL "$ac_srcdir/configure" --help=recursive
2155 else
2156 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2157 fi || ac_status=$?
2158 cd "$ac_pwd" || { ac_status=$?; break; }
2159 done
2162 test -n "$ac_init_help" && exit $ac_status
2163 if $ac_init_version; then
2164 cat <<\_ACEOF
2165 emacs configure 24.1.50
2166 generated by GNU Autoconf 2.65
2168 Copyright (C) 2009 Free Software Foundation, Inc.
2169 This configure script is free software; the Free Software Foundation
2170 gives unlimited permission to copy, distribute and modify it.
2171 _ACEOF
2172 exit
2175 ## ------------------------ ##
2176 ## Autoconf initialization. ##
2177 ## ------------------------ ##
2179 # ac_fn_c_try_compile LINENO
2180 # --------------------------
2181 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2182 ac_fn_c_try_compile ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 rm -f conftest.$ac_objext
2186 if { { ac_try="$ac_compile"
2187 case "(($ac_try" in
2188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189 *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193 (eval "$ac_compile") 2>conftest.err
2194 ac_status=$?
2195 if test -s conftest.err; then
2196 grep -v '^ *+' conftest.err >conftest.er1
2197 cat conftest.er1 >&5
2198 mv -f conftest.er1 conftest.err
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && {
2202 test -z "$ac_c_werror_flag" ||
2203 test ! -s conftest.err
2204 } && test -s conftest.$ac_objext; then :
2205 ac_retval=0
2206 else
2207 $as_echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2210 ac_retval=1
2212 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213 as_fn_set_status $ac_retval
2215 } # ac_fn_c_try_compile
2217 # ac_fn_c_try_cpp LINENO
2218 # ----------------------
2219 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2220 ac_fn_c_try_cpp ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 if { { ac_try="$ac_cpp conftest.$ac_ext"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2231 ac_status=$?
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } >/dev/null && {
2239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2240 test ! -s conftest.err
2241 }; then :
2242 ac_retval=0
2243 else
2244 $as_echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 ac_retval=1
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 as_fn_set_status $ac_retval
2252 } # ac_fn_c_try_cpp
2254 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2255 # -------------------------------------------------------
2256 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2257 # the include files in INCLUDES and setting the cache variable VAR
2258 # accordingly.
2259 ac_fn_c_check_header_mongrel ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2266 $as_echo_n "(cached) " >&6
2268 eval ac_res=\$$3
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2271 else
2272 # Is the header compilable?
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2274 $as_echo_n "checking $2 usability... " >&6; }
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2278 #include <$2>
2279 _ACEOF
2280 if ac_fn_c_try_compile "$LINENO"; then :
2281 ac_header_compiler=yes
2282 else
2283 ac_header_compiler=no
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2287 $as_echo "$ac_header_compiler" >&6; }
2289 # Is the header present?
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2291 $as_echo_n "checking $2 presence... " >&6; }
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 #include <$2>
2295 _ACEOF
2296 if ac_fn_c_try_cpp "$LINENO"; then :
2297 ac_header_preproc=yes
2298 else
2299 ac_header_preproc=no
2301 rm -f conftest.err conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2303 $as_echo "$ac_header_preproc" >&6; }
2305 # So? What about this header?
2306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2307 yes:no: )
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2309 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2311 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2313 no:yes:* )
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2315 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2317 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2319 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2321 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2323 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2325 esac
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2327 $as_echo_n "checking for $2... " >&6; }
2328 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 eval "$3=\$ac_header_compiler"
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339 } # ac_fn_c_check_header_mongrel
2341 # ac_fn_c_try_run LINENO
2342 # ----------------------
2343 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2344 # that executables *can* be run.
2345 ac_fn_c_try_run ()
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 if { { ac_try="$ac_link"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2354 $as_echo "$ac_try_echo"; } >&5
2355 (eval "$ac_link") 2>&5
2356 ac_status=$?
2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2359 { { case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362 esac
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_try") 2>&5
2366 ac_status=$?
2367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2368 test $ac_status = 0; }; }; then :
2369 ac_retval=0
2370 else
2371 $as_echo "$as_me: program exited with status $ac_status" >&5
2372 $as_echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2375 ac_retval=$ac_status
2377 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2379 as_fn_set_status $ac_retval
2381 } # ac_fn_c_try_run
2383 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2384 # -------------------------------------------------------
2385 # Tests whether HEADER exists and can be compiled using the include files in
2386 # INCLUDES, setting the cache variable VAR accordingly.
2387 ac_fn_c_check_header_compile ()
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2391 $as_echo_n "checking for $2... " >&6; }
2392 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2398 #include <$2>
2399 _ACEOF
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401 eval "$3=yes"
2402 else
2403 eval "$3=no"
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 eval ac_res=\$$3
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412 } # ac_fn_c_check_header_compile
2414 # ac_fn_c_try_link LINENO
2415 # -----------------------
2416 # Try to link conftest.$ac_ext, and return whether this succeeded.
2417 ac_fn_c_try_link ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2422 case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2429 ac_status=$?
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_c_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2442 }; then :
2443 ac_retval=0
2444 else
2445 $as_echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2448 ac_retval=1
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456 as_fn_set_status $ac_retval
2458 } # ac_fn_c_try_link
2460 # ac_fn_c_check_decl LINENO SYMBOL VAR
2461 # ------------------------------------
2462 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2463 ac_fn_c_check_decl ()
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2467 $as_echo_n "checking whether $2 is declared... " >&6; }
2468 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2469 $as_echo_n "(cached) " >&6
2470 else
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2475 main ()
2477 #ifndef $2
2478 (void) $2;
2479 #endif
2482 return 0;
2484 _ACEOF
2485 if ac_fn_c_try_compile "$LINENO"; then :
2486 eval "$3=yes"
2487 else
2488 eval "$3=no"
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2492 eval ac_res=\$$3
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2495 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497 } # ac_fn_c_check_decl
2499 # ac_fn_c_check_func LINENO FUNC VAR
2500 # ----------------------------------
2501 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2502 ac_fn_c_check_func ()
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2506 $as_echo_n "checking for $2... " >&6; }
2507 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2514 #define $2 innocuous_$2
2516 /* System header to define __stub macros and hopefully few prototypes,
2517 which can conflict with char $2 (); below.
2518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2519 <limits.h> exists even on freestanding compilers. */
2521 #ifdef __STDC__
2522 # include <limits.h>
2523 #else
2524 # include <assert.h>
2525 #endif
2527 #undef $2
2529 /* Override any GCC internal prototype to avoid an error.
2530 Use char because int might match the return type of a GCC
2531 builtin and then its argument prototype would still apply. */
2532 #ifdef __cplusplus
2533 extern "C"
2534 #endif
2535 char $2 ();
2536 /* The GNU C library defines this for functions which it implements
2537 to always fail with ENOSYS. Some functions are actually named
2538 something starting with __ and the normal name is an alias. */
2539 #if defined __stub_$2 || defined __stub___$2
2540 choke me
2541 #endif
2544 main ()
2546 return $2 ();
2548 return 0;
2550 _ACEOF
2551 if ac_fn_c_try_link "$LINENO"; then :
2552 eval "$3=yes"
2553 else
2554 eval "$3=no"
2556 rm -f core conftest.err conftest.$ac_objext \
2557 conftest$ac_exeext conftest.$ac_ext
2559 eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2564 } # ac_fn_c_check_func
2566 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2567 # ----------------------------------------------------
2568 # Tries to find if the field MEMBER exists in type AGGR, after including
2569 # INCLUDES, setting cache variable VAR accordingly.
2570 ac_fn_c_check_member ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2574 $as_echo_n "checking for $2.$3... " >&6; }
2575 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2582 main ()
2584 static $2 ac_aggr;
2585 if (ac_aggr.$3)
2586 return 0;
2588 return 0;
2590 _ACEOF
2591 if ac_fn_c_try_compile "$LINENO"; then :
2592 eval "$4=yes"
2593 else
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2598 main ()
2600 static $2 ac_aggr;
2601 if (sizeof ac_aggr.$3)
2602 return 0;
2604 return 0;
2606 _ACEOF
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608 eval "$4=yes"
2609 else
2610 eval "$4=no"
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 eval ac_res=\$$4
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2618 $as_echo "$ac_res" >&6; }
2619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2621 } # ac_fn_c_check_member
2623 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2624 # --------------------------------------------
2625 # Tries to find the compile-time value of EXPR in a program that includes
2626 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2627 # computed
2628 ac_fn_c_compute_int ()
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 if test "$cross_compiling" = yes; then
2632 # Depending upon the size, compute the lo and hi bounds.
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2637 main ()
2639 static int test_array [1 - 2 * !(($2) >= 0)];
2640 test_array [0] = 0
2643 return 0;
2645 _ACEOF
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647 ac_lo=0 ac_mid=0
2648 while :; do
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2653 main ()
2655 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2656 test_array [0] = 0
2659 return 0;
2661 _ACEOF
2662 if ac_fn_c_try_compile "$LINENO"; then :
2663 ac_hi=$ac_mid; break
2664 else
2665 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2666 if test $ac_lo -le $ac_mid; then
2667 ac_lo= ac_hi=
2668 break
2670 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 done
2674 else
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2679 main ()
2681 static int test_array [1 - 2 * !(($2) < 0)];
2682 test_array [0] = 0
2685 return 0;
2687 _ACEOF
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 ac_hi=-1 ac_mid=-1
2690 while :; do
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2695 main ()
2697 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2698 test_array [0] = 0
2701 return 0;
2703 _ACEOF
2704 if ac_fn_c_try_compile "$LINENO"; then :
2705 ac_lo=$ac_mid; break
2706 else
2707 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2708 if test $ac_mid -le $ac_hi; then
2709 ac_lo= ac_hi=
2710 break
2712 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 done
2716 else
2717 ac_lo= ac_hi=
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 # Binary search between lo and hi bounds.
2723 while test "x$ac_lo" != "x$ac_hi"; do
2724 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2729 main ()
2731 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2732 test_array [0] = 0
2735 return 0;
2737 _ACEOF
2738 if ac_fn_c_try_compile "$LINENO"; then :
2739 ac_hi=$ac_mid
2740 else
2741 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 done
2745 case $ac_lo in #((
2746 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2747 '') ac_retval=1 ;;
2748 esac
2749 else
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2753 static long int longval () { return $2; }
2754 static unsigned long int ulongval () { return $2; }
2755 #include <stdio.h>
2756 #include <stdlib.h>
2758 main ()
2761 FILE *f = fopen ("conftest.val", "w");
2762 if (! f)
2763 return 1;
2764 if (($2) < 0)
2766 long int i = longval ();
2767 if (i != ($2))
2768 return 1;
2769 fprintf (f, "%ld", i);
2771 else
2773 unsigned long int i = ulongval ();
2774 if (i != ($2))
2775 return 1;
2776 fprintf (f, "%lu", i);
2778 /* Do not output a trailing newline, as this causes \r\n confusion
2779 on some platforms. */
2780 return ferror (f) || fclose (f) != 0;
2783 return 0;
2785 _ACEOF
2786 if ac_fn_c_try_run "$LINENO"; then :
2787 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2788 else
2789 ac_retval=1
2791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2792 conftest.$ac_objext conftest.beam conftest.$ac_ext
2793 rm -f conftest.val
2796 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2797 as_fn_set_status $ac_retval
2799 } # ac_fn_c_compute_int
2801 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2802 # -------------------------------------------
2803 # Tests whether TYPE exists after having included INCLUDES, setting cache
2804 # variable VAR accordingly.
2805 ac_fn_c_check_type ()
2807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2809 $as_echo_n "checking for $2... " >&6; }
2810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 eval "$3=no"
2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815 /* end confdefs.h. */
2818 main ()
2820 if (sizeof ($2))
2821 return 0;
2823 return 0;
2825 _ACEOF
2826 if ac_fn_c_try_compile "$LINENO"; then :
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2831 main ()
2833 if (sizeof (($2)))
2834 return 0;
2836 return 0;
2838 _ACEOF
2839 if ac_fn_c_try_compile "$LINENO"; then :
2841 else
2842 eval "$3=yes"
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 eval ac_res=\$$3
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2850 $as_echo "$ac_res" >&6; }
2851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2853 } # ac_fn_c_check_type
2855 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2856 # ----------------------------------------------
2857 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2858 ac_fn_c_check_header_preproc ()
2860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2862 $as_echo_n "checking for $2... " >&6; }
2863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2868 #include <$2>
2869 _ACEOF
2870 if ac_fn_c_try_cpp "$LINENO"; then :
2871 eval "$3=yes"
2872 else
2873 eval "$3=no"
2875 rm -f conftest.err conftest.$ac_ext
2877 eval ac_res=\$$3
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2879 $as_echo "$ac_res" >&6; }
2880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2882 } # ac_fn_c_check_header_preproc
2883 cat >config.log <<_ACEOF
2884 This file contains any messages produced by compilers while
2885 running configure, to aid debugging if configure makes a mistake.
2887 It was created by emacs $as_me 24.1.50, which was
2888 generated by GNU Autoconf 2.65. Invocation command line was
2890 $ $0 $@
2892 _ACEOF
2893 exec 5>>config.log
2895 cat <<_ASUNAME
2896 ## --------- ##
2897 ## Platform. ##
2898 ## --------- ##
2900 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2901 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2902 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2903 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2904 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2906 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2907 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2909 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2910 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2911 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2912 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2913 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2914 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2915 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2917 _ASUNAME
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 $as_echo "PATH: $as_dir"
2925 done
2926 IFS=$as_save_IFS
2928 } >&5
2930 cat >&5 <<_ACEOF
2933 ## ----------- ##
2934 ## Core tests. ##
2935 ## ----------- ##
2937 _ACEOF
2940 # Keep a trace of the command line.
2941 # Strip out --no-create and --no-recursion so they do not pile up.
2942 # Strip out --silent because we don't want to record it for future runs.
2943 # Also quote any args containing shell meta-characters.
2944 # Make two passes to allow for proper duplicate-argument suppression.
2945 ac_configure_args=
2946 ac_configure_args0=
2947 ac_configure_args1=
2948 ac_must_keep_next=false
2949 for ac_pass in 1 2
2951 for ac_arg
2953 case $ac_arg in
2954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2956 | -silent | --silent | --silen | --sile | --sil)
2957 continue ;;
2958 *\'*)
2959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2960 esac
2961 case $ac_pass in
2962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2964 as_fn_append ac_configure_args1 " '$ac_arg'"
2965 if test $ac_must_keep_next = true; then
2966 ac_must_keep_next=false # Got value, back to normal.
2967 else
2968 case $ac_arg in
2969 *=* | --config-cache | -C | -disable-* | --disable-* \
2970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2972 | -with-* | --with-* | -without-* | --without-* | --x)
2973 case "$ac_configure_args0 " in
2974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2975 esac
2977 -* ) ac_must_keep_next=true ;;
2978 esac
2980 as_fn_append ac_configure_args " '$ac_arg'"
2982 esac
2983 done
2984 done
2985 { ac_configure_args0=; unset ac_configure_args0;}
2986 { ac_configure_args1=; unset ac_configure_args1;}
2988 # When interrupted or exit'd, cleanup temporary files, and complete
2989 # config.log. We remove comments because anyway the quotes in there
2990 # would cause problems or look ugly.
2991 # WARNING: Use '\'' to represent an apostrophe within the trap.
2992 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2993 trap 'exit_status=$?
2994 # Save into config.log some information that might help in debugging.
2996 echo
2998 cat <<\_ASBOX
2999 ## ---------------- ##
3000 ## Cache variables. ##
3001 ## ---------------- ##
3002 _ASBOX
3003 echo
3004 # The following way of writing the cache mishandles newlines in values,
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3008 case $ac_val in #(
3009 *${as_nl}*)
3010 case $ac_var in #(
3011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3013 esac
3014 case $ac_var in #(
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3017 *) { eval $ac_var=; unset $ac_var;} ;;
3018 esac ;;
3019 esac
3020 done
3021 (set) 2>&1 |
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3024 sed -n \
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3027 ;; #(
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3031 esac |
3032 sort
3034 echo
3036 cat <<\_ASBOX
3037 ## ----------------- ##
3038 ## Output variables. ##
3039 ## ----------------- ##
3040 _ASBOX
3041 echo
3042 for ac_var in $ac_subst_vars
3044 eval ac_val=\$$ac_var
3045 case $ac_val in
3046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3047 esac
3048 $as_echo "$ac_var='\''$ac_val'\''"
3049 done | sort
3050 echo
3052 if test -n "$ac_subst_files"; then
3053 cat <<\_ASBOX
3054 ## ------------------- ##
3055 ## File substitutions. ##
3056 ## ------------------- ##
3057 _ASBOX
3058 echo
3059 for ac_var in $ac_subst_files
3061 eval ac_val=\$$ac_var
3062 case $ac_val in
3063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3064 esac
3065 $as_echo "$ac_var='\''$ac_val'\''"
3066 done | sort
3067 echo
3070 if test -s confdefs.h; then
3071 cat <<\_ASBOX
3072 ## ----------- ##
3073 ## confdefs.h. ##
3074 ## ----------- ##
3075 _ASBOX
3076 echo
3077 cat confdefs.h
3078 echo
3080 test "$ac_signal" != 0 &&
3081 $as_echo "$as_me: caught signal $ac_signal"
3082 $as_echo "$as_me: exit $exit_status"
3083 } >&5
3084 rm -f core *.core core.conftest.* &&
3085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3086 exit $exit_status
3088 for ac_signal in 1 2 13 15; do
3089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3090 done
3091 ac_signal=0
3093 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3094 rm -f -r conftest* confdefs.h
3096 $as_echo "/* confdefs.h */" > confdefs.h
3098 # Predefined preprocessor variables.
3100 cat >>confdefs.h <<_ACEOF
3101 #define PACKAGE_NAME "$PACKAGE_NAME"
3102 _ACEOF
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3106 _ACEOF
3108 cat >>confdefs.h <<_ACEOF
3109 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3110 _ACEOF
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE_STRING "$PACKAGE_STRING"
3114 _ACEOF
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3118 _ACEOF
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_URL "$PACKAGE_URL"
3122 _ACEOF
3125 # Let the site file select an alternate cache file if it wants to.
3126 # Prefer an explicitly selected file to automatically selected ones.
3127 ac_site_file1=NONE
3128 ac_site_file2=NONE
3129 if test -n "$CONFIG_SITE"; then
3130 ac_site_file1=$CONFIG_SITE
3131 elif test "x$prefix" != xNONE; then
3132 ac_site_file1=$prefix/share/config.site
3133 ac_site_file2=$prefix/etc/config.site
3134 else
3135 ac_site_file1=$ac_default_prefix/share/config.site
3136 ac_site_file2=$ac_default_prefix/etc/config.site
3138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3140 test "x$ac_site_file" = xNONE && continue
3141 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3144 sed 's/^/| /' "$ac_site_file" >&5
3145 . "$ac_site_file"
3147 done
3149 if test -r "$cache_file"; then
3150 # Some versions of bash will fail to source /dev/null (special files
3151 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3152 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3154 $as_echo "$as_me: loading cache $cache_file" >&6;}
3155 case $cache_file in
3156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3157 *) . "./$cache_file";;
3158 esac
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3162 $as_echo "$as_me: creating cache $cache_file" >&6;}
3163 >$cache_file
3166 as_fn_append ac_func_list " readlinkat"
3167 gl_getopt_required=GNU
3168 as_fn_append ac_header_list " getopt.h"
3169 as_fn_append ac_func_list " gettimeofday"
3170 as_fn_append ac_func_list " nanotime"
3171 as_fn_append ac_header_list " sys/time.h"
3172 as_fn_append ac_header_list " sys/socket.h"
3173 as_fn_append ac_header_list " wchar.h"
3174 as_fn_append ac_header_list " stdint.h"
3175 as_fn_append ac_header_list " inttypes.h"
3176 as_fn_append ac_func_list " lstat"
3177 as_fn_append ac_header_list " unistd.h"
3178 as_fn_append ac_func_list " alarm"
3179 as_fn_append ac_header_list " sys/select.h"
3180 as_fn_append ac_func_list " pselect"
3181 as_fn_append ac_func_list " pthread_sigmask"
3182 as_fn_append ac_func_list " readlink"
3183 as_fn_append ac_func_list " tzset"
3184 as_fn_append ac_func_list " strtoimax"
3185 as_fn_append ac_func_list " strtoumax"
3186 as_fn_append ac_func_list " symlink"
3187 as_fn_append ac_header_list " sys/stat.h"
3188 as_fn_append ac_func_list " localtime_r"
3189 as_fn_append ac_header_list " utime.h"
3190 as_fn_append ac_func_list " futimes"
3191 as_fn_append ac_func_list " futimesat"
3192 as_fn_append ac_func_list " futimens"
3193 as_fn_append ac_func_list " utimensat"
3194 as_fn_append ac_func_list " lutimes"
3195 as_fn_append ac_header_list " sys/param.h"
3196 as_fn_append ac_header_list " linux/version.h"
3197 as_fn_append ac_header_list " sys/systeminfo.h"
3198 as_fn_append ac_header_list " stdio_ext.h"
3199 as_fn_append ac_header_list " fcntl.h"
3200 as_fn_append ac_header_list " coff.h"
3201 as_fn_append ac_header_list " pty.h"
3202 as_fn_append ac_header_list " sys/vlimit.h"
3203 as_fn_append ac_header_list " sys/resource.h"
3204 as_fn_append ac_header_list " sys/utsname.h"
3205 as_fn_append ac_header_list " pwd.h"
3206 as_fn_append ac_header_list " utmp.h"
3207 as_fn_append ac_header_list " dirent.h"
3208 as_fn_append ac_header_list " util.h"
3209 as_fn_append ac_header_list " stdlib.h"
3210 as_fn_append ac_header_list " pthread.h"
3211 as_fn_append ac_header_list " malloc/malloc.h"
3212 as_fn_append ac_header_list " maillock.h"
3213 as_fn_append ac_header_list " sys/un.h"
3214 # Check that the precious variables saved in the cache have kept the same
3215 # value.
3216 ac_cache_corrupted=false
3217 for ac_var in $ac_precious_vars; do
3218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3219 eval ac_new_set=\$ac_env_${ac_var}_set
3220 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3221 eval ac_new_val=\$ac_env_${ac_var}_value
3222 case $ac_old_set,$ac_new_set in
3223 set,)
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3225 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3226 ac_cache_corrupted=: ;;
3227 ,set)
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3229 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3230 ac_cache_corrupted=: ;;
3231 ,);;
3233 if test "x$ac_old_val" != "x$ac_new_val"; then
3234 # differences in whitespace do not lead to failure.
3235 ac_old_val_w=`echo x $ac_old_val`
3236 ac_new_val_w=`echo x $ac_new_val`
3237 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3239 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3240 ac_cache_corrupted=:
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3243 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3244 eval $ac_var=\$ac_old_val
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3247 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3249 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3250 fi;;
3251 esac
3252 # Pass precious variables to config.status.
3253 if test "$ac_new_set" = set; then
3254 case $ac_new_val in
3255 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3256 *) ac_arg=$ac_var=$ac_new_val ;;
3257 esac
3258 case " $ac_configure_args " in
3259 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3260 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3261 esac
3263 done
3264 if $ac_cache_corrupted; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3268 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3269 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3271 ## -------------------- ##
3272 ## Main body of script. ##
3273 ## -------------------- ##
3275 ac_ext=c
3276 ac_cpp='$CPP $CPPFLAGS'
3277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3285 ac_aux_dir=
3286 for ac_dir in build-aux "$srcdir"/build-aux; do
3287 for ac_t in install-sh install.sh shtool; do
3288 if test -f "$ac_dir/$ac_t"; then
3289 ac_aux_dir=$ac_dir
3290 ac_install_sh="$ac_aux_dir/$ac_t -c"
3291 break 2
3293 done
3294 done
3295 if test -z "$ac_aux_dir"; then
3296 as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3299 # These three variables are undocumented and unsupported,
3300 # and are intended to be withdrawn in a future Autoconf release.
3301 # They can cause serious problems if a builder's source tree is in a directory
3302 # whose full name contains unusual characters.
3303 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3304 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3305 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3308 am__api_version='1.11'
3310 # Find a good install program. We prefer a C program (faster),
3311 # so one script is as good as another. But avoid the broken or
3312 # incompatible versions:
3313 # SysV /etc/install, /usr/sbin/install
3314 # SunOS /usr/etc/install
3315 # IRIX /sbin/install
3316 # AIX /bin/install
3317 # AmigaOS /C/install, which installs bootblocks on floppy discs
3318 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3319 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3320 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3321 # OS/2's system install, which has a completely different semantic
3322 # ./install, which can be erroneously created by make from ./install.sh.
3323 # Reject install programs that cannot install multiple files.
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3325 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3326 if test -z "$INSTALL"; then
3327 if test "${ac_cv_path_install+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 # Account for people who put trailing slashes in PATH elements.
3336 case $as_dir/ in #((
3337 ./ | .// | /[cC]/* | \
3338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3339 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3340 /usr/ucb/* ) ;;
3342 # OSF1 and SCO ODT 3.0 have their own names for install.
3343 # Don't use installbsd from OSF since it installs stuff as root
3344 # by default.
3345 for ac_prog in ginstall scoinst install; do
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3348 if test $ac_prog = install &&
3349 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3350 # AIX install. It has an incompatible calling convention.
3352 elif test $ac_prog = install &&
3353 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3354 # program-specific install script used by HP pwplus--don't use.
3356 else
3357 rm -rf conftest.one conftest.two conftest.dir
3358 echo one > conftest.one
3359 echo two > conftest.two
3360 mkdir conftest.dir
3361 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3362 test -s conftest.one && test -s conftest.two &&
3363 test -s conftest.dir/conftest.one &&
3364 test -s conftest.dir/conftest.two
3365 then
3366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3367 break 3
3371 done
3372 done
3374 esac
3376 done
3377 IFS=$as_save_IFS
3379 rm -rf conftest.one conftest.two conftest.dir
3382 if test "${ac_cv_path_install+set}" = set; then
3383 INSTALL=$ac_cv_path_install
3384 else
3385 # As a last resort, use the slow shell script. Don't cache a
3386 # value for INSTALL within a source directory, because that will
3387 # break other packages using the cache if that directory is
3388 # removed, or if the value is a relative name.
3389 INSTALL=$ac_install_sh
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3393 $as_echo "$INSTALL" >&6; }
3395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3396 # It thinks the first close brace ends the variable substitution.
3397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3404 $as_echo_n "checking whether build environment is sane... " >&6; }
3405 # Just in case
3406 sleep 1
3407 echo timestamp > conftest.file
3408 # Reject unsafe characters in $srcdir or the absolute working directory
3409 # name. Accept space and tab only in the latter.
3410 am_lf='
3412 case `pwd` in
3413 *[\\\"\#\$\&\'\`$am_lf]*)
3414 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3415 esac
3416 case $srcdir in
3417 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3418 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3419 esac
3421 # Do `set' in a subshell so we don't clobber the current shell's
3422 # arguments. Must try -L first in case configure is actually a
3423 # symlink; some systems play weird games with the mod time of symlinks
3424 # (eg FreeBSD returns the mod time of the symlink's containing
3425 # directory).
3426 if (
3427 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3428 if test "$*" = "X"; then
3429 # -L didn't work.
3430 set X `ls -t "$srcdir/configure" conftest.file`
3432 rm -f conftest.file
3433 if test "$*" != "X $srcdir/configure conftest.file" \
3434 && test "$*" != "X conftest.file $srcdir/configure"; then
3436 # If neither matched, then we have a broken ls. This can happen
3437 # if, for instance, CONFIG_SHELL is bash and it inherits a
3438 # broken ls alias from the environment. This has actually
3439 # happened. Such a system could not be considered "sane".
3440 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3441 alias in your environment" "$LINENO" 5
3444 test "$2" = conftest.file
3446 then
3447 # Ok.
3449 else
3450 as_fn_error "newly created file is older than distributed files!
3451 Check your system clock" "$LINENO" 5
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454 $as_echo "yes" >&6; }
3455 test "$program_prefix" != NONE &&
3456 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3457 # Use a double $ so make ignores it.
3458 test "$program_suffix" != NONE &&
3459 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3460 # Double any \ or $.
3461 # By default was `s,x,x', remove it if useless.
3462 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3463 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3465 # expand $ac_aux_dir to an absolute path
3466 am_aux_dir=`cd $ac_aux_dir && pwd`
3468 if test x"${MISSING+set}" != xset; then
3469 case $am_aux_dir in
3470 *\ * | *\ *)
3471 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3473 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3474 esac
3476 # Use eval to expand $SHELL
3477 if eval "$MISSING --run true"; then
3478 am_missing_run="$MISSING --run "
3479 else
3480 am_missing_run=
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3482 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3485 if test x"${install_sh}" != xset; then
3486 case $am_aux_dir in
3487 *\ * | *\ *)
3488 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3490 install_sh="\${SHELL} $am_aux_dir/install-sh"
3491 esac
3494 # Installed binaries are usually stripped using `strip' when the user
3495 # run `make install-strip'. However `strip' might not be the right
3496 # tool to use in cross-compilation environments, therefore Automake
3497 # will honor the `STRIP' environment variable to overrule this program.
3498 if test "$cross_compiling" != no; then
3499 if test -n "$ac_tool_prefix"; then
3500 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3501 set dummy ${ac_tool_prefix}strip; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_STRIP+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -n "$STRIP"; then
3508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3523 IFS=$as_save_IFS
3527 STRIP=$ac_cv_prog_STRIP
3528 if test -n "$STRIP"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3530 $as_echo "$STRIP" >&6; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3538 if test -z "$ac_cv_prog_STRIP"; then
3539 ac_ct_STRIP=$STRIP
3540 # Extract the first word of "strip", so it can be a program name with args.
3541 set dummy strip; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$ac_ct_STRIP"; then
3548 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_ac_ct_STRIP="strip"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3563 IFS=$as_save_IFS
3567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3568 if test -n "$ac_ct_STRIP"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3570 $as_echo "$ac_ct_STRIP" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3576 if test "x$ac_ct_STRIP" = x; then
3577 STRIP=":"
3578 else
3579 case $cross_compiling:$ac_tool_warned in
3580 yes:)
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583 ac_tool_warned=yes ;;
3584 esac
3585 STRIP=$ac_ct_STRIP
3587 else
3588 STRIP="$ac_cv_prog_STRIP"
3592 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3595 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3596 if test -z "$MKDIR_P"; then
3597 if test "${ac_cv_path_mkdir+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_prog in mkdir gmkdir; do
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3608 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3609 'mkdir (GNU coreutils) '* | \
3610 'mkdir (coreutils) '* | \
3611 'mkdir (fileutils) '4.1*)
3612 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3613 break 3;;
3614 esac
3615 done
3616 done
3617 done
3618 IFS=$as_save_IFS
3622 test -d ./--version && rmdir ./--version
3623 if test "${ac_cv_path_mkdir+set}" = set; then
3624 MKDIR_P="$ac_cv_path_mkdir -p"
3625 else
3626 # As a last resort, use the slow shell script. Don't cache a
3627 # value for MKDIR_P within a source directory, because that will
3628 # break other packages using the cache if that directory is
3629 # removed, or if the value is a relative name.
3630 MKDIR_P="$ac_install_sh -d"
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3634 $as_echo "$MKDIR_P" >&6; }
3637 mkdir_p="$MKDIR_P"
3638 case $mkdir_p in
3639 [\\/$]* | ?:[\\/]*) ;;
3640 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3641 esac
3643 for ac_prog in gawk mawk nawk awk
3645 # Extract the first word of "$ac_prog", so it can be a program name with args.
3646 set dummy $ac_prog; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if test "${ac_cv_prog_AWK+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$AWK"; then
3653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_AWK="$ac_prog"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3668 IFS=$as_save_IFS
3672 AWK=$ac_cv_prog_AWK
3673 if test -n "$AWK"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3675 $as_echo "$AWK" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3682 test -n "$AWK" && break
3683 done
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3686 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3687 set x ${MAKE-make}
3688 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3689 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat >conftest.make <<\_ACEOF
3693 SHELL = /bin/sh
3694 all:
3695 @echo '@@@%%%=$(MAKE)=@@@%%%'
3696 _ACEOF
3697 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3698 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3699 *@@@%%%=?*=@@@%%%*)
3700 eval ac_cv_prog_make_${ac_make}_set=yes;;
3702 eval ac_cv_prog_make_${ac_make}_set=no;;
3703 esac
3704 rm -f conftest.make
3706 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3709 SET_MAKE=
3710 else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 SET_MAKE="MAKE=${MAKE-make}"
3716 rm -rf .tst 2>/dev/null
3717 mkdir .tst 2>/dev/null
3718 if test -d .tst; then
3719 am__leading_dot=.
3720 else
3721 am__leading_dot=_
3723 rmdir .tst 2>/dev/null
3725 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3727 # is not polluted with repeated "-I."
3728 am__isrc=' -I$(srcdir)'
3729 # test to see if srcdir already configured
3730 if test -f $srcdir/config.status; then
3731 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3735 # test whether we have cygpath
3736 if test -z "$CYGPATH_W"; then
3737 if (cygpath --version) >/dev/null 2>/dev/null; then
3738 CYGPATH_W='cygpath -w'
3739 else
3740 CYGPATH_W=echo
3745 # Define the identity of the package.
3746 PACKAGE='emacs'
3747 VERSION='24.1.50'
3750 cat >>confdefs.h <<_ACEOF
3751 #define PACKAGE "$PACKAGE"
3752 _ACEOF
3755 cat >>confdefs.h <<_ACEOF
3756 #define VERSION "$VERSION"
3757 _ACEOF
3759 # Some tools Automake needs.
3761 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3764 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3767 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3770 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3773 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3775 # We need awk for the "check" target. The system "awk" is bad on
3776 # some platforms.
3777 # Always define AMTAR for backward compatibility.
3779 AMTAR=${AMTAR-"${am_missing_run}tar"}
3781 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3790 lispdir='${datadir}/emacs/${version}/lisp'
3791 leimdir='${datadir}/emacs/${version}/leim'
3792 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3793 '${datadir}/emacs/site-lisp'
3794 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3795 etcdir='${datadir}/emacs/${version}/etc'
3796 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3797 docdir='${datadir}/emacs/${version}/etc'
3798 gamedir='${localstatedir}/games/emacs'
3803 # Check whether --with-pop was given.
3804 if test "${with_pop+set}" = set; then :
3805 withval=$with_pop;
3806 else
3807 with_pop=yes
3810 if test "$with_pop" = yes; then
3811 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3816 # Check whether --with-kerberos was given.
3817 if test "${with_kerberos+set}" = set; then :
3818 withval=$with_kerberos;
3819 else
3820 with_kerberos=no
3823 if test "$with_kerberos" != no; then
3824 $as_echo "#define KERBEROS 1" >>confdefs.h
3829 # Check whether --with-kerberos5 was given.
3830 if test "${with_kerberos5+set}" = set; then :
3831 withval=$with_kerberos5;
3832 else
3833 with_kerberos5=no
3836 if test "${with_kerberos5}" != no; then
3837 if test "${with_kerberos}" = no; then
3838 with_kerberos=yes
3839 $as_echo "#define KERBEROS 1" >>confdefs.h
3843 $as_echo "#define KERBEROS5 1" >>confdefs.h
3848 # Check whether --with-hesiod was given.
3849 if test "${with_hesiod+set}" = set; then :
3850 withval=$with_hesiod;
3851 else
3852 with_hesiod=no
3855 if test "$with_hesiod" != no; then
3857 $as_echo "#define HESIOD 1" >>confdefs.h
3862 # Check whether --with-mmdf was given.
3863 if test "${with_mmdf+set}" = set; then :
3864 withval=$with_mmdf;
3865 else
3866 with_mmdf=no
3869 if test "$with_mmdf" != no; then
3871 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3876 # Check whether --with-mail-unlink was given.
3877 if test "${with_mail_unlink+set}" = set; then :
3878 withval=$with_mail_unlink;
3879 else
3880 with_mail_unlink=no
3883 if test "$with_mail_unlink" != no; then
3885 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3890 # Check whether --with-mailhost was given.
3891 if test "${with_mailhost+set}" = set; then :
3892 withval=$with_mailhost;
3893 cat >>confdefs.h <<_ACEOF
3894 #define MAILHOST "$withval"
3895 _ACEOF
3901 # Check whether --with-sound was given.
3902 if test "${with_sound+set}" = set; then :
3903 withval=$with_sound;
3904 else
3905 with_sound=yes
3910 # Check whether --with-sync-input was given.
3911 if test "${with_sync_input+set}" = set; then :
3912 withval=$with_sync_input;
3913 else
3914 with_sync_input=yes
3917 if test "$with_sync_input" = yes; then
3919 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3924 # Check whether --with-x-toolkit was given.
3925 if test "${with_x_toolkit+set}" = set; then :
3926 withval=$with_x_toolkit; case "${withval}" in
3927 y | ye | yes ) val=gtk ;;
3928 n | no ) val=no ;;
3929 l | lu | luc | luci | lucid ) val=lucid ;;
3930 a | at | ath | athe | athen | athena ) val=athena ;;
3931 m | mo | mot | moti | motif ) val=motif ;;
3932 g | gt | gtk ) val=gtk ;;
3933 gtk3 ) val=gtk3 ;;
3935 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3936 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3937 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3939 esac
3940 with_x_toolkit=$val
3946 # Check whether --with-wide-int was given.
3947 if test "${with_wide_int+set}" = set; then :
3948 withval=$with_wide_int;
3949 else
3950 with_wide_int=no
3953 if test "$with_wide_int" = yes; then
3955 $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h
3960 # Check whether --with-xpm was given.
3961 if test "${with_xpm+set}" = set; then :
3962 withval=$with_xpm;
3963 else
3964 with_xpm=yes
3968 # Check whether --with-jpeg was given.
3969 if test "${with_jpeg+set}" = set; then :
3970 withval=$with_jpeg;
3971 else
3972 with_jpeg=yes
3976 # Check whether --with-tiff was given.
3977 if test "${with_tiff+set}" = set; then :
3978 withval=$with_tiff;
3979 else
3980 with_tiff=yes
3984 # Check whether --with-gif was given.
3985 if test "${with_gif+set}" = set; then :
3986 withval=$with_gif;
3987 else
3988 with_gif=yes
3992 # Check whether --with-png was given.
3993 if test "${with_png+set}" = set; then :
3994 withval=$with_png;
3995 else
3996 with_png=yes
4000 # Check whether --with-rsvg was given.
4001 if test "${with_rsvg+set}" = set; then :
4002 withval=$with_rsvg;
4003 else
4004 with_rsvg=yes
4008 # Check whether --with-xml2 was given.
4009 if test "${with_xml2+set}" = set; then :
4010 withval=$with_xml2;
4011 else
4012 with_xml2=yes
4016 # Check whether --with-imagemagick was given.
4017 if test "${with_imagemagick+set}" = set; then :
4018 withval=$with_imagemagick;
4019 else
4020 with_imagemagick=yes
4025 # Check whether --with-xft was given.
4026 if test "${with_xft+set}" = set; then :
4027 withval=$with_xft;
4028 else
4029 with_xft=yes
4033 # Check whether --with-libotf was given.
4034 if test "${with_libotf+set}" = set; then :
4035 withval=$with_libotf;
4036 else
4037 with_libotf=yes
4041 # Check whether --with-m17n-flt was given.
4042 if test "${with_m17n_flt+set}" = set; then :
4043 withval=$with_m17n_flt;
4044 else
4045 with_m17n_flt=yes
4050 # Check whether --with-toolkit-scroll-bars was given.
4051 if test "${with_toolkit_scroll_bars+set}" = set; then :
4052 withval=$with_toolkit_scroll_bars;
4053 else
4054 with_toolkit_scroll_bars=yes
4058 # Check whether --with-xaw3d was given.
4059 if test "${with_xaw3d+set}" = set; then :
4060 withval=$with_xaw3d;
4061 else
4062 with_xaw3d=yes
4066 # Check whether --with-xim was given.
4067 if test "${with_xim+set}" = set; then :
4068 withval=$with_xim;
4069 else
4070 with_xim=yes
4074 # Check whether --with-ns was given.
4075 if test "${with_ns+set}" = set; then :
4076 withval=$with_ns;
4077 else
4078 with_ns=no
4083 # Check whether --with-gpm was given.
4084 if test "${with_gpm+set}" = set; then :
4085 withval=$with_gpm;
4086 else
4087 with_gpm=yes
4091 # Check whether --with-dbus was given.
4092 if test "${with_dbus+set}" = set; then :
4093 withval=$with_dbus;
4094 else
4095 with_dbus=yes
4099 # Check whether --with-gconf was given.
4100 if test "${with_gconf+set}" = set; then :
4101 withval=$with_gconf;
4102 else
4103 with_gconf=yes
4107 # Check whether --with-gsettings was given.
4108 if test "${with_gsettings+set}" = set; then :
4109 withval=$with_gsettings;
4110 else
4111 with_gsettings=yes
4115 # Check whether --with-selinux was given.
4116 if test "${with_selinux+set}" = set; then :
4117 withval=$with_selinux;
4118 else
4119 with_selinux=yes
4123 # Check whether --with-gnutls was given.
4124 if test "${with_gnutls+set}" = set; then :
4125 withval=$with_gnutls;
4126 else
4127 with_gnutls=yes
4131 ## For the times when you want to build Emacs but don't have
4132 ## a suitable makeinfo, and can live without the manuals.
4134 # Check whether --with-makeinfo was given.
4135 if test "${with_makeinfo+set}" = set; then :
4136 withval=$with_makeinfo;
4137 else
4138 with_makeinfo=yes
4142 ## Makefile.in needs the cache file name.
4145 ## This is an option because I do not know if all info/man support
4146 ## compressed files, nor how to test if they do so.
4148 # Check whether --with-compress-info was given.
4149 if test "${with_compress_info+set}" = set; then :
4150 withval=$with_compress_info;
4151 else
4152 with_compress_info=yes
4155 if test $with_compress_info = yes; then
4156 GZIP_INFO=yes
4157 else
4158 GZIP_INFO=
4163 # Check whether --with-pkg-config-prog was given.
4164 if test "${with_pkg_config_prog+set}" = set; then :
4165 withval=$with_pkg_config_prog;
4168 if test "X${with_pkg_config_prog}" != X; then
4169 if test "${with_pkg_config_prog}" != yes; then
4170 PKG_CONFIG="${with_pkg_config_prog}"
4174 CRT_DIR=
4176 # Check whether --with-crt-dir was given.
4177 if test "${with_crt_dir+set}" = set; then :
4178 withval=$with_crt_dir;
4181 CRT_DIR="${with_crt_dir}"
4184 # Check whether --with-gameuser was given.
4185 if test "${with_gameuser+set}" = set; then :
4186 withval=$with_gameuser;
4189 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4190 && gameuser="${with_gameuser}"
4191 test "X$gameuser" = X && gameuser=games
4194 # Check whether --with-gnustep-conf was given.
4195 if test "${with_gnustep_conf+set}" = set; then :
4196 withval=$with_gnustep_conf;
4199 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4200 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4201 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4202 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4204 # Check whether --enable-ns-self-contained was given.
4205 if test "${enable_ns_self_contained+set}" = set; then :
4206 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4207 else
4208 EN_NS_SELF_CONTAINED=yes
4212 # Check whether --enable-asserts was given.
4213 if test "${enable_asserts+set}" = set; then :
4214 enableval=$enable_asserts; USE_XASSERTS=$enableval
4215 else
4216 USE_XASSERTS=no
4220 # Check whether --enable-locallisppath was given.
4221 if test "${enable_locallisppath+set}" = set; then :
4222 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4223 locallisppath=
4224 elif test "${enableval}" != "yes"; then
4225 locallisppath=${enableval}
4230 # Check whether --enable-checking was given.
4231 if test "${enable_checking+set}" = set; then :
4232 enableval=$enable_checking; ac_checking_flags="${enableval}"
4235 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4236 for check in $ac_checking_flags
4238 case $check in
4239 # these set all the flags to specific states
4240 yes) ac_enable_checking=1 ;;
4241 no) ac_enable_checking= ;
4242 ac_gc_check_stringbytes= ;
4243 ac_gc_check_string_overrun= ;
4244 ac_gc_check_string_free_list= ;
4245 ac_xmalloc_overrun= ;
4246 ac_gc_check_cons_list= ;;
4247 all) ac_enable_checking=1 ;
4248 ac_gc_check_stringbytes=1 ;
4249 ac_gc_check_string_overrun=1 ;
4250 ac_gc_check_string_free_list=1 ;
4251 ac_xmalloc_overrun=1 ;
4252 ac_gc_check_cons_list=1 ;;
4253 # these enable particular checks
4254 stringbytes) ac_gc_check_stringbytes=1 ;;
4255 stringoverrun) ac_gc_check_string_overrun=1 ;;
4256 stringfreelist) ac_gc_check_string_free_list=1 ;;
4257 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4258 conslist) ac_gc_check_cons_list=1 ;;
4259 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4260 esac
4261 done
4262 IFS="$ac_save_IFS"
4264 if test x$ac_enable_checking != x ; then
4266 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4269 if test x$ac_gc_check_stringbytes != x ; then
4271 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4274 if test x$ac_gc_check_string_overrun != x ; then
4276 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4279 if test x$ac_gc_check_string_free_list != x ; then
4281 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4284 if test x$ac_xmalloc_overrun != x ; then
4286 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4289 if test x$ac_gc_check_cons_list != x ; then
4291 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4295 # Check whether --enable-check-lisp-object-type was given.
4296 if test "${enable_check_lisp_object_type+set}" = set; then :
4297 enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then
4299 $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h
4306 # Check whether --enable-profiling was given.
4307 if test "${enable_profiling+set}" = set; then :
4308 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4311 if test x$ac_enable_profiling != x ; then
4312 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4313 else
4314 PROFILING_CFLAGS=
4318 # Check whether --enable-autodepend was given.
4319 if test "${enable_autodepend+set}" = set; then :
4320 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4321 else
4322 ac_enable_autodepend=yes
4326 #### Make srcdir absolute, if it isn't already. It's important to
4327 #### avoid running the path through pwd unnecessarily, since pwd can
4328 #### give you automounter prefixes, which can go away. We do all this
4329 #### so Emacs can find its files when run uninstalled.
4330 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4331 unset CDPATH
4332 case "${srcdir}" in
4333 /* ) ;;
4335 ## We may be able to use the $PWD environment variable to make this
4336 ## absolute. But sometimes PWD is inaccurate.
4337 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4338 ## but that tested only for a well-formed and valid PWD,
4339 ## it did not object when PWD was well-formed and valid but just wrong.
4340 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4341 then
4342 srcdir="$PWD"
4343 else
4344 srcdir="`(cd ${srcdir}; pwd)`"
4347 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4348 esac
4350 #### Given the configuration name, set opsysfile to the
4351 #### name of s/*.h file we should use.
4353 ### Canonicalize the configuration name.
4355 # Make sure we can run config.sub.
4356 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4357 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4360 $as_echo_n "checking build system type... " >&6; }
4361 if test "${ac_cv_build+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 ac_build_alias=$build_alias
4365 test "x$ac_build_alias" = x &&
4366 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4367 test "x$ac_build_alias" = x &&
4368 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4369 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4370 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4374 $as_echo "$ac_cv_build" >&6; }
4375 case $ac_cv_build in
4376 *-*-*) ;;
4377 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4378 esac
4379 build=$ac_cv_build
4380 ac_save_IFS=$IFS; IFS='-'
4381 set x $ac_cv_build
4382 shift
4383 build_cpu=$1
4384 build_vendor=$2
4385 shift; shift
4386 # Remember, the first character of IFS is used to create $*,
4387 # except with old shells:
4388 build_os=$*
4389 IFS=$ac_save_IFS
4390 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4394 $as_echo_n "checking host system type... " >&6; }
4395 if test "${ac_cv_host+set}" = set; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test "x$host_alias" = x; then
4399 ac_cv_host=$ac_cv_build
4400 else
4401 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4402 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4407 $as_echo "$ac_cv_host" >&6; }
4408 case $ac_cv_host in
4409 *-*-*) ;;
4410 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4411 esac
4412 host=$ac_cv_host
4413 ac_save_IFS=$IFS; IFS='-'
4414 set x $ac_cv_host
4415 shift
4416 host_cpu=$1
4417 host_vendor=$2
4418 shift; shift
4419 # Remember, the first character of IFS is used to create $*,
4420 # except with old shells:
4421 host_os=$*
4422 IFS=$ac_save_IFS
4423 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4426 canonical=$host
4427 configuration=${host_alias-${build_alias-$host}}
4431 ### If you add support for a new configuration, add code to this
4432 ### switch statement to recognize your configuration name and select
4433 ### the appropriate operating system file.
4435 ### You would hope that you could choose an s/*.h
4436 ### file based on the operating system portion. However, it turns out
4437 ### that each s/*.h file is pretty manufacturer-specific.
4438 ### So we basically have to have a special case for each
4439 ### configuration name.
4441 ### As far as handling version numbers on operating systems is
4442 ### concerned, make sure things will fail in a fixable way. If
4443 ### /etc/MACHINES doesn't say anything about version numbers, be
4444 ### prepared to handle anything reasonably. If version numbers
4445 ### matter, be sure /etc/MACHINES says something about it.
4447 opsys='' unported=no
4448 case "${canonical}" in
4450 ## GNU/Linux and similar ports
4451 *-*-linux* )
4452 opsys=gnu-linux
4455 ## FreeBSD ports
4456 *-*-freebsd* )
4457 opsys=freebsd
4460 ## FreeBSD kernel + glibc based userland
4461 *-*-kfreebsd*gnu* )
4462 opsys=gnu-kfreebsd
4465 ## NetBSD ports
4466 *-*-netbsd* )
4467 opsys=netbsd
4470 ## OpenBSD ports
4471 *-*-openbsd* )
4472 opsys=openbsd
4475 ## Apple Darwin / Mac OS X
4476 *-apple-darwin* )
4477 case "${canonical}" in
4478 i[3456]86-* ) ;;
4479 powerpc-* ) ;;
4480 x86_64-* ) ;;
4481 * ) unported=yes ;;
4482 esac
4483 opsys=darwin
4484 ## Use fink packages if available.
4485 ## FIXME find a better way to do this: http://debbugs.gnu.org/11507
4486 ## if test -d /sw/include && test -d /sw/lib; then
4487 ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4488 ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4489 ## fi
4492 ## HP 9000 series 700 and 800, running HP/UX
4493 hppa*-hp-hpux10.2* )
4494 opsys=hpux10-20
4496 hppa*-hp-hpux1[1-9]* )
4497 opsys=hpux11
4498 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4501 ## IBM machines
4502 rs6000-ibm-aix4.[23]* )
4503 opsys=aix4-2
4505 powerpc-ibm-aix4.[23]* )
4506 opsys=aix4-2
4508 rs6000-ibm-aix[56]* )
4509 opsys=aix4-2
4511 powerpc-ibm-aix[56]* )
4512 opsys=aix4-2
4515 ## Silicon Graphics machines
4516 ## Iris 4D
4517 mips-sgi-irix6.5 )
4518 opsys=irix6-5
4519 # Without defining _LANGUAGE_C, things get masked out in the headers
4520 # so that, for instance, grepping for `free' in stdlib.h fails and
4521 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4522 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4525 ## Suns
4526 *-sun-solaris* \
4527 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4528 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4529 case "${canonical}" in
4530 i[3456]86-*-* ) ;;
4531 amd64-*-*|x86_64-*-*) ;;
4532 sparc* ) ;;
4533 * ) unported=yes ;;
4534 esac
4535 case "${canonical}" in
4536 *-sunos5.6* | *-solaris2.6* )
4537 opsys=sol2-6
4538 RANLIB="ar -ts"
4540 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4541 opsys=sol2-6
4542 emacs_check_sunpro_c=yes
4544 *-sunos5* | *-solaris* )
4545 opsys=sol2-10
4546 emacs_check_sunpro_c=yes
4548 esac
4549 ## Watch out for a compiler that we know will not work.
4550 case "${canonical}" in
4551 *-solaris* | *-sunos5* )
4552 if [ "x$CC" = x/usr/ucb/cc ]; then
4553 ## /usr/ucb/cc doesn't work;
4554 ## we should find some other compiler that does work.
4555 unset CC
4558 *) ;;
4559 esac
4562 ## Intel 386 machines where we don't care about the manufacturer.
4563 i[3456]86-*-* )
4564 case "${canonical}" in
4565 *-cygwin ) opsys=cygwin ;;
4566 *-darwin* ) opsys=darwin ;;
4567 *-sysv4.2uw* ) opsys=unixware ;;
4568 *-sysv5uw* ) opsys=unixware ;;
4569 *-sysv5OpenUNIX* ) opsys=unixware ;;
4570 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4571 esac
4575 unported=yes
4577 esac
4579 ### If the code above didn't choose an operating system, just choose
4580 ### an operating system based on the configuration name. You really
4581 ### only want to use this when you have no idea what the right
4582 ### operating system is; if you know what operating systems a machine
4583 ### runs, it's cleaner to make it explicit in the case statement
4584 ### above.
4585 if test x"${opsys}" = x; then
4586 case "${canonical}" in
4587 *-gnu* ) opsys=gnu ;;
4589 unported=yes
4591 esac
4596 if test $unported = yes; then
4597 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4598 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4601 opsysfile="s/${opsys}.h"
4604 #### Choose a compiler.
4606 ac_ext=c
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if test "${ac_cv_prog_CC+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 if test -n "$CC"; then
4620 ac_cv_prog_CC="$CC" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4633 done
4634 done
4635 IFS=$as_save_IFS
4639 CC=$ac_cv_prog_CC
4640 if test -n "$CC"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4642 $as_echo "$CC" >&6; }
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4650 if test -z "$ac_cv_prog_CC"; then
4651 ac_ct_CC=$CC
4652 # Extract the first word of "gcc", so it can be a program name with args.
4653 set dummy gcc; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC="gcc"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4688 if test "x$ac_ct_CC" = x; then
4689 CC=""
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697 CC=$ac_ct_CC
4699 else
4700 CC="$ac_cv_prog_CC"
4703 if test -z "$CC"; then
4704 if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4706 set dummy ${ac_tool_prefix}cc; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if test "${ac_cv_prog_CC+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if test -n "$CC"; then
4713 ac_cv_prog_CC="$CC" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_CC="${ac_tool_prefix}cc"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4726 done
4727 done
4728 IFS=$as_save_IFS
4732 CC=$ac_cv_prog_CC
4733 if test -n "$CC"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735 $as_echo "$CC" >&6; }
4736 else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4744 if test -z "$CC"; then
4745 # Extract the first word of "cc", so it can be a program name with args.
4746 set dummy cc; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_prog_CC+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4754 else
4755 ac_prog_rejected=no
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4764 ac_prog_rejected=yes
4765 continue
4767 ac_cv_prog_CC="cc"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 break 2
4771 done
4772 done
4773 IFS=$as_save_IFS
4775 if test $ac_prog_rejected = yes; then
4776 # We found a bogon in the path, so make sure we never use it.
4777 set dummy $ac_cv_prog_CC
4778 shift
4779 if test $# != 0; then
4780 # We chose a different compiler from the bogus one.
4781 # However, it has the same basename, so the bogon will be chosen
4782 # first if we set CC to just the basename; use the full file name.
4783 shift
4784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4789 CC=$ac_cv_prog_CC
4790 if test -n "$CC"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4792 $as_echo "$CC" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4800 if test -z "$CC"; then
4801 if test -n "$ac_tool_prefix"; then
4802 for ac_prog in cl.exe
4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_prog_CC+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4825 done
4826 done
4827 IFS=$as_save_IFS
4831 CC=$ac_cv_prog_CC
4832 if test -n "$CC"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4834 $as_echo "$CC" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4841 test -n "$CC" && break
4842 done
4844 if test -z "$CC"; then
4845 ac_ct_CC=$CC
4846 for ac_prog in cl.exe
4848 # Extract the first word of "$ac_prog", so it can be a program name with args.
4849 set dummy $ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$ac_ct_CC"; then
4856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865 ac_cv_prog_ac_ct_CC="$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4869 done
4870 done
4871 IFS=$as_save_IFS
4875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4876 if test -n "$ac_ct_CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4878 $as_echo "$ac_ct_CC" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$ac_ct_CC" && break
4886 done
4888 if test "x$ac_ct_CC" = x; then
4889 CC=""
4890 else
4891 case $cross_compiling:$ac_tool_warned in
4892 yes:)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4896 esac
4897 CC=$ac_ct_CC
4904 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4906 as_fn_error "no acceptable C compiler found in \$PATH
4907 See \`config.log' for more details." "$LINENO" 5; }
4909 # Provide some information about the compiler.
4910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4911 set X $ac_compile
4912 ac_compiler=$2
4913 for ac_option in --version -v -V -qversion; do
4914 { { ac_try="$ac_compiler $ac_option >&5"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4922 ac_status=$?
4923 if test -s conftest.err; then
4924 sed '10a\
4925 ... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4929 rm -f conftest.er1 conftest.err
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4932 done
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4938 main ()
4942 return 0;
4944 _ACEOF
4945 ac_clean_files_save=$ac_clean_files
4946 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4947 # Try to create an executable without -o first, disregard a.out.
4948 # It will help us diagnose broken compilers, and finding out an intuition
4949 # of exeext.
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4951 $as_echo_n "checking whether the C compiler works... " >&6; }
4952 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4954 # The possible output files:
4955 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4957 ac_rmfiles=
4958 for ac_file in $ac_files
4960 case $ac_file in
4961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4962 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4963 esac
4964 done
4965 rm -f $ac_rmfiles
4967 if { { ac_try="$ac_link_default"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973 $as_echo "$ac_try_echo"; } >&5
4974 (eval "$ac_link_default") 2>&5
4975 ac_status=$?
4976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977 test $ac_status = 0; }; then :
4978 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4979 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4980 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4981 # so that the user can short-circuit this test for compilers unknown to
4982 # Autoconf.
4983 for ac_file in $ac_files ''
4985 test -f "$ac_file" || continue
4986 case $ac_file in
4987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4989 [ab].out )
4990 # We found the default executable, but exeext='' is most
4991 # certainly right.
4992 break;;
4993 *.* )
4994 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4995 then :; else
4996 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4998 # We set ac_cv_exeext here because the later test for it is not
4999 # safe: cross compilers may not add the suffix if given an `-o'
5000 # argument, so we may need to know it at that point already.
5001 # Even if this section looks crufty: it has the advantage of
5002 # actually working.
5003 break;;
5005 break;;
5006 esac
5007 done
5008 test "$ac_cv_exeext" = no && ac_cv_exeext=
5010 else
5011 ac_file=''
5013 if test -z "$ac_file"; then :
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 $as_echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5021 { as_fn_set_status 77
5022 as_fn_error "C compiler cannot create executables
5023 See \`config.log' for more details." "$LINENO" 5; }; }
5024 else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5026 $as_echo "yes" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5029 $as_echo_n "checking for C compiler default output file name... " >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5031 $as_echo "$ac_file" >&6; }
5032 ac_exeext=$ac_cv_exeext
5034 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5035 ac_clean_files=$ac_clean_files_save
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5037 $as_echo_n "checking for suffix of executables... " >&6; }
5038 if { { ac_try="$ac_link"
5039 case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042 esac
5043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044 $as_echo "$ac_try_echo"; } >&5
5045 (eval "$ac_link") 2>&5
5046 ac_status=$?
5047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }; then :
5049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5050 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5051 # work properly (i.e., refer to `conftest.exe'), while it won't with
5052 # `rm'.
5053 for ac_file in conftest.exe conftest conftest.*; do
5054 test -f "$ac_file" || continue
5055 case $ac_file in
5056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5058 break;;
5059 * ) break;;
5060 esac
5061 done
5062 else
5063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5065 as_fn_error "cannot compute suffix of executables: cannot compile and link
5066 See \`config.log' for more details." "$LINENO" 5; }
5068 rm -f conftest conftest$ac_cv_exeext
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5070 $as_echo "$ac_cv_exeext" >&6; }
5072 rm -f conftest.$ac_ext
5073 EXEEXT=$ac_cv_exeext
5074 ac_exeext=$EXEEXT
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <stdio.h>
5079 main ()
5081 FILE *f = fopen ("conftest.out", "w");
5082 return ferror (f) || fclose (f) != 0;
5085 return 0;
5087 _ACEOF
5088 ac_clean_files="$ac_clean_files conftest.out"
5089 # Check that the compiler produces executables we can run. If not, either
5090 # the compiler is broken, or we cross compile.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5092 $as_echo_n "checking whether we are cross compiling... " >&6; }
5093 if test "$cross_compiling" != yes; then
5094 { { ac_try="$ac_link"
5095 case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5100 $as_echo "$ac_try_echo"; } >&5
5101 (eval "$ac_link") 2>&5
5102 ac_status=$?
5103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }
5105 if { ac_try='./conftest$ac_cv_exeext'
5106 { { case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109 esac
5110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5111 $as_echo "$ac_try_echo"; } >&5
5112 (eval "$ac_try") 2>&5
5113 ac_status=$?
5114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5115 test $ac_status = 0; }; }; then
5116 cross_compiling=no
5117 else
5118 if test "$cross_compiling" = maybe; then
5119 cross_compiling=yes
5120 else
5121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5123 as_fn_error "cannot run C compiled programs.
5124 If you meant to cross compile, use \`--host'.
5125 See \`config.log' for more details." "$LINENO" 5; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5130 $as_echo "$cross_compiling" >&6; }
5132 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5133 ac_clean_files=$ac_clean_files_save
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5135 $as_echo_n "checking for suffix of object files... " >&6; }
5136 if test "${ac_cv_objext+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5143 main ()
5147 return 0;
5149 _ACEOF
5150 rm -f conftest.o conftest.obj
5151 if { { ac_try="$ac_compile"
5152 case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_compile") 2>&5
5159 ac_status=$?
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; }; then :
5162 for ac_file in conftest.o conftest.obj conftest.*; do
5163 test -f "$ac_file" || continue;
5164 case $ac_file in
5165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5166 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5167 break;;
5168 esac
5169 done
5170 else
5171 $as_echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5176 as_fn_error "cannot compute suffix of object files: cannot compile
5177 See \`config.log' for more details." "$LINENO" 5; }
5179 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5182 $as_echo "$ac_cv_objext" >&6; }
5183 OBJEXT=$ac_cv_objext
5184 ac_objext=$OBJEXT
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5186 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5187 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5194 main ()
5196 #ifndef __GNUC__
5197 choke me
5198 #endif
5201 return 0;
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 ac_compiler_gnu=yes
5206 else
5207 ac_compiler_gnu=no
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5214 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5215 if test $ac_compiler_gnu = yes; then
5216 GCC=yes
5217 else
5218 GCC=
5220 ac_test_CFLAGS=${CFLAGS+set}
5221 ac_save_CFLAGS=$CFLAGS
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5223 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5224 if test "${ac_cv_prog_cc_g+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 ac_save_c_werror_flag=$ac_c_werror_flag
5228 ac_c_werror_flag=yes
5229 ac_cv_prog_cc_g=no
5230 CFLAGS="-g"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5235 main ()
5239 return 0;
5241 _ACEOF
5242 if ac_fn_c_try_compile "$LINENO"; then :
5243 ac_cv_prog_cc_g=yes
5244 else
5245 CFLAGS=""
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5250 main ()
5254 return 0;
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5259 else
5260 ac_c_werror_flag=$ac_save_c_werror_flag
5261 CFLAGS="-g"
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5266 main ()
5270 return 0;
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 ac_cv_prog_cc_g=yes
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 ac_c_werror_flag=$ac_save_c_werror_flag
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5284 $as_echo "$ac_cv_prog_cc_g" >&6; }
5285 if test "$ac_test_CFLAGS" = set; then
5286 CFLAGS=$ac_save_CFLAGS
5287 elif test $ac_cv_prog_cc_g = yes; then
5288 if test "$GCC" = yes; then
5289 CFLAGS="-g -O2"
5290 else
5291 CFLAGS="-g"
5293 else
5294 if test "$GCC" = yes; then
5295 CFLAGS="-O2"
5296 else
5297 CFLAGS=
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5301 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5302 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 ac_cv_prog_cc_c89=no
5306 ac_save_CC=$CC
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <stdarg.h>
5310 #include <stdio.h>
5311 #include <sys/types.h>
5312 #include <sys/stat.h>
5313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5314 struct buf { int x; };
5315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5316 static char *e (p, i)
5317 char **p;
5318 int i;
5320 return p[i];
5322 static char *f (char * (*g) (char **, int), char **p, ...)
5324 char *s;
5325 va_list v;
5326 va_start (v,p);
5327 s = g (p, va_arg (v,int));
5328 va_end (v);
5329 return s;
5332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5333 function prototypes and stuff, but not '\xHH' hex character constants.
5334 These don't provoke an error unfortunately, instead are silently treated
5335 as 'x'. The following induces an error, until -std is added to get
5336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5337 array size at least. It's necessary to write '\x00'==0 to get something
5338 that's true only with -std. */
5339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5342 inside strings and character constants. */
5343 #define FOO(x) 'x'
5344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5346 int test (int i, double x);
5347 struct s1 {int (*f) (int a);};
5348 struct s2 {int (*f) (double a);};
5349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5350 int argc;
5351 char **argv;
5353 main ()
5355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5357 return 0;
5359 _ACEOF
5360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5363 CC="$ac_save_CC $ac_arg"
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_prog_cc_c89=$ac_arg
5367 rm -f core conftest.err conftest.$ac_objext
5368 test "x$ac_cv_prog_cc_c89" != "xno" && break
5369 done
5370 rm -f conftest.$ac_ext
5371 CC=$ac_save_CC
5374 # AC_CACHE_VAL
5375 case "x$ac_cv_prog_cc_c89" in
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5378 $as_echo "none needed" >&6; } ;;
5379 xno)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5381 $as_echo "unsupported" >&6; } ;;
5383 CC="$CC $ac_cv_prog_cc_c89"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5386 esac
5387 if test "x$ac_cv_prog_cc_c89" != xno; then :
5391 ac_ext=c
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396 DEPDIR="${am__leading_dot}deps"
5398 ac_config_commands="$ac_config_commands depfiles"
5401 am_make=${MAKE-make}
5402 cat > confinc << 'END'
5403 am__doit:
5404 @echo this is the am__doit target
5405 .PHONY: am__doit
5407 # If we don't find an include directive, just comment out the code.
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5409 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5410 am__include="#"
5411 am__quote=
5412 _am_result=none
5413 # First try GNU make style include.
5414 echo "include confinc" > confmf
5415 # Ignore all kinds of additional output from `make'.
5416 case `$am_make -s -f confmf 2> /dev/null` in #(
5417 *the\ am__doit\ target*)
5418 am__include=include
5419 am__quote=
5420 _am_result=GNU
5422 esac
5423 # Now try BSD make style include.
5424 if test "$am__include" = "#"; then
5425 echo '.include "confinc"' > confmf
5426 case `$am_make -s -f confmf 2> /dev/null` in #(
5427 *the\ am__doit\ target*)
5428 am__include=.include
5429 am__quote="\""
5430 _am_result=BSD
5432 esac
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5437 $as_echo "$_am_result" >&6; }
5438 rm -f confinc confmf
5440 # Check whether --enable-dependency-tracking was given.
5441 if test "${enable_dependency_tracking+set}" = set; then :
5442 enableval=$enable_dependency_tracking;
5445 if test "x$enable_dependency_tracking" != xno; then
5446 am_depcomp="$ac_aux_dir/depcomp"
5447 AMDEPBACKSLASH='\'
5449 if test "x$enable_dependency_tracking" != xno; then
5450 AMDEP_TRUE=
5451 AMDEP_FALSE='#'
5452 else
5453 AMDEP_TRUE='#'
5454 AMDEP_FALSE=
5459 depcc="$CC" am_compiler_list=
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5462 $as_echo_n "checking dependency style of $depcc... " >&6; }
5463 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5467 # We make a subdir and do the tests there. Otherwise we can end up
5468 # making bogus files that we don't know about and never remove. For
5469 # instance it was reported that on HP-UX the gcc test will end up
5470 # making a dummy file named `D' -- because `-MD' means `put the output
5471 # in D'.
5472 mkdir conftest.dir
5473 # Copy depcomp to subdir because otherwise we won't find it if we're
5474 # using a relative directory.
5475 cp "$am_depcomp" conftest.dir
5476 cd conftest.dir
5477 # We will build objects and dependencies in a subdirectory because
5478 # it helps to detect inapplicable dependency modes. For instance
5479 # both Tru64's cc and ICC support -MD to output dependencies as a
5480 # side effect of compilation, but ICC will put the dependencies in
5481 # the current directory while Tru64 will put them in the object
5482 # directory.
5483 mkdir sub
5485 am_cv_CC_dependencies_compiler_type=none
5486 if test "$am_compiler_list" = ""; then
5487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5489 am__universal=false
5490 case " $depcc " in #(
5491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5492 esac
5494 for depmode in $am_compiler_list; do
5495 # Setup a source with many dependencies, because some compilers
5496 # like to wrap large dependency lists on column 80 (with \), and
5497 # we should not choose a depcomp mode which is confused by this.
5499 # We need to recreate these files for each test, as the compiler may
5500 # overwrite some of them when testing with obscure command lines.
5501 # This happens at least with the AIX C compiler.
5502 : > sub/conftest.c
5503 for i in 1 2 3 4 5 6; do
5504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5506 # Solaris 8's {/usr,}/bin/sh.
5507 touch sub/conftst$i.h
5508 done
5509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5512 # mode. It turns out that the SunPro C++ compiler does not properly
5513 # handle `-M -o', and we need to detect this. Also, some Intel
5514 # versions had trouble with output in subdirs
5515 am__obj=sub/conftest.${OBJEXT-o}
5516 am__minus_obj="-o $am__obj"
5517 case $depmode in
5518 gcc)
5519 # This depmode causes a compiler race in universal mode.
5520 test "$am__universal" = false || continue
5522 nosideeffect)
5523 # after this tag, mechanisms are not by side-effect, so they'll
5524 # only be used when explicitly requested
5525 if test "x$enable_dependency_tracking" = xyes; then
5526 continue
5527 else
5528 break
5531 msvisualcpp | msvcmsys)
5532 # This compiler won't grok `-c -o', but also, the minuso test has
5533 # not run yet. These depmodes are late enough in the game, and
5534 # so weak that their functioning should not be impacted.
5535 am__obj=conftest.${OBJEXT-o}
5536 am__minus_obj=
5538 none) break ;;
5539 esac
5540 if depmode=$depmode \
5541 source=sub/conftest.c object=$am__obj \
5542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5544 >/dev/null 2>conftest.err &&
5545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5549 # icc doesn't choke on unknown options, it will just issue warnings
5550 # or remarks (even with -Werror). So we grep stderr for any message
5551 # that says an option was ignored or not supported.
5552 # When given -MP, icc 7.0 and 7.1 complain thusly:
5553 # icc: Command line warning: ignoring option '-M'; no argument required
5554 # The diagnosis changed in icc 8.0:
5555 # icc: Command line remark: option '-MP' not supported
5556 if (grep 'ignoring option' conftest.err ||
5557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5558 am_cv_CC_dependencies_compiler_type=$depmode
5559 break
5562 done
5564 cd ..
5565 rm -rf conftest.dir
5566 else
5567 am_cv_CC_dependencies_compiler_type=none
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5572 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5573 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5576 test "x$enable_dependency_tracking" != xno \
5577 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5578 am__fastdepCC_TRUE=
5579 am__fastdepCC_FALSE='#'
5580 else
5581 am__fastdepCC_TRUE='#'
5582 am__fastdepCC_FALSE=
5586 if test "x$CC" != xcc; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5588 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5591 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5593 set dummy $CC; ac_cc=`$as_echo "$2" |
5594 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5595 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5602 main ()
5606 return 0;
5608 _ACEOF
5609 # Make sure it works both with $CC and with simple cc.
5610 # We do the test twice because some compilers refuse to overwrite an
5611 # existing .o file with -o, though they will create one.
5612 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5613 rm -f conftest2.*
5614 if { { case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617 esac
5618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5619 $as_echo "$ac_try_echo"; } >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; } &&
5624 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5629 $as_echo "$ac_try_echo"; } >&5
5630 (eval "$ac_try") 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5633 test $ac_status = 0; };
5634 then
5635 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5636 if test "x$CC" != xcc; then
5637 # Test first that cc exists at all.
5638 if { ac_try='cc -c conftest.$ac_ext >&5'
5639 { { case "(($ac_try" in
5640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641 *) ac_try_echo=$ac_try;;
5642 esac
5643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5644 $as_echo "$ac_try_echo"; } >&5
5645 (eval "$ac_try") 2>&5
5646 ac_status=$?
5647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5648 test $ac_status = 0; }; }; then
5649 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5650 rm -f conftest2.*
5651 if { { case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654 esac
5655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5656 $as_echo "$ac_try_echo"; } >&5
5657 (eval "$ac_try") 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; } &&
5661 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5666 $as_echo "$ac_try_echo"; } >&5
5667 (eval "$ac_try") 2>&5
5668 ac_status=$?
5669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5670 test $ac_status = 0; };
5671 then
5672 # cc works too.
5674 else
5675 # cc exists but doesn't like -o.
5676 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5680 else
5681 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5683 rm -f core conftest*
5686 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5688 $as_echo "yes" >&6; }
5689 else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5693 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5697 # FIXME: we rely on the cache variable name because
5698 # there is no other way.
5699 set dummy $CC
5700 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5701 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5702 if test "$am_t" != yes; then
5703 # Losing compiler, so override with the script.
5704 # FIXME: It is wrong to rewrite CC.
5705 # But if we don't then we get into trouble of one sort or another.
5706 # A longer-term fix would be to have automake use am__CC in this case,
5707 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5708 CC="$am_aux_dir/compile $CC"
5713 if test x$GCC = xyes; then
5714 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5715 else
5716 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5719 # Initialize gnulib right after choosing the compiler.
5721 ac_ext=c
5722 ac_cpp='$CPP $CPPFLAGS'
5723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5727 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5728 # On Suns, sometimes $CPP names a directory.
5729 if test -n "$CPP" && test -d "$CPP"; then
5730 CPP=
5732 if test -z "$CPP"; then
5733 if test "${ac_cv_prog_CPP+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 # Double quotes because CPP needs to be expanded
5737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5739 ac_preproc_ok=false
5740 for ac_c_preproc_warn_flag in '' yes
5742 # Use a header file that comes with gcc, so configuring glibc
5743 # with a fresh cross-compiler works.
5744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5745 # <limits.h> exists even on freestanding compilers.
5746 # On the NeXT, cc -E runs the code through the compiler's parser,
5747 # not just through cpp. "Syntax error" is here to catch this case.
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #ifdef __STDC__
5751 # include <limits.h>
5752 #else
5753 # include <assert.h>
5754 #endif
5755 Syntax error
5756 _ACEOF
5757 if ac_fn_c_try_cpp "$LINENO"; then :
5759 else
5760 # Broken: fails on valid input.
5761 continue
5763 rm -f conftest.err conftest.$ac_ext
5765 # OK, works on sane cases. Now check whether nonexistent headers
5766 # can be detected and how.
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <ac_nonexistent.h>
5770 _ACEOF
5771 if ac_fn_c_try_cpp "$LINENO"; then :
5772 # Broken: success on invalid input.
5773 continue
5774 else
5775 # Passes both tests.
5776 ac_preproc_ok=:
5777 break
5779 rm -f conftest.err conftest.$ac_ext
5781 done
5782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5783 rm -f conftest.err conftest.$ac_ext
5784 if $ac_preproc_ok; then :
5785 break
5788 done
5789 ac_cv_prog_CPP=$CPP
5792 CPP=$ac_cv_prog_CPP
5793 else
5794 ac_cv_prog_CPP=$CPP
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5797 $as_echo "$CPP" >&6; }
5798 ac_preproc_ok=false
5799 for ac_c_preproc_warn_flag in '' yes
5801 # Use a header file that comes with gcc, so configuring glibc
5802 # with a fresh cross-compiler works.
5803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804 # <limits.h> exists even on freestanding compilers.
5805 # On the NeXT, cc -E runs the code through the compiler's parser,
5806 # not just through cpp. "Syntax error" is here to catch this case.
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #ifdef __STDC__
5810 # include <limits.h>
5811 #else
5812 # include <assert.h>
5813 #endif
5814 Syntax error
5815 _ACEOF
5816 if ac_fn_c_try_cpp "$LINENO"; then :
5818 else
5819 # Broken: fails on valid input.
5820 continue
5822 rm -f conftest.err conftest.$ac_ext
5824 # OK, works on sane cases. Now check whether nonexistent headers
5825 # can be detected and how.
5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 #include <ac_nonexistent.h>
5829 _ACEOF
5830 if ac_fn_c_try_cpp "$LINENO"; then :
5831 # Broken: success on invalid input.
5832 continue
5833 else
5834 # Passes both tests.
5835 ac_preproc_ok=:
5836 break
5838 rm -f conftest.err conftest.$ac_ext
5840 done
5841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5842 rm -f conftest.err conftest.$ac_ext
5843 if $ac_preproc_ok; then :
5845 else
5846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5848 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5849 See \`config.log' for more details." "$LINENO" 5; }
5852 ac_ext=c
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5861 if test "${ac_cv_path_GREP+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 if test -z "$GREP"; then
5865 ac_path_GREP_found=false
5866 # Loop through the user's path and test for each of PROGNAME-LIST
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_prog in grep ggrep; do
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5875 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5876 # Check for GNU ac_path_GREP and select it if it is found.
5877 # Check for GNU $ac_path_GREP
5878 case `"$ac_path_GREP" --version 2>&1` in
5879 *GNU*)
5880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5882 ac_count=0
5883 $as_echo_n 0123456789 >"conftest.in"
5884 while :
5886 cat "conftest.in" "conftest.in" >"conftest.tmp"
5887 mv "conftest.tmp" "conftest.in"
5888 cp "conftest.in" "conftest.nl"
5889 $as_echo 'GREP' >> "conftest.nl"
5890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5892 as_fn_arith $ac_count + 1 && ac_count=$as_val
5893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5894 # Best one so far, save it but keep looking for a better one
5895 ac_cv_path_GREP="$ac_path_GREP"
5896 ac_path_GREP_max=$ac_count
5898 # 10*(2^10) chars as input seems more than enough
5899 test $ac_count -gt 10 && break
5900 done
5901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5902 esac
5904 $ac_path_GREP_found && break 3
5905 done
5906 done
5907 done
5908 IFS=$as_save_IFS
5909 if test -z "$ac_cv_path_GREP"; then
5910 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5912 else
5913 ac_cv_path_GREP=$GREP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5918 $as_echo "$ac_cv_path_GREP" >&6; }
5919 GREP="$ac_cv_path_GREP"
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5923 $as_echo_n "checking for egrep... " >&6; }
5924 if test "${ac_cv_path_EGREP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5928 then ac_cv_path_EGREP="$GREP -E"
5929 else
5930 if test -z "$EGREP"; then
5931 ac_path_EGREP_found=false
5932 # Loop through the user's path and test for each of PROGNAME-LIST
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_prog in egrep; do
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5941 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5942 # Check for GNU ac_path_EGREP and select it if it is found.
5943 # Check for GNU $ac_path_EGREP
5944 case `"$ac_path_EGREP" --version 2>&1` in
5945 *GNU*)
5946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5948 ac_count=0
5949 $as_echo_n 0123456789 >"conftest.in"
5950 while :
5952 cat "conftest.in" "conftest.in" >"conftest.tmp"
5953 mv "conftest.tmp" "conftest.in"
5954 cp "conftest.in" "conftest.nl"
5955 $as_echo 'EGREP' >> "conftest.nl"
5956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5958 as_fn_arith $ac_count + 1 && ac_count=$as_val
5959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5960 # Best one so far, save it but keep looking for a better one
5961 ac_cv_path_EGREP="$ac_path_EGREP"
5962 ac_path_EGREP_max=$ac_count
5964 # 10*(2^10) chars as input seems more than enough
5965 test $ac_count -gt 10 && break
5966 done
5967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5968 esac
5970 $ac_path_EGREP_found && break 3
5971 done
5972 done
5973 done
5974 IFS=$as_save_IFS
5975 if test -z "$ac_cv_path_EGREP"; then
5976 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5978 else
5979 ac_cv_path_EGREP=$EGREP
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5985 $as_echo "$ac_cv_path_EGREP" >&6; }
5986 EGREP="$ac_cv_path_EGREP"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5992 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5993 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6000 #ifdef __ACK__
6001 Amsterdam
6002 #endif
6004 _ACEOF
6005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6006 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6007 gl_cv_c_amsterdam_compiler=yes
6008 else
6009 gl_cv_c_amsterdam_compiler=no
6011 rm -f conftest*
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6016 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6017 if test -z "$AR"; then
6018 if test $gl_cv_c_amsterdam_compiler = yes; then
6019 AR='cc -c.a'
6020 if test -z "$ARFLAGS"; then
6021 ARFLAGS='-o'
6023 else
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ar; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_AR+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$AR"; then
6033 ac_cv_prog_AR="$AR" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_AR="${ac_tool_prefix}ar"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6046 done
6047 done
6048 IFS=$as_save_IFS
6052 AR=$ac_cv_prog_AR
6053 if test -n "$AR"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6055 $as_echo "$AR" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_AR"; then
6064 ac_ct_AR=$AR
6065 # Extract the first word of "ar", so it can be a program name with args.
6066 set dummy ar; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_AR"; then
6073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_AR="ar"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6088 IFS=$as_save_IFS
6092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6093 if test -n "$ac_ct_AR"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6095 $as_echo "$ac_ct_AR" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_AR" = x; then
6102 AR="ar"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 AR=$ac_ct_AR
6112 else
6113 AR="$ac_cv_prog_AR"
6116 if test -z "$ARFLAGS"; then
6117 ARFLAGS='cru'
6120 else
6121 if test -z "$ARFLAGS"; then
6122 ARFLAGS='cru'
6127 if test -z "$RANLIB"; then
6128 if test $gl_cv_c_amsterdam_compiler = yes; then
6129 RANLIB=':'
6130 else
6131 if test -n "$ac_tool_prefix"; then
6132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -n "$RANLIB"; then
6140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6141 else
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 for as_dir in $PATH
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 break 2
6153 done
6154 done
6155 IFS=$as_save_IFS
6159 RANLIB=$ac_cv_prog_RANLIB
6160 if test -n "$RANLIB"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6162 $as_echo "$RANLIB" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6170 if test -z "$ac_cv_prog_RANLIB"; then
6171 ac_ct_RANLIB=$RANLIB
6172 # Extract the first word of "ranlib", so it can be a program name with args.
6173 set dummy ranlib; ac_word=$2
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 $as_echo_n "checking for $ac_word... " >&6; }
6176 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if test -n "$ac_ct_RANLIB"; then
6180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 ac_cv_prog_ac_ct_RANLIB="ranlib"
6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6193 done
6194 done
6195 IFS=$as_save_IFS
6199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6200 if test -n "$ac_ct_RANLIB"; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6202 $as_echo "$ac_ct_RANLIB" >&6; }
6203 else
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6208 if test "x$ac_ct_RANLIB" = x; then
6209 RANLIB=":"
6210 else
6211 case $cross_compiling:$ac_tool_warned in
6212 yes:)
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6215 ac_tool_warned=yes ;;
6216 esac
6217 RANLIB=$ac_ct_RANLIB
6219 else
6220 RANLIB="$ac_cv_prog_RANLIB"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6228 $as_echo_n "checking for ANSI C header files... " >&6; }
6229 if test "${ac_cv_header_stdc+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <stdlib.h>
6235 #include <stdarg.h>
6236 #include <string.h>
6237 #include <float.h>
6240 main ()
6244 return 0;
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"; then :
6248 ac_cv_header_stdc=yes
6249 else
6250 ac_cv_header_stdc=no
6252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254 if test $ac_cv_header_stdc = yes; then
6255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6258 #include <string.h>
6260 _ACEOF
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev/null 2>&1; then :
6264 else
6265 ac_cv_header_stdc=no
6267 rm -f conftest*
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <stdlib.h>
6277 _ACEOF
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "free" >/dev/null 2>&1; then :
6281 else
6282 ac_cv_header_stdc=no
6284 rm -f conftest*
6288 if test $ac_cv_header_stdc = yes; then
6289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6290 if test "$cross_compiling" = yes; then :
6292 else
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 #include <ctype.h>
6296 #include <stdlib.h>
6297 #if ((' ' & 0x0FF) == 0x020)
6298 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6299 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6300 #else
6301 # define ISLOWER(c) \
6302 (('a' <= (c) && (c) <= 'i') \
6303 || ('j' <= (c) && (c) <= 'r') \
6304 || ('s' <= (c) && (c) <= 'z'))
6305 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6306 #endif
6308 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6310 main ()
6312 int i;
6313 for (i = 0; i < 256; i++)
6314 if (XOR (islower (i), ISLOWER (i))
6315 || toupper (i) != TOUPPER (i))
6316 return 2;
6317 return 0;
6319 _ACEOF
6320 if ac_fn_c_try_run "$LINENO"; then :
6322 else
6323 ac_cv_header_stdc=no
6325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6326 conftest.$ac_objext conftest.beam conftest.$ac_ext
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6332 $as_echo "$ac_cv_header_stdc" >&6; }
6333 if test $ac_cv_header_stdc = yes; then
6335 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6339 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6340 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6341 inttypes.h stdint.h unistd.h
6342 do :
6343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6344 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6346 eval as_val=\$$as_ac_Header
6347 if test "x$as_val" = x""yes; then :
6348 cat >>confdefs.h <<_ACEOF
6349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6350 _ACEOF
6354 done
6360 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6361 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6362 MINIX=yes
6363 else
6364 MINIX=
6368 if test "$MINIX" = yes; then
6370 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6373 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6376 $as_echo "#define _MINIX 1" >>confdefs.h
6380 case "$host_os" in
6381 hpux*)
6383 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6386 esac
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6397 # define __EXTENSIONS__ 1
6398 $ac_includes_default
6400 main ()
6404 return 0;
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408 ac_cv_safe_to_define___extensions__=yes
6409 else
6410 ac_cv_safe_to_define___extensions__=no
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6416 test $ac_cv_safe_to_define___extensions__ = yes &&
6417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6421 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6423 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6425 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6427 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6436 # Check whether --enable-largefile was given.
6437 if test "${enable_largefile+set}" = set; then :
6438 enableval=$enable_largefile;
6441 if test "$enable_largefile" != no; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6444 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6445 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 ac_cv_sys_largefile_CC=no
6449 if test "$GCC" != yes; then
6450 ac_save_CC=$CC
6451 while :; do
6452 # IRIX 6.2 and later do not support large files by default,
6453 # so use the C compiler's -n32 option if that helps.
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 #include <sys/types.h>
6457 /* Check that off_t can represent 2**63 - 1 correctly.
6458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6459 since some C++ compilers masquerading as C compilers
6460 incorrectly reject 9223372036854775807. */
6461 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6463 && LARGE_OFF_T % 2147483647 == 1)
6464 ? 1 : -1];
6466 main ()
6470 return 0;
6472 _ACEOF
6473 if ac_fn_c_try_compile "$LINENO"; then :
6474 break
6476 rm -f core conftest.err conftest.$ac_objext
6477 CC="$CC -n32"
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 ac_cv_sys_largefile_CC=' -n32'; break
6481 rm -f core conftest.err conftest.$ac_objext
6482 break
6483 done
6484 CC=$ac_save_CC
6485 rm -f conftest.$ac_ext
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6489 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6490 if test "$ac_cv_sys_largefile_CC" != no; then
6491 CC=$CC$ac_cv_sys_largefile_CC
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6495 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6496 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 while :; do
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6503 /* Check that off_t can represent 2**63 - 1 correctly.
6504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6505 since some C++ compilers masquerading as C compilers
6506 incorrectly reject 9223372036854775807. */
6507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6509 && LARGE_OFF_T % 2147483647 == 1)
6510 ? 1 : -1];
6512 main ()
6516 return 0;
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520 ac_cv_sys_file_offset_bits=no; break
6522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #define _FILE_OFFSET_BITS 64
6526 #include <sys/types.h>
6527 /* Check that off_t can represent 2**63 - 1 correctly.
6528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6529 since some C++ compilers masquerading as C compilers
6530 incorrectly reject 9223372036854775807. */
6531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6533 && LARGE_OFF_T % 2147483647 == 1)
6534 ? 1 : -1];
6536 main ()
6540 return 0;
6542 _ACEOF
6543 if ac_fn_c_try_compile "$LINENO"; then :
6544 ac_cv_sys_file_offset_bits=64; break
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 ac_cv_sys_file_offset_bits=unknown
6548 break
6549 done
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6552 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6553 case $ac_cv_sys_file_offset_bits in #(
6554 no | unknown) ;;
6556 cat >>confdefs.h <<_ACEOF
6557 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6558 _ACEOF
6560 esac
6561 rm -rf conftest*
6562 if test $ac_cv_sys_file_offset_bits = unknown; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6564 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6565 if test "${ac_cv_sys_large_files+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 while :; do
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6571 #include <sys/types.h>
6572 /* Check that off_t can represent 2**63 - 1 correctly.
6573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6574 since some C++ compilers masquerading as C compilers
6575 incorrectly reject 9223372036854775807. */
6576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6578 && LARGE_OFF_T % 2147483647 == 1)
6579 ? 1 : -1];
6581 main ()
6585 return 0;
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 ac_cv_sys_large_files=no; break
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 #define _LARGE_FILES 1
6595 #include <sys/types.h>
6596 /* Check that off_t can represent 2**63 - 1 correctly.
6597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6598 since some C++ compilers masquerading as C compilers
6599 incorrectly reject 9223372036854775807. */
6600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6602 && LARGE_OFF_T % 2147483647 == 1)
6603 ? 1 : -1];
6605 main ()
6609 return 0;
6611 _ACEOF
6612 if ac_fn_c_try_compile "$LINENO"; then :
6613 ac_cv_sys_large_files=1; break
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 ac_cv_sys_large_files=unknown
6617 break
6618 done
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6621 $as_echo "$ac_cv_sys_large_files" >&6; }
6622 case $ac_cv_sys_large_files in #(
6623 no | unknown) ;;
6625 cat >>confdefs.h <<_ACEOF
6626 #define _LARGE_FILES $ac_cv_sys_large_files
6627 _ACEOF
6629 esac
6630 rm -rf conftest*
6636 case $ac_cv_prog_cc_stdc in #(
6637 no) :
6638 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6639 *) :
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6641 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6642 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 ac_cv_prog_cc_c99=no
6646 ac_save_CC=$CC
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 #include <stdarg.h>
6650 #include <stdbool.h>
6651 #include <stdlib.h>
6652 #include <wchar.h>
6653 #include <stdio.h>
6655 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6656 #define debug(...) fprintf (stderr, __VA_ARGS__)
6657 #define showlist(...) puts (#__VA_ARGS__)
6658 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6659 static void
6660 test_varargs_macros (void)
6662 int x = 1234;
6663 int y = 5678;
6664 debug ("Flag");
6665 debug ("X = %d\n", x);
6666 showlist (The first, second, and third items.);
6667 report (x>y, "x is %d but y is %d", x, y);
6670 // Check long long types.
6671 #define BIG64 18446744073709551615ull
6672 #define BIG32 4294967295ul
6673 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6674 #if !BIG_OK
6675 your preprocessor is broken;
6676 #endif
6677 #if BIG_OK
6678 #else
6679 your preprocessor is broken;
6680 #endif
6681 static long long int bignum = -9223372036854775807LL;
6682 static unsigned long long int ubignum = BIG64;
6684 struct incomplete_array
6686 int datasize;
6687 double data[];
6690 struct named_init {
6691 int number;
6692 const wchar_t *name;
6693 double average;
6696 typedef const char *ccp;
6698 static inline int
6699 test_restrict (ccp restrict text)
6701 // See if C++-style comments work.
6702 // Iterate through items via the restricted pointer.
6703 // Also check for declarations in for loops.
6704 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6705 continue;
6706 return 0;
6709 // Check varargs and va_copy.
6710 static void
6711 test_varargs (const char *format, ...)
6713 va_list args;
6714 va_start (args, format);
6715 va_list args_copy;
6716 va_copy (args_copy, args);
6718 const char *str;
6719 int number;
6720 float fnumber;
6722 while (*format)
6724 switch (*format++)
6726 case 's': // string
6727 str = va_arg (args_copy, const char *);
6728 break;
6729 case 'd': // int
6730 number = va_arg (args_copy, int);
6731 break;
6732 case 'f': // float
6733 fnumber = va_arg (args_copy, double);
6734 break;
6735 default:
6736 break;
6739 va_end (args_copy);
6740 va_end (args);
6744 main ()
6747 // Check bool.
6748 _Bool success = false;
6750 // Check restrict.
6751 if (test_restrict ("String literal") == 0)
6752 success = true;
6753 char *restrict newvar = "Another string";
6755 // Check varargs.
6756 test_varargs ("s, d' f .", "string", 65, 34.234);
6757 test_varargs_macros ();
6759 // Check flexible array members.
6760 struct incomplete_array *ia =
6761 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6762 ia->datasize = 10;
6763 for (int i = 0; i < ia->datasize; ++i)
6764 ia->data[i] = i * 1.234;
6766 // Check named initializers.
6767 struct named_init ni = {
6768 .number = 34,
6769 .name = L"Test wide string",
6770 .average = 543.34343,
6773 ni.number = 58;
6775 int dynamic_array[ni.number];
6776 dynamic_array[ni.number - 1] = 543;
6778 // work around unused variable warnings
6779 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6780 || dynamic_array[ni.number - 1] != 543);
6783 return 0;
6785 _ACEOF
6786 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6788 CC="$ac_save_CC $ac_arg"
6789 if ac_fn_c_try_compile "$LINENO"; then :
6790 ac_cv_prog_cc_c99=$ac_arg
6792 rm -f core conftest.err conftest.$ac_objext
6793 test "x$ac_cv_prog_cc_c99" != "xno" && break
6794 done
6795 rm -f conftest.$ac_ext
6796 CC=$ac_save_CC
6799 # AC_CACHE_VAL
6800 case "x$ac_cv_prog_cc_c99" in
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6803 $as_echo "none needed" >&6; } ;;
6804 xno)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6806 $as_echo "unsupported" >&6; } ;;
6808 CC="$CC $ac_cv_prog_cc_c99"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6810 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6811 esac
6812 if test "x$ac_cv_prog_cc_c99" != xno; then :
6813 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6814 else
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6817 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 ac_cv_prog_cc_c89=no
6821 ac_save_CC=$CC
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 #include <stdarg.h>
6825 #include <stdio.h>
6826 #include <sys/types.h>
6827 #include <sys/stat.h>
6828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6829 struct buf { int x; };
6830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6831 static char *e (p, i)
6832 char **p;
6833 int i;
6835 return p[i];
6837 static char *f (char * (*g) (char **, int), char **p, ...)
6839 char *s;
6840 va_list v;
6841 va_start (v,p);
6842 s = g (p, va_arg (v,int));
6843 va_end (v);
6844 return s;
6847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6848 function prototypes and stuff, but not '\xHH' hex character constants.
6849 These don't provoke an error unfortunately, instead are silently treated
6850 as 'x'. The following induces an error, until -std is added to get
6851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6852 array size at least. It's necessary to write '\x00'==0 to get something
6853 that's true only with -std. */
6854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6857 inside strings and character constants. */
6858 #define FOO(x) 'x'
6859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6861 int test (int i, double x);
6862 struct s1 {int (*f) (int a);};
6863 struct s2 {int (*f) (double a);};
6864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6865 int argc;
6866 char **argv;
6868 main ()
6870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6872 return 0;
6874 _ACEOF
6875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6878 CC="$ac_save_CC $ac_arg"
6879 if ac_fn_c_try_compile "$LINENO"; then :
6880 ac_cv_prog_cc_c89=$ac_arg
6882 rm -f core conftest.err conftest.$ac_objext
6883 test "x$ac_cv_prog_cc_c89" != "xno" && break
6884 done
6885 rm -f conftest.$ac_ext
6886 CC=$ac_save_CC
6889 # AC_CACHE_VAL
6890 case "x$ac_cv_prog_cc_c89" in
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6893 $as_echo "none needed" >&6; } ;;
6894 xno)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6896 $as_echo "unsupported" >&6; } ;;
6898 CC="$CC $ac_cv_prog_cc_c89"
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6901 esac
6902 if test "x$ac_cv_prog_cc_c89" != xno; then :
6903 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6904 else
6905 ac_cv_prog_cc_stdc=no
6910 esac
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6912 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6913 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6917 case $ac_cv_prog_cc_stdc in #(
6918 no) :
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6920 $as_echo "unsupported" >&6; } ;; #(
6921 '') :
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6923 $as_echo "none needed" >&6; } ;; #(
6924 *) :
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6926 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6927 esac
6931 # Code from module alloca-opt:
6932 # Code from module allocator:
6933 # Code from module careadlinkat:
6934 # Code from module clock-time:
6935 # Code from module crypto/md5:
6936 # Code from module crypto/sha1:
6937 # Code from module crypto/sha256:
6938 # Code from module crypto/sha512:
6939 # Code from module dosname:
6940 # Code from module dtoastr:
6941 # Code from module dtotimespec:
6942 # Code from module dup2:
6943 # Code from module extensions:
6945 # Code from module filemode:
6946 # Code from module getloadavg:
6947 # Code from module getopt-gnu:
6948 # Code from module getopt-posix:
6949 # Code from module gettext-h:
6950 # Code from module gettime:
6951 # Code from module gettimeofday:
6952 # Code from module ignore-value:
6953 # Code from module include_next:
6954 # Code from module intprops:
6955 # Code from module inttypes-incomplete:
6956 # Code from module largefile:
6958 # Code from module lstat:
6959 # Code from module manywarnings:
6960 # Code from module mktime:
6961 # Code from module multiarch:
6962 # Code from module nocrash:
6963 # Code from module pathmax:
6964 # Code from module pselect:
6965 # Code from module pthread_sigmask:
6966 # Code from module readlink:
6967 # Code from module signal-h:
6968 # Code from module snippet/_Noreturn:
6969 # Code from module snippet/arg-nonnull:
6970 # Code from module snippet/c++defs:
6971 # Code from module snippet/warn-on-use:
6972 # Code from module socklen:
6973 # Code from module ssize_t:
6974 # Code from module stat:
6975 # Code from module stat-time:
6976 # Code from module stdalign:
6977 # Code from module stdarg:
6981 # Code from module stdbool:
6982 # Code from module stddef:
6983 # Code from module stdint:
6984 # Code from module stdio:
6985 # Code from module stdlib:
6986 # Code from module strftime:
6987 # Code from module strtoimax:
6988 # Code from module strtoll:
6989 # Code from module strtoull:
6990 # Code from module strtoumax:
6991 # Code from module symlink:
6992 # Code from module sys_select:
6993 # Code from module sys_stat:
6994 # Code from module sys_time:
6995 # Code from module time:
6996 # Code from module time_r:
6997 # Code from module timespec:
6998 # Code from module timespec-add:
6999 # Code from module timespec-sub:
7000 # Code from module u64:
7001 # Code from module unistd:
7002 # Code from module utimens:
7003 # Code from module verify:
7004 # Code from module warnings:
7007 # Check whether --enable-gcc-warnings was given.
7008 if test "${enable_gcc_warnings+set}" = set; then :
7009 enableval=$enable_gcc_warnings; case $enableval in
7010 yes|no) ;;
7011 *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
7012 esac
7013 gl_gcc_warnings=$enableval
7014 else
7015 gl_gcc_warnings=no
7020 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
7021 # ------------------------------------------------
7022 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
7023 # Otherwise, run RUN-IF-NOT-FOUND.
7026 # When compiling with GCC, prefer -isystem to -I when including system
7027 # include files, to avoid generating useless diagnostics for the files.
7028 if test "$gl_gcc_warnings" != yes; then
7029 isystem='-I'
7030 else
7031 isystem='-isystem '
7033 # This, $nw, is the list of warnings we disable.
7036 case $with_x_toolkit in
7037 lucid | athena | motif)
7038 # Old toolkits mishandle 'const'.
7039 nw="$nw -Wwrite-strings"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
7043 $as_echo_n "checking whether C compiler handles -Werror... " >&6; }
7044 if test "${gl_cv_warn_c__Werror+set}" = set; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7048 gl_save_compiler_FLAGS="$CFLAGS"
7049 as_fn_append CFLAGS " -Werror"
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7054 main ()
7058 return 0;
7060 _ACEOF
7061 if ac_fn_c_try_compile "$LINENO"; then :
7062 gl_cv_warn_c__Werror=yes
7063 else
7064 gl_cv_warn_c__Werror=no
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 CFLAGS="$gl_save_compiler_FLAGS"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
7071 $as_echo "$gl_cv_warn_c__Werror" >&6; }
7072 if test "x$gl_cv_warn_c__Werror" = x""yes; then :
7073 as_fn_append WERROR_CFLAGS " -Werror"
7078 esac
7081 nw="$nw -Waggregate-return" # anachronistic
7082 nw="$nw -Wlong-long" # C90 is anachronistic
7083 nw="$nw -Wc++-compat" # We don't care about C++ compilers
7084 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
7085 nw="$nw -Wtraditional" # Warns on #elif which we use often
7086 nw="$nw -Wcast-qual" # Too many warnings for now
7087 nw="$nw -Wconversion" # Too many warnings for now
7088 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
7089 nw="$nw -Wsign-conversion" # Too many warnings for now
7090 nw="$nw -Woverlength-strings" # Not a problem these days
7091 nw="$nw -Wtraditional-conversion" # Too many warnings for now
7092 nw="$nw -Wpadded" # Our structs are not padded
7093 nw="$nw -Wredundant-decls" # We regularly (re)declare getenv etc.
7094 nw="$nw -Wlogical-op" # any use of fwrite provokes this
7095 nw="$nw -Wformat-nonliteral" # Emacs does this a lot
7096 nw="$nw -Wvla" # warnings in gettext.h
7097 nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__
7098 nw="$nw -Wswitch-enum" # Too many warnings for now
7099 nw="$nw -Wswitch-default" # Too many warnings for now
7100 nw="$nw -Wfloat-equal" # e.g., ftoastr.c
7101 nw="$nw -Winline" # e.g., dispnew.c's inlining of row_equal_p
7103 # Emacs doesn't care about shadowing; see
7104 # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>.
7105 nw="$nw -Wshadow"
7107 # The following lines should be removable at some point.
7108 nw="$nw -Wstack-protector"
7109 nw="$nw -Wstrict-overflow"
7110 nw="$nw -Wsuggest-attribute=const"
7111 nw="$nw -Wsuggest-attribute=pure"
7115 if test -n "$GCC"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7118 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7119 if test "${gl_cv_cc_nomfi_supported+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7123 gl_save_CFLAGS="$CFLAGS"
7124 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7129 main ()
7133 return 0;
7135 _ACEOF
7136 if ac_fn_c_try_compile "$LINENO"; then :
7137 gl_cv_cc_nomfi_supported=yes
7138 else
7139 gl_cv_cc_nomfi_supported=no
7141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142 CFLAGS="$gl_save_CFLAGS"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7146 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7148 if test "$gl_cv_cc_nomfi_supported" = yes; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7150 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7151 if test "${gl_cv_cc_nomfi_needed+set}" = set; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7155 gl_save_CFLAGS="$CFLAGS"
7156 CFLAGS="$CFLAGS -W -Werror"
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 void f (void)
7161 typedef struct { int a; int b; } s_t;
7162 s_t s1 = { 0, };
7166 main ()
7170 return 0;
7172 _ACEOF
7173 if ac_fn_c_try_compile "$LINENO"; then :
7174 gl_cv_cc_nomfi_needed=no
7175 else
7176 gl_cv_cc_nomfi_needed=yes
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 CFLAGS="$gl_save_CFLAGS"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7184 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7188 gl_manywarn_set=
7189 for gl_manywarn_item in \
7190 -Wall \
7191 -W \
7192 -Wformat-y2k \
7193 -Wformat-nonliteral \
7194 -Wformat-security \
7195 -Winit-self \
7196 -Wmissing-include-dirs \
7197 -Wswitch-default \
7198 -Wswitch-enum \
7199 -Wunused \
7200 -Wunknown-pragmas \
7201 -Wstrict-aliasing \
7202 -Wstrict-overflow \
7203 -Wsystem-headers \
7204 -Wfloat-equal \
7205 -Wtraditional \
7206 -Wtraditional-conversion \
7207 -Wdeclaration-after-statement \
7208 -Wundef \
7209 -Wshadow \
7210 -Wunsafe-loop-optimizations \
7211 -Wpointer-arith \
7212 -Wbad-function-cast \
7213 -Wc++-compat \
7214 -Wcast-qual \
7215 -Wcast-align \
7216 -Wwrite-strings \
7217 -Wconversion \
7218 -Wsign-conversion \
7219 -Wlogical-op \
7220 -Waggregate-return \
7221 -Wstrict-prototypes \
7222 -Wold-style-definition \
7223 -Wmissing-prototypes \
7224 -Wmissing-declarations \
7225 -Wmissing-noreturn \
7226 -Wmissing-format-attribute \
7227 -Wpacked \
7228 -Wpadded \
7229 -Wredundant-decls \
7230 -Wnested-externs \
7231 -Wunreachable-code \
7232 -Winline \
7233 -Winvalid-pch \
7234 -Wlong-long \
7235 -Wvla \
7236 -Wvolatile-register-var \
7237 -Wdisabled-optimization \
7238 -Wstack-protector \
7239 -Woverlength-strings \
7240 -Wbuiltin-macro-redefined \
7241 -Wmudflap \
7242 -Wpacked-bitfield-compat \
7243 -Wsync-nand \
7244 ; do
7245 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7246 done
7247 # The following are not documented in the manual but are included in
7248 # output from gcc --help=warnings.
7249 for gl_manywarn_item in \
7250 -Wattributes \
7251 -Wcoverage-mismatch \
7252 -Wunused-macros \
7253 ; do
7254 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7255 done
7256 # More warnings from gcc 4.6.2 --help=warnings.
7257 for gl_manywarn_item in \
7258 -Wabi \
7259 -Wcpp \
7260 -Wdeprecated \
7261 -Wdeprecated-declarations \
7262 -Wdiv-by-zero \
7263 -Wdouble-promotion \
7264 -Wendif-labels \
7265 -Wextra \
7266 -Wformat-contains-nul \
7267 -Wformat-extra-args \
7268 -Wformat-zero-length \
7269 -Wformat=2 \
7270 -Wmultichar \
7271 -Wnormalized=nfc \
7272 -Woverflow \
7273 -Wpointer-to-int-cast \
7274 -Wpragmas \
7275 -Wsuggest-attribute=const \
7276 -Wsuggest-attribute=noreturn \
7277 -Wsuggest-attribute=pure \
7278 -Wtrampolines \
7279 ; do
7280 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7281 done
7283 # Disable the missing-field-initializers warning if needed
7284 if test "$gl_cv_cc_nomfi_needed" = yes; then
7285 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7288 ws=$gl_manywarn_set
7291 gl_warn_set=
7292 set x $ws; shift
7293 for gl_warn_item
7295 case " $nw " in
7296 *" $gl_warn_item "*)
7299 gl_warn_set="$gl_warn_set $gl_warn_item"
7301 esac
7302 done
7303 ws=$gl_warn_set
7305 for w in $ws; do
7306 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
7308 $as_echo_n "checking whether C compiler handles $w... " >&6; }
7309 if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7313 gl_save_compiler_FLAGS="$CFLAGS"
7314 as_fn_append CFLAGS " $w"
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7319 main ()
7323 return 0;
7325 _ACEOF
7326 if ac_fn_c_try_compile "$LINENO"; then :
7327 eval "$as_gl_Warn=yes"
7328 else
7329 eval "$as_gl_Warn=no"
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7332 CFLAGS="$gl_save_compiler_FLAGS"
7335 eval ac_res=\$$as_gl_Warn
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7337 $as_echo "$ac_res" >&6; }
7338 eval as_val=\$$as_gl_Warn
7339 if test "x$as_val" = x""yes; then :
7340 as_fn_append WARN_CFLAGS " $w"
7344 done
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
7346 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
7347 if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7351 gl_save_compiler_FLAGS="$CFLAGS"
7352 as_fn_append CFLAGS " -Wno-missing-field-initializers"
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7357 main ()
7361 return 0;
7363 _ACEOF
7364 if ac_fn_c_try_compile "$LINENO"; then :
7365 gl_cv_warn_c__Wno_missing_field_initializers=yes
7366 else
7367 gl_cv_warn_c__Wno_missing_field_initializers=no
7369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370 CFLAGS="$gl_save_compiler_FLAGS"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
7374 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
7375 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then :
7376 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
7379 # We need this one
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
7381 $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; }
7382 if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7384 else
7386 gl_save_compiler_FLAGS="$CFLAGS"
7387 as_fn_append CFLAGS " -Wno-sign-compare"
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7392 main ()
7396 return 0;
7398 _ACEOF
7399 if ac_fn_c_try_compile "$LINENO"; then :
7400 gl_cv_warn_c__Wno_sign_compare=yes
7401 else
7402 gl_cv_warn_c__Wno_sign_compare=no
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 CFLAGS="$gl_save_compiler_FLAGS"
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
7409 $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; }
7410 if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then :
7411 as_fn_append WARN_CFLAGS " -Wno-sign-compare"
7414 # Too many warnings for now
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5
7416 $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; }
7417 if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7421 gl_save_compiler_FLAGS="$CFLAGS"
7422 as_fn_append CFLAGS " -Wno-type-limits"
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7427 main ()
7431 return 0;
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 gl_cv_warn_c__Wno_type_limits=yes
7436 else
7437 gl_cv_warn_c__Wno_type_limits=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 CFLAGS="$gl_save_compiler_FLAGS"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5
7444 $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; }
7445 if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then :
7446 as_fn_append WARN_CFLAGS " -Wno-type-limits"
7449 # Too many warnings for now
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5
7451 $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; }
7452 if test "${gl_cv_warn_c__Wno_switch+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7454 else
7456 gl_save_compiler_FLAGS="$CFLAGS"
7457 as_fn_append CFLAGS " -Wno-switch"
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7462 main ()
7466 return 0;
7468 _ACEOF
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 gl_cv_warn_c__Wno_switch=yes
7471 else
7472 gl_cv_warn_c__Wno_switch=no
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 CFLAGS="$gl_save_compiler_FLAGS"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5
7479 $as_echo "$gl_cv_warn_c__Wno_switch" >&6; }
7480 if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then :
7481 as_fn_append WARN_CFLAGS " -Wno-switch"
7484 # Too many warnings for now
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
7486 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
7487 if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7491 gl_save_compiler_FLAGS="$CFLAGS"
7492 as_fn_append CFLAGS " -Wno-unused-parameter"
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7497 main ()
7501 return 0;
7503 _ACEOF
7504 if ac_fn_c_try_compile "$LINENO"; then :
7505 gl_cv_warn_c__Wno_unused_parameter=yes
7506 else
7507 gl_cv_warn_c__Wno_unused_parameter=no
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 CFLAGS="$gl_save_compiler_FLAGS"
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
7514 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
7515 if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then :
7516 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
7519 # Too many warnings for now
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
7521 $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
7522 if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7526 gl_save_compiler_FLAGS="$CFLAGS"
7527 as_fn_append CFLAGS " -Wno-format-nonliteral"
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7532 main ()
7536 return 0;
7538 _ACEOF
7539 if ac_fn_c_try_compile "$LINENO"; then :
7540 gl_cv_warn_c__Wno_format_nonliteral=yes
7541 else
7542 gl_cv_warn_c__Wno_format_nonliteral=no
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 CFLAGS="$gl_save_compiler_FLAGS"
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
7549 $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
7550 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then :
7551 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
7556 # In spite of excluding -Wlogical-op above, it is enabled, as of
7557 # gcc 4.5.0 20090517.
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
7559 $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; }
7560 if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7564 gl_save_compiler_FLAGS="$CFLAGS"
7565 as_fn_append CFLAGS " -Wno-logical-op"
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567 /* end confdefs.h. */
7570 main ()
7574 return 0;
7576 _ACEOF
7577 if ac_fn_c_try_compile "$LINENO"; then :
7578 gl_cv_warn_c__Wno_logical_op=yes
7579 else
7580 gl_cv_warn_c__Wno_logical_op=no
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7583 CFLAGS="$gl_save_compiler_FLAGS"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
7587 $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; }
7588 if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then :
7589 as_fn_append WARN_CFLAGS " -Wno-logical-op"
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
7595 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
7596 if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7600 gl_save_compiler_FLAGS="$CFLAGS"
7601 as_fn_append CFLAGS " -fdiagnostics-show-option"
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7606 main ()
7610 return 0;
7612 _ACEOF
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 gl_cv_warn_c__fdiagnostics_show_option=yes
7615 else
7616 gl_cv_warn_c__fdiagnostics_show_option=no
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 CFLAGS="$gl_save_compiler_FLAGS"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
7623 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
7624 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then :
7625 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
7630 $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; }
7631 if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7635 gl_save_compiler_FLAGS="$CFLAGS"
7636 as_fn_append CFLAGS " -funit-at-a-time"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7641 main ()
7645 return 0;
7647 _ACEOF
7648 if ac_fn_c_try_compile "$LINENO"; then :
7649 gl_cv_warn_c__funit_at_a_time=yes
7650 else
7651 gl_cv_warn_c__funit_at_a_time=no
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 CFLAGS="$gl_save_compiler_FLAGS"
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
7658 $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; }
7659 if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then :
7660 as_fn_append WARN_CFLAGS " -funit-at-a-time"
7666 $as_echo "#define lint 1" >>confdefs.h
7669 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7672 $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h
7675 # We use a slightly smaller set of warning options for lib/.
7676 # Remove the following and save the result in GNULIB_WARN_CFLAGS.
7678 nw="$nw -Wunused-macros"
7681 gl_warn_set=
7682 set x $WARN_CFLAGS; shift
7683 for gl_warn_item
7685 case " $nw " in
7686 *" $gl_warn_item "*)
7689 gl_warn_set="$gl_warn_set $gl_warn_item"
7691 esac
7692 done
7693 GNULIB_WARN_CFLAGS=$gl_warn_set
7701 # Extract the first word of "install-info", so it can be a program name with args.
7702 set dummy install-info; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 case $INSTALL_INFO in
7709 [\\/]* | ?:[\\/]*)
7710 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7724 done
7725 done
7726 IFS=$as_save_IFS
7728 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7730 esac
7732 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7733 if test -n "$INSTALL_INFO"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7735 $as_echo "$INSTALL_INFO" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7742 # Extract the first word of "gzip", so it can be a program name with args.
7743 set dummy gzip; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 case $GZIP_PROG in
7750 [\\/]* | ?:[\\/]*)
7751 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7765 done
7766 done
7767 IFS=$as_save_IFS
7770 esac
7772 GZIP_PROG=$ac_cv_path_GZIP_PROG
7773 if test -n "$GZIP_PROG"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7775 $as_echo "$GZIP_PROG" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7782 # Extract the first word of "paxctl", so it can be a program name with args.
7783 set dummy paxctl; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if test "${ac_cv_path_PAXCTL+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 case $PAXCTL in
7790 [\\/]* | ?:[\\/]*)
7791 ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin
7797 IFS=$as_save_IFS
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 break 2
7805 done
7806 done
7807 IFS=$as_save_IFS
7810 esac
7812 PAXCTL=$ac_cv_path_PAXCTL
7813 if test -n "$PAXCTL"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5
7815 $as_echo "$PAXCTL" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7824 ## Need makeinfo >= 4.7 (?) to build the manuals.
7825 # Extract the first word of "makeinfo", so it can be a program name with args.
7826 set dummy makeinfo; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 case $MAKEINFO in
7833 [\\/]* | ?:[\\/]*)
7834 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7848 done
7849 done
7850 IFS=$as_save_IFS
7852 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7854 esac
7856 MAKEINFO=$ac_cv_path_MAKEINFO
7857 if test -n "$MAKEINFO"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7859 $as_echo "$MAKEINFO" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7866 if test "$MAKEINFO" != "no" && \
7867 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
7868 MAKEINFO=no
7871 ## Makeinfo is unusual. For a released Emacs, the manuals are
7872 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7873 ## therefore in the category of "special tools" not normally required, which
7874 ## configure does not have to check for (eg autoconf itself).
7875 ## In a Bazaar checkout on the other hand, the manuals are not included.
7876 ## So makeinfo is a requirement to build from Bazaar, and configure
7877 ## should test for it as it does for any other build requirement.
7878 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7879 ## with pre-built manuals, from a Bazaar checkout.
7880 HAVE_MAKEINFO=yes
7882 if test "$MAKEINFO" = "no"; then
7883 MAKEINFO=makeinfo
7884 if test "x${with_makeinfo}" = "xno"; then
7885 HAVE_MAKEINFO=no
7886 elif test ! -e $srcdir/info/emacs; then
7887 as_fn_error "You do not seem to have makeinfo >= 4.7, and your
7888 source tree does not seem to have pre-built manuals in the \`info' directory.
7889 Either install a suitable version of makeinfo, or re-run configure
7890 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7895 INFO_EXT=.info
7896 INFO_OPTS=--no-split
7901 if test x$GCC = xyes; then
7902 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7903 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7904 else
7905 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7906 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7910 late_LDFLAGS=$LDFLAGS
7911 if test x$GCC = xyes; then
7912 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7913 else
7914 LDFLAGS="$LDFLAGS -znocombreloc"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7918 $as_echo_n "checking for -znocombreloc... " >&6; }
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7923 main ()
7927 return 0;
7929 _ACEOF
7930 if ac_fn_c_try_link "$LINENO"; then :
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7932 $as_echo "yes" >&6; }
7933 else
7934 LDFLAGS=$late_LDFLAGS
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7938 rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7942 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7943 case "$opsys" in
7944 your-opsys-here) CANNOT_DUMP=yes ;;
7945 esac
7947 test "$CANNOT_DUMP" = "yes" && \
7949 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7955 UNEXEC_OBJ=unexelf.o
7956 case "$opsys" in
7957 # MSDOS uses unexcoff.o
7958 # MSWindows uses unexw32.o
7959 aix4-2)
7960 UNEXEC_OBJ=unexaix.o
7962 cygwin)
7963 UNEXEC_OBJ=unexcw.o
7965 darwin)
7966 UNEXEC_OBJ=unexmacosx.o
7968 hpux10-20 | hpux11)
7969 UNEXEC_OBJ=unexhp9k800.o
7971 sol2-10)
7972 # Use the Solaris dldump() function, called from unexsol.c, to dump
7973 # emacs, instead of the generic ELF dump code found in unexelf.c.
7974 # The resulting binary has a complete symbol table, and is better
7975 # for debugging and other observability tools (debuggers, pstack, etc).
7977 # If you encounter a problem using dldump(), please consider sending
7978 # a message to the OpenSolaris tools-linking mailing list:
7979 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7981 # It is likely that dldump() works with older Solaris too, but this has
7982 # not been tested, so for now this change is for Solaris 10 or newer.
7983 UNEXEC_OBJ=unexsol.o
7985 esac
7987 LD_SWITCH_SYSTEM=
7988 case "$opsys" in
7989 freebsd)
7990 ## Let `ld' find image libs and similar things in /usr/local/lib.
7991 ## The system compiler, GCC, has apparently been modified to not
7992 ## look there, contrary to what a stock GCC would do.
7993 ### It's not our place to do this. See bug#10313#17.
7994 ### LD_SWITCH_SYSTEM=-L/usr/local/lib
7998 gnu-linux)
7999 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
8000 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
8003 netbsd)
8004 ### It's not our place to do this. See bug#10313#17.
8005 ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
8009 openbsd)
8010 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
8011 ## otherwise Emacs dumps core on elf systems.
8012 LD_SWITCH_SYSTEM="-Z"
8014 esac
8017 ac_link="$ac_link $LD_SWITCH_SYSTEM"
8019 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH,
8020 ## which has not been defined yet. When this was handled with cpp,
8021 ## it was expanded to null when configure sourced the s/*.h file.
8022 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
8023 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
8024 ## (or somesuch), but because it is supposed to go at the _front_
8025 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
8026 ## Compare with the gnu-linux case below, which added to the end
8027 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
8028 ## LD_SWITCH_SYSTEM_TEMACS.
8029 case "$opsys" in
8030 netbsd|openbsd)
8031 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;;
8032 esac
8035 C_SWITCH_MACHINE=
8036 case $canonical in
8037 alpha*)
8038 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
8039 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
8043 if test "$ac_cv_have_decl___ELF__" = "yes"; then
8044 ## With ELF, make sure that all common symbols get allocated to in the
8045 ## data section. Otherwise, the dump of temacs may miss variables in
8046 ## the shared library that have been initialized. For example, with
8047 ## GNU libc, __malloc_initialized would normally be resolved to the
8048 ## shared library's .bss section, which is fatal.
8049 if test "x$GCC" = "xyes"; then
8050 C_SWITCH_MACHINE="-fno-common"
8051 else
8052 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
8054 else
8055 UNEXEC_OBJ=unexalpha.o
8058 esac
8063 C_SWITCH_SYSTEM=
8064 ## Some programs in src produce warnings saying certain subprograms
8065 ## are too complex and need a MAXMEM value greater than 2000 for
8066 ## additional optimization. --nils@exp-math.uni-essen.de
8067 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
8068 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
8069 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
8070 ## It is redundant in glibc2, since we define _GNU_SOURCE.
8074 LIBS_SYSTEM=
8075 case "$opsys" in
8076 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
8077 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
8079 freebsd) LIBS_SYSTEM="-lutil" ;;
8081 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
8083 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
8085 ## Motif needs -lgen.
8086 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
8087 esac
8091 ### Make sure subsequent tests use flags consistent with the build flags.
8093 if test x"${OVERRIDE_CPPFLAGS}" != x; then
8094 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
8095 else
8096 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
8099 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
8101 # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them.
8105 LIB_MATH=-lm
8106 LIB_STANDARD=
8107 START_FILES=
8108 SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'`
8110 case $opsys in
8111 cygwin )
8112 LIB_MATH=
8113 START_FILES='pre-crt0.o'
8115 darwin )
8116 ## Adding -lm confuses the dynamic linker, so omit it.
8117 LIB_MATH=
8118 START_FILES='pre-crt0.o'
8120 freebsd )
8121 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8122 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8123 SYSTEM_TYPE=berkeley-unix
8125 gnu-linux | gnu-kfreebsd )
8126 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
8127 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
8129 hpux10-20 | hpux11 )
8130 LIB_STANDARD=-lc
8131 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
8133 netbsd | openbsd )
8134 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
8135 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
8136 SYSTEM_TYPE=berkeley-unix
8139 sol2* | unixware )
8140 SYSTEM_TYPE=usg-unix-v
8143 esac
8148 cat >>confdefs.h <<_ACEOF
8149 #define SYSTEM_TYPE "$SYSTEM_TYPE"
8150 _ACEOF
8153 crt_files=
8155 for file in x $LIB_STANDARD $START_FILES; do
8156 case "$file" in
8157 *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;;
8158 esac
8159 done
8161 if test "x$crt_files" != x; then
8163 ## If user specified a crt-dir, use that unconditionally.
8164 crt_gcc=no
8166 if test "X$CRT_DIR" = "X"; then
8168 CRT_DIR=/usr/lib # default
8170 case "$canonical" in
8171 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
8172 ## On x86-64 and s390x GNU/Linux distributions, the standard library
8173 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
8174 ## For anything else (eg /usr/lib32), it is up the user to specify
8175 ## the location (bug#5655).
8176 ## Test for crtn.o, not just the directory, because sometimes the
8177 ## directory exists but does not have the relevant files (bug#1287).
8178 ## FIXME better to test for binary compatibility somehow.
8179 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
8182 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
8183 esac
8185 case "$opsys" in
8186 hpux10-20) CRT_DIR=/lib ;;
8187 esac
8189 test "x${GCC}" = xyes && crt_gcc=yes
8191 fi # CRT_DIR = ""
8193 crt_missing=
8195 for file in $crt_files; do
8197 ## If we're using gcc, try to determine it automatically by asking
8198 ## gcc. [If this doesn't work, CRT_DIR will remain at the
8199 ## system-dependent default from above.]
8200 if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then
8202 crt_file=`$CC --print-file-name=$file 2>/dev/null`
8203 case "$crt_file" in
8204 */*)
8205 CRT_DIR=`$as_dirname -- "$crt_file" ||
8206 $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8207 X"$crt_file" : 'X\(//\)[^/]' \| \
8208 X"$crt_file" : 'X\(//\)$' \| \
8209 X"$crt_file" : 'X\(/\)' \| . 2>/dev/null ||
8210 $as_echo X"$crt_file" |
8211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8212 s//\1/
8215 /^X\(\/\/\)[^/].*/{
8216 s//\1/
8219 /^X\(\/\/\)$/{
8220 s//\1/
8223 /^X\(\/\).*/{
8224 s//\1/
8227 s/.*/./; q'`
8229 esac
8232 crt_gcc=no
8234 test -e $CRT_DIR/$file || crt_missing="$crt_missing $file"
8235 done # $crt_files
8237 test "x$crt_missing" = x || \
8238 as_fn_error "Required file(s) not found:$crt_missing
8239 Try using the --with-crt-dir option." "$LINENO" 5
8241 fi # crt_files != ""
8245 case $opsys in
8246 netbsd | openbsd )
8247 if test -f $CRT_DIR/crti.o; then
8249 test -f $CRT_DIR/crtn.o || \
8250 as_fn_error "Required file not found: crtn.o" "$LINENO" 5
8252 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
8253 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
8256 esac
8259 # Configure gnulib before invoking PKG_CHECK_MODULES, as the latter might
8260 # for example add -lrt to RSVG_LIBS, which would then cause gnulib to
8261 # incorrectly conclude that -lrt is not needed to link clock_gettime.
8273 LIBC_FATAL_STDERR_=1
8274 export LIBC_FATAL_STDERR_
8276 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8277 # for constant arguments. Useless!
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8279 $as_echo_n "checking for working alloca.h... " >&6; }
8280 if test "${ac_cv_working_alloca_h+set}" = set; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 #include <alloca.h>
8287 main ()
8289 char *p = (char *) alloca (2 * sizeof (int));
8290 if (p) return 0;
8292 return 0;
8294 _ACEOF
8295 if ac_fn_c_try_link "$LINENO"; then :
8296 ac_cv_working_alloca_h=yes
8297 else
8298 ac_cv_working_alloca_h=no
8300 rm -f core conftest.err conftest.$ac_objext \
8301 conftest$ac_exeext conftest.$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8304 $as_echo "$ac_cv_working_alloca_h" >&6; }
8305 if test $ac_cv_working_alloca_h = yes; then
8307 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8312 $as_echo_n "checking for alloca... " >&6; }
8313 if test "${ac_cv_func_alloca_works+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 #ifdef __GNUC__
8319 # define alloca __builtin_alloca
8320 #else
8321 # ifdef _MSC_VER
8322 # include <malloc.h>
8323 # define alloca _alloca
8324 # else
8325 # ifdef HAVE_ALLOCA_H
8326 # include <alloca.h>
8327 # else
8328 # ifdef _AIX
8329 #pragma alloca
8330 # else
8331 # ifndef alloca /* predefined by HP cc +Olibcalls */
8332 char *alloca ();
8333 # endif
8334 # endif
8335 # endif
8336 # endif
8337 #endif
8340 main ()
8342 char *p = (char *) alloca (1);
8343 if (p) return 0;
8345 return 0;
8347 _ACEOF
8348 if ac_fn_c_try_link "$LINENO"; then :
8349 ac_cv_func_alloca_works=yes
8350 else
8351 ac_cv_func_alloca_works=no
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8357 $as_echo "$ac_cv_func_alloca_works" >&6; }
8359 if test $ac_cv_func_alloca_works = yes; then
8361 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8363 else
8364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8365 # that cause trouble. Some versions do not even contain alloca or
8366 # contain a buggy version. If you still want to use their alloca,
8367 # use ar to extract alloca.o from them instead of compiling alloca.c.
8373 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8375 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
8379 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
8380 if test "${ac_cv_os_cray+set}" = set; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 #if defined CRAY && ! defined CRAY2
8386 webecray
8387 #else
8388 wenotbecray
8389 #endif
8391 _ACEOF
8392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8393 $EGREP "webecray" >/dev/null 2>&1; then :
8394 ac_cv_os_cray=yes
8395 else
8396 ac_cv_os_cray=no
8398 rm -f conftest*
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8402 $as_echo "$ac_cv_os_cray" >&6; }
8403 if test $ac_cv_os_cray = yes; then
8404 for ac_func in _getb67 GETB67 getb67; do
8405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8407 eval as_val=\$$as_ac_var
8408 if test "x$as_val" = x""yes; then :
8410 cat >>confdefs.h <<_ACEOF
8411 #define CRAY_STACKSEG_END $ac_func
8412 _ACEOF
8414 break
8417 done
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8421 $as_echo_n "checking stack direction for C alloca... " >&6; }
8422 if test "${ac_cv_c_stack_direction+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 if test "$cross_compiling" = yes; then :
8426 ac_cv_c_stack_direction=0
8427 else
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 $ac_includes_default
8432 find_stack_direction (int *addr, int depth)
8434 int dir, dummy = 0;
8435 if (! addr)
8436 addr = &dummy;
8437 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8438 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8439 return dir + dummy;
8443 main (int argc, char **argv)
8445 return find_stack_direction (0, argc + !argv + 20) < 0;
8447 _ACEOF
8448 if ac_fn_c_try_run "$LINENO"; then :
8449 ac_cv_c_stack_direction=1
8450 else
8451 ac_cv_c_stack_direction=-1
8453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8454 conftest.$ac_objext conftest.beam conftest.$ac_ext
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8459 $as_echo "$ac_cv_c_stack_direction" >&6; }
8460 cat >>confdefs.h <<_ACEOF
8461 #define STACK_DIRECTION $ac_cv_c_stack_direction
8462 _ACEOF
8470 for ac_func in $ac_func_list
8471 do :
8472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8474 eval as_val=\$$as_ac_var
8475 if test "x$as_val" = x""yes; then :
8476 cat >>confdefs.h <<_ACEOF
8477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8478 _ACEOF
8481 done
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8487 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8488 if test "${ac_cv_c_bigendian+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 ac_cv_c_bigendian=unknown
8492 # See if we're dealing with a universal compiler.
8493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 #ifndef __APPLE_CC__
8496 not a universal capable compiler
8497 #endif
8498 typedef int dummy;
8500 _ACEOF
8501 if ac_fn_c_try_compile "$LINENO"; then :
8503 # Check for potential -arch flags. It is not universal unless
8504 # there are at least two -arch flags with different values.
8505 ac_arch=
8506 ac_prev=
8507 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8508 if test -n "$ac_prev"; then
8509 case $ac_word in
8510 i?86 | x86_64 | ppc | ppc64)
8511 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8512 ac_arch=$ac_word
8513 else
8514 ac_cv_c_bigendian=universal
8515 break
8518 esac
8519 ac_prev=
8520 elif test "x$ac_word" = "x-arch"; then
8521 ac_prev=arch
8523 done
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 if test $ac_cv_c_bigendian = unknown; then
8527 # See if sys/param.h defines the BYTE_ORDER macro.
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 #include <sys/types.h>
8531 #include <sys/param.h>
8534 main ()
8536 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8537 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8538 && LITTLE_ENDIAN)
8539 bogus endian macros
8540 #endif
8543 return 0;
8545 _ACEOF
8546 if ac_fn_c_try_compile "$LINENO"; then :
8547 # It does; now see whether it defined to BIG_ENDIAN or not.
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550 #include <sys/types.h>
8551 #include <sys/param.h>
8554 main ()
8556 #if BYTE_ORDER != BIG_ENDIAN
8557 not big endian
8558 #endif
8561 return 0;
8563 _ACEOF
8564 if ac_fn_c_try_compile "$LINENO"; then :
8565 ac_cv_c_bigendian=yes
8566 else
8567 ac_cv_c_bigendian=no
8569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8573 if test $ac_cv_c_bigendian = unknown; then
8574 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #include <limits.h>
8580 main ()
8582 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8583 bogus endian macros
8584 #endif
8587 return 0;
8589 _ACEOF
8590 if ac_fn_c_try_compile "$LINENO"; then :
8591 # It does; now see whether it defined to _BIG_ENDIAN or not.
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8594 #include <limits.h>
8597 main ()
8599 #ifndef _BIG_ENDIAN
8600 not big endian
8601 #endif
8604 return 0;
8606 _ACEOF
8607 if ac_fn_c_try_compile "$LINENO"; then :
8608 ac_cv_c_bigendian=yes
8609 else
8610 ac_cv_c_bigendian=no
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 if test $ac_cv_c_bigendian = unknown; then
8617 # Compile a test program.
8618 if test "$cross_compiling" = yes; then :
8619 # Try to guess by grepping values from an object file.
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 short int ascii_mm[] =
8623 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8624 short int ascii_ii[] =
8625 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8626 int use_ascii (int i) {
8627 return ascii_mm[i] + ascii_ii[i];
8629 short int ebcdic_ii[] =
8630 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8631 short int ebcdic_mm[] =
8632 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8633 int use_ebcdic (int i) {
8634 return ebcdic_mm[i] + ebcdic_ii[i];
8636 extern int foo;
8639 main ()
8641 return use_ascii (foo) == use_ebcdic (foo);
8643 return 0;
8645 _ACEOF
8646 if ac_fn_c_try_compile "$LINENO"; then :
8647 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8648 ac_cv_c_bigendian=yes
8650 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8651 if test "$ac_cv_c_bigendian" = unknown; then
8652 ac_cv_c_bigendian=no
8653 else
8654 # finding both strings is unlikely to happen, but who knows?
8655 ac_cv_c_bigendian=unknown
8659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 else
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8663 $ac_includes_default
8665 main ()
8668 /* Are we little or big endian? From Harbison&Steele. */
8669 union
8671 long int l;
8672 char c[sizeof (long int)];
8673 } u;
8674 u.l = 1;
8675 return u.c[sizeof (long int) - 1] == 1;
8678 return 0;
8680 _ACEOF
8681 if ac_fn_c_try_run "$LINENO"; then :
8682 ac_cv_c_bigendian=no
8683 else
8684 ac_cv_c_bigendian=yes
8686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8687 conftest.$ac_objext conftest.beam conftest.$ac_ext
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8693 $as_echo "$ac_cv_c_bigendian" >&6; }
8694 case $ac_cv_c_bigendian in #(
8695 yes)
8696 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8697 ;; #(
8699 ;; #(
8700 universal)
8702 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8704 ;; #(
8706 as_fn_error "unknown endianness
8707 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8708 esac
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8712 $as_echo_n "checking for inline... " >&6; }
8713 if test "${ac_cv_c_inline+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 ac_cv_c_inline=no
8717 for ac_kw in inline __inline__ __inline; do
8718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8720 #ifndef __cplusplus
8721 typedef int foo_t;
8722 static $ac_kw foo_t static_foo () {return 0; }
8723 $ac_kw foo_t foo () {return 0; }
8724 #endif
8726 _ACEOF
8727 if ac_fn_c_try_compile "$LINENO"; then :
8728 ac_cv_c_inline=$ac_kw
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 test "$ac_cv_c_inline" != no && break
8732 done
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8736 $as_echo "$ac_cv_c_inline" >&6; }
8738 case $ac_cv_c_inline in
8739 inline | yes) ;;
8741 case $ac_cv_c_inline in
8742 no) ac_val=;;
8743 *) ac_val=$ac_cv_c_inline;;
8744 esac
8745 cat >>confdefs.h <<_ACEOF
8746 #ifndef __cplusplus
8747 #define inline $ac_val
8748 #endif
8749 _ACEOF
8751 esac
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
8755 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
8756 if test "${gl_cv_func_c99_strtold+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 /* On HP-UX before 11.23, strtold returns a struct instead of
8762 long double. Reject implementations like that, by requiring
8763 compatibility with the C99 prototype. */
8764 #include <stdlib.h>
8765 static long double (*p) (char const *, char **) = strtold;
8766 static long double
8767 test (char const *nptr, char **endptr)
8769 long double r;
8770 r = strtold (nptr, endptr);
8771 return r;
8774 main ()
8776 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
8778 return 0;
8780 _ACEOF
8781 if ac_fn_c_try_link "$LINENO"; then :
8782 gl_cv_func_c99_strtold=yes
8783 else
8784 gl_cv_func_c99_strtold=no
8786 rm -f core conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
8790 $as_echo "$gl_cv_func_c99_strtold" >&6; }
8791 if test $gl_cv_func_c99_strtold = yes; then
8793 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
8798 GNULIB_CHDIR=0;
8799 GNULIB_CHOWN=0;
8800 GNULIB_CLOSE=0;
8801 GNULIB_DUP=0;
8802 GNULIB_DUP2=0;
8803 GNULIB_DUP3=0;
8804 GNULIB_ENVIRON=0;
8805 GNULIB_EUIDACCESS=0;
8806 GNULIB_FACCESSAT=0;
8807 GNULIB_FCHDIR=0;
8808 GNULIB_FCHOWNAT=0;
8809 GNULIB_FDATASYNC=0;
8810 GNULIB_FSYNC=0;
8811 GNULIB_FTRUNCATE=0;
8812 GNULIB_GETCWD=0;
8813 GNULIB_GETDOMAINNAME=0;
8814 GNULIB_GETDTABLESIZE=0;
8815 GNULIB_GETGROUPS=0;
8816 GNULIB_GETHOSTNAME=0;
8817 GNULIB_GETLOGIN=0;
8818 GNULIB_GETLOGIN_R=0;
8819 GNULIB_GETPAGESIZE=0;
8820 GNULIB_GETUSERSHELL=0;
8821 GNULIB_GROUP_MEMBER=0;
8822 GNULIB_ISATTY=0;
8823 GNULIB_LCHOWN=0;
8824 GNULIB_LINK=0;
8825 GNULIB_LINKAT=0;
8826 GNULIB_LSEEK=0;
8827 GNULIB_PIPE=0;
8828 GNULIB_PIPE2=0;
8829 GNULIB_PREAD=0;
8830 GNULIB_PWRITE=0;
8831 GNULIB_READ=0;
8832 GNULIB_READLINK=0;
8833 GNULIB_READLINKAT=0;
8834 GNULIB_RMDIR=0;
8835 GNULIB_SETHOSTNAME=0;
8836 GNULIB_SLEEP=0;
8837 GNULIB_SYMLINK=0;
8838 GNULIB_SYMLINKAT=0;
8839 GNULIB_TTYNAME_R=0;
8840 GNULIB_UNISTD_H_NONBLOCKING=0;
8841 GNULIB_UNISTD_H_SIGPIPE=0;
8842 GNULIB_UNLINK=0;
8843 GNULIB_UNLINKAT=0;
8844 GNULIB_USLEEP=0;
8845 GNULIB_WRITE=0;
8846 HAVE_CHOWN=1;
8847 HAVE_DUP2=1;
8848 HAVE_DUP3=1;
8849 HAVE_EUIDACCESS=1;
8850 HAVE_FACCESSAT=1;
8851 HAVE_FCHDIR=1;
8852 HAVE_FCHOWNAT=1;
8853 HAVE_FDATASYNC=1;
8854 HAVE_FSYNC=1;
8855 HAVE_FTRUNCATE=1;
8856 HAVE_GETDTABLESIZE=1;
8857 HAVE_GETGROUPS=1;
8858 HAVE_GETHOSTNAME=1;
8859 HAVE_GETLOGIN=1;
8860 HAVE_GETPAGESIZE=1;
8861 HAVE_GROUP_MEMBER=1;
8862 HAVE_LCHOWN=1;
8863 HAVE_LINK=1;
8864 HAVE_LINKAT=1;
8865 HAVE_PIPE=1;
8866 HAVE_PIPE2=1;
8867 HAVE_PREAD=1;
8868 HAVE_PWRITE=1;
8869 HAVE_READLINK=1;
8870 HAVE_READLINKAT=1;
8871 HAVE_SETHOSTNAME=1;
8872 HAVE_SLEEP=1;
8873 HAVE_SYMLINK=1;
8874 HAVE_SYMLINKAT=1;
8875 HAVE_UNLINKAT=1;
8876 HAVE_USLEEP=1;
8877 HAVE_DECL_ENVIRON=1;
8878 HAVE_DECL_FCHDIR=1;
8879 HAVE_DECL_FDATASYNC=1;
8880 HAVE_DECL_GETDOMAINNAME=1;
8881 HAVE_DECL_GETLOGIN_R=1;
8882 HAVE_DECL_GETPAGESIZE=1;
8883 HAVE_DECL_GETUSERSHELL=1;
8884 HAVE_DECL_SETHOSTNAME=1;
8885 HAVE_DECL_TTYNAME_R=1;
8886 HAVE_OS_H=0;
8887 HAVE_SYS_PARAM_H=0;
8888 REPLACE_CHOWN=0;
8889 REPLACE_CLOSE=0;
8890 REPLACE_DUP=0;
8891 REPLACE_DUP2=0;
8892 REPLACE_FCHOWNAT=0;
8893 REPLACE_FTRUNCATE=0;
8894 REPLACE_GETCWD=0;
8895 REPLACE_GETDOMAINNAME=0;
8896 REPLACE_GETLOGIN_R=0;
8897 REPLACE_GETGROUPS=0;
8898 REPLACE_GETPAGESIZE=0;
8899 REPLACE_ISATTY=0;
8900 REPLACE_LCHOWN=0;
8901 REPLACE_LINK=0;
8902 REPLACE_LINKAT=0;
8903 REPLACE_LSEEK=0;
8904 REPLACE_PREAD=0;
8905 REPLACE_PWRITE=0;
8906 REPLACE_READ=0;
8907 REPLACE_READLINK=0;
8908 REPLACE_RMDIR=0;
8909 REPLACE_SLEEP=0;
8910 REPLACE_SYMLINK=0;
8911 REPLACE_TTYNAME_R=0;
8912 REPLACE_UNLINK=0;
8913 REPLACE_UNLINKAT=0;
8914 REPLACE_USLEEP=0;
8915 REPLACE_WRITE=0;
8916 UNISTD_H_HAVE_WINSOCK2_H=0;
8917 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
8921 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
8922 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8928 #include <sys/types.h>
8929 #include <sys/stat.h>
8931 main ()
8933 struct stat s; s.st_dm_mode;
8935 return 0;
8937 _ACEOF
8938 if ac_fn_c_try_compile "$LINENO"; then :
8939 ac_cv_struct_st_dm_mode=yes
8940 else
8941 ac_cv_struct_st_dm_mode=no
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
8946 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
8948 if test $ac_cv_struct_st_dm_mode = yes; then
8950 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
8955 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
8956 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
8957 ac_have_decl=1
8958 else
8959 ac_have_decl=0
8962 cat >>confdefs.h <<_ACEOF
8963 #define HAVE_DECL_STRMODE $ac_have_decl
8964 _ACEOF
8967 GNULIB__EXIT=0;
8968 GNULIB_ATOLL=0;
8969 GNULIB_CALLOC_POSIX=0;
8970 GNULIB_CANONICALIZE_FILE_NAME=0;
8971 GNULIB_GETLOADAVG=0;
8972 GNULIB_GETSUBOPT=0;
8973 GNULIB_GRANTPT=0;
8974 GNULIB_MALLOC_POSIX=0;
8975 GNULIB_MBTOWC=0;
8976 GNULIB_MKDTEMP=0;
8977 GNULIB_MKOSTEMP=0;
8978 GNULIB_MKOSTEMPS=0;
8979 GNULIB_MKSTEMP=0;
8980 GNULIB_MKSTEMPS=0;
8981 GNULIB_POSIX_OPENPT=0;
8982 GNULIB_PTSNAME=0;
8983 GNULIB_PTSNAME_R=0;
8984 GNULIB_PUTENV=0;
8985 GNULIB_RANDOM=0;
8986 GNULIB_RANDOM_R=0;
8987 GNULIB_REALLOC_POSIX=0;
8988 GNULIB_REALPATH=0;
8989 GNULIB_RPMATCH=0;
8990 GNULIB_SETENV=0;
8991 GNULIB_STRTOD=0;
8992 GNULIB_STRTOLL=0;
8993 GNULIB_STRTOULL=0;
8994 GNULIB_SYSTEM_POSIX=0;
8995 GNULIB_UNLOCKPT=0;
8996 GNULIB_UNSETENV=0;
8997 GNULIB_WCTOMB=0;
8998 HAVE__EXIT=1;
8999 HAVE_ATOLL=1;
9000 HAVE_CANONICALIZE_FILE_NAME=1;
9001 HAVE_DECL_GETLOADAVG=1;
9002 HAVE_GETSUBOPT=1;
9003 HAVE_GRANTPT=1;
9004 HAVE_MKDTEMP=1;
9005 HAVE_MKOSTEMP=1;
9006 HAVE_MKOSTEMPS=1;
9007 HAVE_MKSTEMP=1;
9008 HAVE_MKSTEMPS=1;
9009 HAVE_POSIX_OPENPT=1;
9010 HAVE_PTSNAME=1;
9011 HAVE_PTSNAME_R=1;
9012 HAVE_RANDOM=1;
9013 HAVE_RANDOM_H=1;
9014 HAVE_RANDOM_R=1;
9015 HAVE_REALPATH=1;
9016 HAVE_RPMATCH=1;
9017 HAVE_SETENV=1;
9018 HAVE_DECL_SETENV=1;
9019 HAVE_STRTOD=1;
9020 HAVE_STRTOLL=1;
9021 HAVE_STRTOULL=1;
9022 HAVE_STRUCT_RANDOM_DATA=1;
9023 HAVE_SYS_LOADAVG_H=0;
9024 HAVE_UNLOCKPT=1;
9025 HAVE_DECL_UNSETENV=1;
9026 REPLACE_CALLOC=0;
9027 REPLACE_CANONICALIZE_FILE_NAME=0;
9028 REPLACE_MALLOC=0;
9029 REPLACE_MBTOWC=0;
9030 REPLACE_MKSTEMP=0;
9031 REPLACE_PTSNAME_R=0;
9032 REPLACE_PUTENV=0;
9033 REPLACE_RANDOM_R=0;
9034 REPLACE_REALLOC=0;
9035 REPLACE_REALPATH=0;
9036 REPLACE_SETENV=0;
9037 REPLACE_STRTOD=0;
9038 REPLACE_UNSETENV=0;
9039 REPLACE_WCTOMB=0;
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
9044 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
9045 if test "${gl_cv_have_include_next+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 rm -rf conftestd1a conftestd1b conftestd2
9049 mkdir conftestd1a conftestd1b conftestd2
9050 cat <<EOF > conftestd1a/conftest.h
9051 #define DEFINED_IN_CONFTESTD1
9052 #include_next <conftest.h>
9053 #ifdef DEFINED_IN_CONFTESTD2
9054 int foo;
9055 #else
9056 #error "include_next doesn't work"
9057 #endif
9059 cat <<EOF > conftestd1b/conftest.h
9060 #define DEFINED_IN_CONFTESTD1
9061 #include <stdio.h>
9062 #include_next <conftest.h>
9063 #ifdef DEFINED_IN_CONFTESTD2
9064 int foo;
9065 #else
9066 #error "include_next doesn't work"
9067 #endif
9069 cat <<EOF > conftestd2/conftest.h
9070 #ifndef DEFINED_IN_CONFTESTD1
9071 #error "include_next test doesn't work"
9072 #endif
9073 #define DEFINED_IN_CONFTESTD2
9075 gl_save_CPPFLAGS="$CPPFLAGS"
9076 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079 #include <conftest.h>
9080 _ACEOF
9081 if ac_fn_c_try_compile "$LINENO"; then :
9082 gl_cv_have_include_next=yes
9083 else
9084 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <conftest.h>
9088 _ACEOF
9089 if ac_fn_c_try_compile "$LINENO"; then :
9090 gl_cv_have_include_next=buggy
9091 else
9092 gl_cv_have_include_next=no
9094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 CPPFLAGS="$gl_save_CPPFLAGS"
9099 rm -rf conftestd1a conftestd1b conftestd2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
9103 $as_echo "$gl_cv_have_include_next" >&6; }
9104 PRAGMA_SYSTEM_HEADER=
9105 if test $gl_cv_have_include_next = yes; then
9106 INCLUDE_NEXT=include_next
9107 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9108 if test -n "$GCC"; then
9109 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
9111 else
9112 if test $gl_cv_have_include_next = buggy; then
9113 INCLUDE_NEXT=include
9114 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
9115 else
9116 INCLUDE_NEXT=include
9117 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
9124 $as_echo_n "checking whether system header files limit the line length... " >&6; }
9125 if test "${gl_cv_pragma_columns+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9131 #ifdef __TANDEM
9132 choke me
9133 #endif
9135 _ACEOF
9136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9137 $EGREP "choke me" >/dev/null 2>&1; then :
9138 gl_cv_pragma_columns=yes
9139 else
9140 gl_cv_pragma_columns=no
9142 rm -f conftest*
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
9147 $as_echo "$gl_cv_pragma_columns" >&6; }
9148 if test $gl_cv_pragma_columns = yes; then
9149 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
9150 else
9151 PRAGMA_COLUMNS=
9158 for ac_header in $ac_header_list
9159 do :
9160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9161 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9163 eval as_val=\$$as_ac_Header
9164 if test "x$as_val" = x""yes; then :
9165 cat >>confdefs.h <<_ACEOF
9166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9167 _ACEOF
9171 done
9188 if test $gl_cv_have_include_next = yes; then
9189 gl_cv_next_getopt_h='<'getopt.h'>'
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
9192 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
9193 if test "${gl_cv_next_getopt_h+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9197 if test $ac_cv_header_getopt_h = yes; then
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 #include <getopt.h>
9204 _ACEOF
9205 case "$host_os" in
9206 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9207 *) gl_absname_cpp="$ac_cpp" ;;
9208 esac
9210 case "$host_os" in
9211 mingw*)
9212 gl_dirsep_regex='[/\\]'
9215 gl_dirsep_regex='\/'
9217 esac
9218 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9220 gl_header_literal_regex=`echo 'getopt.h' \
9221 | sed -e "$gl_make_literal_regex_sed"`
9222 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9223 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9224 s|^/[^/]|//&|
9228 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9229 sed -n "$gl_absolute_header_sed"`'"'
9230 else
9231 gl_cv_next_getopt_h='<'getopt.h'>'
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
9237 $as_echo "$gl_cv_next_getopt_h" >&6; }
9239 NEXT_GETOPT_H=$gl_cv_next_getopt_h
9241 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9243 gl_next_as_first_directive='<'getopt.h'>'
9244 else
9245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9246 gl_next_as_first_directive=$gl_cv_next_getopt_h
9248 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
9253 if test $ac_cv_header_getopt_h = yes; then
9254 HAVE_GETOPT_H=1
9255 else
9256 HAVE_GETOPT_H=0
9260 gl_replace_getopt=
9262 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9263 for ac_header in getopt.h
9264 do :
9265 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9266 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9267 cat >>confdefs.h <<_ACEOF
9268 #define HAVE_GETOPT_H 1
9269 _ACEOF
9271 else
9272 gl_replace_getopt=yes
9275 done
9279 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9280 for ac_func in getopt_long_only
9281 do :
9282 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
9283 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
9284 cat >>confdefs.h <<_ACEOF
9285 #define HAVE_GETOPT_LONG_ONLY 1
9286 _ACEOF
9288 else
9289 gl_replace_getopt=yes
9291 done
9295 if test -z "$gl_replace_getopt"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
9297 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
9298 if test "${gl_cv_func_getopt_posix+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 #include <unistd.h>
9306 main ()
9308 int *p = &optreset; return optreset;
9310 return 0;
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 gl_optind_min=1
9315 else
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #include <getopt.h>
9320 main ()
9322 return !getopt_clip;
9324 return 0;
9326 _ACEOF
9327 if ac_fn_c_try_compile "$LINENO"; then :
9328 gl_optind_min=1
9329 else
9330 gl_optind_min=0
9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334 rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9337 gl_save_CPPFLAGS=$CPPFLAGS
9338 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
9339 if test "$cross_compiling" = yes; then :
9340 case "$host_os" in
9341 mingw*) gl_cv_func_getopt_posix="guessing no";;
9342 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
9343 *) gl_cv_func_getopt_posix="guessing yes";;
9344 esac
9346 else
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9350 #include <unistd.h>
9351 #include <stdlib.h>
9352 #include <string.h>
9355 main ()
9358 static char program[] = "program";
9359 static char a[] = "-a";
9360 static char foo[] = "foo";
9361 static char bar[] = "bar";
9362 char *argv[] = { program, a, foo, bar, NULL };
9363 int c;
9365 optind = OPTIND_MIN;
9366 opterr = 0;
9368 c = getopt (4, argv, "ab");
9369 if (!(c == 'a'))
9370 return 1;
9371 c = getopt (4, argv, "ab");
9372 if (!(c == -1))
9373 return 2;
9374 if (!(optind == 2))
9375 return 3;
9377 /* Some internal state exists at this point. */
9379 static char program[] = "program";
9380 static char donald[] = "donald";
9381 static char p[] = "-p";
9382 static char billy[] = "billy";
9383 static char duck[] = "duck";
9384 static char a[] = "-a";
9385 static char bar[] = "bar";
9386 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
9387 int c;
9389 optind = OPTIND_MIN;
9390 opterr = 0;
9392 c = getopt (7, argv, "+abp:q:");
9393 if (!(c == -1))
9394 return 4;
9395 if (!(strcmp (argv[0], "program") == 0))
9396 return 5;
9397 if (!(strcmp (argv[1], "donald") == 0))
9398 return 6;
9399 if (!(strcmp (argv[2], "-p") == 0))
9400 return 7;
9401 if (!(strcmp (argv[3], "billy") == 0))
9402 return 8;
9403 if (!(strcmp (argv[4], "duck") == 0))
9404 return 9;
9405 if (!(strcmp (argv[5], "-a") == 0))
9406 return 10;
9407 if (!(strcmp (argv[6], "bar") == 0))
9408 return 11;
9409 if (!(optind == 1))
9410 return 12;
9412 /* Detect Mac OS X 10.5, AIX 7.1 bug. */
9414 static char program[] = "program";
9415 static char ab[] = "-ab";
9416 char *argv[3] = { program, ab, NULL };
9417 optind = OPTIND_MIN;
9418 opterr = 0;
9419 if (getopt (2, argv, "ab:") != 'a')
9420 return 13;
9421 if (getopt (2, argv, "ab:") != '?')
9422 return 14;
9423 if (optopt != 'b')
9424 return 15;
9425 if (optind != 2)
9426 return 16;
9429 return 0;
9432 _ACEOF
9433 if ac_fn_c_try_run "$LINENO"; then :
9434 gl_cv_func_getopt_posix=yes
9435 else
9436 gl_cv_func_getopt_posix=no
9438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9439 conftest.$ac_objext conftest.beam conftest.$ac_ext
9442 CPPFLAGS=$gl_save_CPPFLAGS
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
9446 $as_echo "$gl_cv_func_getopt_posix" >&6; }
9447 case "$gl_cv_func_getopt_posix" in
9448 *no) gl_replace_getopt=yes ;;
9449 esac
9452 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
9454 $as_echo_n "checking for working GNU getopt function... " >&6; }
9455 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
9459 # optstring is necessary for programs like m4 that have POSIX-mandated
9460 # semantics for supporting options interspersed with files.
9461 # Also, since getopt_long is a GNU extension, we require optind=0.
9462 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
9463 # so take care to revert to the correct (non-)export state.
9464 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
9465 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
9466 xx) gl_had_POSIXLY_CORRECT=exported ;;
9467 x) gl_had_POSIXLY_CORRECT=yes ;;
9468 *) gl_had_POSIXLY_CORRECT= ;;
9469 esac
9470 POSIXLY_CORRECT=1
9471 export POSIXLY_CORRECT
9472 if test "$cross_compiling" = yes; then :
9473 case $host_os:$ac_cv_have_decl_optreset in
9474 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
9475 *:yes) gl_cv_func_getopt_gnu=no;;
9476 *) gl_cv_func_getopt_gnu=yes;;
9477 esac
9479 else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 #include <getopt.h>
9483 #include <stddef.h>
9484 #include <string.h>
9486 #include <stdlib.h>
9487 #if defined __MACH__ && defined __APPLE__
9488 /* Avoid a crash on Mac OS X. */
9489 #include <mach/mach.h>
9490 #include <mach/mach_error.h>
9491 #include <mach/thread_status.h>
9492 #include <mach/exception.h>
9493 #include <mach/task.h>
9494 #include <pthread.h>
9495 /* The exception port on which our thread listens. */
9496 static mach_port_t our_exception_port;
9497 /* The main function of the thread listening for exceptions of type
9498 EXC_BAD_ACCESS. */
9499 static void *
9500 mach_exception_thread (void *arg)
9502 /* Buffer for a message to be received. */
9503 struct {
9504 mach_msg_header_t head;
9505 mach_msg_body_t msgh_body;
9506 char data[1024];
9507 } msg;
9508 mach_msg_return_t retval;
9509 /* Wait for a message on the exception port. */
9510 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9511 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9512 if (retval != MACH_MSG_SUCCESS)
9513 abort ();
9514 exit (1);
9516 static void
9517 nocrash_init (void)
9519 mach_port_t self = mach_task_self ();
9520 /* Allocate a port on which the thread shall listen for exceptions. */
9521 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9522 == KERN_SUCCESS) {
9523 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9524 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9525 MACH_MSG_TYPE_MAKE_SEND)
9526 == KERN_SUCCESS) {
9527 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9528 for us. */
9529 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9530 /* Create the thread listening on the exception port. */
9531 pthread_attr_t attr;
9532 pthread_t thread;
9533 if (pthread_attr_init (&attr) == 0
9534 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9535 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9536 pthread_attr_destroy (&attr);
9537 /* Replace the exception port info for these exceptions with our own.
9538 Note that we replace the exception port for the entire task, not only
9539 for a particular thread. This has the effect that when our exception
9540 port gets the message, the thread specific exception port has already
9541 been asked, and we don't need to bother about it.
9542 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9543 task_set_exception_ports (self, mask, our_exception_port,
9544 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9549 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9550 /* Avoid a crash on native Windows. */
9551 #define WIN32_LEAN_AND_MEAN
9552 #include <windows.h>
9553 #include <winerror.h>
9554 static LONG WINAPI
9555 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9557 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9559 case EXCEPTION_ACCESS_VIOLATION:
9560 case EXCEPTION_IN_PAGE_ERROR:
9561 case EXCEPTION_STACK_OVERFLOW:
9562 case EXCEPTION_GUARD_PAGE:
9563 case EXCEPTION_PRIV_INSTRUCTION:
9564 case EXCEPTION_ILLEGAL_INSTRUCTION:
9565 case EXCEPTION_DATATYPE_MISALIGNMENT:
9566 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9567 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9568 exit (1);
9570 return EXCEPTION_CONTINUE_SEARCH;
9572 static void
9573 nocrash_init (void)
9575 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9577 #else
9578 /* Avoid a crash on POSIX systems. */
9579 #include <signal.h>
9580 /* A POSIX signal handler. */
9581 static void
9582 exception_handler (int sig)
9584 exit (1);
9586 static void
9587 nocrash_init (void)
9589 #ifdef SIGSEGV
9590 signal (SIGSEGV, exception_handler);
9591 #endif
9592 #ifdef SIGBUS
9593 signal (SIGBUS, exception_handler);
9594 #endif
9596 #endif
9600 main ()
9603 int result = 0;
9605 nocrash_init();
9607 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
9608 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
9609 OSF/1 5.1, Solaris 10. */
9611 static char conftest[] = "conftest";
9612 static char plus[] = "-+";
9613 char *argv[3] = { conftest, plus, NULL };
9614 opterr = 0;
9615 if (getopt (2, argv, "+a") != '?')
9616 result |= 1;
9618 /* This code succeeds on glibc 2.8, mingw,
9619 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
9620 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
9622 static char program[] = "program";
9623 static char p[] = "-p";
9624 static char foo[] = "foo";
9625 static char bar[] = "bar";
9626 char *argv[] = { program, p, foo, bar, NULL };
9628 optind = 1;
9629 if (getopt (4, argv, "p::") != 'p')
9630 result |= 2;
9631 else if (optarg != NULL)
9632 result |= 4;
9633 else if (getopt (4, argv, "p::") != -1)
9634 result |= 6;
9635 else if (optind != 2)
9636 result |= 8;
9638 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
9640 static char program[] = "program";
9641 static char foo[] = "foo";
9642 static char p[] = "-p";
9643 char *argv[] = { program, foo, p, NULL };
9644 optind = 0;
9645 if (getopt (3, argv, "-p") != 1)
9646 result |= 16;
9647 else if (getopt (3, argv, "-p") != 'p')
9648 result |= 16;
9650 /* This code fails on glibc 2.11. */
9652 static char program[] = "program";
9653 static char b[] = "-b";
9654 static char a[] = "-a";
9655 char *argv[] = { program, b, a, NULL };
9656 optind = opterr = 0;
9657 if (getopt (3, argv, "+:a:b") != 'b')
9658 result |= 32;
9659 else if (getopt (3, argv, "+:a:b") != ':')
9660 result |= 32;
9662 /* This code dumps core on glibc 2.14. */
9664 static char program[] = "program";
9665 static char w[] = "-W";
9666 static char dummy[] = "dummy";
9667 char *argv[] = { program, w, dummy, NULL };
9668 optind = opterr = 1;
9669 if (getopt (3, argv, "W;") != 'W')
9670 result |= 64;
9672 return result;
9675 return 0;
9677 _ACEOF
9678 if ac_fn_c_try_run "$LINENO"; then :
9679 gl_cv_func_getopt_gnu=yes
9680 else
9681 gl_cv_func_getopt_gnu=no
9683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9684 conftest.$ac_objext conftest.beam conftest.$ac_ext
9687 case $gl_had_POSIXLY_CORRECT in
9688 exported) ;;
9689 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
9690 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
9691 esac
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
9695 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
9696 if test "$gl_cv_func_getopt_gnu" = "no"; then
9697 gl_replace_getopt=yes
9698 else
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
9700 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
9701 if test "${gl_cv_func_getopt_long_gnu+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 if test "$cross_compiling" = yes; then :
9705 case "$host_os" in
9706 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
9707 *) gl_cv_func_getopt_long_gnu="guessing yes";;
9708 esac
9710 else
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include <getopt.h>
9714 #include <stddef.h>
9715 #include <string.h>
9718 main ()
9720 static const struct option long_options[] =
9722 { "xtremely-",no_argument, NULL, 1003 },
9723 { "xtra", no_argument, NULL, 1001 },
9724 { "xtreme", no_argument, NULL, 1002 },
9725 { "xtremely", no_argument, NULL, 1003 },
9726 { NULL, 0, NULL, 0 }
9728 /* This code fails on OpenBSD 5.0. */
9730 static char program[] = "program";
9731 static char xtremel[] = "--xtremel";
9732 char *argv[] = { program, xtremel, NULL };
9733 int option_index;
9734 optind = 1; opterr = 0;
9735 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
9736 return 1;
9738 return 0;
9741 return 0;
9743 _ACEOF
9744 if ac_fn_c_try_run "$LINENO"; then :
9745 gl_cv_func_getopt_long_gnu=yes
9746 else
9747 gl_cv_func_getopt_long_gnu=no
9749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9750 conftest.$ac_objext conftest.beam conftest.$ac_ext
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
9756 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
9757 case "$gl_cv_func_getopt_long_gnu" in
9758 *yes) ;;
9759 *) gl_replace_getopt=yes ;;
9760 esac
9768 REPLACE_GETOPT=0
9771 if test -n "$gl_replace_getopt"; then :
9773 REPLACE_GETOPT=1
9778 if test $REPLACE_GETOPT = 1; then
9780 GETOPT_H=getopt.h
9782 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
9788 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
9789 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
9790 ac_have_decl=1
9791 else
9792 ac_have_decl=0
9795 cat >>confdefs.h <<_ACEOF
9796 #define HAVE_DECL_GETENV $ac_have_decl
9797 _ACEOF
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9807 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9808 if test "${ac_cv_c_restrict+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 ac_cv_c_restrict=no
9812 # The order here caters to the fact that C++ does not require restrict.
9813 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 typedef int * int_ptr;
9817 int foo (int_ptr $ac_kw ip) {
9818 return ip[0];
9821 main ()
9823 int s[1];
9824 int * $ac_kw t = s;
9825 t[0] = 0;
9826 return foo(t)
9828 return 0;
9830 _ACEOF
9831 if ac_fn_c_try_compile "$LINENO"; then :
9832 ac_cv_c_restrict=$ac_kw
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 test "$ac_cv_c_restrict" != no && break
9836 done
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9840 $as_echo "$ac_cv_c_restrict" >&6; }
9842 case $ac_cv_c_restrict in
9843 restrict) ;;
9844 no) $as_echo "#define restrict /**/" >>confdefs.h
9846 *) cat >>confdefs.h <<_ACEOF
9847 #define restrict $ac_cv_c_restrict
9848 _ACEOF
9850 esac
9853 GNULIB_GETTIMEOFDAY=0;
9854 HAVE_GETTIMEOFDAY=1;
9855 HAVE_STRUCT_TIMEVAL=1;
9856 HAVE_SYS_TIME_H=1;
9857 REPLACE_GETTIMEOFDAY=0;
9858 REPLACE_STRUCT_TIMEVAL=0;
9877 if test $gl_cv_have_include_next = yes; then
9878 gl_cv_next_sys_time_h='<'sys/time.h'>'
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
9881 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
9882 if test "${gl_cv_next_sys_time_h+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9886 if test $ac_cv_header_sys_time_h = yes; then
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 #include <sys/time.h>
9893 _ACEOF
9894 case "$host_os" in
9895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9896 *) gl_absname_cpp="$ac_cpp" ;;
9897 esac
9899 case "$host_os" in
9900 mingw*)
9901 gl_dirsep_regex='[/\\]'
9904 gl_dirsep_regex='\/'
9906 esac
9907 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9909 gl_header_literal_regex=`echo 'sys/time.h' \
9910 | sed -e "$gl_make_literal_regex_sed"`
9911 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9912 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9913 s|^/[^/]|//&|
9917 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9918 sed -n "$gl_absolute_header_sed"`'"'
9919 else
9920 gl_cv_next_sys_time_h='<'sys/time.h'>'
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
9926 $as_echo "$gl_cv_next_sys_time_h" >&6; }
9928 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
9930 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9932 gl_next_as_first_directive='<'sys/time.h'>'
9933 else
9934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9935 gl_next_as_first_directive=$gl_cv_next_sys_time_h
9937 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
9943 if test $ac_cv_header_sys_time_h != yes; then
9944 HAVE_SYS_TIME_H=0
9951 if test $ac_cv_header_sys_socket_h != yes; then
9952 for ac_header in winsock2.h
9953 do :
9954 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9955 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_WINSOCK2_H 1
9958 _ACEOF
9962 done
9965 if test "$ac_cv_header_winsock2_h" = yes; then
9966 HAVE_WINSOCK2_H=1
9967 UNISTD_H_HAVE_WINSOCK2_H=1
9968 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9969 else
9970 HAVE_WINSOCK2_H=0
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
9975 $as_echo_n "checking for struct timeval... " >&6; }
9976 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9978 else
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9981 #if HAVE_SYS_TIME_H
9982 #include <sys/time.h>
9983 #endif
9984 #include <time.h>
9985 #if HAVE_WINSOCK2_H
9986 # include <winsock2.h>
9987 #endif
9990 main ()
9992 static struct timeval x; x.tv_sec = x.tv_usec;
9994 return 0;
9996 _ACEOF
9997 if ac_fn_c_try_compile "$LINENO"; then :
9998 gl_cv_sys_struct_timeval=yes
9999 else
10000 gl_cv_sys_struct_timeval=no
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
10006 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
10007 if test $gl_cv_sys_struct_timeval != yes; then
10008 HAVE_STRUCT_TIMEVAL=0
10009 else
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct struct timeval.tv_sec member" >&5
10011 $as_echo_n "checking for correct struct timeval.tv_sec member... " >&6; }
10012 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 #if HAVE_SYS_TIME_H
10018 #include <sys/time.h>
10019 #endif
10020 #include <time.h>
10021 #if HAVE_WINSOCK2_H
10022 # include <winsock2.h>
10023 #endif
10026 main ()
10028 static struct timeval x;
10029 typedef int verify_tv_sec_type[sizeof (x.tv_sec) == sizeof (time_t) ? 1 : -1];
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_compile "$LINENO"; then :
10036 gl_cv_sys_struct_timeval_tv_sec=yes
10037 else
10038 gl_cv_sys_struct_timeval_tv_sec=no
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
10044 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
10045 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
10046 REPLACE_STRUCT_TIMEVAL=1
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10057 $as_echo_n "checking for unsigned long long int... " >&6; }
10058 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 ac_cv_type_unsigned_long_long_int=yes
10062 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10066 /* For now, do not test the preprocessor; as of 2007 there are too many
10067 implementations with broken preprocessors. Perhaps this can
10068 be revisited in 2012. In the meantime, code should not expect
10069 #if to work with literals wider than 32 bits. */
10070 /* Test literals. */
10071 long long int ll = 9223372036854775807ll;
10072 long long int nll = -9223372036854775807LL;
10073 unsigned long long int ull = 18446744073709551615ULL;
10074 /* Test constant expressions. */
10075 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10076 ? 1 : -1)];
10077 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10078 ? 1 : -1)];
10079 int i = 63;
10081 main ()
10083 /* Test availability of runtime routines for shift and division. */
10084 long long int llmax = 9223372036854775807ll;
10085 unsigned long long int ullmax = 18446744073709551615ull;
10086 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10087 | (llmax / ll) | (llmax % ll)
10088 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10089 | (ullmax / ull) | (ullmax % ull));
10091 return 0;
10094 _ACEOF
10095 if ac_fn_c_try_link "$LINENO"; then :
10097 else
10098 ac_cv_type_unsigned_long_long_int=no
10100 rm -f core conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10105 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10106 if test $ac_cv_type_unsigned_long_long_int = yes; then
10108 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10115 $as_echo_n "checking for long long int... " >&6; }
10116 if test "${ac_cv_type_long_long_int+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 ac_cv_type_long_long_int=yes
10120 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10121 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10122 if test $ac_cv_type_long_long_int = yes; then
10123 if test "$cross_compiling" = yes; then :
10125 else
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 #include <limits.h>
10129 #ifndef LLONG_MAX
10130 # define HALF \
10131 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10132 # define LLONG_MAX (HALF - 1 + HALF)
10133 #endif
10135 main ()
10137 long long int n = 1;
10138 int i;
10139 for (i = 0; ; i++)
10141 long long int m = n << i;
10142 if (m >> i != n)
10143 return 1;
10144 if (LLONG_MAX / 2 < m)
10145 break;
10147 return 0;
10149 return 0;
10151 _ACEOF
10152 if ac_fn_c_try_run "$LINENO"; then :
10154 else
10155 ac_cv_type_long_long_int=no
10157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10158 conftest.$ac_objext conftest.beam conftest.$ac_ext
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10165 $as_echo "$ac_cv_type_long_long_int" >&6; }
10166 if test $ac_cv_type_long_long_int = yes; then
10168 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10177 gl_cv_c_multiarch=no
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #ifndef __APPLE_CC__
10181 not a universal capable compiler
10182 #endif
10183 typedef int dummy;
10185 _ACEOF
10186 if ac_fn_c_try_compile "$LINENO"; then :
10188 arch=
10189 prev=
10190 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10191 if test -n "$prev"; then
10192 case $word in
10193 i?86 | x86_64 | ppc | ppc64)
10194 if test -z "$arch" || test "$arch" = "$word"; then
10195 arch="$word"
10196 else
10197 gl_cv_c_multiarch=yes
10200 esac
10201 prev=
10202 else
10203 if test "x$word" = "x-arch"; then
10204 prev=arch
10207 done
10210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 if test $gl_cv_c_multiarch = yes; then
10212 APPLE_UNIVERSAL_BUILD=1
10213 else
10214 APPLE_UNIVERSAL_BUILD=0
10221 if test $ac_cv_type_long_long_int = yes; then
10222 HAVE_LONG_LONG_INT=1
10223 else
10224 HAVE_LONG_LONG_INT=0
10228 if test $ac_cv_type_unsigned_long_long_int = yes; then
10229 HAVE_UNSIGNED_LONG_LONG_INT=1
10230 else
10231 HAVE_UNSIGNED_LONG_LONG_INT=0
10236 if test $ac_cv_header_wchar_h = yes; then
10237 HAVE_WCHAR_H=1
10238 else
10239 HAVE_WCHAR_H=0
10243 if test $ac_cv_header_inttypes_h = yes; then
10244 HAVE_INTTYPES_H=1
10245 else
10246 HAVE_INTTYPES_H=0
10250 if test $ac_cv_header_sys_types_h = yes; then
10251 HAVE_SYS_TYPES_H=1
10252 else
10253 HAVE_SYS_TYPES_H=0
10266 if test $gl_cv_have_include_next = yes; then
10267 gl_cv_next_stdint_h='<'stdint.h'>'
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10270 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
10271 if test "${gl_cv_next_stdint_h+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10275 if test $ac_cv_header_stdint_h = yes; then
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 #include <stdint.h>
10282 _ACEOF
10283 case "$host_os" in
10284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10285 *) gl_absname_cpp="$ac_cpp" ;;
10286 esac
10288 case "$host_os" in
10289 mingw*)
10290 gl_dirsep_regex='[/\\]'
10293 gl_dirsep_regex='\/'
10295 esac
10296 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10298 gl_header_literal_regex=`echo 'stdint.h' \
10299 | sed -e "$gl_make_literal_regex_sed"`
10300 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10302 s|^/[^/]|//&|
10306 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10307 sed -n "$gl_absolute_header_sed"`'"'
10308 else
10309 gl_cv_next_stdint_h='<'stdint.h'>'
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10315 $as_echo "$gl_cv_next_stdint_h" >&6; }
10317 NEXT_STDINT_H=$gl_cv_next_stdint_h
10319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10321 gl_next_as_first_directive='<'stdint.h'>'
10322 else
10323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10324 gl_next_as_first_directive=$gl_cv_next_stdint_h
10326 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
10331 if test $ac_cv_header_stdint_h = yes; then
10332 HAVE_STDINT_H=1
10333 else
10334 HAVE_STDINT_H=0
10338 if test $ac_cv_header_stdint_h = yes; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10340 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10341 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 gl_cv_header_working_stdint_h=no
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10349 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10350 #include <stdint.h>
10351 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10352 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10353 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10354 #endif
10357 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10358 included before <wchar.h>. */
10359 #include <stddef.h>
10360 #include <signal.h>
10361 #if HAVE_WCHAR_H
10362 # include <stdio.h>
10363 # include <time.h>
10364 # include <wchar.h>
10365 #endif
10368 #ifdef INT8_MAX
10369 int8_t a1 = INT8_MAX;
10370 int8_t a1min = INT8_MIN;
10371 #endif
10372 #ifdef INT16_MAX
10373 int16_t a2 = INT16_MAX;
10374 int16_t a2min = INT16_MIN;
10375 #endif
10376 #ifdef INT32_MAX
10377 int32_t a3 = INT32_MAX;
10378 int32_t a3min = INT32_MIN;
10379 #endif
10380 #ifdef INT64_MAX
10381 int64_t a4 = INT64_MAX;
10382 int64_t a4min = INT64_MIN;
10383 #endif
10384 #ifdef UINT8_MAX
10385 uint8_t b1 = UINT8_MAX;
10386 #else
10387 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10388 #endif
10389 #ifdef UINT16_MAX
10390 uint16_t b2 = UINT16_MAX;
10391 #endif
10392 #ifdef UINT32_MAX
10393 uint32_t b3 = UINT32_MAX;
10394 #endif
10395 #ifdef UINT64_MAX
10396 uint64_t b4 = UINT64_MAX;
10397 #endif
10398 int_least8_t c1 = INT8_C (0x7f);
10399 int_least8_t c1max = INT_LEAST8_MAX;
10400 int_least8_t c1min = INT_LEAST8_MIN;
10401 int_least16_t c2 = INT16_C (0x7fff);
10402 int_least16_t c2max = INT_LEAST16_MAX;
10403 int_least16_t c2min = INT_LEAST16_MIN;
10404 int_least32_t c3 = INT32_C (0x7fffffff);
10405 int_least32_t c3max = INT_LEAST32_MAX;
10406 int_least32_t c3min = INT_LEAST32_MIN;
10407 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10408 int_least64_t c4max = INT_LEAST64_MAX;
10409 int_least64_t c4min = INT_LEAST64_MIN;
10410 uint_least8_t d1 = UINT8_C (0xff);
10411 uint_least8_t d1max = UINT_LEAST8_MAX;
10412 uint_least16_t d2 = UINT16_C (0xffff);
10413 uint_least16_t d2max = UINT_LEAST16_MAX;
10414 uint_least32_t d3 = UINT32_C (0xffffffff);
10415 uint_least32_t d3max = UINT_LEAST32_MAX;
10416 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10417 uint_least64_t d4max = UINT_LEAST64_MAX;
10418 int_fast8_t e1 = INT_FAST8_MAX;
10419 int_fast8_t e1min = INT_FAST8_MIN;
10420 int_fast16_t e2 = INT_FAST16_MAX;
10421 int_fast16_t e2min = INT_FAST16_MIN;
10422 int_fast32_t e3 = INT_FAST32_MAX;
10423 int_fast32_t e3min = INT_FAST32_MIN;
10424 int_fast64_t e4 = INT_FAST64_MAX;
10425 int_fast64_t e4min = INT_FAST64_MIN;
10426 uint_fast8_t f1 = UINT_FAST8_MAX;
10427 uint_fast16_t f2 = UINT_FAST16_MAX;
10428 uint_fast32_t f3 = UINT_FAST32_MAX;
10429 uint_fast64_t f4 = UINT_FAST64_MAX;
10430 #ifdef INTPTR_MAX
10431 intptr_t g = INTPTR_MAX;
10432 intptr_t gmin = INTPTR_MIN;
10433 #endif
10434 #ifdef UINTPTR_MAX
10435 uintptr_t h = UINTPTR_MAX;
10436 #endif
10437 intmax_t i = INTMAX_MAX;
10438 uintmax_t j = UINTMAX_MAX;
10440 #include <limits.h> /* for CHAR_BIT */
10441 #define TYPE_MINIMUM(t) \
10442 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10443 #define TYPE_MAXIMUM(t) \
10444 ((t) ((t) 0 < (t) -1 \
10445 ? (t) -1 \
10446 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10447 struct s {
10448 int check_PTRDIFF:
10449 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10450 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10451 ? 1 : -1;
10452 /* Detect bug in FreeBSD 6.0 / ia64. */
10453 int check_SIG_ATOMIC:
10454 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10455 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10456 ? 1 : -1;
10457 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10458 int check_WCHAR:
10459 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10460 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10461 ? 1 : -1;
10462 /* Detect bug in mingw. */
10463 int check_WINT:
10464 WINT_MIN == TYPE_MINIMUM (wint_t)
10465 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10466 ? 1 : -1;
10468 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10469 int check_UINT8_C:
10470 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10471 int check_UINT16_C:
10472 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10474 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10475 #ifdef UINT8_MAX
10476 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10477 #endif
10478 #ifdef UINT16_MAX
10479 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10480 #endif
10481 #ifdef UINT32_MAX
10482 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10483 #endif
10484 #ifdef UINT64_MAX
10485 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10486 #endif
10487 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10488 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10489 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10490 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10491 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10492 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10493 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10494 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10495 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10496 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10497 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10501 main ()
10505 return 0;
10507 _ACEOF
10508 if ac_fn_c_try_compile "$LINENO"; then :
10509 if test "$cross_compiling" = yes; then :
10510 gl_cv_header_working_stdint_h=yes
10512 else
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10517 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10518 #include <stdint.h>
10521 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10522 included before <wchar.h>. */
10523 #include <stddef.h>
10524 #include <signal.h>
10525 #if HAVE_WCHAR_H
10526 # include <stdio.h>
10527 # include <time.h>
10528 # include <wchar.h>
10529 #endif
10532 #include <stdio.h>
10533 #include <string.h>
10534 #define MVAL(macro) MVAL1(macro)
10535 #define MVAL1(expression) #expression
10536 static const char *macro_values[] =
10538 #ifdef INT8_MAX
10539 MVAL (INT8_MAX),
10540 #endif
10541 #ifdef INT16_MAX
10542 MVAL (INT16_MAX),
10543 #endif
10544 #ifdef INT32_MAX
10545 MVAL (INT32_MAX),
10546 #endif
10547 #ifdef INT64_MAX
10548 MVAL (INT64_MAX),
10549 #endif
10550 #ifdef UINT8_MAX
10551 MVAL (UINT8_MAX),
10552 #endif
10553 #ifdef UINT16_MAX
10554 MVAL (UINT16_MAX),
10555 #endif
10556 #ifdef UINT32_MAX
10557 MVAL (UINT32_MAX),
10558 #endif
10559 #ifdef UINT64_MAX
10560 MVAL (UINT64_MAX),
10561 #endif
10562 NULL
10566 main ()
10569 const char **mv;
10570 for (mv = macro_values; *mv != NULL; mv++)
10572 const char *value = *mv;
10573 /* Test whether it looks like a cast expression. */
10574 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10575 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10576 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10577 || strncmp (value, "((int)"/*)*/, 6) == 0
10578 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10579 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10580 return mv - macro_values + 1;
10582 return 0;
10585 return 0;
10587 _ACEOF
10588 if ac_fn_c_try_run "$LINENO"; then :
10589 gl_cv_header_working_stdint_h=yes
10591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10592 conftest.$ac_objext conftest.beam conftest.$ac_ext
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
10601 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10603 if test "$gl_cv_header_working_stdint_h" = yes; then
10604 STDINT_H=
10605 else
10606 for ac_header in sys/inttypes.h sys/bitypes.h
10607 do :
10608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10609 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10610 eval as_val=\$$as_ac_Header
10611 if test "x$as_val" = x""yes; then :
10612 cat >>confdefs.h <<_ACEOF
10613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10614 _ACEOF
10618 done
10620 if test $ac_cv_header_sys_inttypes_h = yes; then
10621 HAVE_SYS_INTTYPES_H=1
10622 else
10623 HAVE_SYS_INTTYPES_H=0
10626 if test $ac_cv_header_sys_bitypes_h = yes; then
10627 HAVE_SYS_BITYPES_H=1
10628 else
10629 HAVE_SYS_BITYPES_H=0
10635 if test $APPLE_UNIVERSAL_BUILD = 0; then
10638 for gltype in ptrdiff_t size_t ; do
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10640 $as_echo_n "checking for bit size of $gltype... " >&6; }
10641 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10645 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10646 included before <wchar.h>. */
10647 #include <stddef.h>
10648 #include <signal.h>
10649 #if HAVE_WCHAR_H
10650 # include <stdio.h>
10651 # include <time.h>
10652 # include <wchar.h>
10653 #endif
10655 #include <limits.h>"; then :
10657 else
10658 result=unknown
10661 eval gl_cv_bitsizeof_${gltype}=\$result
10664 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10666 $as_echo "$ac_res" >&6; }
10667 eval result=\$gl_cv_bitsizeof_${gltype}
10668 if test $result = unknown; then
10669 result=0
10671 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10672 cat >>confdefs.h <<_ACEOF
10673 #define BITSIZEOF_${GLTYPE} $result
10674 _ACEOF
10676 eval BITSIZEOF_${GLTYPE}=\$result
10677 done
10683 for gltype in sig_atomic_t wchar_t wint_t ; do
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
10685 $as_echo_n "checking for bit size of $gltype... " >&6; }
10686 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
10690 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10691 included before <wchar.h>. */
10692 #include <stddef.h>
10693 #include <signal.h>
10694 #if HAVE_WCHAR_H
10695 # include <stdio.h>
10696 # include <time.h>
10697 # include <wchar.h>
10698 #endif
10700 #include <limits.h>"; then :
10702 else
10703 result=unknown
10706 eval gl_cv_bitsizeof_${gltype}=\$result
10709 eval ac_res=\$gl_cv_bitsizeof_${gltype}
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10711 $as_echo "$ac_res" >&6; }
10712 eval result=\$gl_cv_bitsizeof_${gltype}
10713 if test $result = unknown; then
10714 result=0
10716 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10717 cat >>confdefs.h <<_ACEOF
10718 #define BITSIZEOF_${GLTYPE} $result
10719 _ACEOF
10721 eval BITSIZEOF_${GLTYPE}=\$result
10722 done
10727 for gltype in sig_atomic_t wchar_t wint_t ; do
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
10729 $as_echo_n "checking whether $gltype is signed... " >&6; }
10730 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10737 included before <wchar.h>. */
10738 #include <stddef.h>
10739 #include <signal.h>
10740 #if HAVE_WCHAR_H
10741 # include <stdio.h>
10742 # include <time.h>
10743 # include <wchar.h>
10744 #endif
10746 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10748 main ()
10752 return 0;
10754 _ACEOF
10755 if ac_fn_c_try_compile "$LINENO"; then :
10756 result=yes
10757 else
10758 result=no
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 eval gl_cv_type_${gltype}_signed=\$result
10764 eval ac_res=\$gl_cv_type_${gltype}_signed
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10766 $as_echo "$ac_res" >&6; }
10767 eval result=\$gl_cv_type_${gltype}_signed
10768 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10769 if test "$result" = yes; then
10770 cat >>confdefs.h <<_ACEOF
10771 #define HAVE_SIGNED_${GLTYPE} 1
10772 _ACEOF
10774 eval HAVE_SIGNED_${GLTYPE}=1
10775 else
10776 eval HAVE_SIGNED_${GLTYPE}=0
10778 done
10781 gl_cv_type_ptrdiff_t_signed=yes
10782 gl_cv_type_size_t_signed=no
10783 if test $APPLE_UNIVERSAL_BUILD = 0; then
10786 for gltype in ptrdiff_t size_t ; do
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10788 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10789 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 eval gl_cv_type_${gltype}_suffix=no
10793 eval result=\$gl_cv_type_${gltype}_signed
10794 if test "$result" = yes; then
10795 glsufu=
10796 else
10797 glsufu=u
10799 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10800 case $glsuf in
10801 '') gltype1='int';;
10802 l) gltype1='long int';;
10803 ll) gltype1='long long int';;
10804 i64) gltype1='__int64';;
10805 u) gltype1='unsigned int';;
10806 ul) gltype1='unsigned long int';;
10807 ull) gltype1='unsigned long long int';;
10808 ui64)gltype1='unsigned __int64';;
10809 esac
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10814 included before <wchar.h>. */
10815 #include <stddef.h>
10816 #include <signal.h>
10817 #if HAVE_WCHAR_H
10818 # include <stdio.h>
10819 # include <time.h>
10820 # include <wchar.h>
10821 #endif
10823 extern $gltype foo;
10824 extern $gltype1 foo;
10826 main ()
10830 return 0;
10832 _ACEOF
10833 if ac_fn_c_try_compile "$LINENO"; then :
10834 eval gl_cv_type_${gltype}_suffix=\$glsuf
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 eval result=\$gl_cv_type_${gltype}_suffix
10838 test "$result" != no && break
10839 done
10841 eval ac_res=\$gl_cv_type_${gltype}_suffix
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10843 $as_echo "$ac_res" >&6; }
10844 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10845 eval result=\$gl_cv_type_${gltype}_suffix
10846 test "$result" = no && result=
10847 eval ${GLTYPE}_SUFFIX=\$result
10848 cat >>confdefs.h <<_ACEOF
10849 #define ${GLTYPE}_SUFFIX $result
10850 _ACEOF
10852 done
10858 for gltype in sig_atomic_t wchar_t wint_t ; do
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
10860 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10861 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 eval gl_cv_type_${gltype}_suffix=no
10865 eval result=\$gl_cv_type_${gltype}_signed
10866 if test "$result" = yes; then
10867 glsufu=
10868 else
10869 glsufu=u
10871 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10872 case $glsuf in
10873 '') gltype1='int';;
10874 l) gltype1='long int';;
10875 ll) gltype1='long long int';;
10876 i64) gltype1='__int64';;
10877 u) gltype1='unsigned int';;
10878 ul) gltype1='unsigned long int';;
10879 ull) gltype1='unsigned long long int';;
10880 ui64)gltype1='unsigned __int64';;
10881 esac
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10885 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10886 included before <wchar.h>. */
10887 #include <stddef.h>
10888 #include <signal.h>
10889 #if HAVE_WCHAR_H
10890 # include <stdio.h>
10891 # include <time.h>
10892 # include <wchar.h>
10893 #endif
10895 extern $gltype foo;
10896 extern $gltype1 foo;
10898 main ()
10902 return 0;
10904 _ACEOF
10905 if ac_fn_c_try_compile "$LINENO"; then :
10906 eval gl_cv_type_${gltype}_suffix=\$glsuf
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10909 eval result=\$gl_cv_type_${gltype}_suffix
10910 test "$result" != no && break
10911 done
10913 eval ac_res=\$gl_cv_type_${gltype}_suffix
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10915 $as_echo "$ac_res" >&6; }
10916 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
10917 eval result=\$gl_cv_type_${gltype}_suffix
10918 test "$result" = no && result=
10919 eval ${GLTYPE}_SUFFIX=\$result
10920 cat >>confdefs.h <<_ACEOF
10921 #define ${GLTYPE}_SUFFIX $result
10922 _ACEOF
10924 done
10928 if test $BITSIZEOF_WINT_T -lt 32; then
10929 BITSIZEOF_WINT_T=32
10932 STDINT_H=stdint.h
10935 if test -n "$STDINT_H"; then
10936 GL_GENERATE_STDINT_H_TRUE=
10937 GL_GENERATE_STDINT_H_FALSE='#'
10938 else
10939 GL_GENERATE_STDINT_H_TRUE='#'
10940 GL_GENERATE_STDINT_H_FALSE=
10947 GNULIB_IMAXABS=0;
10948 GNULIB_IMAXDIV=0;
10949 GNULIB_STRTOIMAX=0;
10950 GNULIB_STRTOUMAX=0;
10951 HAVE_DECL_IMAXABS=1;
10952 HAVE_DECL_IMAXDIV=1;
10953 HAVE_DECL_STRTOIMAX=1;
10954 HAVE_DECL_STRTOUMAX=1;
10955 REPLACE_STRTOIMAX=0;
10956 INT32_MAX_LT_INTMAX_MAX=1;
10957 INT64_MAX_EQ_LONG_MAX='defined _LP64';
10958 PRI_MACROS_BROKEN=0;
10959 PRIPTR_PREFIX=__PRIPTR_PREFIX;
10960 UINT32_MAX_LT_UINTMAX_MAX=1;
10961 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
10977 if test $gl_cv_have_include_next = yes; then
10978 gl_cv_next_inttypes_h='<'inttypes.h'>'
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
10981 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
10982 if test "${gl_cv_next_inttypes_h+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10986 if test $ac_cv_header_inttypes_h = yes; then
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991 #include <inttypes.h>
10993 _ACEOF
10994 case "$host_os" in
10995 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10996 *) gl_absname_cpp="$ac_cpp" ;;
10997 esac
10999 case "$host_os" in
11000 mingw*)
11001 gl_dirsep_regex='[/\\]'
11004 gl_dirsep_regex='\/'
11006 esac
11007 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11009 gl_header_literal_regex=`echo 'inttypes.h' \
11010 | sed -e "$gl_make_literal_regex_sed"`
11011 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11012 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11013 s|^/[^/]|//&|
11017 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11018 sed -n "$gl_absolute_header_sed"`'"'
11019 else
11020 gl_cv_next_inttypes_h='<'inttypes.h'>'
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11026 $as_echo "$gl_cv_next_inttypes_h" >&6; }
11028 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11030 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11032 gl_next_as_first_directive='<'inttypes.h'>'
11033 else
11034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11035 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11037 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11049 case "$host_os" in
11050 mingw*)
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11052 $as_echo_n "checking for 64-bit off_t... " >&6; }
11053 if test "${gl_cv_type_off_t_64+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058 #include <sys/types.h>
11059 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11062 main ()
11066 return 0;
11068 _ACEOF
11069 if ac_fn_c_try_compile "$LINENO"; then :
11070 gl_cv_type_off_t_64=yes
11071 else
11072 gl_cv_type_off_t_64=no
11074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11078 $as_echo "$gl_cv_type_off_t_64" >&6; }
11079 if test $gl_cv_type_off_t_64 = no; then
11080 WINDOWS_64_BIT_OFF_T=1
11081 else
11082 WINDOWS_64_BIT_OFF_T=0
11084 WINDOWS_64_BIT_ST_SIZE=1
11087 WINDOWS_64_BIT_OFF_T=0
11088 WINDOWS_64_BIT_ST_SIZE=0
11090 esac
11093 GNULIB_FCHMODAT=0;
11094 GNULIB_FSTAT=0;
11095 GNULIB_FSTATAT=0;
11096 GNULIB_FUTIMENS=0;
11097 GNULIB_LCHMOD=0;
11098 GNULIB_LSTAT=0;
11099 GNULIB_MKDIRAT=0;
11100 GNULIB_MKFIFO=0;
11101 GNULIB_MKFIFOAT=0;
11102 GNULIB_MKNOD=0;
11103 GNULIB_MKNODAT=0;
11104 GNULIB_STAT=0;
11105 GNULIB_UTIMENSAT=0;
11106 HAVE_FCHMODAT=1;
11107 HAVE_FSTATAT=1;
11108 HAVE_FUTIMENS=1;
11109 HAVE_LCHMOD=1;
11110 HAVE_LSTAT=1;
11111 HAVE_MKDIRAT=1;
11112 HAVE_MKFIFO=1;
11113 HAVE_MKFIFOAT=1;
11114 HAVE_MKNOD=1;
11115 HAVE_MKNODAT=1;
11116 HAVE_UTIMENSAT=1;
11117 REPLACE_FSTAT=0;
11118 REPLACE_FSTATAT=0;
11119 REPLACE_FUTIMENS=0;
11120 REPLACE_LSTAT=0;
11121 REPLACE_MKDIR=0;
11122 REPLACE_MKFIFO=0;
11123 REPLACE_MKNOD=0;
11124 REPLACE_STAT=0;
11125 REPLACE_UTIMENSAT=0;
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11131 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11132 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 rm -f conftest.sym conftest.file
11136 echo >conftest.file
11137 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11138 if test "$cross_compiling" = yes; then :
11139 case "$host_os" in
11140 # Guess yes on glibc systems.
11141 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
11142 # If we don't know, assume the worst.
11143 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
11144 esac
11146 else
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149 $ac_includes_default
11151 main ()
11153 struct stat sbuf;
11154 /* Linux will dereference the symlink and fail, as required by
11155 POSIX. That is better in the sense that it means we will not
11156 have to compile and use the lstat wrapper. */
11157 return lstat ("conftest.sym/", &sbuf) == 0;
11160 return 0;
11162 _ACEOF
11163 if ac_fn_c_try_run "$LINENO"; then :
11164 gl_cv_func_lstat_dereferences_slashed_symlink=yes
11165 else
11166 gl_cv_func_lstat_dereferences_slashed_symlink=no
11168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11169 conftest.$ac_objext conftest.beam conftest.$ac_ext
11172 else
11173 # If the 'ln -s' command failed, then we probably don't even
11174 # have an lstat function.
11175 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
11177 rm -f conftest.sym conftest.file
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
11181 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11182 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
11183 *yes)
11185 cat >>confdefs.h <<_ACEOF
11186 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11187 _ACEOF
11190 esac
11193 GNULIB_MKTIME=0;
11194 GNULIB_NANOSLEEP=0;
11195 GNULIB_STRPTIME=0;
11196 GNULIB_TIMEGM=0;
11197 GNULIB_TIME_R=0;
11198 HAVE_DECL_LOCALTIME_R=1;
11199 HAVE_NANOSLEEP=1;
11200 HAVE_STRPTIME=1;
11201 HAVE_TIMEGM=1;
11202 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11203 REPLACE_MKTIME=GNULIB_PORTCHECK;
11204 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11205 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11212 GNULIB_PSELECT=0;
11213 GNULIB_SELECT=0;
11214 HAVE_PSELECT=1;
11215 REPLACE_PSELECT=0;
11216 REPLACE_SELECT=0;
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
11224 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
11225 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11231 #include <sys/select.h>
11233 main ()
11235 struct timeval b;
11237 return 0;
11239 _ACEOF
11240 if ac_fn_c_try_compile "$LINENO"; then :
11241 gl_cv_header_sys_select_h_selfcontained=yes
11242 else
11243 gl_cv_header_sys_select_h_selfcontained=no
11245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/select.h>
11251 main ()
11253 int memset; int bzero;
11255 return 0;
11258 _ACEOF
11259 if ac_fn_c_try_compile "$LINENO"; then :
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262 #include <sys/select.h>
11264 main ()
11267 #undef memset
11268 #define memset nonexistent_memset
11269 extern
11270 #ifdef __cplusplus
11272 #endif
11273 void *memset (void *, int, unsigned long);
11274 #undef bzero
11275 #define bzero nonexistent_bzero
11276 extern
11277 #ifdef __cplusplus
11279 #endif
11280 void bzero (void *, unsigned long);
11281 fd_set fds;
11282 FD_ZERO (&fds);
11285 return 0;
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11291 else
11292 gl_cv_header_sys_select_h_selfcontained=no
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
11303 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
11313 if test $gl_cv_have_include_next = yes; then
11314 gl_cv_next_sys_select_h='<'sys/select.h'>'
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
11317 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
11318 if test "${gl_cv_next_sys_select_h+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11322 if test $ac_cv_header_sys_select_h = yes; then
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11327 #include <sys/select.h>
11329 _ACEOF
11330 case "$host_os" in
11331 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11332 *) gl_absname_cpp="$ac_cpp" ;;
11333 esac
11335 case "$host_os" in
11336 mingw*)
11337 gl_dirsep_regex='[/\\]'
11340 gl_dirsep_regex='\/'
11342 esac
11343 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11345 gl_header_literal_regex=`echo 'sys/select.h' \
11346 | sed -e "$gl_make_literal_regex_sed"`
11347 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11348 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11349 s|^/[^/]|//&|
11353 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11354 sed -n "$gl_absolute_header_sed"`'"'
11355 else
11356 gl_cv_next_sys_select_h='<'sys/select.h'>'
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
11362 $as_echo "$gl_cv_next_sys_select_h" >&6; }
11364 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
11366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11368 gl_next_as_first_directive='<'sys/select.h'>'
11369 else
11370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11371 gl_next_as_first_directive=$gl_cv_next_sys_select_h
11373 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
11378 if test $ac_cv_header_sys_select_h = yes; then
11379 HAVE_SYS_SELECT_H=1
11380 else
11381 HAVE_SYS_SELECT_H=0
11388 if test $ac_cv_header_sys_socket_h != yes; then
11389 for ac_header in winsock2.h
11390 do :
11391 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11392 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
11393 cat >>confdefs.h <<_ACEOF
11394 #define HAVE_WINSOCK2_H 1
11395 _ACEOF
11399 done
11402 if test "$ac_cv_header_winsock2_h" = yes; then
11403 HAVE_WINSOCK2_H=1
11404 UNISTD_H_HAVE_WINSOCK2_H=1
11405 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
11406 else
11407 HAVE_WINSOCK2_H=0
11417 GNULIB_PTHREAD_SIGMASK=0;
11418 GNULIB_RAISE=0;
11419 GNULIB_SIGNAL_H_SIGPIPE=0;
11420 GNULIB_SIGPROCMASK=0;
11421 GNULIB_SIGACTION=0;
11422 HAVE_POSIX_SIGNALBLOCKING=1;
11423 HAVE_PTHREAD_SIGMASK=1;
11424 HAVE_RAISE=1;
11425 HAVE_SIGSET_T=1;
11426 HAVE_SIGINFO_T=1;
11427 HAVE_SIGACTION=1;
11428 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11430 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11432 HAVE_SIGHANDLER_T=1;
11433 REPLACE_PTHREAD_SIGMASK=0;
11434 REPLACE_RAISE=0;
11441 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11442 #include <signal.h>
11443 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11444 #include <sys/types.h>
11447 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11449 cat >>confdefs.h <<_ACEOF
11450 #define HAVE_SIGSET_T 1
11451 _ACEOF
11453 gl_cv_type_sigset_t=yes
11454 else
11455 gl_cv_type_sigset_t=no
11458 if test $gl_cv_type_sigset_t != yes; then
11459 HAVE_SIGSET_T=0
11462 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11463 if test "x$ac_cv_type_pid_t" = x""yes; then :
11465 else
11467 cat >>confdefs.h <<_ACEOF
11468 #define pid_t int
11469 _ACEOF
11475 if test $ac_cv_header_sys_socket_h = no; then
11476 for ac_header in ws2tcpip.h
11477 do :
11478 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11479 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
11480 cat >>confdefs.h <<_ACEOF
11481 #define HAVE_WS2TCPIP_H 1
11482 _ACEOF
11486 done
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11491 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11492 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11498 #include <stdbool.h>
11499 #ifndef bool
11500 "error: bool is not defined"
11501 #endif
11502 #ifndef false
11503 "error: false is not defined"
11504 #endif
11505 #if false
11506 "error: false is not 0"
11507 #endif
11508 #ifndef true
11509 "error: true is not defined"
11510 #endif
11511 #if true != 1
11512 "error: true is not 1"
11513 #endif
11514 #ifndef __bool_true_false_are_defined
11515 "error: __bool_true_false_are_defined is not defined"
11516 #endif
11518 struct s { _Bool s: 1; _Bool t; } s;
11520 char a[true == 1 ? 1 : -1];
11521 char b[false == 0 ? 1 : -1];
11522 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11523 char d[(bool) 0.5 == true ? 1 : -1];
11524 /* See body of main program for 'e'. */
11525 char f[(_Bool) 0.0 == false ? 1 : -1];
11526 char g[true];
11527 char h[sizeof (_Bool)];
11528 char i[sizeof s.t];
11529 enum { j = false, k = true, l = false * true, m = true * 256 };
11530 /* The following fails for
11531 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11532 _Bool n[m];
11533 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11534 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11535 /* Catch a bug in an HP-UX C compiler. See
11536 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11537 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11539 _Bool q = true;
11540 _Bool *pq = &q;
11543 main ()
11546 bool e = &s;
11547 *pq |= q;
11548 *pq |= ! q;
11549 /* Refer to every declared value, to avoid compiler optimizations. */
11550 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11551 + !m + !n + !o + !p + !q + !pq);
11554 return 0;
11556 _ACEOF
11557 if ac_fn_c_try_compile "$LINENO"; then :
11558 ac_cv_header_stdbool_h=yes
11559 else
11560 ac_cv_header_stdbool_h=no
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11565 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11566 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11567 if test "x$ac_cv_type__Bool" = x""yes; then :
11569 cat >>confdefs.h <<_ACEOF
11570 #define HAVE__BOOL 1
11571 _ACEOF
11578 REPLACE_NULL=0;
11579 HAVE_WCHAR_T=1;
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11583 $as_echo_n "checking for wchar_t... " >&6; }
11584 if test "${gt_cv_c_wchar_t+set}" = set; then :
11585 $as_echo_n "(cached) " >&6
11586 else
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 #include <stddef.h>
11590 wchar_t foo = (wchar_t)'\0';
11592 main ()
11596 return 0;
11598 _ACEOF
11599 if ac_fn_c_try_compile "$LINENO"; then :
11600 gt_cv_c_wchar_t=yes
11601 else
11602 gt_cv_c_wchar_t=no
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11607 $as_echo "$gt_cv_c_wchar_t" >&6; }
11608 if test $gt_cv_c_wchar_t = yes; then
11610 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11615 GNULIB_DPRINTF=0;
11616 GNULIB_FCLOSE=0;
11617 GNULIB_FDOPEN=0;
11618 GNULIB_FFLUSH=0;
11619 GNULIB_FGETC=0;
11620 GNULIB_FGETS=0;
11621 GNULIB_FOPEN=0;
11622 GNULIB_FPRINTF=0;
11623 GNULIB_FPRINTF_POSIX=0;
11624 GNULIB_FPURGE=0;
11625 GNULIB_FPUTC=0;
11626 GNULIB_FPUTS=0;
11627 GNULIB_FREAD=0;
11628 GNULIB_FREOPEN=0;
11629 GNULIB_FSCANF=0;
11630 GNULIB_FSEEK=0;
11631 GNULIB_FSEEKO=0;
11632 GNULIB_FTELL=0;
11633 GNULIB_FTELLO=0;
11634 GNULIB_FWRITE=0;
11635 GNULIB_GETC=0;
11636 GNULIB_GETCHAR=0;
11637 GNULIB_GETDELIM=0;
11638 GNULIB_GETLINE=0;
11639 GNULIB_OBSTACK_PRINTF=0;
11640 GNULIB_OBSTACK_PRINTF_POSIX=0;
11641 GNULIB_PCLOSE=0;
11642 GNULIB_PERROR=0;
11643 GNULIB_POPEN=0;
11644 GNULIB_PRINTF=0;
11645 GNULIB_PRINTF_POSIX=0;
11646 GNULIB_PUTC=0;
11647 GNULIB_PUTCHAR=0;
11648 GNULIB_PUTS=0;
11649 GNULIB_REMOVE=0;
11650 GNULIB_RENAME=0;
11651 GNULIB_RENAMEAT=0;
11652 GNULIB_SCANF=0;
11653 GNULIB_SNPRINTF=0;
11654 GNULIB_SPRINTF_POSIX=0;
11655 GNULIB_STDIO_H_NONBLOCKING=0;
11656 GNULIB_STDIO_H_SIGPIPE=0;
11657 GNULIB_TMPFILE=0;
11658 GNULIB_VASPRINTF=0;
11659 GNULIB_VFSCANF=0;
11660 GNULIB_VSCANF=0;
11661 GNULIB_VDPRINTF=0;
11662 GNULIB_VFPRINTF=0;
11663 GNULIB_VFPRINTF_POSIX=0;
11664 GNULIB_VPRINTF=0;
11665 GNULIB_VPRINTF_POSIX=0;
11666 GNULIB_VSNPRINTF=0;
11667 GNULIB_VSPRINTF_POSIX=0;
11668 HAVE_DECL_FPURGE=1;
11669 HAVE_DECL_FSEEKO=1;
11670 HAVE_DECL_FTELLO=1;
11671 HAVE_DECL_GETDELIM=1;
11672 HAVE_DECL_GETLINE=1;
11673 HAVE_DECL_OBSTACK_PRINTF=1;
11674 HAVE_DECL_SNPRINTF=1;
11675 HAVE_DECL_VSNPRINTF=1;
11676 HAVE_DPRINTF=1;
11677 HAVE_FSEEKO=1;
11678 HAVE_FTELLO=1;
11679 HAVE_PCLOSE=1;
11680 HAVE_POPEN=1;
11681 HAVE_RENAMEAT=1;
11682 HAVE_VASPRINTF=1;
11683 HAVE_VDPRINTF=1;
11684 REPLACE_DPRINTF=0;
11685 REPLACE_FCLOSE=0;
11686 REPLACE_FDOPEN=0;
11687 REPLACE_FFLUSH=0;
11688 REPLACE_FOPEN=0;
11689 REPLACE_FPRINTF=0;
11690 REPLACE_FPURGE=0;
11691 REPLACE_FREOPEN=0;
11692 REPLACE_FSEEK=0;
11693 REPLACE_FSEEKO=0;
11694 REPLACE_FTELL=0;
11695 REPLACE_FTELLO=0;
11696 REPLACE_GETDELIM=0;
11697 REPLACE_GETLINE=0;
11698 REPLACE_OBSTACK_PRINTF=0;
11699 REPLACE_PERROR=0;
11700 REPLACE_POPEN=0;
11701 REPLACE_PRINTF=0;
11702 REPLACE_REMOVE=0;
11703 REPLACE_RENAME=0;
11704 REPLACE_RENAMEAT=0;
11705 REPLACE_SNPRINTF=0;
11706 REPLACE_SPRINTF=0;
11707 REPLACE_STDIO_READ_FUNCS=0;
11708 REPLACE_STDIO_WRITE_FUNCS=0;
11709 REPLACE_TMPFILE=0;
11710 REPLACE_VASPRINTF=0;
11711 REPLACE_VDPRINTF=0;
11712 REPLACE_VFPRINTF=0;
11713 REPLACE_VPRINTF=0;
11714 REPLACE_VSNPRINTF=0;
11715 REPLACE_VSPRINTF=0;
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11718 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11719 if test "${ac_cv_struct_tm+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724 #include <sys/types.h>
11725 #include <time.h>
11728 main ()
11730 struct tm tm;
11731 int *p = &tm.tm_sec;
11732 return !p;
11734 return 0;
11736 _ACEOF
11737 if ac_fn_c_try_compile "$LINENO"; then :
11738 ac_cv_struct_tm=time.h
11739 else
11740 ac_cv_struct_tm=sys/time.h
11742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11745 $as_echo "$ac_cv_struct_tm" >&6; }
11746 if test $ac_cv_struct_tm = sys/time.h; then
11748 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11752 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11753 #include <$ac_cv_struct_tm>
11756 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
11758 cat >>confdefs.h <<_ACEOF
11759 #define HAVE_STRUCT_TM_TM_ZONE 1
11760 _ACEOF
11765 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11767 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11769 else
11770 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11772 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
11773 ac_have_decl=1
11774 else
11775 ac_have_decl=0
11778 cat >>confdefs.h <<_ACEOF
11779 #define HAVE_DECL_TZNAME $ac_have_decl
11780 _ACEOF
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11783 $as_echo_n "checking for tzname... " >&6; }
11784 if test "${ac_cv_var_tzname+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11789 #include <time.h>
11790 #if !HAVE_DECL_TZNAME
11791 extern char *tzname[];
11792 #endif
11795 main ()
11797 return tzname[0][0];
11799 return 0;
11801 _ACEOF
11802 if ac_fn_c_try_link "$LINENO"; then :
11803 ac_cv_var_tzname=yes
11804 else
11805 ac_cv_var_tzname=no
11807 rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11811 $as_echo "$ac_cv_var_tzname" >&6; }
11812 if test $ac_cv_var_tzname = yes; then
11814 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11820 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
11822 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
11824 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
11833 ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
11834 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then :
11835 ac_have_decl=1
11836 else
11837 ac_have_decl=0
11840 cat >>confdefs.h <<_ACEOF
11841 #define HAVE_DECL_STRTOIMAX $ac_have_decl
11842 _ACEOF
11846 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
11847 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
11848 ac_have_decl=1
11849 else
11850 ac_have_decl=0
11853 cat >>confdefs.h <<_ACEOF
11854 #define HAVE_DECL_STRTOUMAX $ac_have_decl
11855 _ACEOF
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11860 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11861 if test "${ac_cv_header_stat_broken+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #include <sys/types.h>
11867 #include <sys/stat.h>
11869 #if defined S_ISBLK && defined S_IFDIR
11870 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11871 #endif
11873 #if defined S_ISBLK && defined S_IFCHR
11874 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11875 #endif
11877 #if defined S_ISLNK && defined S_IFREG
11878 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11879 #endif
11881 #if defined S_ISSOCK && defined S_IFREG
11882 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11883 #endif
11885 _ACEOF
11886 if ac_fn_c_try_compile "$LINENO"; then :
11887 ac_cv_header_stat_broken=no
11888 else
11889 ac_cv_header_stat_broken=yes
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11894 $as_echo "$ac_cv_header_stat_broken" >&6; }
11895 if test $ac_cv_header_stat_broken = yes; then
11897 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11903 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11904 if test "x$ac_cv_type_mode_t" = x""yes; then :
11906 else
11908 cat >>confdefs.h <<_ACEOF
11909 #define mode_t int
11910 _ACEOF
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11917 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11918 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <time.h>
11926 main ()
11928 static struct timespec x; x.tv_sec = x.tv_nsec;
11930 return 0;
11932 _ACEOF
11933 if ac_fn_c_try_compile "$LINENO"; then :
11934 gl_cv_sys_struct_timespec_in_time_h=yes
11935 else
11936 gl_cv_sys_struct_timespec_in_time_h=no
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11941 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11943 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11944 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11945 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11946 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11947 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11948 else
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11950 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11951 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11952 $as_echo_n "(cached) " >&6
11953 else
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11956 #include <sys/time.h>
11959 main ()
11961 static struct timespec x; x.tv_sec = x.tv_nsec;
11963 return 0;
11965 _ACEOF
11966 if ac_fn_c_try_compile "$LINENO"; then :
11967 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11968 else
11969 gl_cv_sys_struct_timespec_in_sys_time_h=no
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11974 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11975 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11976 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11979 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11980 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <pthread.h>
11988 main ()
11990 static struct timespec x; x.tv_sec = x.tv_nsec;
11992 return 0;
11994 _ACEOF
11995 if ac_fn_c_try_compile "$LINENO"; then :
11996 gl_cv_sys_struct_timespec_in_pthread_h=yes
11997 else
11998 gl_cv_sys_struct_timespec_in_pthread_h=no
12000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12003 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12004 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12005 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12024 if test $gl_cv_have_include_next = yes; then
12025 gl_cv_next_time_h='<'time.h'>'
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12028 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12029 if test "${gl_cv_next_time_h+set}" = set; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035 #include <time.h>
12037 _ACEOF
12038 case "$host_os" in
12039 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12040 *) gl_absname_cpp="$ac_cpp" ;;
12041 esac
12043 case "$host_os" in
12044 mingw*)
12045 gl_dirsep_regex='[/\\]'
12048 gl_dirsep_regex='\/'
12050 esac
12051 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12053 gl_header_literal_regex=`echo 'time.h' \
12054 | sed -e "$gl_make_literal_regex_sed"`
12055 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12056 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12057 s|^/[^/]|//&|
12061 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12062 sed -n "$gl_absolute_header_sed"`'"'
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12067 $as_echo "$gl_cv_next_time_h" >&6; }
12069 NEXT_TIME_H=$gl_cv_next_time_h
12071 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12072 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12073 gl_next_as_first_directive='<'time.h'>'
12074 else
12075 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12076 gl_next_as_first_directive=$gl_cv_next_time_h
12078 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
12095 $as_echo_n "checking whether the utimes function works... " >&6; }
12096 if test "${gl_cv_func_working_utimes+set}" = set; then :
12097 $as_echo_n "(cached) " >&6
12098 else
12100 if test "$cross_compiling" = yes; then :
12101 gl_cv_func_working_utimes=no
12102 else
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12106 #include <sys/types.h>
12107 #include <sys/stat.h>
12108 #include <fcntl.h>
12109 #include <sys/time.h>
12110 #include <time.h>
12111 #include <unistd.h>
12112 #include <stdlib.h>
12113 #include <stdio.h>
12114 #include <utime.h>
12116 static int
12117 inorder (time_t a, time_t b, time_t c)
12119 return a <= b && b <= c;
12123 main ()
12125 int result = 0;
12126 char const *file = "conftest.utimes";
12127 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
12129 /* Test whether utimes() essentially works. */
12131 struct stat sbuf;
12132 FILE *f = fopen (file, "w");
12133 if (f == NULL)
12134 result |= 1;
12135 else if (fclose (f) != 0)
12136 result |= 1;
12137 else if (utimes (file, timeval) != 0)
12138 result |= 2;
12139 else if (lstat (file, &sbuf) != 0)
12140 result |= 1;
12141 else if (!(sbuf.st_atime == timeval[0].tv_sec
12142 && sbuf.st_mtime == timeval[1].tv_sec))
12143 result |= 4;
12144 if (unlink (file) != 0)
12145 result |= 1;
12148 /* Test whether utimes() with a NULL argument sets the file's timestamp
12149 to the current time. Use 'fstat' as well as 'time' to
12150 determine the "current" time, to accommodate NFS file systems
12151 if there is a time skew between the host and the NFS server. */
12153 int fd = open (file, O_WRONLY|O_CREAT, 0644);
12154 if (fd < 0)
12155 result |= 1;
12156 else
12158 time_t t0, t2;
12159 struct stat st0, st1, st2;
12160 if (time (&t0) == (time_t) -1)
12161 result |= 1;
12162 else if (fstat (fd, &st0) != 0)
12163 result |= 1;
12164 else if (utimes (file, timeval) != 0)
12165 result |= 2;
12166 else if (utimes (file, NULL) != 0)
12167 result |= 8;
12168 else if (fstat (fd, &st1) != 0)
12169 result |= 1;
12170 else if (write (fd, "\n", 1) != 1)
12171 result |= 1;
12172 else if (fstat (fd, &st2) != 0)
12173 result |= 1;
12174 else if (time (&t2) == (time_t) -1)
12175 result |= 1;
12176 else
12178 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
12179 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
12180 if (! (st1.st_atime == st1.st_mtime))
12181 result |= 16;
12182 if (! (m_ok_POSIX || m_ok_NFS))
12183 result |= 32;
12185 if (close (fd) != 0)
12186 result |= 1;
12188 if (unlink (file) != 0)
12189 result |= 1;
12192 /* Test whether utimes() with a NULL argument works on read-only files. */
12194 int fd = open (file, O_WRONLY|O_CREAT, 0444);
12195 if (fd < 0)
12196 result |= 1;
12197 else if (close (fd) != 0)
12198 result |= 1;
12199 else if (utimes (file, NULL) != 0)
12200 result |= 64;
12201 if (unlink (file) != 0)
12202 result |= 1;
12205 return result;
12208 _ACEOF
12209 if ac_fn_c_try_run "$LINENO"; then :
12210 gl_cv_func_working_utimes=yes
12211 else
12212 gl_cv_func_working_utimes=no
12214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12215 conftest.$ac_objext conftest.beam conftest.$ac_ext
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
12220 $as_echo "$gl_cv_func_working_utimes" >&6; }
12222 if test $gl_cv_func_working_utimes = yes; then
12224 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
12233 $as_echo_n "checking for struct utimbuf... " >&6; }
12234 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #if HAVE_SYS_TIME_H
12240 #include <sys/time.h>
12241 #endif
12242 #include <time.h>
12243 #ifdef HAVE_UTIME_H
12244 #include <utime.h>
12245 #endif
12248 main ()
12250 static struct utimbuf x; x.actime = x.modtime;
12252 return 0;
12254 _ACEOF
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 gl_cv_sys_struct_utimbuf=yes
12257 else
12258 gl_cv_sys_struct_utimbuf=no
12260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
12263 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
12265 if test $gl_cv_sys_struct_utimbuf = yes; then
12267 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
12284 if false; then
12285 GL_COND_LIBTOOL_TRUE=
12286 GL_COND_LIBTOOL_FALSE='#'
12287 else
12288 GL_COND_LIBTOOL_TRUE='#'
12289 GL_COND_LIBTOOL_FALSE=
12292 gl_cond_libtool=false
12293 gl_libdeps=
12294 gl_ltlibdeps=
12295 gl_m4_base='m4'
12305 gl_source_base='lib'
12308 if test $ac_cv_func_alloca_works = no; then
12312 # Define an additional variable used in the Makefile substitution.
12313 if test $ac_cv_working_alloca_h = yes; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12315 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12316 if test "${gl_cv_rpl_alloca+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12323 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12324 Need own alloca
12325 #endif
12327 _ACEOF
12328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12329 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12330 gl_cv_rpl_alloca=yes
12331 else
12332 gl_cv_rpl_alloca=no
12334 rm -f conftest*
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12339 $as_echo "$gl_cv_rpl_alloca" >&6; }
12340 if test $gl_cv_rpl_alloca = yes; then
12342 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12344 ALLOCA_H=alloca.h
12345 else
12346 ALLOCA_H=
12348 else
12349 ALLOCA_H=alloca.h
12352 if test -n "$ALLOCA_H"; then
12353 GL_GENERATE_ALLOCA_H_TRUE=
12354 GL_GENERATE_ALLOCA_H_FALSE='#'
12355 else
12356 GL_GENERATE_ALLOCA_H_TRUE='#'
12357 GL_GENERATE_ALLOCA_H_FALSE=
12365 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12366 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12368 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
12369 # programs in the package would end up linked with that potentially-shared
12370 # library, inducing unnecessary run-time overhead.
12371 LIB_CLOCK_GETTIME=
12373 gl_saved_libs=$LIBS
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12375 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12376 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
12378 else
12379 ac_func_search_save_LIBS=$LIBS
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386 #ifdef __cplusplus
12387 extern "C"
12388 #endif
12389 char clock_gettime ();
12391 main ()
12393 return clock_gettime ();
12395 return 0;
12397 _ACEOF
12398 for ac_lib in '' rt posix4; do
12399 if test -z "$ac_lib"; then
12400 ac_res="none required"
12401 else
12402 ac_res=-l$ac_lib
12403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12405 if ac_fn_c_try_link "$LINENO"; then :
12406 ac_cv_search_clock_gettime=$ac_res
12408 rm -f core conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext
12410 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12411 break
12413 done
12414 if test "${ac_cv_search_clock_gettime+set}" = set; then :
12416 else
12417 ac_cv_search_clock_gettime=no
12419 rm conftest.$ac_ext
12420 LIBS=$ac_func_search_save_LIBS
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12423 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12424 ac_res=$ac_cv_search_clock_gettime
12425 if test "$ac_res" != no; then :
12426 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12427 test "$ac_cv_search_clock_gettime" = "none required" ||
12428 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
12431 for ac_func in clock_gettime clock_settime
12432 do :
12433 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12434 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12435 eval as_val=\$$as_ac_var
12436 if test "x$as_val" = x""yes; then :
12437 cat >>confdefs.h <<_ACEOF
12438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12439 _ACEOF
12442 done
12444 LIBS=$gl_saved_libs
12470 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
12473 if test $HAVE_DUP2 = 1; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
12475 $as_echo_n "checking whether dup2 works... " >&6; }
12476 if test "${gl_cv_func_dup2_works+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 if test "$cross_compiling" = yes; then :
12480 case "$host_os" in
12481 mingw*) # on this platform, dup2 always returns 0 for success
12482 gl_cv_func_dup2_works="guessing no" ;;
12483 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
12484 gl_cv_func_dup2_works="guessing no" ;;
12485 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
12486 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
12487 gl_cv_func_dup2_works="guessing no" ;;
12488 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
12489 gl_cv_func_dup2_works="guessing no" ;;
12490 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
12491 gl_cv_func_dup2_works="guessing no" ;;
12492 *) gl_cv_func_dup2_works="guessing yes" ;;
12493 esac
12494 else
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 #include <unistd.h>
12499 #include <fcntl.h>
12500 #include <errno.h>
12502 main ()
12504 int result = 0;
12505 #ifdef FD_CLOEXEC
12506 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
12507 result |= 1;
12508 #endif
12509 if (dup2 (1, 1) == 0)
12510 result |= 2;
12511 #ifdef FD_CLOEXEC
12512 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
12513 result |= 4;
12514 #endif
12515 close (0);
12516 if (dup2 (0, 0) != -1)
12517 result |= 8;
12518 /* Many gnulib modules require POSIX conformance of EBADF. */
12519 if (dup2 (2, 1000000) == -1 && errno != EBADF)
12520 result |= 16;
12521 return result;
12524 return 0;
12527 _ACEOF
12528 if ac_fn_c_try_run "$LINENO"; then :
12529 gl_cv_func_dup2_works=yes
12530 else
12531 gl_cv_func_dup2_works=no
12533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12534 conftest.$ac_objext conftest.beam conftest.$ac_ext
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
12540 $as_echo "$gl_cv_func_dup2_works" >&6; }
12541 case "$gl_cv_func_dup2_works" in
12542 *yes) ;;
12544 REPLACE_DUP2=1
12546 esac
12550 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
12559 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
12568 GNULIB_DUP2=1
12580 # Persuade glibc <stdlib.h> to declare getloadavg().
12583 gl_save_LIBS=$LIBS
12585 # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
12586 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
12587 HAVE_GETLOADAVG=1
12588 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12589 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12591 else
12592 gl_func_getloadavg_done=no
12594 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12595 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12596 # to get the right answer into the cache.
12597 # For kstat on solaris, we need to test for libelf and libkvm to force the
12598 # definition of SVR4 below.
12599 if test $gl_func_getloadavg_done = no; then
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12601 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12602 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 ac_check_lib_save_LIBS=$LIBS
12606 LIBS="-lelf $LIBS"
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12610 /* Override any GCC internal prototype to avoid an error.
12611 Use char because int might match the return type of a GCC
12612 builtin and then its argument prototype would still apply. */
12613 #ifdef __cplusplus
12614 extern "C"
12615 #endif
12616 char elf_begin ();
12618 main ()
12620 return elf_begin ();
12622 return 0;
12624 _ACEOF
12625 if ac_fn_c_try_link "$LINENO"; then :
12626 ac_cv_lib_elf_elf_begin=yes
12627 else
12628 ac_cv_lib_elf_elf_begin=no
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12635 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12636 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12637 LIBS="-lelf $LIBS"
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12641 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12642 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 ac_check_lib_save_LIBS=$LIBS
12646 LIBS="-lkvm $LIBS"
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12653 #ifdef __cplusplus
12654 extern "C"
12655 #endif
12656 char kvm_open ();
12658 main ()
12660 return kvm_open ();
12662 return 0;
12664 _ACEOF
12665 if ac_fn_c_try_link "$LINENO"; then :
12666 ac_cv_lib_kvm_kvm_open=yes
12667 else
12668 ac_cv_lib_kvm_kvm_open=no
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 LIBS=$ac_check_lib_save_LIBS
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12675 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12676 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12677 LIBS="-lkvm $LIBS"
12680 # Check for the 4.4BSD definition of getloadavg.
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12682 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12683 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 ac_check_lib_save_LIBS=$LIBS
12687 LIBS="-lutil $LIBS"
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12691 /* Override any GCC internal prototype to avoid an error.
12692 Use char because int might match the return type of a GCC
12693 builtin and then its argument prototype would still apply. */
12694 #ifdef __cplusplus
12695 extern "C"
12696 #endif
12697 char getloadavg ();
12699 main ()
12701 return getloadavg ();
12703 return 0;
12705 _ACEOF
12706 if ac_fn_c_try_link "$LINENO"; then :
12707 ac_cv_lib_util_getloadavg=yes
12708 else
12709 ac_cv_lib_util_getloadavg=no
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12716 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12717 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12718 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
12723 if test $gl_func_getloadavg_done = no; then
12724 # There is a commonly available library for RS/6000 AIX.
12725 # Since it is not a standard part of AIX, it might be installed locally.
12726 gl_getloadavg_LIBS=$LIBS
12727 LIBS="-L/usr/local/lib $LIBS"
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12729 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12730 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 ac_check_lib_save_LIBS=$LIBS
12734 LIBS="-lgetloadavg $LIBS"
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 /* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
12744 char getloadavg ();
12746 main ()
12748 return getloadavg ();
12750 return 0;
12752 _ACEOF
12753 if ac_fn_c_try_link "$LINENO"; then :
12754 ac_cv_lib_getloadavg_getloadavg=yes
12755 else
12756 ac_cv_lib_getloadavg_getloadavg=no
12758 rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext conftest.$ac_ext
12760 LIBS=$ac_check_lib_save_LIBS
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12763 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12764 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12765 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
12766 else
12767 LIBS=$gl_getloadavg_LIBS
12772 # Set up the replacement function if necessary.
12773 if test $gl_func_getloadavg_done = no; then
12774 HAVE_GETLOADAVG=0
12776 # Solaris has libkstat which does not require root.
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12778 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12779 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lkstat $LIBS"
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12787 /* Override any GCC internal prototype to avoid an error.
12788 Use char because int might match the return type of a GCC
12789 builtin and then its argument prototype would still apply. */
12790 #ifdef __cplusplus
12791 extern "C"
12792 #endif
12793 char kstat_open ();
12795 main ()
12797 return kstat_open ();
12799 return 0;
12801 _ACEOF
12802 if ac_fn_c_try_link "$LINENO"; then :
12803 ac_cv_lib_kstat_kstat_open=yes
12804 else
12805 ac_cv_lib_kstat_kstat_open=no
12807 rm -f core conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12812 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12813 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12814 cat >>confdefs.h <<_ACEOF
12815 #define HAVE_LIBKSTAT 1
12816 _ACEOF
12818 LIBS="-lkstat $LIBS"
12822 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
12824 # AIX has libperfstat which does not require root
12825 if test $gl_func_getloadavg_done = no; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
12827 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
12828 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 ac_check_lib_save_LIBS=$LIBS
12832 LIBS="-lperfstat $LIBS"
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12836 /* Override any GCC internal prototype to avoid an error.
12837 Use char because int might match the return type of a GCC
12838 builtin and then its argument prototype would still apply. */
12839 #ifdef __cplusplus
12840 extern "C"
12841 #endif
12842 char perfstat_cpu_total ();
12844 main ()
12846 return perfstat_cpu_total ();
12848 return 0;
12850 _ACEOF
12851 if ac_fn_c_try_link "$LINENO"; then :
12852 ac_cv_lib_perfstat_perfstat_cpu_total=yes
12853 else
12854 ac_cv_lib_perfstat_perfstat_cpu_total=no
12856 rm -f core conftest.err conftest.$ac_objext \
12857 conftest$ac_exeext conftest.$ac_ext
12858 LIBS=$ac_check_lib_save_LIBS
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
12861 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
12862 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
12863 cat >>confdefs.h <<_ACEOF
12864 #define HAVE_LIBPERFSTAT 1
12865 _ACEOF
12867 LIBS="-lperfstat $LIBS"
12871 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
12874 if test $gl_func_getloadavg_done = no; then
12875 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12876 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12877 gl_func_getloadavg_done=yes
12879 $as_echo "#define DGUX 1" >>confdefs.h
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12882 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12883 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 ac_check_lib_save_LIBS=$LIBS
12887 LIBS="-ldgc $LIBS"
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12891 /* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12894 #ifdef __cplusplus
12895 extern "C"
12896 #endif
12897 char dg_sys_info ();
12899 main ()
12901 return dg_sys_info ();
12903 return 0;
12905 _ACEOF
12906 if ac_fn_c_try_link "$LINENO"; then :
12907 ac_cv_lib_dgc_dg_sys_info=yes
12908 else
12909 ac_cv_lib_dgc_dg_sys_info=no
12911 rm -f core conftest.err conftest.$ac_objext \
12912 conftest$ac_exeext conftest.$ac_ext
12913 LIBS=$ac_check_lib_save_LIBS
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12916 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12917 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12918 cat >>confdefs.h <<_ACEOF
12919 #define HAVE_LIBDGC 1
12920 _ACEOF
12922 LIBS="-ldgc $LIBS"
12934 if test "x$gl_save_LIBS" = x; then
12935 GETLOADAVG_LIBS=$LIBS
12936 else
12937 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
12939 LIBS=$gl_save_LIBS
12942 # Test whether the system declares getloadavg. Solaris has the function
12943 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
12944 for ac_header in sys/loadavg.h
12945 do :
12946 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
12947 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
12948 cat >>confdefs.h <<_ACEOF
12949 #define HAVE_SYS_LOADAVG_H 1
12950 _ACEOF
12954 done
12956 if test $ac_cv_header_sys_loadavg_h = yes; then
12957 HAVE_SYS_LOADAVG_H=1
12958 else
12959 HAVE_SYS_LOADAVG_H=0
12961 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
12962 # include <sys/loadavg.h>
12963 #endif
12964 #include <stdlib.h>
12966 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
12968 else
12969 HAVE_DECL_GETLOADAVG=0
12973 if test $HAVE_GETLOADAVG = 0; then
12982 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
12985 # Figure out what our getloadavg.c needs.
12987 # On HPUX9, an unprivileged user can get load averages this way.
12988 if test $gl_func_getloadavg_done = no; then
12989 for ac_func in pstat_getdynamic
12990 do :
12991 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12992 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_PSTAT_GETDYNAMIC 1
12995 _ACEOF
12996 gl_func_getloadavg_done=yes
12998 done
13002 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13003 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13004 # Irix 4.0.5F has the header but not the library.
13005 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13006 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13007 gl_func_getloadavg_done=yes
13009 $as_echo "#define SVR4 1" >>confdefs.h
13013 if test $gl_func_getloadavg_done = no; then
13014 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13015 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
13016 gl_func_getloadavg_done=yes
13018 $as_echo "#define UMAX 1" >>confdefs.h
13021 $as_echo "#define UMAX4_3 1" >>confdefs.h
13028 if test $gl_func_getloadavg_done = no; then
13029 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13030 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
13031 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
13038 if test $gl_func_getloadavg_done = no; then
13039 for ac_header in mach/mach.h
13040 do :
13041 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13042 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
13043 cat >>confdefs.h <<_ACEOF
13044 #define HAVE_MACH_MACH_H 1
13045 _ACEOF
13049 done
13053 for ac_header in nlist.h
13054 do :
13055 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13056 if test "x$ac_cv_header_nlist_h" = x""yes; then :
13057 cat >>confdefs.h <<_ACEOF
13058 #define HAVE_NLIST_H 1
13059 _ACEOF
13060 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13062 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
13064 cat >>confdefs.h <<_ACEOF
13065 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13066 _ACEOF
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073 #include <nlist.h>
13075 main ()
13077 struct nlist x;
13078 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
13079 x.n_un.n_name = "";
13080 #else
13081 x.n_name = "";
13082 #endif
13084 return 0;
13086 _ACEOF
13087 if ac_fn_c_try_link "$LINENO"; then :
13089 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
13092 rm -f core conftest.err conftest.$ac_objext \
13093 conftest$ac_exeext conftest.$ac_ext
13097 done
13105 GNULIB_GETLOADAVG=1
13116 if test $REPLACE_GETOPT = 1; then
13125 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13135 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13140 GNULIB_GL_UNISTD_H_GETOPT=1
13148 REPLACE_GETOPT=0
13151 if test -n "$gl_replace_getopt"; then :
13153 REPLACE_GETOPT=1
13158 if test $REPLACE_GETOPT = 1; then
13160 GETOPT_H=getopt.h
13162 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13168 if test $REPLACE_GETOPT = 1; then
13177 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13187 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13192 GNULIB_GL_UNISTD_H_GETOPT=1
13206 gl_gettimeofday_timezone=void
13207 if test $ac_cv_func_gettimeofday != yes; then
13208 HAVE_GETTIMEOFDAY=0
13209 else
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13214 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13215 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13216 $as_echo_n "(cached) " >&6
13217 else
13218 if test "$cross_compiling" = yes; then :
13219 # When cross-compiling:
13220 case "$host_os" in
13221 # Guess all is fine on glibc systems.
13222 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13223 # If we don't know, assume the worst.
13224 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13225 esac
13227 else
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 #include <string.h>
13231 #include <sys/time.h>
13232 #include <time.h>
13233 #include <stdlib.h>
13236 main ()
13239 time_t t = 0;
13240 struct tm *lt;
13241 struct tm saved_lt;
13242 struct timeval tv;
13243 lt = localtime (&t);
13244 saved_lt = *lt;
13245 gettimeofday (&tv, NULL);
13246 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13249 return 0;
13251 _ACEOF
13252 if ac_fn_c_try_run "$LINENO"; then :
13253 gl_cv_func_gettimeofday_clobber=no
13254 else
13255 gl_cv_func_gettimeofday_clobber=yes
13257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13258 conftest.$ac_objext conftest.beam conftest.$ac_ext
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13263 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13265 case "$gl_cv_func_gettimeofday_clobber" in
13266 *yes)
13267 REPLACE_GETTIMEOFDAY=1
13270 $as_echo "#define gmtime rpl_gmtime" >>confdefs.h
13273 $as_echo "#define localtime rpl_localtime" >>confdefs.h
13277 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13280 esac
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13283 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13284 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #include <sys/time.h>
13290 struct timeval c;
13291 int gettimeofday (struct timeval *restrict, void *restrict);
13294 main ()
13296 /* glibc uses struct timezone * rather than the POSIX void *
13297 if _GNU_SOURCE is defined. However, since the only portable
13298 use of gettimeofday uses NULL as the second parameter, and
13299 since the glibc definition is actually more typesafe, it is
13300 not worth wrapping this to get a compliant signature. */
13301 int (*f) (struct timeval *restrict, void *restrict)
13302 = gettimeofday;
13303 int x = f (&c, 0);
13304 return !(x | c.tv_sec | c.tv_usec);
13307 return 0;
13309 _ACEOF
13310 if ac_fn_c_try_compile "$LINENO"; then :
13311 gl_cv_func_gettimeofday_posix_signature=yes
13312 else
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315 #include <sys/time.h>
13316 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13319 main ()
13323 return 0;
13325 _ACEOF
13326 if ac_fn_c_try_compile "$LINENO"; then :
13327 gl_cv_func_gettimeofday_posix_signature=almost
13328 else
13329 gl_cv_func_gettimeofday_posix_signature=no
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13336 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13337 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13338 gl_gettimeofday_timezone='struct timezone'
13339 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13340 REPLACE_GETTIMEOFDAY=1
13342 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13343 REPLACE_GETTIMEOFDAY=1
13348 cat >>confdefs.h <<_ACEOF
13349 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13350 _ACEOF
13353 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13362 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13365 for ac_header in sys/timeb.h
13366 do :
13367 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13368 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13369 cat >>confdefs.h <<_ACEOF
13370 #define HAVE_SYS_TIMEB_H 1
13371 _ACEOF
13375 done
13377 for ac_func in _ftime
13378 do :
13379 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13380 if test "x$ac_cv_func__ftime" = x""yes; then :
13381 cat >>confdefs.h <<_ACEOF
13382 #define HAVE__FTIME 1
13383 _ACEOF
13386 done
13395 GNULIB_GETTIMEOFDAY=1
13407 if test $ac_cv_func_lstat = yes; then
13409 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13410 *no)
13411 REPLACE_LSTAT=1
13413 esac
13414 else
13415 HAVE_LSTAT=0
13418 if test $REPLACE_LSTAT = 1; then
13427 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13439 GNULIB_LSTAT=1
13451 if test $APPLE_UNIVERSAL_BUILD = 1; then
13452 # A universal build on Apple Mac OS X platforms.
13453 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
13454 # But we need a configuration result that is valid in both modes.
13455 gl_cv_func_working_mktime=no
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
13458 $as_echo_n "checking for working mktime... " >&6; }
13459 if test "${gl_cv_func_working_mktime+set}" = set; then :
13460 $as_echo_n "(cached) " >&6
13461 else
13462 if test "$cross_compiling" = yes; then :
13463 gl_cv_func_working_mktime=no
13464 else
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13467 /* Test program from Paul Eggert and Tony Leneis. */
13468 #include <limits.h>
13469 #include <stdlib.h>
13470 #include <time.h>
13472 #ifdef HAVE_UNISTD_H
13473 # include <unistd.h>
13474 #endif
13476 #ifndef HAVE_ALARM
13477 # define alarm(X) /* empty */
13478 #endif
13480 /* Work around redefinition to rpl_putenv by other config tests. */
13481 #undef putenv
13483 static time_t time_t_max;
13484 static time_t time_t_min;
13486 /* Values we'll use to set the TZ environment variable. */
13487 static char *tz_strings[] = {
13488 (char *) 0, "TZ=GMT0", "TZ=JST-9",
13489 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
13491 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
13493 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
13494 Based on a problem report from Andreas Jaeger. */
13495 static int
13496 spring_forward_gap ()
13498 /* glibc (up to about 1998-10-07) failed this test. */
13499 struct tm tm;
13501 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13502 instead of "TZ=America/Vancouver" in order to detect the bug even
13503 on systems that don't support the Olson extension, or don't have the
13504 full zoneinfo tables installed. */
13505 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13507 tm.tm_year = 98;
13508 tm.tm_mon = 3;
13509 tm.tm_mday = 5;
13510 tm.tm_hour = 2;
13511 tm.tm_min = 0;
13512 tm.tm_sec = 0;
13513 tm.tm_isdst = -1;
13514 return mktime (&tm) != (time_t) -1;
13517 static int
13518 mktime_test1 (time_t now)
13520 struct tm *lt;
13521 return ! (lt = localtime (&now)) || mktime (lt) == now;
13524 static int
13525 mktime_test (time_t now)
13527 return (mktime_test1 (now)
13528 && mktime_test1 ((time_t) (time_t_max - now))
13529 && mktime_test1 ((time_t) (time_t_min + now)));
13532 static int
13533 irix_6_4_bug ()
13535 /* Based on code from Ariel Faigon. */
13536 struct tm tm;
13537 tm.tm_year = 96;
13538 tm.tm_mon = 3;
13539 tm.tm_mday = 0;
13540 tm.tm_hour = 0;
13541 tm.tm_min = 0;
13542 tm.tm_sec = 0;
13543 tm.tm_isdst = -1;
13544 mktime (&tm);
13545 return tm.tm_mon == 2 && tm.tm_mday == 31;
13548 static int
13549 bigtime_test (int j)
13551 struct tm tm;
13552 time_t now;
13553 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
13554 now = mktime (&tm);
13555 if (now != (time_t) -1)
13557 struct tm *lt = localtime (&now);
13558 if (! (lt
13559 && lt->tm_year == tm.tm_year
13560 && lt->tm_mon == tm.tm_mon
13561 && lt->tm_mday == tm.tm_mday
13562 && lt->tm_hour == tm.tm_hour
13563 && lt->tm_min == tm.tm_min
13564 && lt->tm_sec == tm.tm_sec
13565 && lt->tm_yday == tm.tm_yday
13566 && lt->tm_wday == tm.tm_wday
13567 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
13568 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
13569 return 0;
13571 return 1;
13574 static int
13575 year_2050_test ()
13577 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
13578 ignoring leap seconds. */
13579 unsigned long int answer = 2527315200UL;
13581 struct tm tm;
13582 time_t t;
13583 tm.tm_year = 2050 - 1900;
13584 tm.tm_mon = 2 - 1;
13585 tm.tm_mday = 1;
13586 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
13587 tm.tm_isdst = -1;
13589 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
13590 instead of "TZ=America/Vancouver" in order to detect the bug even
13591 on systems that don't support the Olson extension, or don't have the
13592 full zoneinfo tables installed. */
13593 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
13595 t = mktime (&tm);
13597 /* Check that the result is either a failure, or close enough
13598 to the correct answer that we can assume the discrepancy is
13599 due to leap seconds. */
13600 return (t == (time_t) -1
13601 || (0 < t && answer - 120 <= t && t <= answer + 120));
13605 main ()
13607 int result = 0;
13608 time_t t, delta;
13609 int i, j;
13610 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
13611 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
13613 /* This test makes some buggy mktime implementations loop.
13614 Give up after 60 seconds; a mktime slower than that
13615 isn't worth using anyway. */
13616 alarm (60);
13618 time_t_max = (! time_t_signed
13619 ? (time_t) -1
13620 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
13621 * 2 + 1));
13622 time_t_min = (! time_t_signed
13623 ? (time_t) 0
13624 : time_t_signed_magnitude
13625 ? ~ (time_t) 0
13626 : ~ time_t_max);
13628 delta = time_t_max / 997; /* a suitable prime number */
13629 for (i = 0; i < N_STRINGS; i++)
13631 if (tz_strings[i])
13632 putenv (tz_strings[i]);
13634 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
13635 if (! mktime_test (t))
13636 result |= 1;
13637 if ((result & 2) == 0
13638 && ! (mktime_test ((time_t) 1)
13639 && mktime_test ((time_t) (60 * 60))
13640 && mktime_test ((time_t) (60 * 60 * 24))))
13641 result |= 2;
13643 for (j = 1; (result & 4) == 0; j <<= 1)
13645 if (! bigtime_test (j))
13646 result |= 4;
13647 if (INT_MAX / 2 < j)
13648 break;
13650 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
13651 result |= 8;
13653 if (! irix_6_4_bug ())
13654 result |= 16;
13655 if (! spring_forward_gap ())
13656 result |= 32;
13657 if (! year_2050_test ())
13658 result |= 64;
13659 return result;
13661 _ACEOF
13662 if ac_fn_c_try_run "$LINENO"; then :
13663 gl_cv_func_working_mktime=yes
13664 else
13665 gl_cv_func_working_mktime=no
13667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13668 conftest.$ac_objext conftest.beam conftest.$ac_ext
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
13674 $as_echo "$gl_cv_func_working_mktime" >&6; }
13676 if test $gl_cv_func_working_mktime = no; then
13677 REPLACE_MKTIME=1
13678 else
13679 REPLACE_MKTIME=0
13682 if test $REPLACE_MKTIME = 1; then
13691 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
13702 GNULIB_MKTIME=1
13714 if test $ac_cv_func_pselect = yes; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5
13716 $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; }
13717 if test "${gl_cv_sig_pselect+set}" = set; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 #include <sys/select.h>
13725 main ()
13727 int (*p) (int, fd_set *, fd_set *, fd_set *restrict,
13728 struct timespec const *restrict,
13729 sigset_t const *restrict) = pselect;
13730 return !p;
13732 return 0;
13734 _ACEOF
13735 if ac_fn_c_try_link "$LINENO"; then :
13736 gl_cv_sig_pselect=yes
13737 else
13738 gl_cv_sig_pselect=no
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5
13744 $as_echo "$gl_cv_sig_pselect" >&6; }
13747 if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
13748 REPLACE_PSELECT=1
13751 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
13760 gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext"
13768 GNULIB_PSELECT=1
13778 LIB_PTHREAD_SIGMASK=
13781 if test $ac_cv_func_pthread_sigmask = yes; then
13783 else
13784 HAVE_PTHREAD_SIGMASK=0
13785 REPLACE_PTHREAD_SIGMASK=1
13791 if test $HAVE_PTHREAD_SIGMASK = 1; then
13794 if test -z "$LIB_PTHREAD_SIGMASK"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5
13796 $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; }
13797 if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13801 if test "$cross_compiling" = yes; then :
13803 case "$host_os" in
13804 freebsd* | hpux* | solaris | solaris2.[2-9]*)
13805 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";;
13807 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";;
13808 esac
13810 else
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13814 #include <pthread.h>
13815 #include <signal.h>
13816 #include <stddef.h>
13817 int main ()
13819 sigset_t set;
13820 sigemptyset (&set);
13821 return pthread_sigmask (1729, &set, NULL) != 0;
13823 _ACEOF
13824 if ac_fn_c_try_run "$LINENO"; then :
13825 gl_cv_func_pthread_sigmask_in_libc_works=no
13826 else
13827 gl_cv_func_pthread_sigmask_in_libc_works=yes
13829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13830 conftest.$ac_objext conftest.beam conftest.$ac_ext
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5
13836 $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; }
13837 case "$gl_cv_func_pthread_sigmask_in_libc_works" in
13838 *no)
13839 REPLACE_PTHREAD_SIGMASK=1
13841 $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h
13844 esac
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5
13848 $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; }
13849 if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13853 gl_save_LIBS="$LIBS"
13854 LIBS="$LIBS $LIB_PTHREAD_SIGMASK"
13855 if test "$cross_compiling" = yes; then :
13856 case "$host_os" in
13857 cygwin*)
13858 gl_cv_func_pthread_sigmask_return_works="guessing no";;
13860 gl_cv_func_pthread_sigmask_return_works="guessing yes";;
13861 esac
13863 else
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13867 #include <pthread.h>
13868 #include <signal.h>
13869 #include <stddef.h>
13870 int main ()
13872 sigset_t set;
13873 sigemptyset (&set);
13874 if (pthread_sigmask (1729, &set, NULL) == -1)
13875 return 1;
13876 return 0;
13878 _ACEOF
13879 if ac_fn_c_try_run "$LINENO"; then :
13880 gl_cv_func_pthread_sigmask_return_works=yes
13881 else
13882 gl_cv_func_pthread_sigmask_return_works=no
13884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13885 conftest.$ac_objext conftest.beam conftest.$ac_ext
13888 LIBS="$gl_save_LIBS"
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5
13892 $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; }
13893 case "$gl_cv_func_pthread_sigmask_return_works" in
13894 *no)
13895 REPLACE_PTHREAD_SIGMASK=1
13897 $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h
13900 esac
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5
13903 $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; }
13904 if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13908 case "$host_os" in
13909 irix*)
13910 gl_cv_func_pthread_sigmask_unblock_works="guessing no";;
13912 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";;
13913 esac
13914 gl_save_LIBS="$LIBS"
13915 LIBS="$LIBS $LIBMULTITHREAD"
13916 if test "$cross_compiling" = yes; then :
13918 else
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13922 #include <pthread.h>
13923 #include <signal.h>
13924 #include <stdio.h>
13925 #include <stdlib.h>
13926 #include <unistd.h>
13927 static volatile int sigint_occurred;
13928 static void
13929 sigint_handler (int sig)
13931 sigint_occurred++;
13933 int main ()
13935 sigset_t set;
13936 int pid = getpid ();
13937 char command[80];
13938 signal (SIGINT, sigint_handler);
13939 sigemptyset (&set);
13940 sigaddset (&set, SIGINT);
13941 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0))
13942 return 1;
13943 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid);
13944 if (!(system (command) == 0))
13945 return 2;
13946 sleep (2);
13947 if (!(sigint_occurred == 0))
13948 return 3;
13949 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0))
13950 return 4;
13951 if (!(sigint_occurred == 1)) /* This fails on IRIX. */
13952 return 5;
13953 return 0;
13955 _ACEOF
13956 if ac_fn_c_try_run "$LINENO"; then :
13958 else
13959 gl_cv_func_pthread_sigmask_unblock_works=no
13961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13962 conftest.$ac_objext conftest.beam conftest.$ac_ext
13965 LIBS="$gl_save_LIBS"
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5
13969 $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; }
13970 case "$gl_cv_func_pthread_sigmask_unblock_works" in
13971 *no)
13972 REPLACE_PTHREAD_SIGMASK=1
13974 $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h
13977 esac
13980 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
13989 gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext"
13992 if test $HAVE_PTHREAD_SIGMASK = 1; then
13994 $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
14004 GNULIB_PTHREAD_SIGMASK=1
14013 if test $ac_cv_func_readlink = no; then
14014 HAVE_READLINK=0
14015 else
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14017 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14018 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023 #include <unistd.h>
14024 /* Cause compilation failure if original declaration has wrong type. */
14025 ssize_t readlink (const char *, char *, size_t);
14027 main ()
14031 return 0;
14033 _ACEOF
14034 if ac_fn_c_try_compile "$LINENO"; then :
14035 gl_cv_decl_readlink_works=yes
14036 else
14037 gl_cv_decl_readlink_works=no
14039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14042 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14044 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14045 if test "${gl_cv_func_readlink_works+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 # We have readlink, so assume ln -s works.
14049 ln -s conftest.no-such conftest.link
14050 ln -s conftest.link conftest.lnk2
14051 if test "$cross_compiling" = yes; then :
14052 case "$host_os" in
14053 # Guess yes on glibc systems.
14054 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14055 # If we don't know, assume the worst.
14056 *) gl_cv_func_readlink_works="guessing no" ;;
14057 esac
14059 else
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 #include <unistd.h>
14065 main ()
14067 char buf[20];
14068 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14070 return 0;
14072 _ACEOF
14073 if ac_fn_c_try_run "$LINENO"; then :
14074 gl_cv_func_readlink_works=yes
14075 else
14076 gl_cv_func_readlink_works=no
14078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14079 conftest.$ac_objext conftest.beam conftest.$ac_ext
14082 rm -f conftest.link conftest.lnk2
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14085 $as_echo "$gl_cv_func_readlink_works" >&6; }
14086 case "$gl_cv_func_readlink_works" in
14087 *yes)
14088 if test "$gl_cv_decl_readlink_works" != yes; then
14089 REPLACE_READLINK=1
14094 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14096 REPLACE_READLINK=1
14098 esac
14101 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
14110 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
14121 GNULIB_READLINK=1
14138 if test $gl_cv_have_include_next = yes; then
14139 gl_cv_next_signal_h='<'signal.h'>'
14140 else
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
14142 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
14143 if test "${gl_cv_next_signal_h+set}" = set; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <signal.h>
14151 _ACEOF
14152 case "$host_os" in
14153 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14154 *) gl_absname_cpp="$ac_cpp" ;;
14155 esac
14157 case "$host_os" in
14158 mingw*)
14159 gl_dirsep_regex='[/\\]'
14162 gl_dirsep_regex='\/'
14164 esac
14165 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14167 gl_header_literal_regex=`echo 'signal.h' \
14168 | sed -e "$gl_make_literal_regex_sed"`
14169 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14170 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14171 s|^/[^/]|//&|
14175 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14176 sed -n "$gl_absolute_header_sed"`'"'
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
14181 $as_echo "$gl_cv_next_signal_h" >&6; }
14183 NEXT_SIGNAL_H=$gl_cv_next_signal_h
14185 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14186 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14187 gl_next_as_first_directive='<'signal.h'>'
14188 else
14189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14190 gl_next_as_first_directive=$gl_cv_next_signal_h
14192 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
14198 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
14199 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
14200 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
14201 #include <signal.h>
14204 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
14206 else
14207 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
14216 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
14217 #include <signal.h>
14220 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
14222 else
14223 HAVE_SIGHANDLER_T=0
14229 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14230 /* <sys/types.h> is not needed according to POSIX, but the
14231 <sys/socket.h> in i386-unknown-freebsd4.10 and
14232 powerpc-apple-darwin5.5 required it. */
14233 #include <sys/types.h>
14234 #if HAVE_SYS_SOCKET_H
14235 # include <sys/socket.h>
14236 #elif HAVE_WS2TCPIP_H
14237 # include <ws2tcpip.h>
14238 #endif
14241 if test "x$ac_cv_type_socklen_t" = x""yes; then :
14243 else
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14245 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14246 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 # Systems have either "struct sockaddr *" or
14250 # "void *" as the second argument to getpeername
14251 gl_cv_socklen_t_equiv=
14252 for arg2 in "struct sockaddr" void; do
14253 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 #include <sys/types.h>
14257 #include <sys/socket.h>
14259 int getpeername (int, $arg2 *, $t *);
14261 main ()
14263 $t len;
14264 getpeername (0, 0, &len);
14266 return 0;
14268 _ACEOF
14269 if ac_fn_c_try_compile "$LINENO"; then :
14270 gl_cv_socklen_t_equiv="$t"
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 test "$gl_cv_socklen_t_equiv" != "" && break
14274 done
14275 test "$gl_cv_socklen_t_equiv" != "" && break
14276 done
14280 if test "$gl_cv_socklen_t_equiv" = ""; then
14281 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14284 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14286 cat >>confdefs.h <<_ACEOF
14287 #define socklen_t $gl_cv_socklen_t_equiv
14288 _ACEOF
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14294 $as_echo_n "checking for ssize_t... " >&6; }
14295 if test "${gt_cv_ssize_t+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
14297 else
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14300 #include <sys/types.h>
14302 main ()
14304 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14305 return !x;
14307 return 0;
14309 _ACEOF
14310 if ac_fn_c_try_compile "$LINENO"; then :
14311 gt_cv_ssize_t=yes
14312 else
14313 gt_cv_ssize_t=no
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14318 $as_echo "$gt_cv_ssize_t" >&6; }
14319 if test $gt_cv_ssize_t = no; then
14321 $as_echo "#define ssize_t int" >>confdefs.h
14330 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>
14331 #include <sys/stat.h>
14333 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then :
14335 cat >>confdefs.h <<_ACEOF
14336 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
14337 _ACEOF
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
14340 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
14341 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then :
14342 $as_echo_n "(cached) " >&6
14343 else
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14347 #include <sys/types.h>
14348 #include <sys/stat.h>
14349 #if HAVE_SYS_TIME_H
14350 # include <sys/time.h>
14351 #endif
14352 #include <time.h>
14353 struct timespec ts;
14354 struct stat st;
14357 main ()
14360 st.st_atim = ts;
14363 return 0;
14365 _ACEOF
14366 if ac_fn_c_try_compile "$LINENO"; then :
14367 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
14368 else
14369 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
14371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
14374 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
14375 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
14377 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
14380 else
14381 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>
14382 #include <sys/stat.h>
14384 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then :
14386 cat >>confdefs.h <<_ACEOF
14387 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
14388 _ACEOF
14391 else
14392 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
14393 #include <sys/stat.h>
14395 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
14397 cat >>confdefs.h <<_ACEOF
14398 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
14399 _ACEOF
14402 else
14403 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>
14404 #include <sys/stat.h>
14406 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then :
14408 cat >>confdefs.h <<_ACEOF
14409 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
14410 _ACEOF
14426 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>
14427 #include <sys/stat.h>
14429 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then :
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
14433 _ACEOF
14436 else
14437 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
14438 #include <sys/stat.h>
14440 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then :
14442 cat >>confdefs.h <<_ACEOF
14443 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
14444 _ACEOF
14447 else
14448 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>
14449 #include <sys/stat.h>
14451 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then :
14453 cat >>confdefs.h <<_ACEOF
14454 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
14455 _ACEOF
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
14467 $as_echo_n "checking for working stdalign.h... " >&6; }
14468 if test "${gl_cv_header_working_stdalign_h+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 #include <stdalign.h>
14474 #include <stddef.h>
14476 /* Test that alignof yields a result consistent with offsetof.
14477 This catches GCC bug 52023
14478 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
14479 #ifdef __cplusplus
14480 template <class t> struct alignof_helper { char a; t b; };
14481 # define ao(type) offsetof (alignof_helper<type>, b)
14482 #else
14483 # define ao(type) offsetof (struct { char a; type b; }, b)
14484 #endif
14485 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
14486 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
14487 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
14489 /* Test _Alignas only on platforms where gnulib can help. */
14490 #if \
14491 (__GNUC__ || __IBMC__ || __IBMCPP__ \
14492 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
14493 int alignas (8) alignas_int = 1;
14494 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
14495 #endif
14498 main ()
14502 return 0;
14504 _ACEOF
14505 if ac_fn_c_try_compile "$LINENO"; then :
14506 gl_cv_header_working_stdalign_h=yes
14507 else
14508 gl_cv_header_working_stdalign_h=no
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
14513 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
14515 if test $gl_cv_header_working_stdalign_h = yes; then
14516 STDALIGN_H=''
14517 else
14518 STDALIGN_H='stdalign.h'
14522 if test -n "$STDALIGN_H"; then
14523 GL_GENERATE_STDALIGN_H_TRUE=
14524 GL_GENERATE_STDALIGN_H_FALSE='#'
14525 else
14526 GL_GENERATE_STDALIGN_H_TRUE='#'
14527 GL_GENERATE_STDALIGN_H_FALSE=
14532 STDARG_H=''
14533 NEXT_STDARG_H='<stdarg.h>'
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14535 $as_echo_n "checking for va_copy... " >&6; }
14536 if test "${gl_cv_func_va_copy+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <stdarg.h>
14544 main ()
14547 #ifndef va_copy
14548 void (*func) (va_list, va_list) = va_copy;
14549 #endif
14552 return 0;
14554 _ACEOF
14555 if ac_fn_c_try_compile "$LINENO"; then :
14556 gl_cv_func_va_copy=yes
14557 else
14558 gl_cv_func_va_copy=no
14560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
14564 $as_echo "$gl_cv_func_va_copy" >&6; }
14565 if test $gl_cv_func_va_copy = no; then
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #if defined _AIX && !defined __GNUC__
14569 AIX vaccine
14570 #endif
14572 _ACEOF
14573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14574 $EGREP "vaccine" >/dev/null 2>&1; then :
14575 gl_aixcc=yes
14576 else
14577 gl_aixcc=no
14579 rm -f conftest*
14581 if test $gl_aixcc = yes; then
14582 STDARG_H=stdarg.h
14591 if test $gl_cv_have_include_next = yes; then
14592 gl_cv_next_stdarg_h='<'stdarg.h'>'
14593 else
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
14595 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
14596 if test "${gl_cv_next_stdarg_h+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14602 #include <stdarg.h>
14604 _ACEOF
14605 case "$host_os" in
14606 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14607 *) gl_absname_cpp="$ac_cpp" ;;
14608 esac
14610 case "$host_os" in
14611 mingw*)
14612 gl_dirsep_regex='[/\\]'
14615 gl_dirsep_regex='\/'
14617 esac
14618 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14620 gl_header_literal_regex=`echo 'stdarg.h' \
14621 | sed -e "$gl_make_literal_regex_sed"`
14622 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14623 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14624 s|^/[^/]|//&|
14628 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14629 sed -n "$gl_absolute_header_sed"`'"'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
14634 $as_echo "$gl_cv_next_stdarg_h" >&6; }
14636 NEXT_STDARG_H=$gl_cv_next_stdarg_h
14638 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14640 gl_next_as_first_directive='<'stdarg.h'>'
14641 else
14642 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14643 gl_next_as_first_directive=$gl_cv_next_stdarg_h
14645 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
14650 if test "$gl_cv_next_stdarg_h" = '""'; then
14651 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
14652 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
14654 else
14656 saved_as_echo_n="$as_echo_n"
14657 as_echo_n=':'
14658 if test "${gl_cv_func___va_copy+set}" = set; then :
14659 $as_echo_n "(cached) " >&6
14660 else
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14664 #include <stdarg.h>
14666 main ()
14669 #ifndef __va_copy
14670 error, bail out
14671 #endif
14674 return 0;
14676 _ACEOF
14677 if ac_fn_c_try_compile "$LINENO"; then :
14678 gl_cv_func___va_copy=yes
14679 else
14680 gl_cv_func___va_copy=no
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 as_echo_n="$saved_as_echo_n"
14687 if test $gl_cv_func___va_copy = yes; then
14689 $as_echo "#define va_copy __va_copy" >>confdefs.h
14691 else
14694 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
14700 if test -n "$STDARG_H"; then
14701 GL_GENERATE_STDARG_H_TRUE=
14702 GL_GENERATE_STDARG_H_FALSE='#'
14703 else
14704 GL_GENERATE_STDARG_H_TRUE='#'
14705 GL_GENERATE_STDARG_H_FALSE=
14713 # Define two additional variables used in the Makefile substitution.
14715 if test "$ac_cv_header_stdbool_h" = yes; then
14716 STDBOOL_H=''
14717 else
14718 STDBOOL_H='stdbool.h'
14721 if test -n "$STDBOOL_H"; then
14722 GL_GENERATE_STDBOOL_H_TRUE=
14723 GL_GENERATE_STDBOOL_H_FALSE='#'
14724 else
14725 GL_GENERATE_STDBOOL_H_TRUE='#'
14726 GL_GENERATE_STDBOOL_H_FALSE=
14730 if test "$ac_cv_type__Bool" = yes; then
14731 HAVE__BOOL=1
14732 else
14733 HAVE__BOOL=0
14740 STDDEF_H=
14741 if test $gt_cv_c_wchar_t = no; then
14742 HAVE_WCHAR_T=0
14743 STDDEF_H=stddef.h
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14746 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14747 if test "${gl_cv_decl_null_works+set}" = set; then :
14748 $as_echo_n "(cached) " >&6
14749 else
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752 #include <stddef.h>
14753 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14756 main ()
14760 return 0;
14762 _ACEOF
14763 if ac_fn_c_try_compile "$LINENO"; then :
14764 gl_cv_decl_null_works=yes
14765 else
14766 gl_cv_decl_null_works=no
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14771 $as_echo "$gl_cv_decl_null_works" >&6; }
14772 if test $gl_cv_decl_null_works = no; then
14773 REPLACE_NULL=1
14774 STDDEF_H=stddef.h
14777 if test -n "$STDDEF_H"; then
14778 GL_GENERATE_STDDEF_H_TRUE=
14779 GL_GENERATE_STDDEF_H_FALSE='#'
14780 else
14781 GL_GENERATE_STDDEF_H_TRUE='#'
14782 GL_GENERATE_STDDEF_H_FALSE=
14785 if test -n "$STDDEF_H"; then
14794 if test $gl_cv_have_include_next = yes; then
14795 gl_cv_next_stddef_h='<'stddef.h'>'
14796 else
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14798 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14799 if test "${gl_cv_next_stddef_h+set}" = set; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <stddef.h>
14807 _ACEOF
14808 case "$host_os" in
14809 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14810 *) gl_absname_cpp="$ac_cpp" ;;
14811 esac
14813 case "$host_os" in
14814 mingw*)
14815 gl_dirsep_regex='[/\\]'
14818 gl_dirsep_regex='\/'
14820 esac
14821 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14823 gl_header_literal_regex=`echo 'stddef.h' \
14824 | sed -e "$gl_make_literal_regex_sed"`
14825 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14826 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14827 s|^/[^/]|//&|
14831 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14832 sed -n "$gl_absolute_header_sed"`'"'
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14837 $as_echo "$gl_cv_next_stddef_h" >&6; }
14839 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14841 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14843 gl_next_as_first_directive='<'stddef.h'>'
14844 else
14845 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14846 gl_next_as_first_directive=$gl_cv_next_stddef_h
14848 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14867 if test $gl_cv_have_include_next = yes; then
14868 gl_cv_next_stdio_h='<'stdio.h'>'
14869 else
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14871 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
14872 if test "${gl_cv_next_stdio_h+set}" = set; then :
14873 $as_echo_n "(cached) " >&6
14874 else
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14878 #include <stdio.h>
14880 _ACEOF
14881 case "$host_os" in
14882 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14883 *) gl_absname_cpp="$ac_cpp" ;;
14884 esac
14886 case "$host_os" in
14887 mingw*)
14888 gl_dirsep_regex='[/\\]'
14891 gl_dirsep_regex='\/'
14893 esac
14894 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14896 gl_header_literal_regex=`echo 'stdio.h' \
14897 | sed -e "$gl_make_literal_regex_sed"`
14898 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14899 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14900 s|^/[^/]|//&|
14904 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14905 sed -n "$gl_absolute_header_sed"`'"'
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14910 $as_echo "$gl_cv_next_stdio_h" >&6; }
14912 NEXT_STDIO_H=$gl_cv_next_stdio_h
14914 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14916 gl_next_as_first_directive='<'stdio.h'>'
14917 else
14918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14919 gl_next_as_first_directive=$gl_cv_next_stdio_h
14921 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
14927 GNULIB_FSCANF=1
14930 cat >>confdefs.h <<_ACEOF
14931 #define GNULIB_FSCANF 1
14932 _ACEOF
14935 GNULIB_SCANF=1
14938 cat >>confdefs.h <<_ACEOF
14939 #define GNULIB_SCANF 1
14940 _ACEOF
14943 GNULIB_FGETC=1
14944 GNULIB_GETC=1
14945 GNULIB_GETCHAR=1
14946 GNULIB_FGETS=1
14947 GNULIB_FREAD=1
14950 GNULIB_FPRINTF=1
14951 GNULIB_PRINTF=1
14952 GNULIB_VFPRINTF=1
14953 GNULIB_VPRINTF=1
14954 GNULIB_FPUTC=1
14955 GNULIB_PUTC=1
14956 GNULIB_PUTCHAR=1
14957 GNULIB_FPUTS=1
14958 GNULIB_PUTS=1
14959 GNULIB_FWRITE=1
14975 if test $gl_cv_have_include_next = yes; then
14976 gl_cv_next_stdlib_h='<'stdlib.h'>'
14977 else
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
14979 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
14980 if test "${gl_cv_next_stdlib_h+set}" = set; then :
14981 $as_echo_n "(cached) " >&6
14982 else
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 #include <stdlib.h>
14988 _ACEOF
14989 case "$host_os" in
14990 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14991 *) gl_absname_cpp="$ac_cpp" ;;
14992 esac
14994 case "$host_os" in
14995 mingw*)
14996 gl_dirsep_regex='[/\\]'
14999 gl_dirsep_regex='\/'
15001 esac
15002 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15004 gl_header_literal_regex=`echo 'stdlib.h' \
15005 | sed -e "$gl_make_literal_regex_sed"`
15006 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15007 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15008 s|^/[^/]|//&|
15012 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15013 sed -n "$gl_absolute_header_sed"`'"'
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15018 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15020 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15022 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15024 gl_next_as_first_directive='<'stdlib.h'>'
15025 else
15026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15027 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15029 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15039 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15047 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15056 if test "$ac_cv_have_decl_strtoimax" != yes; then
15057 HAVE_DECL_STRTOIMAX=0
15060 if test $ac_cv_func_strtoimax = yes; then
15061 HAVE_STRTOIMAX=1
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5
15063 $as_echo_n "checking whether strtoimax works... " >&6; }
15064 if test "${gl_cv_func_strtoimax+set}" = set; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15067 if test "$cross_compiling" = yes; then :
15068 case "$host_os" in
15069 # Guess no on AIX 5.
15070 aix5*) gl_cv_func_strtoimax="guessing no" ;;
15071 # Guess yes otherwise.
15072 *) gl_cv_func_strtoimax="guessing yes" ;;
15073 esac
15075 else
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15079 #include <errno.h>
15080 #include <string.h>
15081 #include <inttypes.h>
15082 int main ()
15084 if (sizeof (intmax_t) > sizeof (int))
15086 const char *s = "4294967295";
15087 char *p;
15088 intmax_t res;
15089 errno = 0;
15090 res = strtoimax (s, &p, 10);
15091 if (p != s + strlen (s))
15092 return 1;
15093 if (errno != 0)
15094 return 2;
15095 if (res != (intmax_t) 65535 * (intmax_t) 65537)
15096 return 3;
15098 else
15100 const char *s = "2147483647";
15101 char *p;
15102 intmax_t res;
15103 errno = 0;
15104 res = strtoimax (s, &p, 10);
15105 if (p != s + strlen (s))
15106 return 1;
15107 if (errno != 0)
15108 return 2;
15109 if (res != 2147483647)
15110 return 3;
15112 return 0;
15115 _ACEOF
15116 if ac_fn_c_try_run "$LINENO"; then :
15117 gl_cv_func_strtoimax=yes
15118 else
15119 gl_cv_func_strtoimax=no
15121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15122 conftest.$ac_objext conftest.beam conftest.$ac_ext
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5
15128 $as_echo "$gl_cv_func_strtoimax" >&6; }
15129 case "$gl_cv_func_strtoimax" in
15130 *no) REPLACE_STRTOIMAX=1 ;;
15131 esac
15132 else
15133 HAVE_STRTOIMAX=0
15136 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
15145 gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext"
15148 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
15149 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
15150 ac_have_decl=1
15151 else
15152 ac_have_decl=0
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_DECL_STRTOLL $ac_have_decl
15157 _ACEOF
15167 GNULIB_STRTOIMAX=1
15177 if test "$ac_cv_have_decl_strtoumax" != yes; then
15178 HAVE_DECL_STRTOUMAX=0
15181 if test $ac_cv_func_strtoumax = no; then
15190 gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext"
15193 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
15194 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
15195 ac_have_decl=1
15196 else
15197 ac_have_decl=0
15200 cat >>confdefs.h <<_ACEOF
15201 #define HAVE_DECL_STRTOULL $ac_have_decl
15202 _ACEOF
15212 GNULIB_STRTOUMAX=1
15220 if test $ac_cv_func_symlink = no; then
15221 HAVE_SYMLINK=0
15222 else
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
15224 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
15225 if test "${gl_cv_func_symlink_works+set}" = set; then :
15226 $as_echo_n "(cached) " >&6
15227 else
15228 if test "$cross_compiling" = yes; then :
15229 case "$host_os" in
15230 # Guess yes on glibc systems.
15231 *-gnu*) gl_cv_func_symlink_works="guessing yes" ;;
15232 # If we don't know, assume the worst.
15233 *) gl_cv_func_symlink_works="guessing no" ;;
15234 esac
15236 else
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <unistd.h>
15242 main ()
15244 int result = 0;
15245 if (!symlink ("a", "conftest.link/"))
15246 result |= 1;
15247 if (symlink ("conftest.f", "conftest.lnk2"))
15248 result |= 2;
15249 else if (!symlink ("a", "conftest.lnk2/"))
15250 result |= 4;
15251 return result;
15254 return 0;
15256 _ACEOF
15257 if ac_fn_c_try_run "$LINENO"; then :
15258 gl_cv_func_symlink_works=yes
15259 else
15260 gl_cv_func_symlink_works=no
15262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15263 conftest.$ac_objext conftest.beam conftest.$ac_ext
15266 rm -f conftest.f conftest.link conftest.lnk2
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
15269 $as_echo "$gl_cv_func_symlink_works" >&6; }
15270 case "$gl_cv_func_symlink_works" in
15271 *yes) ;;
15273 REPLACE_SYMLINK=1
15275 esac
15278 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
15287 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
15295 GNULIB_SYMLINK=1
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
15305 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
15306 if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15312 #include <sys/select.h>
15314 main ()
15316 struct timeval b;
15318 return 0;
15320 _ACEOF
15321 if ac_fn_c_try_compile "$LINENO"; then :
15322 gl_cv_header_sys_select_h_selfcontained=yes
15323 else
15324 gl_cv_header_sys_select_h_selfcontained=no
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15329 /* end confdefs.h. */
15330 #include <sys/select.h>
15332 main ()
15334 int memset; int bzero;
15336 return 0;
15339 _ACEOF
15340 if ac_fn_c_try_compile "$LINENO"; then :
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343 #include <sys/select.h>
15345 main ()
15348 #undef memset
15349 #define memset nonexistent_memset
15350 extern
15351 #ifdef __cplusplus
15353 #endif
15354 void *memset (void *, int, unsigned long);
15355 #undef bzero
15356 #define bzero nonexistent_bzero
15357 extern
15358 #ifdef __cplusplus
15360 #endif
15361 void bzero (void *, unsigned long);
15362 fd_set fds;
15363 FD_ZERO (&fds);
15366 return 0;
15369 _ACEOF
15370 if ac_fn_c_try_link "$LINENO"; then :
15372 else
15373 gl_cv_header_sys_select_h_selfcontained=no
15375 rm -f core conftest.err conftest.$ac_objext \
15376 conftest$ac_exeext conftest.$ac_ext
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
15384 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
15394 if test $gl_cv_have_include_next = yes; then
15395 gl_cv_next_sys_select_h='<'sys/select.h'>'
15396 else
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
15398 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
15399 if test "${gl_cv_next_sys_select_h+set}" = set; then :
15400 $as_echo_n "(cached) " >&6
15401 else
15403 if test $ac_cv_header_sys_select_h = yes; then
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 #include <sys/select.h>
15410 _ACEOF
15411 case "$host_os" in
15412 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15413 *) gl_absname_cpp="$ac_cpp" ;;
15414 esac
15416 case "$host_os" in
15417 mingw*)
15418 gl_dirsep_regex='[/\\]'
15421 gl_dirsep_regex='\/'
15423 esac
15424 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15426 gl_header_literal_regex=`echo 'sys/select.h' \
15427 | sed -e "$gl_make_literal_regex_sed"`
15428 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15429 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15430 s|^/[^/]|//&|
15434 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15435 sed -n "$gl_absolute_header_sed"`'"'
15436 else
15437 gl_cv_next_sys_select_h='<'sys/select.h'>'
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
15443 $as_echo "$gl_cv_next_sys_select_h" >&6; }
15445 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
15447 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15448 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15449 gl_next_as_first_directive='<'sys/select.h'>'
15450 else
15451 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15452 gl_next_as_first_directive=$gl_cv_next_sys_select_h
15454 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
15459 if test $ac_cv_header_sys_select_h = yes; then
15460 HAVE_SYS_SELECT_H=1
15461 else
15462 HAVE_SYS_SELECT_H=0
15469 if test $ac_cv_header_sys_socket_h != yes; then
15470 for ac_header in winsock2.h
15471 do :
15472 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15473 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
15474 cat >>confdefs.h <<_ACEOF
15475 #define HAVE_WINSOCK2_H 1
15476 _ACEOF
15480 done
15483 if test "$ac_cv_header_winsock2_h" = yes; then
15484 HAVE_WINSOCK2_H=1
15485 UNISTD_H_HAVE_WINSOCK2_H=1
15486 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
15487 else
15488 HAVE_WINSOCK2_H=0
15512 if test $gl_cv_have_include_next = yes; then
15513 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15514 else
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15516 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15517 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15518 $as_echo_n "(cached) " >&6
15519 else
15521 if test $ac_cv_header_sys_stat_h = yes; then
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #include <sys/stat.h>
15528 _ACEOF
15529 case "$host_os" in
15530 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15531 *) gl_absname_cpp="$ac_cpp" ;;
15532 esac
15534 case "$host_os" in
15535 mingw*)
15536 gl_dirsep_regex='[/\\]'
15539 gl_dirsep_regex='\/'
15541 esac
15542 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15544 gl_header_literal_regex=`echo 'sys/stat.h' \
15545 | sed -e "$gl_make_literal_regex_sed"`
15546 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15547 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15548 s|^/[^/]|//&|
15552 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15553 sed -n "$gl_absolute_header_sed"`'"'
15554 else
15555 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15561 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15563 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15565 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15567 gl_next_as_first_directive='<'sys/stat.h'>'
15568 else
15569 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15570 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15572 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15584 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15586 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15590 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15591 #include <sys/stat.h>
15593 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15595 else
15597 $as_echo "#define nlink_t int" >>confdefs.h
15618 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
15620 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15621 ac_have_decl=1
15622 else
15623 ac_have_decl=0
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15628 _ACEOF
15630 if test $ac_cv_have_decl_localtime_r = no; then
15631 HAVE_DECL_LOCALTIME_R=0
15635 if test $ac_cv_func_localtime_r = yes; then
15636 HAVE_LOCALTIME_R=1
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15638 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15639 if test "${gl_cv_time_r_posix+set}" = set; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 #include <time.h>
15646 main ()
15648 /* We don't need to append 'restrict's to the argument types,
15649 even though the POSIX signature has the 'restrict's,
15650 since C99 says they can't affect type compatibility. */
15651 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15652 if (ptr) return 0;
15653 /* Check the return type is a pointer.
15654 On HP-UX 10 it is 'int'. */
15655 *localtime_r (0, 0);
15657 return 0;
15660 _ACEOF
15661 if ac_fn_c_try_compile "$LINENO"; then :
15662 gl_cv_time_r_posix=yes
15663 else
15664 gl_cv_time_r_posix=no
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15670 $as_echo "$gl_cv_time_r_posix" >&6; }
15671 if test $gl_cv_time_r_posix = yes; then
15672 REPLACE_LOCALTIME_R=0
15673 else
15674 REPLACE_LOCALTIME_R=1
15676 else
15677 HAVE_LOCALTIME_R=0
15680 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15689 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15700 GNULIB_TIME_R=1
15723 if test $gl_cv_have_include_next = yes; then
15724 gl_cv_next_unistd_h='<'unistd.h'>'
15725 else
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15727 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15728 if test "${gl_cv_next_unistd_h+set}" = set; then :
15729 $as_echo_n "(cached) " >&6
15730 else
15732 if test $ac_cv_header_unistd_h = yes; then
15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736 /* end confdefs.h. */
15737 #include <unistd.h>
15739 _ACEOF
15740 case "$host_os" in
15741 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15742 *) gl_absname_cpp="$ac_cpp" ;;
15743 esac
15745 case "$host_os" in
15746 mingw*)
15747 gl_dirsep_regex='[/\\]'
15750 gl_dirsep_regex='\/'
15752 esac
15753 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15755 gl_header_literal_regex=`echo 'unistd.h' \
15756 | sed -e "$gl_make_literal_regex_sed"`
15757 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15758 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15759 s|^/[^/]|//&|
15763 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15764 sed -n "$gl_absolute_header_sed"`'"'
15765 else
15766 gl_cv_next_unistd_h='<'unistd.h'>'
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15772 $as_echo "$gl_cv_next_unistd_h" >&6; }
15774 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15776 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15777 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15778 gl_next_as_first_directive='<'unistd.h'>'
15779 else
15780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15781 gl_next_as_first_directive=$gl_cv_next_unistd_h
15783 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15788 if test $ac_cv_header_unistd_h = yes; then
15789 HAVE_UNISTD_H=1
15790 else
15791 HAVE_UNISTD_H=0
15807 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
15809 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
15810 if test "${gl_cv_func_futimesat_works+set}" = set; then :
15811 $as_echo_n "(cached) " >&6
15812 else
15813 touch conftest.file
15814 if test "$cross_compiling" = yes; then :
15815 case "$host_os" in
15816 # Guess yes on glibc systems.
15817 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
15818 # If we don't know, assume the worst.
15819 *) gl_cv_func_futimesat_works="guessing no" ;;
15820 esac
15822 else
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15826 #include <stddef.h>
15827 #include <sys/times.h>
15828 #include <fcntl.h>
15831 main ()
15833 int fd = open ("conftest.file", O_RDWR);
15834 if (fd < 0) return 1;
15835 if (futimesat (fd, NULL, NULL)) return 2;
15838 return 0;
15840 _ACEOF
15841 if ac_fn_c_try_run "$LINENO"; then :
15842 gl_cv_func_futimesat_works=yes
15843 else
15844 gl_cv_func_futimesat_works=no
15846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15847 conftest.$ac_objext conftest.beam conftest.$ac_ext
15850 rm -f conftest.file
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
15853 $as_echo "$gl_cv_func_futimesat_works" >&6; }
15854 case "$gl_cv_func_futimesat_works" in
15855 *yes) ;;
15858 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
15861 esac
15864 gl_gnulib_enabled_dosname=false
15865 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
15866 gl_gnulib_enabled_pathmax=false
15867 gl_gnulib_enabled_stat=false
15868 gl_gnulib_enabled_strtoll=false
15869 gl_gnulib_enabled_strtoull=false
15870 gl_gnulib_enabled_verify=false
15871 func_gl_gnulib_m4code_dosname ()
15873 if ! $gl_gnulib_enabled_dosname; then
15874 gl_gnulib_enabled_dosname=true
15877 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
15879 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
15882 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
15885 func_gl_gnulib_m4code_pathmax ()
15887 if ! $gl_gnulib_enabled_pathmax; then
15891 gl_gnulib_enabled_pathmax=true
15894 func_gl_gnulib_m4code_stat ()
15896 if ! $gl_gnulib_enabled_stat; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15901 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15902 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15903 $as_echo_n "(cached) " >&6
15904 else
15905 if test "$cross_compiling" = yes; then :
15906 case $host_os in
15907 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15908 *) gl_cv_func_stat_dir_slash="guessing yes";;
15909 esac
15910 else
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15913 #include <sys/stat.h>
15916 main ()
15918 struct stat st; return stat (".", &st) != stat ("./", &st);
15920 return 0;
15922 _ACEOF
15923 if ac_fn_c_try_run "$LINENO"; then :
15924 gl_cv_func_stat_dir_slash=yes
15925 else
15926 gl_cv_func_stat_dir_slash=no
15928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15929 conftest.$ac_objext conftest.beam conftest.$ac_ext
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15934 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15936 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15937 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15938 $as_echo_n "(cached) " >&6
15939 else
15940 touch conftest.tmp
15941 # Assume that if we have lstat, we can also check symlinks.
15942 if test $ac_cv_func_lstat = yes; then
15943 ln -s conftest.tmp conftest.lnk
15945 if test "$cross_compiling" = yes; then :
15946 case "$host_os" in
15947 # Guess yes on glibc systems.
15948 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15949 # If we don't know, assume the worst.
15950 *) gl_cv_func_stat_file_slash="guessing no" ;;
15951 esac
15953 else
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 #include <sys/stat.h>
15959 main ()
15961 int result = 0;
15962 struct stat st;
15963 if (!stat ("conftest.tmp/", &st))
15964 result |= 1;
15965 #if HAVE_LSTAT
15966 if (!stat ("conftest.lnk/", &st))
15967 result |= 2;
15968 #endif
15969 return result;
15972 return 0;
15974 _ACEOF
15975 if ac_fn_c_try_run "$LINENO"; then :
15976 gl_cv_func_stat_file_slash=yes
15977 else
15978 gl_cv_func_stat_file_slash=no
15980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15981 conftest.$ac_objext conftest.beam conftest.$ac_ext
15984 rm -f conftest.tmp conftest.lnk
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15987 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
15988 case $gl_cv_func_stat_dir_slash in
15989 *no) REPLACE_STAT=1
15991 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15993 esac
15994 case $gl_cv_func_stat_file_slash in
15995 *no) REPLACE_STAT=1
15997 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
15999 esac
16001 if test $REPLACE_STAT = 1; then
16010 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16022 GNULIB_STAT=1
16028 gl_gnulib_enabled_stat=true
16029 if test $REPLACE_STAT = 1; then
16030 func_gl_gnulib_m4code_dosname
16032 if test $REPLACE_STAT = 1; then
16033 func_gl_gnulib_m4code_pathmax
16035 if test $REPLACE_STAT = 1; then
16036 func_gl_gnulib_m4code_verify
16040 func_gl_gnulib_m4code_strtoll ()
16042 if ! $gl_gnulib_enabled_strtoll; then
16046 if test "$ac_cv_type_long_long_int" = yes; then
16047 for ac_func in strtoll
16048 do :
16049 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
16050 if test "x$ac_cv_func_strtoll" = x""yes; then :
16051 cat >>confdefs.h <<_ACEOF
16052 #define HAVE_STRTOLL 1
16053 _ACEOF
16056 done
16058 if test $ac_cv_func_strtoll = no; then
16059 HAVE_STRTOLL=0
16063 if test $HAVE_STRTOLL = 0; then
16072 gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext"
16083 GNULIB_STRTOLL=1
16089 gl_gnulib_enabled_strtoll=true
16092 func_gl_gnulib_m4code_strtoull ()
16094 if ! $gl_gnulib_enabled_strtoull; then
16098 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16099 for ac_func in strtoull
16100 do :
16101 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
16102 if test "x$ac_cv_func_strtoull" = x""yes; then :
16103 cat >>confdefs.h <<_ACEOF
16104 #define HAVE_STRTOULL 1
16105 _ACEOF
16108 done
16110 if test $ac_cv_func_strtoull = no; then
16111 HAVE_STRTOULL=0
16115 if test $HAVE_STRTOULL = 0; then
16124 gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext"
16135 GNULIB_STRTOULL=1
16141 gl_gnulib_enabled_strtoull=true
16144 func_gl_gnulib_m4code_verify ()
16146 if ! $gl_gnulib_enabled_verify; then
16147 gl_gnulib_enabled_verify=true
16150 if test $REPLACE_GETOPT = 1; then
16151 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
16153 if test $REPLACE_LSTAT = 1; then
16154 func_gl_gnulib_m4code_dosname
16156 if test $REPLACE_LSTAT = 1; then
16157 func_gl_gnulib_m4code_stat
16159 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16160 func_gl_gnulib_m4code_stat
16162 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
16163 func_gl_gnulib_m4code_strtoll
16165 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
16166 func_gl_gnulib_m4code_verify
16168 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
16169 func_gl_gnulib_m4code_strtoull
16171 if test $ac_cv_func_strtoumax = no; then
16172 func_gl_gnulib_m4code_verify
16175 if $gl_gnulib_enabled_dosname; then
16176 gl_GNULIB_ENABLED_dosname_TRUE=
16177 gl_GNULIB_ENABLED_dosname_FALSE='#'
16178 else
16179 gl_GNULIB_ENABLED_dosname_TRUE='#'
16180 gl_GNULIB_ENABLED_dosname_FALSE=
16183 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
16184 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
16185 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
16186 else
16187 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
16188 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
16191 if $gl_gnulib_enabled_pathmax; then
16192 gl_GNULIB_ENABLED_pathmax_TRUE=
16193 gl_GNULIB_ENABLED_pathmax_FALSE='#'
16194 else
16195 gl_GNULIB_ENABLED_pathmax_TRUE='#'
16196 gl_GNULIB_ENABLED_pathmax_FALSE=
16199 if $gl_gnulib_enabled_stat; then
16200 gl_GNULIB_ENABLED_stat_TRUE=
16201 gl_GNULIB_ENABLED_stat_FALSE='#'
16202 else
16203 gl_GNULIB_ENABLED_stat_TRUE='#'
16204 gl_GNULIB_ENABLED_stat_FALSE=
16207 if $gl_gnulib_enabled_strtoll; then
16208 gl_GNULIB_ENABLED_strtoll_TRUE=
16209 gl_GNULIB_ENABLED_strtoll_FALSE='#'
16210 else
16211 gl_GNULIB_ENABLED_strtoll_TRUE='#'
16212 gl_GNULIB_ENABLED_strtoll_FALSE=
16215 if $gl_gnulib_enabled_strtoull; then
16216 gl_GNULIB_ENABLED_strtoull_TRUE=
16217 gl_GNULIB_ENABLED_strtoull_FALSE='#'
16218 else
16219 gl_GNULIB_ENABLED_strtoull_TRUE='#'
16220 gl_GNULIB_ENABLED_strtoull_FALSE=
16223 if $gl_gnulib_enabled_verify; then
16224 gl_GNULIB_ENABLED_verify_TRUE=
16225 gl_GNULIB_ENABLED_verify_FALSE='#'
16226 else
16227 gl_GNULIB_ENABLED_verify_TRUE='#'
16228 gl_GNULIB_ENABLED_verify_FALSE=
16231 # End of code from modules
16241 gltests_libdeps=
16242 gltests_ltlibdeps=
16252 gl_source_base='tests'
16253 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
16255 gl_module_indicator_condition=$gltests_WITNESS
16266 LIBGNU_LIBDEPS="$gl_libdeps"
16268 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16272 # Extract the first word of "pkg-config", so it can be a program name with args.
16273 set dummy pkg-config; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16277 $as_echo_n "(cached) " >&6
16278 else
16279 case $PKG_CONFIG in
16280 [\\/]* | ?:[\\/]*)
16281 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16285 for as_dir in $PATH
16287 IFS=$as_save_IFS
16288 test -z "$as_dir" && as_dir=.
16289 for ac_exec_ext in '' $ac_executable_extensions; do
16290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16291 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16293 break 2
16295 done
16296 done
16297 IFS=$as_save_IFS
16299 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16301 esac
16303 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16304 if test -n "$PKG_CONFIG"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16306 $as_echo "$PKG_CONFIG" >&6; }
16307 else
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16317 if test "${with_sound}" != "no"; then
16318 # Sound support for GNU/Linux and the free BSDs.
16319 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
16320 do :
16321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16322 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16323 eval as_val=\$$as_ac_Header
16324 if test "x$as_val" = x""yes; then :
16325 cat >>confdefs.h <<_ACEOF
16326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16327 _ACEOF
16328 have_sound_header=yes
16331 done
16333 # Emulation library used on NetBSD.
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
16335 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
16336 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16339 ac_check_lib_save_LIBS=$LIBS
16340 LIBS="-lossaudio $LIBS"
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16344 /* Override any GCC internal prototype to avoid an error.
16345 Use char because int might match the return type of a GCC
16346 builtin and then its argument prototype would still apply. */
16347 #ifdef __cplusplus
16348 extern "C"
16349 #endif
16350 char _oss_ioctl ();
16352 main ()
16354 return _oss_ioctl ();
16356 return 0;
16358 _ACEOF
16359 if ac_fn_c_try_link "$LINENO"; then :
16360 ac_cv_lib_ossaudio__oss_ioctl=yes
16361 else
16362 ac_cv_lib_ossaudio__oss_ioctl=no
16364 rm -f core conftest.err conftest.$ac_objext \
16365 conftest$ac_exeext conftest.$ac_ext
16366 LIBS=$ac_check_lib_save_LIBS
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
16369 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
16370 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
16371 LIBSOUND=-lossaudio
16372 else
16373 LIBSOUND=
16378 ALSA_REQUIRED=1.0.0
16379 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
16381 succeeded=no
16383 if test "$PKG_CONFIG" = "no" ; then
16384 HAVE_ALSA=no
16385 else
16386 PKG_CONFIG_MIN_VERSION=0.9.0
16387 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
16389 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
16391 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 &&
16392 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` &&
16393 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then
16394 edit_cflags="
16395 s,///*,/,g
16396 s/^/ /
16397 s/ -I/ $isystem/g
16398 s/^ //
16400 ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"`
16401 ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'`
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5
16403 $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; }
16404 succeeded=yes
16405 else
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407 $as_echo "no" >&6; }
16408 ALSA_CFLAGS=""
16409 ALSA_LIBS=""
16410 ## If we have a custom action on failure, don't print errors, but
16411 ## do set a variable so people can do so.
16412 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
16418 else
16419 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16420 echo "*** See http://www.freedesktop.org/software/pkgconfig"
16424 if test $succeeded = yes; then
16425 HAVE_ALSA=yes
16426 else
16427 HAVE_ALSA=no
16430 if test $HAVE_ALSA = yes; then
16431 SAVE_CFLAGS="$CFLAGS"
16432 SAVE_LIBS="$LIBS"
16433 CFLAGS="$ALSA_CFLAGS $CFLAGS"
16434 LIBS="$ALSA_LIBS $LIBS"
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16437 #include <asoundlib.h>
16439 main ()
16441 snd_lib_error_set_handler (0);
16443 return 0;
16445 _ACEOF
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447 emacs_alsa_normal=yes
16448 else
16449 emacs_alsa_normal=no
16451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 if test "$emacs_alsa_normal" != yes; then
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16455 #include <alsa/asoundlib.h>
16457 main ()
16459 snd_lib_error_set_handler (0);
16461 return 0;
16463 _ACEOF
16464 if ac_fn_c_try_compile "$LINENO"; then :
16465 emacs_alsa_subdir=yes
16466 else
16467 emacs_alsa_subdir=no
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 if test "$emacs_alsa_subdir" != yes; then
16471 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
16473 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
16476 CFLAGS="$SAVE_CFLAGS"
16477 LIBS="$SAVE_LIBS"
16478 LIBSOUND="$LIBSOUND $ALSA_LIBS"
16479 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
16481 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
16485 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
16486 case "$opsys" in
16487 gnu-linux|freebsd|netbsd)
16489 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
16492 esac
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
16527 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 #include <sys/personality.h>
16532 main ()
16534 personality (PER_LINUX32)
16536 return 0;
16538 _ACEOF
16539 if ac_fn_c_try_compile "$LINENO"; then :
16540 emacs_cv_personality_linux32=yes
16541 else
16542 emacs_cv_personality_linux32=no
16544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
16546 $as_echo "$emacs_cv_personality_linux32" >&6; }
16548 if test $emacs_cv_personality_linux32 = yes; then
16550 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
16554 for ac_header in term.h
16555 do :
16556 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
16557 if test "x$ac_cv_header_term_h" = x""yes; then :
16558 cat >>confdefs.h <<_ACEOF
16559 #define HAVE_TERM_H 1
16560 _ACEOF
16564 done
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16567 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16568 if test "${ac_cv_header_time+set}" = set; then :
16569 $as_echo_n "(cached) " >&6
16570 else
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 #include <sys/types.h>
16574 #include <sys/time.h>
16575 #include <time.h>
16578 main ()
16580 if ((struct tm *) 0)
16581 return 0;
16583 return 0;
16585 _ACEOF
16586 if ac_fn_c_try_compile "$LINENO"; then :
16587 ac_cv_header_time=yes
16588 else
16589 ac_cv_header_time=no
16591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16594 $as_echo "$ac_cv_header_time" >&6; }
16595 if test $ac_cv_header_time = yes; then
16597 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16601 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
16602 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
16603 ac_have_decl=1
16604 else
16605 ac_have_decl=0
16608 cat >>confdefs.h <<_ACEOF
16609 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16610 _ACEOF
16612 if test $ac_cv_have_decl_sys_siglist != yes; then
16613 # For Tru64, at least:
16614 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
16615 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
16616 ac_have_decl=1
16617 else
16618 ac_have_decl=0
16621 cat >>confdefs.h <<_ACEOF
16622 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16623 _ACEOF
16625 if test $ac_cv_have_decl___sys_siglist = yes; then
16627 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
16632 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
16633 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
16634 $as_echo_n "(cached) " >&6
16635 else
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637 /* end confdefs.h. */
16638 #include <sys/types.h>
16639 #include <sys/wait.h>
16640 #ifndef WEXITSTATUS
16641 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16642 #endif
16643 #ifndef WIFEXITED
16644 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16645 #endif
16648 main ()
16650 int s;
16651 wait (&s);
16652 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16654 return 0;
16656 _ACEOF
16657 if ac_fn_c_try_compile "$LINENO"; then :
16658 ac_cv_header_sys_wait_h=yes
16659 else
16660 ac_cv_header_sys_wait_h=no
16662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
16665 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
16666 if test $ac_cv_header_sys_wait_h = yes; then
16668 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
16674 $as_echo_n "checking for speed_t... " >&6; }
16675 if test "${emacs_cv_speed_t+set}" = set; then :
16676 $as_echo_n "(cached) " >&6
16677 else
16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679 /* end confdefs.h. */
16680 #include <termios.h>
16682 main ()
16684 speed_t x = 1;
16686 return 0;
16688 _ACEOF
16689 if ac_fn_c_try_compile "$LINENO"; then :
16690 emacs_cv_speed_t=yes
16691 else
16692 emacs_cv_speed_t=no
16694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
16697 $as_echo "$emacs_cv_speed_t" >&6; }
16698 if test $emacs_cv_speed_t = yes; then
16700 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
16705 $as_echo_n "checking for struct exception... " >&6; }
16706 if test "${emacs_cv_struct_exception+set}" = set; then :
16707 $as_echo_n "(cached) " >&6
16708 else
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 #include <math.h>
16713 main ()
16715 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
16717 return 0;
16719 _ACEOF
16720 if ac_fn_c_try_compile "$LINENO"; then :
16721 emacs_cv_struct_exception=yes
16722 else
16723 emacs_cv_struct_exception=no
16725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
16728 $as_echo "$emacs_cv_struct_exception" >&6; }
16729 HAVE_EXCEPTION=$emacs_cv_struct_exception
16730 if test $emacs_cv_struct_exception != yes; then
16732 $as_echo "#define NO_MATHERR 1" >>confdefs.h
16737 for ac_header in net/if.h
16738 do :
16739 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
16740 #if HAVE_SYS_SOCKET_H
16741 #include <sys/socket.h>
16742 #endif
16744 if test "x$ac_cv_header_net_if_h" = x""yes; then :
16745 cat >>confdefs.h <<_ACEOF
16746 #define HAVE_NET_IF_H 1
16747 _ACEOF
16751 done
16753 for ac_header in ifaddrs.h
16754 do :
16755 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default
16756 #if HAVE_SYS_SOCKET_H
16757 #include <sys/socket.h>
16758 #endif
16760 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
16761 cat >>confdefs.h <<_ACEOF
16762 #define HAVE_IFADDRS_H 1
16763 _ACEOF
16767 done
16769 for ac_header in net/if_dl.h
16770 do :
16771 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default
16772 #if HAVE_SYS_SOCKET_H
16773 #include <sys/socket.h>
16774 #endif
16776 if test "x$ac_cv_header_net_if_dl_h" = x""yes; then :
16777 cat >>confdefs.h <<_ACEOF
16778 #define HAVE_NET_IF_DL_H 1
16779 _ACEOF
16783 done
16786 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
16787 #if HAVE_SYS_SOCKET_H
16788 #include <sys/socket.h>
16789 #endif
16790 #if HAVE_NET_IF_H
16791 #include <net/if.h>
16792 #endif
16794 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
16796 cat >>confdefs.h <<_ACEOF
16797 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
16798 _ACEOF
16802 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
16803 #if HAVE_SYS_SOCKET_H
16804 #include <sys/socket.h>
16805 #endif
16806 #if HAVE_NET_IF_H
16807 #include <net/if.h>
16808 #endif
16810 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
16812 cat >>confdefs.h <<_ACEOF
16813 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16814 _ACEOF
16818 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
16819 #if HAVE_SYS_SOCKET_H
16820 #include <sys/socket.h>
16821 #endif
16822 #if HAVE_NET_IF_H
16823 #include <net/if.h>
16824 #endif
16826 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
16830 _ACEOF
16834 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
16835 #if HAVE_SYS_SOCKET_H
16836 #include <sys/socket.h>
16837 #endif
16838 #if HAVE_NET_IF_H
16839 #include <net/if.h>
16840 #endif
16842 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
16844 cat >>confdefs.h <<_ACEOF
16845 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
16846 _ACEOF
16850 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
16851 #if HAVE_SYS_SOCKET_H
16852 #include <sys/socket.h>
16853 #endif
16854 #if HAVE_NET_IF_H
16855 #include <net/if.h>
16856 #endif
16858 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
16860 cat >>confdefs.h <<_ACEOF
16861 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
16862 _ACEOF
16866 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default
16867 #if HAVE_SYS_SOCKET_H
16868 #include <sys/socket.h>
16869 #endif
16870 #if HAVE_NET_IF_H
16871 #include <net/if.h>
16872 #endif
16874 if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then :
16876 cat >>confdefs.h <<_ACEOF
16877 #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1
16878 _ACEOF
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
16886 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
16887 if test "${emacs_cv_attribute_aligned+set}" = set; then :
16888 $as_echo_n "(cached) " >&6
16889 else
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892 char __attribute__ ((__aligned__ (1 << 3))) c;
16894 main ()
16898 return 0;
16900 _ACEOF
16901 if ac_fn_c_try_compile "$LINENO"; then :
16902 emacs_cv_attribute_aligned=yes
16903 else
16904 emacs_cv_attribute_aligned=no
16906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
16909 $as_echo "$emacs_cv_attribute_aligned" >&6; }
16910 if test $emacs_cv_attribute_aligned = yes; then
16912 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
16917 DEPFLAGS=
16918 MKDEPDIR=":"
16919 deps_frag=deps.mk
16920 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
16922 $as_echo_n "checking whether we are using GNU Make... " >&6; }
16923 HAVE_GNU_MAKE=no
16924 testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
16925 if test "x$testval" != x; then
16926 HAVE_GNU_MAKE=yes
16927 else
16928 ac_enable_autodepend=no
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
16931 $as_echo "$HAVE_GNU_MAKE" >&6; }
16932 if test $HAVE_GNU_MAKE = yes; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
16934 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
16935 SAVE_CFLAGS="$CFLAGS"
16936 CFLAGS="$CFLAGS -MMD -MF deps.d -MP"
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16941 main ()
16945 return 0;
16947 _ACEOF
16948 if ac_fn_c_try_compile "$LINENO"; then :
16950 else
16951 ac_enable_autodepend=no
16953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16954 CFLAGS="$SAVE_CFLAGS"
16955 test -f deps.d || ac_enable_autodepend=no
16956 rm -rf deps.d
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
16958 $as_echo "$ac_enable_autodepend" >&6; }
16960 if test $ac_enable_autodepend = yes; then
16961 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP'
16962 ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe.
16963 MKDEPDIR='${MKDIR_P} ${DEPDIR}'
16964 deps_frag=autodeps.mk
16967 deps_frag=$srcdir/src/$deps_frag
16973 lisp_frag=$srcdir/src/lisp.mk
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
16978 $as_echo_n "checking for long file names... " >&6; }
16979 if test "${ac_cv_sys_long_file_names+set}" = set; then :
16980 $as_echo_n "(cached) " >&6
16981 else
16982 ac_cv_sys_long_file_names=yes
16983 # Test for long file names in all the places we know might matter:
16984 # . the current directory, where building will happen
16985 # $prefix/lib where we will be installing things
16986 # $exec_prefix/lib likewise
16987 # $TMPDIR if set, where it might want to write temporary files
16988 # /tmp where it might want to write temporary files
16989 # /var/tmp likewise
16990 # /usr/tmp likewise
16991 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
16992 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
16993 # in the usual case where exec_prefix is '${prefix}'.
16994 case $ac_dir in #(
16995 . | /* | ?:[\\/]*) ;; #(
16996 *) continue;;
16997 esac
16998 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
16999 ac_xdir=$ac_dir/cf$$
17000 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
17001 ac_tf1=$ac_xdir/conftest9012345
17002 ac_tf2=$ac_xdir/conftest9012346
17003 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
17004 ac_cv_sys_long_file_names=no
17005 rm -f -r "$ac_xdir" 2>/dev/null
17006 test $ac_cv_sys_long_file_names = no && break
17007 done
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
17010 $as_echo "$ac_cv_sys_long_file_names" >&6; }
17011 if test $ac_cv_sys_long_file_names = yes; then
17013 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
17018 #### Choose a window system.
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17021 $as_echo_n "checking for X... " >&6; }
17024 # Check whether --with-x was given.
17025 if test "${with_x+set}" = set; then :
17026 withval=$with_x;
17029 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17030 if test "x$with_x" = xno; then
17031 # The user explicitly disabled X.
17032 have_x=disabled
17033 else
17034 case $x_includes,$x_libraries in #(
17035 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
17036 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
17037 $as_echo_n "(cached) " >&6
17038 else
17039 # One or both of the vars are not set, and there is no cached value.
17040 ac_x_includes=no ac_x_libraries=no
17041 rm -f -r conftest.dir
17042 if mkdir conftest.dir; then
17043 cd conftest.dir
17044 cat >Imakefile <<'_ACEOF'
17045 incroot:
17046 @echo incroot='${INCROOT}'
17047 usrlibdir:
17048 @echo usrlibdir='${USRLIBDIR}'
17049 libdir:
17050 @echo libdir='${LIBDIR}'
17051 _ACEOF
17052 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17053 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17054 for ac_var in incroot usrlibdir libdir; do
17055 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17056 done
17057 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17058 for ac_extension in a so sl dylib la dll; do
17059 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17060 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17061 ac_im_usrlibdir=$ac_im_libdir; break
17063 done
17064 # Screen out bogus values from the imake configuration. They are
17065 # bogus both because they are the default anyway, and because
17066 # using them would break gcc on systems where it needs fixed includes.
17067 case $ac_im_incroot in
17068 /usr/include) ac_x_includes= ;;
17069 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17070 esac
17071 case $ac_im_usrlibdir in
17072 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
17073 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17074 esac
17076 cd ..
17077 rm -f -r conftest.dir
17080 # Standard set of common directories for X headers.
17081 # Check X11 before X11Rn because it is often a symlink to the current release.
17082 ac_x_header_dirs='
17083 /usr/X11/include
17084 /usr/X11R7/include
17085 /usr/X11R6/include
17086 /usr/X11R5/include
17087 /usr/X11R4/include
17089 /usr/include/X11
17090 /usr/include/X11R7
17091 /usr/include/X11R6
17092 /usr/include/X11R5
17093 /usr/include/X11R4
17095 /usr/local/X11/include
17096 /usr/local/X11R7/include
17097 /usr/local/X11R6/include
17098 /usr/local/X11R5/include
17099 /usr/local/X11R4/include
17101 /usr/local/include/X11
17102 /usr/local/include/X11R7
17103 /usr/local/include/X11R6
17104 /usr/local/include/X11R5
17105 /usr/local/include/X11R4
17107 /usr/X386/include
17108 /usr/x386/include
17109 /usr/XFree86/include/X11
17111 /usr/include
17112 /usr/local/include
17113 /usr/unsupported/include
17114 /usr/athena/include
17115 /usr/local/x11r5/include
17116 /usr/lpp/Xamples/include
17118 /usr/openwin/include
17119 /usr/openwin/share/include'
17121 if test "$ac_x_includes" = no; then
17122 # Guess where to find include files, by looking for Xlib.h.
17123 # First, try using that file with no special directory specified.
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17126 #include <X11/Xlib.h>
17127 _ACEOF
17128 if ac_fn_c_try_cpp "$LINENO"; then :
17129 # We can compile using X headers with no special include directory.
17130 ac_x_includes=
17131 else
17132 for ac_dir in $ac_x_header_dirs; do
17133 if test -r "$ac_dir/X11/Xlib.h"; then
17134 ac_x_includes=$ac_dir
17135 break
17137 done
17139 rm -f conftest.err conftest.$ac_ext
17140 fi # $ac_x_includes = no
17142 if test "$ac_x_libraries" = no; then
17143 # Check for the libraries.
17144 # See if we find them without any special options.
17145 # Don't add to $LIBS permanently.
17146 ac_save_LIBS=$LIBS
17147 LIBS="-lX11 $LIBS"
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17150 #include <X11/Xlib.h>
17152 main ()
17154 XrmInitialize ()
17156 return 0;
17158 _ACEOF
17159 if ac_fn_c_try_link "$LINENO"; then :
17160 LIBS=$ac_save_LIBS
17161 # We can link X programs with no special library path.
17162 ac_x_libraries=
17163 else
17164 LIBS=$ac_save_LIBS
17165 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17167 # Don't even attempt the hair of trying to link an X program!
17168 for ac_extension in a so sl dylib la dll; do
17169 if test -r "$ac_dir/libX11.$ac_extension"; then
17170 ac_x_libraries=$ac_dir
17171 break 2
17173 done
17174 done
17176 rm -f core conftest.err conftest.$ac_objext \
17177 conftest$ac_exeext conftest.$ac_ext
17178 fi # $ac_x_libraries = no
17180 case $ac_x_includes,$ac_x_libraries in #(
17181 no,* | *,no | *\'*)
17182 # Didn't find X, or a directory has "'" in its name.
17183 ac_cv_have_x="have_x=no";; #(
17185 # Record where we found X for the cache.
17186 ac_cv_have_x="have_x=yes\
17187 ac_x_includes='$ac_x_includes'\
17188 ac_x_libraries='$ac_x_libraries'"
17189 esac
17191 ;; #(
17192 *) have_x=yes;;
17193 esac
17194 eval "$ac_cv_have_x"
17195 fi # $with_x != no
17197 if test "$have_x" != yes; then
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17199 $as_echo "$have_x" >&6; }
17200 no_x=yes
17201 else
17202 # If each of the values was on the command line, it overrides each guess.
17203 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17204 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17205 # Update the cache value to reflect the command line values.
17206 ac_cv_have_x="have_x=yes\
17207 ac_x_includes='$x_includes'\
17208 ac_x_libraries='$x_libraries'"
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17210 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17213 if test "$no_x" = yes; then
17214 window_system=none
17215 else
17216 window_system=x11
17219 LD_SWITCH_X_SITE_RPATH=
17220 if test "${x_libraries}" != NONE; then
17221 if test -n "${x_libraries}"; then
17222 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
17223 LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"`
17225 x_default_search_path=""
17226 x_search_path=${x_libraries}
17227 if test -z "${x_search_path}"; then
17228 x_search_path=/usr/lib
17230 for x_library in `echo ${x_search_path}: | \
17231 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
17232 x_search_path="\
17233 ${x_library}/X11/%L/%T/%N%C%S:\
17234 ${x_library}/X11/%l/%T/%N%C%S:\
17235 ${x_library}/X11/%T/%N%C%S:\
17236 ${x_library}/X11/%L/%T/%N%S:\
17237 ${x_library}/X11/%l/%T/%N%S:\
17238 ${x_library}/X11/%T/%N%S"
17239 if test x"${x_default_search_path}" = x; then
17240 x_default_search_path=${x_search_path}
17241 else
17242 x_default_search_path="${x_search_path}:${x_default_search_path}"
17244 done
17248 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
17249 C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"`
17252 if test x"${x_includes}" = x; then
17253 bitmapdir=/usr/include/X11/bitmaps
17254 else
17255 # accumulate include directories that have X11 bitmap subdirectories
17256 bmd_acc="dummyval"
17257 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
17258 if test -d "${bmd}/X11/bitmaps"; then
17259 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
17261 if test -d "${bmd}/bitmaps"; then
17262 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
17264 done
17265 if test ${bmd_acc} != "dummyval"; then
17266 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
17270 HAVE_NS=no
17271 NS_IMPL_COCOA=no
17272 NS_IMPL_GNUSTEP=no
17273 tmp_CPPFLAGS="$CPPFLAGS"
17274 tmp_CFLAGS="$CFLAGS"
17275 CPPFLAGS="$CPPFLAGS -x objective-c"
17276 CFLAGS="$CFLAGS -x objective-c"
17277 TEMACS_LDFLAGS2="\${LDFLAGS}"
17278 GNU_OBJC_CFLAGS=
17279 if test "${with_ns}" != no; then
17280 if test "${opsys}" = darwin; then
17281 NS_IMPL_COCOA=yes
17282 ns_appdir=`pwd`/nextstep/Emacs.app
17283 ns_appbindir=${ns_appdir}/Contents/MacOS
17284 ns_appresdir=${ns_appdir}/Contents/Resources
17285 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
17286 elif test -f $GNUSTEP_CONFIG_FILE; then
17287 NS_IMPL_GNUSTEP=yes
17288 ns_appdir=`pwd`/nextstep/Emacs.app
17289 ns_appbindir=${ns_appdir}
17290 ns_appresdir=${ns_appdir}/Resources
17291 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
17292 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
17293 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
17294 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
17295 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
17296 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
17297 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
17298 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
17299 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
17300 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17301 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
17302 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
17303 LIB_STANDARD=
17304 START_FILES=
17305 TEMACS_LDFLAGS2=
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5
17307 $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; }
17308 if test "${emacs_cv_objc_exceptions+set}" = set; then :
17309 $as_echo_n "(cached) " >&6
17310 else
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17313 #include <GNUstepBase/GSConfig.h>
17315 main ()
17317 #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0
17319 #else
17320 fail;
17321 #endif
17323 return 0;
17325 _ACEOF
17326 if ac_fn_c_try_compile "$LINENO"; then :
17327 emacs_cv_objc_exceptions=yes
17328 else
17329 emacs_cv_objc_exceptions=no
17331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5
17334 $as_echo "$emacs_cv_objc_exceptions" >&6; }
17335 if test $emacs_cv_objc_exceptions = yes; then
17337 $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h
17339 GNU_OBJC_CFLAGS="-fobjc-exceptions"
17343 CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS"
17345 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
17346 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
17347 HAVE_NS=yes
17348 else
17349 as_fn_error "\`--with-ns' was specified, but the include
17350 files are missing or cannot be compiled." "$LINENO" 5
17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356 #include <Foundation/NSObjCRuntime.h>
17358 main ()
17360 NSInteger i;
17362 return 0;
17364 _ACEOF
17365 if ac_fn_c_try_compile "$LINENO"; then :
17366 ns_have_nsinteger=yes
17367 else
17368 ns_have_nsinteger=no
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371 if test $ns_have_nsinteger = yes; then
17373 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
17379 INSTALL_ARCH_INDEP_EXTRA=install-etc
17380 ns_self_contained=no
17381 ns_frag=/dev/null
17382 NS_OBJ=
17383 NS_OBJC_OBJ=
17384 if test "${HAVE_NS}" = yes; then
17385 if test "$with_toolkit_scroll_bars" = "no"; then
17386 as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5
17389 window_system=nextstep
17390 with_xft=no
17391 # set up packaging dirs
17392 if test "${EN_NS_SELF_CONTAINED}" = yes; then
17393 ns_self_contained=yes
17394 prefix=${ns_appresdir}
17395 exec_prefix=${ns_appbindir}
17396 libexecdir="\${ns_appbindir}/libexec"
17397 archlibdir="\${ns_appbindir}/libexec"
17398 docdir="\${ns_appresdir}/etc"
17399 etcdir="\${ns_appresdir}/etc"
17400 infodir="\${ns_appresdir}/info"
17401 mandir="\${ns_appresdir}/man"
17402 lispdir="\${ns_appresdir}/lisp"
17403 leimdir="\${ns_appresdir}/leim"
17404 INSTALL_ARCH_INDEP_EXTRA=
17406 ns_frag=$srcdir/src/ns.mk
17407 NS_OBJ="fontset.o fringe.o image.o"
17408 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
17410 CFLAGS="$tmp_CFLAGS"
17411 CPPFLAGS="$tmp_CPPFLAGS"
17419 case "${window_system}" in
17420 x11 )
17421 HAVE_X_WINDOWS=yes
17422 HAVE_X11=yes
17423 case "${with_x_toolkit}" in
17424 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
17425 motif ) USE_X_TOOLKIT=MOTIF ;;
17426 gtk ) with_gtk=yes
17427 USE_X_TOOLKIT=none ;;
17428 gtk3 ) with_gtk3=yes
17429 USE_X_TOOLKIT=none ;;
17430 no ) USE_X_TOOLKIT=none ;;
17431 * ) USE_X_TOOLKIT=maybe ;;
17432 esac
17434 nextstep | none )
17435 HAVE_X_WINDOWS=no
17436 HAVE_X11=no
17437 USE_X_TOOLKIT=none
17439 esac
17441 if test "$window_system" = none && test "X$with_x" != "Xno"; then
17442 # Extract the first word of "X", so it can be a program name with args.
17443 set dummy X; ac_word=$2
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17445 $as_echo_n "checking for $ac_word... " >&6; }
17446 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
17447 $as_echo_n "(cached) " >&6
17448 else
17449 if test -n "$HAVE_XSERVER"; then
17450 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
17451 else
17452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17453 for as_dir in $PATH
17455 IFS=$as_save_IFS
17456 test -z "$as_dir" && as_dir=.
17457 for ac_exec_ext in '' $ac_executable_extensions; do
17458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17459 ac_cv_prog_HAVE_XSERVER="true"
17460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17461 break 2
17463 done
17464 done
17465 IFS=$as_save_IFS
17467 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
17470 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
17471 if test -n "$HAVE_XSERVER"; then
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
17473 $as_echo "$HAVE_XSERVER" >&6; }
17474 else
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476 $as_echo "no" >&6; }
17480 if test "$HAVE_XSERVER" = true ||
17481 test -n "$DISPLAY" ||
17482 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
17483 as_fn_error "You seem to be running X, but no X development libraries
17484 were found. You should install the relevant development files for X
17485 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
17486 sure you have development files for image handling, i.e.
17487 tiff, gif, jpeg, png and xpm.
17488 If you are sure you want Emacs compiled without X window support, pass
17489 --without-x
17490 to configure." "$LINENO" 5
17494 ### If we're using X11, we should use the X menu package.
17495 HAVE_MENUS=no
17496 case ${HAVE_X11} in
17497 yes ) HAVE_MENUS=yes ;;
17498 esac
17500 # Does the opsystem file prohibit the use of the GNU malloc?
17501 # Assume not, until told otherwise.
17502 GNU_MALLOC=yes
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5
17505 $as_echo_n "checking whether malloc is Doug Lea style... " >&6; }
17506 if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then :
17507 $as_echo_n "(cached) " >&6
17508 else
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511 #include <malloc.h>
17512 static void hook (void) {}
17514 main ()
17516 malloc_set_state (malloc_get_state ());
17517 __after_morecore_hook = hook;
17518 __malloc_initialize_hook = hook;
17520 return 0;
17522 _ACEOF
17523 if ac_fn_c_try_link "$LINENO"; then :
17524 emacs_cv_var_doug_lea_malloc=yes
17525 else
17526 emacs_cv_var_doug_lea_malloc=no
17528 rm -f core conftest.err conftest.$ac_objext \
17529 conftest$ac_exeext conftest.$ac_ext
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5
17532 $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; }
17533 doug_lea_malloc=$emacs_cv_var_doug_lea_malloc
17536 system_malloc=no
17537 case "$opsys" in
17538 ## darwin ld insists on the use of malloc routines in the System framework.
17539 darwin|sol2-10) system_malloc=yes ;;
17540 esac
17542 if test "${system_malloc}" = "yes"; then
17544 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
17546 GNU_MALLOC=no
17547 GNU_MALLOC_reason="
17548 (The GNU allocators don't work with this system configuration.)"
17549 GMALLOC_OBJ=
17550 VMLIMIT_OBJ=
17551 else
17552 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
17553 VMLIMIT_OBJ=vm-limit.o
17558 if test "$doug_lea_malloc" = "yes" ; then
17559 if test "$GNU_MALLOC" = yes ; then
17560 GNU_MALLOC_reason="
17561 (Using Doug Lea's new malloc from the GNU C Library.)"
17564 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
17567 ## Use mmap directly for allocating larger buffers.
17568 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
17569 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
17570 ## Does the AC_FUNC_MMAP test below make this check unnecessary?
17571 case "$opsys" in
17572 gnu*) REL_ALLOC=no ;;
17573 esac
17576 if test x"${REL_ALLOC}" = x; then
17577 REL_ALLOC=${GNU_MALLOC}
17580 use_mmap_for_buffers=no
17581 case "$opsys" in
17582 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
17583 esac
17588 for ac_func in getpagesize
17589 do :
17590 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
17591 if test "x$ac_cv_func_getpagesize" = x""yes; then :
17592 cat >>confdefs.h <<_ACEOF
17593 #define HAVE_GETPAGESIZE 1
17594 _ACEOF
17597 done
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17600 $as_echo_n "checking for working mmap... " >&6; }
17601 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
17602 $as_echo_n "(cached) " >&6
17603 else
17604 if test "$cross_compiling" = yes; then :
17605 ac_cv_func_mmap_fixed_mapped=no
17606 else
17607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17608 /* end confdefs.h. */
17609 $ac_includes_default
17610 /* malloc might have been renamed as rpl_malloc. */
17611 #undef malloc
17613 /* Thanks to Mike Haertel and Jim Avera for this test.
17614 Here is a matrix of mmap possibilities:
17615 mmap private not fixed
17616 mmap private fixed at somewhere currently unmapped
17617 mmap private fixed at somewhere already mapped
17618 mmap shared not fixed
17619 mmap shared fixed at somewhere currently unmapped
17620 mmap shared fixed at somewhere already mapped
17621 For private mappings, we should verify that changes cannot be read()
17622 back from the file, nor mmap's back from the file at a different
17623 address. (There have been systems where private was not correctly
17624 implemented like the infamous i386 svr4.0, and systems where the
17625 VM page cache was not coherent with the file system buffer cache
17626 like early versions of FreeBSD and possibly contemporary NetBSD.)
17627 For shared mappings, we should conversely verify that changes get
17628 propagated back to all the places they're supposed to be.
17630 Grep wants private fixed already mapped.
17631 The main things grep needs to know about mmap are:
17632 * does it exist and is it safe to write into the mmap'd area
17633 * how to use it (BSD variants) */
17635 #include <fcntl.h>
17636 #include <sys/mman.h>
17638 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17639 char *malloc ();
17640 #endif
17642 /* This mess was copied from the GNU getpagesize.h. */
17643 #ifndef HAVE_GETPAGESIZE
17644 # ifdef _SC_PAGESIZE
17645 # define getpagesize() sysconf(_SC_PAGESIZE)
17646 # else /* no _SC_PAGESIZE */
17647 # ifdef HAVE_SYS_PARAM_H
17648 # include <sys/param.h>
17649 # ifdef EXEC_PAGESIZE
17650 # define getpagesize() EXEC_PAGESIZE
17651 # else /* no EXEC_PAGESIZE */
17652 # ifdef NBPG
17653 # define getpagesize() NBPG * CLSIZE
17654 # ifndef CLSIZE
17655 # define CLSIZE 1
17656 # endif /* no CLSIZE */
17657 # else /* no NBPG */
17658 # ifdef NBPC
17659 # define getpagesize() NBPC
17660 # else /* no NBPC */
17661 # ifdef PAGESIZE
17662 # define getpagesize() PAGESIZE
17663 # endif /* PAGESIZE */
17664 # endif /* no NBPC */
17665 # endif /* no NBPG */
17666 # endif /* no EXEC_PAGESIZE */
17667 # else /* no HAVE_SYS_PARAM_H */
17668 # define getpagesize() 8192 /* punt totally */
17669 # endif /* no HAVE_SYS_PARAM_H */
17670 # endif /* no _SC_PAGESIZE */
17672 #endif /* no HAVE_GETPAGESIZE */
17675 main ()
17677 char *data, *data2, *data3;
17678 const char *cdata2;
17679 int i, pagesize;
17680 int fd, fd2;
17682 pagesize = getpagesize ();
17684 /* First, make a file with some known garbage in it. */
17685 data = (char *) malloc (pagesize);
17686 if (!data)
17687 return 1;
17688 for (i = 0; i < pagesize; ++i)
17689 *(data + i) = rand ();
17690 umask (0);
17691 fd = creat ("conftest.mmap", 0600);
17692 if (fd < 0)
17693 return 2;
17694 if (write (fd, data, pagesize) != pagesize)
17695 return 3;
17696 close (fd);
17698 /* Next, check that the tail of a page is zero-filled. File must have
17699 non-zero length, otherwise we risk SIGBUS for entire page. */
17700 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17701 if (fd2 < 0)
17702 return 4;
17703 cdata2 = "";
17704 if (write (fd2, cdata2, 1) != 1)
17705 return 5;
17706 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17707 if (data2 == MAP_FAILED)
17708 return 6;
17709 for (i = 0; i < pagesize; ++i)
17710 if (*(data2 + i))
17711 return 7;
17712 close (fd2);
17713 if (munmap (data2, pagesize))
17714 return 8;
17716 /* Next, try to mmap the file at a fixed address which already has
17717 something else allocated at it. If we can, also make sure that
17718 we see the same garbage. */
17719 fd = open ("conftest.mmap", O_RDWR);
17720 if (fd < 0)
17721 return 9;
17722 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17723 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17724 return 10;
17725 for (i = 0; i < pagesize; ++i)
17726 if (*(data + i) != *(data2 + i))
17727 return 11;
17729 /* Finally, make sure that changes to the mapped area do not
17730 percolate back to the file as seen by read(). (This is a bug on
17731 some variants of i386 svr4.0.) */
17732 for (i = 0; i < pagesize; ++i)
17733 *(data2 + i) = *(data2 + i) + 1;
17734 data3 = (char *) malloc (pagesize);
17735 if (!data3)
17736 return 12;
17737 if (read (fd, data3, pagesize) != pagesize)
17738 return 13;
17739 for (i = 0; i < pagesize; ++i)
17740 if (*(data + i) != *(data3 + i))
17741 return 14;
17742 close (fd);
17743 return 0;
17745 _ACEOF
17746 if ac_fn_c_try_run "$LINENO"; then :
17747 ac_cv_func_mmap_fixed_mapped=yes
17748 else
17749 ac_cv_func_mmap_fixed_mapped=no
17751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17752 conftest.$ac_objext conftest.beam conftest.$ac_ext
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17757 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17758 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17760 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17763 rm -f conftest.mmap conftest.txt
17765 if test $use_mmap_for_buffers = yes; then
17767 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
17769 REL_ALLOC=no
17772 LIBS="$LIBS_SYSTEM $LIBS"
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17775 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
17776 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
17777 $as_echo_n "(cached) " >&6
17778 else
17779 ac_check_lib_save_LIBS=$LIBS
17780 LIBS="-ldnet $LIBS"
17781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h. */
17784 /* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 char dnet_ntoa ();
17792 main ()
17794 return dnet_ntoa ();
17796 return 0;
17798 _ACEOF
17799 if ac_fn_c_try_link "$LINENO"; then :
17800 ac_cv_lib_dnet_dnet_ntoa=yes
17801 else
17802 ac_cv_lib_dnet_dnet_ntoa=no
17804 rm -f core conftest.err conftest.$ac_objext \
17805 conftest$ac_exeext conftest.$ac_ext
17806 LIBS=$ac_check_lib_save_LIBS
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17809 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17810 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
17811 cat >>confdefs.h <<_ACEOF
17812 #define HAVE_LIBDNET 1
17813 _ACEOF
17815 LIBS="-ldnet $LIBS"
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
17821 $as_echo_n "checking for main in -lXbsd... " >&6; }
17822 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
17823 $as_echo_n "(cached) " >&6
17824 else
17825 ac_check_lib_save_LIBS=$LIBS
17826 LIBS="-lXbsd $LIBS"
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17832 main ()
17834 return main ();
17836 return 0;
17838 _ACEOF
17839 if ac_fn_c_try_link "$LINENO"; then :
17840 ac_cv_lib_Xbsd_main=yes
17841 else
17842 ac_cv_lib_Xbsd_main=no
17844 rm -f core conftest.err conftest.$ac_objext \
17845 conftest$ac_exeext conftest.$ac_ext
17846 LIBS=$ac_check_lib_save_LIBS
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
17849 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
17850 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
17851 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
17855 LIB_PTHREAD=
17859 if test "$ac_cv_header_pthread_h"; then
17860 if test "$GMALLOC_OBJ" = gmalloc.o; then
17861 emacs_pthread_function=pthread_atfork
17862 else
17863 emacs_pthread_function=pthread_self
17865 as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh`
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5
17867 $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; }
17868 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
17869 $as_echo_n "(cached) " >&6
17870 else
17871 ac_check_lib_save_LIBS=$LIBS
17872 LIBS="-lpthread $LIBS"
17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874 /* end confdefs.h. */
17876 /* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879 #ifdef __cplusplus
17880 extern "C"
17881 #endif
17882 char $emacs_pthread_function ();
17884 main ()
17886 return $emacs_pthread_function ();
17888 return 0;
17890 _ACEOF
17891 if ac_fn_c_try_link "$LINENO"; then :
17892 eval "$as_ac_Lib=yes"
17893 else
17894 eval "$as_ac_Lib=no"
17896 rm -f core conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17898 LIBS=$ac_check_lib_save_LIBS
17900 eval ac_res=\$$as_ac_Lib
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17902 $as_echo "$ac_res" >&6; }
17903 eval as_val=\$$as_ac_Lib
17904 if test "x$as_val" = x""yes; then :
17905 HAVE_PTHREAD=yes
17909 if test "$HAVE_PTHREAD" = yes; then
17910 case "${canonical}" in
17911 *-hpux*) ;;
17912 *) LIB_PTHREAD="-lpthread"
17913 LIBS="$LIB_PTHREAD $LIBS" ;;
17914 esac
17916 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
17922 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
17923 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
17924 $as_echo_n "(cached) " >&6
17925 else
17926 ac_check_lib_save_LIBS=$LIBS
17927 LIBS="-lpthreads $LIBS"
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17931 /* Override any GCC internal prototype to avoid an error.
17932 Use char because int might match the return type of a GCC
17933 builtin and then its argument prototype would still apply. */
17934 #ifdef __cplusplus
17935 extern "C"
17936 #endif
17937 char cma_open ();
17939 main ()
17941 return cma_open ();
17943 return 0;
17945 _ACEOF
17946 if ac_fn_c_try_link "$LINENO"; then :
17947 ac_cv_lib_pthreads_cma_open=yes
17948 else
17949 ac_cv_lib_pthreads_cma_open=no
17951 rm -f core conftest.err conftest.$ac_objext \
17952 conftest$ac_exeext conftest.$ac_ext
17953 LIBS=$ac_check_lib_save_LIBS
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
17956 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
17957 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
17958 cat >>confdefs.h <<_ACEOF
17959 #define HAVE_LIBPTHREADS 1
17960 _ACEOF
17962 LIBS="-lpthreads $LIBS"
17967 ## Note: when using cpp in s/aix4.2.h, this definition depended on
17968 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
17969 ## the system file was sourced. Hence the value of LIBS_SYSTEM
17970 ## added to LIBS in configure would never contain the pthreads part,
17971 ## but the value used in Makefiles might. FIXME?
17973 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
17974 ## be harmless on older versions of X where it happens to exist.
17975 test "$opsys" = "aix4-2" && \
17976 test $ac_cv_lib_pthreads_cma_open = yes && \
17977 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
17980 case ${host_os} in
17981 aix*)
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
17983 $as_echo_n "checking for -bbigtoc option... " >&6; }
17984 if test "${gdb_cv_bigtoc+set}" = set; then :
17985 $as_echo_n "(cached) " >&6
17986 else
17988 case $GCC in
17989 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
17990 *) gdb_cv_bigtoc=-bbigtoc ;;
17991 esac
17993 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17998 main ()
18000 int i;
18002 return 0;
18004 _ACEOF
18005 if ac_fn_c_try_link "$LINENO"; then :
18007 else
18008 gdb_cv_bigtoc=
18010 rm -f core conftest.err conftest.$ac_objext \
18011 conftest$ac_exeext conftest.$ac_ext
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
18015 $as_echo "$gdb_cv_bigtoc" >&6; }
18017 esac
18019 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
18020 # used for the tests that follow. We set them back to REAL_CFLAGS and
18021 # REAL_CPPFLAGS later on.
18023 REAL_CFLAGS="$CFLAGS"
18024 REAL_CPPFLAGS="$CPPFLAGS"
18026 if test "${HAVE_X11}" = "yes"; then
18027 DEFS="$C_SWITCH_X_SITE $DEFS"
18028 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
18029 LIBS="-lX11 $LIBS"
18030 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
18031 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
18033 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
18034 # This is handled by LD_SWITCH_X_SITE_RPATH during the real build,
18035 # but it's more convenient here to set LD_RUN_PATH since this
18036 # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH.
18037 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
18038 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
18039 export LD_RUN_PATH
18042 if test "${opsys}" = "gnu-linux"; then
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
18044 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18049 main ()
18051 XOpenDisplay ("foo");
18053 return 0;
18055 _ACEOF
18056 if ac_fn_c_try_link "$LINENO"; then :
18057 xgnu_linux_first_failure=no
18058 else
18059 xgnu_linux_first_failure=yes
18061 rm -f core conftest.err conftest.$ac_objext \
18062 conftest$ac_exeext conftest.$ac_ext
18063 if test "${xgnu_linux_first_failure}" = "yes"; then
18064 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
18065 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
18066 OLD_CPPFLAGS="$CPPFLAGS"
18067 OLD_LIBS="$LIBS"
18068 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
18069 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
18070 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
18071 LIBS="$LIBS -b i486-linuxaout"
18072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18076 main ()
18078 XOpenDisplay ("foo");
18080 return 0;
18082 _ACEOF
18083 if ac_fn_c_try_link "$LINENO"; then :
18084 xgnu_linux_second_failure=no
18085 else
18086 xgnu_linux_second_failure=yes
18088 rm -f core conftest.err conftest.$ac_objext \
18089 conftest$ac_exeext conftest.$ac_ext
18090 if test "${xgnu_linux_second_failure}" = "yes"; then
18091 # If we get the same failure with -b, there is no use adding -b.
18092 # So take it out. This plays safe.
18093 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
18094 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
18095 CPPFLAGS="$OLD_CPPFLAGS"
18096 LIBS="$OLD_LIBS"
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18098 $as_echo "no" >&6; }
18099 else
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18101 $as_echo "yes" >&6; }
18103 else
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18105 $as_echo "no" >&6; }
18109 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
18110 # header files included from there.
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
18112 $as_echo_n "checking for Xkb... " >&6; }
18113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h. */
18115 #include <X11/Xlib.h>
18116 #include <X11/XKBlib.h>
18118 main ()
18120 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
18122 return 0;
18124 _ACEOF
18125 if ac_fn_c_try_link "$LINENO"; then :
18126 emacs_xkb=yes
18127 else
18128 emacs_xkb=no
18130 rm -f core conftest.err conftest.$ac_objext \
18131 conftest$ac_exeext conftest.$ac_ext
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
18133 $as_echo "$emacs_xkb" >&6; }
18134 if test $emacs_xkb = yes; then
18136 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
18140 for ac_func in XrmSetDatabase XScreenResourceString \
18141 XScreenNumberOfScreen
18142 do :
18143 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18144 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18145 eval as_val=\$$as_ac_var
18146 if test "x$as_val" = x""yes; then :
18147 cat >>confdefs.h <<_ACEOF
18148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18149 _ACEOF
18152 done
18156 if test "${window_system}" = "x11"; then
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
18158 $as_echo_n "checking X11 version 6... " >&6; }
18159 if test "${emacs_cv_x11_version_6+set}" = set; then :
18160 $as_echo_n "(cached) " >&6
18161 else
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18164 #include <X11/Xlib.h>
18166 main ()
18168 #if XlibSpecificationRelease < 6
18169 fail;
18170 #endif
18173 return 0;
18175 _ACEOF
18176 if ac_fn_c_try_link "$LINENO"; then :
18177 emacs_cv_x11_version_6=yes
18178 else
18179 emacs_cv_x11_version_6=no
18181 rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18185 if test $emacs_cv_x11_version_6 = yes; then
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
18187 $as_echo "6 or newer" >&6; }
18189 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
18192 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
18194 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
18195 ## XIM support.
18196 case "$opsys" in
18197 sol2-*) : ;;
18199 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
18202 esac
18203 else
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
18205 $as_echo "before 6" >&6; }
18210 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
18211 HAVE_RSVG=no
18212 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
18213 if test "${with_rsvg}" != "no"; then
18214 RSVG_REQUIRED=2.11.0
18215 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
18218 succeeded=no
18220 if test "$PKG_CONFIG" = "no" ; then
18222 else
18223 PKG_CONFIG_MIN_VERSION=0.9.0
18224 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
18226 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
18228 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 &&
18229 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` &&
18230 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then
18231 edit_cflags="
18232 s,///*,/,g
18233 s/^/ /
18234 s/ -I/ $isystem/g
18235 s/^ //
18237 RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"`
18238 RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'`
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5
18240 $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; }
18241 succeeded=yes
18242 else
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18244 $as_echo "no" >&6; }
18245 RSVG_CFLAGS=""
18246 RSVG_LIBS=""
18247 ## If we have a custom action on failure, don't print errors, but
18248 ## do set a variable so people can do so.
18249 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
18255 else
18256 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18257 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18261 if test $succeeded = yes; then
18262 HAVE_RSVG=yes
18263 else
18270 if test $HAVE_RSVG = yes; then
18272 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
18274 CFLAGS="$CFLAGS $RSVG_CFLAGS"
18275 LIBS="$RSVG_LIBS $LIBS"
18280 HAVE_IMAGEMAGICK=no
18281 if test "${HAVE_X11}" = "yes"; then
18282 if test "${with_imagemagick}" != "no"; then
18283 ## 6.2.8 is the earliest version known to work, but earlier versions
18284 ## might work - let us know if you find one.
18285 ## 6.0.7 does not work. See bug#7955.
18286 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
18288 succeeded=no
18290 if test "$PKG_CONFIG" = "no" ; then
18292 else
18293 PKG_CONFIG_MIN_VERSION=0.9.0
18294 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
18296 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
18298 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 &&
18299 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` &&
18300 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then
18301 edit_cflags="
18302 s,///*,/,g
18303 s/^/ /
18304 s/ -I/ $isystem/g
18305 s/^ //
18307 IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"`
18308 IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'`
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5
18310 $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; }
18311 succeeded=yes
18312 else
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18315 IMAGEMAGICK_CFLAGS=""
18316 IMAGEMAGICK_LIBS=""
18317 ## If we have a custom action on failure, don't print errors, but
18318 ## do set a variable so people can do so.
18319 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
18325 else
18326 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18327 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18331 if test $succeeded = yes; then
18332 HAVE_IMAGEMAGICK=yes
18333 else
18340 if test $HAVE_IMAGEMAGICK = yes; then
18342 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
18344 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
18345 LIBS="$IMAGEMAGICK_LIBS $LIBS"
18346 for ac_func in MagickExportImagePixels MagickMergeImageLayers
18347 do :
18348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18350 eval as_val=\$$as_ac_var
18351 if test "x$as_val" = x""yes; then :
18352 cat >>confdefs.h <<_ACEOF
18353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18354 _ACEOF
18357 done
18364 HAVE_GTK=no
18365 GTK_OBJ=
18366 if test "${with_gtk3}" = "yes"; then
18367 GLIB_REQUIRED=2.28
18368 GTK_REQUIRED=3.0
18369 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18372 succeeded=no
18374 if test "$PKG_CONFIG" = "no" ; then
18375 pkg_check_gtk=no
18376 else
18377 PKG_CONFIG_MIN_VERSION=0.9.0
18378 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18380 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18382 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18383 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18384 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18385 edit_cflags="
18386 s,///*,/,g
18387 s/^/ /
18388 s/ -I/ $isystem/g
18389 s/^ //
18391 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18392 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18394 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18395 succeeded=yes
18396 else
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18398 $as_echo "no" >&6; }
18399 GTK_CFLAGS=""
18400 GTK_LIBS=""
18401 ## If we have a custom action on failure, don't print errors, but
18402 ## do set a variable so people can do so.
18403 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18409 else
18410 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18411 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18415 if test $succeeded = yes; then
18416 pkg_check_gtk=yes
18417 else
18418 pkg_check_gtk=no
18421 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18422 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18425 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
18427 GTK_OBJ=emacsgtkfixed.o
18430 if test "$pkg_check_gtk" != "yes"; then
18431 HAVE_GTK=no
18432 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
18433 GLIB_REQUIRED=2.10
18434 GTK_REQUIRED=2.10
18435 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
18438 succeeded=no
18440 if test "$PKG_CONFIG" = "no" ; then
18441 pkg_check_gtk=no
18442 else
18443 PKG_CONFIG_MIN_VERSION=0.9.0
18444 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
18446 $as_echo_n "checking for $GTK_MODULES... " >&6; }
18448 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 &&
18449 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` &&
18450 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then
18451 edit_cflags="
18452 s,///*,/,g
18453 s/^/ /
18454 s/ -I/ $isystem/g
18455 s/^ //
18457 GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"`
18458 GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'`
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5
18460 $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; }
18461 succeeded=yes
18462 else
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464 $as_echo "no" >&6; }
18465 GTK_CFLAGS=""
18466 GTK_LIBS=""
18467 ## If we have a custom action on failure, don't print errors, but
18468 ## do set a variable so people can do so.
18469 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
18475 else
18476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18481 if test $succeeded = yes; then
18482 pkg_check_gtk=yes
18483 else
18484 pkg_check_gtk=no
18487 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
18488 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
18493 if test x"$pkg_check_gtk" = xyes; then
18497 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
18498 CFLAGS="$CFLAGS $GTK_CFLAGS"
18499 LIBS="$GTK_LIBS $LIBS"
18500 GTK_COMPILES=no
18501 for ac_func in gtk_main
18502 do :
18503 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
18504 if test "x$ac_cv_func_gtk_main" = x""yes; then :
18505 cat >>confdefs.h <<_ACEOF
18506 #define HAVE_GTK_MAIN 1
18507 _ACEOF
18508 GTK_COMPILES=yes
18510 done
18512 if test "${GTK_COMPILES}" != "yes"; then
18513 if test "$USE_X_TOOLKIT" != "maybe"; then
18514 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
18516 else
18517 HAVE_GTK=yes
18519 $as_echo "#define USE_GTK 1" >>confdefs.h
18521 GTK_OBJ="gtkutil.o $GTK_OBJ"
18522 USE_X_TOOLKIT=none
18523 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
18525 else
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
18527 closing open displays. This is no problem if you just use
18528 one display, but if you use more than one and close one of them
18529 Emacs may crash." >&5
18530 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
18531 closing open displays. This is no problem if you just use
18532 one display, but if you use more than one and close one of them
18533 Emacs may crash." >&2;}
18534 sleep 3
18542 if test "${HAVE_GTK}" = "yes"; then
18544 if test "$with_toolkit_scroll_bars" != no; then
18545 with_toolkit_scroll_bars=yes
18548 HAVE_GTK_FILE_SELECTION=no
18549 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
18550 #include <gtk/gtk.h>
18552 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
18553 HAVE_GTK_FILE_SELECTION=yes
18554 else
18555 HAVE_GTK_FILE_SELECTION=no
18558 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
18559 for ac_func in gtk_file_selection_new
18560 do :
18561 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
18562 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
18563 cat >>confdefs.h <<_ACEOF
18564 #define HAVE_GTK_FILE_SELECTION_NEW 1
18565 _ACEOF
18568 done
18573 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
18574 gtk_dialog_get_action_area gtk_widget_get_sensitive \
18575 gtk_widget_get_mapped gtk_adjustment_get_page_size \
18576 gtk_orientable_set_orientation \
18577 gtk_window_set_has_resize_grip
18578 do :
18579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18581 eval as_val=\$$as_ac_var
18582 if test "x$as_val" = x""yes; then :
18583 cat >>confdefs.h <<_ACEOF
18584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18585 _ACEOF
18588 done
18592 HAVE_DBUS=no
18593 DBUS_OBJ=
18594 if test "${with_dbus}" = "yes"; then
18596 succeeded=no
18598 if test "$PKG_CONFIG" = "no" ; then
18599 HAVE_DBUS=no
18600 else
18601 PKG_CONFIG_MIN_VERSION=0.9.0
18602 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
18604 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
18606 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 &&
18607 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` &&
18608 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then
18609 edit_cflags="
18610 s,///*,/,g
18611 s/^/ /
18612 s/ -I/ $isystem/g
18613 s/^ //
18615 DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"`
18616 DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'`
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5
18618 $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; }
18619 succeeded=yes
18620 else
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622 $as_echo "no" >&6; }
18623 DBUS_CFLAGS=""
18624 DBUS_LIBS=""
18625 ## If we have a custom action on failure, don't print errors, but
18626 ## do set a variable so people can do so.
18627 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
18633 else
18634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18639 if test $succeeded = yes; then
18640 HAVE_DBUS=yes
18641 else
18642 HAVE_DBUS=no
18645 if test "$HAVE_DBUS" = yes; then
18646 LIBS="$LIBS $DBUS_LIBS"
18648 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
18650 for ac_func in dbus_watch_get_unix_fd \
18651 dbus_type_is_valid \
18652 dbus_validate_bus_name \
18653 dbus_validate_path \
18654 dbus_validate_interface \
18655 dbus_validate_member
18656 do :
18657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18659 eval as_val=\$$as_ac_var
18660 if test "x$as_val" = x""yes; then :
18661 cat >>confdefs.h <<_ACEOF
18662 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18663 _ACEOF
18666 done
18668 DBUS_OBJ=dbusbind.o
18673 HAVE_GSETTINGS=no
18674 if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then
18676 succeeded=no
18678 if test "$PKG_CONFIG" = "no" ; then
18679 HAVE_GSETTINGS=no
18680 else
18681 PKG_CONFIG_MIN_VERSION=0.9.0
18682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5
18684 $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; }
18686 if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 &&
18687 GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` &&
18688 GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then
18689 edit_cflags="
18690 s,///*,/,g
18691 s/^/ /
18692 s/ -I/ $isystem/g
18693 s/^ //
18695 GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"`
18696 GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'`
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5
18698 $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; }
18699 succeeded=yes
18700 else
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18702 $as_echo "no" >&6; }
18703 GSETTINGS_CFLAGS=""
18704 GSETTINGS_LIBS=""
18705 ## If we have a custom action on failure, don't print errors, but
18706 ## do set a variable so people can do so.
18707 GSETTINGS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= 2.26"`
18713 else
18714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18719 if test $succeeded = yes; then
18720 HAVE_GSETTINGS=yes
18721 else
18722 HAVE_GSETTINGS=no
18725 if test "$HAVE_GSETTINGS" = "yes"; then
18727 $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h
18729 SETTINGS_CFLAGS="$GSETTINGS_CFLAGS"
18730 SETTINGS_LIBS="$GSETTINGS_LIBS"
18734 HAVE_GCONF=no
18735 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
18737 succeeded=no
18739 if test "$PKG_CONFIG" = "no" ; then
18740 HAVE_GCONF=no
18741 else
18742 PKG_CONFIG_MIN_VERSION=0.9.0
18743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
18745 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
18747 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 &&
18748 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` &&
18749 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then
18750 edit_cflags="
18751 s,///*,/,g
18752 s/^/ /
18753 s/ -I/ $isystem/g
18754 s/^ //
18756 GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"`
18757 GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'`
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5
18759 $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; }
18760 succeeded=yes
18761 else
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18763 $as_echo "no" >&6; }
18764 GCONF_CFLAGS=""
18765 GCONF_LIBS=""
18766 ## If we have a custom action on failure, don't print errors, but
18767 ## do set a variable so people can do so.
18768 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
18774 else
18775 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18776 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18780 if test $succeeded = yes; then
18781 HAVE_GCONF=yes
18782 else
18783 HAVE_GCONF=no
18786 if test "$HAVE_GCONF" = yes; then
18788 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
18790 SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS"
18791 SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS"
18795 if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then
18796 SAVE_CFLAGS="$CFLAGS"
18797 SAVE_LIBS="$LIBS"
18798 CFLAGS="$SETTINGS_CFLAGS $CFLAGS"
18799 LIBS="$SETTINGS_LIBS $LIBS"
18800 for ac_func in g_type_init
18801 do :
18802 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
18803 if test "x$ac_cv_func_g_type_init" = x""yes; then :
18804 cat >>confdefs.h <<_ACEOF
18805 #define HAVE_G_TYPE_INIT 1
18806 _ACEOF
18809 done
18811 CFLAGS="$SAVE_CFLAGS"
18812 LIBS="$SAVE_LIBS"
18818 HAVE_LIBSELINUX=no
18819 LIBSELINUX_LIBS=
18820 if test "${with_selinux}" = "yes"; then
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
18822 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
18823 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
18824 $as_echo_n "(cached) " >&6
18825 else
18826 ac_check_lib_save_LIBS=$LIBS
18827 LIBS="-lselinux $LIBS"
18828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18831 /* Override any GCC internal prototype to avoid an error.
18832 Use char because int might match the return type of a GCC
18833 builtin and then its argument prototype would still apply. */
18834 #ifdef __cplusplus
18835 extern "C"
18836 #endif
18837 char lgetfilecon ();
18839 main ()
18841 return lgetfilecon ();
18843 return 0;
18845 _ACEOF
18846 if ac_fn_c_try_link "$LINENO"; then :
18847 ac_cv_lib_selinux_lgetfilecon=yes
18848 else
18849 ac_cv_lib_selinux_lgetfilecon=no
18851 rm -f core conftest.err conftest.$ac_objext \
18852 conftest$ac_exeext conftest.$ac_ext
18853 LIBS=$ac_check_lib_save_LIBS
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
18856 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
18857 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
18858 HAVE_LIBSELINUX=yes
18859 else
18860 HAVE_LIBSELINUX=no
18863 if test "$HAVE_LIBSELINUX" = yes; then
18865 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18867 LIBSELINUX_LIBS=-lselinux
18872 HAVE_GNUTLS=no
18873 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
18874 if test "${with_gnutls}" = "yes" ; then
18876 succeeded=no
18878 if test "$PKG_CONFIG" = "no" ; then
18879 HAVE_GNUTLS=no
18880 else
18881 PKG_CONFIG_MIN_VERSION=0.9.0
18882 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5
18884 $as_echo_n "checking for gnutls >= 2.6.6... " >&6; }
18886 if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 &&
18887 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` &&
18888 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then
18889 edit_cflags="
18890 s,///*,/,g
18891 s/^/ /
18892 s/ -I/ $isystem/g
18893 s/^ //
18895 LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"`
18896 LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'`
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5
18898 $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; }
18899 succeeded=yes
18900 else
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18902 $as_echo "no" >&6; }
18903 LIBGNUTLS_CFLAGS=""
18904 LIBGNUTLS_LIBS=""
18905 ## If we have a custom action on failure, don't print errors, but
18906 ## do set a variable so people can do so.
18907 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.6"`
18913 else
18914 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18915 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18919 if test $succeeded = yes; then
18920 HAVE_GNUTLS=yes
18921 else
18922 HAVE_GNUTLS=no
18925 if test "${HAVE_GNUTLS}" = "yes"; then
18927 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
18931 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
18932 LIBS="$LIBGNUTLS_LIBS $LIBS"
18933 for ac_func in gnutls_certificate_set_verify_function
18934 do :
18935 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
18936 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
18937 cat >>confdefs.h <<_ACEOF
18938 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
18939 _ACEOF
18940 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
18942 done
18945 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
18947 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
18955 HAVE_XAW3D=no
18956 LUCID_LIBW=
18957 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
18958 if test "$with_xaw3d" != no; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
18960 $as_echo_n "checking for xaw3d... " >&6; }
18961 if test "${emacs_cv_xaw3d+set}" = set; then :
18962 $as_echo_n "(cached) " >&6
18963 else
18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18965 /* end confdefs.h. */
18967 #include <X11/Intrinsic.h>
18968 #include <X11/Xaw3d/Simple.h>
18970 main ()
18974 return 0;
18976 _ACEOF
18977 if ac_fn_c_try_link "$LINENO"; then :
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
18979 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
18980 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
18981 $as_echo_n "(cached) " >&6
18982 else
18983 ac_check_lib_save_LIBS=$LIBS
18984 LIBS="-lXaw3d $LIBS"
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18988 /* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18991 #ifdef __cplusplus
18992 extern "C"
18993 #endif
18994 char XawScrollbarSetThumb ();
18996 main ()
18998 return XawScrollbarSetThumb ();
19000 return 0;
19002 _ACEOF
19003 if ac_fn_c_try_link "$LINENO"; then :
19004 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
19005 else
19006 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
19008 rm -f core conftest.err conftest.$ac_objext \
19009 conftest$ac_exeext conftest.$ac_ext
19010 LIBS=$ac_check_lib_save_LIBS
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
19013 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
19014 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
19015 emacs_cv_xaw3d=yes
19016 else
19017 emacs_cv_xaw3d=no
19020 else
19021 emacs_cv_xaw3d=no
19023 rm -f core conftest.err conftest.$ac_objext \
19024 conftest$ac_exeext conftest.$ac_ext
19027 else
19028 emacs_cv_xaw3d=no
19030 if test $emacs_cv_xaw3d = yes; then
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19032 $as_echo "yes; using Lucid toolkit" >&6; }
19033 USE_X_TOOLKIT=LUCID
19034 HAVE_XAW3D=yes
19035 LUCID_LIBW=-lXaw3d
19037 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
19039 else
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19041 $as_echo "no" >&6; }
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
19043 $as_echo_n "checking for libXaw... " >&6; }
19044 if test "${emacs_cv_xaw+set}" = set; then :
19045 $as_echo_n "(cached) " >&6
19046 else
19047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h. */
19050 #include <X11/Intrinsic.h>
19051 #include <X11/Xaw/Simple.h>
19053 main ()
19057 return 0;
19059 _ACEOF
19060 if ac_fn_c_try_link "$LINENO"; then :
19061 emacs_cv_xaw=yes
19062 else
19063 emacs_cv_xaw=no
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19069 if test $emacs_cv_xaw = yes; then
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
19071 $as_echo "yes; using Lucid toolkit" >&6; }
19072 USE_X_TOOLKIT=LUCID
19073 LUCID_LIBW=-lXaw
19074 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
19075 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
19076 else
19077 as_fn_error "No X toolkit could be found.
19078 If you are sure you want Emacs compiled without an X toolkit, pass
19079 --with-x-toolkit=no
19080 to configure. Otherwise, install the development libraries for the toolkit
19081 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
19086 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
19088 LIBXTR6=
19089 if test "${USE_X_TOOLKIT}" != "none"; then
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
19091 $as_echo_n "checking X11 toolkit version... " >&6; }
19092 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
19093 $as_echo_n "(cached) " >&6
19094 else
19095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h. */
19097 #include <X11/Intrinsic.h>
19099 main ()
19101 #if XtSpecificationRelease < 6
19102 fail;
19103 #endif
19106 return 0;
19108 _ACEOF
19109 if ac_fn_c_try_link "$LINENO"; then :
19110 emacs_cv_x11_toolkit_version_6=yes
19111 else
19112 emacs_cv_x11_toolkit_version_6=no
19114 rm -f core conftest.err conftest.$ac_objext \
19115 conftest$ac_exeext conftest.$ac_ext
19118 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
19119 if test $emacs_cv_x11_toolkit_version_6 = yes; then
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
19121 $as_echo "6 or newer" >&6; }
19123 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
19125 LIBXTR6="-lSM -lICE"
19126 case "$opsys" in
19127 ## Use libw.a along with X11R6 Xt.
19128 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
19129 esac
19130 else
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
19132 $as_echo "before 6" >&6; }
19135 OLDLIBS="$LIBS"
19136 if test x$HAVE_X11XTR6 = xyes; then
19137 LIBS="-lXt -lSM -lICE $LIBS"
19138 else
19139 LIBS="-lXt $LIBS"
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
19142 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
19143 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
19144 $as_echo_n "(cached) " >&6
19145 else
19146 ac_check_lib_save_LIBS=$LIBS
19147 LIBS="-lXmu $LIBS"
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19151 /* Override any GCC internal prototype to avoid an error.
19152 Use char because int might match the return type of a GCC
19153 builtin and then its argument prototype would still apply. */
19154 #ifdef __cplusplus
19155 extern "C"
19156 #endif
19157 char XmuConvertStandardSelection ();
19159 main ()
19161 return XmuConvertStandardSelection ();
19163 return 0;
19165 _ACEOF
19166 if ac_fn_c_try_link "$LINENO"; then :
19167 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
19168 else
19169 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
19171 rm -f core conftest.err conftest.$ac_objext \
19172 conftest$ac_exeext conftest.$ac_ext
19173 LIBS=$ac_check_lib_save_LIBS
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
19176 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
19177 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
19178 cat >>confdefs.h <<_ACEOF
19179 #define HAVE_LIBXMU 1
19180 _ACEOF
19182 LIBS="-lXmu $LIBS"
19186 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
19190 LIBXMU=-lXmu
19191 case $opsys in
19192 ## These systems don't supply Xmu.
19193 hpux* | aix4-2 )
19194 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
19196 esac
19199 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
19200 if test "${HAVE_X11}" = "yes"; then
19201 if test "${USE_X_TOOLKIT}" != "none"; then
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
19203 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
19204 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
19205 $as_echo_n "(cached) " >&6
19206 else
19207 ac_check_lib_save_LIBS=$LIBS
19208 LIBS="-lXext $LIBS"
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h. */
19212 /* Override any GCC internal prototype to avoid an error.
19213 Use char because int might match the return type of a GCC
19214 builtin and then its argument prototype would still apply. */
19215 #ifdef __cplusplus
19216 extern "C"
19217 #endif
19218 char XShapeQueryExtension ();
19220 main ()
19222 return XShapeQueryExtension ();
19224 return 0;
19226 _ACEOF
19227 if ac_fn_c_try_link "$LINENO"; then :
19228 ac_cv_lib_Xext_XShapeQueryExtension=yes
19229 else
19230 ac_cv_lib_Xext_XShapeQueryExtension=no
19232 rm -f core conftest.err conftest.$ac_objext \
19233 conftest$ac_exeext conftest.$ac_ext
19234 LIBS=$ac_check_lib_save_LIBS
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
19237 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
19238 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
19239 cat >>confdefs.h <<_ACEOF
19240 #define HAVE_LIBXEXT 1
19241 _ACEOF
19243 LIBS="-lXext $LIBS"
19250 LIBXP=
19251 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
19253 $as_echo_n "checking for Motif version 2.1... " >&6; }
19254 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
19255 $as_echo_n "(cached) " >&6
19256 else
19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19258 /* end confdefs.h. */
19259 #include <Xm/Xm.h>
19261 main ()
19263 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
19264 int x = 5;
19265 #else
19266 Motif version prior to 2.1.
19267 #endif
19269 return 0;
19271 _ACEOF
19272 if ac_fn_c_try_compile "$LINENO"; then :
19273 emacs_cv_motif_version_2_1=yes
19274 else
19275 emacs_cv_motif_version_2_1=no
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
19280 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
19281 if test $emacs_cv_motif_version_2_1 = yes; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
19283 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
19284 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
19285 $as_echo_n "(cached) " >&6
19286 else
19287 ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-lXp $LIBS"
19289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h. */
19292 /* Override any GCC internal prototype to avoid an error.
19293 Use char because int might match the return type of a GCC
19294 builtin and then its argument prototype would still apply. */
19295 #ifdef __cplusplus
19296 extern "C"
19297 #endif
19298 char XpCreateContext ();
19300 main ()
19302 return XpCreateContext ();
19304 return 0;
19306 _ACEOF
19307 if ac_fn_c_try_link "$LINENO"; then :
19308 ac_cv_lib_Xp_XpCreateContext=yes
19309 else
19310 ac_cv_lib_Xp_XpCreateContext=no
19312 rm -f core conftest.err conftest.$ac_objext \
19313 conftest$ac_exeext conftest.$ac_ext
19314 LIBS=$ac_check_lib_save_LIBS
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
19317 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
19318 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
19319 LIBXP=-lXp
19322 else
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
19324 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
19325 if test "${emacs_cv_lesstif+set}" = set; then :
19326 $as_echo_n "(cached) " >&6
19327 else
19328 # We put this in CFLAGS temporarily to precede other -I options
19329 # that might be in CFLAGS temporarily.
19330 # We put this in CPPFLAGS where it precedes the other -I options.
19331 OLD_CPPFLAGS=$CPPFLAGS
19332 OLD_CFLAGS=$CFLAGS
19333 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
19334 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
19335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h. */
19337 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
19339 main ()
19341 int x = 5;
19343 return 0;
19345 _ACEOF
19346 if ac_fn_c_try_compile "$LINENO"; then :
19347 emacs_cv_lesstif=yes
19348 else
19349 emacs_cv_lesstif=no
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
19354 $as_echo "$emacs_cv_lesstif" >&6; }
19355 if test $emacs_cv_lesstif = yes; then
19356 # Make sure this -I option remains in CPPFLAGS after it is set
19357 # back to REAL_CPPFLAGS.
19358 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
19359 # have those other -I options anyway. Ultimately, having this
19360 # directory ultimately in CPPFLAGS will be enough.
19361 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
19362 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
19363 else
19364 CFLAGS=$OLD_CFLAGS
19365 CPPFLAGS=$OLD_CPPFLAGS
19368 ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default"
19369 if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then :
19371 else
19372 as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5
19379 USE_TOOLKIT_SCROLL_BARS=no
19380 if test "${with_toolkit_scroll_bars}" != "no"; then
19381 if test "${USE_X_TOOLKIT}" != "none"; then
19382 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
19383 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19385 HAVE_XAW3D=no
19386 USE_TOOLKIT_SCROLL_BARS=yes
19387 elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then
19388 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19390 USE_TOOLKIT_SCROLL_BARS=yes
19392 elif test "${HAVE_GTK}" = "yes"; then
19393 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19395 USE_TOOLKIT_SCROLL_BARS=yes
19396 elif test "${HAVE_NS}" = "yes"; then
19397 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
19399 USE_TOOLKIT_SCROLL_BARS=yes
19403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19404 /* end confdefs.h. */
19406 #include <X11/Xlib.h>
19407 #include <X11/Xresource.h>
19409 main ()
19411 XIMProc callback;
19413 return 0;
19415 _ACEOF
19416 if ac_fn_c_try_compile "$LINENO"; then :
19417 HAVE_XIM=yes
19419 $as_echo "#define HAVE_XIM 1" >>confdefs.h
19421 else
19422 HAVE_XIM=no
19424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19427 if test "${with_xim}" != "no"; then
19429 $as_echo "#define USE_XIM 1" >>confdefs.h
19434 if test "${HAVE_XIM}" != "no"; then
19435 late_CFLAGS=$CFLAGS
19436 if test "$GCC" = yes; then
19437 CFLAGS="$CFLAGS --pedantic-errors"
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 #include <X11/Xlib.h>
19443 #include <X11/Xresource.h>
19445 main ()
19447 Display *display;
19448 XrmDatabase db;
19449 char *res_name;
19450 char *res_class;
19451 XIMProc callback;
19452 XPointer *client_data;
19453 #ifndef __GNUC__
19454 /* If we're not using GCC, it's probably not XFree86, and this is
19455 probably right, but we can't use something like --pedantic-errors. */
19456 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
19457 char*, XIMProc, XPointer*);
19458 #endif
19459 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
19460 client_data);
19462 return 0;
19464 _ACEOF
19465 if ac_fn_c_try_compile "$LINENO"; then :
19466 emacs_cv_arg6_star=yes
19468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 if test "$emacs_cv_arg6_star" = yes; then
19470 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
19472 else
19473 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
19476 CFLAGS=$late_CFLAGS
19479 ### Start of font-backend (under any platform) section.
19480 # (nothing here yet -- this is a placeholder)
19481 ### End of font-backend (under any platform) section.
19483 ### Start of font-backend (under X11) section.
19484 if test "${HAVE_X11}" = "yes"; then
19486 succeeded=no
19488 if test "$PKG_CONFIG" = "no" ; then
19489 HAVE_FC=no
19490 else
19491 PKG_CONFIG_MIN_VERSION=0.9.0
19492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
19494 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
19496 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 &&
19497 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` &&
19498 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then
19499 edit_cflags="
19500 s,///*,/,g
19501 s/^/ /
19502 s/ -I/ $isystem/g
19503 s/^ //
19505 FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"`
19506 FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'`
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5
19508 $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; }
19509 succeeded=yes
19510 else
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19512 $as_echo "no" >&6; }
19513 FONTCONFIG_CFLAGS=""
19514 FONTCONFIG_LIBS=""
19515 ## If we have a custom action on failure, don't print errors, but
19516 ## do set a variable so people can do so.
19517 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
19523 else
19524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19529 if test $succeeded = yes; then
19530 HAVE_FC=yes
19531 else
19532 HAVE_FC=no
19536 ## Use -lXft if available, unless `--with-xft=no'.
19537 HAVE_XFT=maybe
19538 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
19539 with_xft="no";
19541 if test "x${with_xft}" != "xno"; then
19544 succeeded=no
19546 if test "$PKG_CONFIG" = "no" ; then
19547 HAVE_XFT=no
19548 else
19549 PKG_CONFIG_MIN_VERSION=0.9.0
19550 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
19552 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
19554 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 &&
19555 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` &&
19556 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then
19557 edit_cflags="
19558 s,///*,/,g
19559 s/^/ /
19560 s/ -I/ $isystem/g
19561 s/^ //
19563 XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"`
19564 XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'`
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5
19566 $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; }
19567 succeeded=yes
19568 else
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19570 $as_echo "no" >&6; }
19571 XFT_CFLAGS=""
19572 XFT_LIBS=""
19573 ## If we have a custom action on failure, don't print errors, but
19574 ## do set a variable so people can do so.
19575 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
19581 else
19582 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19583 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19587 if test $succeeded = yes; then
19589 else
19590 HAVE_XFT=no
19593 ## Because xftfont.c uses XRenderQueryExtension, we also
19594 ## need to link to -lXrender.
19595 HAVE_XRENDER=no
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19597 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19598 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19599 $as_echo_n "(cached) " >&6
19600 else
19601 ac_check_lib_save_LIBS=$LIBS
19602 LIBS="-lXrender $LIBS"
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19609 #ifdef __cplusplus
19610 extern "C"
19611 #endif
19612 char XRenderQueryExtension ();
19614 main ()
19616 return XRenderQueryExtension ();
19618 return 0;
19620 _ACEOF
19621 if ac_fn_c_try_link "$LINENO"; then :
19622 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19623 else
19624 ac_cv_lib_Xrender_XRenderQueryExtension=no
19626 rm -f core conftest.err conftest.$ac_objext \
19627 conftest$ac_exeext conftest.$ac_ext
19628 LIBS=$ac_check_lib_save_LIBS
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19631 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19632 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19633 HAVE_XRENDER=yes
19636 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
19637 OLD_CPPFLAGS="$CPPFLAGS"
19638 OLD_CFLAGS="$CFLAGS"
19639 OLD_LIBS="$LIBS"
19640 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
19641 CFLAGS="$CFLAGS $XFT_CFLAGS"
19642 XFT_LIBS="-lXrender $XFT_LIBS"
19643 LIBS="$XFT_LIBS $LIBS"
19644 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
19645 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
19647 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
19648 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
19649 $as_echo_n "(cached) " >&6
19650 else
19651 ac_check_lib_save_LIBS=$LIBS
19652 LIBS="-lXft $XFT_LIBS $LIBS"
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19656 /* Override any GCC internal prototype to avoid an error.
19657 Use char because int might match the return type of a GCC
19658 builtin and then its argument prototype would still apply. */
19659 #ifdef __cplusplus
19660 extern "C"
19661 #endif
19662 char XftFontOpen ();
19664 main ()
19666 return XftFontOpen ();
19668 return 0;
19670 _ACEOF
19671 if ac_fn_c_try_link "$LINENO"; then :
19672 ac_cv_lib_Xft_XftFontOpen=yes
19673 else
19674 ac_cv_lib_Xft_XftFontOpen=no
19676 rm -f core conftest.err conftest.$ac_objext \
19677 conftest$ac_exeext conftest.$ac_ext
19678 LIBS=$ac_check_lib_save_LIBS
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
19681 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
19682 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
19683 HAVE_XFT=yes
19690 if test "${HAVE_XFT}" = "yes"; then
19692 $as_echo "#define HAVE_XFT 1" >>confdefs.h
19695 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
19696 else
19697 CPPFLAGS="$OLD_CPPFLAGS"
19698 CFLAGS="$OLD_CFLAGS"
19699 LIBS="$OLD_LIBS"
19700 fi # "${HAVE_XFT}" = "yes"
19701 fi # "$HAVE_XFT" != no
19702 fi # "x${with_xft}" != "xno"
19704 ## We used to allow building with FreeType and without Xft.
19705 ## However, the ftx font backend driver is not in good shape.
19706 if test "$HAVE_XFT" != "yes"; then
19707 HAVE_XFT=no
19708 HAVE_FREETYPE=no
19709 else
19711 succeeded=no
19713 if test "$PKG_CONFIG" = "no" ; then
19714 HAVE_FREETYPE=no
19715 else
19716 PKG_CONFIG_MIN_VERSION=0.9.0
19717 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19719 $as_echo_n "checking for freetype2... " >&6; }
19721 if $PKG_CONFIG --exists "freetype2" 2>&5 &&
19722 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` &&
19723 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then
19724 edit_cflags="
19725 s,///*,/,g
19726 s/^/ /
19727 s/ -I/ $isystem/g
19728 s/^ //
19730 FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"`
19731 FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'`
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5
19733 $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; }
19734 succeeded=yes
19735 else
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19737 $as_echo "no" >&6; }
19738 FREETYPE_CFLAGS=""
19739 FREETYPE_LIBS=""
19740 ## If we have a custom action on failure, don't print errors, but
19741 ## do set a variable so people can do so.
19742 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19748 else
19749 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19750 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19754 if test $succeeded = yes; then
19755 HAVE_FREETYPE=yes
19756 else
19757 HAVE_FREETYPE=no
19761 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
19764 HAVE_LIBOTF=no
19765 if test "${HAVE_FREETYPE}" = "yes"; then
19767 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
19769 if test "${with_libotf}" != "no"; then
19771 succeeded=no
19773 if test "$PKG_CONFIG" = "no" ; then
19774 HAVE_LIBOTF=no
19775 else
19776 PKG_CONFIG_MIN_VERSION=0.9.0
19777 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
19779 $as_echo_n "checking for libotf... " >&6; }
19781 if $PKG_CONFIG --exists "libotf" 2>&5 &&
19782 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` &&
19783 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then
19784 edit_cflags="
19785 s,///*,/,g
19786 s/^/ /
19787 s/ -I/ $isystem/g
19788 s/^ //
19790 LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"`
19791 LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'`
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5
19793 $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; }
19794 succeeded=yes
19795 else
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19797 $as_echo "no" >&6; }
19798 LIBOTF_CFLAGS=""
19799 LIBOTF_LIBS=""
19800 ## If we have a custom action on failure, don't print errors, but
19801 ## do set a variable so people can do so.
19802 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
19808 else
19809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19814 if test $succeeded = yes; then
19815 HAVE_LIBOTF=yes
19816 else
19817 HAVE_LIBOTF=no
19820 if test "$HAVE_LIBOTF" = "yes"; then
19822 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
19825 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
19826 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
19828 else
19829 ac_check_lib_save_LIBS=$LIBS
19830 LIBS="-lotf $LIBS"
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19834 /* Override any GCC internal prototype to avoid an error.
19835 Use char because int might match the return type of a GCC
19836 builtin and then its argument prototype would still apply. */
19837 #ifdef __cplusplus
19838 extern "C"
19839 #endif
19840 char OTF_get_variation_glyphs ();
19842 main ()
19844 return OTF_get_variation_glyphs ();
19846 return 0;
19848 _ACEOF
19849 if ac_fn_c_try_link "$LINENO"; then :
19850 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
19851 else
19852 ac_cv_lib_otf_OTF_get_variation_glyphs=no
19854 rm -f core conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19856 LIBS=$ac_check_lib_save_LIBS
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
19859 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
19860 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
19861 HAVE_OTF_GET_VARIATION_GLYPHS=yes
19862 else
19863 HAVE_OTF_GET_VARIATION_GLYPHS=no
19866 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
19868 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
19875 HAVE_M17N_FLT=no
19876 if test "${HAVE_LIBOTF}" = yes; then
19877 if test "${with_m17n_flt}" != "no"; then
19879 succeeded=no
19881 if test "$PKG_CONFIG" = "no" ; then
19882 HAVE_M17N_FLT=no
19883 else
19884 PKG_CONFIG_MIN_VERSION=0.9.0
19885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
19887 $as_echo_n "checking for m17n-flt... " >&6; }
19889 if $PKG_CONFIG --exists "m17n-flt" 2>&5 &&
19890 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` &&
19891 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then
19892 edit_cflags="
19893 s,///*,/,g
19894 s/^/ /
19895 s/ -I/ $isystem/g
19896 s/^ //
19898 M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"`
19899 M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'`
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5
19901 $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; }
19902 succeeded=yes
19903 else
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19905 $as_echo "no" >&6; }
19906 M17N_FLT_CFLAGS=""
19907 M17N_FLT_LIBS=""
19908 ## If we have a custom action on failure, don't print errors, but
19909 ## do set a variable so people can do so.
19910 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
19916 else
19917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19922 if test $succeeded = yes; then
19923 HAVE_M17N_FLT=yes
19924 else
19925 HAVE_M17N_FLT=no
19928 if test "$HAVE_M17N_FLT" = "yes"; then
19930 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
19935 else
19936 HAVE_XFT=no
19937 HAVE_FREETYPE=no
19938 HAVE_LIBOTF=no
19939 HAVE_M17N_FLT=no
19942 ### End of font-backend (under X11) section.
19953 ### Use -lXpm if available, unless `--with-xpm=no'.
19954 HAVE_XPM=no
19955 LIBXPM=
19956 if test "${HAVE_X11}" = "yes"; then
19957 if test "${with_xpm}" != "no"; then
19958 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
19959 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
19961 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
19962 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
19963 $as_echo_n "(cached) " >&6
19964 else
19965 ac_check_lib_save_LIBS=$LIBS
19966 LIBS="-lXpm -lX11 $LIBS"
19967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 char XpmReadFileToPixmap ();
19978 main ()
19980 return XpmReadFileToPixmap ();
19982 return 0;
19984 _ACEOF
19985 if ac_fn_c_try_link "$LINENO"; then :
19986 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
19987 else
19988 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
19990 rm -f core conftest.err conftest.$ac_objext \
19991 conftest$ac_exeext conftest.$ac_ext
19992 LIBS=$ac_check_lib_save_LIBS
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
19995 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
19996 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
19997 HAVE_XPM=yes
20003 if test "${HAVE_XPM}" = "yes"; then
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
20005 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
20006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h. */
20008 #include "X11/xpm.h"
20009 #ifndef XpmReturnAllocPixels
20010 no_return_alloc_pixels
20011 #endif
20013 _ACEOF
20014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20015 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
20016 HAVE_XPM=no
20017 else
20018 HAVE_XPM=yes
20020 rm -f conftest*
20023 if test "${HAVE_XPM}" = "yes"; then
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20025 $as_echo "yes" >&6; }
20026 else
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20033 if test "${HAVE_XPM}" = "yes"; then
20035 $as_echo "#define HAVE_XPM 1" >>confdefs.h
20037 LIBXPM=-lXpm
20042 ### Use -ljpeg if available, unless `--with-jpeg=no'.
20043 HAVE_JPEG=no
20044 LIBJPEG=
20045 if test "${HAVE_X11}" = "yes"; then
20046 if test "${with_jpeg}" != "no"; then
20047 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
20048 if test "x$ac_cv_header_jerror_h" = x""yes; then :
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
20050 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
20051 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
20052 $as_echo_n "(cached) " >&6
20053 else
20054 ac_check_lib_save_LIBS=$LIBS
20055 LIBS="-ljpeg $LIBS"
20056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20059 /* Override any GCC internal prototype to avoid an error.
20060 Use char because int might match the return type of a GCC
20061 builtin and then its argument prototype would still apply. */
20062 #ifdef __cplusplus
20063 extern "C"
20064 #endif
20065 char jpeg_destroy_compress ();
20067 main ()
20069 return jpeg_destroy_compress ();
20071 return 0;
20073 _ACEOF
20074 if ac_fn_c_try_link "$LINENO"; then :
20075 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
20076 else
20077 ac_cv_lib_jpeg_jpeg_destroy_compress=no
20079 rm -f core conftest.err conftest.$ac_objext \
20080 conftest$ac_exeext conftest.$ac_ext
20081 LIBS=$ac_check_lib_save_LIBS
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
20084 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
20085 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
20086 HAVE_JPEG=yes
20094 if test "${HAVE_JPEG}" = "yes"; then
20095 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20099 #include <jpeglib.h>
20100 version=JPEG_LIB_VERSION
20102 _ACEOF
20103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20104 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
20105 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
20107 else
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
20109 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
20110 HAVE_JPEG=no
20112 rm -f conftest*
20115 if test "${HAVE_JPEG}" = "yes"; then
20116 LIBJPEG=-ljpeg
20121 ### Use -lpng if available, unless `--with-png=no'.
20122 HAVE_PNG=no
20123 LIBPNG=
20124 if test "${HAVE_X11}" = "yes"; then
20125 if test "${with_png}" != "no"; then
20126 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
20127 # in /usr/include/libpng.
20128 for ac_header in png.h libpng/png.h
20129 do :
20130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20131 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20132 eval as_val=\$$as_ac_Header
20133 if test "x$as_val" = x""yes; then :
20134 cat >>confdefs.h <<_ACEOF
20135 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20136 _ACEOF
20140 done
20142 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
20144 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
20145 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
20146 $as_echo_n "(cached) " >&6
20147 else
20148 ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lpng -lz -lm $LIBS"
20150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151 /* end confdefs.h. */
20153 /* Override any GCC internal prototype to avoid an error.
20154 Use char because int might match the return type of a GCC
20155 builtin and then its argument prototype would still apply. */
20156 #ifdef __cplusplus
20157 extern "C"
20158 #endif
20159 char png_get_channels ();
20161 main ()
20163 return png_get_channels ();
20165 return 0;
20167 _ACEOF
20168 if ac_fn_c_try_link "$LINENO"; then :
20169 ac_cv_lib_png_png_get_channels=yes
20170 else
20171 ac_cv_lib_png_png_get_channels=no
20173 rm -f core conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext conftest.$ac_ext
20175 LIBS=$ac_check_lib_save_LIBS
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
20178 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
20179 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
20180 HAVE_PNG=yes
20186 if test "${HAVE_PNG}" = "yes"; then
20188 $as_echo "#define HAVE_PNG 1" >>confdefs.h
20190 LIBPNG="-lpng -lz -lm"
20195 ### Use -ltiff if available, unless `--with-tiff=no'.
20196 HAVE_TIFF=no
20197 LIBTIFF=
20198 if test "${HAVE_X11}" = "yes"; then
20199 if test "${with_tiff}" != "no"; then
20200 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
20201 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
20202 tifflibs="-lz -lm"
20203 # At least one tiff package requires the jpeg library.
20204 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
20206 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
20207 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
20208 $as_echo_n "(cached) " >&6
20209 else
20210 ac_check_lib_save_LIBS=$LIBS
20211 LIBS="-ltiff $tifflibs $LIBS"
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20215 /* Override any GCC internal prototype to avoid an error.
20216 Use char because int might match the return type of a GCC
20217 builtin and then its argument prototype would still apply. */
20218 #ifdef __cplusplus
20219 extern "C"
20220 #endif
20221 char TIFFGetVersion ();
20223 main ()
20225 return TIFFGetVersion ();
20227 return 0;
20229 _ACEOF
20230 if ac_fn_c_try_link "$LINENO"; then :
20231 ac_cv_lib_tiff_TIFFGetVersion=yes
20232 else
20233 ac_cv_lib_tiff_TIFFGetVersion=no
20235 rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
20240 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
20241 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
20242 HAVE_TIFF=yes
20250 if test "${HAVE_TIFF}" = "yes"; then
20252 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
20254 LIBTIFF=-ltiff
20259 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
20260 HAVE_GIF=no
20261 LIBGIF=
20262 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
20263 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
20264 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
20265 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
20266 # Earlier versions can crash Emacs.
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
20268 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
20269 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20271 else
20272 ac_check_lib_save_LIBS=$LIBS
20273 LIBS="-lgif $LIBS"
20274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h. */
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 char EGifPutExtensionLast ();
20285 main ()
20287 return EGifPutExtensionLast ();
20289 return 0;
20291 _ACEOF
20292 if ac_fn_c_try_link "$LINENO"; then :
20293 ac_cv_lib_gif_EGifPutExtensionLast=yes
20294 else
20295 ac_cv_lib_gif_EGifPutExtensionLast=no
20297 rm -f core conftest.err conftest.$ac_objext \
20298 conftest$ac_exeext conftest.$ac_ext
20299 LIBS=$ac_check_lib_save_LIBS
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
20302 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
20303 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
20304 HAVE_GIF=yes
20305 else
20306 HAVE_GIF=maybe
20313 if test "$HAVE_GIF" = yes; then
20314 LIBGIF=-lgif
20315 elif test "$HAVE_GIF" = maybe; then
20316 # If gif_lib.h but no libgif, try libungif.
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
20318 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
20319 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
20320 $as_echo_n "(cached) " >&6
20321 else
20322 ac_check_lib_save_LIBS=$LIBS
20323 LIBS="-lungif $LIBS"
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325 /* end confdefs.h. */
20327 /* Override any GCC internal prototype to avoid an error.
20328 Use char because int might match the return type of a GCC
20329 builtin and then its argument prototype would still apply. */
20330 #ifdef __cplusplus
20331 extern "C"
20332 #endif
20333 char EGifPutExtensionLast ();
20335 main ()
20337 return EGifPutExtensionLast ();
20339 return 0;
20341 _ACEOF
20342 if ac_fn_c_try_link "$LINENO"; then :
20343 ac_cv_lib_ungif_EGifPutExtensionLast=yes
20344 else
20345 ac_cv_lib_ungif_EGifPutExtensionLast=no
20347 rm -f core conftest.err conftest.$ac_objext \
20348 conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_check_lib_save_LIBS
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
20352 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
20353 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
20354 HAVE_GIF=yes
20355 else
20356 HAVE_GIF=no
20359 test "$HAVE_GIF" = yes && LIBGIF=-lungif
20362 if test "${HAVE_GIF}" = "yes"; then
20364 $as_echo "#define HAVE_GIF 1" >>confdefs.h
20370 if test "${HAVE_X11}" = "yes"; then
20371 MISSING=""
20372 WITH_NO=""
20373 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
20374 MISSING="libXpm" && WITH_NO="--with-xpm=no"
20375 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
20376 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
20377 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
20378 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
20379 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
20380 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
20381 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
20382 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
20384 if test "X${MISSING}" != X; then
20385 as_fn_error "The following required libraries were not found:
20386 $MISSING
20387 Maybe some development libraries/packages are missing?
20388 If you don't want to link with them give
20389 $WITH_NO
20390 as options to configure" "$LINENO" 5
20394 ### Use -lgpm if available, unless `--with-gpm=no'.
20395 HAVE_GPM=no
20396 LIBGPM=
20397 if test "${with_gpm}" != "no"; then
20398 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
20399 if test "x$ac_cv_header_gpm_h" = x""yes; then :
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
20401 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
20402 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
20403 $as_echo_n "(cached) " >&6
20404 else
20405 ac_check_lib_save_LIBS=$LIBS
20406 LIBS="-lgpm $LIBS"
20407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20410 /* Override any GCC internal prototype to avoid an error.
20411 Use char because int might match the return type of a GCC
20412 builtin and then its argument prototype would still apply. */
20413 #ifdef __cplusplus
20414 extern "C"
20415 #endif
20416 char Gpm_Open ();
20418 main ()
20420 return Gpm_Open ();
20422 return 0;
20424 _ACEOF
20425 if ac_fn_c_try_link "$LINENO"; then :
20426 ac_cv_lib_gpm_Gpm_Open=yes
20427 else
20428 ac_cv_lib_gpm_Gpm_Open=no
20430 rm -f core conftest.err conftest.$ac_objext \
20431 conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
20435 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
20436 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
20437 HAVE_GPM=yes
20444 if test "${HAVE_GPM}" = "yes"; then
20446 $as_echo "#define HAVE_GPM 1" >>confdefs.h
20448 LIBGPM=-lgpm
20457 GNUSTEP_CFLAGS=
20458 ### Use NeXTstep API to implement GUI.
20459 if test "${HAVE_NS}" = "yes"; then
20461 $as_echo "#define HAVE_NS 1" >>confdefs.h
20463 if test "${NS_IMPL_COCOA}" = "yes"; then
20465 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
20468 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
20470 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
20472 # See also .m.o rule in Makefile.in */
20473 # FIXME: are all these flags really needed? Document here why. */
20474 GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
20475 ## Extra CFLAGS applied to src/*.m files.
20476 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"
20478 # We also have mouse menus.
20479 HAVE_MENUS=yes
20480 OTHER_FILES=ns-app
20484 ### Use session management (-lSM -lICE) if available
20485 HAVE_X_SM=no
20486 LIBXSM=
20487 if test "${HAVE_X11}" = "yes"; then
20488 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
20489 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
20491 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
20492 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
20493 $as_echo_n "(cached) " >&6
20494 else
20495 ac_check_lib_save_LIBS=$LIBS
20496 LIBS="-lSM -lICE $LIBS"
20497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h. */
20500 /* Override any GCC internal prototype to avoid an error.
20501 Use char because int might match the return type of a GCC
20502 builtin and then its argument prototype would still apply. */
20503 #ifdef __cplusplus
20504 extern "C"
20505 #endif
20506 char SmcOpenConnection ();
20508 main ()
20510 return SmcOpenConnection ();
20512 return 0;
20514 _ACEOF
20515 if ac_fn_c_try_link "$LINENO"; then :
20516 ac_cv_lib_SM_SmcOpenConnection=yes
20517 else
20518 ac_cv_lib_SM_SmcOpenConnection=no
20520 rm -f core conftest.err conftest.$ac_objext \
20521 conftest$ac_exeext conftest.$ac_ext
20522 LIBS=$ac_check_lib_save_LIBS
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
20525 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
20526 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
20527 HAVE_X_SM=yes
20534 if test "${HAVE_X_SM}" = "yes"; then
20536 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
20538 LIBXSM="-lSM -lICE"
20539 case "$LIBS" in
20540 *-lSM*) ;;
20541 *) LIBS="$LIBXSM $LIBS" ;;
20542 esac
20547 ### Use libxml (-lxml2) if available
20548 HAVE_LIBXML2=no
20549 if test "${with_xml2}" != "no"; then
20550 ### I'm not sure what the version number should be, so I just guessed.
20552 succeeded=no
20554 if test "$PKG_CONFIG" = "no" ; then
20555 HAVE_LIBXML2=no
20556 else
20557 PKG_CONFIG_MIN_VERSION=0.9.0
20558 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
20560 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
20562 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 &&
20563 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` &&
20564 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then
20565 edit_cflags="
20566 s,///*,/,g
20567 s/^/ /
20568 s/ -I/ $isystem/g
20569 s/^ //
20571 LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"`
20572 LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'`
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5
20574 $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; }
20575 succeeded=yes
20576 else
20577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20578 $as_echo "no" >&6; }
20579 LIBXML2_CFLAGS=""
20580 LIBXML2_LIBS=""
20581 ## If we have a custom action on failure, don't print errors, but
20582 ## do set a variable so people can do so.
20583 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
20589 else
20590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20595 if test $succeeded = yes; then
20596 HAVE_LIBXML2=yes
20597 else
20598 HAVE_LIBXML2=no
20601 if test "${HAVE_LIBXML2}" = "yes"; then
20602 LIBS="$LIBXML2_LIBS $LIBS"
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
20604 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
20605 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
20606 $as_echo_n "(cached) " >&6
20607 else
20608 ac_check_lib_save_LIBS=$LIBS
20609 LIBS="-lxml2 $LIBS"
20610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20613 /* Override any GCC internal prototype to avoid an error.
20614 Use char because int might match the return type of a GCC
20615 builtin and then its argument prototype would still apply. */
20616 #ifdef __cplusplus
20617 extern "C"
20618 #endif
20619 char htmlReadMemory ();
20621 main ()
20623 return htmlReadMemory ();
20625 return 0;
20627 _ACEOF
20628 if ac_fn_c_try_link "$LINENO"; then :
20629 ac_cv_lib_xml2_htmlReadMemory=yes
20630 else
20631 ac_cv_lib_xml2_htmlReadMemory=no
20633 rm -f core conftest.err conftest.$ac_objext \
20634 conftest$ac_exeext conftest.$ac_ext
20635 LIBS=$ac_check_lib_save_LIBS
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
20638 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
20639 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
20640 HAVE_LIBXML2=yes
20641 else
20642 HAVE_LIBXML2=no
20645 if test "${HAVE_LIBXML2}" = "yes"; then
20647 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
20649 else
20650 LIBXML2_LIBS=""
20651 LIBXML2_CFLAGS=""
20658 # If netdb.h doesn't declare h_errno, we must declare it by hand.
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
20660 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
20661 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
20662 $as_echo_n "(cached) " >&6
20663 else
20664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20666 #include <netdb.h>
20668 main ()
20670 return h_errno;
20672 return 0;
20674 _ACEOF
20675 if ac_fn_c_try_link "$LINENO"; then :
20676 emacs_cv_netdb_declares_h_errno=yes
20677 else
20678 emacs_cv_netdb_declares_h_errno=no
20680 rm -f core conftest.err conftest.$ac_objext \
20681 conftest$ac_exeext conftest.$ac_ext
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
20684 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
20685 if test $emacs_cv_netdb_declares_h_errno = yes; then
20687 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
20691 # fmod, logb, and frexp are found in -lm on most systems.
20692 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
20694 $as_echo_n "checking for sqrt in -lm... " >&6; }
20695 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
20696 $as_echo_n "(cached) " >&6
20697 else
20698 ac_check_lib_save_LIBS=$LIBS
20699 LIBS="-lm $LIBS"
20700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20701 /* end confdefs.h. */
20703 /* Override any GCC internal prototype to avoid an error.
20704 Use char because int might match the return type of a GCC
20705 builtin and then its argument prototype would still apply. */
20706 #ifdef __cplusplus
20707 extern "C"
20708 #endif
20709 char sqrt ();
20711 main ()
20713 return sqrt ();
20715 return 0;
20717 _ACEOF
20718 if ac_fn_c_try_link "$LINENO"; then :
20719 ac_cv_lib_m_sqrt=yes
20720 else
20721 ac_cv_lib_m_sqrt=no
20723 rm -f core conftest.err conftest.$ac_objext \
20724 conftest$ac_exeext conftest.$ac_ext
20725 LIBS=$ac_check_lib_save_LIBS
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
20728 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
20729 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
20730 cat >>confdefs.h <<_ACEOF
20731 #define HAVE_LIBM 1
20732 _ACEOF
20734 LIBS="-lm $LIBS"
20739 # Check for mail-locking functions in a "mail" library. Probably this should
20740 # have the same check as for liblockfile below.
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
20742 $as_echo_n "checking for maillock in -lmail... " >&6; }
20743 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
20744 $as_echo_n "(cached) " >&6
20745 else
20746 ac_check_lib_save_LIBS=$LIBS
20747 LIBS="-lmail $LIBS"
20748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20749 /* end confdefs.h. */
20751 /* Override any GCC internal prototype to avoid an error.
20752 Use char because int might match the return type of a GCC
20753 builtin and then its argument prototype would still apply. */
20754 #ifdef __cplusplus
20755 extern "C"
20756 #endif
20757 char maillock ();
20759 main ()
20761 return maillock ();
20763 return 0;
20765 _ACEOF
20766 if ac_fn_c_try_link "$LINENO"; then :
20767 ac_cv_lib_mail_maillock=yes
20768 else
20769 ac_cv_lib_mail_maillock=no
20771 rm -f core conftest.err conftest.$ac_objext \
20772 conftest$ac_exeext conftest.$ac_ext
20773 LIBS=$ac_check_lib_save_LIBS
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
20776 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
20777 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
20778 have_mail=yes
20779 else
20780 have_mail=no
20783 if test $have_mail = yes; then
20784 LIBS_MAIL=-lmail
20785 LIBS="$LIBS_MAIL $LIBS"
20787 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
20789 else
20790 LIBS_MAIL=
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
20793 $as_echo_n "checking for maillock in -llockfile... " >&6; }
20794 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
20795 $as_echo_n "(cached) " >&6
20796 else
20797 ac_check_lib_save_LIBS=$LIBS
20798 LIBS="-llockfile $LIBS"
20799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h. */
20802 /* Override any GCC internal prototype to avoid an error.
20803 Use char because int might match the return type of a GCC
20804 builtin and then its argument prototype would still apply. */
20805 #ifdef __cplusplus
20806 extern "C"
20807 #endif
20808 char maillock ();
20810 main ()
20812 return maillock ();
20814 return 0;
20816 _ACEOF
20817 if ac_fn_c_try_link "$LINENO"; then :
20818 ac_cv_lib_lockfile_maillock=yes
20819 else
20820 ac_cv_lib_lockfile_maillock=no
20822 rm -f core conftest.err conftest.$ac_objext \
20823 conftest$ac_exeext conftest.$ac_ext
20824 LIBS=$ac_check_lib_save_LIBS
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
20827 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
20828 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
20829 have_lockfile=yes
20830 else
20831 have_lockfile=no
20834 if test $have_lockfile = yes; then
20835 LIBS_MAIL=-llockfile
20836 LIBS="$LIBS_MAIL $LIBS"
20838 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
20840 else
20841 # If we have the shared liblockfile, assume we must use it for mail
20842 # locking (e.g. Debian). If we couldn't link against liblockfile
20843 # (no liblockfile.a installed), ensure that we don't need to.
20844 # Extract the first word of "liblockfile.so", so it can be a program name with args.
20845 set dummy liblockfile.so; ac_word=$2
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20847 $as_echo_n "checking for $ac_word... " >&6; }
20848 if test "${ac_cv_prog_liblockfile+set}" = set; then :
20849 $as_echo_n "(cached) " >&6
20850 else
20851 if test -n "$liblockfile"; then
20852 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
20853 else
20854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20855 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
20856 for as_dir in $as_dummy
20858 IFS=$as_save_IFS
20859 test -z "$as_dir" && as_dir=.
20860 for ac_exec_ext in '' $ac_executable_extensions; do
20861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20862 ac_cv_prog_liblockfile="yes"
20863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20864 break 2
20866 done
20867 done
20868 IFS=$as_save_IFS
20870 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
20873 liblockfile=$ac_cv_prog_liblockfile
20874 if test -n "$liblockfile"; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
20876 $as_echo "$liblockfile" >&6; }
20877 else
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20879 $as_echo "no" >&6; }
20883 if test $ac_cv_prog_liblockfile = yes; then
20884 as_fn_error "Shared liblockfile found but can't link against it.
20885 This probably means that movemail could lose mail.
20886 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
20894 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
20895 ## interlock access to the mail spool. The alternative is a lock file named
20896 ## /usr/spool/mail/$USER.lock.
20897 mail_lock=no
20898 case "$opsys" in
20899 aix4-2) mail_lock="lockf" ;;
20901 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
20903 ## On GNU/Linux systems, both methods are used by various mail programs.
20904 ## I assume most people are using newer mailers that have heard of flock.
20905 ## Change this if you need to.
20906 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
20907 ## configure gets the right answers, and that means *NOT* using flock.
20908 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
20909 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
20910 ## Debian maintainer hasn't provided a clean fix for Emacs.
20911 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
20912 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
20913 ## correct logic. -- fx
20914 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
20915 ## liblockfile is a Free Software replacement for libmail, used on
20916 ## Debian systems and elsewhere. -rfr.
20917 gnu-*)
20918 mail_lock="flock"
20919 if test $have_mail = yes || test $have_lockfile = yes; then
20920 test $ac_cv_header_maillock_h = yes && mail_lock=no
20923 esac
20925 BLESSMAIL_TARGET=
20926 case "$mail_lock" in
20927 flock)
20928 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
20931 lockf)
20932 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
20935 *) BLESSMAIL_TARGET="need-blessmail" ;;
20936 esac
20940 for ac_func in gethostname \
20941 rename closedir mkdir rmdir getrusage get_current_dir_name \
20942 random lrand48 logb frexp fmod rint cbrt setsid \
20943 strerror fpathconf select euidaccess getpagesize setlocale \
20944 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
20945 __fpending strsignal setitimer \
20946 sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \
20947 gai_strerror mkstemp getline getdelim fsync sync \
20948 difftime posix_memalign \
20949 getpwent endpwent getgrent endgrent \
20950 touchlock \
20951 strcasecmp strncasecmp \
20952 cfmakeraw cfsetspeed copysign __executable_start
20953 do :
20954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20956 eval as_val=\$$as_ac_var
20957 if test "x$as_val" = x""yes; then :
20958 cat >>confdefs.h <<_ACEOF
20959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20960 _ACEOF
20963 done
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
20967 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
20968 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
20969 $as_echo_n "(cached) " >&6
20970 else
20971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20972 /* end confdefs.h. */
20975 main ()
20977 __builtin_unwind_init ();
20979 return 0;
20981 _ACEOF
20982 if ac_fn_c_try_link "$LINENO"; then :
20983 emacs_cv_func___builtin_unwind_init=yes
20984 else
20985 emacs_cv_func___builtin_unwind_init=no
20987 rm -f core conftest.err conftest.$ac_objext \
20988 conftest$ac_exeext conftest.$ac_ext
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
20991 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
20992 if test $emacs_cv_func___builtin_unwind_init = yes; then
20994 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
21003 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
21004 if test "${ac_cv_sys_largefile_source+set}" = set; then :
21005 $as_echo_n "(cached) " >&6
21006 else
21007 while :; do
21008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21009 /* end confdefs.h. */
21010 #include <sys/types.h> /* for off_t */
21011 #include <stdio.h>
21013 main ()
21015 int (*fp) (FILE *, off_t, int) = fseeko;
21016 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21018 return 0;
21020 _ACEOF
21021 if ac_fn_c_try_link "$LINENO"; then :
21022 ac_cv_sys_largefile_source=no; break
21024 rm -f core conftest.err conftest.$ac_objext \
21025 conftest$ac_exeext conftest.$ac_ext
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21028 #define _LARGEFILE_SOURCE 1
21029 #include <sys/types.h> /* for off_t */
21030 #include <stdio.h>
21032 main ()
21034 int (*fp) (FILE *, off_t, int) = fseeko;
21035 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
21037 return 0;
21039 _ACEOF
21040 if ac_fn_c_try_link "$LINENO"; then :
21041 ac_cv_sys_largefile_source=1; break
21043 rm -f core conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
21045 ac_cv_sys_largefile_source=unknown
21046 break
21047 done
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
21050 $as_echo "$ac_cv_sys_largefile_source" >&6; }
21051 case $ac_cv_sys_largefile_source in #(
21052 no | unknown) ;;
21054 cat >>confdefs.h <<_ACEOF
21055 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21056 _ACEOF
21058 esac
21059 rm -rf conftest*
21061 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21062 # in glibc 2.1.3, but that breaks too many other things.
21063 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21064 if test $ac_cv_sys_largefile_source != unknown; then
21066 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
21072 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21073 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
21074 $as_echo_n "(cached) " >&6
21075 else
21076 # Use it with a single arg.
21077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078 /* end confdefs.h. */
21079 $ac_includes_default
21081 main ()
21083 getpgrp (0);
21085 return 0;
21087 _ACEOF
21088 if ac_fn_c_try_compile "$LINENO"; then :
21089 ac_cv_func_getpgrp_void=no
21090 else
21091 ac_cv_func_getpgrp_void=yes
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
21097 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21098 if test $ac_cv_func_getpgrp_void = yes; then
21100 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
21105 # UNIX98 PTYs.
21106 for ac_func in grantpt
21107 do :
21108 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
21109 if test "x$ac_cv_func_grantpt" = x""yes; then :
21110 cat >>confdefs.h <<_ACEOF
21111 #define HAVE_GRANTPT 1
21112 _ACEOF
21115 done
21118 # PTY-related GNU extensions.
21119 for ac_func in getpt
21120 do :
21121 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21122 if test "x$ac_cv_func_getpt" = x""yes; then :
21123 cat >>confdefs.h <<_ACEOF
21124 #define HAVE_GETPT 1
21125 _ACEOF
21128 done
21131 # Check this now, so that we will NOT find the above functions in ncurses.
21132 # That is because we have not set up to link ncurses in lib-src.
21133 # It's better to believe a function is not available
21134 # than to expect to find it in ncurses.
21135 # Also we need tputs and friends to be able to build at all.
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21137 $as_echo_n "checking for library containing tputs... " >&6; }
21138 # Run a test program that contains a call to tputs, a call that is
21139 # never executed. This tests whether a pre-'main' dynamic linker
21140 # works with the library. It's too much trouble to actually call
21141 # tputs in the test program, due to portability hassles. When
21142 # cross-compiling, assume the test program will run if it links.
21144 # Maybe curses should be tried earlier?
21145 # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
21146 for tputs_library in '' tinfo ncurses terminfo termcap curses; do
21147 OLIBS=$LIBS
21148 if test -z "$tputs_library"; then
21149 LIBS_TERMCAP=
21150 msg='none required'
21151 else
21152 LIBS_TERMCAP=-l$tputs_library
21153 msg=$LIBS_TERMCAP
21154 LIBS="$LIBS_TERMCAP $LIBS"
21156 if test "$cross_compiling" = yes; then :
21157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21158 /* end confdefs.h. */
21160 extern void tputs (const char *, int, int (*)(int));
21161 int main (int argc, char **argv)
21163 if (argc == 10000)
21164 tputs (argv[0], 0, 0);
21165 return 0;
21168 _ACEOF
21169 if ac_fn_c_try_link "$LINENO"; then :
21171 else
21172 msg=no
21174 rm -f core conftest.err conftest.$ac_objext \
21175 conftest$ac_exeext conftest.$ac_ext
21176 else
21177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178 /* end confdefs.h. */
21180 extern void tputs (const char *, int, int (*)(int));
21181 int main (int argc, char **argv)
21183 if (argc == 10000)
21184 tputs (argv[0], 0, 0);
21185 return 0;
21188 _ACEOF
21189 if ac_fn_c_try_run "$LINENO"; then :
21191 else
21192 msg=no
21194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21195 conftest.$ac_objext conftest.beam conftest.$ac_ext
21198 LIBS=$OLIBS
21199 if test "X$msg" != Xno; then
21200 break
21202 done
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
21204 $as_echo "$msg" >&6; }
21205 if test "X$msg" = Xno; then
21206 as_fn_error "The required function \`tputs' was not found in any library.
21207 The following libraries were tried (in order):
21208 libtinfo, libncurses, libterminfo, libtermcap, libcurses
21209 Please try installing whichever of these libraries is most appropriate
21210 for your system, together with its header files.
21211 For example, a libncurses-dev(el) or similar package." "$LINENO" 5
21214 ## Use termcap instead of terminfo?
21215 ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500.
21216 TERMINFO=yes
21217 ## FIXME? In the cases below where we unconditionally set
21218 ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo,
21219 ## if that was found above to have tputs.
21220 ## Should we use the gnu* logic everywhere?
21221 case "$opsys" in
21222 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21223 ## The ncurses library has been moved out of the System framework in
21224 ## Mac OS X 10.2. So if configure detects it, set the command-line
21225 ## option to use it.
21226 darwin) LIBS_TERMCAP="-lncurses" ;;
21228 gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;;
21230 freebsd)
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
21232 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21233 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
21234 $as_echo_n "(cached) " >&6
21235 else
21236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21237 /* end confdefs.h. */
21238 #include <osreldate.h>
21240 main ()
21242 #if __FreeBSD_version < 400000
21243 fail;
21244 #endif
21247 return 0;
21249 _ACEOF
21250 if ac_fn_c_try_link "$LINENO"; then :
21251 emacs_cv_freebsd_terminfo=yes
21252 else
21253 emacs_cv_freebsd_terminfo=no
21255 rm -f core conftest.err conftest.$ac_objext \
21256 conftest$ac_exeext conftest.$ac_ext
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
21261 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21263 if test $emacs_cv_freebsd_terminfo = yes; then
21264 LIBS_TERMCAP="-lncurses"
21265 else
21266 TERMINFO=no
21267 LIBS_TERMCAP="-ltermcap"
21271 netbsd)
21272 if test "x$LIBS_TERMCAP" != "x-lterminfo"; then
21273 TERMINFO=no
21274 LIBS_TERMCAP="-ltermcap"
21278 openbsd) LIBS_TERMCAP="-lncurses" ;;
21280 ## hpux: Make sure we get select from libc rather than from libcurses
21281 ## because libcurses on HPUX 10.10 has a broken version of select.
21282 ## We used to use -lc -lcurses, but this may be cleaner.
21283 ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly
21284 # set that way, now it uses the default). Isn't this a contradiction?
21285 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21287 esac
21289 TERMCAP_OBJ=tparam.o
21290 if test $TERMINFO = yes; then
21292 $as_echo "#define TERMINFO 1" >>confdefs.h
21294 TERMCAP_OBJ=terminfo.o
21300 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21301 resolv=no
21302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21303 /* end confdefs.h. */
21304 #include <netinet/in.h>
21305 #include <arpa/nameser.h>
21306 #include <resolv.h>
21308 main ()
21310 return res_init();
21312 return 0;
21314 _ACEOF
21315 if ac_fn_c_try_link "$LINENO"; then :
21316 have_res_init=yes
21317 else
21318 have_res_init=no
21320 rm -f core conftest.err conftest.$ac_objext \
21321 conftest$ac_exeext conftest.$ac_ext
21322 if test "$have_res_init" = no; then
21323 OLIBS="$LIBS"
21324 LIBS="$LIBS -lresolv"
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21326 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21328 /* end confdefs.h. */
21329 #include <netinet/in.h>
21330 #include <arpa/nameser.h>
21331 #include <resolv.h>
21333 main ()
21335 return res_init();
21337 return 0;
21339 _ACEOF
21340 if ac_fn_c_try_link "$LINENO"; then :
21341 have_res_init=yes
21342 else
21343 have_res_init=no
21345 rm -f core conftest.err conftest.$ac_objext \
21346 conftest$ac_exeext conftest.$ac_ext
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21348 $as_echo "$have_res_init" >&6; }
21349 if test "$have_res_init" = yes ; then
21350 resolv=yes
21352 LIBS="$OLIBS"
21355 if test "$have_res_init" = yes; then
21357 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21361 # Do we need the Hesiod library to provide the support routines?
21362 LIBHESIOD=
21363 if test "$with_hesiod" != no ; then
21364 # Don't set $LIBS here -- see comments above. FIXME which comments?
21365 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21366 if test "x$ac_cv_func_res_send" = x""yes; then :
21368 else
21369 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21370 if test "x$ac_cv_func___res_send" = x""yes; then :
21372 else
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21374 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21375 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21376 $as_echo_n "(cached) " >&6
21377 else
21378 ac_check_lib_save_LIBS=$LIBS
21379 LIBS="-lresolv $LIBS"
21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21381 /* end confdefs.h. */
21383 /* Override any GCC internal prototype to avoid an error.
21384 Use char because int might match the return type of a GCC
21385 builtin and then its argument prototype would still apply. */
21386 #ifdef __cplusplus
21387 extern "C"
21388 #endif
21389 char res_send ();
21391 main ()
21393 return res_send ();
21395 return 0;
21397 _ACEOF
21398 if ac_fn_c_try_link "$LINENO"; then :
21399 ac_cv_lib_resolv_res_send=yes
21400 else
21401 ac_cv_lib_resolv_res_send=no
21403 rm -f core conftest.err conftest.$ac_objext \
21404 conftest$ac_exeext conftest.$ac_ext
21405 LIBS=$ac_check_lib_save_LIBS
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21408 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21409 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21410 resolv=yes
21411 else
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21413 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21414 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21415 $as_echo_n "(cached) " >&6
21416 else
21417 ac_check_lib_save_LIBS=$LIBS
21418 LIBS="-lresolv $LIBS"
21419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420 /* end confdefs.h. */
21422 /* Override any GCC internal prototype to avoid an error.
21423 Use char because int might match the return type of a GCC
21424 builtin and then its argument prototype would still apply. */
21425 #ifdef __cplusplus
21426 extern "C"
21427 #endif
21428 char __res_send ();
21430 main ()
21432 return __res_send ();
21434 return 0;
21436 _ACEOF
21437 if ac_fn_c_try_link "$LINENO"; then :
21438 ac_cv_lib_resolv___res_send=yes
21439 else
21440 ac_cv_lib_resolv___res_send=no
21442 rm -f core conftest.err conftest.$ac_objext \
21443 conftest$ac_exeext conftest.$ac_ext
21444 LIBS=$ac_check_lib_save_LIBS
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21447 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21448 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21449 resolv=yes
21458 if test "$resolv" = yes ; then
21459 RESOLVLIB=-lresolv
21460 else
21461 RESOLVLIB=
21463 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21464 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21466 else
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21468 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21469 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21470 $as_echo_n "(cached) " >&6
21471 else
21472 ac_check_lib_save_LIBS=$LIBS
21473 LIBS="-lhesiod $RESOLVLIB $LIBS"
21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21475 /* end confdefs.h. */
21477 /* Override any GCC internal prototype to avoid an error.
21478 Use char because int might match the return type of a GCC
21479 builtin and then its argument prototype would still apply. */
21480 #ifdef __cplusplus
21481 extern "C"
21482 #endif
21483 char hes_getmailhost ();
21485 main ()
21487 return hes_getmailhost ();
21489 return 0;
21491 _ACEOF
21492 if ac_fn_c_try_link "$LINENO"; then :
21493 ac_cv_lib_hesiod_hes_getmailhost=yes
21494 else
21495 ac_cv_lib_hesiod_hes_getmailhost=no
21497 rm -f core conftest.err conftest.$ac_objext \
21498 conftest$ac_exeext conftest.$ac_ext
21499 LIBS=$ac_check_lib_save_LIBS
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21502 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21503 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21504 hesiod=yes
21505 else
21512 if test x"$hesiod" = xyes; then
21514 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21516 LIBHESIOD=-lhesiod
21521 # Do we need libresolv (due to res_init or Hesiod)?
21522 if test "$resolv" = yes ; then
21524 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21526 LIBRESOLV=-lresolv
21527 else
21528 LIBRESOLV=
21532 # These tell us which Kerberos-related libraries to use.
21533 COM_ERRLIB=
21534 CRYPTOLIB=
21535 KRB5LIB=
21536 DESLIB=
21537 KRB4LIB=
21539 if test "${with_kerberos}" != no; then
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21541 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21542 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21544 else
21545 ac_check_lib_save_LIBS=$LIBS
21546 LIBS="-lcom_err $LIBS"
21547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21548 /* end confdefs.h. */
21550 /* Override any GCC internal prototype to avoid an error.
21551 Use char because int might match the return type of a GCC
21552 builtin and then its argument prototype would still apply. */
21553 #ifdef __cplusplus
21554 extern "C"
21555 #endif
21556 char com_err ();
21558 main ()
21560 return com_err ();
21562 return 0;
21564 _ACEOF
21565 if ac_fn_c_try_link "$LINENO"; then :
21566 ac_cv_lib_com_err_com_err=yes
21567 else
21568 ac_cv_lib_com_err_com_err=no
21570 rm -f core conftest.err conftest.$ac_objext \
21571 conftest$ac_exeext conftest.$ac_ext
21572 LIBS=$ac_check_lib_save_LIBS
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21575 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21576 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21577 have_com_err=yes
21578 else
21579 have_com_err=no
21582 if test $have_com_err = yes; then
21583 COM_ERRLIB=-lcom_err
21584 LIBS="$COM_ERRLIB $LIBS"
21586 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21590 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21591 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21593 else
21594 ac_check_lib_save_LIBS=$LIBS
21595 LIBS="-lcrypto $LIBS"
21596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21597 /* end confdefs.h. */
21599 /* Override any GCC internal prototype to avoid an error.
21600 Use char because int might match the return type of a GCC
21601 builtin and then its argument prototype would still apply. */
21602 #ifdef __cplusplus
21603 extern "C"
21604 #endif
21605 char mit_des_cbc_encrypt ();
21607 main ()
21609 return mit_des_cbc_encrypt ();
21611 return 0;
21613 _ACEOF
21614 if ac_fn_c_try_link "$LINENO"; then :
21615 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21616 else
21617 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21619 rm -f core conftest.err conftest.$ac_objext \
21620 conftest$ac_exeext conftest.$ac_ext
21621 LIBS=$ac_check_lib_save_LIBS
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21624 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21625 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
21626 have_crypto=yes
21627 else
21628 have_crypto=no
21631 if test $have_crypto = yes; then
21632 CRYPTOLIB=-lcrypto
21633 LIBS="$CRYPTOLIB $LIBS"
21635 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21639 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21640 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
21641 $as_echo_n "(cached) " >&6
21642 else
21643 ac_check_lib_save_LIBS=$LIBS
21644 LIBS="-lk5crypto $LIBS"
21645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21646 /* end confdefs.h. */
21648 /* Override any GCC internal prototype to avoid an error.
21649 Use char because int might match the return type of a GCC
21650 builtin and then its argument prototype would still apply. */
21651 #ifdef __cplusplus
21652 extern "C"
21653 #endif
21654 char mit_des_cbc_encrypt ();
21656 main ()
21658 return mit_des_cbc_encrypt ();
21660 return 0;
21662 _ACEOF
21663 if ac_fn_c_try_link "$LINENO"; then :
21664 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21665 else
21666 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21668 rm -f core conftest.err conftest.$ac_objext \
21669 conftest$ac_exeext conftest.$ac_ext
21670 LIBS=$ac_check_lib_save_LIBS
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21673 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21674 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
21675 have_k5crypto=yes
21676 else
21677 have_k5crypto=no
21680 if test $have_k5crypto = yes; then
21681 CRYPTOLIB=-lk5crypto
21682 LIBS="$CRYPTOLIB $LIBS"
21684 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21688 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21689 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21691 else
21692 ac_check_lib_save_LIBS=$LIBS
21693 LIBS="-lkrb5 $LIBS"
21694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695 /* end confdefs.h. */
21697 /* Override any GCC internal prototype to avoid an error.
21698 Use char because int might match the return type of a GCC
21699 builtin and then its argument prototype would still apply. */
21700 #ifdef __cplusplus
21701 extern "C"
21702 #endif
21703 char krb5_init_context ();
21705 main ()
21707 return krb5_init_context ();
21709 return 0;
21711 _ACEOF
21712 if ac_fn_c_try_link "$LINENO"; then :
21713 ac_cv_lib_krb5_krb5_init_context=yes
21714 else
21715 ac_cv_lib_krb5_krb5_init_context=no
21717 rm -f core conftest.err conftest.$ac_objext \
21718 conftest$ac_exeext conftest.$ac_ext
21719 LIBS=$ac_check_lib_save_LIBS
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21722 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21723 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
21724 have_krb5=yes
21725 else
21726 have_krb5=no
21729 if test $have_krb5=yes; then
21730 KRB5LIB=-lkrb5
21731 LIBS="$KRB5LIB $LIBS"
21733 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
21736 if test "${with_kerberos5}" = no; then
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
21738 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21739 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
21740 $as_echo_n "(cached) " >&6
21741 else
21742 ac_check_lib_save_LIBS=$LIBS
21743 LIBS="-ldes425 $LIBS"
21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21747 /* Override any GCC internal prototype to avoid an error.
21748 Use char because int might match the return type of a GCC
21749 builtin and then its argument prototype would still apply. */
21750 #ifdef __cplusplus
21751 extern "C"
21752 #endif
21753 char des_cbc_encrypt ();
21755 main ()
21757 return des_cbc_encrypt ();
21759 return 0;
21761 _ACEOF
21762 if ac_fn_c_try_link "$LINENO"; then :
21763 ac_cv_lib_des425_des_cbc_encrypt=yes
21764 else
21765 ac_cv_lib_des425_des_cbc_encrypt=no
21767 rm -f core conftest.err conftest.$ac_objext \
21768 conftest$ac_exeext conftest.$ac_ext
21769 LIBS=$ac_check_lib_save_LIBS
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21772 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21773 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
21774 have_des425=yes
21775 else
21776 have_des425=no
21779 if test $have_des425 = yes; then
21780 DESLIB=-ldes425
21781 LIBS="$DESLIB $LIBS"
21783 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
21785 else
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
21787 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21788 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
21789 $as_echo_n "(cached) " >&6
21790 else
21791 ac_check_lib_save_LIBS=$LIBS
21792 LIBS="-ldes $LIBS"
21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h. */
21796 /* Override any GCC internal prototype to avoid an error.
21797 Use char because int might match the return type of a GCC
21798 builtin and then its argument prototype would still apply. */
21799 #ifdef __cplusplus
21800 extern "C"
21801 #endif
21802 char des_cbc_encrypt ();
21804 main ()
21806 return des_cbc_encrypt ();
21808 return 0;
21810 _ACEOF
21811 if ac_fn_c_try_link "$LINENO"; then :
21812 ac_cv_lib_des_des_cbc_encrypt=yes
21813 else
21814 ac_cv_lib_des_des_cbc_encrypt=no
21816 rm -f core conftest.err conftest.$ac_objext \
21817 conftest$ac_exeext conftest.$ac_ext
21818 LIBS=$ac_check_lib_save_LIBS
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21821 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21822 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
21823 have_des=yes
21824 else
21825 have_des=no
21828 if test $have_des = yes; then
21829 DESLIB=-ldes
21830 LIBS="$DESLIB $LIBS"
21832 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
21837 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21838 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
21839 $as_echo_n "(cached) " >&6
21840 else
21841 ac_check_lib_save_LIBS=$LIBS
21842 LIBS="-lkrb4 $LIBS"
21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21844 /* end confdefs.h. */
21846 /* Override any GCC internal prototype to avoid an error.
21847 Use char because int might match the return type of a GCC
21848 builtin and then its argument prototype would still apply. */
21849 #ifdef __cplusplus
21850 extern "C"
21851 #endif
21852 char krb_get_cred ();
21854 main ()
21856 return krb_get_cred ();
21858 return 0;
21860 _ACEOF
21861 if ac_fn_c_try_link "$LINENO"; then :
21862 ac_cv_lib_krb4_krb_get_cred=yes
21863 else
21864 ac_cv_lib_krb4_krb_get_cred=no
21866 rm -f core conftest.err conftest.$ac_objext \
21867 conftest$ac_exeext conftest.$ac_ext
21868 LIBS=$ac_check_lib_save_LIBS
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21871 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21872 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
21873 have_krb4=yes
21874 else
21875 have_krb4=no
21878 if test $have_krb4 = yes; then
21879 KRB4LIB=-lkrb4
21880 LIBS="$KRB4LIB $LIBS"
21882 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
21884 else
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
21886 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21887 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
21888 $as_echo_n "(cached) " >&6
21889 else
21890 ac_check_lib_save_LIBS=$LIBS
21891 LIBS="-lkrb $LIBS"
21892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21893 /* end confdefs.h. */
21895 /* Override any GCC internal prototype to avoid an error.
21896 Use char because int might match the return type of a GCC
21897 builtin and then its argument prototype would still apply. */
21898 #ifdef __cplusplus
21899 extern "C"
21900 #endif
21901 char krb_get_cred ();
21903 main ()
21905 return krb_get_cred ();
21907 return 0;
21909 _ACEOF
21910 if ac_fn_c_try_link "$LINENO"; then :
21911 ac_cv_lib_krb_krb_get_cred=yes
21912 else
21913 ac_cv_lib_krb_krb_get_cred=no
21915 rm -f core conftest.err conftest.$ac_objext \
21916 conftest$ac_exeext conftest.$ac_ext
21917 LIBS=$ac_check_lib_save_LIBS
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
21920 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21921 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
21922 have_krb=yes
21923 else
21924 have_krb=no
21927 if test $have_krb = yes; then
21928 KRB4LIB=-lkrb
21929 LIBS="$KRB4LIB $LIBS"
21931 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
21937 if test "${with_kerberos5}" != no; then
21938 for ac_header in krb5.h
21939 do :
21940 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
21941 if test "x$ac_cv_header_krb5_h" = x""yes; then :
21942 cat >>confdefs.h <<_ACEOF
21943 #define HAVE_KRB5_H 1
21944 _ACEOF
21945 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
21947 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
21949 cat >>confdefs.h <<_ACEOF
21950 #define HAVE_KRB5_ERROR_TEXT 1
21951 _ACEOF
21955 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
21957 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
21959 cat >>confdefs.h <<_ACEOF
21960 #define HAVE_KRB5_ERROR_E_TEXT 1
21961 _ACEOF
21968 done
21970 else
21971 for ac_header in des.h
21972 do :
21973 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
21974 if test "x$ac_cv_header_des_h" = x""yes; then :
21975 cat >>confdefs.h <<_ACEOF
21976 #define HAVE_DES_H 1
21977 _ACEOF
21979 else
21980 for ac_header in kerberosIV/des.h
21981 do :
21982 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
21983 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
21984 cat >>confdefs.h <<_ACEOF
21985 #define HAVE_KERBEROSIV_DES_H 1
21986 _ACEOF
21988 else
21989 for ac_header in kerberos/des.h
21990 do :
21991 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
21992 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
21993 cat >>confdefs.h <<_ACEOF
21994 #define HAVE_KERBEROS_DES_H 1
21995 _ACEOF
21999 done
22003 done
22007 done
22009 for ac_header in krb.h
22010 do :
22011 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
22012 if test "x$ac_cv_header_krb_h" = x""yes; then :
22013 cat >>confdefs.h <<_ACEOF
22014 #define HAVE_KRB_H 1
22015 _ACEOF
22017 else
22018 for ac_header in kerberosIV/krb.h
22019 do :
22020 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
22021 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_KERBEROSIV_KRB_H 1
22024 _ACEOF
22026 else
22027 for ac_header in kerberos/krb.h
22028 do :
22029 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
22030 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
22031 cat >>confdefs.h <<_ACEOF
22032 #define HAVE_KERBEROS_KRB_H 1
22033 _ACEOF
22037 done
22041 done
22045 done
22048 for ac_header in com_err.h
22049 do :
22050 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
22051 if test "x$ac_cv_header_com_err_h" = x""yes; then :
22052 cat >>confdefs.h <<_ACEOF
22053 #define HAVE_COM_ERR_H 1
22054 _ACEOF
22058 done
22068 for ac_func in tzset
22069 do :
22070 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
22071 if test "x$ac_cv_func_tzset" = x""yes; then :
22072 cat >>confdefs.h <<_ACEOF
22073 #define HAVE_TZSET 1
22074 _ACEOF
22077 done
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
22080 $as_echo_n "checking whether localtime caches TZ... " >&6; }
22081 if test "${emacs_cv_localtime_cache+set}" = set; then :
22082 $as_echo_n "(cached) " >&6
22083 else
22084 if test x$ac_cv_func_tzset = xyes; then
22085 if test "$cross_compiling" = yes; then :
22086 # If we have tzset, assume the worst when cross-compiling.
22087 emacs_cv_localtime_cache=yes
22088 else
22089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22090 /* end confdefs.h. */
22091 #include <time.h>
22092 char TZ_GMT0[] = "TZ=GMT0";
22093 char TZ_PST8[] = "TZ=PST8";
22094 main()
22096 time_t now = time ((time_t *) 0);
22097 int hour_GMT0, hour_unset;
22098 if (putenv (TZ_GMT0) != 0)
22099 exit (1);
22100 hour_GMT0 = localtime (&now)->tm_hour;
22101 unsetenv("TZ");
22102 hour_unset = localtime (&now)->tm_hour;
22103 if (putenv (TZ_PST8) != 0)
22104 exit (1);
22105 if (localtime (&now)->tm_hour == hour_GMT0)
22106 exit (1);
22107 unsetenv("TZ");
22108 if (localtime (&now)->tm_hour != hour_unset)
22109 exit (1);
22110 exit (0);
22112 _ACEOF
22113 if ac_fn_c_try_run "$LINENO"; then :
22114 emacs_cv_localtime_cache=no
22115 else
22116 emacs_cv_localtime_cache=yes
22118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22119 conftest.$ac_objext conftest.beam conftest.$ac_ext
22122 else
22123 # If we lack tzset, report that localtime does not cache TZ,
22124 # since we can't invalidate the cache if we don't have tzset.
22125 emacs_cv_localtime_cache=no
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
22129 $as_echo "$emacs_cv_localtime_cache" >&6; }
22130 if test $emacs_cv_localtime_cache = yes; then
22132 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
22136 ok_so_far=yes
22137 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22138 if test "x$ac_cv_func_socket" = x""yes; then :
22140 else
22141 ok_so_far=no
22144 if test $ok_so_far = yes; then
22145 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22146 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
22148 else
22149 ok_so_far=no
22154 if test $ok_so_far = yes; then
22155 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22156 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
22158 else
22159 ok_so_far=no
22164 if test $ok_so_far = yes; then
22166 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
22170 if test -f /usr/lpp/X11/bin/smt.exp; then
22172 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
22177 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
22178 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22180 $as_echo "yes" >&6; }
22182 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
22184 else
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22186 $as_echo "no" >&6; }
22189 for ac_header in vfork.h
22190 do :
22191 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22192 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22193 cat >>confdefs.h <<_ACEOF
22194 #define HAVE_VFORK_H 1
22195 _ACEOF
22199 done
22201 for ac_func in fork vfork
22202 do :
22203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22204 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22205 eval as_val=\$$as_ac_var
22206 if test "x$as_val" = x""yes; then :
22207 cat >>confdefs.h <<_ACEOF
22208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22209 _ACEOF
22212 done
22214 if test "x$ac_cv_func_fork" = xyes; then
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22216 $as_echo_n "checking for working fork... " >&6; }
22217 if test "${ac_cv_func_fork_works+set}" = set; then :
22218 $as_echo_n "(cached) " >&6
22219 else
22220 if test "$cross_compiling" = yes; then :
22221 ac_cv_func_fork_works=cross
22222 else
22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h. */
22225 $ac_includes_default
22227 main ()
22230 /* By Ruediger Kuhlmann. */
22231 return fork () < 0;
22234 return 0;
22236 _ACEOF
22237 if ac_fn_c_try_run "$LINENO"; then :
22238 ac_cv_func_fork_works=yes
22239 else
22240 ac_cv_func_fork_works=no
22242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22243 conftest.$ac_objext conftest.beam conftest.$ac_ext
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22248 $as_echo "$ac_cv_func_fork_works" >&6; }
22250 else
22251 ac_cv_func_fork_works=$ac_cv_func_fork
22253 if test "x$ac_cv_func_fork_works" = xcross; then
22254 case $host in
22255 *-*-amigaos* | *-*-msdosdjgpp*)
22256 # Override, as these systems have only a dummy fork() stub
22257 ac_cv_func_fork_works=no
22260 ac_cv_func_fork_works=yes
22262 esac
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22264 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22266 ac_cv_func_vfork_works=$ac_cv_func_vfork
22267 if test "x$ac_cv_func_vfork" = xyes; then
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22269 $as_echo_n "checking for working vfork... " >&6; }
22270 if test "${ac_cv_func_vfork_works+set}" = set; then :
22271 $as_echo_n "(cached) " >&6
22272 else
22273 if test "$cross_compiling" = yes; then :
22274 ac_cv_func_vfork_works=cross
22275 else
22276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22277 /* end confdefs.h. */
22278 /* Thanks to Paul Eggert for this test. */
22279 $ac_includes_default
22280 #include <sys/wait.h>
22281 #ifdef HAVE_VFORK_H
22282 # include <vfork.h>
22283 #endif
22284 /* On some sparc systems, changes by the child to local and incoming
22285 argument registers are propagated back to the parent. The compiler
22286 is told about this with #include <vfork.h>, but some compilers
22287 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22288 static variable whose address is put into a register that is
22289 clobbered by the vfork. */
22290 static void
22291 #ifdef __cplusplus
22292 sparc_address_test (int arg)
22293 # else
22294 sparc_address_test (arg) int arg;
22295 #endif
22297 static pid_t child;
22298 if (!child) {
22299 child = vfork ();
22300 if (child < 0) {
22301 perror ("vfork");
22302 _exit(2);
22304 if (!child) {
22305 arg = getpid();
22306 write(-1, "", 0);
22307 _exit (arg);
22313 main ()
22315 pid_t parent = getpid ();
22316 pid_t child;
22318 sparc_address_test (0);
22320 child = vfork ();
22322 if (child == 0) {
22323 /* Here is another test for sparc vfork register problems. This
22324 test uses lots of local variables, at least as many local
22325 variables as main has allocated so far including compiler
22326 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22327 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22328 reuse the register of parent for one of the local variables,
22329 since it will think that parent can't possibly be used any more
22330 in this routine. Assigning to the local variable will thus
22331 munge parent in the parent process. */
22332 pid_t
22333 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22334 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22335 /* Convince the compiler that p..p7 are live; otherwise, it might
22336 use the same hardware register for all 8 local variables. */
22337 if (p != p1 || p != p2 || p != p3 || p != p4
22338 || p != p5 || p != p6 || p != p7)
22339 _exit(1);
22341 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22342 from child file descriptors. If the child closes a descriptor
22343 before it execs or exits, this munges the parent's descriptor
22344 as well. Test for this by closing stdout in the child. */
22345 _exit(close(fileno(stdout)) != 0);
22346 } else {
22347 int status;
22348 struct stat st;
22350 while (wait(&status) != child)
22352 return (
22353 /* Was there some problem with vforking? */
22354 child < 0
22356 /* Did the child fail? (This shouldn't happen.) */
22357 || status
22359 /* Did the vfork/compiler bug occur? */
22360 || parent != getpid()
22362 /* Did the file descriptor bug occur? */
22363 || fstat(fileno(stdout), &st) != 0
22367 _ACEOF
22368 if ac_fn_c_try_run "$LINENO"; then :
22369 ac_cv_func_vfork_works=yes
22370 else
22371 ac_cv_func_vfork_works=no
22373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22374 conftest.$ac_objext conftest.beam conftest.$ac_ext
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22379 $as_echo "$ac_cv_func_vfork_works" >&6; }
22382 if test "x$ac_cv_func_fork_works" = xcross; then
22383 ac_cv_func_vfork_works=$ac_cv_func_vfork
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22385 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22388 if test "x$ac_cv_func_vfork_works" = xyes; then
22390 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22392 else
22394 $as_echo "#define vfork fork" >>confdefs.h
22397 if test "x$ac_cv_func_fork_works" = xyes; then
22399 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22404 for ac_func in snprintf
22405 do :
22406 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22407 if test "x$ac_cv_func_snprintf" = x""yes; then :
22408 cat >>confdefs.h <<_ACEOF
22409 #define HAVE_SNPRINTF 1
22410 _ACEOF
22413 done
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22417 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22418 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422 /* end confdefs.h. */
22423 #include <langinfo.h>
22425 main ()
22427 char* cs = nl_langinfo(CODESET);
22429 return 0;
22431 _ACEOF
22432 if ac_fn_c_try_link "$LINENO"; then :
22433 emacs_cv_langinfo_codeset=yes
22434 else
22435 emacs_cv_langinfo_codeset=no
22437 rm -f core conftest.err conftest.$ac_objext \
22438 conftest$ac_exeext conftest.$ac_ext
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
22442 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
22443 if test $emacs_cv_langinfo_codeset = yes; then
22445 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22450 $as_echo_n "checking for mbstate_t... " >&6; }
22451 if test "${ac_cv_type_mbstate_t+set}" = set; then :
22452 $as_echo_n "(cached) " >&6
22453 else
22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455 /* end confdefs.h. */
22456 $ac_includes_default
22457 # include <wchar.h>
22459 main ()
22461 mbstate_t x; return sizeof x;
22463 return 0;
22465 _ACEOF
22466 if ac_fn_c_try_compile "$LINENO"; then :
22467 ac_cv_type_mbstate_t=yes
22468 else
22469 ac_cv_type_mbstate_t=no
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22474 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22475 if test $ac_cv_type_mbstate_t = yes; then
22477 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22479 else
22481 $as_echo "#define mbstate_t int" >>confdefs.h
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
22486 $as_echo_n "checking for C restricted array declarations... " >&6; }
22487 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
22488 $as_echo_n "(cached) " >&6
22489 else
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22492 void fred (int x[__restrict]);
22494 main ()
22498 return 0;
22500 _ACEOF
22501 if ac_fn_c_try_compile "$LINENO"; then :
22502 emacs_cv_c_restrict_arr=yes
22503 else
22504 emacs_cv_c_restrict_arr=no
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
22509 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
22510 if test "$emacs_cv_c_restrict_arr" = yes; then
22512 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
22517 case $opsys in
22518 darwin | gnu | hpux* | *bsd )
22520 $as_echo "#define NO_TERMIO 1" >>confdefs.h
22523 esac
22525 case $opsys in
22526 hpux* | irix6-5 | openbsd | sol2* | unixware )
22528 $as_echo "#define BROKEN_SIGIO 1" >>confdefs.h
22531 esac
22533 case $opsys in
22534 gnu-* | sol2-10 )
22536 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
22539 esac
22541 case $opsys in
22542 gnu-kfreebsd) opsysfile="s/gnu-linux.h" ;;
22544 hpux11)
22546 $as_echo "#define BROKEN_SA_RESTART 1" >>confdefs.h
22549 $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h
22552 opsysfile="s/hpux10-20.h"
22555 openbsd) opsysfile="s/netbsd.h" ;;
22557 sol2-10)
22559 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
22561 opsysfile="s/sol2-6.h"
22563 esac
22565 # Set up the CFLAGS for real compilation, so we can substitute it.
22566 CFLAGS="$REAL_CFLAGS"
22567 CPPFLAGS="$REAL_CPPFLAGS"
22569 ## Hack to detect a buggy GCC version.
22570 if test "x$GCC" = xyes \
22571 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
22572 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
22573 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
22574 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
22577 version=$PACKAGE_VERSION
22579 ### Specify what sort of things we'll be editing into Makefile and config.h.
22580 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22583 ## Unused?
22605 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
22606 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
22607 ## end of LIBX_BASE, but nothing ever set it.
22612 ## Used in lwlib/Makefile.in.
22614 if test -n "${opsysfile}"; then
22615 S_FILE="\$(srcdir)/${opsysfile}"
22616 else
22617 S_FILE=
22628 cat >>confdefs.h <<_ACEOF
22629 #define EMACS_CONFIGURATION "${canonical}"
22630 _ACEOF
22633 cat >>confdefs.h <<_ACEOF
22634 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22635 _ACEOF
22637 if test -n "$opsysfile"; then
22639 cat >>confdefs.h <<_ACEOF
22640 #define config_opsysfile "${opsysfile}"
22641 _ACEOF
22645 XMENU_OBJ=
22646 XOBJ=
22647 FONT_OBJ=
22648 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22650 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
22652 XMENU_OBJ=xmenu.o
22653 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
22654 FONT_OBJ=xfont.o
22655 if test "$HAVE_XFT" = "yes"; then
22656 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
22657 elif test "$HAVE_FREETYPE" = "yes"; then
22658 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
22666 WIDGET_OBJ=
22667 MOTIF_LIBW=
22668 if test "${USE_X_TOOLKIT}" != "none" ; then
22669 WIDGET_OBJ=widget.o
22671 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
22673 if test "${USE_X_TOOLKIT}" = "LUCID"; then
22675 $as_echo "#define USE_LUCID 1" >>confdefs.h
22677 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
22679 $as_echo "#define USE_MOTIF 1" >>confdefs.h
22681 MOTIF_LIBW=-lXm
22682 case "$opsys" in
22683 gnu-linux)
22684 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
22685 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
22688 unixware)
22689 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
22690 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
22691 MOTIF_LIBW="MOTIF_LIBW -lXimp"
22694 aix4-2)
22695 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
22696 MOTIF_LIBW="$MOTIF_LIBW -li18n"
22698 esac
22699 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
22704 TOOLKIT_LIBW=
22705 case "$USE_X_TOOLKIT" in
22706 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
22707 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
22708 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
22709 esac
22712 if test "$USE_X_TOOLKIT" = "none"; then
22713 LIBXT_OTHER="\$(LIBXSM)"
22714 OLDXMENU_TARGET="really-oldXMenu"
22715 else
22716 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
22717 OLDXMENU_TARGET="really-lwlib"
22721 ## The X Menu stuff is present in the X10 distribution, but missing
22722 ## from X11. If we have X10, just use the installed library;
22723 ## otherwise, use our own copy.
22724 if test "${HAVE_X11}" = "yes" ; then
22726 $as_echo "#define HAVE_X11 1" >>confdefs.h
22729 if test "$USE_X_TOOLKIT" = "none"; then
22730 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
22731 else
22732 OLDXMENU="\${lwlibdir}/liblw.a"
22734 LIBXMENU="\$(OLDXMENU)"
22735 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
22736 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
22737 else
22738 ## For a syntactically valid Makefile; not actually used for anything.
22739 ## See comments in src/Makefile.in.
22740 OLDXMENU=nothing
22741 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
22742 if test "${HAVE_X_WINDOWS}" = "yes"; then
22743 LIBXMENU="-lXMenu"
22744 else
22745 LIBXMENU=
22747 LIBX_OTHER=
22748 OLDXMENU_DEPS=
22751 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
22752 OLDXMENU_TARGET=
22753 OLDXMENU=nothing
22754 LIBXMENU=
22755 OLDXMENU_DEPS=
22764 if test "${HAVE_MENUS}" = "yes" ; then
22766 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
22770 if test "${GNU_MALLOC}" = "yes" ; then
22772 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
22776 RALLOC_OBJ=
22777 if test "${REL_ALLOC}" = "yes" ; then
22779 $as_echo "#define REL_ALLOC 1" >>confdefs.h
22782 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
22786 if test "$opsys" = "cygwin"; then
22787 CYGWIN_OBJ="sheap.o"
22788 ## Cygwin differs because of its unexec().
22789 PRE_ALLOC_OBJ=
22790 POST_ALLOC_OBJ=lastfile.o
22791 else
22792 CYGWIN_OBJ=
22793 PRE_ALLOC_OBJ=lastfile.o
22794 POST_ALLOC_OBJ=
22800 case "$opsys" in
22801 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
22803 darwin)
22804 ## The -headerpad option tells ld (see man page) to leave room at the
22805 ## end of the header for adding load commands. Needed for dumping.
22806 ## 0x690 is the total size of 30 segment load commands (at 56
22807 ## each); under Cocoa 31 commands are required.
22808 if test "$HAVE_NS" = "yes"; then
22809 libs_nsgui="-framework AppKit"
22810 headerpad_extra=6C8
22811 else
22812 libs_nsgui=
22813 headerpad_extra=690
22815 LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
22817 ## This is here because src/Makefile.in did some extra fiddling around
22818 ## with LD_SWITCH_SYSTEM. The cpp logic was:
22819 ## #ifndef LD_SWITCH_SYSTEM
22820 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
22821 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
22822 ## not using gcc, darwin.
22823 ## Because this was done in src/Makefile.in, the resulting part of
22824 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
22825 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
22826 ## rather than LD_SWITCH_SYSTEM.
22827 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
22828 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
22831 ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to
22832 ## find X at run-time.
22833 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the
22834 ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH
22835 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
22836 ## had different values in configure (in ac_link) and src/Makefile.in.
22837 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
22838 gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;;
22840 *) LD_SWITCH_SYSTEM_TEMACS= ;;
22841 esac
22843 if test "$NS_IMPL_GNUSTEP" = "yes"; then
22844 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
22850 LD_FIRSTFLAG=
22851 ORDINARY_LINK=
22852 case "$opsys" in
22853 ## gnu: GNU needs its own crt0.
22854 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
22856 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
22857 ## library search parth, i.e. it won't search /usr/lib for libc and
22858 ## friends. Using -nostartfiles instead avoids this problem, and
22859 ## will also work on earlier NetBSD releases.
22860 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
22862 ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
22863 ## MkLinux/LinuxPPC needs this.
22864 ## s390x-* only supports opsys = gnu-linux so it can be added here.
22865 gnu-*)
22866 case "$canonical" in
22867 powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;;
22868 esac
22870 esac
22873 if test "x$ORDINARY_LINK" = "xyes"; then
22875 LD_FIRSTFLAG=""
22877 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
22880 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
22881 ## freebsd, gnu-* not on powerpc*|s390x*.
22882 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
22884 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
22885 ## places that are difficult to figure out at make time. Fortunately,
22886 ## these same versions allow you to pass arbitrary flags on to the
22887 ## linker, so there is no reason not to use it as a linker.
22889 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
22890 ## searching for libraries in its internal directories, so we have to
22891 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
22892 LD_FIRSTFLAG="-nostdlib"
22895 ## FIXME? What setting of EDIT_LDFLAGS should this have?
22896 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
22901 ## FIXME? The logic here is not precisely the same as that above.
22902 ## There is no check here for a pre-defined LD_FIRSTFLAG.
22903 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
22904 LIB_GCC=
22905 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
22907 case "$opsys" in
22908 freebsd|netbsd|openbsd) LIB_GCC= ;;
22910 gnu-*)
22911 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
22912 ## build on ARM EABI under GNU/Linux. (Bug#5518)
22913 case $host_cpu in
22914 arm*)
22915 LIB_GCC="-lgcc_s"
22918 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
22919 ## immediately undefine it again and redefine it to empty.
22920 ## Was the C_SWITCH_X_SITE part really necessary?
22921 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
22922 LIB_GCC=
22924 esac
22927 ## Ask GCC where to find libgcc.a.
22928 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
22929 esac
22933 ## If we're using X11/GNUstep, define some consequences.
22934 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
22936 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
22939 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
22946 #### Report on what we decided to do.
22947 #### Report GTK as a toolkit, even if it doesn't use Xt.
22948 #### It makes printing result more understandable as using GTK sets
22949 #### toolkit_scroll_bars to yes by default.
22950 if test "${HAVE_GTK}" = "yes"; then
22951 USE_X_TOOLKIT=GTK
22954 echo "
22955 Configured for \`${canonical}'.
22957 Where should the build process find the source code? ${srcdir}
22958 What operating system file should Emacs use? ${opsysfile-none}
22959 What compiler should emacs be built with? ${CC} ${CFLAGS}
22960 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22961 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22962 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22963 What window system should Emacs use? ${window_system}
22964 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22966 if test -n "${x_includes}"; then
22967 echo " Where do we find X Windows header files? ${x_includes}"
22968 else
22969 echo " Where do we find X Windows header files? Standard dirs"
22971 if test -n "${x_libraries}"; then
22972 echo " Where do we find X Windows libraries? ${x_libraries}"
22973 else
22974 echo " Where do we find X Windows libraries? Standard dirs"
22977 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22978 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22979 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22980 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22981 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
22982 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22983 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
22984 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
22986 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
22987 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
22988 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
22989 echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}"
22990 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
22991 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
22992 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
22994 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
22995 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
22996 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
22997 echo " Does Emacs use -lxft? ${HAVE_XFT}"
22999 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23000 echo
23002 if test -n "${EMACSDATA}"; then
23003 echo " Environment variable EMACSDATA set to: $EMACSDATA"
23005 if test -n "${EMACSDOC}"; then
23006 echo " Environment variable EMACSDOC set to: $EMACSDOC"
23009 if test $USE_XASSERTS = yes; then
23010 echo " Compiling with asserts turned on."
23011 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23014 echo
23016 if test "$HAVE_NS" = "yes"; then
23017 echo
23018 echo "You must run \"${MAKE-make} install\" in order to test the built application.
23019 The installed application will go to nextstep/Emacs.app and can be
23020 run or moved from there."
23021 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
23022 echo "The application will be fully self-contained."
23023 else
23024 echo "The lisp resources for the application will be installed under ${prefix}.
23025 You may need to run \"${MAKE-make} install\" with sudo. The application will fail
23026 to run if these resources are not installed."
23028 echo
23031 if test "${opsys}" = "cygwin"; then
23032 case `uname -r` in
23033 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5
23034 $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;}
23035 echo
23037 esac
23040 # Remove any trailing slashes in these variables.
23041 test "${prefix}" != NONE &&
23042 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23043 test "${exec_prefix}" != NONE &&
23044 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23046 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"
23048 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"
23051 opt_makefile=test/automated/Makefile
23053 if test -f $srcdir/${opt_makefile}.in; then
23054 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23055 ac_config_files="$ac_config_files test/automated/Makefile"
23060 opt_makefile=admin/unidata/Makefile
23062 if test -f $srcdir/${opt_makefile}.in; then
23063 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
23064 ac_config_files="$ac_config_files admin/unidata/Makefile"
23069 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
23073 ac_config_commands="$ac_config_commands mkdirs"
23076 ac_config_commands="$ac_config_commands epaths"
23079 ac_config_commands="$ac_config_commands gdbinit"
23082 cat >confcache <<\_ACEOF
23083 # This file is a shell script that caches the results of configure
23084 # tests run on this system so they can be shared between configure
23085 # scripts and configure runs, see configure's option --config-cache.
23086 # It is not useful on other systems. If it contains results you don't
23087 # want to keep, you may remove or edit it.
23089 # config.status only pays attention to the cache file if you give it
23090 # the --recheck option to rerun configure.
23092 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23093 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23094 # following values.
23096 _ACEOF
23098 # The following way of writing the cache mishandles newlines in values,
23099 # but we know of no workaround that is simple, portable, and efficient.
23100 # So, we kill variables containing newlines.
23101 # Ultrix sh set writes to stderr and can't be redirected directly,
23102 # and sets the high bit in the cache file unless we assign to the vars.
23104 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23105 eval ac_val=\$$ac_var
23106 case $ac_val in #(
23107 *${as_nl}*)
23108 case $ac_var in #(
23109 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23111 esac
23112 case $ac_var in #(
23113 _ | IFS | as_nl) ;; #(
23114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23115 *) { eval $ac_var=; unset $ac_var;} ;;
23116 esac ;;
23117 esac
23118 done
23120 (set) 2>&1 |
23121 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23122 *${as_nl}ac_space=\ *)
23123 # `set' does not quote correctly, so add quotes: double-quote
23124 # substitution turns \\\\ into \\, and sed turns \\ into \.
23125 sed -n \
23126 "s/'/'\\\\''/g;
23127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23128 ;; #(
23130 # `set' quotes correctly as required by POSIX, so do not add quotes.
23131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23133 esac |
23134 sort
23136 sed '
23137 /^ac_cv_env_/b end
23138 t clear
23139 :clear
23140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23141 t end
23142 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23143 :end' >>confcache
23144 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23145 if test -w "$cache_file"; then
23146 test "x$cache_file" != "x/dev/null" &&
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23148 $as_echo "$as_me: updating cache $cache_file" >&6;}
23149 cat confcache >$cache_file
23150 else
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23152 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23155 rm -f confcache
23157 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23158 # Let make expand exec_prefix.
23159 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23161 DEFS=-DHAVE_CONFIG_H
23163 ac_libobjs=
23164 ac_ltlibobjs=
23165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23166 # 1. Remove the extension, and $U if already installed.
23167 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23168 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23170 # will be set to the directory where LIBOBJS objects are built.
23171 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23172 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23173 done
23174 LIBOBJS=$ac_libobjs
23176 LTLIBOBJS=$ac_ltlibobjs
23179 if test -n "$EXEEXT"; then
23180 am__EXEEXT_TRUE=
23181 am__EXEEXT_FALSE='#'
23182 else
23183 am__EXEEXT_TRUE='#'
23184 am__EXEEXT_FALSE=
23187 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23188 as_fn_error "conditional \"AMDEP\" was never defined.
23189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23191 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23192 as_fn_error "conditional \"am__fastdepCC\" was never defined.
23193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23195 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
23196 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
23197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23199 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
23200 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
23201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23204 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
23205 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
23206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23208 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
23209 as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
23210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23212 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
23213 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
23214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23216 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
23217 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
23218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23220 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
23221 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
23222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23224 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
23225 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
23226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23228 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
23229 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
23230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23232 if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then
23233 as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined.
23234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23236 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
23237 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
23238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23240 if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then
23241 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined.
23242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23244 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
23245 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
23246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23248 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
23249 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
23250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23253 gl_libobjs=
23254 gl_ltlibobjs=
23255 if test -n "$gl_LIBOBJS"; then
23256 # Remove the extension.
23257 sed_drop_objext='s/\.o$//;s/\.obj$//'
23258 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23259 gl_libobjs="$gl_libobjs $i.$ac_objext"
23260 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
23261 done
23263 gl_LIBOBJS=$gl_libobjs
23265 gl_LTLIBOBJS=$gl_ltlibobjs
23269 gltests_libobjs=
23270 gltests_ltlibobjs=
23271 if test -n "$gltests_LIBOBJS"; then
23272 # Remove the extension.
23273 sed_drop_objext='s/\.o$//;s/\.obj$//'
23274 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23275 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23276 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23277 done
23279 gltests_LIBOBJS=$gltests_libobjs
23281 gltests_LTLIBOBJS=$gltests_ltlibobjs
23285 : ${CONFIG_STATUS=./config.status}
23286 ac_write_fail=0
23287 ac_clean_files_save=$ac_clean_files
23288 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23290 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23291 as_write_fail=0
23292 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23293 #! $SHELL
23294 # Generated by $as_me.
23295 # Run this file to recreate the current configuration.
23296 # Compiler output produced by configure, useful for debugging
23297 # configure, is in config.log if it exists.
23299 debug=false
23300 ac_cs_recheck=false
23301 ac_cs_silent=false
23303 SHELL=\${CONFIG_SHELL-$SHELL}
23304 export SHELL
23305 _ASEOF
23306 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23307 ## -------------------- ##
23308 ## M4sh Initialization. ##
23309 ## -------------------- ##
23311 # Be more Bourne compatible
23312 DUALCASE=1; export DUALCASE # for MKS sh
23313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23314 emulate sh
23315 NULLCMD=:
23316 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23317 # is contrary to our usage. Disable this feature.
23318 alias -g '${1+"$@"}'='"$@"'
23319 setopt NO_GLOB_SUBST
23320 else
23321 case `(set -o) 2>/dev/null` in #(
23322 *posix*) :
23323 set -o posix ;; #(
23324 *) :
23326 esac
23330 as_nl='
23332 export as_nl
23333 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23334 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23335 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23336 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23337 # Prefer a ksh shell builtin over an external printf program on Solaris,
23338 # but without wasting forks for bash or zsh.
23339 if test -z "$BASH_VERSION$ZSH_VERSION" \
23340 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23341 as_echo='print -r --'
23342 as_echo_n='print -rn --'
23343 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23344 as_echo='printf %s\n'
23345 as_echo_n='printf %s'
23346 else
23347 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23348 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23349 as_echo_n='/usr/ucb/echo -n'
23350 else
23351 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23352 as_echo_n_body='eval
23353 arg=$1;
23354 case $arg in #(
23355 *"$as_nl"*)
23356 expr "X$arg" : "X\\(.*\\)$as_nl";
23357 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23358 esac;
23359 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23361 export as_echo_n_body
23362 as_echo_n='sh -c $as_echo_n_body as_echo'
23364 export as_echo_body
23365 as_echo='sh -c $as_echo_body as_echo'
23368 # The user is always right.
23369 if test "${PATH_SEPARATOR+set}" != set; then
23370 PATH_SEPARATOR=:
23371 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23372 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23373 PATH_SEPARATOR=';'
23378 # IFS
23379 # We need space, tab and new line, in precisely that order. Quoting is
23380 # there to prevent editors from complaining about space-tab.
23381 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23382 # splitting by setting IFS to empty value.)
23383 IFS=" "" $as_nl"
23385 # Find who we are. Look in the path if we contain no directory separator.
23386 case $0 in #((
23387 *[\\/]* ) as_myself=$0 ;;
23388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23389 for as_dir in $PATH
23391 IFS=$as_save_IFS
23392 test -z "$as_dir" && as_dir=.
23393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23394 done
23395 IFS=$as_save_IFS
23398 esac
23399 # We did not find ourselves, most probably we were run as `sh COMMAND'
23400 # in which case we are not to be found in the path.
23401 if test "x$as_myself" = x; then
23402 as_myself=$0
23404 if test ! -f "$as_myself"; then
23405 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23406 exit 1
23409 # Unset variables that we do not need and which cause bugs (e.g. in
23410 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23411 # suppresses any "Segmentation fault" message there. '((' could
23412 # trigger a bug in pdksh 5.2.14.
23413 for as_var in BASH_ENV ENV MAIL MAILPATH
23414 do eval test x\${$as_var+set} = xset \
23415 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23416 done
23417 PS1='$ '
23418 PS2='> '
23419 PS4='+ '
23421 # NLS nuisances.
23422 LC_ALL=C
23423 export LC_ALL
23424 LANGUAGE=C
23425 export LANGUAGE
23427 # CDPATH.
23428 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23431 # as_fn_error ERROR [LINENO LOG_FD]
23432 # ---------------------------------
23433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23435 # script with status $?, using 1 if that was 0.
23436 as_fn_error ()
23438 as_status=$?; test $as_status -eq 0 && as_status=1
23439 if test "$3"; then
23440 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23441 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
23443 $as_echo "$as_me: error: $1" >&2
23444 as_fn_exit $as_status
23445 } # as_fn_error
23448 # as_fn_set_status STATUS
23449 # -----------------------
23450 # Set $? to STATUS, without forking.
23451 as_fn_set_status ()
23453 return $1
23454 } # as_fn_set_status
23456 # as_fn_exit STATUS
23457 # -----------------
23458 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23459 as_fn_exit ()
23461 set +e
23462 as_fn_set_status $1
23463 exit $1
23464 } # as_fn_exit
23466 # as_fn_unset VAR
23467 # ---------------
23468 # Portably unset VAR.
23469 as_fn_unset ()
23471 { eval $1=; unset $1;}
23473 as_unset=as_fn_unset
23474 # as_fn_append VAR VALUE
23475 # ----------------------
23476 # Append the text in VALUE to the end of the definition contained in VAR. Take
23477 # advantage of any shell optimizations that allow amortized linear growth over
23478 # repeated appends, instead of the typical quadratic growth present in naive
23479 # implementations.
23480 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23481 eval 'as_fn_append ()
23483 eval $1+=\$2
23485 else
23486 as_fn_append ()
23488 eval $1=\$$1\$2
23490 fi # as_fn_append
23492 # as_fn_arith ARG...
23493 # ------------------
23494 # Perform arithmetic evaluation on the ARGs, and store the result in the
23495 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23496 # must be portable across $(()) and expr.
23497 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23498 eval 'as_fn_arith ()
23500 as_val=$(( $* ))
23502 else
23503 as_fn_arith ()
23505 as_val=`expr "$@" || test $? -eq 1`
23507 fi # as_fn_arith
23510 if expr a : '\(a\)' >/dev/null 2>&1 &&
23511 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23512 as_expr=expr
23513 else
23514 as_expr=false
23517 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23518 as_basename=basename
23519 else
23520 as_basename=false
23523 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23524 as_dirname=dirname
23525 else
23526 as_dirname=false
23529 as_me=`$as_basename -- "$0" ||
23530 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23531 X"$0" : 'X\(//\)$' \| \
23532 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23533 $as_echo X/"$0" |
23534 sed '/^.*\/\([^/][^/]*\)\/*$/{
23535 s//\1/
23538 /^X\/\(\/\/\)$/{
23539 s//\1/
23542 /^X\/\(\/\).*/{
23543 s//\1/
23546 s/.*/./; q'`
23548 # Avoid depending upon Character Ranges.
23549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23552 as_cr_digits='0123456789'
23553 as_cr_alnum=$as_cr_Letters$as_cr_digits
23555 ECHO_C= ECHO_N= ECHO_T=
23556 case `echo -n x` in #(((((
23557 -n*)
23558 case `echo 'xy\c'` in
23559 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23560 xy) ECHO_C='\c';;
23561 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23562 ECHO_T=' ';;
23563 esac;;
23565 ECHO_N='-n';;
23566 esac
23568 rm -f conf$$ conf$$.exe conf$$.file
23569 if test -d conf$$.dir; then
23570 rm -f conf$$.dir/conf$$.file
23571 else
23572 rm -f conf$$.dir
23573 mkdir conf$$.dir 2>/dev/null
23575 if (echo >conf$$.file) 2>/dev/null; then
23576 if ln -s conf$$.file conf$$ 2>/dev/null; then
23577 as_ln_s='ln -s'
23578 # ... but there are two gotchas:
23579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23581 # In both cases, we have to default to `cp -p'.
23582 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23583 as_ln_s='cp -p'
23584 elif ln conf$$.file conf$$ 2>/dev/null; then
23585 as_ln_s=ln
23586 else
23587 as_ln_s='cp -p'
23589 else
23590 as_ln_s='cp -p'
23592 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23593 rmdir conf$$.dir 2>/dev/null
23596 # as_fn_mkdir_p
23597 # -------------
23598 # Create "$as_dir" as a directory, including parents if necessary.
23599 as_fn_mkdir_p ()
23602 case $as_dir in #(
23603 -*) as_dir=./$as_dir;;
23604 esac
23605 test -d "$as_dir" || eval $as_mkdir_p || {
23606 as_dirs=
23607 while :; do
23608 case $as_dir in #(
23609 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23610 *) as_qdir=$as_dir;;
23611 esac
23612 as_dirs="'$as_qdir' $as_dirs"
23613 as_dir=`$as_dirname -- "$as_dir" ||
23614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23615 X"$as_dir" : 'X\(//\)[^/]' \| \
23616 X"$as_dir" : 'X\(//\)$' \| \
23617 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23618 $as_echo X"$as_dir" |
23619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23620 s//\1/
23623 /^X\(\/\/\)[^/].*/{
23624 s//\1/
23627 /^X\(\/\/\)$/{
23628 s//\1/
23631 /^X\(\/\).*/{
23632 s//\1/
23635 s/.*/./; q'`
23636 test -d "$as_dir" && break
23637 done
23638 test -z "$as_dirs" || eval "mkdir $as_dirs"
23639 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
23642 } # as_fn_mkdir_p
23643 if mkdir -p . 2>/dev/null; then
23644 as_mkdir_p='mkdir -p "$as_dir"'
23645 else
23646 test -d ./-p && rmdir ./-p
23647 as_mkdir_p=false
23650 if test -x / >/dev/null 2>&1; then
23651 as_test_x='test -x'
23652 else
23653 if ls -dL / >/dev/null 2>&1; then
23654 as_ls_L_option=L
23655 else
23656 as_ls_L_option=
23658 as_test_x='
23659 eval sh -c '\''
23660 if test -d "$1"; then
23661 test -d "$1/.";
23662 else
23663 case $1 in #(
23664 -*)set "./$1";;
23665 esac;
23666 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23667 ???[sx]*):;;*)false;;esac;fi
23668 '\'' sh
23671 as_executable_p=$as_test_x
23673 # Sed expression to map a string onto a valid CPP name.
23674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23676 # Sed expression to map a string onto a valid variable name.
23677 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23680 exec 6>&1
23681 ## ----------------------------------- ##
23682 ## Main body of $CONFIG_STATUS script. ##
23683 ## ----------------------------------- ##
23684 _ASEOF
23685 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23688 # Save the log message, to keep $0 and so on meaningful, and to
23689 # report actual input values of CONFIG_FILES etc. instead of their
23690 # values after options handling.
23691 ac_log="
23692 This file was extended by emacs $as_me 24.1.50, which was
23693 generated by GNU Autoconf 2.65. Invocation command line was
23695 CONFIG_FILES = $CONFIG_FILES
23696 CONFIG_HEADERS = $CONFIG_HEADERS
23697 CONFIG_LINKS = $CONFIG_LINKS
23698 CONFIG_COMMANDS = $CONFIG_COMMANDS
23699 $ $0 $@
23701 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23704 _ACEOF
23706 case $ac_config_files in *"
23707 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23708 esac
23710 case $ac_config_headers in *"
23711 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23712 esac
23715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23716 # Files that config.status was made for.
23717 config_files="$ac_config_files"
23718 config_headers="$ac_config_headers"
23719 config_commands="$ac_config_commands"
23721 _ACEOF
23723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23724 ac_cs_usage="\
23725 \`$as_me' instantiates files and other configuration actions
23726 from templates according to the current configuration. Unless the files
23727 and actions are specified as TAGs, all are instantiated by default.
23729 Usage: $0 [OPTION]... [TAG]...
23731 -h, --help print this help, then exit
23732 -V, --version print version number and configuration settings, then exit
23733 --config print configuration, then exit
23734 -q, --quiet, --silent
23735 do not print progress messages
23736 -d, --debug don't remove temporary files
23737 --recheck update $as_me by reconfiguring in the same conditions
23738 --file=FILE[:TEMPLATE]
23739 instantiate the configuration file FILE
23740 --header=FILE[:TEMPLATE]
23741 instantiate the configuration header FILE
23743 Configuration files:
23744 $config_files
23746 Configuration headers:
23747 $config_headers
23749 Configuration commands:
23750 $config_commands
23752 Report bugs to the package provider."
23754 _ACEOF
23755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23756 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23757 ac_cs_version="\\
23758 emacs config.status 24.1.50
23759 configured by $0, generated by GNU Autoconf 2.65,
23760 with options \\"\$ac_cs_config\\"
23762 Copyright (C) 2009 Free Software Foundation, Inc.
23763 This config.status script is free software; the Free Software Foundation
23764 gives unlimited permission to copy, distribute and modify it."
23766 ac_pwd='$ac_pwd'
23767 srcdir='$srcdir'
23768 INSTALL='$INSTALL'
23769 MKDIR_P='$MKDIR_P'
23770 AWK='$AWK'
23771 test -n "\$AWK" || AWK=awk
23772 _ACEOF
23774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23775 # The default lists apply if the user does not specify any file.
23776 ac_need_defaults=:
23777 while test $# != 0
23779 case $1 in
23780 --*=*)
23781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23782 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23783 ac_shift=:
23786 ac_option=$1
23787 ac_optarg=$2
23788 ac_shift=shift
23790 esac
23792 case $ac_option in
23793 # Handling of the options.
23794 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23795 ac_cs_recheck=: ;;
23796 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23797 $as_echo "$ac_cs_version"; exit ;;
23798 --config | --confi | --conf | --con | --co | --c )
23799 $as_echo "$ac_cs_config"; exit ;;
23800 --debug | --debu | --deb | --de | --d | -d )
23801 debug=: ;;
23802 --file | --fil | --fi | --f )
23803 $ac_shift
23804 case $ac_optarg in
23805 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23806 esac
23807 as_fn_append CONFIG_FILES " '$ac_optarg'"
23808 ac_need_defaults=false;;
23809 --header | --heade | --head | --hea )
23810 $ac_shift
23811 case $ac_optarg in
23812 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23813 esac
23814 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23815 ac_need_defaults=false;;
23816 --he | --h)
23817 # Conflict between --help and --header
23818 as_fn_error "ambiguous option: \`$1'
23819 Try \`$0 --help' for more information.";;
23820 --help | --hel | -h )
23821 $as_echo "$ac_cs_usage"; exit ;;
23822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23824 ac_cs_silent=: ;;
23826 # This is an error.
23827 -*) as_fn_error "unrecognized option: \`$1'
23828 Try \`$0 --help' for more information." ;;
23830 *) as_fn_append ac_config_targets " $1"
23831 ac_need_defaults=false ;;
23833 esac
23834 shift
23835 done
23837 ac_configure_extra_args=
23839 if $ac_cs_silent; then
23840 exec 6>/dev/null
23841 ac_configure_extra_args="$ac_configure_extra_args --silent"
23844 _ACEOF
23845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23846 if \$ac_cs_recheck; then
23847 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23848 shift
23849 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23850 CONFIG_SHELL='$SHELL'
23851 export CONFIG_SHELL
23852 exec "\$@"
23855 _ACEOF
23856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23857 exec 5>>config.log
23859 echo
23860 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23861 ## Running $as_me. ##
23862 _ASBOX
23863 $as_echo "$ac_log"
23864 } >&5
23866 _ACEOF
23867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23869 # INIT-COMMANDS
23871 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23872 GCC="$GCC" CPPFLAGS="$CPPFLAGS"
23874 _ACEOF
23876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23878 # Handling of arguments.
23879 for ac_config_target in $ac_config_targets
23881 case $ac_config_target in
23882 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23883 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23884 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23885 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23886 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
23887 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23888 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
23889 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
23890 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
23891 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
23892 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23893 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23894 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23895 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23896 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
23897 "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;;
23898 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
23899 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
23900 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
23902 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23903 esac
23904 done
23907 # If the user did not use the arguments to specify the items to instantiate,
23908 # then the envvar interface is used. Set only those that are not.
23909 # We use the long form for the default assignment because of an extremely
23910 # bizarre bug on SunOS 4.1.3.
23911 if $ac_need_defaults; then
23912 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23913 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23914 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23917 # Have a temporary directory for convenience. Make it in the build tree
23918 # simply because there is no reason against having it here, and in addition,
23919 # creating and moving files from /tmp can sometimes cause problems.
23920 # Hook for its removal unless debugging.
23921 # Note that there is a small window in which the directory will not be cleaned:
23922 # after its creation but before its name has been assigned to `$tmp'.
23923 $debug ||
23925 tmp=
23926 trap 'exit_status=$?
23927 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23929 trap 'as_fn_exit 1' 1 2 13 15
23931 # Create a (secure) tmp directory for tmp files.
23934 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23935 test -n "$tmp" && test -d "$tmp"
23936 } ||
23938 tmp=./conf$$-$RANDOM
23939 (umask 077 && mkdir "$tmp")
23940 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23942 # Set up the scripts for CONFIG_FILES section.
23943 # No need to generate them if there are no CONFIG_FILES.
23944 # This happens for instance with `./config.status config.h'.
23945 if test -n "$CONFIG_FILES"; then
23947 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
23948 ac_cs_awk_getline=:
23949 ac_cs_awk_pipe_init=
23950 ac_cs_awk_read_file='
23951 while ((getline aline < (F[key])) > 0)
23952 print(aline)
23953 close(F[key])'
23954 ac_cs_awk_pipe_fini=
23955 else
23956 ac_cs_awk_getline=false
23957 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
23958 ac_cs_awk_read_file='
23959 print "|#_!!_#|"
23960 print "cat " F[key] " &&"
23961 '$ac_cs_awk_pipe_init
23962 # The final `:' finishes the AND list.
23963 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
23965 ac_cr=`echo X | tr X '\015'`
23966 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23967 # But we know of no other shell where ac_cr would be empty at this
23968 # point, so we can use a bashism as a fallback.
23969 if test "x$ac_cr" = x; then
23970 eval ac_cr=\$\'\\r\'
23972 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23973 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23974 ac_cs_awk_cr='\r'
23975 else
23976 ac_cs_awk_cr=$ac_cr
23979 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23980 _ACEOF
23982 # Create commands to substitute file output variables.
23984 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
23985 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
23986 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
23987 echo "_ACAWK" &&
23988 echo "_ACEOF"
23989 } >conf$$files.sh &&
23990 . ./conf$$files.sh ||
23991 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23992 rm -f conf$$files.sh
23995 echo "cat >conf$$subs.awk <<_ACEOF" &&
23996 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23997 echo "_ACEOF"
23998 } >conf$$subs.sh ||
23999 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24000 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24001 ac_delim='%!_!# '
24002 for ac_last_try in false false false false false :; do
24003 . ./conf$$subs.sh ||
24004 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24006 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24007 if test $ac_delim_n = $ac_delim_num; then
24008 break
24009 elif $ac_last_try; then
24010 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
24011 else
24012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24014 done
24015 rm -f conf$$subs.sh
24017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24018 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24019 _ACEOF
24020 sed -n '
24022 s/^/S["/; s/!.*/"]=/
24025 s/^[^!]*!//
24026 :repl
24027 t repl
24028 s/'"$ac_delim"'$//
24029 t delim
24032 s/\(.\{148\}\)..*/\1/
24033 t more1
24034 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24037 b repl
24038 :more1
24039 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24042 s/.\{148\}//
24043 t nl
24044 :delim
24046 s/\(.\{148\}\)..*/\1/
24047 t more2
24048 s/["\\]/\\&/g; s/^/"/; s/$/"/
24051 :more2
24052 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24055 s/.\{148\}//
24056 t delim
24057 ' <conf$$subs.awk | sed '
24058 /^[^""]/{
24060 s/\n//
24062 ' >>$CONFIG_STATUS || ac_write_fail=1
24063 rm -f conf$$subs.awk
24064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24065 _ACAWK
24066 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24067 for (key in S) S_is_set[key] = 1
24068 FS = "\a"
24069 \$ac_cs_awk_pipe_init
24072 line = $ 0
24073 nfields = split(line, field, "@")
24074 substed = 0
24075 len = length(field[1])
24076 for (i = 2; i < nfields; i++) {
24077 key = field[i]
24078 keylen = length(key)
24079 if (S_is_set[key]) {
24080 value = S[key]
24081 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24082 len += length(value) + length(field[++i])
24083 substed = 1
24084 } else
24085 len += 1 + keylen
24087 if (nfields == 3 && !substed) {
24088 key = field[2]
24089 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
24090 \$ac_cs_awk_read_file
24091 next
24094 print line
24096 \$ac_cs_awk_pipe_fini
24097 _ACAWK
24098 _ACEOF
24099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24102 else
24104 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24105 || as_fn_error "could not setup config files machinery" "$LINENO" 5
24106 _ACEOF
24108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24110 # trailing colons and then remove the whole line if VPATH becomes empty
24111 # (actually we leave an empty line to preserve line numbers).
24112 if test "x$srcdir" = x.; then
24113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24114 s/:*\$(srcdir):*/:/
24115 s/:*\${srcdir}:*/:/
24116 s/:*@srcdir@:*/:/
24117 s/^\([^=]*=[ ]*\):*/\1/
24118 s/:*$//
24119 s/^[^=]*=[ ]*$//
24123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24124 fi # test -n "$CONFIG_FILES"
24126 # Set up the scripts for CONFIG_HEADERS section.
24127 # No need to generate them if there are no CONFIG_HEADERS.
24128 # This happens for instance with `./config.status Makefile'.
24129 if test -n "$CONFIG_HEADERS"; then
24130 cat >"$tmp/defines.awk" <<\_ACAWK ||
24131 BEGIN {
24132 _ACEOF
24134 # Transform confdefs.h into an awk script `defines.awk', embedded as
24135 # here-document in config.status, that substitutes the proper values into
24136 # config.h.in to produce config.h.
24138 # Create a delimiter string that does not exist in confdefs.h, to ease
24139 # handling of long lines.
24140 ac_delim='%!_!# '
24141 for ac_last_try in false false :; do
24142 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24143 if test -z "$ac_t"; then
24144 break
24145 elif $ac_last_try; then
24146 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
24147 else
24148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24150 done
24152 # For the awk script, D is an array of macro values keyed by name,
24153 # likewise P contains macro parameters if any. Preserve backslash
24154 # newline sequences.
24156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24157 sed -n '
24158 s/.\{148\}/&'"$ac_delim"'/g
24159 t rset
24160 :rset
24161 s/^[ ]*#[ ]*define[ ][ ]*/ /
24162 t def
24164 :def
24165 s/\\$//
24166 t bsnl
24167 s/["\\]/\\&/g
24168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24169 D["\1"]=" \3"/p
24170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24172 :bsnl
24173 s/["\\]/\\&/g
24174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24175 D["\1"]=" \3\\\\\\n"\\/p
24176 t cont
24177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24178 t cont
24180 :cont
24182 s/.\{148\}/&'"$ac_delim"'/g
24183 t clear
24184 :clear
24185 s/\\$//
24186 t bsnlc
24187 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24189 :bsnlc
24190 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24191 b cont
24192 ' <confdefs.h | sed '
24193 s/'"$ac_delim"'/"\\\
24194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24197 for (key in D) D_is_set[key] = 1
24198 FS = "\a"
24200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24201 line = \$ 0
24202 split(line, arg, " ")
24203 if (arg[1] == "#") {
24204 defundef = arg[2]
24205 mac1 = arg[3]
24206 } else {
24207 defundef = substr(arg[1], 2)
24208 mac1 = arg[2]
24210 split(mac1, mac2, "(") #)
24211 macro = mac2[1]
24212 prefix = substr(line, 1, index(line, defundef) - 1)
24213 if (D_is_set[macro]) {
24214 # Preserve the white space surrounding the "#".
24215 print prefix "define", macro P[macro] D[macro]
24216 next
24217 } else {
24218 # Replace #undef with comments. This is necessary, for example,
24219 # in the case of _POSIX_SOURCE, which is predefined and required
24220 # on some systems where configure will not decide to define it.
24221 if (defundef == "undef") {
24222 print "/*", prefix defundef, macro, "*/"
24223 next
24227 { print }
24228 _ACAWK
24229 _ACEOF
24230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24231 as_fn_error "could not setup config headers machinery" "$LINENO" 5
24232 fi # test -n "$CONFIG_HEADERS"
24235 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24236 shift
24237 for ac_tag
24239 case $ac_tag in
24240 :[FHLC]) ac_mode=$ac_tag; continue;;
24241 esac
24242 case $ac_mode$ac_tag in
24243 :[FHL]*:*);;
24244 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
24245 :[FH]-) ac_tag=-:-;;
24246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24247 esac
24248 ac_save_IFS=$IFS
24249 IFS=:
24250 set x $ac_tag
24251 IFS=$ac_save_IFS
24252 shift
24253 ac_file=$1
24254 shift
24256 case $ac_mode in
24257 :L) ac_source=$1;;
24258 :[FH])
24259 ac_file_inputs=
24260 for ac_f
24262 case $ac_f in
24263 -) ac_f="$tmp/stdin";;
24264 *) # Look for the file first in the build tree, then in the source tree
24265 # (if the path is not absolute). The absolute path cannot be DOS-style,
24266 # because $ac_f cannot contain `:'.
24267 test -f "$ac_f" ||
24268 case $ac_f in
24269 [\\/$]*) false;;
24270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24271 esac ||
24272 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24273 esac
24274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24275 as_fn_append ac_file_inputs " '$ac_f'"
24276 done
24278 # Let's still pretend it is `configure' which instantiates (i.e., don't
24279 # use $as_me), people would be surprised to read:
24280 # /* config.h. Generated by config.status. */
24281 configure_input='Generated from '`
24282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24283 `' by configure.'
24284 if test x"$ac_file" != x-; then
24285 configure_input="$ac_file. $configure_input"
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24287 $as_echo "$as_me: creating $ac_file" >&6;}
24289 # Neutralize special characters interpreted by sed in replacement strings.
24290 case $configure_input in #(
24291 *\&* | *\|* | *\\* )
24292 ac_sed_conf_input=`$as_echo "$configure_input" |
24293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24294 *) ac_sed_conf_input=$configure_input;;
24295 esac
24297 case $ac_tag in
24298 *:-:* | *:-) cat >"$tmp/stdin" \
24299 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
24300 esac
24302 esac
24304 ac_dir=`$as_dirname -- "$ac_file" ||
24305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24306 X"$ac_file" : 'X\(//\)[^/]' \| \
24307 X"$ac_file" : 'X\(//\)$' \| \
24308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24309 $as_echo X"$ac_file" |
24310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24311 s//\1/
24314 /^X\(\/\/\)[^/].*/{
24315 s//\1/
24318 /^X\(\/\/\)$/{
24319 s//\1/
24322 /^X\(\/\).*/{
24323 s//\1/
24326 s/.*/./; q'`
24327 as_dir="$ac_dir"; as_fn_mkdir_p
24328 ac_builddir=.
24330 case "$ac_dir" in
24331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24334 # A ".." for each directory in $ac_dir_suffix.
24335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24336 case $ac_top_builddir_sub in
24337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24339 esac ;;
24340 esac
24341 ac_abs_top_builddir=$ac_pwd
24342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24343 # for backward compatibility:
24344 ac_top_builddir=$ac_top_build_prefix
24346 case $srcdir in
24347 .) # We are building in place.
24348 ac_srcdir=.
24349 ac_top_srcdir=$ac_top_builddir_sub
24350 ac_abs_top_srcdir=$ac_pwd ;;
24351 [\\/]* | ?:[\\/]* ) # Absolute name.
24352 ac_srcdir=$srcdir$ac_dir_suffix;
24353 ac_top_srcdir=$srcdir
24354 ac_abs_top_srcdir=$srcdir ;;
24355 *) # Relative name.
24356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24357 ac_top_srcdir=$ac_top_build_prefix$srcdir
24358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24359 esac
24360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24363 case $ac_mode in
24366 # CONFIG_FILE
24369 case $INSTALL in
24370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24372 esac
24373 ac_MKDIR_P=$MKDIR_P
24374 case $MKDIR_P in
24375 [\\/$]* | ?:[\\/]* ) ;;
24376 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24377 esac
24378 _ACEOF
24380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24381 # If the template does not know about datarootdir, expand it.
24382 # FIXME: This hack should be removed a few years after 2.60.
24383 ac_datarootdir_hack=; ac_datarootdir_seen=
24384 ac_sed_dataroot='
24385 /datarootdir/ {
24389 /@datadir@/p
24390 /@docdir@/p
24391 /@infodir@/p
24392 /@localedir@/p
24393 /@mandir@/p'
24394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24395 *datarootdir*) ac_datarootdir_seen=yes;;
24396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24399 _ACEOF
24400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24401 ac_datarootdir_hack='
24402 s&@datadir@&$datadir&g
24403 s&@docdir@&$docdir&g
24404 s&@infodir@&$infodir&g
24405 s&@localedir@&$localedir&g
24406 s&@mandir@&$mandir&g
24407 s&\\\${datarootdir}&$datarootdir&g' ;;
24408 esac
24409 _ACEOF
24411 # Neutralize VPATH when `$srcdir' = `.'.
24412 # Shell code in configure.ac might set extrasub.
24413 # FIXME: do we really want to maintain this feature?
24414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24415 ac_sed_extra="$ac_vpsub
24416 $extrasub
24417 _ACEOF
24418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24421 s|@configure_input@|$ac_sed_conf_input|;t t
24422 s&@top_builddir@&$ac_top_builddir_sub&;t t
24423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24424 s&@srcdir@&$ac_srcdir&;t t
24425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24426 s&@top_srcdir@&$ac_top_srcdir&;t t
24427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24428 s&@builddir@&$ac_builddir&;t t
24429 s&@abs_builddir@&$ac_abs_builddir&;t t
24430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24431 s&@INSTALL@&$ac_INSTALL&;t t
24432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24433 $ac_datarootdir_hack
24435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
24436 if $ac_cs_awk_getline; then
24437 $AWK -f "$tmp/subs.awk"
24438 else
24439 $AWK -f "$tmp/subs.awk" | $SHELL
24440 fi >$tmp/out \
24441 || as_fn_error "could not create $ac_file" "$LINENO" 5
24443 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24444 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24447 which seems to be undefined. Please make sure it is defined." >&5
24448 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24449 which seems to be undefined. Please make sure it is defined." >&2;}
24451 rm -f "$tmp/stdin"
24452 case $ac_file in
24453 -) cat "$tmp/out" && rm -f "$tmp/out";;
24454 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24455 esac \
24456 || as_fn_error "could not create $ac_file" "$LINENO" 5
24460 # CONFIG_HEADER
24462 if test x"$ac_file" != x-; then
24464 $as_echo "/* $configure_input */" \
24465 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24466 } >"$tmp/config.h" \
24467 || as_fn_error "could not create $ac_file" "$LINENO" 5
24468 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24470 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24471 else
24472 rm -f "$ac_file"
24473 mv "$tmp/config.h" "$ac_file" \
24474 || as_fn_error "could not create $ac_file" "$LINENO" 5
24476 else
24477 $as_echo "/* $configure_input */" \
24478 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24479 || as_fn_error "could not create -" "$LINENO" 5
24481 # Compute "$ac_file"'s index in $config_headers.
24482 _am_arg="$ac_file"
24483 _am_stamp_count=1
24484 for _am_header in $config_headers :; do
24485 case $_am_header in
24486 $_am_arg | $_am_arg:* )
24487 break ;;
24489 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24490 esac
24491 done
24492 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24493 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24494 X"$_am_arg" : 'X\(//\)[^/]' \| \
24495 X"$_am_arg" : 'X\(//\)$' \| \
24496 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24497 $as_echo X"$_am_arg" |
24498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24499 s//\1/
24502 /^X\(\/\/\)[^/].*/{
24503 s//\1/
24506 /^X\(\/\/\)$/{
24507 s//\1/
24510 /^X\(\/\).*/{
24511 s//\1/
24514 s/.*/./; q'`/stamp-h$_am_stamp_count
24517 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24518 $as_echo "$as_me: executing $ac_file commands" >&6;}
24520 esac
24523 case $ac_file$ac_mode in
24524 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24525 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24526 # are listed without --file. Let's play safe and only enable the eval
24527 # if we detect the quoting.
24528 case $CONFIG_FILES in
24529 *\'*) eval set x "$CONFIG_FILES" ;;
24530 *) set x $CONFIG_FILES ;;
24531 esac
24532 shift
24533 for mf
24535 # Strip MF so we end up with the name of the file.
24536 mf=`echo "$mf" | sed -e 's/:.*$//'`
24537 # Check whether this is an Automake generated Makefile or not.
24538 # We used to match only the files named `Makefile.in', but
24539 # some people rename them; so instead we look at the file content.
24540 # Grep'ing the first line is not enough: some people post-process
24541 # each Makefile.in and add a new line on top of each file to say so.
24542 # Grep'ing the whole file is not good either: AIX grep has a line
24543 # limit of 2048, but all sed's we know have understand at least 4000.
24544 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24545 dirpart=`$as_dirname -- "$mf" ||
24546 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24547 X"$mf" : 'X\(//\)[^/]' \| \
24548 X"$mf" : 'X\(//\)$' \| \
24549 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24550 $as_echo X"$mf" |
24551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24552 s//\1/
24555 /^X\(\/\/\)[^/].*/{
24556 s//\1/
24559 /^X\(\/\/\)$/{
24560 s//\1/
24563 /^X\(\/\).*/{
24564 s//\1/
24567 s/.*/./; q'`
24568 else
24569 continue
24571 # Extract the definition of DEPDIR, am__include, and am__quote
24572 # from the Makefile without running `make'.
24573 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24574 test -z "$DEPDIR" && continue
24575 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24576 test -z "am__include" && continue
24577 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24578 # When using ansi2knr, U may be empty or an underscore; expand it
24579 U=`sed -n 's/^U = //p' < "$mf"`
24580 # Find all dependency output files, they are included files with
24581 # $(DEPDIR) in their names. We invoke sed twice because it is the
24582 # simplest approach to changing $(DEPDIR) to its actual value in the
24583 # expansion.
24584 for file in `sed -n "
24585 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24586 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24587 # Make sure the directory exists.
24588 test -f "$dirpart/$file" && continue
24589 fdir=`$as_dirname -- "$file" ||
24590 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24591 X"$file" : 'X\(//\)[^/]' \| \
24592 X"$file" : 'X\(//\)$' \| \
24593 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24594 $as_echo X"$file" |
24595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24596 s//\1/
24599 /^X\(\/\/\)[^/].*/{
24600 s//\1/
24603 /^X\(\/\/\)$/{
24604 s//\1/
24607 /^X\(\/\).*/{
24608 s//\1/
24611 s/.*/./; q'`
24612 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24613 # echo "creating $dirpart/$file"
24614 echo '# dummy' > "$dirpart/$file"
24615 done
24616 done
24619 "mkdirs":C)
24620 for dir in etc lisp ; do
24621 test -d ${dir} || mkdir ${dir}
24622 done
24624 "epaths":C)
24625 echo creating src/epaths.h
24626 ${MAKE-make} epaths-force
24628 "gdbinit":C)
24629 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24630 echo creating src/.gdbinit
24631 echo source $srcdir/src/.gdbinit > src/.gdbinit
24635 esac
24636 done # for ac_tag
24639 as_fn_exit 0
24640 _ACEOF
24641 ac_clean_files=$ac_clean_files_save
24643 test $ac_write_fail = 0 ||
24644 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24647 # configure is writing to config.log, and then calls config.status.
24648 # config.status does its own redirection, appending to config.log.
24649 # Unfortunately, on DOS this fails, as config.log is still kept open
24650 # by configure, so config.status won't be able to write to it; its
24651 # output is simply discarded. So we exec the FD to /dev/null,
24652 # effectively closing config.log, so it can be properly (re)opened and
24653 # appended to by config.status. When coming back to configure, we
24654 # need to make the FD available again.
24655 if test "$no_create" != yes; then
24656 ac_cs_success=:
24657 ac_config_status_args=
24658 test "$silent" = yes &&
24659 ac_config_status_args="$ac_config_status_args --quiet"
24660 exec 5>/dev/null
24661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24662 exec 5>>config.log
24663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24664 # would make configure fail if this is the last instruction.
24665 $ac_cs_success || as_fn_exit $?
24667 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24669 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}