* lisp/thingatpt.el (forward-whitespace): Typo.
[emacs.git] / autogen / configure
blob534566359ee99f68942b844ce878a4cbddf09f00
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.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.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 SUBDIR_MAKEFILES_IN
607 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 M_FILE
633 X_TOOLKIT_TYPE
634 C_SWITCH_X_SYSTEM
635 C_SWITCH_X_SITE
636 LD_SWITCH_X_SITE
637 gameuser
638 gamedir
639 bitmapdir
640 archlibdir
641 etcdir
642 x_default_search_path
643 lisppath
644 locallisppath
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 LIBGNU_LTLIBDEPS
660 LIBGNU_LIBDEPS
661 gltests_WITNESS
662 gl_GNULIB_ENABLED_verify_FALSE
663 gl_GNULIB_ENABLED_verify_TRUE
664 gl_GNULIB_ENABLED_strtoull_FALSE
665 gl_GNULIB_ENABLED_strtoull_TRUE
666 gl_GNULIB_ENABLED_stat_FALSE
667 gl_GNULIB_ENABLED_stat_TRUE
668 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE
669 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE
670 gl_GNULIB_ENABLED_dosname_FALSE
671 gl_GNULIB_ENABLED_dosname_TRUE
672 LTLIBINTL
673 LIBINTL
674 HAVE_UNISTD_H
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
676 NEXT_UNISTD_H
677 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
678 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
679 TIME_H_DEFINES_STRUCT_TIMESPEC
680 NEXT_AS_FIRST_DIRECTIVE_TIME_H
681 NEXT_TIME_H
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
685 NEXT_STDLIB_H
686 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
687 NEXT_STDIO_H
688 REPLACE_VSPRINTF
689 REPLACE_VSNPRINTF
690 REPLACE_VPRINTF
691 REPLACE_VFPRINTF
692 REPLACE_VDPRINTF
693 REPLACE_VASPRINTF
694 REPLACE_TMPFILE
695 REPLACE_STDIO_WRITE_FUNCS
696 REPLACE_STDIO_READ_FUNCS
697 REPLACE_SPRINTF
698 REPLACE_SNPRINTF
699 REPLACE_RENAMEAT
700 REPLACE_RENAME
701 REPLACE_REMOVE
702 REPLACE_PRINTF
703 REPLACE_POPEN
704 REPLACE_PERROR
705 REPLACE_OBSTACK_PRINTF
706 REPLACE_GETLINE
707 REPLACE_GETDELIM
708 REPLACE_FTELLO
709 REPLACE_FTELL
710 REPLACE_FSEEKO
711 REPLACE_FSEEK
712 REPLACE_FREOPEN
713 REPLACE_FPURGE
714 REPLACE_FPRINTF
715 REPLACE_FOPEN
716 REPLACE_FFLUSH
717 REPLACE_FCLOSE
718 REPLACE_DPRINTF
719 HAVE_VDPRINTF
720 HAVE_VASPRINTF
721 HAVE_RENAMEAT
722 HAVE_FTELLO
723 HAVE_FSEEKO
724 HAVE_DPRINTF
725 HAVE_DECL_VSNPRINTF
726 HAVE_DECL_SNPRINTF
727 HAVE_DECL_OBSTACK_PRINTF
728 HAVE_DECL_GETLINE
729 HAVE_DECL_GETDELIM
730 HAVE_DECL_FTELLO
731 HAVE_DECL_FSEEKO
732 HAVE_DECL_FPURGE
733 GNULIB_VSPRINTF_POSIX
734 GNULIB_VSNPRINTF
735 GNULIB_VPRINTF_POSIX
736 GNULIB_VPRINTF
737 GNULIB_VFPRINTF_POSIX
738 GNULIB_VFPRINTF
739 GNULIB_VDPRINTF
740 GNULIB_VSCANF
741 GNULIB_VFSCANF
742 GNULIB_VASPRINTF
743 GNULIB_TMPFILE
744 GNULIB_STDIO_H_SIGPIPE
745 GNULIB_STDIO_H_NONBLOCKING
746 GNULIB_SPRINTF_POSIX
747 GNULIB_SNPRINTF
748 GNULIB_SCANF
749 GNULIB_RENAMEAT
750 GNULIB_RENAME
751 GNULIB_REMOVE
752 GNULIB_PUTS
753 GNULIB_PUTCHAR
754 GNULIB_PUTC
755 GNULIB_PRINTF_POSIX
756 GNULIB_PRINTF
757 GNULIB_POPEN
758 GNULIB_PERROR
759 GNULIB_OBSTACK_PRINTF_POSIX
760 GNULIB_OBSTACK_PRINTF
761 GNULIB_GETS
762 GNULIB_GETLINE
763 GNULIB_GETDELIM
764 GNULIB_GETCHAR
765 GNULIB_GETC
766 GNULIB_FWRITE
767 GNULIB_FTELLO
768 GNULIB_FTELL
769 GNULIB_FSEEKO
770 GNULIB_FSEEK
771 GNULIB_FSCANF
772 GNULIB_FREOPEN
773 GNULIB_FREAD
774 GNULIB_FPUTS
775 GNULIB_FPUTC
776 GNULIB_FPURGE
777 GNULIB_FPRINTF_POSIX
778 GNULIB_FPRINTF
779 GNULIB_FOPEN
780 GNULIB_FGETS
781 GNULIB_FGETC
782 GNULIB_FFLUSH
783 GNULIB_FCLOSE
784 GNULIB_DPRINTF
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
786 NEXT_STDDEF_H
787 GL_GENERATE_STDDEF_H_FALSE
788 GL_GENERATE_STDDEF_H_TRUE
789 STDDEF_H
790 HAVE_WCHAR_T
791 REPLACE_NULL
792 HAVE__BOOL
793 GL_GENERATE_STDBOOL_H_FALSE
794 GL_GENERATE_STDBOOL_H_TRUE
795 STDBOOL_H
796 GL_GENERATE_STDARG_H_FALSE
797 GL_GENERATE_STDARG_H_TRUE
798 STDARG_H
799 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
800 NEXT_STDARG_H
801 REPLACE_TIMEGM
802 REPLACE_NANOSLEEP
803 REPLACE_MKTIME
804 REPLACE_LOCALTIME_R
805 HAVE_TIMEGM
806 HAVE_STRPTIME
807 HAVE_NANOSLEEP
808 HAVE_DECL_LOCALTIME_R
809 GNULIB_TIME_R
810 GNULIB_TIMEGM
811 GNULIB_STRPTIME
812 GNULIB_NANOSLEEP
813 GNULIB_MKTIME
814 REPLACE_UTIMENSAT
815 REPLACE_STAT
816 REPLACE_MKNOD
817 REPLACE_MKFIFO
818 REPLACE_MKDIR
819 REPLACE_LSTAT
820 REPLACE_FUTIMENS
821 REPLACE_FSTATAT
822 REPLACE_FSTAT
823 HAVE_UTIMENSAT
824 HAVE_MKNODAT
825 HAVE_MKNOD
826 HAVE_MKFIFOAT
827 HAVE_MKFIFO
828 HAVE_MKDIRAT
829 HAVE_LSTAT
830 HAVE_LCHMOD
831 HAVE_FUTIMENS
832 HAVE_FSTATAT
833 HAVE_FCHMODAT
834 GNULIB_UTIMENSAT
835 GNULIB_STAT
836 GNULIB_MKNODAT
837 GNULIB_MKNOD
838 GNULIB_MKFIFOAT
839 GNULIB_MKFIFO
840 GNULIB_MKDIRAT
841 GNULIB_LSTAT
842 GNULIB_LCHMOD
843 GNULIB_FUTIMENS
844 GNULIB_FSTATAT
845 GNULIB_FCHMODAT
846 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
847 NEXT_INTTYPES_H
848 UINT64_MAX_EQ_ULONG_MAX
849 UINT32_MAX_LT_UINTMAX_MAX
850 PRIPTR_PREFIX
851 PRI_MACROS_BROKEN
852 INT64_MAX_EQ_LONG_MAX
853 INT32_MAX_LT_INTMAX_MAX
854 HAVE_DECL_STRTOUMAX
855 HAVE_DECL_STRTOIMAX
856 HAVE_DECL_IMAXDIV
857 HAVE_DECL_IMAXABS
858 GNULIB_STRTOUMAX
859 GNULIB_STRTOIMAX
860 GNULIB_IMAXDIV
861 GNULIB_IMAXABS
862 GL_GENERATE_STDINT_H_FALSE
863 GL_GENERATE_STDINT_H_TRUE
864 STDINT_H
865 WINT_T_SUFFIX
866 WCHAR_T_SUFFIX
867 SIG_ATOMIC_T_SUFFIX
868 SIZE_T_SUFFIX
869 PTRDIFF_T_SUFFIX
870 HAVE_SIGNED_WINT_T
871 HAVE_SIGNED_WCHAR_T
872 HAVE_SIGNED_SIG_ATOMIC_T
873 BITSIZEOF_WINT_T
874 BITSIZEOF_WCHAR_T
875 BITSIZEOF_SIG_ATOMIC_T
876 BITSIZEOF_SIZE_T
877 BITSIZEOF_PTRDIFF_T
878 APPLE_UNIVERSAL_BUILD
879 HAVE_SYS_BITYPES_H
880 HAVE_SYS_INTTYPES_H
881 HAVE_STDINT_H
882 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
883 NEXT_STDINT_H
884 HAVE_SYS_TYPES_H
885 HAVE_INTTYPES_H
886 HAVE_WCHAR_H
887 HAVE_UNSIGNED_LONG_LONG_INT
888 HAVE_LONG_LONG_INT
889 GETOPT_H
890 HAVE_GETOPT_H
891 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
892 NEXT_GETOPT_H
893 PRAGMA_COLUMNS
894 PRAGMA_SYSTEM_HEADER
895 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
896 INCLUDE_NEXT
897 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
898 UNISTD_H_HAVE_WINSOCK2_H
899 REPLACE_WRITE
900 REPLACE_USLEEP
901 REPLACE_UNLINKAT
902 REPLACE_UNLINK
903 REPLACE_TTYNAME_R
904 REPLACE_SYMLINK
905 REPLACE_SLEEP
906 REPLACE_RMDIR
907 REPLACE_READLINK
908 REPLACE_READ
909 REPLACE_PWRITE
910 REPLACE_PREAD
911 REPLACE_LSEEK
912 REPLACE_LINKAT
913 REPLACE_LINK
914 REPLACE_LCHOWN
915 REPLACE_GETPAGESIZE
916 REPLACE_GETGROUPS
917 REPLACE_GETLOGIN_R
918 REPLACE_GETDOMAINNAME
919 REPLACE_GETCWD
920 REPLACE_FCHOWNAT
921 REPLACE_DUP2
922 REPLACE_DUP
923 REPLACE_CLOSE
924 REPLACE_CHOWN
925 HAVE_SYS_PARAM_H
926 HAVE_OS_H
927 HAVE_DECL_TTYNAME_R
928 HAVE_DECL_GETUSERSHELL
929 HAVE_DECL_GETPAGESIZE
930 HAVE_DECL_GETLOGIN_R
931 HAVE_DECL_GETDOMAINNAME
932 HAVE_DECL_FCHDIR
933 HAVE_DECL_ENVIRON
934 HAVE_USLEEP
935 HAVE_UNLINKAT
936 HAVE_SYMLINKAT
937 HAVE_SYMLINK
938 HAVE_SLEEP
939 HAVE_READLINKAT
940 HAVE_READLINK
941 HAVE_PWRITE
942 HAVE_PREAD
943 HAVE_PIPE2
944 HAVE_PIPE
945 HAVE_LINKAT
946 HAVE_LINK
947 HAVE_LCHOWN
948 HAVE_GROUP_MEMBER
949 HAVE_GETPAGESIZE
950 HAVE_GETLOGIN
951 HAVE_GETHOSTNAME
952 HAVE_GETGROUPS
953 HAVE_GETDTABLESIZE
954 HAVE_FTRUNCATE
955 HAVE_FSYNC
956 HAVE_FCHOWNAT
957 HAVE_FCHDIR
958 HAVE_FACCESSAT
959 HAVE_EUIDACCESS
960 HAVE_DUP3
961 HAVE_DUP2
962 HAVE_CHOWN
963 GNULIB_WRITE
964 GNULIB_USLEEP
965 GNULIB_UNLINKAT
966 GNULIB_UNLINK
967 GNULIB_UNISTD_H_SIGPIPE
968 GNULIB_UNISTD_H_NONBLOCKING
969 GNULIB_UNISTD_H_GETOPT
970 GNULIB_TTYNAME_R
971 GNULIB_SYMLINKAT
972 GNULIB_SYMLINK
973 GNULIB_SLEEP
974 GNULIB_RMDIR
975 GNULIB_READLINKAT
976 GNULIB_READLINK
977 GNULIB_READ
978 GNULIB_PWRITE
979 GNULIB_PREAD
980 GNULIB_PIPE2
981 GNULIB_PIPE
982 GNULIB_LSEEK
983 GNULIB_LINKAT
984 GNULIB_LINK
985 GNULIB_LCHOWN
986 GNULIB_GROUP_MEMBER
987 GNULIB_GETUSERSHELL
988 GNULIB_GETPAGESIZE
989 GNULIB_GETLOGIN_R
990 GNULIB_GETLOGIN
991 GNULIB_GETHOSTNAME
992 GNULIB_GETGROUPS
993 GNULIB_GETDTABLESIZE
994 GNULIB_GETDOMAINNAME
995 GNULIB_GETCWD
996 GNULIB_FTRUNCATE
997 GNULIB_FSYNC
998 GNULIB_FCHOWNAT
999 GNULIB_FCHDIR
1000 GNULIB_FACCESSAT
1001 GNULIB_EUIDACCESS
1002 GNULIB_ENVIRON
1003 GNULIB_DUP3
1004 GNULIB_DUP2
1005 GNULIB_CLOSE
1006 GNULIB_CHOWN
1007 GETLOADAVG_LIBS
1008 REPLACE_WCTOMB
1009 REPLACE_UNSETENV
1010 REPLACE_STRTOD
1011 REPLACE_SETENV
1012 REPLACE_REALPATH
1013 REPLACE_REALLOC
1014 REPLACE_PUTENV
1015 REPLACE_MKSTEMP
1016 REPLACE_MBTOWC
1017 REPLACE_MALLOC
1018 REPLACE_CANONICALIZE_FILE_NAME
1019 REPLACE_CALLOC
1020 HAVE_DECL_UNSETENV
1021 HAVE_UNLOCKPT
1022 HAVE_SYS_LOADAVG_H
1023 HAVE_STRUCT_RANDOM_DATA
1024 HAVE_STRTOULL
1025 HAVE_STRTOLL
1026 HAVE_STRTOD
1027 HAVE_DECL_SETENV
1028 HAVE_SETENV
1029 HAVE_RPMATCH
1030 HAVE_REALPATH
1031 HAVE_RANDOM_R
1032 HAVE_RANDOM_H
1033 HAVE_PTSNAME
1034 HAVE_MKSTEMPS
1035 HAVE_MKSTEMP
1036 HAVE_MKOSTEMPS
1037 HAVE_MKOSTEMP
1038 HAVE_MKDTEMP
1039 HAVE_GRANTPT
1040 HAVE_GETSUBOPT
1041 HAVE_DECL_GETLOADAVG
1042 HAVE_CANONICALIZE_FILE_NAME
1043 HAVE_ATOLL
1044 HAVE__EXIT
1045 GNULIB_WCTOMB
1046 GNULIB_UNSETENV
1047 GNULIB_UNLOCKPT
1048 GNULIB_SYSTEM_POSIX
1049 GNULIB_STRTOULL
1050 GNULIB_STRTOLL
1051 GNULIB_STRTOD
1052 GNULIB_SETENV
1053 GNULIB_RPMATCH
1054 GNULIB_REALPATH
1055 GNULIB_REALLOC_POSIX
1056 GNULIB_RANDOM_R
1057 GNULIB_PUTENV
1058 GNULIB_PTSNAME
1059 GNULIB_MKSTEMPS
1060 GNULIB_MKSTEMP
1061 GNULIB_MKOSTEMPS
1062 GNULIB_MKOSTEMP
1063 GNULIB_MKDTEMP
1064 GNULIB_MBTOWC
1065 GNULIB_MALLOC_POSIX
1066 GNULIB_GRANTPT
1067 GNULIB_GETSUBOPT
1068 GNULIB_GETLOADAVG
1069 GNULIB_CANONICALIZE_FILE_NAME
1070 GNULIB_CALLOC_POSIX
1071 GNULIB_ATOLL
1072 GNULIB__EXIT
1073 GL_COND_LIBTOOL_FALSE
1074 GL_COND_LIBTOOL_TRUE
1075 BLESSMAIL_TARGET
1076 LIBS_MAIL
1077 liblockfile
1078 ALLOCA
1079 LIBXML2_LIBS
1080 LIBXML2_CFLAGS
1081 LIBXSM
1082 LIBGPM
1083 LIBGIF
1084 LIBTIFF
1085 LIBPNG
1086 LIBJPEG
1087 LIBXPM
1088 M17N_FLT_LIBS
1089 M17N_FLT_CFLAGS
1090 LIBOTF_LIBS
1091 LIBOTF_CFLAGS
1092 FREETYPE_LIBS
1093 FREETYPE_CFLAGS
1094 XFT_LIBS
1095 XFT_CFLAGS
1096 FONTCONFIG_LIBS
1097 FONTCONFIG_CFLAGS
1098 LIBXMU
1099 LIBXTR6
1100 LIBGNUTLS_LIBS
1101 LIBGNUTLS_CFLAGS
1102 LIBSELINUX_LIBS
1103 GCONF_LIBS
1104 GCONF_CFLAGS
1105 DBUS_OBJ
1106 DBUS_LIBS
1107 DBUS_CFLAGS
1108 GTK_OBJ
1109 GTK_LIBS
1110 GTK_CFLAGS
1111 IMAGEMAGICK_LIBS
1112 IMAGEMAGICK_CFLAGS
1113 RSVG_LIBS
1114 RSVG_CFLAGS
1115 VMLIMIT_OBJ
1116 GMALLOC_OBJ
1117 HAVE_XSERVER
1118 LIB_STANDARD
1119 NS_OBJC_OBJ
1120 NS_OBJ
1121 TEMACS_LDFLAGS2
1122 LD_SWITCH_X_SITE_AUX_RPATH
1123 LD_SWITCH_X_SITE_AUX
1124 XMKMF
1125 DEPFLAGS
1126 MKDEPDIR
1127 CFLAGS_SOUND
1128 ALSA_LIBS
1129 ALSA_CFLAGS
1130 PKG_CONFIG
1131 LIBSOUND
1132 START_FILES
1133 LIB_MATH
1134 CRT_DIR
1135 LIBS_SYSTEM
1136 C_SWITCH_SYSTEM
1137 UNEXEC_OBJ
1138 C_SWITCH_MACHINE
1139 LD_SWITCH_SYSTEM
1140 CANNOT_DUMP
1141 HAVE_MAKEINFO
1142 GZIP_PROG
1143 INSTALL_INFO
1144 C_WARNINGS_SWITCH
1145 EGREP
1146 GREP
1148 RANLIB
1149 am__fastdepCC_FALSE
1150 am__fastdepCC_TRUE
1151 CCDEPMODE
1152 AMDEPBACKSLASH
1153 AMDEP_FALSE
1154 AMDEP_TRUE
1155 am__quote
1156 am__include
1157 DEPDIR
1158 OBJEXT
1159 EXEEXT
1160 ac_ct_CC
1161 CPPFLAGS
1162 LDFLAGS
1163 CFLAGS
1165 host_os
1166 host_vendor
1167 host_cpu
1168 host
1169 build_os
1170 build_vendor
1171 build_cpu
1172 build
1173 PROFILING_CFLAGS
1174 MAINT
1175 GZIP_INFO
1176 am__untar
1177 am__tar
1178 AMTAR
1179 am__leading_dot
1180 SET_MAKE
1182 mkdir_p
1183 MKDIR_P
1184 INSTALL_STRIP_PROGRAM
1185 STRIP
1186 install_sh
1187 MAKEINFO
1188 AUTOHEADER
1189 AUTOMAKE
1190 AUTOCONF
1191 ACLOCAL
1192 VERSION
1193 PACKAGE
1194 CYGPATH_W
1195 am__isrc
1196 INSTALL_DATA
1197 INSTALL_SCRIPT
1198 INSTALL_PROGRAM
1199 target_alias
1200 host_alias
1201 build_alias
1202 LIBS
1203 ECHO_T
1204 ECHO_N
1205 ECHO_C
1206 DEFS
1207 mandir
1208 localedir
1209 libdir
1210 psdir
1211 pdfdir
1212 dvidir
1213 htmldir
1214 infodir
1215 docdir
1216 oldincludedir
1217 includedir
1218 localstatedir
1219 sharedstatedir
1220 sysconfdir
1221 datadir
1222 datarootdir
1223 libexecdir
1224 sbindir
1225 bindir
1226 program_transform_name
1227 prefix
1228 exec_prefix
1229 PACKAGE_URL
1230 PACKAGE_BUGREPORT
1231 PACKAGE_STRING
1232 PACKAGE_VERSION
1233 PACKAGE_TARNAME
1234 PACKAGE_NAME
1235 PATH_SEPARATOR
1236 SHELL'
1237 ac_subst_files='deps_frag
1238 lisp_frag
1239 ns_frag'
1240 ac_user_opts='
1241 enable_option_checking
1242 with_pop
1243 with_kerberos
1244 with_kerberos5
1245 with_hesiod
1246 with_mmdf
1247 with_mail_unlink
1248 with_mailhost
1249 with_sound
1250 with_sync_input
1251 with_x_toolkit
1252 with_xpm
1253 with_jpeg
1254 with_tiff
1255 with_gif
1256 with_png
1257 with_rsvg
1258 with_xml2
1259 with_imagemagick
1260 with_xft
1261 with_libotf
1262 with_m17n_flt
1263 with_toolkit_scroll_bars
1264 with_xaw3d
1265 with_xim
1266 with_ns
1267 with_gpm
1268 with_dbus
1269 with_gconf
1270 with_selinux
1271 with_gnutls
1272 with_makeinfo
1273 with_compress_info
1274 with_pkg_config_prog
1275 with_crt_dir
1276 with_gameuser
1277 with_gnustep_conf
1278 enable_ns_self_contained
1279 enable_asserts
1280 enable_maintainer_mode
1281 enable_locallisppath
1282 enable_checking
1283 enable_use_lisp_union_type
1284 enable_profiling
1285 enable_autodepend
1286 enable_dependency_tracking
1287 enable_largefile
1288 with_x
1290 ac_precious_vars='build_alias
1291 host_alias
1292 target_alias
1294 CFLAGS
1295 LDFLAGS
1296 LIBS
1297 CPPFLAGS
1299 XMKMF'
1302 # Initialize some variables set by options.
1303 ac_init_help=
1304 ac_init_version=false
1305 ac_unrecognized_opts=
1306 ac_unrecognized_sep=
1307 # The variables have the same names as the options, with
1308 # dashes changed to underlines.
1309 cache_file=/dev/null
1310 exec_prefix=NONE
1311 no_create=
1312 no_recursion=
1313 prefix=NONE
1314 program_prefix=NONE
1315 program_suffix=NONE
1316 program_transform_name=s,x,x,
1317 silent=
1318 site=
1319 srcdir=
1320 verbose=
1321 x_includes=NONE
1322 x_libraries=NONE
1324 # Installation directory options.
1325 # These are left unexpanded so users can "make install exec_prefix=/foo"
1326 # and all the variables that are supposed to be based on exec_prefix
1327 # by default will actually change.
1328 # Use braces instead of parens because sh, perl, etc. also accept them.
1329 # (The list follows the same order as the GNU Coding Standards.)
1330 bindir='${exec_prefix}/bin'
1331 sbindir='${exec_prefix}/sbin'
1332 libexecdir='${exec_prefix}/libexec'
1333 datarootdir='${prefix}/share'
1334 datadir='${datarootdir}'
1335 sysconfdir='${prefix}/etc'
1336 sharedstatedir='${prefix}/com'
1337 localstatedir='${prefix}/var'
1338 includedir='${prefix}/include'
1339 oldincludedir='/usr/include'
1340 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1341 infodir='${datarootdir}/info'
1342 htmldir='${docdir}'
1343 dvidir='${docdir}'
1344 pdfdir='${docdir}'
1345 psdir='${docdir}'
1346 libdir='${exec_prefix}/lib'
1347 localedir='${datarootdir}/locale'
1348 mandir='${datarootdir}/man'
1350 ac_prev=
1351 ac_dashdash=
1352 for ac_option
1354 # If the previous option needs an argument, assign it.
1355 if test -n "$ac_prev"; then
1356 eval $ac_prev=\$ac_option
1357 ac_prev=
1358 continue
1361 case $ac_option in
1362 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1363 *) ac_optarg=yes ;;
1364 esac
1366 # Accept the important Cygnus configure options, so we can diagnose typos.
1368 case $ac_dashdash$ac_option in
1370 ac_dashdash=yes ;;
1372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1373 ac_prev=bindir ;;
1374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1375 bindir=$ac_optarg ;;
1377 -build | --build | --buil | --bui | --bu)
1378 ac_prev=build_alias ;;
1379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1380 build_alias=$ac_optarg ;;
1382 -cache-file | --cache-file | --cache-fil | --cache-fi \
1383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1384 ac_prev=cache_file ;;
1385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1387 cache_file=$ac_optarg ;;
1389 --config-cache | -C)
1390 cache_file=config.cache ;;
1392 -datadir | --datadir | --datadi | --datad)
1393 ac_prev=datadir ;;
1394 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1395 datadir=$ac_optarg ;;
1397 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1398 | --dataroo | --dataro | --datar)
1399 ac_prev=datarootdir ;;
1400 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1401 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1402 datarootdir=$ac_optarg ;;
1404 -disable-* | --disable-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error "invalid feature name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1413 "enable_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval enable_$ac_useropt=no ;;
1420 -docdir | --docdir | --docdi | --doc | --do)
1421 ac_prev=docdir ;;
1422 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1423 docdir=$ac_optarg ;;
1425 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1426 ac_prev=dvidir ;;
1427 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1428 dvidir=$ac_optarg ;;
1430 -enable-* | --enable-*)
1431 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1432 # Reject names that are not valid shell variable names.
1433 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1434 as_fn_error "invalid feature name: $ac_useropt"
1435 ac_useropt_orig=$ac_useropt
1436 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1437 case $ac_user_opts in
1439 "enable_$ac_useropt"
1440 "*) ;;
1441 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1442 ac_unrecognized_sep=', ';;
1443 esac
1444 eval enable_$ac_useropt=\$ac_optarg ;;
1446 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1447 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1448 | --exec | --exe | --ex)
1449 ac_prev=exec_prefix ;;
1450 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1451 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1452 | --exec=* | --exe=* | --ex=*)
1453 exec_prefix=$ac_optarg ;;
1455 -gas | --gas | --ga | --g)
1456 # Obsolete; use --with-gas.
1457 with_gas=yes ;;
1459 -help | --help | --hel | --he | -h)
1460 ac_init_help=long ;;
1461 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1462 ac_init_help=recursive ;;
1463 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1464 ac_init_help=short ;;
1466 -host | --host | --hos | --ho)
1467 ac_prev=host_alias ;;
1468 -host=* | --host=* | --hos=* | --ho=*)
1469 host_alias=$ac_optarg ;;
1471 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1472 ac_prev=htmldir ;;
1473 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1474 | --ht=*)
1475 htmldir=$ac_optarg ;;
1477 -includedir | --includedir | --includedi | --included | --include \
1478 | --includ | --inclu | --incl | --inc)
1479 ac_prev=includedir ;;
1480 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1481 | --includ=* | --inclu=* | --incl=* | --inc=*)
1482 includedir=$ac_optarg ;;
1484 -infodir | --infodir | --infodi | --infod | --info | --inf)
1485 ac_prev=infodir ;;
1486 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1487 infodir=$ac_optarg ;;
1489 -libdir | --libdir | --libdi | --libd)
1490 ac_prev=libdir ;;
1491 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1492 libdir=$ac_optarg ;;
1494 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1495 | --libexe | --libex | --libe)
1496 ac_prev=libexecdir ;;
1497 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1498 | --libexe=* | --libex=* | --libe=*)
1499 libexecdir=$ac_optarg ;;
1501 -localedir | --localedir | --localedi | --localed | --locale)
1502 ac_prev=localedir ;;
1503 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1504 localedir=$ac_optarg ;;
1506 -localstatedir | --localstatedir | --localstatedi | --localstated \
1507 | --localstate | --localstat | --localsta | --localst | --locals)
1508 ac_prev=localstatedir ;;
1509 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1510 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1511 localstatedir=$ac_optarg ;;
1513 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1514 ac_prev=mandir ;;
1515 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1516 mandir=$ac_optarg ;;
1518 -nfp | --nfp | --nf)
1519 # Obsolete; use --without-fp.
1520 with_fp=no ;;
1522 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1523 | --no-cr | --no-c | -n)
1524 no_create=yes ;;
1526 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1527 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1528 no_recursion=yes ;;
1530 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1531 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1532 | --oldin | --oldi | --old | --ol | --o)
1533 ac_prev=oldincludedir ;;
1534 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1535 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1536 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1537 oldincludedir=$ac_optarg ;;
1539 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1540 ac_prev=prefix ;;
1541 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1542 prefix=$ac_optarg ;;
1544 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1545 | --program-pre | --program-pr | --program-p)
1546 ac_prev=program_prefix ;;
1547 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1548 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1549 program_prefix=$ac_optarg ;;
1551 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1552 | --program-suf | --program-su | --program-s)
1553 ac_prev=program_suffix ;;
1554 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1555 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1556 program_suffix=$ac_optarg ;;
1558 -program-transform-name | --program-transform-name \
1559 | --program-transform-nam | --program-transform-na \
1560 | --program-transform-n | --program-transform- \
1561 | --program-transform | --program-transfor \
1562 | --program-transfo | --program-transf \
1563 | --program-trans | --program-tran \
1564 | --progr-tra | --program-tr | --program-t)
1565 ac_prev=program_transform_name ;;
1566 -program-transform-name=* | --program-transform-name=* \
1567 | --program-transform-nam=* | --program-transform-na=* \
1568 | --program-transform-n=* | --program-transform-=* \
1569 | --program-transform=* | --program-transfor=* \
1570 | --program-transfo=* | --program-transf=* \
1571 | --program-trans=* | --program-tran=* \
1572 | --progr-tra=* | --program-tr=* | --program-t=*)
1573 program_transform_name=$ac_optarg ;;
1575 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1576 ac_prev=pdfdir ;;
1577 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1578 pdfdir=$ac_optarg ;;
1580 -psdir | --psdir | --psdi | --psd | --ps)
1581 ac_prev=psdir ;;
1582 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1583 psdir=$ac_optarg ;;
1585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1586 | -silent | --silent | --silen | --sile | --sil)
1587 silent=yes ;;
1589 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1590 ac_prev=sbindir ;;
1591 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1592 | --sbi=* | --sb=*)
1593 sbindir=$ac_optarg ;;
1595 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1596 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1597 | --sharedst | --shareds | --shared | --share | --shar \
1598 | --sha | --sh)
1599 ac_prev=sharedstatedir ;;
1600 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1601 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1602 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1603 | --sha=* | --sh=*)
1604 sharedstatedir=$ac_optarg ;;
1606 -site | --site | --sit)
1607 ac_prev=site ;;
1608 -site=* | --site=* | --sit=*)
1609 site=$ac_optarg ;;
1611 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1612 ac_prev=srcdir ;;
1613 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1614 srcdir=$ac_optarg ;;
1616 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1617 | --syscon | --sysco | --sysc | --sys | --sy)
1618 ac_prev=sysconfdir ;;
1619 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1620 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1621 sysconfdir=$ac_optarg ;;
1623 -target | --target | --targe | --targ | --tar | --ta | --t)
1624 ac_prev=target_alias ;;
1625 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1626 target_alias=$ac_optarg ;;
1628 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1629 verbose=yes ;;
1631 -version | --version | --versio | --versi | --vers | -V)
1632 ac_init_version=: ;;
1634 -with-* | --with-*)
1635 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1636 # Reject names that are not valid shell variable names.
1637 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1638 as_fn_error "invalid package name: $ac_useropt"
1639 ac_useropt_orig=$ac_useropt
1640 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1641 case $ac_user_opts in
1643 "with_$ac_useropt"
1644 "*) ;;
1645 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1646 ac_unrecognized_sep=', ';;
1647 esac
1648 eval with_$ac_useropt=\$ac_optarg ;;
1650 -without-* | --without-*)
1651 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1652 # Reject names that are not valid shell variable names.
1653 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1654 as_fn_error "invalid package name: $ac_useropt"
1655 ac_useropt_orig=$ac_useropt
1656 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1657 case $ac_user_opts in
1659 "with_$ac_useropt"
1660 "*) ;;
1661 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1662 ac_unrecognized_sep=', ';;
1663 esac
1664 eval with_$ac_useropt=no ;;
1666 --x)
1667 # Obsolete; use --with-x.
1668 with_x=yes ;;
1670 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1671 | --x-incl | --x-inc | --x-in | --x-i)
1672 ac_prev=x_includes ;;
1673 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1674 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1675 x_includes=$ac_optarg ;;
1677 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1678 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1679 ac_prev=x_libraries ;;
1680 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1681 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1682 x_libraries=$ac_optarg ;;
1684 -*) as_fn_error "unrecognized option: \`$ac_option'
1685 Try \`$0 --help' for more information."
1688 *=*)
1689 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1690 # Reject names that are not valid shell variable names.
1691 case $ac_envvar in #(
1692 '' | [0-9]* | *[!_$as_cr_alnum]* )
1693 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1694 esac
1695 eval $ac_envvar=\$ac_optarg
1696 export $ac_envvar ;;
1699 # FIXME: should be removed in autoconf 3.0.
1700 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1701 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1702 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1703 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1706 esac
1707 done
1709 if test -n "$ac_prev"; then
1710 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1711 as_fn_error "missing argument to $ac_option"
1714 if test -n "$ac_unrecognized_opts"; then
1715 case $enable_option_checking in
1716 no) ;;
1717 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1718 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1719 esac
1722 # Check all directory arguments for consistency.
1723 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1724 datadir sysconfdir sharedstatedir localstatedir includedir \
1725 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1726 libdir localedir mandir
1728 eval ac_val=\$$ac_var
1729 # Remove trailing slashes.
1730 case $ac_val in
1731 */ )
1732 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1733 eval $ac_var=\$ac_val;;
1734 esac
1735 # Be sure to have absolute directory names.
1736 case $ac_val in
1737 [\\/$]* | ?:[\\/]* ) continue;;
1738 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1739 esac
1740 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1741 done
1743 # There might be people who depend on the old broken behavior: `$host'
1744 # used to hold the argument of --host etc.
1745 # FIXME: To remove some day.
1746 build=$build_alias
1747 host=$host_alias
1748 target=$target_alias
1750 # FIXME: To remove some day.
1751 if test "x$host_alias" != x; then
1752 if test "x$build_alias" = x; then
1753 cross_compiling=maybe
1754 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1755 If a cross compiler is detected then cross compile mode will be used." >&2
1756 elif test "x$build_alias" != "x$host_alias"; then
1757 cross_compiling=yes
1761 ac_tool_prefix=
1762 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1764 test "$silent" = yes && exec 6>/dev/null
1767 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1768 ac_ls_di=`ls -di .` &&
1769 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1770 as_fn_error "working directory cannot be determined"
1771 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1772 as_fn_error "pwd does not report name of working directory"
1775 # Find the source files, if location was not specified.
1776 if test -z "$srcdir"; then
1777 ac_srcdir_defaulted=yes
1778 # Try the directory containing this script, then the parent directory.
1779 ac_confdir=`$as_dirname -- "$as_myself" ||
1780 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1781 X"$as_myself" : 'X\(//\)[^/]' \| \
1782 X"$as_myself" : 'X\(//\)$' \| \
1783 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1784 $as_echo X"$as_myself" |
1785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1786 s//\1/
1789 /^X\(\/\/\)[^/].*/{
1790 s//\1/
1793 /^X\(\/\/\)$/{
1794 s//\1/
1797 /^X\(\/\).*/{
1798 s//\1/
1801 s/.*/./; q'`
1802 srcdir=$ac_confdir
1803 if test ! -r "$srcdir/$ac_unique_file"; then
1804 srcdir=..
1806 else
1807 ac_srcdir_defaulted=no
1809 if test ! -r "$srcdir/$ac_unique_file"; then
1810 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1811 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1813 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1814 ac_abs_confdir=`(
1815 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1816 pwd)`
1817 # When building in place, set srcdir=.
1818 if test "$ac_abs_confdir" = "$ac_pwd"; then
1819 srcdir=.
1821 # Remove unnecessary trailing slashes from srcdir.
1822 # Double slashes in file names in object file debugging info
1823 # mess up M-x gdb in Emacs.
1824 case $srcdir in
1825 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1826 esac
1827 for ac_var in $ac_precious_vars; do
1828 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1829 eval ac_env_${ac_var}_value=\$${ac_var}
1830 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1831 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1832 done
1835 # Report the --help message.
1837 if test "$ac_init_help" = "long"; then
1838 # Omit some internal or obsolete options to make the list less imposing.
1839 # This message is too long to be a string in the A/UX 3.1 sh.
1840 cat <<_ACEOF
1841 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1843 Usage: $0 [OPTION]... [VAR=VALUE]...
1845 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1846 VAR=VALUE. See below for descriptions of some of the useful variables.
1848 Defaults for the options are specified in brackets.
1850 Configuration:
1851 -h, --help display this help and exit
1852 --help=short display options specific to this package
1853 --help=recursive display the short help of all the included packages
1854 -V, --version display version information and exit
1855 -q, --quiet, --silent do not print \`checking...' messages
1856 --cache-file=FILE cache test results in FILE [disabled]
1857 -C, --config-cache alias for \`--cache-file=config.cache'
1858 -n, --no-create do not create output files
1859 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1861 Installation directories:
1862 --prefix=PREFIX install architecture-independent files in PREFIX
1863 [$ac_default_prefix]
1864 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1865 [PREFIX]
1867 By default, \`make install' will install all the files in
1868 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1869 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1870 for instance \`--prefix=\$HOME'.
1872 For better control, use the options below.
1874 Fine tuning of the installation directories:
1875 --bindir=DIR user executables [EPREFIX/bin]
1876 --sbindir=DIR system admin executables [EPREFIX/sbin]
1877 --libexecdir=DIR program executables [EPREFIX/libexec]
1878 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1879 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1880 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1881 --libdir=DIR object code libraries [EPREFIX/lib]
1882 --includedir=DIR C header files [PREFIX/include]
1883 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1884 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1885 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1886 --infodir=DIR info documentation [DATAROOTDIR/info]
1887 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1888 --mandir=DIR man documentation [DATAROOTDIR/man]
1889 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1890 --htmldir=DIR html documentation [DOCDIR]
1891 --dvidir=DIR dvi documentation [DOCDIR]
1892 --pdfdir=DIR pdf documentation [DOCDIR]
1893 --psdir=DIR ps documentation [DOCDIR]
1894 _ACEOF
1896 cat <<\_ACEOF
1898 Program names:
1899 --program-prefix=PREFIX prepend PREFIX to installed program names
1900 --program-suffix=SUFFIX append SUFFIX to installed program names
1901 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1903 X features:
1904 --x-includes=DIR X include files are in DIR
1905 --x-libraries=DIR X library files are in DIR
1907 System types:
1908 --build=BUILD configure for building on BUILD [guessed]
1909 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1910 _ACEOF
1913 if test -n "$ac_init_help"; then
1914 case $ac_init_help in
1915 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1916 esac
1917 cat <<\_ACEOF
1919 Optional Features:
1920 --disable-option-checking ignore unrecognized --enable/--with options
1921 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1922 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1923 --disable-ns-self-contained
1924 disable self contained build under NeXTstep
1925 --enable-asserts compile code with asserts enabled
1926 --enable-maintainer-mode
1927 enable make rules and dependencies not useful (and
1928 sometimes confusing) to the casual installer
1929 --enable-locallisppath=PATH
1930 directories Emacs should search for lisp files
1931 specific to this site
1932 --enable-checking[=LIST]
1933 enable expensive run-time checks. With LIST, enable
1934 only specific categories of checks. Categories are:
1935 all,yes,no. Flags are: stringbytes, stringoverrun,
1936 stringfreelist, xmallocoverrun, conslist
1937 --enable-use-lisp-union-type
1938 use a union for the Lisp_Object data type. This is
1939 only useful for development for catching certain
1940 types of bugs.
1941 --enable-profiling build emacs with profiling support. This might not
1942 work on all platforms
1943 --enable-autodepend automatically generate dependencies to .h-files.
1944 Requires GNU Make and Gcc. Enabled if GNU Make and
1945 Gcc is found
1946 --disable-dependency-tracking speeds up one-time build
1947 --enable-dependency-tracking do not reject slow dependency extractors
1948 --disable-largefile omit support for large files
1950 Optional Packages:
1951 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1952 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1953 --without-pop don't support POP mail retrieval with movemail
1954 --with-kerberos support Kerberos-authenticated POP
1955 --with-kerberos5 support Kerberos version 5 authenticated POP
1956 --with-hesiod support Hesiod to get the POP server host
1957 --with-mmdf support MMDF mailboxes
1958 --with-mail-unlink unlink, rather than empty, mail spool after reading
1959 --with-mailhost=HOSTNAME
1960 string giving default POP mail host
1961 --without-sound don't compile with sound support
1962 --without-sync-input process async input synchronously
1963 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1964 lucid or athena, motif, no)
1965 --without-xpm don't compile with XPM image support
1966 --without-jpeg don't compile with JPEG image support
1967 --without-tiff don't compile with TIFF image support
1968 --without-gif don't compile with GIF image support
1969 --without-png don't compile with PNG image support
1970 --without-rsvg don't compile with SVG image support
1971 --without-xml2 don't compile with XML parsing support
1972 --without-imagemagick don't compile with ImageMagick image support
1973 --without-xft don't use XFT for anti aliased fonts
1974 --without-libotf don't use libotf for OpenType font support
1975 --without-m17n-flt don't use m17n-flt for text shaping
1976 --without-toolkit-scroll-bars
1977 don't use Motif or Xaw3d scroll bars
1978 --without-xaw3d don't use Xaw3d
1979 --without-xim don't use X11 XIM
1980 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1981 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1982 console
1983 --without-dbus don't compile with D-Bus support
1984 --without-gconf don't compile with GConf support
1985 --without-selinux don't compile with SELinux support
1986 --without-gnutls don't use -lgnutls for SSL/TLS support
1987 --without-makeinfo don't require makeinfo for building manuals
1988 --without-compress-info don't compress the installed Info pages
1989 --with-pkg-config-prog=PATH
1990 path to pkg-config for finding GTK and librsvg
1991 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1992 /usr/lib, or /usr/lib64 on some platforms.
1993 --with-gameuser=USER user for shared game score files
1994 --with-gnustep-conf=PATH
1995 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1996 or /etc/GNUstep/GNUstep.conf
1997 --with-x use the X Window System
1999 Some influential environment variables:
2000 CC C compiler command
2001 CFLAGS C compiler flags
2002 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2003 nonstandard directory <lib dir>
2004 LIBS libraries to pass to the linker, e.g. -l<library>
2005 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2006 you have headers in a nonstandard directory <include dir>
2007 CPP C preprocessor
2008 XMKMF Path to xmkmf, Makefile generator for X Window System
2010 Use these variables to override the choices made by `configure' or to help
2011 it to find libraries and programs with nonstandard names/locations.
2013 Report bugs to the package provider.
2014 _ACEOF
2015 ac_status=$?
2018 if test "$ac_init_help" = "recursive"; then
2019 # If there are subdirs, report their specific --help.
2020 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2021 test -d "$ac_dir" ||
2022 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2023 continue
2024 ac_builddir=.
2026 case "$ac_dir" in
2027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2030 # A ".." for each directory in $ac_dir_suffix.
2031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2032 case $ac_top_builddir_sub in
2033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2035 esac ;;
2036 esac
2037 ac_abs_top_builddir=$ac_pwd
2038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2039 # for backward compatibility:
2040 ac_top_builddir=$ac_top_build_prefix
2042 case $srcdir in
2043 .) # We are building in place.
2044 ac_srcdir=.
2045 ac_top_srcdir=$ac_top_builddir_sub
2046 ac_abs_top_srcdir=$ac_pwd ;;
2047 [\\/]* | ?:[\\/]* ) # Absolute name.
2048 ac_srcdir=$srcdir$ac_dir_suffix;
2049 ac_top_srcdir=$srcdir
2050 ac_abs_top_srcdir=$srcdir ;;
2051 *) # Relative name.
2052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2053 ac_top_srcdir=$ac_top_build_prefix$srcdir
2054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2055 esac
2056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2058 cd "$ac_dir" || { ac_status=$?; continue; }
2059 # Check for guested configure.
2060 if test -f "$ac_srcdir/configure.gnu"; then
2061 echo &&
2062 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2063 elif test -f "$ac_srcdir/configure"; then
2064 echo &&
2065 $SHELL "$ac_srcdir/configure" --help=recursive
2066 else
2067 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2068 fi || ac_status=$?
2069 cd "$ac_pwd" || { ac_status=$?; break; }
2070 done
2073 test -n "$ac_init_help" && exit $ac_status
2074 if $ac_init_version; then
2075 cat <<\_ACEOF
2076 emacs configure 24.0.50
2077 generated by GNU Autoconf 2.65
2079 Copyright (C) 2009 Free Software Foundation, Inc.
2080 This configure script is free software; the Free Software Foundation
2081 gives unlimited permission to copy, distribute and modify it.
2082 _ACEOF
2083 exit
2086 ## ------------------------ ##
2087 ## Autoconf initialization. ##
2088 ## ------------------------ ##
2090 # ac_fn_c_try_compile LINENO
2091 # --------------------------
2092 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2093 ac_fn_c_try_compile ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 rm -f conftest.$ac_objext
2097 if { { ac_try="$ac_compile"
2098 case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101 esac
2102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103 $as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_compile") 2>conftest.err
2105 ac_status=$?
2106 if test -s conftest.err; then
2107 grep -v '^ *+' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 mv -f conftest.er1 conftest.err
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && {
2113 test -z "$ac_c_werror_flag" ||
2114 test ! -s conftest.err
2115 } && test -s conftest.$ac_objext; then :
2116 ac_retval=0
2117 else
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 ac_retval=1
2123 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124 as_fn_set_status $ac_retval
2126 } # ac_fn_c_try_compile
2128 # ac_fn_c_try_cpp LINENO
2129 # ----------------------
2130 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2131 ac_fn_c_try_cpp ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if { { ac_try="$ac_cpp conftest.$ac_ext"
2135 case "(($ac_try" in
2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137 *) ac_try_echo=$ac_try;;
2138 esac
2139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2140 $as_echo "$ac_try_echo"; } >&5
2141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2142 ac_status=$?
2143 if test -s conftest.err; then
2144 grep -v '^ *+' conftest.err >conftest.er1
2145 cat conftest.er1 >&5
2146 mv -f conftest.er1 conftest.err
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; } >/dev/null && {
2150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2151 test ! -s conftest.err
2152 }; then :
2153 ac_retval=0
2154 else
2155 $as_echo "$as_me: failed program was:" >&5
2156 sed 's/^/| /' conftest.$ac_ext >&5
2158 ac_retval=1
2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161 as_fn_set_status $ac_retval
2163 } # ac_fn_c_try_cpp
2165 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2166 # -------------------------------------------------------
2167 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2168 # the include files in INCLUDES and setting the cache variable VAR
2169 # accordingly.
2170 ac_fn_c_check_header_mongrel ()
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2177 $as_echo_n "(cached) " >&6
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 else
2183 # Is the header compilable?
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2185 $as_echo_n "checking $2 usability... " >&6; }
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2189 #include <$2>
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_header_compiler=yes
2193 else
2194 ac_header_compiler=no
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2198 $as_echo "$ac_header_compiler" >&6; }
2200 # Is the header present?
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2202 $as_echo_n "checking $2 presence... " >&6; }
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 #include <$2>
2206 _ACEOF
2207 if ac_fn_c_try_cpp "$LINENO"; then :
2208 ac_header_preproc=yes
2209 else
2210 ac_header_preproc=no
2212 rm -f conftest.err conftest.$ac_ext
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2214 $as_echo "$ac_header_preproc" >&6; }
2216 # So? What about this header?
2217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2218 yes:no: )
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2220 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2222 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2224 no:yes:* )
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2226 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2228 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2230 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2232 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2234 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2236 esac
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 eval "$3=\$ac_header_compiler"
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 } # ac_fn_c_check_header_mongrel
2252 # ac_fn_c_try_run LINENO
2253 # ----------------------
2254 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255 # that executables *can* be run.
2256 ac_fn_c_try_run ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 if { { ac_try="$ac_link"
2260 case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263 esac
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_link") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2270 { { case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273 esac
2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275 $as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_try") 2>&5
2277 ac_status=$?
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; }; }; then :
2280 ac_retval=0
2281 else
2282 $as_echo "$as_me: program exited with status $ac_status" >&5
2283 $as_echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2286 ac_retval=$ac_status
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 as_fn_set_status $ac_retval
2292 } # ac_fn_c_try_run
2294 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2295 # -------------------------------------------------------
2296 # Tests whether HEADER exists and can be compiled using the include files in
2297 # INCLUDES, setting the cache variable VAR accordingly.
2298 ac_fn_c_check_header_compile ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2309 #include <$2>
2310 _ACEOF
2311 if ac_fn_c_try_compile "$LINENO"; then :
2312 eval "$3=yes"
2313 else
2314 eval "$3=no"
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 } # ac_fn_c_check_header_compile
2325 # ac_fn_c_try_link LINENO
2326 # -----------------------
2327 # Try to link conftest.$ac_ext, and return whether this succeeded.
2328 ac_fn_c_try_link ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 rm -f conftest.$ac_objext conftest$ac_exeext
2332 if { { ac_try="$ac_link"
2333 case "(($ac_try" in
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2336 esac
2337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2338 $as_echo "$ac_try_echo"; } >&5
2339 (eval "$ac_link") 2>conftest.err
2340 ac_status=$?
2341 if test -s conftest.err; then
2342 grep -v '^ *+' conftest.err >conftest.er1
2343 cat conftest.er1 >&5
2344 mv -f conftest.er1 conftest.err
2346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2347 test $ac_status = 0; } && {
2348 test -z "$ac_c_werror_flag" ||
2349 test ! -s conftest.err
2350 } && test -s conftest$ac_exeext && {
2351 test "$cross_compiling" = yes ||
2352 $as_test_x conftest$ac_exeext
2353 }; then :
2354 ac_retval=0
2355 else
2356 $as_echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 ac_retval=1
2361 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2362 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2363 # interfere with the next link command; also delete a directory that is
2364 # left behind by Apple's compiler. We do this before executing the actions.
2365 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2366 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2367 as_fn_set_status $ac_retval
2369 } # ac_fn_c_try_link
2371 # ac_fn_c_check_decl LINENO SYMBOL VAR
2372 # ------------------------------------
2373 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2374 ac_fn_c_check_decl ()
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2378 $as_echo_n "checking whether $2 is declared... " >&6; }
2379 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2386 main ()
2388 #ifndef $2
2389 (void) $2;
2390 #endif
2393 return 0;
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397 eval "$3=yes"
2398 else
2399 eval "$3=no"
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 eval ac_res=\$$3
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2408 } # ac_fn_c_check_decl
2410 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2411 # ----------------------------------------------
2412 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2413 ac_fn_c_check_header_preproc ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2423 #include <$2>
2424 _ACEOF
2425 if ac_fn_c_try_cpp "$LINENO"; then :
2426 eval "$3=yes"
2427 else
2428 eval "$3=no"
2430 rm -f conftest.err conftest.$ac_ext
2432 eval ac_res=\$$3
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437 } # ac_fn_c_check_header_preproc
2439 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2440 # ----------------------------------------------------
2441 # Tries to find if the field MEMBER exists in type AGGR, after including
2442 # INCLUDES, setting cache variable VAR accordingly.
2443 ac_fn_c_check_member ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2447 $as_echo_n "checking for $2.$3... " >&6; }
2448 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 static $2 ac_aggr;
2458 if (ac_aggr.$3)
2459 return 0;
2461 return 0;
2463 _ACEOF
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 eval "$4=yes"
2466 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2471 main ()
2473 static $2 ac_aggr;
2474 if (sizeof ac_aggr.$3)
2475 return 0;
2477 return 0;
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481 eval "$4=yes"
2482 else
2483 eval "$4=no"
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 eval ac_res=\$$4
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2494 } # ac_fn_c_check_member
2496 # ac_fn_c_check_func LINENO FUNC VAR
2497 # ----------------------------------
2498 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2499 ac_fn_c_check_func ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2503 $as_echo_n "checking for $2... " >&6; }
2504 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2511 #define $2 innocuous_$2
2513 /* System header to define __stub macros and hopefully few prototypes,
2514 which can conflict with char $2 (); below.
2515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2516 <limits.h> exists even on freestanding compilers. */
2518 #ifdef __STDC__
2519 # include <limits.h>
2520 #else
2521 # include <assert.h>
2522 #endif
2524 #undef $2
2526 /* Override any GCC internal prototype to avoid an error.
2527 Use char because int might match the return type of a GCC
2528 builtin and then its argument prototype would still apply. */
2529 #ifdef __cplusplus
2530 extern "C"
2531 #endif
2532 char $2 ();
2533 /* The GNU C library defines this for functions which it implements
2534 to always fail with ENOSYS. Some functions are actually named
2535 something starting with __ and the normal name is an alias. */
2536 #if defined __stub_$2 || defined __stub___$2
2537 choke me
2538 #endif
2541 main ()
2543 return $2 ();
2545 return 0;
2547 _ACEOF
2548 if ac_fn_c_try_link "$LINENO"; then :
2549 eval "$3=yes"
2550 else
2551 eval "$3=no"
2553 rm -f core conftest.err conftest.$ac_objext \
2554 conftest$ac_exeext conftest.$ac_ext
2556 eval ac_res=\$$3
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2558 $as_echo "$ac_res" >&6; }
2559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2561 } # ac_fn_c_check_func
2563 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2564 # --------------------------------------------
2565 # Tries to find the compile-time value of EXPR in a program that includes
2566 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2567 # computed
2568 ac_fn_c_compute_int ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 if test "$cross_compiling" = yes; then
2572 # Depending upon the size, compute the lo and hi bounds.
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2577 main ()
2579 static int test_array [1 - 2 * !(($2) >= 0)];
2580 test_array [0] = 0
2583 return 0;
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587 ac_lo=0 ac_mid=0
2588 while :; do
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2593 main ()
2595 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2596 test_array [0] = 0
2599 return 0;
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 ac_hi=$ac_mid; break
2604 else
2605 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2606 if test $ac_lo -le $ac_mid; then
2607 ac_lo= ac_hi=
2608 break
2610 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 done
2614 else
2615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h. */
2619 main ()
2621 static int test_array [1 - 2 * !(($2) < 0)];
2622 test_array [0] = 0
2625 return 0;
2627 _ACEOF
2628 if ac_fn_c_try_compile "$LINENO"; then :
2629 ac_hi=-1 ac_mid=-1
2630 while :; do
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2635 main ()
2637 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2638 test_array [0] = 0
2641 return 0;
2643 _ACEOF
2644 if ac_fn_c_try_compile "$LINENO"; then :
2645 ac_lo=$ac_mid; break
2646 else
2647 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2648 if test $ac_mid -le $ac_hi; then
2649 ac_lo= ac_hi=
2650 break
2652 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 done
2656 else
2657 ac_lo= ac_hi=
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 # Binary search between lo and hi bounds.
2663 while test "x$ac_lo" != "x$ac_hi"; do
2664 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2669 main ()
2671 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2672 test_array [0] = 0
2675 return 0;
2677 _ACEOF
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679 ac_hi=$ac_mid
2680 else
2681 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 done
2685 case $ac_lo in #((
2686 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2687 '') ac_retval=1 ;;
2688 esac
2689 else
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2693 static long int longval () { return $2; }
2694 static unsigned long int ulongval () { return $2; }
2695 #include <stdio.h>
2696 #include <stdlib.h>
2698 main ()
2701 FILE *f = fopen ("conftest.val", "w");
2702 if (! f)
2703 return 1;
2704 if (($2) < 0)
2706 long int i = longval ();
2707 if (i != ($2))
2708 return 1;
2709 fprintf (f, "%ld", i);
2711 else
2713 unsigned long int i = ulongval ();
2714 if (i != ($2))
2715 return 1;
2716 fprintf (f, "%lu", i);
2718 /* Do not output a trailing newline, as this causes \r\n confusion
2719 on some platforms. */
2720 return ferror (f) || fclose (f) != 0;
2723 return 0;
2725 _ACEOF
2726 if ac_fn_c_try_run "$LINENO"; then :
2727 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2728 else
2729 ac_retval=1
2731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2732 conftest.$ac_objext conftest.beam conftest.$ac_ext
2733 rm -f conftest.val
2736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2737 as_fn_set_status $ac_retval
2739 } # ac_fn_c_compute_int
2741 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2742 # -------------------------------------------
2743 # Tests whether TYPE exists after having included INCLUDES, setting cache
2744 # variable VAR accordingly.
2745 ac_fn_c_check_type ()
2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 eval "$3=no"
2754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2758 main ()
2760 if (sizeof ($2))
2761 return 0;
2763 return 0;
2765 _ACEOF
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2771 main ()
2773 if (sizeof (($2)))
2774 return 0;
2776 return 0;
2778 _ACEOF
2779 if ac_fn_c_try_compile "$LINENO"; then :
2781 else
2782 eval "$3=yes"
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 eval ac_res=\$$3
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2790 $as_echo "$ac_res" >&6; }
2791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2793 } # ac_fn_c_check_type
2794 cat >config.log <<_ACEOF
2795 This file contains any messages produced by compilers while
2796 running configure, to aid debugging if configure makes a mistake.
2798 It was created by emacs $as_me 24.0.50, which was
2799 generated by GNU Autoconf 2.65. Invocation command line was
2801 $ $0 $@
2803 _ACEOF
2804 exec 5>>config.log
2806 cat <<_ASUNAME
2807 ## --------- ##
2808 ## Platform. ##
2809 ## --------- ##
2811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2818 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2820 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2821 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2823 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2824 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2825 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2826 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2828 _ASUNAME
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 $as_echo "PATH: $as_dir"
2836 done
2837 IFS=$as_save_IFS
2839 } >&5
2841 cat >&5 <<_ACEOF
2844 ## ----------- ##
2845 ## Core tests. ##
2846 ## ----------- ##
2848 _ACEOF
2851 # Keep a trace of the command line.
2852 # Strip out --no-create and --no-recursion so they do not pile up.
2853 # Strip out --silent because we don't want to record it for future runs.
2854 # Also quote any args containing shell meta-characters.
2855 # Make two passes to allow for proper duplicate-argument suppression.
2856 ac_configure_args=
2857 ac_configure_args0=
2858 ac_configure_args1=
2859 ac_must_keep_next=false
2860 for ac_pass in 1 2
2862 for ac_arg
2864 case $ac_arg in
2865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2867 | -silent | --silent | --silen | --sile | --sil)
2868 continue ;;
2869 *\'*)
2870 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2871 esac
2872 case $ac_pass in
2873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2875 as_fn_append ac_configure_args1 " '$ac_arg'"
2876 if test $ac_must_keep_next = true; then
2877 ac_must_keep_next=false # Got value, back to normal.
2878 else
2879 case $ac_arg in
2880 *=* | --config-cache | -C | -disable-* | --disable-* \
2881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2883 | -with-* | --with-* | -without-* | --without-* | --x)
2884 case "$ac_configure_args0 " in
2885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2886 esac
2888 -* ) ac_must_keep_next=true ;;
2889 esac
2891 as_fn_append ac_configure_args " '$ac_arg'"
2893 esac
2894 done
2895 done
2896 { ac_configure_args0=; unset ac_configure_args0;}
2897 { ac_configure_args1=; unset ac_configure_args1;}
2899 # When interrupted or exit'd, cleanup temporary files, and complete
2900 # config.log. We remove comments because anyway the quotes in there
2901 # would cause problems or look ugly.
2902 # WARNING: Use '\'' to represent an apostrophe within the trap.
2903 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2904 trap 'exit_status=$?
2905 # Save into config.log some information that might help in debugging.
2907 echo
2909 cat <<\_ASBOX
2910 ## ---------------- ##
2911 ## Cache variables. ##
2912 ## ---------------- ##
2913 _ASBOX
2914 echo
2915 # The following way of writing the cache mishandles newlines in values,
2917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2918 eval ac_val=\$$ac_var
2919 case $ac_val in #(
2920 *${as_nl}*)
2921 case $ac_var in #(
2922 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2923 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2924 esac
2925 case $ac_var in #(
2926 _ | IFS | as_nl) ;; #(
2927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2928 *) { eval $ac_var=; unset $ac_var;} ;;
2929 esac ;;
2930 esac
2931 done
2932 (set) 2>&1 |
2933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2934 *${as_nl}ac_space=\ *)
2935 sed -n \
2936 "s/'\''/'\''\\\\'\'''\''/g;
2937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2938 ;; #(
2940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2942 esac |
2943 sort
2945 echo
2947 cat <<\_ASBOX
2948 ## ----------------- ##
2949 ## Output variables. ##
2950 ## ----------------- ##
2951 _ASBOX
2952 echo
2953 for ac_var in $ac_subst_vars
2955 eval ac_val=\$$ac_var
2956 case $ac_val in
2957 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2958 esac
2959 $as_echo "$ac_var='\''$ac_val'\''"
2960 done | sort
2961 echo
2963 if test -n "$ac_subst_files"; then
2964 cat <<\_ASBOX
2965 ## ------------------- ##
2966 ## File substitutions. ##
2967 ## ------------------- ##
2968 _ASBOX
2969 echo
2970 for ac_var in $ac_subst_files
2972 eval ac_val=\$$ac_var
2973 case $ac_val in
2974 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2975 esac
2976 $as_echo "$ac_var='\''$ac_val'\''"
2977 done | sort
2978 echo
2981 if test -s confdefs.h; then
2982 cat <<\_ASBOX
2983 ## ----------- ##
2984 ## confdefs.h. ##
2985 ## ----------- ##
2986 _ASBOX
2987 echo
2988 cat confdefs.h
2989 echo
2991 test "$ac_signal" != 0 &&
2992 $as_echo "$as_me: caught signal $ac_signal"
2993 $as_echo "$as_me: exit $exit_status"
2994 } >&5
2995 rm -f core *.core core.conftest.* &&
2996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2997 exit $exit_status
2999 for ac_signal in 1 2 13 15; do
3000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3001 done
3002 ac_signal=0
3004 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3005 rm -f -r conftest* confdefs.h
3007 $as_echo "/* confdefs.h */" > confdefs.h
3009 # Predefined preprocessor variables.
3011 cat >>confdefs.h <<_ACEOF
3012 #define PACKAGE_NAME "$PACKAGE_NAME"
3013 _ACEOF
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3017 _ACEOF
3019 cat >>confdefs.h <<_ACEOF
3020 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3021 _ACEOF
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_STRING "$PACKAGE_STRING"
3025 _ACEOF
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3029 _ACEOF
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_URL "$PACKAGE_URL"
3033 _ACEOF
3036 # Let the site file select an alternate cache file if it wants to.
3037 # Prefer an explicitly selected file to automatically selected ones.
3038 ac_site_file1=NONE
3039 ac_site_file2=NONE
3040 if test -n "$CONFIG_SITE"; then
3041 ac_site_file1=$CONFIG_SITE
3042 elif test "x$prefix" != xNONE; then
3043 ac_site_file1=$prefix/share/config.site
3044 ac_site_file2=$prefix/etc/config.site
3045 else
3046 ac_site_file1=$ac_default_prefix/share/config.site
3047 ac_site_file2=$ac_default_prefix/etc/config.site
3049 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3051 test "x$ac_site_file" = xNONE && continue
3052 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3054 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3055 sed 's/^/| /' "$ac_site_file" >&5
3056 . "$ac_site_file"
3058 done
3060 if test -r "$cache_file"; then
3061 # Some versions of bash will fail to source /dev/null (special files
3062 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3063 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3065 $as_echo "$as_me: loading cache $cache_file" >&6;}
3066 case $cache_file in
3067 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3068 *) . "./$cache_file";;
3069 esac
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3073 $as_echo "$as_me: creating cache $cache_file" >&6;}
3074 >$cache_file
3077 as_fn_append ac_header_list " stdlib.h"
3078 as_fn_append ac_header_list " unistd.h"
3079 as_fn_append ac_header_list " sys/param.h"
3080 as_fn_append ac_func_list " readlinkat"
3081 gl_getopt_required=GNU
3082 as_fn_append ac_header_list " getopt.h"
3083 as_fn_append ac_header_list " wchar.h"
3084 as_fn_append ac_header_list " stdint.h"
3085 as_fn_append ac_header_list " inttypes.h"
3086 as_fn_append ac_func_list " lstat"
3087 as_fn_append ac_func_list " alarm"
3088 as_fn_append ac_func_list " readlink"
3089 as_fn_append ac_header_list " sys/socket.h"
3090 as_fn_append ac_func_list " tzset"
3091 as_fn_append ac_func_list " symlink"
3092 as_fn_append ac_header_list " sys/stat.h"
3093 as_fn_append ac_header_list " sys/time.h"
3094 as_fn_append ac_func_list " localtime_r"
3095 # Check that the precious variables saved in the cache have kept the same
3096 # value.
3097 ac_cache_corrupted=false
3098 for ac_var in $ac_precious_vars; do
3099 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3100 eval ac_new_set=\$ac_env_${ac_var}_set
3101 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3102 eval ac_new_val=\$ac_env_${ac_var}_value
3103 case $ac_old_set,$ac_new_set in
3104 set,)
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3106 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3107 ac_cache_corrupted=: ;;
3108 ,set)
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3110 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3111 ac_cache_corrupted=: ;;
3112 ,);;
3114 if test "x$ac_old_val" != "x$ac_new_val"; then
3115 # differences in whitespace do not lead to failure.
3116 ac_old_val_w=`echo x $ac_old_val`
3117 ac_new_val_w=`echo x $ac_new_val`
3118 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3120 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3121 ac_cache_corrupted=:
3122 else
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3124 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3125 eval $ac_var=\$ac_old_val
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3128 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3130 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3131 fi;;
3132 esac
3133 # Pass precious variables to config.status.
3134 if test "$ac_new_set" = set; then
3135 case $ac_new_val in
3136 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3137 *) ac_arg=$ac_var=$ac_new_val ;;
3138 esac
3139 case " $ac_configure_args " in
3140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3141 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3142 esac
3144 done
3145 if $ac_cache_corrupted; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3149 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3150 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3152 ## -------------------- ##
3153 ## Main body of script. ##
3154 ## -------------------- ##
3156 ac_ext=c
3157 ac_cpp='$CPP $CPPFLAGS'
3158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3166 am__api_version='1.11'
3168 ac_aux_dir=
3169 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3170 for ac_t in install-sh install.sh shtool; do
3171 if test -f "$ac_dir/$ac_t"; then
3172 ac_aux_dir=$ac_dir
3173 ac_install_sh="$ac_aux_dir/$ac_t -c"
3174 break 2
3176 done
3177 done
3178 if test -z "$ac_aux_dir"; then
3179 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3182 # These three variables are undocumented and unsupported,
3183 # and are intended to be withdrawn in a future Autoconf release.
3184 # They can cause serious problems if a builder's source tree is in a directory
3185 # whose full name contains unusual characters.
3186 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3187 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3188 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3191 # Find a good install program. We prefer a C program (faster),
3192 # so one script is as good as another. But avoid the broken or
3193 # incompatible versions:
3194 # SysV /etc/install, /usr/sbin/install
3195 # SunOS /usr/etc/install
3196 # IRIX /sbin/install
3197 # AIX /bin/install
3198 # AmigaOS /C/install, which installs bootblocks on floppy discs
3199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3202 # OS/2's system install, which has a completely different semantic
3203 # ./install, which can be erroneously created by make from ./install.sh.
3204 # Reject install programs that cannot install multiple files.
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3207 if test -z "$INSTALL"; then
3208 if test "${ac_cv_path_install+set}" = set; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 # Account for people who put trailing slashes in PATH elements.
3217 case $as_dir/ in #((
3218 ./ | .// | /[cC]/* | \
3219 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3220 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3221 /usr/ucb/* ) ;;
3223 # OSF1 and SCO ODT 3.0 have their own names for install.
3224 # Don't use installbsd from OSF since it installs stuff as root
3225 # by default.
3226 for ac_prog in ginstall scoinst install; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3229 if test $ac_prog = install &&
3230 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3231 # AIX install. It has an incompatible calling convention.
3233 elif test $ac_prog = install &&
3234 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3235 # program-specific install script used by HP pwplus--don't use.
3237 else
3238 rm -rf conftest.one conftest.two conftest.dir
3239 echo one > conftest.one
3240 echo two > conftest.two
3241 mkdir conftest.dir
3242 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3243 test -s conftest.one && test -s conftest.two &&
3244 test -s conftest.dir/conftest.one &&
3245 test -s conftest.dir/conftest.two
3246 then
3247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3248 break 3
3252 done
3253 done
3255 esac
3257 done
3258 IFS=$as_save_IFS
3260 rm -rf conftest.one conftest.two conftest.dir
3263 if test "${ac_cv_path_install+set}" = set; then
3264 INSTALL=$ac_cv_path_install
3265 else
3266 # As a last resort, use the slow shell script. Don't cache a
3267 # value for INSTALL within a source directory, because that will
3268 # break other packages using the cache if that directory is
3269 # removed, or if the value is a relative name.
3270 INSTALL=$ac_install_sh
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3274 $as_echo "$INSTALL" >&6; }
3276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3277 # It thinks the first close brace ends the variable substitution.
3278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3285 $as_echo_n "checking whether build environment is sane... " >&6; }
3286 # Just in case
3287 sleep 1
3288 echo timestamp > conftest.file
3289 # Reject unsafe characters in $srcdir or the absolute working directory
3290 # name. Accept space and tab only in the latter.
3291 am_lf='
3293 case `pwd` in
3294 *[\\\"\#\$\&\'\`$am_lf]*)
3295 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3296 esac
3297 case $srcdir in
3298 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3299 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3300 esac
3302 # Do `set' in a subshell so we don't clobber the current shell's
3303 # arguments. Must try -L first in case configure is actually a
3304 # symlink; some systems play weird games with the mod time of symlinks
3305 # (eg FreeBSD returns the mod time of the symlink's containing
3306 # directory).
3307 if (
3308 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3309 if test "$*" = "X"; then
3310 # -L didn't work.
3311 set X `ls -t "$srcdir/configure" conftest.file`
3313 rm -f conftest.file
3314 if test "$*" != "X $srcdir/configure conftest.file" \
3315 && test "$*" != "X conftest.file $srcdir/configure"; then
3317 # If neither matched, then we have a broken ls. This can happen
3318 # if, for instance, CONFIG_SHELL is bash and it inherits a
3319 # broken ls alias from the environment. This has actually
3320 # happened. Such a system could not be considered "sane".
3321 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3322 alias in your environment" "$LINENO" 5
3325 test "$2" = conftest.file
3327 then
3328 # Ok.
3330 else
3331 as_fn_error "newly created file is older than distributed files!
3332 Check your system clock" "$LINENO" 5
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335 $as_echo "yes" >&6; }
3336 test "$program_prefix" != NONE &&
3337 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3338 # Use a double $ so make ignores it.
3339 test "$program_suffix" != NONE &&
3340 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3341 # Double any \ or $.
3342 # By default was `s,x,x', remove it if useless.
3343 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3344 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3346 # expand $ac_aux_dir to an absolute path
3347 am_aux_dir=`cd $ac_aux_dir && pwd`
3349 if test x"${MISSING+set}" != xset; then
3350 case $am_aux_dir in
3351 *\ * | *\ *)
3352 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3354 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3355 esac
3357 # Use eval to expand $SHELL
3358 if eval "$MISSING --run true"; then
3359 am_missing_run="$MISSING --run "
3360 else
3361 am_missing_run=
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3363 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3366 if test x"${install_sh}" != xset; then
3367 case $am_aux_dir in
3368 *\ * | *\ *)
3369 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3371 install_sh="\${SHELL} $am_aux_dir/install-sh"
3372 esac
3375 # Installed binaries are usually stripped using `strip' when the user
3376 # run `make install-strip'. However `strip' might not be the right
3377 # tool to use in cross-compilation environments, therefore Automake
3378 # will honor the `STRIP' environment variable to overrule this program.
3379 if test "$cross_compiling" != no; then
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3382 set dummy ${ac_tool_prefix}strip; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_STRIP+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test -n "$STRIP"; then
3389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3402 done
3403 done
3404 IFS=$as_save_IFS
3408 STRIP=$ac_cv_prog_STRIP
3409 if test -n "$STRIP"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3411 $as_echo "$STRIP" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3419 if test -z "$ac_cv_prog_STRIP"; then
3420 ac_ct_STRIP=$STRIP
3421 # Extract the first word of "strip", so it can be a program name with args.
3422 set dummy strip; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$ac_ct_STRIP"; then
3429 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_ac_ct_STRIP="strip"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3449 if test -n "$ac_ct_STRIP"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3451 $as_echo "$ac_ct_STRIP" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 if test "x$ac_ct_STRIP" = x; then
3458 STRIP=":"
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466 STRIP=$ac_ct_STRIP
3468 else
3469 STRIP="$ac_cv_prog_STRIP"
3473 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3476 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3477 if test -z "$MKDIR_P"; then
3478 if test "${ac_cv_path_mkdir+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_prog in mkdir gmkdir; do
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3489 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3490 'mkdir (GNU coreutils) '* | \
3491 'mkdir (coreutils) '* | \
3492 'mkdir (fileutils) '4.1*)
3493 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3494 break 3;;
3495 esac
3496 done
3497 done
3498 done
3499 IFS=$as_save_IFS
3503 test -d ./--version && rmdir ./--version
3504 if test "${ac_cv_path_mkdir+set}" = set; then
3505 MKDIR_P="$ac_cv_path_mkdir -p"
3506 else
3507 # As a last resort, use the slow shell script. Don't cache a
3508 # value for MKDIR_P within a source directory, because that will
3509 # break other packages using the cache if that directory is
3510 # removed, or if the value is a relative name.
3511 MKDIR_P="$ac_install_sh -d"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3515 $as_echo "$MKDIR_P" >&6; }
3518 mkdir_p="$MKDIR_P"
3519 case $mkdir_p in
3520 [\\/$]* | ?:[\\/]*) ;;
3521 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3522 esac
3524 for ac_prog in gawk mawk nawk awk
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if test "${ac_cv_prog_AWK+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$AWK"; then
3534 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_AWK="$ac_prog"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3547 done
3548 done
3549 IFS=$as_save_IFS
3553 AWK=$ac_cv_prog_AWK
3554 if test -n "$AWK"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3556 $as_echo "$AWK" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3563 test -n "$AWK" && break
3564 done
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3567 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3568 set x ${MAKE-make}
3569 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 cat >conftest.make <<\_ACEOF
3574 SHELL = /bin/sh
3575 all:
3576 @echo '@@@%%%=$(MAKE)=@@@%%%'
3577 _ACEOF
3578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3580 *@@@%%%=?*=@@@%%%*)
3581 eval ac_cv_prog_make_${ac_make}_set=yes;;
3583 eval ac_cv_prog_make_${ac_make}_set=no;;
3584 esac
3585 rm -f conftest.make
3587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589 $as_echo "yes" >&6; }
3590 SET_MAKE=
3591 else
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 SET_MAKE="MAKE=${MAKE-make}"
3597 rm -rf .tst 2>/dev/null
3598 mkdir .tst 2>/dev/null
3599 if test -d .tst; then
3600 am__leading_dot=.
3601 else
3602 am__leading_dot=_
3604 rmdir .tst 2>/dev/null
3606 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3607 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3608 # is not polluted with repeated "-I."
3609 am__isrc=' -I$(srcdir)'
3610 # test to see if srcdir already configured
3611 if test -f $srcdir/config.status; then
3612 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3616 # test whether we have cygpath
3617 if test -z "$CYGPATH_W"; then
3618 if (cygpath --version) >/dev/null 2>/dev/null; then
3619 CYGPATH_W='cygpath -w'
3620 else
3621 CYGPATH_W=echo
3626 # Define the identity of the package.
3627 PACKAGE='emacs'
3628 VERSION='24.0.50'
3631 cat >>confdefs.h <<_ACEOF
3632 #define PACKAGE "$PACKAGE"
3633 _ACEOF
3636 cat >>confdefs.h <<_ACEOF
3637 #define VERSION "$VERSION"
3638 _ACEOF
3640 # Some tools Automake needs.
3642 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3645 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3648 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3651 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3654 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3656 # We need awk for the "check" target. The system "awk" is bad on
3657 # some platforms.
3658 # Always define AMTAR for backward compatibility.
3660 AMTAR=${AMTAR-"${am_missing_run}tar"}
3662 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3671 lispdir='${datadir}/emacs/${version}/lisp'
3672 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3673 '${datadir}/emacs/site-lisp'
3674 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3675 etcdir='${datadir}/emacs/${version}/etc'
3676 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3677 docdir='${datadir}/emacs/${version}/etc'
3678 gamedir='${localstatedir}/games/emacs'
3683 # Check whether --with-pop was given.
3684 if test "${with_pop+set}" = set; then :
3685 withval=$with_pop;
3686 else
3687 with_pop=yes
3690 if test "$with_pop" = yes; then
3691 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3696 # Check whether --with-kerberos was given.
3697 if test "${with_kerberos+set}" = set; then :
3698 withval=$with_kerberos;
3699 else
3700 with_kerberos=no
3703 if test "$with_kerberos" != no; then
3704 $as_echo "#define KERBEROS 1" >>confdefs.h
3709 # Check whether --with-kerberos5 was given.
3710 if test "${with_kerberos5+set}" = set; then :
3711 withval=$with_kerberos5;
3712 else
3713 with_kerberos5=no
3716 if test "${with_kerberos5}" != no; then
3717 if test "${with_kerberos}" = no; then
3718 with_kerberos=yes
3719 $as_echo "#define KERBEROS 1" >>confdefs.h
3723 $as_echo "#define KERBEROS5 1" >>confdefs.h
3728 # Check whether --with-hesiod was given.
3729 if test "${with_hesiod+set}" = set; then :
3730 withval=$with_hesiod;
3731 else
3732 with_hesiod=no
3735 if test "$with_hesiod" != no; then
3737 $as_echo "#define HESIOD 1" >>confdefs.h
3742 # Check whether --with-mmdf was given.
3743 if test "${with_mmdf+set}" = set; then :
3744 withval=$with_mmdf;
3745 else
3746 with_mmdf=no
3749 if test "$with_mmdf" != no; then
3751 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3756 # Check whether --with-mail-unlink was given.
3757 if test "${with_mail_unlink+set}" = set; then :
3758 withval=$with_mail_unlink;
3759 else
3760 with_mail_unlink=no
3763 if test "$with_mail_unlink" != no; then
3765 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3770 # Check whether --with-mailhost was given.
3771 if test "${with_mailhost+set}" = set; then :
3772 withval=$with_mailhost;
3773 cat >>confdefs.h <<_ACEOF
3774 #define MAILHOST "$withval"
3775 _ACEOF
3781 # Check whether --with-sound was given.
3782 if test "${with_sound+set}" = set; then :
3783 withval=$with_sound;
3784 else
3785 with_sound=yes
3790 # Check whether --with-sync-input was given.
3791 if test "${with_sync_input+set}" = set; then :
3792 withval=$with_sync_input;
3793 else
3794 with_sync_input=yes
3797 if test "$with_sync_input" = yes; then
3799 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3804 # Check whether --with-x-toolkit was given.
3805 if test "${with_x_toolkit+set}" = set; then :
3806 withval=$with_x_toolkit; case "${withval}" in
3807 y | ye | yes ) val=gtk ;;
3808 n | no ) val=no ;;
3809 l | lu | luc | luci | lucid ) val=lucid ;;
3810 a | at | ath | athe | athen | athena ) val=athena ;;
3811 m | mo | mot | moti | motif ) val=motif ;;
3812 g | gt | gtk ) val=gtk ;;
3813 gtk3 ) val=gtk3 ;;
3815 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3816 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3817 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3819 esac
3820 with_x_toolkit=$val
3826 # Check whether --with-xpm was given.
3827 if test "${with_xpm+set}" = set; then :
3828 withval=$with_xpm;
3829 else
3830 with_xpm=yes
3834 # Check whether --with-jpeg was given.
3835 if test "${with_jpeg+set}" = set; then :
3836 withval=$with_jpeg;
3837 else
3838 with_jpeg=yes
3842 # Check whether --with-tiff was given.
3843 if test "${with_tiff+set}" = set; then :
3844 withval=$with_tiff;
3845 else
3846 with_tiff=yes
3850 # Check whether --with-gif was given.
3851 if test "${with_gif+set}" = set; then :
3852 withval=$with_gif;
3853 else
3854 with_gif=yes
3858 # Check whether --with-png was given.
3859 if test "${with_png+set}" = set; then :
3860 withval=$with_png;
3861 else
3862 with_png=yes
3866 # Check whether --with-rsvg was given.
3867 if test "${with_rsvg+set}" = set; then :
3868 withval=$with_rsvg;
3869 else
3870 with_rsvg=yes
3874 # Check whether --with-xml2 was given.
3875 if test "${with_xml2+set}" = set; then :
3876 withval=$with_xml2;
3877 else
3878 with_xml2=yes
3882 # Check whether --with-imagemagick was given.
3883 if test "${with_imagemagick+set}" = set; then :
3884 withval=$with_imagemagick;
3885 else
3886 with_imagemagick=yes
3891 # Check whether --with-xft was given.
3892 if test "${with_xft+set}" = set; then :
3893 withval=$with_xft;
3894 else
3895 with_xft=yes
3899 # Check whether --with-libotf was given.
3900 if test "${with_libotf+set}" = set; then :
3901 withval=$with_libotf;
3902 else
3903 with_libotf=yes
3907 # Check whether --with-m17n-flt was given.
3908 if test "${with_m17n_flt+set}" = set; then :
3909 withval=$with_m17n_flt;
3910 else
3911 with_m17n_flt=yes
3916 # Check whether --with-toolkit-scroll-bars was given.
3917 if test "${with_toolkit_scroll_bars+set}" = set; then :
3918 withval=$with_toolkit_scroll_bars;
3919 else
3920 with_toolkit_scroll_bars=yes
3924 # Check whether --with-xaw3d was given.
3925 if test "${with_xaw3d+set}" = set; then :
3926 withval=$with_xaw3d;
3927 else
3928 with_xaw3d=yes
3932 # Check whether --with-xim was given.
3933 if test "${with_xim+set}" = set; then :
3934 withval=$with_xim;
3935 else
3936 with_xim=yes
3940 # Check whether --with-ns was given.
3941 if test "${with_ns+set}" = set; then :
3942 withval=$with_ns;
3943 else
3944 with_ns=no
3949 # Check whether --with-gpm was given.
3950 if test "${with_gpm+set}" = set; then :
3951 withval=$with_gpm;
3952 else
3953 with_gpm=yes
3957 # Check whether --with-dbus was given.
3958 if test "${with_dbus+set}" = set; then :
3959 withval=$with_dbus;
3960 else
3961 with_dbus=yes
3965 # Check whether --with-gconf was given.
3966 if test "${with_gconf+set}" = set; then :
3967 withval=$with_gconf;
3968 else
3969 with_gconf=yes
3973 # Check whether --with-selinux was given.
3974 if test "${with_selinux+set}" = set; then :
3975 withval=$with_selinux;
3976 else
3977 with_selinux=yes
3981 # Check whether --with-gnutls was given.
3982 if test "${with_gnutls+set}" = set; then :
3983 withval=$with_gnutls;
3984 else
3985 with_gnutls=yes
3989 ## For the times when you want to build Emacs but don't have
3990 ## a suitable makeinfo, and can live without the manuals.
3992 # Check whether --with-makeinfo was given.
3993 if test "${with_makeinfo+set}" = set; then :
3994 withval=$with_makeinfo;
3995 else
3996 with_makeinfo=yes
4000 ## This is an option because I do not know if all info/man support
4001 ## compressed files, nor how to test if they do so.
4003 # Check whether --with-compress-info was given.
4004 if test "${with_compress_info+set}" = set; then :
4005 withval=$with_compress_info;
4006 else
4007 with_compress_info=yes
4010 if test $with_compress_info = yes; then
4011 GZIP_INFO=yes
4012 else
4013 GZIP_INFO=
4018 # Check whether --with-pkg-config-prog was given.
4019 if test "${with_pkg_config_prog+set}" = set; then :
4020 withval=$with_pkg_config_prog;
4023 if test "X${with_pkg_config_prog}" != X; then
4024 if test "${with_pkg_config_prog}" != yes; then
4025 PKG_CONFIG="${with_pkg_config_prog}"
4029 CRT_DIR=
4031 # Check whether --with-crt-dir was given.
4032 if test "${with_crt_dir+set}" = set; then :
4033 withval=$with_crt_dir;
4036 CRT_DIR="${with_crt_dir}"
4039 # Check whether --with-gameuser was given.
4040 if test "${with_gameuser+set}" = set; then :
4041 withval=$with_gameuser;
4044 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
4045 && gameuser="${with_gameuser}"
4046 test "X$gameuser" = X && gameuser=games
4049 # Check whether --with-gnustep-conf was given.
4050 if test "${with_gnustep_conf+set}" = set; then :
4051 withval=$with_gnustep_conf;
4054 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4055 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4056 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4057 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4059 # Check whether --enable-ns-self-contained was given.
4060 if test "${enable_ns_self_contained+set}" = set; then :
4061 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4062 else
4063 EN_NS_SELF_CONTAINED=yes
4067 # Check whether --enable-asserts was given.
4068 if test "${enable_asserts+set}" = set; then :
4069 enableval=$enable_asserts; USE_XASSERTS=$enableval
4070 else
4071 USE_XASSERTS=no
4075 # Check whether --enable-maintainer-mode was given.
4076 if test "${enable_maintainer_mode+set}" = set; then :
4077 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4078 else
4079 USE_MAINTAINER_MODE=yes
4082 if test $USE_MAINTAINER_MODE = yes; then
4083 MAINT=
4084 else
4085 MAINT=#
4089 # Check whether --enable-locallisppath was given.
4090 if test "${enable_locallisppath+set}" = set; then :
4091 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4092 locallisppath=
4093 elif test "${enableval}" != "yes"; then
4094 locallisppath=${enableval}
4099 # Check whether --enable-checking was given.
4100 if test "${enable_checking+set}" = set; then :
4101 enableval=$enable_checking; ac_checking_flags="${enableval}"
4104 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4105 for check in $ac_checking_flags
4107 case $check in
4108 # these set all the flags to specific states
4109 yes) ac_enable_checking=1 ;;
4110 no) ac_enable_checking= ;
4111 ac_gc_check_stringbytes= ;
4112 ac_gc_check_string_overrun= ;
4113 ac_gc_check_string_free_list= ;
4114 ac_xmalloc_overrun= ;
4115 ac_gc_check_cons_list= ;;
4116 all) ac_enable_checking=1 ;
4117 ac_gc_check_stringbytes=1 ;
4118 ac_gc_check_string_overrun=1 ;
4119 ac_gc_check_string_free_list=1 ;
4120 ac_xmalloc_overrun=1 ;
4121 ac_gc_check_cons_list=1 ;;
4122 # these enable particular checks
4123 stringbytes) ac_gc_check_stringbytes=1 ;;
4124 stringoverrun) ac_gc_check_string_overrun=1 ;;
4125 stringfreelist) ac_gc_check_string_free_list=1 ;;
4126 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4127 conslist) ac_gc_check_cons_list=1 ;;
4128 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4129 esac
4130 done
4131 IFS="$ac_save_IFS"
4133 if test x$ac_enable_checking != x ; then
4135 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4138 if test x$ac_gc_check_stringbytes != x ; then
4140 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4143 if test x$ac_gc_check_string_overrun != x ; then
4145 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4148 if test x$ac_gc_check_string_free_list != x ; then
4150 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4153 if test x$ac_xmalloc_overrun != x ; then
4155 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4158 if test x$ac_gc_check_cons_list != x ; then
4160 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4164 # Check whether --enable-use-lisp-union-type was given.
4165 if test "${enable_use_lisp_union_type+set}" = set; then :
4166 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4168 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4175 # Check whether --enable-profiling was given.
4176 if test "${enable_profiling+set}" = set; then :
4177 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4180 if test x$ac_enable_profiling != x ; then
4181 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4182 else
4183 PROFILING_CFLAGS=
4187 # Check whether --enable-autodepend was given.
4188 if test "${enable_autodepend+set}" = set; then :
4189 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4190 else
4191 ac_enable_autodepend=yes
4195 #### Make srcdir absolute, if it isn't already. It's important to
4196 #### avoid running the path through pwd unnecessarily, since pwd can
4197 #### give you automounter prefixes, which can go away. We do all this
4198 #### so Emacs can find its files when run uninstalled.
4199 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4200 unset CDPATH
4201 case "${srcdir}" in
4202 /* ) ;;
4204 ## We may be able to use the $PWD environment variable to make this
4205 ## absolute. But sometimes PWD is inaccurate.
4206 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4207 ## but that tested only for a well-formed and valid PWD,
4208 ## it did not object when PWD was well-formed and valid but just wrong.
4209 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4210 then
4211 srcdir="$PWD"
4212 else
4213 srcdir="`(cd ${srcdir}; pwd)`"
4216 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4217 esac
4219 #### Given the configuration name, set machfile and opsysfile to the
4220 #### names of the m/*.h and s/*.h files we should use.
4222 ### Canonicalize the configuration name.
4224 # Make sure we can run config.sub.
4225 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4226 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4229 $as_echo_n "checking build system type... " >&6; }
4230 if test "${ac_cv_build+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 ac_build_alias=$build_alias
4234 test "x$ac_build_alias" = x &&
4235 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4236 test "x$ac_build_alias" = x &&
4237 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4238 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4239 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4243 $as_echo "$ac_cv_build" >&6; }
4244 case $ac_cv_build in
4245 *-*-*) ;;
4246 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4247 esac
4248 build=$ac_cv_build
4249 ac_save_IFS=$IFS; IFS='-'
4250 set x $ac_cv_build
4251 shift
4252 build_cpu=$1
4253 build_vendor=$2
4254 shift; shift
4255 # Remember, the first character of IFS is used to create $*,
4256 # except with old shells:
4257 build_os=$*
4258 IFS=$ac_save_IFS
4259 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4263 $as_echo_n "checking host system type... " >&6; }
4264 if test "${ac_cv_host+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if test "x$host_alias" = x; then
4268 ac_cv_host=$ac_cv_build
4269 else
4270 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4271 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4276 $as_echo "$ac_cv_host" >&6; }
4277 case $ac_cv_host in
4278 *-*-*) ;;
4279 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4280 esac
4281 host=$ac_cv_host
4282 ac_save_IFS=$IFS; IFS='-'
4283 set x $ac_cv_host
4284 shift
4285 host_cpu=$1
4286 host_vendor=$2
4287 shift; shift
4288 # Remember, the first character of IFS is used to create $*,
4289 # except with old shells:
4290 host_os=$*
4291 IFS=$ac_save_IFS
4292 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4295 canonical=$host
4296 configuration=${host_alias-${build_alias-$host}}
4300 ### If you add support for a new configuration, add code to this
4301 ### switch statement to recognize your configuration name and select
4302 ### the appropriate operating system and machine description files.
4304 ### You would hope that you could choose an m/*.h file pretty much
4305 ### based on the machine portion of the configuration name, and an s/*.h
4306 ### file based on the operating system portion. However, it turns out
4307 ### that each m/*.h file is pretty manufacturer-specific - for
4308 ### example mips.h is MIPS
4309 ### So we basically have to have a special case for each
4310 ### configuration name.
4312 ### As far as handling version numbers on operating systems is
4313 ### concerned, make sure things will fail in a fixable way. If
4314 ### /etc/MACHINES doesn't say anything about version numbers, be
4315 ### prepared to handle anything reasonably. If version numbers
4316 ### matter, be sure /etc/MACHINES says something about it.
4318 machine='' opsys='' unported=no
4319 case "${canonical}" in
4321 ## GNU/Linux ports
4322 *-*-linux-gnu*)
4323 opsys=gnu-linux
4324 case ${canonical} in
4325 alpha*) machine=alpha ;;
4326 s390-*) machine=ibms390 ;;
4327 s390x-*) machine=ibms390x ;;
4328 powerpc*) machine=macppc ;;
4329 sparc*) machine=sparc ;;
4330 ia64*) machine=ia64 ;;
4331 m68k*) machine=m68k ;;
4332 x86_64*) machine=amdx86-64 ;;
4333 esac
4336 ## FreeBSD ports
4337 *-*-freebsd* )
4338 opsys=freebsd
4339 case "${canonical}" in
4340 alpha*) machine=alpha ;;
4341 amd64-*|x86_64-*) machine=amdx86-64 ;;
4342 ia64-*) machine=ia64 ;;
4343 i[3456]86-*) machine=intel386 ;;
4344 powerpc-*) machine=macppc ;;
4345 sparc-*) machine=sparc ;;
4346 sparc64-*) machine=sparc ;;
4347 esac
4350 ## FreeBSD kernel + glibc based userland
4351 *-*-kfreebsd*gnu* )
4352 opsys=gnu-kfreebsd
4353 case "${canonical}" in
4354 alpha*) machine=alpha ;;
4355 amd64-*|x86_64-*) machine=amdx86-64 ;;
4356 ia64-*) machine=ia64 ;;
4357 i[3456]86-*) machine=intel386 ;;
4358 powerpc-*) machine=macppc ;;
4359 sparc-*) machine=sparc ;;
4360 sparc64-*) machine=sparc ;;
4361 esac
4364 ## NetBSD ports
4365 *-*-netbsd* )
4366 opsys=netbsd
4367 case "${canonical}" in
4368 alpha*) machine=alpha ;;
4369 x86_64-*) machine=amdx86-64 ;;
4370 i[3456]86-*) machine=intel386 ;;
4371 m68k-*) machine=m68k ;;
4372 powerpc-*) machine=macppc ;;
4373 sparc*-) machine=sparc ;;
4374 vax-*) machine=vax ;;
4375 esac
4378 ## OpenBSD ports
4379 *-*-openbsd* )
4380 opsys=openbsd
4381 case "${canonical}" in
4382 alpha*) machine=alpha ;;
4383 x86_64-*) machine=amdx86-64 ;;
4384 i386-*) machine=intel386 ;;
4385 powerpc-*) machine=macppc ;;
4386 sparc*) machine=sparc ;;
4387 vax-*) machine=vax ;;
4388 esac
4391 ## Apple Darwin / Mac OS X
4392 *-apple-darwin* )
4393 case "${canonical}" in
4394 i[3456]86-* ) machine=intel386 ;;
4395 powerpc-* ) machine=macppc ;;
4396 x86_64-* ) machine=amdx86-64 ;;
4397 * ) unported=yes ;;
4398 esac
4399 opsys=darwin
4400 # Define CPP as follows to make autoconf work correctly.
4401 CPP="${CC-cc} -E -no-cpp-precomp"
4402 # Use fink packages if available.
4403 if test -d /sw/include && test -d /sw/lib; then
4404 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4405 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4406 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4410 ## HP 9000 series 700 and 800, running HP/UX
4411 hppa*-hp-hpux10.2* )
4412 opsys=hpux10-20
4414 hppa*-hp-hpux1[1-9]* )
4415 opsys=hpux11
4416 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4419 ia64*-hp-hpux1[1-9]* )
4420 machine=hp800 opsys=hpux11
4421 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4422 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4423 CANNOT_DUMP=yes
4426 hppa*-*-linux-gnu* )
4427 machine=hp800 opsys=gnu-linux
4430 ## IBM machines
4431 rs6000-ibm-aix4.[23]* )
4432 machine=ibmrs6000 opsys=aix4-2
4434 powerpc-ibm-aix4.[23]* )
4435 machine=ibmrs6000 opsys=aix4-2
4437 rs6000-ibm-aix[56]* )
4438 machine=ibmrs6000 opsys=aix4-2
4440 powerpc-ibm-aix[56]* )
4441 machine=ibmrs6000 opsys=aix4-2
4444 ## Silicon Graphics machines
4445 ## Iris 4D
4446 mips-sgi-irix6.5 )
4447 machine=iris4d opsys=irix6-5
4448 # Without defining _LANGUAGE_C, things get masked out in the headers
4449 # so that, for instance, grepping for `free' in stdlib.h fails and
4450 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4451 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4452 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4455 ## Suns
4456 *-sun-solaris* \
4457 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4458 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4459 case "${canonical}" in
4460 i[3456]86-*-* ) machine=intel386 ;;
4461 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4462 sparc* ) machine=sparc ;;
4463 * ) unported=yes ;;
4464 esac
4465 case "${canonical}" in
4466 *-sunos5.6* | *-solaris2.6* )
4467 opsys=sol2-6
4468 NON_GNU_CPP=/usr/ccs/lib/cpp
4469 RANLIB="ar -ts"
4471 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4472 opsys=sol2-6
4473 emacs_check_sunpro_c=yes
4474 NON_GNU_CPP=/usr/ccs/lib/cpp
4476 *-sunos5* | *-solaris* )
4477 opsys=sol2-10
4478 emacs_check_sunpro_c=yes
4479 NON_GNU_CPP=/usr/ccs/lib/cpp
4481 esac
4482 ## Watch out for a compiler that we know will not work.
4483 case "${canonical}" in
4484 *-solaris* | *-sunos5* )
4485 if [ "x$CC" = x/usr/ucb/cc ]; then
4486 ## /usr/ucb/cc doesn't work;
4487 ## we should find some other compiler that does work.
4488 unset CC
4491 *) ;;
4492 esac
4495 ## Intel 386 machines where we don't care about the manufacturer.
4496 i[3456]86-*-* )
4497 machine=intel386
4498 case "${canonical}" in
4499 *-cygwin ) opsys=cygwin ;;
4500 *-darwin* ) opsys=darwin
4501 CPP="${CC-cc} -E -no-cpp-precomp"
4503 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4504 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4505 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4506 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4507 esac
4511 unported=yes
4513 esac
4515 ### If the code above didn't choose an operating system, just choose
4516 ### an operating system based on the configuration name. You really
4517 ### only want to use this when you have no idea what the right
4518 ### operating system is; if you know what operating systems a machine
4519 ### runs, it's cleaner to make it explicit in the case statement
4520 ### above.
4521 if test x"${opsys}" = x; then
4522 case "${canonical}" in
4523 *-gnu* ) opsys=gnu ;;
4525 unported=yes
4527 esac
4532 if test $unported = yes; then
4533 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4534 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4537 if test -n "$machine"; then
4538 machfile="m/${machine}.h"
4539 else
4540 machfile=
4542 opsysfile="s/${opsys}.h"
4545 #### Choose a compiler.
4546 test -n "$CC" && cc_specified=yes
4548 # Save the value of CFLAGS that the user specified.
4549 SPECIFIED_CFLAGS="$CFLAGS"
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556 if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if test "${ac_cv_prog_CC+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$CC"; then
4565 ac_cv_prog_CC="$CC" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4584 CC=$ac_cv_prog_CC
4585 if test -n "$CC"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4587 $as_echo "$CC" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4595 if test -z "$ac_cv_prog_CC"; then
4596 ac_ct_CC=$CC
4597 # Extract the first word of "gcc", so it can be a program name with args.
4598 set dummy gcc; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$ac_ct_CC"; then
4605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_ac_ct_CC="gcc"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4625 if test -n "$ac_ct_CC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4627 $as_echo "$ac_ct_CC" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4633 if test "x$ac_ct_CC" = x; then
4634 CC=""
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637 yes:)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4641 esac
4642 CC=$ac_ct_CC
4644 else
4645 CC="$ac_cv_prog_CC"
4648 if test -z "$CC"; then
4649 if test -n "$ac_tool_prefix"; then
4650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4651 set dummy ${ac_tool_prefix}cc; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_CC+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -n "$CC"; then
4658 ac_cv_prog_CC="$CC" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_CC="${ac_tool_prefix}cc"
4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4671 done
4672 done
4673 IFS=$as_save_IFS
4677 CC=$ac_cv_prog_CC
4678 if test -n "$CC"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4680 $as_echo "$CC" >&6; }
4681 else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4689 if test -z "$CC"; then
4690 # Extract the first word of "cc", so it can be a program name with args.
4691 set dummy cc; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_CC+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4699 else
4700 ac_prog_rejected=no
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4709 ac_prog_rejected=yes
4710 continue
4712 ac_cv_prog_CC="cc"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4720 if test $ac_prog_rejected = yes; then
4721 # We found a bogon in the path, so make sure we never use it.
4722 set dummy $ac_cv_prog_CC
4723 shift
4724 if test $# != 0; then
4725 # We chose a different compiler from the bogus one.
4726 # However, it has the same basename, so the bogon will be chosen
4727 # first if we set CC to just the basename; use the full file name.
4728 shift
4729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4734 CC=$ac_cv_prog_CC
4735 if test -n "$CC"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4737 $as_echo "$CC" >&6; }
4738 else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4745 if test -z "$CC"; then
4746 if test -n "$ac_tool_prefix"; then
4747 for ac_prog in cl.exe
4749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if test "${ac_cv_prog_CC+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4770 done
4771 done
4772 IFS=$as_save_IFS
4776 CC=$ac_cv_prog_CC
4777 if test -n "$CC"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779 $as_echo "$CC" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4786 test -n "$CC" && break
4787 done
4789 if test -z "$CC"; then
4790 ac_ct_CC=$CC
4791 for ac_prog in cl.exe
4793 # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$ac_ct_CC"; then
4801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810 ac_cv_prog_ac_ct_CC="$ac_prog"
4811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 break 2
4814 done
4815 done
4816 IFS=$as_save_IFS
4820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4821 if test -n "$ac_ct_CC"; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4823 $as_echo "$ac_ct_CC" >&6; }
4824 else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4830 test -n "$ac_ct_CC" && break
4831 done
4833 if test "x$ac_ct_CC" = x; then
4834 CC=""
4835 else
4836 case $cross_compiling:$ac_tool_warned in
4837 yes:)
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4840 ac_tool_warned=yes ;;
4841 esac
4842 CC=$ac_ct_CC
4849 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4851 as_fn_error "no acceptable C compiler found in \$PATH
4852 See \`config.log' for more details." "$LINENO" 5; }
4854 # Provide some information about the compiler.
4855 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4856 set X $ac_compile
4857 ac_compiler=$2
4858 for ac_option in --version -v -V -qversion; do
4859 { { ac_try="$ac_compiler $ac_option >&5"
4860 case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4865 $as_echo "$ac_try_echo"; } >&5
4866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4867 ac_status=$?
4868 if test -s conftest.err; then
4869 sed '10a\
4870 ... rest of stderr output deleted ...
4871 10q' conftest.err >conftest.er1
4872 cat conftest.er1 >&5
4874 rm -f conftest.er1 conftest.err
4875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4876 test $ac_status = 0; }
4877 done
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 main ()
4887 return 0;
4889 _ACEOF
4890 ac_clean_files_save=$ac_clean_files
4891 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4892 # Try to create an executable without -o first, disregard a.out.
4893 # It will help us diagnose broken compilers, and finding out an intuition
4894 # of exeext.
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4896 $as_echo_n "checking whether the C compiler works... " >&6; }
4897 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4899 # The possible output files:
4900 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4902 ac_rmfiles=
4903 for ac_file in $ac_files
4905 case $ac_file in
4906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4908 esac
4909 done
4910 rm -f $ac_rmfiles
4912 if { { ac_try="$ac_link_default"
4913 case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918 $as_echo "$ac_try_echo"; } >&5
4919 (eval "$ac_link_default") 2>&5
4920 ac_status=$?
4921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922 test $ac_status = 0; }; then :
4923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4924 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4925 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4926 # so that the user can short-circuit this test for compilers unknown to
4927 # Autoconf.
4928 for ac_file in $ac_files ''
4930 test -f "$ac_file" || continue
4931 case $ac_file in
4932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4934 [ab].out )
4935 # We found the default executable, but exeext='' is most
4936 # certainly right.
4937 break;;
4938 *.* )
4939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4940 then :; else
4941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4943 # We set ac_cv_exeext here because the later test for it is not
4944 # safe: cross compilers may not add the suffix if given an `-o'
4945 # argument, so we may need to know it at that point already.
4946 # Even if this section looks crufty: it has the advantage of
4947 # actually working.
4948 break;;
4950 break;;
4951 esac
4952 done
4953 test "$ac_cv_exeext" = no && ac_cv_exeext=
4955 else
4956 ac_file=''
4958 if test -z "$ac_file"; then :
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4961 $as_echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 { as_fn_set_status 77
4967 as_fn_error "C compiler cannot create executables
4968 See \`config.log' for more details." "$LINENO" 5; }; }
4969 else
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4971 $as_echo "yes" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4974 $as_echo_n "checking for C compiler default output file name... " >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4976 $as_echo "$ac_file" >&6; }
4977 ac_exeext=$ac_cv_exeext
4979 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4980 ac_clean_files=$ac_clean_files_save
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4982 $as_echo_n "checking for suffix of executables... " >&6; }
4983 if { { ac_try="$ac_link"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4989 $as_echo "$ac_try_echo"; } >&5
4990 (eval "$ac_link") 2>&5
4991 ac_status=$?
4992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }; then :
4994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4995 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4996 # work properly (i.e., refer to `conftest.exe'), while it won't with
4997 # `rm'.
4998 for ac_file in conftest.exe conftest conftest.*; do
4999 test -f "$ac_file" || continue
5000 case $ac_file in
5001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5003 break;;
5004 * ) break;;
5005 esac
5006 done
5007 else
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error "cannot compute suffix of executables: cannot compile and link
5011 See \`config.log' for more details." "$LINENO" 5; }
5013 rm -f conftest conftest$ac_cv_exeext
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5015 $as_echo "$ac_cv_exeext" >&6; }
5017 rm -f conftest.$ac_ext
5018 EXEEXT=$ac_cv_exeext
5019 ac_exeext=$EXEEXT
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 #include <stdio.h>
5024 main ()
5026 FILE *f = fopen ("conftest.out", "w");
5027 return ferror (f) || fclose (f) != 0;
5030 return 0;
5032 _ACEOF
5033 ac_clean_files="$ac_clean_files conftest.out"
5034 # Check that the compiler produces executables we can run. If not, either
5035 # the compiler is broken, or we cross compile.
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5037 $as_echo_n "checking whether we are cross compiling... " >&6; }
5038 if test "$cross_compiling" != yes; then
5039 { { ac_try="$ac_link"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5045 $as_echo "$ac_try_echo"; } >&5
5046 (eval "$ac_link") 2>&5
5047 ac_status=$?
5048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5049 test $ac_status = 0; }
5050 if { ac_try='./conftest$ac_cv_exeext'
5051 { { case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054 esac
5055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5056 $as_echo "$ac_try_echo"; } >&5
5057 (eval "$ac_try") 2>&5
5058 ac_status=$?
5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5060 test $ac_status = 0; }; }; then
5061 cross_compiling=no
5062 else
5063 if test "$cross_compiling" = maybe; then
5064 cross_compiling=yes
5065 else
5066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5068 as_fn_error "cannot run C compiled programs.
5069 If you meant to cross compile, use \`--host'.
5070 See \`config.log' for more details." "$LINENO" 5; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5075 $as_echo "$cross_compiling" >&6; }
5077 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5078 ac_clean_files=$ac_clean_files_save
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5080 $as_echo_n "checking for suffix of object files... " >&6; }
5081 if test "${ac_cv_objext+set}" = set; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5088 main ()
5092 return 0;
5094 _ACEOF
5095 rm -f conftest.o conftest.obj
5096 if { { ac_try="$ac_compile"
5097 case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5102 $as_echo "$ac_try_echo"; } >&5
5103 (eval "$ac_compile") 2>&5
5104 ac_status=$?
5105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5106 test $ac_status = 0; }; then :
5107 for ac_file in conftest.o conftest.obj conftest.*; do
5108 test -f "$ac_file" || continue;
5109 case $ac_file in
5110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5112 break;;
5113 esac
5114 done
5115 else
5116 $as_echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5121 as_fn_error "cannot compute suffix of object files: cannot compile
5122 See \`config.log' for more details." "$LINENO" 5; }
5124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5127 $as_echo "$ac_cv_objext" >&6; }
5128 OBJEXT=$ac_cv_objext
5129 ac_objext=$OBJEXT
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5131 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5132 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5139 main ()
5141 #ifndef __GNUC__
5142 choke me
5143 #endif
5146 return 0;
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"; then :
5150 ac_compiler_gnu=yes
5151 else
5152 ac_compiler_gnu=no
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5159 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5160 if test $ac_compiler_gnu = yes; then
5161 GCC=yes
5162 else
5163 GCC=
5165 ac_test_CFLAGS=${CFLAGS+set}
5166 ac_save_CFLAGS=$CFLAGS
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5168 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5169 if test "${ac_cv_prog_cc_g+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 ac_save_c_werror_flag=$ac_c_werror_flag
5173 ac_c_werror_flag=yes
5174 ac_cv_prog_cc_g=no
5175 CFLAGS="-g"
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5180 main ()
5184 return 0;
5186 _ACEOF
5187 if ac_fn_c_try_compile "$LINENO"; then :
5188 ac_cv_prog_cc_g=yes
5189 else
5190 CFLAGS=""
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5195 main ()
5199 return 0;
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5204 else
5205 ac_c_werror_flag=$ac_save_c_werror_flag
5206 CFLAGS="-g"
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5211 main ()
5215 return 0;
5217 _ACEOF
5218 if ac_fn_c_try_compile "$LINENO"; then :
5219 ac_cv_prog_cc_g=yes
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_c_werror_flag=$ac_save_c_werror_flag
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5229 $as_echo "$ac_cv_prog_cc_g" >&6; }
5230 if test "$ac_test_CFLAGS" = set; then
5231 CFLAGS=$ac_save_CFLAGS
5232 elif test $ac_cv_prog_cc_g = yes; then
5233 if test "$GCC" = yes; then
5234 CFLAGS="-g -O2"
5235 else
5236 CFLAGS="-g"
5238 else
5239 if test "$GCC" = yes; then
5240 CFLAGS="-O2"
5241 else
5242 CFLAGS=
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5246 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5247 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 ac_cv_prog_cc_c89=no
5251 ac_save_CC=$CC
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #include <stdarg.h>
5255 #include <stdio.h>
5256 #include <sys/types.h>
5257 #include <sys/stat.h>
5258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5259 struct buf { int x; };
5260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5261 static char *e (p, i)
5262 char **p;
5263 int i;
5265 return p[i];
5267 static char *f (char * (*g) (char **, int), char **p, ...)
5269 char *s;
5270 va_list v;
5271 va_start (v,p);
5272 s = g (p, va_arg (v,int));
5273 va_end (v);
5274 return s;
5277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5278 function prototypes and stuff, but not '\xHH' hex character constants.
5279 These don't provoke an error unfortunately, instead are silently treated
5280 as 'x'. The following induces an error, until -std is added to get
5281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5282 array size at least. It's necessary to write '\x00'==0 to get something
5283 that's true only with -std. */
5284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5286 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5287 inside strings and character constants. */
5288 #define FOO(x) 'x'
5289 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5291 int test (int i, double x);
5292 struct s1 {int (*f) (int a);};
5293 struct s2 {int (*f) (double a);};
5294 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5295 int argc;
5296 char **argv;
5298 main ()
5300 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5302 return 0;
5304 _ACEOF
5305 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5308 CC="$ac_save_CC $ac_arg"
5309 if ac_fn_c_try_compile "$LINENO"; then :
5310 ac_cv_prog_cc_c89=$ac_arg
5312 rm -f core conftest.err conftest.$ac_objext
5313 test "x$ac_cv_prog_cc_c89" != "xno" && break
5314 done
5315 rm -f conftest.$ac_ext
5316 CC=$ac_save_CC
5319 # AC_CACHE_VAL
5320 case "x$ac_cv_prog_cc_c89" in
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5323 $as_echo "none needed" >&6; } ;;
5324 xno)
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5326 $as_echo "unsupported" >&6; } ;;
5328 CC="$CC $ac_cv_prog_cc_c89"
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5330 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5331 esac
5332 if test "x$ac_cv_prog_cc_c89" != xno; then :
5336 ac_ext=c
5337 ac_cpp='$CPP $CPPFLAGS'
5338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341 DEPDIR="${am__leading_dot}deps"
5343 ac_config_commands="$ac_config_commands depfiles"
5346 am_make=${MAKE-make}
5347 cat > confinc << 'END'
5348 am__doit:
5349 @echo this is the am__doit target
5350 .PHONY: am__doit
5352 # If we don't find an include directive, just comment out the code.
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5354 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5355 am__include="#"
5356 am__quote=
5357 _am_result=none
5358 # First try GNU make style include.
5359 echo "include confinc" > confmf
5360 # Ignore all kinds of additional output from `make'.
5361 case `$am_make -s -f confmf 2> /dev/null` in #(
5362 *the\ am__doit\ target*)
5363 am__include=include
5364 am__quote=
5365 _am_result=GNU
5367 esac
5368 # Now try BSD make style include.
5369 if test "$am__include" = "#"; then
5370 echo '.include "confinc"' > confmf
5371 case `$am_make -s -f confmf 2> /dev/null` in #(
5372 *the\ am__doit\ target*)
5373 am__include=.include
5374 am__quote="\""
5375 _am_result=BSD
5377 esac
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5382 $as_echo "$_am_result" >&6; }
5383 rm -f confinc confmf
5385 # Check whether --enable-dependency-tracking was given.
5386 if test "${enable_dependency_tracking+set}" = set; then :
5387 enableval=$enable_dependency_tracking;
5390 if test "x$enable_dependency_tracking" != xno; then
5391 am_depcomp="$ac_aux_dir/depcomp"
5392 AMDEPBACKSLASH='\'
5394 if test "x$enable_dependency_tracking" != xno; then
5395 AMDEP_TRUE=
5396 AMDEP_FALSE='#'
5397 else
5398 AMDEP_TRUE='#'
5399 AMDEP_FALSE=
5404 depcc="$CC" am_compiler_list=
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5407 $as_echo_n "checking dependency style of $depcc... " >&6; }
5408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5412 # We make a subdir and do the tests there. Otherwise we can end up
5413 # making bogus files that we don't know about and never remove. For
5414 # instance it was reported that on HP-UX the gcc test will end up
5415 # making a dummy file named `D' -- because `-MD' means `put the output
5416 # in D'.
5417 mkdir conftest.dir
5418 # Copy depcomp to subdir because otherwise we won't find it if we're
5419 # using a relative directory.
5420 cp "$am_depcomp" conftest.dir
5421 cd conftest.dir
5422 # We will build objects and dependencies in a subdirectory because
5423 # it helps to detect inapplicable dependency modes. For instance
5424 # both Tru64's cc and ICC support -MD to output dependencies as a
5425 # side effect of compilation, but ICC will put the dependencies in
5426 # the current directory while Tru64 will put them in the object
5427 # directory.
5428 mkdir sub
5430 am_cv_CC_dependencies_compiler_type=none
5431 if test "$am_compiler_list" = ""; then
5432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5434 am__universal=false
5435 case " $depcc " in #(
5436 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5437 esac
5439 for depmode in $am_compiler_list; do
5440 # Setup a source with many dependencies, because some compilers
5441 # like to wrap large dependency lists on column 80 (with \), and
5442 # we should not choose a depcomp mode which is confused by this.
5444 # We need to recreate these files for each test, as the compiler may
5445 # overwrite some of them when testing with obscure command lines.
5446 # This happens at least with the AIX C compiler.
5447 : > sub/conftest.c
5448 for i in 1 2 3 4 5 6; do
5449 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5450 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5451 # Solaris 8's {/usr,}/bin/sh.
5452 touch sub/conftst$i.h
5453 done
5454 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5457 # mode. It turns out that the SunPro C++ compiler does not properly
5458 # handle `-M -o', and we need to detect this. Also, some Intel
5459 # versions had trouble with output in subdirs
5460 am__obj=sub/conftest.${OBJEXT-o}
5461 am__minus_obj="-o $am__obj"
5462 case $depmode in
5463 gcc)
5464 # This depmode causes a compiler race in universal mode.
5465 test "$am__universal" = false || continue
5467 nosideeffect)
5468 # after this tag, mechanisms are not by side-effect, so they'll
5469 # only be used when explicitly requested
5470 if test "x$enable_dependency_tracking" = xyes; then
5471 continue
5472 else
5473 break
5476 msvisualcpp | msvcmsys)
5477 # This compiler won't grok `-c -o', but also, the minuso test has
5478 # not run yet. These depmodes are late enough in the game, and
5479 # so weak that their functioning should not be impacted.
5480 am__obj=conftest.${OBJEXT-o}
5481 am__minus_obj=
5483 none) break ;;
5484 esac
5485 if depmode=$depmode \
5486 source=sub/conftest.c object=$am__obj \
5487 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5488 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5489 >/dev/null 2>conftest.err &&
5490 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5492 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5494 # icc doesn't choke on unknown options, it will just issue warnings
5495 # or remarks (even with -Werror). So we grep stderr for any message
5496 # that says an option was ignored or not supported.
5497 # When given -MP, icc 7.0 and 7.1 complain thusly:
5498 # icc: Command line warning: ignoring option '-M'; no argument required
5499 # The diagnosis changed in icc 8.0:
5500 # icc: Command line remark: option '-MP' not supported
5501 if (grep 'ignoring option' conftest.err ||
5502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5503 am_cv_CC_dependencies_compiler_type=$depmode
5504 break
5507 done
5509 cd ..
5510 rm -rf conftest.dir
5511 else
5512 am_cv_CC_dependencies_compiler_type=none
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5517 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5518 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5521 test "x$enable_dependency_tracking" != xno \
5522 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5523 am__fastdepCC_TRUE=
5524 am__fastdepCC_FALSE='#'
5525 else
5526 am__fastdepCC_TRUE='#'
5527 am__fastdepCC_FALSE=
5531 if test "x$CC" != xcc; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5533 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5534 else
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5536 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5538 set dummy $CC; ac_cc=`$as_echo "$2" |
5539 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5540 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5547 main ()
5551 return 0;
5553 _ACEOF
5554 # Make sure it works both with $CC and with simple cc.
5555 # We do the test twice because some compilers refuse to overwrite an
5556 # existing .o file with -o, though they will create one.
5557 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5558 rm -f conftest2.*
5559 if { { case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_try") 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; } &&
5569 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5574 $as_echo "$ac_try_echo"; } >&5
5575 (eval "$ac_try") 2>&5
5576 ac_status=$?
5577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578 test $ac_status = 0; };
5579 then
5580 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5581 if test "x$CC" != xcc; then
5582 # Test first that cc exists at all.
5583 if { ac_try='cc -c conftest.$ac_ext >&5'
5584 { { case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5589 $as_echo "$ac_try_echo"; } >&5
5590 (eval "$ac_try") 2>&5
5591 ac_status=$?
5592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5593 test $ac_status = 0; }; }; then
5594 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5595 rm -f conftest2.*
5596 if { { case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599 esac
5600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5601 $as_echo "$ac_try_echo"; } >&5
5602 (eval "$ac_try") 2>&5
5603 ac_status=$?
5604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5605 test $ac_status = 0; } &&
5606 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609 esac
5610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5611 $as_echo "$ac_try_echo"; } >&5
5612 (eval "$ac_try") 2>&5
5613 ac_status=$?
5614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5615 test $ac_status = 0; };
5616 then
5617 # cc works too.
5619 else
5620 # cc exists but doesn't like -o.
5621 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5625 else
5626 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5628 rm -f core conftest*
5631 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5633 $as_echo "yes" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5638 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5642 # FIXME: we rely on the cache variable name because
5643 # there is no other way.
5644 set dummy $CC
5645 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5646 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5647 if test "$am_t" != yes; then
5648 # Losing compiler, so override with the script.
5649 # FIXME: It is wrong to rewrite CC.
5650 # But if we don't then we get into trouble of one sort or another.
5651 # A longer-term fix would be to have automake use am__CC in this case,
5652 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5653 CC="$am_aux_dir/compile $CC"
5658 # Initialize gnulib right after verifying that the C compiler works.
5659 if test -n "$ac_tool_prefix"; then
5660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5661 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$RANLIB"; then
5668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5681 done
5682 done
5683 IFS=$as_save_IFS
5687 RANLIB=$ac_cv_prog_RANLIB
5688 if test -n "$RANLIB"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5690 $as_echo "$RANLIB" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5698 if test -z "$ac_cv_prog_RANLIB"; then
5699 ac_ct_RANLIB=$RANLIB
5700 # Extract the first word of "ranlib", so it can be a program name with args.
5701 set dummy ranlib; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$ac_ct_RANLIB"; then
5708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_ac_ct_RANLIB="ranlib"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5721 done
5722 done
5723 IFS=$as_save_IFS
5727 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5728 if test -n "$ac_ct_RANLIB"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5730 $as_echo "$ac_ct_RANLIB" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5736 if test "x$ac_ct_RANLIB" = x; then
5737 RANLIB=":"
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740 yes:)
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743 ac_tool_warned=yes ;;
5744 esac
5745 RANLIB=$ac_ct_RANLIB
5747 else
5748 RANLIB="$ac_cv_prog_RANLIB"
5752 ac_ext=c
5753 ac_cpp='$CPP $CPPFLAGS'
5754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5758 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5759 # On Suns, sometimes $CPP names a directory.
5760 if test -n "$CPP" && test -d "$CPP"; then
5761 CPP=
5763 if test -z "$CPP"; then
5764 if test "${ac_cv_prog_CPP+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 # Double quotes because CPP needs to be expanded
5768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5770 ac_preproc_ok=false
5771 for ac_c_preproc_warn_flag in '' yes
5773 # Use a header file that comes with gcc, so configuring glibc
5774 # with a fresh cross-compiler works.
5775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5776 # <limits.h> exists even on freestanding compilers.
5777 # On the NeXT, cc -E runs the code through the compiler's parser,
5778 # not just through cpp. "Syntax error" is here to catch this case.
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781 #ifdef __STDC__
5782 # include <limits.h>
5783 #else
5784 # include <assert.h>
5785 #endif
5786 Syntax error
5787 _ACEOF
5788 if ac_fn_c_try_cpp "$LINENO"; then :
5790 else
5791 # Broken: fails on valid input.
5792 continue
5794 rm -f conftest.err conftest.$ac_ext
5796 # OK, works on sane cases. Now check whether nonexistent headers
5797 # can be detected and how.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 #include <ac_nonexistent.h>
5801 _ACEOF
5802 if ac_fn_c_try_cpp "$LINENO"; then :
5803 # Broken: success on invalid input.
5804 continue
5805 else
5806 # Passes both tests.
5807 ac_preproc_ok=:
5808 break
5810 rm -f conftest.err conftest.$ac_ext
5812 done
5813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5814 rm -f conftest.err conftest.$ac_ext
5815 if $ac_preproc_ok; then :
5816 break
5819 done
5820 ac_cv_prog_CPP=$CPP
5823 CPP=$ac_cv_prog_CPP
5824 else
5825 ac_cv_prog_CPP=$CPP
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5828 $as_echo "$CPP" >&6; }
5829 ac_preproc_ok=false
5830 for ac_c_preproc_warn_flag in '' yes
5832 # Use a header file that comes with gcc, so configuring glibc
5833 # with a fresh cross-compiler works.
5834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5835 # <limits.h> exists even on freestanding compilers.
5836 # On the NeXT, cc -E runs the code through the compiler's parser,
5837 # not just through cpp. "Syntax error" is here to catch this case.
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #ifdef __STDC__
5841 # include <limits.h>
5842 #else
5843 # include <assert.h>
5844 #endif
5845 Syntax error
5846 _ACEOF
5847 if ac_fn_c_try_cpp "$LINENO"; then :
5849 else
5850 # Broken: fails on valid input.
5851 continue
5853 rm -f conftest.err conftest.$ac_ext
5855 # OK, works on sane cases. Now check whether nonexistent headers
5856 # can be detected and how.
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #include <ac_nonexistent.h>
5860 _ACEOF
5861 if ac_fn_c_try_cpp "$LINENO"; then :
5862 # Broken: success on invalid input.
5863 continue
5864 else
5865 # Passes both tests.
5866 ac_preproc_ok=:
5867 break
5869 rm -f conftest.err conftest.$ac_ext
5871 done
5872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5873 rm -f conftest.err conftest.$ac_ext
5874 if $ac_preproc_ok; then :
5876 else
5877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5880 See \`config.log' for more details." "$LINENO" 5; }
5883 ac_ext=c
5884 ac_cpp='$CPP $CPPFLAGS'
5885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5891 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5892 if test "${ac_cv_path_GREP+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -z "$GREP"; then
5896 ac_path_GREP_found=false
5897 # Loop through the user's path and test for each of PROGNAME-LIST
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_prog in grep ggrep; do
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5906 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5907 # Check for GNU ac_path_GREP and select it if it is found.
5908 # Check for GNU $ac_path_GREP
5909 case `"$ac_path_GREP" --version 2>&1` in
5910 *GNU*)
5911 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5913 ac_count=0
5914 $as_echo_n 0123456789 >"conftest.in"
5915 while :
5917 cat "conftest.in" "conftest.in" >"conftest.tmp"
5918 mv "conftest.tmp" "conftest.in"
5919 cp "conftest.in" "conftest.nl"
5920 $as_echo 'GREP' >> "conftest.nl"
5921 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5923 as_fn_arith $ac_count + 1 && ac_count=$as_val
5924 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5925 # Best one so far, save it but keep looking for a better one
5926 ac_cv_path_GREP="$ac_path_GREP"
5927 ac_path_GREP_max=$ac_count
5929 # 10*(2^10) chars as input seems more than enough
5930 test $ac_count -gt 10 && break
5931 done
5932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5933 esac
5935 $ac_path_GREP_found && break 3
5936 done
5937 done
5938 done
5939 IFS=$as_save_IFS
5940 if test -z "$ac_cv_path_GREP"; then
5941 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5943 else
5944 ac_cv_path_GREP=$GREP
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5949 $as_echo "$ac_cv_path_GREP" >&6; }
5950 GREP="$ac_cv_path_GREP"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5954 $as_echo_n "checking for egrep... " >&6; }
5955 if test "${ac_cv_path_EGREP+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5959 then ac_cv_path_EGREP="$GREP -E"
5960 else
5961 if test -z "$EGREP"; then
5962 ac_path_EGREP_found=false
5963 # Loop through the user's path and test for each of PROGNAME-LIST
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_prog in egrep; do
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5972 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5973 # Check for GNU ac_path_EGREP and select it if it is found.
5974 # Check for GNU $ac_path_EGREP
5975 case `"$ac_path_EGREP" --version 2>&1` in
5976 *GNU*)
5977 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5979 ac_count=0
5980 $as_echo_n 0123456789 >"conftest.in"
5981 while :
5983 cat "conftest.in" "conftest.in" >"conftest.tmp"
5984 mv "conftest.tmp" "conftest.in"
5985 cp "conftest.in" "conftest.nl"
5986 $as_echo 'EGREP' >> "conftest.nl"
5987 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5989 as_fn_arith $ac_count + 1 && ac_count=$as_val
5990 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5991 # Best one so far, save it but keep looking for a better one
5992 ac_cv_path_EGREP="$ac_path_EGREP"
5993 ac_path_EGREP_max=$ac_count
5995 # 10*(2^10) chars as input seems more than enough
5996 test $ac_count -gt 10 && break
5997 done
5998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5999 esac
6001 $ac_path_EGREP_found && break 3
6002 done
6003 done
6004 done
6005 IFS=$as_save_IFS
6006 if test -z "$ac_cv_path_EGREP"; then
6007 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6009 else
6010 ac_cv_path_EGREP=$EGREP
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6016 $as_echo "$ac_cv_path_EGREP" >&6; }
6017 EGREP="$ac_cv_path_EGREP"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6021 $as_echo_n "checking for ANSI C header files... " >&6; }
6022 if test "${ac_cv_header_stdc+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 #include <stdlib.h>
6028 #include <stdarg.h>
6029 #include <string.h>
6030 #include <float.h>
6033 main ()
6037 return 0;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6041 ac_cv_header_stdc=yes
6042 else
6043 ac_cv_header_stdc=no
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 if test $ac_cv_header_stdc = yes; then
6048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <string.h>
6053 _ACEOF
6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 $EGREP "memchr" >/dev/null 2>&1; then :
6057 else
6058 ac_cv_header_stdc=no
6060 rm -f conftest*
6064 if test $ac_cv_header_stdc = yes; then
6065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 #include <stdlib.h>
6070 _ACEOF
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 $EGREP "free" >/dev/null 2>&1; then :
6074 else
6075 ac_cv_header_stdc=no
6077 rm -f conftest*
6081 if test $ac_cv_header_stdc = yes; then
6082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6083 if test "$cross_compiling" = yes; then :
6085 else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #include <ctype.h>
6089 #include <stdlib.h>
6090 #if ((' ' & 0x0FF) == 0x020)
6091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6093 #else
6094 # define ISLOWER(c) \
6095 (('a' <= (c) && (c) <= 'i') \
6096 || ('j' <= (c) && (c) <= 'r') \
6097 || ('s' <= (c) && (c) <= 'z'))
6098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6099 #endif
6101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6103 main ()
6105 int i;
6106 for (i = 0; i < 256; i++)
6107 if (XOR (islower (i), ISLOWER (i))
6108 || toupper (i) != TOUPPER (i))
6109 return 2;
6110 return 0;
6112 _ACEOF
6113 if ac_fn_c_try_run "$LINENO"; then :
6115 else
6116 ac_cv_header_stdc=no
6118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6119 conftest.$ac_objext conftest.beam conftest.$ac_ext
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6125 $as_echo "$ac_cv_header_stdc" >&6; }
6126 if test $ac_cv_header_stdc = yes; then
6128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6134 inttypes.h stdint.h unistd.h
6135 do :
6136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6139 eval as_val=\$$as_ac_Header
6140 if test "x$as_val" = x""yes; then :
6141 cat >>confdefs.h <<_ACEOF
6142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6143 _ACEOF
6147 done
6153 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6154 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6155 MINIX=yes
6156 else
6157 MINIX=
6161 if test "$MINIX" = yes; then
6163 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6166 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6169 $as_echo "#define _MINIX 1" >>confdefs.h
6173 case "$host_os" in
6174 hpux*)
6176 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6179 esac
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6183 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6184 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6190 # define __EXTENSIONS__ 1
6191 $ac_includes_default
6193 main ()
6197 return 0;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"; then :
6201 ac_cv_safe_to_define___extensions__=yes
6202 else
6203 ac_cv_safe_to_define___extensions__=no
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6208 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6209 test $ac_cv_safe_to_define___extensions__ = yes &&
6210 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6212 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6214 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6216 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6218 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6227 case $ac_cv_prog_cc_stdc in #(
6228 no) :
6229 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6230 *) :
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6232 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6233 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 ac_cv_prog_cc_c99=no
6237 ac_save_CC=$CC
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <stdarg.h>
6241 #include <stdbool.h>
6242 #include <stdlib.h>
6243 #include <wchar.h>
6244 #include <stdio.h>
6246 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6247 #define debug(...) fprintf (stderr, __VA_ARGS__)
6248 #define showlist(...) puts (#__VA_ARGS__)
6249 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6250 static void
6251 test_varargs_macros (void)
6253 int x = 1234;
6254 int y = 5678;
6255 debug ("Flag");
6256 debug ("X = %d\n", x);
6257 showlist (The first, second, and third items.);
6258 report (x>y, "x is %d but y is %d", x, y);
6261 // Check long long types.
6262 #define BIG64 18446744073709551615ull
6263 #define BIG32 4294967295ul
6264 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6265 #if !BIG_OK
6266 your preprocessor is broken;
6267 #endif
6268 #if BIG_OK
6269 #else
6270 your preprocessor is broken;
6271 #endif
6272 static long long int bignum = -9223372036854775807LL;
6273 static unsigned long long int ubignum = BIG64;
6275 struct incomplete_array
6277 int datasize;
6278 double data[];
6281 struct named_init {
6282 int number;
6283 const wchar_t *name;
6284 double average;
6287 typedef const char *ccp;
6289 static inline int
6290 test_restrict (ccp restrict text)
6292 // See if C++-style comments work.
6293 // Iterate through items via the restricted pointer.
6294 // Also check for declarations in for loops.
6295 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6296 continue;
6297 return 0;
6300 // Check varargs and va_copy.
6301 static void
6302 test_varargs (const char *format, ...)
6304 va_list args;
6305 va_start (args, format);
6306 va_list args_copy;
6307 va_copy (args_copy, args);
6309 const char *str;
6310 int number;
6311 float fnumber;
6313 while (*format)
6315 switch (*format++)
6317 case 's': // string
6318 str = va_arg (args_copy, const char *);
6319 break;
6320 case 'd': // int
6321 number = va_arg (args_copy, int);
6322 break;
6323 case 'f': // float
6324 fnumber = va_arg (args_copy, double);
6325 break;
6326 default:
6327 break;
6330 va_end (args_copy);
6331 va_end (args);
6335 main ()
6338 // Check bool.
6339 _Bool success = false;
6341 // Check restrict.
6342 if (test_restrict ("String literal") == 0)
6343 success = true;
6344 char *restrict newvar = "Another string";
6346 // Check varargs.
6347 test_varargs ("s, d' f .", "string", 65, 34.234);
6348 test_varargs_macros ();
6350 // Check flexible array members.
6351 struct incomplete_array *ia =
6352 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6353 ia->datasize = 10;
6354 for (int i = 0; i < ia->datasize; ++i)
6355 ia->data[i] = i * 1.234;
6357 // Check named initializers.
6358 struct named_init ni = {
6359 .number = 34,
6360 .name = L"Test wide string",
6361 .average = 543.34343,
6364 ni.number = 58;
6366 int dynamic_array[ni.number];
6367 dynamic_array[ni.number - 1] = 543;
6369 // work around unused variable warnings
6370 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6371 || dynamic_array[ni.number - 1] != 543);
6374 return 0;
6376 _ACEOF
6377 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6379 CC="$ac_save_CC $ac_arg"
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 ac_cv_prog_cc_c99=$ac_arg
6383 rm -f core conftest.err conftest.$ac_objext
6384 test "x$ac_cv_prog_cc_c99" != "xno" && break
6385 done
6386 rm -f conftest.$ac_ext
6387 CC=$ac_save_CC
6390 # AC_CACHE_VAL
6391 case "x$ac_cv_prog_cc_c99" in
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6394 $as_echo "none needed" >&6; } ;;
6395 xno)
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6397 $as_echo "unsupported" >&6; } ;;
6399 CC="$CC $ac_cv_prog_cc_c99"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6401 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6402 esac
6403 if test "x$ac_cv_prog_cc_c99" != xno; then :
6404 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6405 else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6408 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 ac_cv_prog_cc_c89=no
6412 ac_save_CC=$CC
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415 #include <stdarg.h>
6416 #include <stdio.h>
6417 #include <sys/types.h>
6418 #include <sys/stat.h>
6419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6420 struct buf { int x; };
6421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6422 static char *e (p, i)
6423 char **p;
6424 int i;
6426 return p[i];
6428 static char *f (char * (*g) (char **, int), char **p, ...)
6430 char *s;
6431 va_list v;
6432 va_start (v,p);
6433 s = g (p, va_arg (v,int));
6434 va_end (v);
6435 return s;
6438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6439 function prototypes and stuff, but not '\xHH' hex character constants.
6440 These don't provoke an error unfortunately, instead are silently treated
6441 as 'x'. The following induces an error, until -std is added to get
6442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6443 array size at least. It's necessary to write '\x00'==0 to get something
6444 that's true only with -std. */
6445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6448 inside strings and character constants. */
6449 #define FOO(x) 'x'
6450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6452 int test (int i, double x);
6453 struct s1 {int (*f) (int a);};
6454 struct s2 {int (*f) (double a);};
6455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6456 int argc;
6457 char **argv;
6459 main ()
6461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6463 return 0;
6465 _ACEOF
6466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6469 CC="$ac_save_CC $ac_arg"
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 ac_cv_prog_cc_c89=$ac_arg
6473 rm -f core conftest.err conftest.$ac_objext
6474 test "x$ac_cv_prog_cc_c89" != "xno" && break
6475 done
6476 rm -f conftest.$ac_ext
6477 CC=$ac_save_CC
6480 # AC_CACHE_VAL
6481 case "x$ac_cv_prog_cc_c89" in
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6484 $as_echo "none needed" >&6; } ;;
6485 xno)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6487 $as_echo "unsupported" >&6; } ;;
6489 CC="$CC $ac_cv_prog_cc_c89"
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6491 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6492 esac
6493 if test "x$ac_cv_prog_cc_c89" != xno; then :
6494 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6495 else
6496 ac_cv_prog_cc_stdc=no
6501 esac
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6503 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6504 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6508 case $ac_cv_prog_cc_stdc in #(
6509 no) :
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6511 $as_echo "unsupported" >&6; } ;; #(
6512 '') :
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6514 $as_echo "none needed" >&6; } ;; #(
6515 *) :
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6517 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6518 esac
6522 # Code from module allocator:
6523 # Code from module arg-nonnull:
6524 # Code from module c++defs:
6525 # Code from module careadlinkat:
6526 # Code from module crypto/md5:
6527 # Code from module crypto/sha1:
6528 # Code from module dosname:
6529 # Code from module dtoastr:
6530 # Code from module extensions:
6532 # Code from module filemode:
6533 # Code from module getloadavg:
6534 # Code from module getopt-gnu:
6535 # Code from module getopt-posix:
6536 # Code from module gettext-h:
6537 # Code from module ignore-value:
6538 # Code from module include_next:
6539 # Code from module intprops:
6540 # Code from module inttypes-incomplete:
6541 # Code from module lstat:
6542 # Code from module mktime:
6543 # Code from module multiarch:
6544 # Code from module readlink:
6545 # Code from module socklen:
6546 # Code from module ssize_t:
6547 # Code from module stat:
6548 # Code from module stdarg:
6550 # Code from module stdbool:
6551 # Code from module stddef:
6552 # Code from module stdint:
6553 # Code from module stdio:
6554 # Code from module stdlib:
6555 # Code from module strftime:
6556 # Code from module strtoull:
6557 # Code from module strtoumax:
6558 # Code from module symlink:
6559 # Code from module sys_stat:
6560 # Code from module time:
6561 # Code from module time_r:
6562 # Code from module unistd:
6563 # Code from module verify:
6564 # Code from module warn-on-use:
6567 # On Suns, sometimes $CPP names a directory.
6568 if test -n "$CPP" && test -d "$CPP"; then
6569 CPP=
6572 ## If not using gcc, and on Solaris, and no CPP specified, see if
6573 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6574 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6575 test x"$CPP" = x; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6577 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6578 if test "${emacs_cv_sunpro_c+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6585 main ()
6587 #ifndef __SUNPRO_C
6588 fail;
6589 #endif
6592 return 0;
6594 _ACEOF
6595 if ac_fn_c_try_link "$LINENO"; then :
6596 emacs_cv_sunpro_c=yes
6597 else
6598 emacs_cv_sunpro_c=no
6600 rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6605 $as_echo "$emacs_cv_sunpro_c" >&6; }
6607 if test x"$emacs_cv_sunpro_c" = xyes; then
6608 NON_GNU_CPP="$CC -E -Xs"
6612 #### Some systems specify a CPP to use unless we are using GCC.
6613 #### Now that we know whether we are using GCC, we can decide whether
6614 #### to use that one.
6615 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6616 then
6617 CPP="$NON_GNU_CPP"
6620 #### Some systems specify a CC to use unless we are using GCC.
6621 #### Now that we know whether we are using GCC, we can decide whether
6622 #### to use that one.
6623 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6624 test x$cc_specified != xyes
6625 then
6626 CC="$NON_GNU_CC"
6629 if test x$GCC = xyes; then
6630 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6631 else
6632 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6635 ### Use -Wdeclaration-after-statement if the compiler supports it
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6637 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6638 SAVE_CFLAGS="$CFLAGS"
6639 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6644 main ()
6648 return 0;
6650 _ACEOF
6651 if ac_fn_c_try_compile "$LINENO"; then :
6652 has_option=yes
6653 else
6654 has_option=no
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 if test $has_option = yes; then
6658 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6661 $as_echo "$has_option" >&6; }
6662 CFLAGS="$SAVE_CFLAGS"
6663 unset has_option
6664 unset SAVE_CFLAGS
6666 ### Use -Wold-style-definition if the compiler supports it
6667 # This can be removed when conversion to standard C is finished.
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6669 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6670 SAVE_CFLAGS="$CFLAGS"
6671 CFLAGS="$CFLAGS -Wold-style-definition"
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6676 main ()
6680 return 0;
6682 _ACEOF
6683 if ac_fn_c_try_compile "$LINENO"; then :
6684 has_option=yes
6685 else
6686 has_option=no
6688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 if test $has_option = yes; then
6690 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6693 $as_echo "$has_option" >&6; }
6694 CFLAGS="$SAVE_CFLAGS"
6695 unset has_option
6696 unset SAVE_CFLAGS
6698 ### Use -Wimplicit-function-declaration if the compiler supports it
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6700 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6701 SAVE_CFLAGS="$CFLAGS"
6702 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6707 main ()
6711 return 0;
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 has_option=yes
6716 else
6717 has_option=no
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 if test $has_option = yes; then
6721 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6724 $as_echo "$has_option" >&6; }
6725 CFLAGS="$SAVE_CFLAGS"
6726 unset has_option
6727 unset SAVE_CFLAGS
6732 #### Some other nice autoconf tests.
6734 ac_ext=c
6735 ac_cpp='$CPP $CPPFLAGS'
6736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6740 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6741 # On Suns, sometimes $CPP names a directory.
6742 if test -n "$CPP" && test -d "$CPP"; then
6743 CPP=
6745 if test -z "$CPP"; then
6746 if test "${ac_cv_prog_CPP+set}" = set; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 # Double quotes because CPP needs to be expanded
6750 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6752 ac_preproc_ok=false
6753 for ac_c_preproc_warn_flag in '' yes
6755 # Use a header file that comes with gcc, so configuring glibc
6756 # with a fresh cross-compiler works.
6757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6758 # <limits.h> exists even on freestanding compilers.
6759 # On the NeXT, cc -E runs the code through the compiler's parser,
6760 # not just through cpp. "Syntax error" is here to catch this case.
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6763 #ifdef __STDC__
6764 # include <limits.h>
6765 #else
6766 # include <assert.h>
6767 #endif
6768 Syntax error
6769 _ACEOF
6770 if ac_fn_c_try_cpp "$LINENO"; then :
6772 else
6773 # Broken: fails on valid input.
6774 continue
6776 rm -f conftest.err conftest.$ac_ext
6778 # OK, works on sane cases. Now check whether nonexistent headers
6779 # can be detected and how.
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <ac_nonexistent.h>
6783 _ACEOF
6784 if ac_fn_c_try_cpp "$LINENO"; then :
6785 # Broken: success on invalid input.
6786 continue
6787 else
6788 # Passes both tests.
6789 ac_preproc_ok=:
6790 break
6792 rm -f conftest.err conftest.$ac_ext
6794 done
6795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6796 rm -f conftest.err conftest.$ac_ext
6797 if $ac_preproc_ok; then :
6798 break
6801 done
6802 ac_cv_prog_CPP=$CPP
6805 CPP=$ac_cv_prog_CPP
6806 else
6807 ac_cv_prog_CPP=$CPP
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6810 $as_echo "$CPP" >&6; }
6811 ac_preproc_ok=false
6812 for ac_c_preproc_warn_flag in '' yes
6814 # Use a header file that comes with gcc, so configuring glibc
6815 # with a fresh cross-compiler works.
6816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6817 # <limits.h> exists even on freestanding compilers.
6818 # On the NeXT, cc -E runs the code through the compiler's parser,
6819 # not just through cpp. "Syntax error" is here to catch this case.
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 #ifdef __STDC__
6823 # include <limits.h>
6824 #else
6825 # include <assert.h>
6826 #endif
6827 Syntax error
6828 _ACEOF
6829 if ac_fn_c_try_cpp "$LINENO"; then :
6831 else
6832 # Broken: fails on valid input.
6833 continue
6835 rm -f conftest.err conftest.$ac_ext
6837 # OK, works on sane cases. Now check whether nonexistent headers
6838 # can be detected and how.
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 #include <ac_nonexistent.h>
6842 _ACEOF
6843 if ac_fn_c_try_cpp "$LINENO"; then :
6844 # Broken: success on invalid input.
6845 continue
6846 else
6847 # Passes both tests.
6848 ac_preproc_ok=:
6849 break
6851 rm -f conftest.err conftest.$ac_ext
6853 done
6854 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6855 rm -f conftest.err conftest.$ac_ext
6856 if $ac_preproc_ok; then :
6858 else
6859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6861 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6862 See \`config.log' for more details." "$LINENO" 5; }
6865 ac_ext=c
6866 ac_cpp='$CPP $CPPFLAGS'
6867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6872 if test "x$RANLIB" = x; then
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$RANLIB"; then
6882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6901 RANLIB=$ac_cv_prog_RANLIB
6902 if test -n "$RANLIB"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6904 $as_echo "$RANLIB" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6912 if test -z "$ac_cv_prog_RANLIB"; then
6913 ac_ct_RANLIB=$RANLIB
6914 # Extract the first word of "ranlib", so it can be a program name with args.
6915 set dummy ranlib; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 if test -n "$ac_ct_RANLIB"; then
6922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6923 else
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 for as_dir in $PATH
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_prog_ac_ct_RANLIB="ranlib"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6935 done
6936 done
6937 IFS=$as_save_IFS
6941 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6942 if test -n "$ac_ct_RANLIB"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6944 $as_echo "$ac_ct_RANLIB" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6950 if test "x$ac_ct_RANLIB" = x; then
6951 RANLIB=":"
6952 else
6953 case $cross_compiling:$ac_tool_warned in
6954 yes:)
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959 RANLIB=$ac_ct_RANLIB
6961 else
6962 RANLIB="$ac_cv_prog_RANLIB"
6967 ## Although we're running on an amd64 kernel, we're actually compiling for
6968 ## the x86 architecture. The user should probably have provided an
6969 ## explicit --build to `configure', but if everything else than the kernel
6970 ## is running in i386 mode, we can help them out.
6971 if test "$machine" = "amdx86-64"; then
6972 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6973 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6977 if test "$ac_cv_have_decl_i386" = "yes"; then
6978 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6979 machine=intel386
6980 machfile="m/${machine}.h"
6984 # Extract the first word of "install-info", so it can be a program name with args.
6985 set dummy install-info; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 case $INSTALL_INFO in
6992 [\\/]* | ?:[\\/]*)
6993 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7012 esac
7014 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7015 if test -n "$INSTALL_INFO"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7017 $as_echo "$INSTALL_INFO" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7024 # Extract the first word of "install-info", so it can be a program name with args.
7025 set dummy install-info; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 case $INSTALL_INFO in
7032 [\\/]* | ?:[\\/]*)
7033 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in /usr/sbin
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7047 done
7048 done
7049 IFS=$as_save_IFS
7052 esac
7054 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7055 if test -n "$INSTALL_INFO"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7057 $as_echo "$INSTALL_INFO" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7064 # Extract the first word of "install-info", so it can be a program name with args.
7065 set dummy install-info; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 case $INSTALL_INFO in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in /sbin
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7089 IFS=$as_save_IFS
7091 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
7093 esac
7095 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
7096 if test -n "$INSTALL_INFO"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
7098 $as_echo "$INSTALL_INFO" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7105 # Extract the first word of "gzip", so it can be a program name with args.
7106 set dummy gzip; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
7110 $as_echo_n "(cached) " >&6
7111 else
7112 case $GZIP_PROG in
7113 [\\/]* | ?:[\\/]*)
7114 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7128 done
7129 done
7130 IFS=$as_save_IFS
7133 esac
7135 GZIP_PROG=$ac_cv_path_GZIP_PROG
7136 if test -n "$GZIP_PROG"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
7138 $as_echo "$GZIP_PROG" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7147 ## Need makeinfo >= 4.6 (?) to build the manuals.
7148 # Extract the first word of "makeinfo", so it can be a program name with args.
7149 set dummy makeinfo; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 case $MAKEINFO in
7156 [\\/]* | ?:[\\/]*)
7157 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 for as_dir in $PATH
7163 IFS=$as_save_IFS
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7167 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 break 2
7171 done
7172 done
7173 IFS=$as_save_IFS
7175 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
7177 esac
7179 MAKEINFO=$ac_cv_path_MAKEINFO
7180 if test -n "$MAKEINFO"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7182 $as_echo "$MAKEINFO" >&6; }
7183 else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7189 if test "$MAKEINFO" != "no" && \
7190 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
7191 MAKEINFO=no
7194 ## Makeinfo is unusual. For a released Emacs, the manuals are
7195 ## pre-built, and not deleted by the normal clean rules. makeinfo is
7196 ## therefore in the category of "special tools" not normally required, which
7197 ## configure does not have to check for (eg autoconf itself).
7198 ## In a Bazaar checkout on the other hand, the manuals are not included.
7199 ## So makeinfo is a requirement to build from Bazaar, and configure
7200 ## should test for it as it does for any other build requirement.
7201 ## We use the presence of $srcdir/info/emacs to distinguish a release,
7202 ## with pre-built manuals, from a Bazaar checkout.
7203 HAVE_MAKEINFO=yes
7205 if test "$MAKEINFO" = "no"; then
7206 MAKEINFO=makeinfo
7207 if test "x${with_makeinfo}" = "xno"; then
7208 HAVE_MAKEINFO=no
7209 elif test ! -e $srcdir/info/emacs; then
7210 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
7211 source tree does not seem to have pre-built manuals in the \`info' directory.
7212 Either install a suitable version of makeinfo, or re-run configure
7213 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
7219 if test x$GCC = xyes; then
7220 test "x$GCC_LINK_TEST_OPTIONS" != x && \
7221 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
7222 else
7223 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
7224 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
7228 late_LDFLAGS=$LDFLAGS
7229 if test x$GCC = xyes; then
7230 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
7231 else
7232 LDFLAGS="$LDFLAGS -znocombreloc"
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
7236 $as_echo_n "checking for -znocombreloc... " >&6; }
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7241 main ()
7245 return 0;
7247 _ACEOF
7248 if ac_fn_c_try_link "$LINENO"; then :
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7250 $as_echo "yes" >&6; }
7251 else
7252 LDFLAGS=$late_LDFLAGS
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7256 rm -f core conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7260 # The value of CPP is a quoted variable reference, so we need to do this
7261 # to get its actual value...
7262 CPP=`eval "echo $CPP"`
7265 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
7266 case "$opsys" in
7267 your-opsys-here) CANNOT_DUMP=yes ;;
7268 esac
7270 test "$CANNOT_DUMP" = "yes" && \
7272 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
7278 UNEXEC_OBJ=unexelf.o
7279 case "$opsys" in
7280 # MSDOS uses unexcoff.o
7281 # MSWindows uses unexw32.o
7282 aix4-2)
7283 UNEXEC_OBJ=unexaix.o
7285 cygwin)
7286 UNEXEC_OBJ=unexcw.o
7288 darwin)
7289 UNEXEC_OBJ=unexmacosx.o
7291 hpux10-20 | hpux11)
7292 UNEXEC_OBJ=unexhp9k800.o
7294 sol2-10)
7295 # Use the Solaris dldump() function, called from unexsol.c, to dump
7296 # emacs, instead of the generic ELF dump code found in unexelf.c.
7297 # The resulting binary has a complete symbol table, and is better
7298 # for debugging and other observability tools (debuggers, pstack, etc).
7300 # If you encounter a problem using dldump(), please consider sending
7301 # a message to the OpenSolaris tools-linking mailing list:
7302 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
7304 # It is likely that dldump() works with older Solaris too, but this has
7305 # not been tested, so for now this change is for Solaris 10 or newer.
7306 UNEXEC_OBJ=unexsol.o
7308 esac
7310 LD_SWITCH_SYSTEM=
7311 case "$opsys" in
7312 freebsd)
7313 ## Let `ld' find image libs and similar things in /usr/local/lib.
7314 ## The system compiler, GCC, has apparently been modified to not
7315 ## look there, contrary to what a stock GCC would do.
7316 LD_SWITCH_SYSTEM=-L/usr/local/lib
7319 gnu-linux)
7320 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
7321 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
7324 netbsd)
7325 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
7328 openbsd)
7329 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7330 ## otherwise Emacs dumps core on elf systems.
7331 LD_SWITCH_SYSTEM="-Z"
7333 esac
7336 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7338 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7339 ## which has not been defined yet. When this was handled with cpp,
7340 ## it was expanded to null when configure sourced the s/*.h file.
7341 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7342 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7343 ## (or somesuch), but because it is supposed to go at the _front_
7344 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7345 ## Compare with the gnu-linux case below, which added to the end
7346 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7347 ## LD_SWITCH_SYSTEM_TEMACS.
7348 case "$opsys" in
7349 netbsd|openbsd)
7350 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7351 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7352 esac
7355 C_SWITCH_MACHINE=
7356 if test "$machine" = "alpha"; then
7357 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7358 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7362 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7363 ## With ELF, make sure that all common symbols get allocated to in the
7364 ## data section. Otherwise, the dump of temacs may miss variables in
7365 ## the shared library that have been initialized. For example, with
7366 ## GNU libc, __malloc_initialized would normally be resolved to the
7367 ## shared library's .bss section, which is fatal.
7368 if test "x$GCC" = "xyes"; then
7369 C_SWITCH_MACHINE="-fno-common"
7370 else
7371 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7373 else
7374 UNEXEC_OBJ=unexalpha.o
7381 C_SWITCH_SYSTEM=
7382 ## Some programs in src produce warnings saying certain subprograms
7383 ## are too complex and need a MAXMEM value greater than 2000 for
7384 ## additional optimization. --nils@exp-math.uni-essen.de
7385 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7386 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7387 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7388 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7392 LIBS_SYSTEM=
7393 case "$opsys" in
7394 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7395 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7397 freebsd) LIBS_SYSTEM="-lutil" ;;
7399 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7401 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7403 ## Motif needs -lgen.
7404 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7405 esac
7409 ### Make sure subsequent tests use flags consistent with the build flags.
7411 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7412 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7413 else
7414 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7417 # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better.
7420 # Check whether --enable-largefile was given.
7421 if test "${enable_largefile+set}" = set; then :
7422 enableval=$enable_largefile;
7425 if test "$enable_largefile" != no; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7428 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7429 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 ac_cv_sys_largefile_CC=no
7433 if test "$GCC" != yes; then
7434 ac_save_CC=$CC
7435 while :; do
7436 # IRIX 6.2 and later do not support large files by default,
7437 # so use the C compiler's -n32 option if that helps.
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #include <sys/types.h>
7441 /* Check that off_t can represent 2**63 - 1 correctly.
7442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7443 since some C++ compilers masquerading as C compilers
7444 incorrectly reject 9223372036854775807. */
7445 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7447 && LARGE_OFF_T % 2147483647 == 1)
7448 ? 1 : -1];
7450 main ()
7454 return 0;
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"; then :
7458 break
7460 rm -f core conftest.err conftest.$ac_objext
7461 CC="$CC -n32"
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463 ac_cv_sys_largefile_CC=' -n32'; break
7465 rm -f core conftest.err conftest.$ac_objext
7466 break
7467 done
7468 CC=$ac_save_CC
7469 rm -f conftest.$ac_ext
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7473 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7474 if test "$ac_cv_sys_largefile_CC" != no; then
7475 CC=$CC$ac_cv_sys_largefile_CC
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7479 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7480 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 while :; do
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7486 #include <sys/types.h>
7487 /* Check that off_t can represent 2**63 - 1 correctly.
7488 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7489 since some C++ compilers masquerading as C compilers
7490 incorrectly reject 9223372036854775807. */
7491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7493 && LARGE_OFF_T % 2147483647 == 1)
7494 ? 1 : -1];
7496 main ()
7500 return 0;
7502 _ACEOF
7503 if ac_fn_c_try_compile "$LINENO"; then :
7504 ac_cv_sys_file_offset_bits=no; break
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 #define _FILE_OFFSET_BITS 64
7510 #include <sys/types.h>
7511 /* Check that off_t can represent 2**63 - 1 correctly.
7512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7513 since some C++ compilers masquerading as C compilers
7514 incorrectly reject 9223372036854775807. */
7515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7517 && LARGE_OFF_T % 2147483647 == 1)
7518 ? 1 : -1];
7520 main ()
7524 return 0;
7526 _ACEOF
7527 if ac_fn_c_try_compile "$LINENO"; then :
7528 ac_cv_sys_file_offset_bits=64; break
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 ac_cv_sys_file_offset_bits=unknown
7532 break
7533 done
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7536 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7537 case $ac_cv_sys_file_offset_bits in #(
7538 no | unknown) ;;
7540 cat >>confdefs.h <<_ACEOF
7541 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7542 _ACEOF
7544 esac
7545 rm -rf conftest*
7546 if test $ac_cv_sys_file_offset_bits = unknown; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7548 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7549 if test "${ac_cv_sys_large_files+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 while :; do
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 #include <sys/types.h>
7556 /* Check that off_t can represent 2**63 - 1 correctly.
7557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7558 since some C++ compilers masquerading as C compilers
7559 incorrectly reject 9223372036854775807. */
7560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7562 && LARGE_OFF_T % 2147483647 == 1)
7563 ? 1 : -1];
7565 main ()
7569 return 0;
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 ac_cv_sys_large_files=no; break
7575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 #define _LARGE_FILES 1
7579 #include <sys/types.h>
7580 /* Check that off_t can represent 2**63 - 1 correctly.
7581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7582 since some C++ compilers masquerading as C compilers
7583 incorrectly reject 9223372036854775807. */
7584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7586 && LARGE_OFF_T % 2147483647 == 1)
7587 ? 1 : -1];
7589 main ()
7593 return 0;
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 ac_cv_sys_large_files=1; break
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 ac_cv_sys_large_files=unknown
7601 break
7602 done
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7605 $as_echo "$ac_cv_sys_large_files" >&6; }
7606 case $ac_cv_sys_large_files in #(
7607 no | unknown) ;;
7609 cat >>confdefs.h <<_ACEOF
7610 #define _LARGE_FILES $ac_cv_sys_large_files
7611 _ACEOF
7613 esac
7614 rm -rf conftest*
7620 ## If user specified a crt-dir, use that unconditionally.
7621 if test "X$CRT_DIR" = "X"; then
7623 case "$canonical" in
7624 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7625 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7626 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7627 ## For anything else (eg /usr/lib32), it is up the user to specify
7628 ## the location (bug#5655).
7629 ## Test for crtn.o, not just the directory, because sometimes the
7630 ## directory exists but does not have the relevant files (bug#1287).
7631 ## FIXME better to test for binary compatibility somehow.
7632 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7635 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7636 esac
7638 case "$opsys" in
7639 hpux10-20) CRT_DIR=/lib ;;
7640 esac
7642 ## Default is /usr/lib.
7643 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7645 else
7647 ## Some platforms don't use any of these files, so it is not
7648 ## appropriate to put this test outside the if block.
7649 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7650 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7656 LIB_MATH=-lm
7657 LIB_STANDARD=
7658 START_FILES=
7660 case $opsys in
7661 cygwin )
7662 LIB_MATH=
7663 START_FILES='pre-crt0.o'
7665 darwin )
7666 ## Adding -lm confuses the dynamic linker, so omit it.
7667 LIB_MATH=
7668 START_FILES='pre-crt0.o'
7670 freebsd )
7671 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7672 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7674 gnu-linux | gnu-kfreebsd )
7675 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7676 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7678 hpux10-20 | hpux11 )
7679 LIB_STANDARD=-lc
7680 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7682 netbsd | openbsd )
7683 if test -f $CRT_DIR/crti.o; then
7684 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7685 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7686 else
7687 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7688 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7691 esac
7699 if test "${with_sound}" != "no"; then
7700 # Sound support for GNU/Linux and the free BSDs.
7701 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7702 do :
7703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7704 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7705 eval as_val=\$$as_ac_Header
7706 if test "x$as_val" = x""yes; then :
7707 cat >>confdefs.h <<_ACEOF
7708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7709 _ACEOF
7710 have_sound_header=yes
7713 done
7715 # Emulation library used on NetBSD.
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7717 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7718 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 ac_check_lib_save_LIBS=$LIBS
7722 LIBS="-lossaudio $LIBS"
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7726 /* Override any GCC internal prototype to avoid an error.
7727 Use char because int might match the return type of a GCC
7728 builtin and then its argument prototype would still apply. */
7729 #ifdef __cplusplus
7730 extern "C"
7731 #endif
7732 char _oss_ioctl ();
7734 main ()
7736 return _oss_ioctl ();
7738 return 0;
7740 _ACEOF
7741 if ac_fn_c_try_link "$LINENO"; then :
7742 ac_cv_lib_ossaudio__oss_ioctl=yes
7743 else
7744 ac_cv_lib_ossaudio__oss_ioctl=no
7746 rm -f core conftest.err conftest.$ac_objext \
7747 conftest$ac_exeext conftest.$ac_ext
7748 LIBS=$ac_check_lib_save_LIBS
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7751 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7752 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7753 LIBSOUND=-lossaudio
7754 else
7755 LIBSOUND=
7760 ALSA_REQUIRED=1.0.0
7761 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7763 succeeded=no
7765 # Extract the first word of "pkg-config", so it can be a program name with args.
7766 set dummy pkg-config; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 case $PKG_CONFIG in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 break 2
7788 done
7789 done
7790 IFS=$as_save_IFS
7792 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7794 esac
7796 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7797 if test -n "$PKG_CONFIG"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7799 $as_echo "$PKG_CONFIG" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7807 if test "$PKG_CONFIG" = "no" ; then
7808 HAVE_ALSA=no
7809 else
7810 PKG_CONFIG_MIN_VERSION=0.9.0
7811 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7813 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7815 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7817 $as_echo "yes" >&6; }
7818 succeeded=yes
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7821 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7822 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7824 $as_echo "$ALSA_CFLAGS" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7827 $as_echo_n "checking ALSA_LIBS... " >&6; }
7828 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7830 $as_echo "$ALSA_LIBS" >&6; }
7831 else
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 ALSA_CFLAGS=""
7835 ALSA_LIBS=""
7836 ## If we have a custom action on failure, don't print errors, but
7837 ## do set a variable so people can do so.
7838 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7844 else
7845 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7846 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7850 if test $succeeded = yes; then
7851 HAVE_ALSA=yes
7852 else
7853 HAVE_ALSA=no
7856 if test $HAVE_ALSA = yes; then
7857 SAVE_CFLAGS="$CFLAGS"
7858 SAVE_LDFLAGS="$LDFLAGS"
7859 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7860 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 #include <asoundlib.h>
7865 main ()
7867 snd_lib_error_set_handler (0);
7869 return 0;
7871 _ACEOF
7872 if ac_fn_c_try_compile "$LINENO"; then :
7873 emacs_alsa_normal=yes
7874 else
7875 emacs_alsa_normal=no
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 if test "$emacs_alsa_normal" != yes; then
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881 #include <alsa/asoundlib.h>
7883 main ()
7885 snd_lib_error_set_handler (0);
7887 return 0;
7889 _ACEOF
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 emacs_alsa_subdir=yes
7892 else
7893 emacs_alsa_subdir=no
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 if test "$emacs_alsa_subdir" != yes; then
7897 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7899 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7902 CFLAGS="$SAVE_CFLAGS"
7903 LDFLAGS="$SAVE_LDFLAGS"
7904 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7905 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7907 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7911 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7912 case "$opsys" in
7913 gnu-linux|freebsd|netbsd)
7915 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7918 esac
7924 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7925 linux/version.h sys/systeminfo.h limits.h \
7926 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7927 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7928 sys/utsname.h pwd.h utmp.h dirent.h util.h
7929 do :
7930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7932 eval as_val=\$$as_ac_Header
7933 if test "x$as_val" = x""yes; then :
7934 cat >>confdefs.h <<_ACEOF
7935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7936 _ACEOF
7940 done
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7944 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #include <sys/personality.h>
7949 main ()
7951 personality (PER_LINUX32)
7953 return 0;
7955 _ACEOF
7956 if ac_fn_c_try_compile "$LINENO"; then :
7957 emacs_cv_personality_linux32=yes
7958 else
7959 emacs_cv_personality_linux32=no
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7963 $as_echo "$emacs_cv_personality_linux32" >&6; }
7965 if test $emacs_cv_personality_linux32 = yes; then
7967 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7971 for ac_header in term.h
7972 do :
7973 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7974 if test "x$ac_cv_header_term_h" = x""yes; then :
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_TERM_H 1
7977 _ACEOF
7981 done
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7984 $as_echo_n "checking for ANSI C header files... " >&6; }
7985 if test "${ac_cv_header_stdc+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 #include <stdlib.h>
7991 #include <stdarg.h>
7992 #include <string.h>
7993 #include <float.h>
7996 main ()
8000 return 0;
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004 ac_cv_header_stdc=yes
8005 else
8006 ac_cv_header_stdc=no
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 if test $ac_cv_header_stdc = yes; then
8011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 #include <string.h>
8016 _ACEOF
8017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8018 $EGREP "memchr" >/dev/null 2>&1; then :
8020 else
8021 ac_cv_header_stdc=no
8023 rm -f conftest*
8027 if test $ac_cv_header_stdc = yes; then
8028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8031 #include <stdlib.h>
8033 _ACEOF
8034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8035 $EGREP "free" >/dev/null 2>&1; then :
8037 else
8038 ac_cv_header_stdc=no
8040 rm -f conftest*
8044 if test $ac_cv_header_stdc = yes; then
8045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8046 if test "$cross_compiling" = yes; then :
8048 else
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 #include <ctype.h>
8052 #include <stdlib.h>
8053 #if ((' ' & 0x0FF) == 0x020)
8054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8056 #else
8057 # define ISLOWER(c) \
8058 (('a' <= (c) && (c) <= 'i') \
8059 || ('j' <= (c) && (c) <= 'r') \
8060 || ('s' <= (c) && (c) <= 'z'))
8061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8062 #endif
8064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8066 main ()
8068 int i;
8069 for (i = 0; i < 256; i++)
8070 if (XOR (islower (i), ISLOWER (i))
8071 || toupper (i) != TOUPPER (i))
8072 return 2;
8073 return 0;
8075 _ACEOF
8076 if ac_fn_c_try_run "$LINENO"; then :
8078 else
8079 ac_cv_header_stdc=no
8081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8082 conftest.$ac_objext conftest.beam conftest.$ac_ext
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8088 $as_echo "$ac_cv_header_stdc" >&6; }
8089 if test $ac_cv_header_stdc = yes; then
8091 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8096 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8097 if test "${ac_cv_header_time+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 #include <sys/types.h>
8103 #include <sys/time.h>
8104 #include <time.h>
8107 main ()
8109 if ((struct tm *) 0)
8110 return 0;
8112 return 0;
8114 _ACEOF
8115 if ac_fn_c_try_compile "$LINENO"; then :
8116 ac_cv_header_time=yes
8117 else
8118 ac_cv_header_time=no
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8123 $as_echo "$ac_cv_header_time" >&6; }
8124 if test $ac_cv_header_time = yes; then
8126 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8130 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
8131 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8132 ac_have_decl=1
8133 else
8134 ac_have_decl=0
8137 cat >>confdefs.h <<_ACEOF
8138 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8139 _ACEOF
8141 if test $ac_cv_have_decl_sys_siglist != yes; then
8142 # For Tru64, at least:
8143 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
8144 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8145 ac_have_decl=1
8146 else
8147 ac_have_decl=0
8150 cat >>confdefs.h <<_ACEOF
8151 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8152 _ACEOF
8154 if test $ac_cv_have_decl___sys_siglist = yes; then
8156 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8161 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8162 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <sys/types.h>
8168 #include <sys/wait.h>
8169 #ifndef WEXITSTATUS
8170 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8171 #endif
8172 #ifndef WIFEXITED
8173 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8174 #endif
8177 main ()
8179 int s;
8180 wait (&s);
8181 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8183 return 0;
8185 _ACEOF
8186 if ac_fn_c_try_compile "$LINENO"; then :
8187 ac_cv_header_sys_wait_h=yes
8188 else
8189 ac_cv_header_sys_wait_h=no
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8194 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8195 if test $ac_cv_header_sys_wait_h = yes; then
8197 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
8203 $as_echo_n "checking for struct utimbuf... " >&6; }
8204 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 #ifdef TIME_WITH_SYS_TIME
8210 #include <sys/time.h>
8211 #include <time.h>
8212 #else
8213 #ifdef HAVE_SYS_TIME_H
8214 #include <sys/time.h>
8215 #else
8216 #include <time.h>
8217 #endif
8218 #endif
8219 #ifdef HAVE_UTIME_H
8220 #include <utime.h>
8221 #endif
8223 main ()
8225 static struct utimbuf x; x.actime = x.modtime;
8227 return 0;
8229 _ACEOF
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231 emacs_cv_struct_utimbuf=yes
8232 else
8233 emacs_cv_struct_utimbuf=no
8235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
8238 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
8239 if test $emacs_cv_struct_utimbuf = yes; then
8241 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
8246 $as_echo_n "checking for speed_t... " >&6; }
8247 if test "${emacs_cv_speed_t+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 #include <termios.h>
8254 main ()
8256 speed_t x = 1;
8258 return 0;
8260 _ACEOF
8261 if ac_fn_c_try_compile "$LINENO"; then :
8262 emacs_cv_speed_t=yes
8263 else
8264 emacs_cv_speed_t=no
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
8269 $as_echo "$emacs_cv_speed_t" >&6; }
8270 if test $emacs_cv_speed_t = yes; then
8272 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
8277 $as_echo_n "checking for struct timeval... " >&6; }
8278 if test "${emacs_cv_struct_timeval+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283 #ifdef TIME_WITH_SYS_TIME
8284 #include <sys/time.h>
8285 #include <time.h>
8286 #else
8287 #ifdef HAVE_SYS_TIME_H
8288 #include <sys/time.h>
8289 #else
8290 #include <time.h>
8291 #endif
8292 #endif
8294 main ()
8296 static struct timeval x; x.tv_sec = x.tv_usec;
8298 return 0;
8300 _ACEOF
8301 if ac_fn_c_try_compile "$LINENO"; then :
8302 emacs_cv_struct_timeval=yes
8303 else
8304 emacs_cv_struct_timeval=no
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
8309 $as_echo "$emacs_cv_struct_timeval" >&6; }
8310 HAVE_TIMEVAL=$emacs_cv_struct_timeval
8311 if test $emacs_cv_struct_timeval = yes; then
8313 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
8318 $as_echo_n "checking for struct exception... " >&6; }
8319 if test "${emacs_cv_struct_exception+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <math.h>
8326 main ()
8328 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
8330 return 0;
8332 _ACEOF
8333 if ac_fn_c_try_compile "$LINENO"; then :
8334 emacs_cv_struct_exception=yes
8335 else
8336 emacs_cv_struct_exception=no
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8341 $as_echo "$emacs_cv_struct_exception" >&6; }
8342 HAVE_EXCEPTION=$emacs_cv_struct_exception
8343 if test $emacs_cv_struct_exception != yes; then
8345 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8349 for ac_header in net/if.h
8350 do :
8351 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8352 #if HAVE_SYS_SOCKET_H
8353 #include <sys/socket.h>
8354 #endif
8356 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8357 cat >>confdefs.h <<_ACEOF
8358 #define HAVE_NET_IF_H 1
8359 _ACEOF
8363 done
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8367 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8368 if test "${ac_cv_struct_tm+set}" = set; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8372 /* end confdefs.h. */
8373 #include <sys/types.h>
8374 #include <time.h>
8377 main ()
8379 struct tm tm;
8380 int *p = &tm.tm_sec;
8381 return !p;
8383 return 0;
8385 _ACEOF
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387 ac_cv_struct_tm=time.h
8388 else
8389 ac_cv_struct_tm=sys/time.h
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8394 $as_echo "$ac_cv_struct_tm" >&6; }
8395 if test $ac_cv_struct_tm = sys/time.h; then
8397 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8401 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8402 #include <$ac_cv_struct_tm>
8405 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8407 cat >>confdefs.h <<_ACEOF
8408 #define HAVE_STRUCT_TM_TM_ZONE 1
8409 _ACEOF
8414 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8416 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8418 else
8419 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8421 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8422 ac_have_decl=1
8423 else
8424 ac_have_decl=0
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_DECL_TZNAME $ac_have_decl
8429 _ACEOF
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8432 $as_echo_n "checking for tzname... " >&6; }
8433 if test "${ac_cv_var_tzname+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8438 #include <time.h>
8439 #if !HAVE_DECL_TZNAME
8440 extern char *tzname[];
8441 #endif
8444 main ()
8446 return tzname[0][0];
8448 return 0;
8450 _ACEOF
8451 if ac_fn_c_try_link "$LINENO"; then :
8452 ac_cv_var_tzname=yes
8453 else
8454 ac_cv_var_tzname=no
8456 rm -f core conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8460 $as_echo "$ac_cv_var_tzname" >&6; }
8461 if test $ac_cv_var_tzname = yes; then
8463 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8468 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8470 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8472 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8476 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8477 #if HAVE_SYS_SOCKET_H
8478 #include <sys/socket.h>
8479 #endif
8480 #if HAVE_NET_IF_H
8481 #include <net/if.h>
8482 #endif
8484 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8486 cat >>confdefs.h <<_ACEOF
8487 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8488 _ACEOF
8492 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8493 #if HAVE_SYS_SOCKET_H
8494 #include <sys/socket.h>
8495 #endif
8496 #if HAVE_NET_IF_H
8497 #include <net/if.h>
8498 #endif
8500 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8502 cat >>confdefs.h <<_ACEOF
8503 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8504 _ACEOF
8508 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8511 #endif
8512 #if HAVE_NET_IF_H
8513 #include <net/if.h>
8514 #endif
8516 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8518 cat >>confdefs.h <<_ACEOF
8519 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8520 _ACEOF
8524 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8525 #if HAVE_SYS_SOCKET_H
8526 #include <sys/socket.h>
8527 #endif
8528 #if HAVE_NET_IF_H
8529 #include <net/if.h>
8530 #endif
8532 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8534 cat >>confdefs.h <<_ACEOF
8535 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8536 _ACEOF
8540 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8541 #if HAVE_SYS_SOCKET_H
8542 #include <sys/socket.h>
8543 #endif
8544 #if HAVE_NET_IF_H
8545 #include <net/if.h>
8546 #endif
8548 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8550 cat >>confdefs.h <<_ACEOF
8551 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8552 _ACEOF
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8560 $as_echo_n "checking for function prototypes... " >&6; }
8561 if test "$ac_cv_prog_cc_c89" != no; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8563 $as_echo "yes" >&6; }
8565 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8568 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8576 $as_echo_n "checking for working volatile... " >&6; }
8577 if test "${ac_cv_c_volatile+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8584 main ()
8587 volatile int x;
8588 int * volatile y = (int *) 0;
8589 return !x && !y;
8591 return 0;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 ac_cv_c_volatile=yes
8596 else
8597 ac_cv_c_volatile=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8602 $as_echo "$ac_cv_c_volatile" >&6; }
8603 if test $ac_cv_c_volatile = no; then
8605 $as_echo "#define volatile /**/" >>confdefs.h
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8610 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8611 if test "${ac_cv_c_const+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8618 main ()
8620 /* FIXME: Include the comments suggested by Paul. */
8621 #ifndef __cplusplus
8622 /* Ultrix mips cc rejects this. */
8623 typedef int charset[2];
8624 const charset cs;
8625 /* SunOS 4.1.1 cc rejects this. */
8626 char const *const *pcpcc;
8627 char **ppc;
8628 /* NEC SVR4.0.2 mips cc rejects this. */
8629 struct point {int x, y;};
8630 static struct point const zero = {0,0};
8631 /* AIX XL C 1.02.0.0 rejects this.
8632 It does not let you subtract one const X* pointer from another in
8633 an arm of an if-expression whose if-part is not a constant
8634 expression */
8635 const char *g = "string";
8636 pcpcc = &g + (g ? g-g : 0);
8637 /* HPUX 7.0 cc rejects these. */
8638 ++pcpcc;
8639 ppc = (char**) pcpcc;
8640 pcpcc = (char const *const *) ppc;
8641 { /* SCO 3.2v4 cc rejects this. */
8642 char *t;
8643 char const *s = 0 ? (char *) 0 : (char const *) 0;
8645 *t++ = 0;
8646 if (s) return 0;
8648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8649 int x[] = {25, 17};
8650 const int *foo = &x[0];
8651 ++foo;
8653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8654 typedef const int *iptr;
8655 iptr p = 0;
8656 ++p;
8658 { /* AIX XL C 1.02.0.0 rejects this saying
8659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8660 struct s { int j; const int *ap[3]; };
8661 struct s *b; b->j = 5;
8663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8664 const int foo = 10;
8665 if (!foo) return 0;
8667 return !cs[0] && !zero.x;
8668 #endif
8671 return 0;
8673 _ACEOF
8674 if ac_fn_c_try_compile "$LINENO"; then :
8675 ac_cv_c_const=yes
8676 else
8677 ac_cv_c_const=no
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8682 $as_echo "$ac_cv_c_const" >&6; }
8683 if test $ac_cv_c_const = no; then
8685 $as_echo "#define const /**/" >>confdefs.h
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8690 $as_echo_n "checking for void * support... " >&6; }
8691 if test "${emacs_cv_void_star+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8698 main ()
8700 void * foo;
8702 return 0;
8704 _ACEOF
8705 if ac_fn_c_try_compile "$LINENO"; then :
8706 emacs_cv_void_star=yes
8707 else
8708 emacs_cv_void_star=no
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8713 $as_echo "$emacs_cv_void_star" >&6; }
8714 if test $emacs_cv_void_star = yes; then
8715 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8717 else
8718 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8723 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8724 if test "${ac_cv_c_bigendian+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 ac_cv_c_bigendian=unknown
8728 # See if we're dealing with a universal compiler.
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 #ifndef __APPLE_CC__
8732 not a universal capable compiler
8733 #endif
8734 typedef int dummy;
8736 _ACEOF
8737 if ac_fn_c_try_compile "$LINENO"; then :
8739 # Check for potential -arch flags. It is not universal unless
8740 # there are at least two -arch flags with different values.
8741 ac_arch=
8742 ac_prev=
8743 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8744 if test -n "$ac_prev"; then
8745 case $ac_word in
8746 i?86 | x86_64 | ppc | ppc64)
8747 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8748 ac_arch=$ac_word
8749 else
8750 ac_cv_c_bigendian=universal
8751 break
8754 esac
8755 ac_prev=
8756 elif test "x$ac_word" = "x-arch"; then
8757 ac_prev=arch
8759 done
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 if test $ac_cv_c_bigendian = unknown; then
8763 # See if sys/param.h defines the BYTE_ORDER macro.
8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h. */
8766 #include <sys/types.h>
8767 #include <sys/param.h>
8770 main ()
8772 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8773 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8774 && LITTLE_ENDIAN)
8775 bogus endian macros
8776 #endif
8779 return 0;
8781 _ACEOF
8782 if ac_fn_c_try_compile "$LINENO"; then :
8783 # It does; now see whether it defined to BIG_ENDIAN or not.
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 #include <sys/types.h>
8787 #include <sys/param.h>
8790 main ()
8792 #if BYTE_ORDER != BIG_ENDIAN
8793 not big endian
8794 #endif
8797 return 0;
8799 _ACEOF
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801 ac_cv_c_bigendian=yes
8802 else
8803 ac_cv_c_bigendian=no
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 if test $ac_cv_c_bigendian = unknown; then
8810 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 #include <limits.h>
8816 main ()
8818 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8819 bogus endian macros
8820 #endif
8823 return 0;
8825 _ACEOF
8826 if ac_fn_c_try_compile "$LINENO"; then :
8827 # It does; now see whether it defined to _BIG_ENDIAN or not.
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8830 #include <limits.h>
8833 main ()
8835 #ifndef _BIG_ENDIAN
8836 not big endian
8837 #endif
8840 return 0;
8842 _ACEOF
8843 if ac_fn_c_try_compile "$LINENO"; then :
8844 ac_cv_c_bigendian=yes
8845 else
8846 ac_cv_c_bigendian=no
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 if test $ac_cv_c_bigendian = unknown; then
8853 # Compile a test program.
8854 if test "$cross_compiling" = yes; then :
8855 # Try to guess by grepping values from an object file.
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 short int ascii_mm[] =
8859 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8860 short int ascii_ii[] =
8861 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8862 int use_ascii (int i) {
8863 return ascii_mm[i] + ascii_ii[i];
8865 short int ebcdic_ii[] =
8866 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8867 short int ebcdic_mm[] =
8868 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8869 int use_ebcdic (int i) {
8870 return ebcdic_mm[i] + ebcdic_ii[i];
8872 extern int foo;
8875 main ()
8877 return use_ascii (foo) == use_ebcdic (foo);
8879 return 0;
8881 _ACEOF
8882 if ac_fn_c_try_compile "$LINENO"; then :
8883 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8884 ac_cv_c_bigendian=yes
8886 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8887 if test "$ac_cv_c_bigendian" = unknown; then
8888 ac_cv_c_bigendian=no
8889 else
8890 # finding both strings is unlikely to happen, but who knows?
8891 ac_cv_c_bigendian=unknown
8895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8896 else
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 $ac_includes_default
8901 main ()
8904 /* Are we little or big endian? From Harbison&Steele. */
8905 union
8907 long int l;
8908 char c[sizeof (long int)];
8909 } u;
8910 u.l = 1;
8911 return u.c[sizeof (long int) - 1] == 1;
8914 return 0;
8916 _ACEOF
8917 if ac_fn_c_try_run "$LINENO"; then :
8918 ac_cv_c_bigendian=no
8919 else
8920 ac_cv_c_bigendian=yes
8922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8923 conftest.$ac_objext conftest.beam conftest.$ac_ext
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8929 $as_echo "$ac_cv_c_bigendian" >&6; }
8930 case $ac_cv_c_bigendian in #(
8931 yes)
8932 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8933 ;; #(
8935 ;; #(
8936 universal)
8938 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8940 ;; #(
8942 as_fn_error "unknown endianness
8943 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8944 esac
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8948 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8949 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8954 char __attribute__ ((__aligned__ (1 << 3))) c;
8956 main ()
8960 return 0;
8962 _ACEOF
8963 if ac_fn_c_try_compile "$LINENO"; then :
8964 emacs_cv_attribute_aligned=yes
8965 else
8966 emacs_cv_attribute_aligned=no
8968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8971 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8972 if test $emacs_cv_attribute_aligned = yes; then
8974 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8979 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8980 set x ${MAKE-make}
8981 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8982 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 cat >conftest.make <<\_ACEOF
8986 SHELL = /bin/sh
8987 all:
8988 @echo '@@@%%%=$(MAKE)=@@@%%%'
8989 _ACEOF
8990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8991 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8992 *@@@%%%=?*=@@@%%%*)
8993 eval ac_cv_prog_make_${ac_make}_set=yes;;
8995 eval ac_cv_prog_make_${ac_make}_set=no;;
8996 esac
8997 rm -f conftest.make
8999 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9001 $as_echo "yes" >&6; }
9002 SET_MAKE=
9003 else
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9006 SET_MAKE="MAKE=${MAKE-make}"
9010 DEPFLAGS=
9011 MKDEPDIR=":"
9012 deps_frag=deps.mk
9013 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9015 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9016 HAVE_GNU_MAKE=no
9017 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9018 if test "x$testval" != x; then
9019 HAVE_GNU_MAKE=yes
9020 else
9021 ac_enable_autodepend=no
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9024 $as_echo "$HAVE_GNU_MAKE" >&6; }
9025 if test $HAVE_GNU_MAKE = yes; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9027 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9028 SAVE_CFLAGS="$CFLAGS"
9029 CFLAGS="$CFLAGS -MMD -MF deps.d"
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9034 main ()
9038 return 0;
9040 _ACEOF
9041 if ac_fn_c_try_compile "$LINENO"; then :
9043 else
9044 ac_enable_autodepend=no
9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 CFLAGS="$SAVE_CFLAGS"
9048 test -f deps.d || ac_enable_autodepend=no
9049 rm -rf deps.d
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9051 $as_echo "$ac_enable_autodepend" >&6; }
9053 if test $ac_enable_autodepend = yes; then
9054 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
9055 ## In parallel builds, another make might create depdir between
9056 ## the first test and mkdir, so stick another test on the end.
9057 ## Or use install-sh -d? mkdir -p is not portable.
9058 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9059 deps_frag=autodeps.mk
9062 deps_frag=$srcdir/src/$deps_frag
9068 lisp_frag=$srcdir/src/lisp.mk
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9073 $as_echo_n "checking for long file names... " >&6; }
9074 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 ac_cv_sys_long_file_names=yes
9078 # Test for long file names in all the places we know might matter:
9079 # . the current directory, where building will happen
9080 # $prefix/lib where we will be installing things
9081 # $exec_prefix/lib likewise
9082 # $TMPDIR if set, where it might want to write temporary files
9083 # /tmp where it might want to write temporary files
9084 # /var/tmp likewise
9085 # /usr/tmp likewise
9086 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9087 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9088 # in the usual case where exec_prefix is '${prefix}'.
9089 case $ac_dir in #(
9090 . | /* | ?:[\\/]*) ;; #(
9091 *) continue;;
9092 esac
9093 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9094 ac_xdir=$ac_dir/cf$$
9095 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9096 ac_tf1=$ac_xdir/conftest9012345
9097 ac_tf2=$ac_xdir/conftest9012346
9098 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9099 ac_cv_sys_long_file_names=no
9100 rm -f -r "$ac_xdir" 2>/dev/null
9101 test $ac_cv_sys_long_file_names = no && break
9102 done
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9105 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9106 if test $ac_cv_sys_long_file_names = yes; then
9108 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9113 #### Choose a window system.
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9116 $as_echo_n "checking for X... " >&6; }
9119 # Check whether --with-x was given.
9120 if test "${with_x+set}" = set; then :
9121 withval=$with_x;
9124 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9125 if test "x$with_x" = xno; then
9126 # The user explicitly disabled X.
9127 have_x=disabled
9128 else
9129 case $x_includes,$x_libraries in #(
9130 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9131 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 # One or both of the vars are not set, and there is no cached value.
9135 ac_x_includes=no ac_x_libraries=no
9136 rm -f -r conftest.dir
9137 if mkdir conftest.dir; then
9138 cd conftest.dir
9139 cat >Imakefile <<'_ACEOF'
9140 incroot:
9141 @echo incroot='${INCROOT}'
9142 usrlibdir:
9143 @echo usrlibdir='${USRLIBDIR}'
9144 libdir:
9145 @echo libdir='${LIBDIR}'
9146 _ACEOF
9147 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9149 for ac_var in incroot usrlibdir libdir; do
9150 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9151 done
9152 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9153 for ac_extension in a so sl dylib la dll; do
9154 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9155 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9156 ac_im_usrlibdir=$ac_im_libdir; break
9158 done
9159 # Screen out bogus values from the imake configuration. They are
9160 # bogus both because they are the default anyway, and because
9161 # using them would break gcc on systems where it needs fixed includes.
9162 case $ac_im_incroot in
9163 /usr/include) ac_x_includes= ;;
9164 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9165 esac
9166 case $ac_im_usrlibdir in
9167 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9168 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9169 esac
9171 cd ..
9172 rm -f -r conftest.dir
9175 # Standard set of common directories for X headers.
9176 # Check X11 before X11Rn because it is often a symlink to the current release.
9177 ac_x_header_dirs='
9178 /usr/X11/include
9179 /usr/X11R7/include
9180 /usr/X11R6/include
9181 /usr/X11R5/include
9182 /usr/X11R4/include
9184 /usr/include/X11
9185 /usr/include/X11R7
9186 /usr/include/X11R6
9187 /usr/include/X11R5
9188 /usr/include/X11R4
9190 /usr/local/X11/include
9191 /usr/local/X11R7/include
9192 /usr/local/X11R6/include
9193 /usr/local/X11R5/include
9194 /usr/local/X11R4/include
9196 /usr/local/include/X11
9197 /usr/local/include/X11R7
9198 /usr/local/include/X11R6
9199 /usr/local/include/X11R5
9200 /usr/local/include/X11R4
9202 /usr/X386/include
9203 /usr/x386/include
9204 /usr/XFree86/include/X11
9206 /usr/include
9207 /usr/local/include
9208 /usr/unsupported/include
9209 /usr/athena/include
9210 /usr/local/x11r5/include
9211 /usr/lpp/Xamples/include
9213 /usr/openwin/include
9214 /usr/openwin/share/include'
9216 if test "$ac_x_includes" = no; then
9217 # Guess where to find include files, by looking for Xlib.h.
9218 # First, try using that file with no special directory specified.
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221 #include <X11/Xlib.h>
9222 _ACEOF
9223 if ac_fn_c_try_cpp "$LINENO"; then :
9224 # We can compile using X headers with no special include directory.
9225 ac_x_includes=
9226 else
9227 for ac_dir in $ac_x_header_dirs; do
9228 if test -r "$ac_dir/X11/Xlib.h"; then
9229 ac_x_includes=$ac_dir
9230 break
9232 done
9234 rm -f conftest.err conftest.$ac_ext
9235 fi # $ac_x_includes = no
9237 if test "$ac_x_libraries" = no; then
9238 # Check for the libraries.
9239 # See if we find them without any special options.
9240 # Don't add to $LIBS permanently.
9241 ac_save_LIBS=$LIBS
9242 LIBS="-lX11 $LIBS"
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245 #include <X11/Xlib.h>
9247 main ()
9249 XrmInitialize ()
9251 return 0;
9253 _ACEOF
9254 if ac_fn_c_try_link "$LINENO"; then :
9255 LIBS=$ac_save_LIBS
9256 # We can link X programs with no special library path.
9257 ac_x_libraries=
9258 else
9259 LIBS=$ac_save_LIBS
9260 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9262 # Don't even attempt the hair of trying to link an X program!
9263 for ac_extension in a so sl dylib la dll; do
9264 if test -r "$ac_dir/libX11.$ac_extension"; then
9265 ac_x_libraries=$ac_dir
9266 break 2
9268 done
9269 done
9271 rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 fi # $ac_x_libraries = no
9275 case $ac_x_includes,$ac_x_libraries in #(
9276 no,* | *,no | *\'*)
9277 # Didn't find X, or a directory has "'" in its name.
9278 ac_cv_have_x="have_x=no";; #(
9280 # Record where we found X for the cache.
9281 ac_cv_have_x="have_x=yes\
9282 ac_x_includes='$ac_x_includes'\
9283 ac_x_libraries='$ac_x_libraries'"
9284 esac
9286 ;; #(
9287 *) have_x=yes;;
9288 esac
9289 eval "$ac_cv_have_x"
9290 fi # $with_x != no
9292 if test "$have_x" != yes; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9294 $as_echo "$have_x" >&6; }
9295 no_x=yes
9296 else
9297 # If each of the values was on the command line, it overrides each guess.
9298 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9299 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9300 # Update the cache value to reflect the command line values.
9301 ac_cv_have_x="have_x=yes\
9302 ac_x_includes='$x_includes'\
9303 ac_x_libraries='$x_libraries'"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9305 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9308 if test "$no_x" = yes; then
9309 window_system=none
9310 else
9311 window_system=x11
9314 ## Workaround for bug in autoconf <= 2.62.
9315 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9316 ## No need to do anything special for these standard directories.
9317 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9319 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9323 LD_SWITCH_X_SITE_AUX=
9324 LD_SWITCH_X_SITE_AUX_RPATH=
9325 if test "${x_libraries}" != NONE; then
9326 if test -n "${x_libraries}"; then
9327 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9328 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9329 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9331 x_default_search_path=""
9332 x_search_path=${x_libraries}
9333 if test -z "${x_search_path}"; then
9334 x_search_path=/usr/lib
9336 for x_library in `echo ${x_search_path}: | \
9337 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9338 x_search_path="\
9339 ${x_library}/X11/%L/%T/%N%C%S:\
9340 ${x_library}/X11/%l/%T/%N%C%S:\
9341 ${x_library}/X11/%T/%N%C%S:\
9342 ${x_library}/X11/%L/%T/%N%S:\
9343 ${x_library}/X11/%l/%T/%N%S:\
9344 ${x_library}/X11/%T/%N%S"
9345 if test x"${x_default_search_path}" = x; then
9346 x_default_search_path=${x_search_path}
9347 else
9348 x_default_search_path="${x_search_path}:${x_default_search_path}"
9350 done
9355 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9356 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9359 if test x"${x_includes}" = x; then
9360 bitmapdir=/usr/include/X11/bitmaps
9361 else
9362 # accumulate include directories that have X11 bitmap subdirectories
9363 bmd_acc="dummyval"
9364 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9365 if test -d "${bmd}/X11/bitmaps"; then
9366 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9368 if test -d "${bmd}/bitmaps"; then
9369 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9371 done
9372 if test ${bmd_acc} != "dummyval"; then
9373 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9377 HAVE_NS=no
9378 NS_IMPL_COCOA=no
9379 NS_IMPL_GNUSTEP=no
9380 tmp_CPPFLAGS="$CPPFLAGS"
9381 tmp_CFLAGS="$CFLAGS"
9382 CPPFLAGS="$CPPFLAGS -x objective-c"
9383 CFLAGS="$CFLAGS -x objective-c"
9384 TEMACS_LDFLAGS2="\${LDFLAGS}"
9385 if test "${with_ns}" != no; then
9386 if test "${opsys}" = darwin; then
9387 NS_IMPL_COCOA=yes
9388 ns_appdir=`pwd`/nextstep/Emacs.app
9389 ns_appbindir=${ns_appdir}/Contents/MacOS/
9390 ns_appresdir=${ns_appdir}/Contents/Resources
9391 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9392 elif test -f $GNUSTEP_CONFIG_FILE; then
9393 NS_IMPL_GNUSTEP=yes
9394 ns_appdir=`pwd`/nextstep/Emacs.app
9395 ns_appbindir=${ns_appdir}/
9396 ns_appresdir=${ns_appdir}/Resources
9397 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9398 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9399 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9400 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9401 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9402 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9403 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9404 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9405 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9406 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9407 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9408 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9409 LIB_STANDARD=
9410 START_FILES=
9411 TEMACS_LDFLAGS2=
9413 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9414 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9415 HAVE_NS=yes
9416 else
9417 as_fn_error "\`--with-ns' was specified, but the include
9418 files are missing or cannot be compiled." "$LINENO" 5
9422 NS_HAVE_NSINTEGER=yes
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include <Foundation/NSObjCRuntime.h>
9427 main ()
9429 NSInteger i;
9431 return 0;
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"; then :
9435 ns_have_nsinteger=yes
9436 else
9437 ns_have_nsinteger=no
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 if test $ns_have_nsinteger = no; then
9441 NS_HAVE_NSINTEGER=no
9446 ns_frag=/dev/null
9447 NS_OBJ=
9448 NS_OBJC_OBJ=
9449 if test "${HAVE_NS}" = yes; then
9450 window_system=nextstep
9451 with_xft=no
9452 # set up packaging dirs
9453 exec_prefix=${ns_appbindir}
9454 libexecdir=${ns_appbindir}/libexec
9455 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9456 prefix=${ns_appresdir}
9458 ns_frag=$srcdir/src/ns.mk
9459 NS_OBJ="fontset.o fringe.o image.o"
9460 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9462 CFLAGS="$tmp_CFLAGS"
9463 CPPFLAGS="$tmp_CPPFLAGS"
9469 case "${window_system}" in
9470 x11 )
9471 HAVE_X_WINDOWS=yes
9472 HAVE_X11=yes
9473 case "${with_x_toolkit}" in
9474 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9475 motif ) USE_X_TOOLKIT=MOTIF ;;
9476 gtk ) with_gtk=yes
9477 USE_X_TOOLKIT=none ;;
9478 gtk3 ) with_gtk3=yes
9479 USE_X_TOOLKIT=none ;;
9480 no ) USE_X_TOOLKIT=none ;;
9481 * ) USE_X_TOOLKIT=maybe ;;
9482 esac
9484 nextstep | none )
9485 HAVE_X_WINDOWS=no
9486 HAVE_X11=no
9487 USE_X_TOOLKIT=none
9489 esac
9491 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9492 # Extract the first word of "X", so it can be a program name with args.
9493 set dummy X; ac_word=$2
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495 $as_echo_n "checking for $ac_word... " >&6; }
9496 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 if test -n "$HAVE_XSERVER"; then
9500 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9501 else
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 for as_dir in $PATH
9505 IFS=$as_save_IFS
9506 test -z "$as_dir" && as_dir=.
9507 for ac_exec_ext in '' $ac_executable_extensions; do
9508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9509 ac_cv_prog_HAVE_XSERVER="true"
9510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9511 break 2
9513 done
9514 done
9515 IFS=$as_save_IFS
9517 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9520 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9521 if test -n "$HAVE_XSERVER"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9523 $as_echo "$HAVE_XSERVER" >&6; }
9524 else
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526 $as_echo "no" >&6; }
9530 if test "$HAVE_XSERVER" = true ||
9531 test -n "$DISPLAY" ||
9532 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9533 as_fn_error "You seem to be running X, but no X development libraries
9534 were found. You should install the relevant development files for X
9535 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9536 sure you have development files for image handling, i.e.
9537 tiff, gif, jpeg, png and xpm.
9538 If you are sure you want Emacs compiled without X window support, pass
9539 --without-x
9540 to configure." "$LINENO" 5
9544 ### If we're using X11, we should use the X menu package.
9545 HAVE_MENUS=no
9546 case ${HAVE_X11} in
9547 yes ) HAVE_MENUS=yes ;;
9548 esac
9550 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9551 # Assume not, until told otherwise.
9552 GNU_MALLOC=yes
9553 doug_lea_malloc=yes
9554 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9555 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9557 else
9558 doug_lea_malloc=no
9561 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9562 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9564 else
9565 doug_lea_malloc=no
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9569 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9570 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 extern void (* __after_morecore_hook)();
9577 main ()
9579 __after_morecore_hook = 0
9581 return 0;
9583 _ACEOF
9584 if ac_fn_c_try_link "$LINENO"; then :
9585 emacs_cv_var___after_morecore_hook=yes
9586 else
9587 emacs_cv_var___after_morecore_hook=no
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9593 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9594 if test $emacs_cv_var___after_morecore_hook = no; then
9595 doug_lea_malloc=no
9599 system_malloc=no
9600 case "$opsys" in
9601 ## darwin ld insists on the use of malloc routines in the System framework.
9602 darwin|sol2-10) system_malloc=yes ;;
9603 esac
9605 if test "${system_malloc}" = "yes"; then
9607 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9609 GNU_MALLOC=no
9610 GNU_MALLOC_reason="
9611 (The GNU allocators don't work with this system configuration.)"
9612 GMALLOC_OBJ=
9613 VMLIMIT_OBJ=
9614 else
9615 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9616 VMLIMIT_OBJ=vm-limit.o
9621 if test "$doug_lea_malloc" = "yes" ; then
9622 if test "$GNU_MALLOC" = yes ; then
9623 GNU_MALLOC_reason="
9624 (Using Doug Lea's new malloc from the GNU C Library.)"
9627 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9630 ## Use mmap directly for allocating larger buffers.
9631 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9632 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9633 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9634 case "$opsys" in
9635 gnu*) REL_ALLOC=no ;;
9636 esac
9639 if test x"${REL_ALLOC}" = x; then
9640 REL_ALLOC=${GNU_MALLOC}
9643 use_mmap_for_buffers=no
9644 case "$opsys" in
9645 cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9646 esac
9651 for ac_header in $ac_header_list
9652 do :
9653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9654 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9656 eval as_val=\$$as_ac_Header
9657 if test "x$as_val" = x""yes; then :
9658 cat >>confdefs.h <<_ACEOF
9659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9660 _ACEOF
9664 done
9673 for ac_func in getpagesize
9674 do :
9675 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9676 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9677 cat >>confdefs.h <<_ACEOF
9678 #define HAVE_GETPAGESIZE 1
9679 _ACEOF
9682 done
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9685 $as_echo_n "checking for working mmap... " >&6; }
9686 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 if test "$cross_compiling" = yes; then :
9690 ac_cv_func_mmap_fixed_mapped=no
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 $ac_includes_default
9695 /* malloc might have been renamed as rpl_malloc. */
9696 #undef malloc
9698 /* Thanks to Mike Haertel and Jim Avera for this test.
9699 Here is a matrix of mmap possibilities:
9700 mmap private not fixed
9701 mmap private fixed at somewhere currently unmapped
9702 mmap private fixed at somewhere already mapped
9703 mmap shared not fixed
9704 mmap shared fixed at somewhere currently unmapped
9705 mmap shared fixed at somewhere already mapped
9706 For private mappings, we should verify that changes cannot be read()
9707 back from the file, nor mmap's back from the file at a different
9708 address. (There have been systems where private was not correctly
9709 implemented like the infamous i386 svr4.0, and systems where the
9710 VM page cache was not coherent with the file system buffer cache
9711 like early versions of FreeBSD and possibly contemporary NetBSD.)
9712 For shared mappings, we should conversely verify that changes get
9713 propagated back to all the places they're supposed to be.
9715 Grep wants private fixed already mapped.
9716 The main things grep needs to know about mmap are:
9717 * does it exist and is it safe to write into the mmap'd area
9718 * how to use it (BSD variants) */
9720 #include <fcntl.h>
9721 #include <sys/mman.h>
9723 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9724 char *malloc ();
9725 #endif
9727 /* This mess was copied from the GNU getpagesize.h. */
9728 #ifndef HAVE_GETPAGESIZE
9729 # ifdef _SC_PAGESIZE
9730 # define getpagesize() sysconf(_SC_PAGESIZE)
9731 # else /* no _SC_PAGESIZE */
9732 # ifdef HAVE_SYS_PARAM_H
9733 # include <sys/param.h>
9734 # ifdef EXEC_PAGESIZE
9735 # define getpagesize() EXEC_PAGESIZE
9736 # else /* no EXEC_PAGESIZE */
9737 # ifdef NBPG
9738 # define getpagesize() NBPG * CLSIZE
9739 # ifndef CLSIZE
9740 # define CLSIZE 1
9741 # endif /* no CLSIZE */
9742 # else /* no NBPG */
9743 # ifdef NBPC
9744 # define getpagesize() NBPC
9745 # else /* no NBPC */
9746 # ifdef PAGESIZE
9747 # define getpagesize() PAGESIZE
9748 # endif /* PAGESIZE */
9749 # endif /* no NBPC */
9750 # endif /* no NBPG */
9751 # endif /* no EXEC_PAGESIZE */
9752 # else /* no HAVE_SYS_PARAM_H */
9753 # define getpagesize() 8192 /* punt totally */
9754 # endif /* no HAVE_SYS_PARAM_H */
9755 # endif /* no _SC_PAGESIZE */
9757 #endif /* no HAVE_GETPAGESIZE */
9760 main ()
9762 char *data, *data2, *data3;
9763 const char *cdata2;
9764 int i, pagesize;
9765 int fd, fd2;
9767 pagesize = getpagesize ();
9769 /* First, make a file with some known garbage in it. */
9770 data = (char *) malloc (pagesize);
9771 if (!data)
9772 return 1;
9773 for (i = 0; i < pagesize; ++i)
9774 *(data + i) = rand ();
9775 umask (0);
9776 fd = creat ("conftest.mmap", 0600);
9777 if (fd < 0)
9778 return 2;
9779 if (write (fd, data, pagesize) != pagesize)
9780 return 3;
9781 close (fd);
9783 /* Next, check that the tail of a page is zero-filled. File must have
9784 non-zero length, otherwise we risk SIGBUS for entire page. */
9785 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9786 if (fd2 < 0)
9787 return 4;
9788 cdata2 = "";
9789 if (write (fd2, cdata2, 1) != 1)
9790 return 5;
9791 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9792 if (data2 == MAP_FAILED)
9793 return 6;
9794 for (i = 0; i < pagesize; ++i)
9795 if (*(data2 + i))
9796 return 7;
9797 close (fd2);
9798 if (munmap (data2, pagesize))
9799 return 8;
9801 /* Next, try to mmap the file at a fixed address which already has
9802 something else allocated at it. If we can, also make sure that
9803 we see the same garbage. */
9804 fd = open ("conftest.mmap", O_RDWR);
9805 if (fd < 0)
9806 return 9;
9807 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9808 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9809 return 10;
9810 for (i = 0; i < pagesize; ++i)
9811 if (*(data + i) != *(data2 + i))
9812 return 11;
9814 /* Finally, make sure that changes to the mapped area do not
9815 percolate back to the file as seen by read(). (This is a bug on
9816 some variants of i386 svr4.0.) */
9817 for (i = 0; i < pagesize; ++i)
9818 *(data2 + i) = *(data2 + i) + 1;
9819 data3 = (char *) malloc (pagesize);
9820 if (!data3)
9821 return 12;
9822 if (read (fd, data3, pagesize) != pagesize)
9823 return 13;
9824 for (i = 0; i < pagesize; ++i)
9825 if (*(data + i) != *(data3 + i))
9826 return 14;
9827 close (fd);
9828 return 0;
9830 _ACEOF
9831 if ac_fn_c_try_run "$LINENO"; then :
9832 ac_cv_func_mmap_fixed_mapped=yes
9833 else
9834 ac_cv_func_mmap_fixed_mapped=no
9836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9837 conftest.$ac_objext conftest.beam conftest.$ac_ext
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9842 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9843 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9845 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9848 rm -f conftest.mmap conftest.txt
9850 if test $use_mmap_for_buffers = yes; then
9852 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9854 REL_ALLOC=no
9857 LIBS="$LIBS_SYSTEM $LIBS"
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9860 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9861 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 ac_check_lib_save_LIBS=$LIBS
9865 LIBS="-ldnet $LIBS"
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9869 /* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
9872 #ifdef __cplusplus
9873 extern "C"
9874 #endif
9875 char dnet_ntoa ();
9877 main ()
9879 return dnet_ntoa ();
9881 return 0;
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 ac_cv_lib_dnet_dnet_ntoa=yes
9886 else
9887 ac_cv_lib_dnet_dnet_ntoa=no
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9894 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9895 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9896 cat >>confdefs.h <<_ACEOF
9897 #define HAVE_LIBDNET 1
9898 _ACEOF
9900 LIBS="-ldnet $LIBS"
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9906 $as_echo_n "checking for main in -lXbsd... " >&6; }
9907 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 ac_check_lib_save_LIBS=$LIBS
9911 LIBS="-lXbsd $LIBS"
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9917 main ()
9919 return main ();
9921 return 0;
9923 _ACEOF
9924 if ac_fn_c_try_link "$LINENO"; then :
9925 ac_cv_lib_Xbsd_main=yes
9926 else
9927 ac_cv_lib_Xbsd_main=no
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LIBS=$ac_check_lib_save_LIBS
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9934 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9935 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9936 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9941 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9942 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 ac_check_lib_save_LIBS=$LIBS
9946 LIBS="-lpthreads $LIBS"
9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9950 /* Override any GCC internal prototype to avoid an error.
9951 Use char because int might match the return type of a GCC
9952 builtin and then its argument prototype would still apply. */
9953 #ifdef __cplusplus
9954 extern "C"
9955 #endif
9956 char cma_open ();
9958 main ()
9960 return cma_open ();
9962 return 0;
9964 _ACEOF
9965 if ac_fn_c_try_link "$LINENO"; then :
9966 ac_cv_lib_pthreads_cma_open=yes
9967 else
9968 ac_cv_lib_pthreads_cma_open=no
9970 rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972 LIBS=$ac_check_lib_save_LIBS
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9975 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9976 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9977 cat >>confdefs.h <<_ACEOF
9978 #define HAVE_LIBPTHREADS 1
9979 _ACEOF
9981 LIBS="-lpthreads $LIBS"
9986 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9987 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9988 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9989 ## added to LIBS in configure would never contain the pthreads part,
9990 ## but the value used in Makefiles might. FIXME?
9992 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9993 ## be harmless on older versions of X where it happens to exist.
9994 test "$opsys" = "aix4-2" && \
9995 test $ac_cv_lib_pthreads_cma_open = yes && \
9996 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9999 case ${host_os} in
10000 aix*)
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10002 $as_echo_n "checking for -bbigtoc option... " >&6; }
10003 if test "${gdb_cv_bigtoc+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10007 case $GCC in
10008 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10009 *) gdb_cv_bigtoc=-bbigtoc ;;
10010 esac
10012 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10017 main ()
10019 int i;
10021 return 0;
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"; then :
10026 else
10027 gdb_cv_bigtoc=
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10034 $as_echo "$gdb_cv_bigtoc" >&6; }
10036 esac
10038 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10039 # used for the tests that follow. We set them back to REAL_CFLAGS and
10040 # REAL_CPPFLAGS later on.
10042 REAL_CFLAGS="$CFLAGS"
10043 REAL_CPPFLAGS="$CPPFLAGS"
10045 if test "${HAVE_X11}" = "yes"; then
10046 DEFS="$C_SWITCH_X_SITE $DEFS"
10047 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10048 LIBS="-lX11 $LIBS"
10049 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10050 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10052 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10053 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10054 # but it's more convenient here to set LD_RUN_PATH
10055 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10056 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10057 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10058 export LD_RUN_PATH
10061 if test "${opsys}" = "gnu-linux"; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10063 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10068 main ()
10070 XOpenDisplay ("foo");
10072 return 0;
10074 _ACEOF
10075 if ac_fn_c_try_link "$LINENO"; then :
10076 xlinux_first_failure=no
10077 else
10078 xlinux_first_failure=yes
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10082 if test "${xlinux_first_failure}" = "yes"; then
10083 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10084 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10085 OLD_CPPFLAGS="$CPPFLAGS"
10086 OLD_LIBS="$LIBS"
10087 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10088 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10089 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10090 LIBS="$LIBS -b i486-linuxaout"
10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10095 main ()
10097 XOpenDisplay ("foo");
10099 return 0;
10101 _ACEOF
10102 if ac_fn_c_try_link "$LINENO"; then :
10103 xlinux_second_failure=no
10104 else
10105 xlinux_second_failure=yes
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 if test "${xlinux_second_failure}" = "yes"; then
10110 # If we get the same failure with -b, there is no use adding -b.
10111 # So take it out. This plays safe.
10112 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10113 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10114 CPPFLAGS="$OLD_CPPFLAGS"
10115 LIBS="$OLD_LIBS"
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10120 $as_echo "yes" >&6; }
10122 else
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10128 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10129 # header files included from there.
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
10131 $as_echo_n "checking for Xkb... " >&6; }
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 #include <X11/Xlib.h>
10135 #include <X11/XKBlib.h>
10137 main ()
10139 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10141 return 0;
10143 _ACEOF
10144 if ac_fn_c_try_link "$LINENO"; then :
10145 emacs_xkb=yes
10146 else
10147 emacs_xkb=no
10149 rm -f core conftest.err conftest.$ac_objext \
10150 conftest$ac_exeext conftest.$ac_ext
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
10152 $as_echo "$emacs_xkb" >&6; }
10153 if test $emacs_xkb = yes; then
10155 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
10159 for ac_func in XrmSetDatabase XScreenResourceString \
10160 XScreenNumberOfScreen XSetWMProtocols
10161 do :
10162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10164 eval as_val=\$$as_ac_var
10165 if test "x$as_val" = x""yes; then :
10166 cat >>confdefs.h <<_ACEOF
10167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10168 _ACEOF
10171 done
10175 if test "${window_system}" = "x11"; then
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
10177 $as_echo_n "checking X11 version 6... " >&6; }
10178 if test "${emacs_cv_x11_version_6+set}" = set; then :
10179 $as_echo_n "(cached) " >&6
10180 else
10181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10183 #include <X11/Xlib.h>
10185 main ()
10187 #if XlibSpecificationRelease < 6
10188 fail;
10189 #endif
10192 return 0;
10194 _ACEOF
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 emacs_cv_x11_version_6=yes
10197 else
10198 emacs_cv_x11_version_6=no
10200 rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10204 if test $emacs_cv_x11_version_6 = yes; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10206 $as_echo "6 or newer" >&6; }
10208 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
10211 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
10213 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
10214 ## XIM support.
10215 case "$opsys" in
10216 sol2-*) : ;;
10218 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
10221 esac
10222 else
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10224 $as_echo "before 6" >&6; }
10229 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10230 HAVE_RSVG=no
10231 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
10232 if test "${with_rsvg}" != "no"; then
10233 RSVG_REQUIRED=2.11.0
10234 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10237 succeeded=no
10239 # Extract the first word of "pkg-config", so it can be a program name with args.
10240 set dummy pkg-config; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 case $PKG_CONFIG in
10247 [\\/]* | ?:[\\/]*)
10248 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 break 2
10262 done
10263 done
10264 IFS=$as_save_IFS
10266 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10268 esac
10270 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10271 if test -n "$PKG_CONFIG"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10273 $as_echo "$PKG_CONFIG" >&6; }
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10276 $as_echo "no" >&6; }
10281 if test "$PKG_CONFIG" = "no" ; then
10283 else
10284 PKG_CONFIG_MIN_VERSION=0.9.0
10285 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
10287 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
10289 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10291 $as_echo "yes" >&6; }
10292 succeeded=yes
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
10295 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
10296 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
10298 $as_echo "$RSVG_CFLAGS" >&6; }
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
10301 $as_echo_n "checking RSVG_LIBS... " >&6; }
10302 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
10304 $as_echo "$RSVG_LIBS" >&6; }
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307 $as_echo "no" >&6; }
10308 RSVG_CFLAGS=""
10309 RSVG_LIBS=""
10310 ## If we have a custom action on failure, don't print errors, but
10311 ## do set a variable so people can do so.
10312 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10318 else
10319 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10320 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10324 if test $succeeded = yes; then
10325 HAVE_RSVG=yes
10326 else
10333 if test $HAVE_RSVG = yes; then
10335 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10337 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10338 LIBS="$RSVG_LIBS $LIBS"
10343 HAVE_IMAGEMAGICK=no
10344 if test "${HAVE_X11}" = "yes"; then
10345 if test "${with_imagemagick}" != "no"; then
10346 ## 6.2.8 is the earliest version known to work, but earlier versions
10347 ## might work - let us know if you find one.
10348 ## 6.0.7 does not work. See bug#7955.
10349 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10351 succeeded=no
10353 # Extract the first word of "pkg-config", so it can be a program name with args.
10354 set dummy pkg-config; ac_word=$2
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356 $as_echo_n "checking for $ac_word... " >&6; }
10357 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10359 else
10360 case $PKG_CONFIG in
10361 [\\/]* | ?:[\\/]*)
10362 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10376 done
10377 done
10378 IFS=$as_save_IFS
10380 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10382 esac
10384 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10385 if test -n "$PKG_CONFIG"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10387 $as_echo "$PKG_CONFIG" >&6; }
10388 else
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10395 if test "$PKG_CONFIG" = "no" ; then
10397 else
10398 PKG_CONFIG_MIN_VERSION=0.9.0
10399 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10401 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10403 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10405 $as_echo "yes" >&6; }
10406 succeeded=yes
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10409 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10410 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10412 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10415 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10416 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10418 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10419 else
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421 $as_echo "no" >&6; }
10422 IMAGEMAGICK_CFLAGS=""
10423 IMAGEMAGICK_LIBS=""
10424 ## If we have a custom action on failure, don't print errors, but
10425 ## do set a variable so people can do so.
10426 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10432 else
10433 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10434 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10438 if test $succeeded = yes; then
10439 HAVE_IMAGEMAGICK=yes
10440 else
10447 if test $HAVE_IMAGEMAGICK = yes; then
10449 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10451 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10452 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10453 for ac_func in MagickExportImagePixels
10454 do :
10455 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10456 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10459 _ACEOF
10462 done
10469 HAVE_GTK=no
10470 if test "${with_gtk3}" = "yes"; then
10471 GLIB_REQUIRED=2.28
10472 GTK_REQUIRED=3.0
10473 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10476 succeeded=no
10478 # Extract the first word of "pkg-config", so it can be a program name with args.
10479 set dummy pkg-config; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10484 else
10485 case $PKG_CONFIG in
10486 [\\/]* | ?:[\\/]*)
10487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10499 break 2
10501 done
10502 done
10503 IFS=$as_save_IFS
10505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10507 esac
10509 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10510 if test -n "$PKG_CONFIG"; then
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10512 $as_echo "$PKG_CONFIG" >&6; }
10513 else
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10515 $as_echo "no" >&6; }
10520 if test "$PKG_CONFIG" = "no" ; then
10521 pkg_check_gtk=no
10522 else
10523 PKG_CONFIG_MIN_VERSION=0.9.0
10524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10526 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10528 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10530 $as_echo "yes" >&6; }
10531 succeeded=yes
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10534 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10535 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10537 $as_echo "$GTK_CFLAGS" >&6; }
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10540 $as_echo_n "checking GTK_LIBS... " >&6; }
10541 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10543 $as_echo "$GTK_LIBS" >&6; }
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10547 GTK_CFLAGS=""
10548 GTK_LIBS=""
10549 ## If we have a custom action on failure, don't print errors, but
10550 ## do set a variable so people can do so.
10551 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10557 else
10558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10563 if test $succeeded = yes; then
10564 pkg_check_gtk=yes
10565 else
10566 pkg_check_gtk=no
10569 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10570 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10573 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10577 if test "$pkg_check_gtk" != "yes"; then
10578 HAVE_GTK=no
10579 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10580 GLIB_REQUIRED=2.6
10581 GTK_REQUIRED=2.6
10582 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10585 succeeded=no
10587 # Extract the first word of "pkg-config", so it can be a program name with args.
10588 set dummy pkg-config; ac_word=$2
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590 $as_echo_n "checking for $ac_word... " >&6; }
10591 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 case $PKG_CONFIG in
10595 [\\/]* | ?:[\\/]*)
10596 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600 for as_dir in $PATH
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
10604 for ac_exec_ext in '' $ac_executable_extensions; do
10605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10606 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 break 2
10610 done
10611 done
10612 IFS=$as_save_IFS
10614 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10616 esac
10618 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10619 if test -n "$PKG_CONFIG"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10621 $as_echo "$PKG_CONFIG" >&6; }
10622 else
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10629 if test "$PKG_CONFIG" = "no" ; then
10630 pkg_check_gtk=no
10631 else
10632 PKG_CONFIG_MIN_VERSION=0.9.0
10633 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10635 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10637 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10639 $as_echo "yes" >&6; }
10640 succeeded=yes
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10643 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10644 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10646 $as_echo "$GTK_CFLAGS" >&6; }
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10649 $as_echo_n "checking GTK_LIBS... " >&6; }
10650 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10652 $as_echo "$GTK_LIBS" >&6; }
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10656 GTK_CFLAGS=""
10657 GTK_LIBS=""
10658 ## If we have a custom action on failure, don't print errors, but
10659 ## do set a variable so people can do so.
10660 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10666 else
10667 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10668 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10672 if test $succeeded = yes; then
10673 pkg_check_gtk=yes
10674 else
10675 pkg_check_gtk=no
10678 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10679 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10684 GTK_OBJ=
10685 if test x"$pkg_check_gtk" = xyes; then
10689 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10690 CFLAGS="$CFLAGS $GTK_CFLAGS"
10691 LIBS="$GTK_LIBS $LIBS"
10692 GTK_COMPILES=no
10693 for ac_func in gtk_main
10694 do :
10695 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10696 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10697 cat >>confdefs.h <<_ACEOF
10698 #define HAVE_GTK_MAIN 1
10699 _ACEOF
10700 GTK_COMPILES=yes
10702 done
10704 if test "${GTK_COMPILES}" != "yes"; then
10705 if test "$USE_X_TOOLKIT" != "maybe"; then
10706 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10708 else
10709 HAVE_GTK=yes
10711 $as_echo "#define USE_GTK 1" >>confdefs.h
10713 GTK_OBJ=gtkutil.o
10714 USE_X_TOOLKIT=none
10715 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10717 else
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10719 closing open displays. This is no problem if you just use
10720 one display, but if you use more than one and close one of them
10721 Emacs may crash." >&5
10722 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10723 closing open displays. This is no problem if you just use
10724 one display, but if you use more than one and close one of them
10725 Emacs may crash." >&2;}
10726 sleep 3
10734 if test "${HAVE_GTK}" = "yes"; then
10736 if test "$with_toolkit_scroll_bars" != no; then
10737 with_toolkit_scroll_bars=yes
10740 HAVE_GTK_FILE_SELECTION=no
10741 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10742 #include <gtk/gtk.h>
10744 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10745 HAVE_GTK_FILE_SELECTION=yes
10746 else
10747 HAVE_GTK_FILE_SELECTION=no
10750 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10751 for ac_func in gtk_file_selection_new
10752 do :
10753 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10754 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10755 cat >>confdefs.h <<_ACEOF
10756 #define HAVE_GTK_FILE_SELECTION_NEW 1
10757 _ACEOF
10760 done
10764 HAVE_GTK_AND_PTHREAD=no
10765 for ac_header in pthread.h
10766 do :
10767 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10768 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10769 cat >>confdefs.h <<_ACEOF
10770 #define HAVE_PTHREAD_H 1
10771 _ACEOF
10775 done
10777 if test "$ac_cv_header_pthread_h"; then
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10779 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10780 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 ac_check_lib_save_LIBS=$LIBS
10784 LIBS="-lpthread $LIBS"
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10788 /* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
10791 #ifdef __cplusplus
10792 extern "C"
10793 #endif
10794 char pthread_self ();
10796 main ()
10798 return pthread_self ();
10800 return 0;
10802 _ACEOF
10803 if ac_fn_c_try_link "$LINENO"; then :
10804 ac_cv_lib_pthread_pthread_self=yes
10805 else
10806 ac_cv_lib_pthread_pthread_self=no
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10813 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10814 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10815 HAVE_GTK_AND_PTHREAD=yes
10819 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10820 case "${canonical}" in
10821 *-hpux*) ;;
10822 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10823 esac
10825 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10829 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10830 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10831 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10832 gtk_orientable_set_orientation
10833 do :
10834 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10835 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10836 eval as_val=\$$as_ac_var
10837 if test "x$as_val" = x""yes; then :
10838 cat >>confdefs.h <<_ACEOF
10839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10840 _ACEOF
10843 done
10848 HAVE_DBUS=no
10849 DBUS_OBJ=
10850 if test "${with_dbus}" = "yes"; then
10852 succeeded=no
10854 # Extract the first word of "pkg-config", so it can be a program name with args.
10855 set dummy pkg-config; ac_word=$2
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10857 $as_echo_n "checking for $ac_word... " >&6; }
10858 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 case $PKG_CONFIG in
10862 [\\/]* | ?:[\\/]*)
10863 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10869 IFS=$as_save_IFS
10870 test -z "$as_dir" && as_dir=.
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10873 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875 break 2
10877 done
10878 done
10879 IFS=$as_save_IFS
10881 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10883 esac
10885 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10886 if test -n "$PKG_CONFIG"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10888 $as_echo "$PKG_CONFIG" >&6; }
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10896 if test "$PKG_CONFIG" = "no" ; then
10897 HAVE_DBUS=no
10898 else
10899 PKG_CONFIG_MIN_VERSION=0.9.0
10900 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10902 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10904 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10906 $as_echo "yes" >&6; }
10907 succeeded=yes
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10910 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10911 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10913 $as_echo "$DBUS_CFLAGS" >&6; }
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10916 $as_echo_n "checking DBUS_LIBS... " >&6; }
10917 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10919 $as_echo "$DBUS_LIBS" >&6; }
10920 else
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922 $as_echo "no" >&6; }
10923 DBUS_CFLAGS=""
10924 DBUS_LIBS=""
10925 ## If we have a custom action on failure, don't print errors, but
10926 ## do set a variable so people can do so.
10927 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10933 else
10934 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10935 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10939 if test $succeeded = yes; then
10940 HAVE_DBUS=yes
10941 else
10942 HAVE_DBUS=no
10945 if test "$HAVE_DBUS" = yes; then
10946 LIBS="$LIBS $DBUS_LIBS"
10948 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10950 for ac_func in dbus_watch_get_unix_fd
10951 do :
10952 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10953 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10954 cat >>confdefs.h <<_ACEOF
10955 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10956 _ACEOF
10959 done
10961 DBUS_OBJ=dbusbind.o
10966 HAVE_GCONF=no
10967 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10969 succeeded=no
10971 # Extract the first word of "pkg-config", so it can be a program name with args.
10972 set dummy pkg-config; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 case $PKG_CONFIG in
10979 [\\/]* | ?:[\\/]*)
10980 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10990 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992 break 2
10994 done
10995 done
10996 IFS=$as_save_IFS
10998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11000 esac
11002 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11003 if test -n "$PKG_CONFIG"; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11005 $as_echo "$PKG_CONFIG" >&6; }
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008 $as_echo "no" >&6; }
11013 if test "$PKG_CONFIG" = "no" ; then
11014 HAVE_GCONF=no
11015 else
11016 PKG_CONFIG_MIN_VERSION=0.9.0
11017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
11019 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
11021 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11023 $as_echo "yes" >&6; }
11024 succeeded=yes
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
11027 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
11028 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
11030 $as_echo "$GCONF_CFLAGS" >&6; }
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
11033 $as_echo_n "checking GCONF_LIBS... " >&6; }
11034 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
11036 $as_echo "$GCONF_LIBS" >&6; }
11037 else
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 $as_echo "no" >&6; }
11040 GCONF_CFLAGS=""
11041 GCONF_LIBS=""
11042 ## If we have a custom action on failure, don't print errors, but
11043 ## do set a variable so people can do so.
11044 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
11050 else
11051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11056 if test $succeeded = yes; then
11057 HAVE_GCONF=yes
11058 else
11059 HAVE_GCONF=no
11062 if test "$HAVE_GCONF" = yes; then
11064 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
11066 for ac_func in g_type_init
11067 do :
11068 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
11069 if test "x$ac_cv_func_g_type_init" = x""yes; then :
11070 cat >>confdefs.h <<_ACEOF
11071 #define HAVE_G_TYPE_INIT 1
11072 _ACEOF
11075 done
11080 HAVE_LIBSELINUX=no
11081 LIBSELINUX_LIBS=
11082 if test "${with_selinux}" = "yes"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
11084 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
11085 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
11086 $as_echo_n "(cached) " >&6
11087 else
11088 ac_check_lib_save_LIBS=$LIBS
11089 LIBS="-lselinux $LIBS"
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11093 /* Override any GCC internal prototype to avoid an error.
11094 Use char because int might match the return type of a GCC
11095 builtin and then its argument prototype would still apply. */
11096 #ifdef __cplusplus
11097 extern "C"
11098 #endif
11099 char lgetfilecon ();
11101 main ()
11103 return lgetfilecon ();
11105 return 0;
11107 _ACEOF
11108 if ac_fn_c_try_link "$LINENO"; then :
11109 ac_cv_lib_selinux_lgetfilecon=yes
11110 else
11111 ac_cv_lib_selinux_lgetfilecon=no
11113 rm -f core conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
11118 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
11119 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
11120 HAVE_LIBSELINUX=yes
11121 else
11122 HAVE_LIBSELINUX=no
11125 if test "$HAVE_LIBSELINUX" = yes; then
11127 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
11129 LIBSELINUX_LIBS=-lselinux
11134 HAVE_GNUTLS=no
11135 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no
11136 if test "${with_gnutls}" = "yes" ; then
11138 succeeded=no
11140 # Extract the first word of "pkg-config", so it can be a program name with args.
11141 set dummy pkg-config; ac_word=$2
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143 $as_echo_n "checking for $ac_word... " >&6; }
11144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 case $PKG_CONFIG in
11148 [\\/]* | ?:[\\/]*)
11149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153 for as_dir in $PATH
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11163 done
11164 done
11165 IFS=$as_save_IFS
11167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11169 esac
11171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11172 if test -n "$PKG_CONFIG"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11174 $as_echo "$PKG_CONFIG" >&6; }
11175 else
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11182 if test "$PKG_CONFIG" = "no" ; then
11183 HAVE_GNUTLS=no
11184 else
11185 PKG_CONFIG_MIN_VERSION=0.9.0
11186 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.0" >&5
11188 $as_echo_n "checking for gnutls >= 2.6.0... " >&6; }
11190 if $PKG_CONFIG --exists "gnutls >= 2.6.0" 2>&5; then
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192 $as_echo "yes" >&6; }
11193 succeeded=yes
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
11196 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
11197 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
11199 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
11202 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
11203 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.0"|sed -e 's,///*,/,g'`
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
11205 $as_echo "$LIBGNUTLS_LIBS" >&6; }
11206 else
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209 LIBGNUTLS_CFLAGS=""
11210 LIBGNUTLS_LIBS=""
11211 ## If we have a custom action on failure, don't print errors, but
11212 ## do set a variable so people can do so.
11213 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.6.0"`
11219 else
11220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11225 if test $succeeded = yes; then
11226 HAVE_GNUTLS=yes
11227 else
11228 HAVE_GNUTLS=no
11231 if test "${HAVE_GNUTLS}" = "yes"; then
11233 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
11237 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11238 LIBS="$LIBGNUTLS_LIBS $LIBS"
11239 for ac_func in gnutls_certificate_set_verify_function
11240 do :
11241 ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function"
11242 if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then :
11243 cat >>confdefs.h <<_ACEOF
11244 #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1
11245 _ACEOF
11246 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes
11248 done
11251 if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then
11253 $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h
11261 HAVE_XAW3D=no
11262 LUCID_LIBW=
11263 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11264 if test "$with_xaw3d" != no; then
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
11266 $as_echo_n "checking for xaw3d... " >&6; }
11267 if test "${emacs_cv_xaw3d+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11273 #include <X11/Intrinsic.h>
11274 #include <X11/Xaw3d/Simple.h>
11276 main ()
11280 return 0;
11282 _ACEOF
11283 if ac_fn_c_try_link "$LINENO"; then :
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11285 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
11286 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-lXaw3d $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char XawScrollbarSetThumb ();
11302 main ()
11304 return XawScrollbarSetThumb ();
11306 return 0;
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11311 else
11312 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11314 rm -f core conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11319 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11320 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
11321 emacs_cv_xaw3d=yes
11322 else
11323 emacs_cv_xaw3d=no
11326 else
11327 emacs_cv_xaw3d=no
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11333 else
11334 emacs_cv_xaw3d=no
11336 if test $emacs_cv_xaw3d = yes; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11338 $as_echo "yes; using Lucid toolkit" >&6; }
11339 USE_X_TOOLKIT=LUCID
11340 HAVE_XAW3D=yes
11341 LUCID_LIBW=-lXaw3d
11343 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
11349 $as_echo_n "checking for libXaw... " >&6; }
11350 if test "${emacs_cv_xaw+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11356 #include <X11/Intrinsic.h>
11357 #include <X11/Xaw/Simple.h>
11359 main ()
11363 return 0;
11365 _ACEOF
11366 if ac_fn_c_try_link "$LINENO"; then :
11367 emacs_cv_xaw=yes
11368 else
11369 emacs_cv_xaw=no
11371 rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext conftest.$ac_ext
11375 if test $emacs_cv_xaw = yes; then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11377 $as_echo "yes; using Lucid toolkit" >&6; }
11378 USE_X_TOOLKIT=LUCID
11379 LUCID_LIBW=-lXaw
11380 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11381 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11382 else
11383 as_fn_error "No X toolkit could be found.
11384 If you are sure you want Emacs compiled without an X toolkit, pass
11385 --with-x-toolkit=no
11386 to configure. Otherwise, install the development libraries for the toolkit
11387 that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5
11392 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11394 LIBXTR6=
11395 if test "${USE_X_TOOLKIT}" != "none"; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11397 $as_echo_n "checking X11 toolkit version... " >&6; }
11398 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403 #include <X11/Intrinsic.h>
11405 main ()
11407 #if XtSpecificationRelease < 6
11408 fail;
11409 #endif
11412 return 0;
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 emacs_cv_x11_toolkit_version_6=yes
11417 else
11418 emacs_cv_x11_toolkit_version_6=no
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11424 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11425 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11427 $as_echo "6 or newer" >&6; }
11429 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11431 LIBXTR6="-lSM -lICE"
11432 case "$opsys" in
11433 ## Use libw.a along with X11R6 Xt.
11434 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11435 esac
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11438 $as_echo "before 6" >&6; }
11441 OLDLIBS="$LIBS"
11442 if test x$HAVE_X11XTR6 = xyes; then
11443 LIBS="-lXt -lSM -lICE $LIBS"
11444 else
11445 LIBS="-lXt $LIBS"
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11448 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11449 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 ac_check_lib_save_LIBS=$LIBS
11453 LIBS="-lXmu $LIBS"
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11457 /* Override any GCC internal prototype to avoid an error.
11458 Use char because int might match the return type of a GCC
11459 builtin and then its argument prototype would still apply. */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 char XmuConvertStandardSelection ();
11465 main ()
11467 return XmuConvertStandardSelection ();
11469 return 0;
11471 _ACEOF
11472 if ac_fn_c_try_link "$LINENO"; then :
11473 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11474 else
11475 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11482 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11483 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11484 cat >>confdefs.h <<_ACEOF
11485 #define HAVE_LIBXMU 1
11486 _ACEOF
11488 LIBS="-lXmu $LIBS"
11492 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11496 LIBXMU=-lXmu
11497 case $opsys in
11498 ## These systems don't supply Xmu.
11499 hpux* | aix4-2 )
11500 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11502 esac
11505 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11506 if test "${HAVE_X11}" = "yes"; then
11507 if test "${USE_X_TOOLKIT}" != "none"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11509 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11510 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-lXext $LIBS"
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char XShapeQueryExtension ();
11526 main ()
11528 return XShapeQueryExtension ();
11530 return 0;
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 ac_cv_lib_Xext_XShapeQueryExtension=yes
11535 else
11536 ac_cv_lib_Xext_XShapeQueryExtension=no
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11543 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11544 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11545 cat >>confdefs.h <<_ACEOF
11546 #define HAVE_LIBXEXT 1
11547 _ACEOF
11549 LIBS="-lXext $LIBS"
11556 LIBXP=
11557 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11559 $as_echo_n "checking for Motif version 2.1... " >&6; }
11560 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11565 #include <Xm/Xm.h>
11567 main ()
11569 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11570 int x = 5;
11571 #else
11572 Motif version prior to 2.1.
11573 #endif
11575 return 0;
11577 _ACEOF
11578 if ac_fn_c_try_compile "$LINENO"; then :
11579 emacs_cv_motif_version_2_1=yes
11580 else
11581 emacs_cv_motif_version_2_1=no
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11586 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11587 if test $emacs_cv_motif_version_2_1 = yes; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11589 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11590 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-lXp $LIBS"
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11601 #ifdef __cplusplus
11602 extern "C"
11603 #endif
11604 char XpCreateContext ();
11606 main ()
11608 return XpCreateContext ();
11610 return 0;
11612 _ACEOF
11613 if ac_fn_c_try_link "$LINENO"; then :
11614 ac_cv_lib_Xp_XpCreateContext=yes
11615 else
11616 ac_cv_lib_Xp_XpCreateContext=no
11618 rm -f core conftest.err conftest.$ac_objext \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11623 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11624 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11625 LIBXP=-lXp
11628 else
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11630 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11631 if test "${emacs_cv_lesstif+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 # We put this in CFLAGS temporarily to precede other -I options
11635 # that might be in CFLAGS temporarily.
11636 # We put this in CPPFLAGS where it precedes the other -I options.
11637 OLD_CPPFLAGS=$CPPFLAGS
11638 OLD_CFLAGS=$CFLAGS
11639 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11640 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11645 main ()
11647 int x = 5;
11649 return 0;
11651 _ACEOF
11652 if ac_fn_c_try_compile "$LINENO"; then :
11653 emacs_cv_lesstif=yes
11654 else
11655 emacs_cv_lesstif=no
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11660 $as_echo "$emacs_cv_lesstif" >&6; }
11661 if test $emacs_cv_lesstif = yes; then
11662 # Make sure this -I option remains in CPPFLAGS after it is set
11663 # back to REAL_CPPFLAGS.
11664 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11665 # have those other -I options anyway. Ultimately, having this
11666 # directory ultimately in CPPFLAGS will be enough.
11667 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11668 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11669 else
11670 CFLAGS=$OLD_CFLAGS
11671 CPPFLAGS=$OLD_CPPFLAGS
11677 USE_TOOLKIT_SCROLL_BARS=no
11678 if test "${with_toolkit_scroll_bars}" != "no"; then
11679 if test "${USE_X_TOOLKIT}" != "none"; then
11680 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11681 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11683 HAVE_XAW3D=no
11684 USE_TOOLKIT_SCROLL_BARS=yes
11685 elif test "${HAVE_XAW3D}" = "yes"; then
11686 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11688 USE_TOOLKIT_SCROLL_BARS=yes
11690 elif test "${HAVE_GTK}" = "yes"; then
11691 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11693 USE_TOOLKIT_SCROLL_BARS=yes
11694 elif test "${HAVE_NS}" = "yes"; then
11695 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11697 USE_TOOLKIT_SCROLL_BARS=yes
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11704 #include <X11/Xlib.h>
11705 #include <X11/Xresource.h>
11707 main ()
11709 XIMProc callback;
11711 return 0;
11713 _ACEOF
11714 if ac_fn_c_try_compile "$LINENO"; then :
11715 HAVE_XIM=yes
11717 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11719 else
11720 HAVE_XIM=no
11722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725 if test "${with_xim}" != "no"; then
11727 $as_echo "#define USE_XIM 1" >>confdefs.h
11732 if test "${HAVE_XIM}" != "no"; then
11733 late_CFLAGS=$CFLAGS
11734 if test "$GCC" = yes; then
11735 CFLAGS="$CFLAGS --pedantic-errors"
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11740 #include <X11/Xlib.h>
11741 #include <X11/Xresource.h>
11743 main ()
11745 Display *display;
11746 XrmDatabase db;
11747 char *res_name;
11748 char *res_class;
11749 XIMProc callback;
11750 XPointer *client_data;
11751 #ifndef __GNUC__
11752 /* If we're not using GCC, it's probably not XFree86, and this is
11753 probably right, but we can't use something like --pedantic-errors. */
11754 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11755 char*, XIMProc, XPointer*);
11756 #endif
11757 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11758 client_data);
11760 return 0;
11762 _ACEOF
11763 if ac_fn_c_try_compile "$LINENO"; then :
11764 emacs_cv_arg6_star=yes
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 if test "$emacs_cv_arg6_star" = yes; then
11768 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11770 else
11771 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11774 CFLAGS=$late_CFLAGS
11777 ### Start of font-backend (under any platform) section.
11778 # (nothing here yet -- this is a placeholder)
11779 ### End of font-backend (under any platform) section.
11781 ### Start of font-backend (under X11) section.
11782 if test "${HAVE_X11}" = "yes"; then
11784 succeeded=no
11786 # Extract the first word of "pkg-config", so it can be a program name with args.
11787 set dummy pkg-config; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 case $PKG_CONFIG in
11794 [\\/]* | ?:[\\/]*)
11795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11801 IFS=$as_save_IFS
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11805 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11807 break 2
11809 done
11810 done
11811 IFS=$as_save_IFS
11813 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11815 esac
11817 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11818 if test -n "$PKG_CONFIG"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11820 $as_echo "$PKG_CONFIG" >&6; }
11821 else
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 if test "$PKG_CONFIG" = "no" ; then
11829 HAVE_FC=no
11830 else
11831 PKG_CONFIG_MIN_VERSION=0.9.0
11832 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11834 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11836 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11838 $as_echo "yes" >&6; }
11839 succeeded=yes
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11842 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11843 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11845 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11848 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11849 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11851 $as_echo "$FONTCONFIG_LIBS" >&6; }
11852 else
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854 $as_echo "no" >&6; }
11855 FONTCONFIG_CFLAGS=""
11856 FONTCONFIG_LIBS=""
11857 ## If we have a custom action on failure, don't print errors, but
11858 ## do set a variable so people can do so.
11859 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11865 else
11866 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11867 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11871 if test $succeeded = yes; then
11872 HAVE_FC=yes
11873 else
11874 HAVE_FC=no
11878 ## Use -lXft if available, unless `--with-xft=no'.
11879 HAVE_XFT=maybe
11880 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11881 with_xft="no";
11883 if test "x${with_xft}" != "xno"; then
11886 succeeded=no
11888 # Extract the first word of "pkg-config", so it can be a program name with args.
11889 set dummy pkg-config; ac_word=$2
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891 $as_echo_n "checking for $ac_word... " >&6; }
11892 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11893 $as_echo_n "(cached) " >&6
11894 else
11895 case $PKG_CONFIG in
11896 [\\/]* | ?:[\\/]*)
11897 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901 for as_dir in $PATH
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11907 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 break 2
11911 done
11912 done
11913 IFS=$as_save_IFS
11915 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11917 esac
11919 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11920 if test -n "$PKG_CONFIG"; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11922 $as_echo "$PKG_CONFIG" >&6; }
11923 else
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11925 $as_echo "no" >&6; }
11930 if test "$PKG_CONFIG" = "no" ; then
11931 HAVE_XFT=no
11932 else
11933 PKG_CONFIG_MIN_VERSION=0.9.0
11934 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11936 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11938 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11940 $as_echo "yes" >&6; }
11941 succeeded=yes
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11944 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11945 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11947 $as_echo "$XFT_CFLAGS" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11950 $as_echo_n "checking XFT_LIBS... " >&6; }
11951 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11953 $as_echo "$XFT_LIBS" >&6; }
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11956 $as_echo "no" >&6; }
11957 XFT_CFLAGS=""
11958 XFT_LIBS=""
11959 ## If we have a custom action on failure, don't print errors, but
11960 ## do set a variable so people can do so.
11961 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11967 else
11968 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11969 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11973 if test $succeeded = yes; then
11975 else
11976 HAVE_XFT=no
11979 ## Because xftfont.c uses XRenderQueryExtension, we also
11980 ## need to link to -lXrender.
11981 HAVE_XRENDER=no
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11983 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11984 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 ac_check_lib_save_LIBS=$LIBS
11988 LIBS="-lXrender $LIBS"
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11992 /* Override any GCC internal prototype to avoid an error.
11993 Use char because int might match the return type of a GCC
11994 builtin and then its argument prototype would still apply. */
11995 #ifdef __cplusplus
11996 extern "C"
11997 #endif
11998 char XRenderQueryExtension ();
12000 main ()
12002 return XRenderQueryExtension ();
12004 return 0;
12006 _ACEOF
12007 if ac_fn_c_try_link "$LINENO"; then :
12008 ac_cv_lib_Xrender_XRenderQueryExtension=yes
12009 else
12010 ac_cv_lib_Xrender_XRenderQueryExtension=no
12012 rm -f core conftest.err conftest.$ac_objext \
12013 conftest$ac_exeext conftest.$ac_ext
12014 LIBS=$ac_check_lib_save_LIBS
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
12017 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
12018 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
12019 HAVE_XRENDER=yes
12022 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
12023 OLD_CPPFLAGS="$CPPFLAGS"
12024 OLD_CFLAGS="$CFLAGS"
12025 OLD_LIBS="$LIBS"
12026 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12027 CFLAGS="$CFLAGS $XFT_CFLAGS"
12028 XFT_LIBS="-lXrender $XFT_LIBS"
12029 LIBS="$XFT_LIBS $LIBS"
12030 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12031 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
12033 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
12034 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 ac_check_lib_save_LIBS=$LIBS
12038 LIBS="-lXft $XFT_LIBS $LIBS"
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12042 /* Override any GCC internal prototype to avoid an error.
12043 Use char because int might match the return type of a GCC
12044 builtin and then its argument prototype would still apply. */
12045 #ifdef __cplusplus
12046 extern "C"
12047 #endif
12048 char XftFontOpen ();
12050 main ()
12052 return XftFontOpen ();
12054 return 0;
12056 _ACEOF
12057 if ac_fn_c_try_link "$LINENO"; then :
12058 ac_cv_lib_Xft_XftFontOpen=yes
12059 else
12060 ac_cv_lib_Xft_XftFontOpen=no
12062 rm -f core conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12064 LIBS=$ac_check_lib_save_LIBS
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12067 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
12068 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
12069 HAVE_XFT=yes
12076 if test "${HAVE_XFT}" = "yes"; then
12078 $as_echo "#define HAVE_XFT 1" >>confdefs.h
12081 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12082 else
12083 CPPFLAGS="$OLD_CPPFLAGS"
12084 CFLAGS="$OLD_CFLAGS"
12085 LIBS="$OLD_LIBS"
12086 fi # "${HAVE_XFT}" = "yes"
12087 fi # "$HAVE_XFT" != no
12088 fi # "x${with_xft}" != "xno"
12090 ## We used to allow building with FreeType and without Xft.
12091 ## However, the ftx font backend driver is not in good shape.
12092 if test "$HAVE_XFT" != "yes"; then
12093 HAVE_XFT=no
12094 HAVE_FREETYPE=no
12095 else
12097 succeeded=no
12099 # Extract the first word of "pkg-config", so it can be a program name with args.
12100 set dummy pkg-config; ac_word=$2
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102 $as_echo_n "checking for $ac_word... " >&6; }
12103 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
12105 else
12106 case $PKG_CONFIG in
12107 [\\/]* | ?:[\\/]*)
12108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112 for as_dir in $PATH
12114 IFS=$as_save_IFS
12115 test -z "$as_dir" && as_dir=.
12116 for ac_exec_ext in '' $ac_executable_extensions; do
12117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12120 break 2
12122 done
12123 done
12124 IFS=$as_save_IFS
12126 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12128 esac
12130 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12131 if test -n "$PKG_CONFIG"; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12133 $as_echo "$PKG_CONFIG" >&6; }
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12141 if test "$PKG_CONFIG" = "no" ; then
12142 HAVE_FREETYPE=no
12143 else
12144 PKG_CONFIG_MIN_VERSION=0.9.0
12145 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
12147 $as_echo_n "checking for freetype2... " >&6; }
12149 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12151 $as_echo "yes" >&6; }
12152 succeeded=yes
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
12155 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
12156 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
12158 $as_echo "$FREETYPE_CFLAGS" >&6; }
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
12161 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
12162 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
12164 $as_echo "$FREETYPE_LIBS" >&6; }
12165 else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12168 FREETYPE_CFLAGS=""
12169 FREETYPE_LIBS=""
12170 ## If we have a custom action on failure, don't print errors, but
12171 ## do set a variable so people can do so.
12172 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12178 else
12179 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12180 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12184 if test $succeeded = yes; then
12185 HAVE_FREETYPE=yes
12186 else
12187 HAVE_FREETYPE=no
12191 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
12194 HAVE_LIBOTF=no
12195 if test "${HAVE_FREETYPE}" = "yes"; then
12197 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12199 if test "${with_libotf}" != "no"; then
12201 succeeded=no
12203 # Extract the first word of "pkg-config", so it can be a program name with args.
12204 set dummy pkg-config; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 case $PKG_CONFIG in
12211 [\\/]* | ?:[\\/]*)
12212 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
12221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224 break 2
12226 done
12227 done
12228 IFS=$as_save_IFS
12230 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12232 esac
12234 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12235 if test -n "$PKG_CONFIG"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12237 $as_echo "$PKG_CONFIG" >&6; }
12238 else
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12245 if test "$PKG_CONFIG" = "no" ; then
12246 HAVE_LIBOTF=no
12247 else
12248 PKG_CONFIG_MIN_VERSION=0.9.0
12249 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
12251 $as_echo_n "checking for libotf... " >&6; }
12253 if $PKG_CONFIG --exists "libotf" 2>&5; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12255 $as_echo "yes" >&6; }
12256 succeeded=yes
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
12259 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
12260 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
12262 $as_echo "$LIBOTF_CFLAGS" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
12265 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
12266 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
12268 $as_echo "$LIBOTF_LIBS" >&6; }
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271 $as_echo "no" >&6; }
12272 LIBOTF_CFLAGS=""
12273 LIBOTF_LIBS=""
12274 ## If we have a custom action on failure, don't print errors, but
12275 ## do set a variable so people can do so.
12276 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
12282 else
12283 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12284 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12288 if test $succeeded = yes; then
12289 HAVE_LIBOTF=yes
12290 else
12291 HAVE_LIBOTF=no
12294 if test "$HAVE_LIBOTF" = "yes"; then
12296 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
12299 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
12300 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 ac_check_lib_save_LIBS=$LIBS
12304 LIBS="-lotf $LIBS"
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12308 /* Override any GCC internal prototype to avoid an error.
12309 Use char because int might match the return type of a GCC
12310 builtin and then its argument prototype would still apply. */
12311 #ifdef __cplusplus
12312 extern "C"
12313 #endif
12314 char OTF_get_variation_glyphs ();
12316 main ()
12318 return OTF_get_variation_glyphs ();
12320 return 0;
12322 _ACEOF
12323 if ac_fn_c_try_link "$LINENO"; then :
12324 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
12325 else
12326 ac_cv_lib_otf_OTF_get_variation_glyphs=no
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
12333 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
12334 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
12335 HAVE_OTF_GET_VARIATION_GLYPHS=yes
12336 else
12337 HAVE_OTF_GET_VARIATION_GLYPHS=no
12340 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
12342 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
12349 HAVE_M17N_FLT=no
12350 if test "${HAVE_LIBOTF}" = yes; then
12351 if test "${with_m17n_flt}" != "no"; then
12353 succeeded=no
12355 # Extract the first word of "pkg-config", so it can be a program name with args.
12356 set dummy pkg-config; ac_word=$2
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12358 $as_echo_n "checking for $ac_word... " >&6; }
12359 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 case $PKG_CONFIG in
12363 [\\/]* | ?:[\\/]*)
12364 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376 break 2
12378 done
12379 done
12380 IFS=$as_save_IFS
12382 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12384 esac
12386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12387 if test -n "$PKG_CONFIG"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12389 $as_echo "$PKG_CONFIG" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 $as_echo "no" >&6; }
12397 if test "$PKG_CONFIG" = "no" ; then
12398 HAVE_M17N_FLT=no
12399 else
12400 PKG_CONFIG_MIN_VERSION=0.9.0
12401 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12403 $as_echo_n "checking for m17n-flt... " >&6; }
12405 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12407 $as_echo "yes" >&6; }
12408 succeeded=yes
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12411 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12412 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12414 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12417 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12418 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12420 $as_echo "$M17N_FLT_LIBS" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424 M17N_FLT_CFLAGS=""
12425 M17N_FLT_LIBS=""
12426 ## If we have a custom action on failure, don't print errors, but
12427 ## do set a variable so people can do so.
12428 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12434 else
12435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12440 if test $succeeded = yes; then
12441 HAVE_M17N_FLT=yes
12442 else
12443 HAVE_M17N_FLT=no
12446 if test "$HAVE_M17N_FLT" = "yes"; then
12448 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12453 else
12454 HAVE_XFT=no
12455 HAVE_FREETYPE=no
12456 HAVE_LIBOTF=no
12457 HAVE_M17N_FLT=no
12460 ### End of font-backend (under X11) section.
12471 ### Use -lXpm if available, unless `--with-xpm=no'.
12472 HAVE_XPM=no
12473 LIBXPM=
12474 if test "${HAVE_X11}" = "yes"; then
12475 if test "${with_xpm}" != "no"; then
12476 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12477 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12479 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12480 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483 ac_check_lib_save_LIBS=$LIBS
12484 LIBS="-lXpm -lX11 $LIBS"
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12488 /* Override any GCC internal prototype to avoid an error.
12489 Use char because int might match the return type of a GCC
12490 builtin and then its argument prototype would still apply. */
12491 #ifdef __cplusplus
12492 extern "C"
12493 #endif
12494 char XpmReadFileToPixmap ();
12496 main ()
12498 return XpmReadFileToPixmap ();
12500 return 0;
12502 _ACEOF
12503 if ac_fn_c_try_link "$LINENO"; then :
12504 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12505 else
12506 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12508 rm -f core conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12510 LIBS=$ac_check_lib_save_LIBS
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12513 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12514 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12515 HAVE_XPM=yes
12521 if test "${HAVE_XPM}" = "yes"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12523 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h. */
12526 #include "X11/xpm.h"
12527 #ifndef XpmReturnAllocPixels
12528 no_return_alloc_pixels
12529 #endif
12531 _ACEOF
12532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12533 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12534 HAVE_XPM=no
12535 else
12536 HAVE_XPM=yes
12538 rm -f conftest*
12541 if test "${HAVE_XPM}" = "yes"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12543 $as_echo "yes" >&6; }
12544 else
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12551 if test "${HAVE_XPM}" = "yes"; then
12553 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12555 LIBXPM=-lXpm
12560 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12561 HAVE_JPEG=no
12562 LIBJPEG=
12563 if test "${HAVE_X11}" = "yes"; then
12564 if test "${with_jpeg}" != "no"; then
12565 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12566 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12568 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12569 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 ac_check_lib_save_LIBS=$LIBS
12573 LIBS="-ljpeg $LIBS"
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12577 /* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580 #ifdef __cplusplus
12581 extern "C"
12582 #endif
12583 char jpeg_destroy_compress ();
12585 main ()
12587 return jpeg_destroy_compress ();
12589 return 0;
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12593 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12594 else
12595 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 LIBS=$ac_check_lib_save_LIBS
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12602 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12603 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12604 HAVE_JPEG=yes
12612 if test "${HAVE_JPEG}" = "yes"; then
12613 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 #include <jpeglib.h>
12618 version=JPEG_LIB_VERSION
12620 _ACEOF
12621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12622 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12623 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12627 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12628 HAVE_JPEG=no
12630 rm -f conftest*
12633 if test "${HAVE_JPEG}" = "yes"; then
12634 LIBJPEG=-ljpeg
12639 ### Use -lpng if available, unless `--with-png=no'.
12640 HAVE_PNG=no
12641 LIBPNG=
12642 if test "${HAVE_X11}" = "yes"; then
12643 if test "${with_png}" != "no"; then
12644 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12645 # in /usr/include/libpng.
12646 for ac_header in png.h libpng/png.h
12647 do :
12648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12649 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12650 eval as_val=\$$as_ac_Header
12651 if test "x$as_val" = x""yes; then :
12652 cat >>confdefs.h <<_ACEOF
12653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12654 _ACEOF
12658 done
12660 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12662 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12663 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 ac_check_lib_save_LIBS=$LIBS
12667 LIBS="-lpng -lz -lm $LIBS"
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12671 /* Override any GCC internal prototype to avoid an error.
12672 Use char because int might match the return type of a GCC
12673 builtin and then its argument prototype would still apply. */
12674 #ifdef __cplusplus
12675 extern "C"
12676 #endif
12677 char png_get_channels ();
12679 main ()
12681 return png_get_channels ();
12683 return 0;
12685 _ACEOF
12686 if ac_fn_c_try_link "$LINENO"; then :
12687 ac_cv_lib_png_png_get_channels=yes
12688 else
12689 ac_cv_lib_png_png_get_channels=no
12691 rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12696 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12697 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12698 HAVE_PNG=yes
12704 if test "${HAVE_PNG}" = "yes"; then
12706 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12708 LIBPNG="-lpng -lz -lm"
12713 ### Use -ltiff if available, unless `--with-tiff=no'.
12714 HAVE_TIFF=no
12715 LIBTIFF=
12716 if test "${HAVE_X11}" = "yes"; then
12717 if test "${with_tiff}" != "no"; then
12718 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12719 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12720 tifflibs="-lz -lm"
12721 # At least one tiff package requires the jpeg library.
12722 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12724 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12725 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 ac_check_lib_save_LIBS=$LIBS
12729 LIBS="-ltiff $tifflibs $LIBS"
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12733 /* Override any GCC internal prototype to avoid an error.
12734 Use char because int might match the return type of a GCC
12735 builtin and then its argument prototype would still apply. */
12736 #ifdef __cplusplus
12737 extern "C"
12738 #endif
12739 char TIFFGetVersion ();
12741 main ()
12743 return TIFFGetVersion ();
12745 return 0;
12747 _ACEOF
12748 if ac_fn_c_try_link "$LINENO"; then :
12749 ac_cv_lib_tiff_TIFFGetVersion=yes
12750 else
12751 ac_cv_lib_tiff_TIFFGetVersion=no
12753 rm -f core conftest.err conftest.$ac_objext \
12754 conftest$ac_exeext conftest.$ac_ext
12755 LIBS=$ac_check_lib_save_LIBS
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12758 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12759 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12760 HAVE_TIFF=yes
12768 if test "${HAVE_TIFF}" = "yes"; then
12770 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12772 LIBTIFF=-ltiff
12777 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12778 HAVE_GIF=no
12779 LIBGIF=
12780 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12781 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12782 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12783 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12784 # Earlier versions can crash Emacs.
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12786 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12787 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12788 $as_echo_n "(cached) " >&6
12789 else
12790 ac_check_lib_save_LIBS=$LIBS
12791 LIBS="-lgif $LIBS"
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12795 /* Override any GCC internal prototype to avoid an error.
12796 Use char because int might match the return type of a GCC
12797 builtin and then its argument prototype would still apply. */
12798 #ifdef __cplusplus
12799 extern "C"
12800 #endif
12801 char EGifPutExtensionLast ();
12803 main ()
12805 return EGifPutExtensionLast ();
12807 return 0;
12809 _ACEOF
12810 if ac_fn_c_try_link "$LINENO"; then :
12811 ac_cv_lib_gif_EGifPutExtensionLast=yes
12812 else
12813 ac_cv_lib_gif_EGifPutExtensionLast=no
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12817 LIBS=$ac_check_lib_save_LIBS
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12820 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12821 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12822 HAVE_GIF=yes
12823 else
12824 HAVE_GIF=maybe
12831 if test "$HAVE_GIF" = yes; then
12832 LIBGIF=-lgif
12833 elif test "$HAVE_GIF" = maybe; then
12834 # If gif_lib.h but no libgif, try libungif.
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12836 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12837 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12838 $as_echo_n "(cached) " >&6
12839 else
12840 ac_check_lib_save_LIBS=$LIBS
12841 LIBS="-lungif $LIBS"
12842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12848 #ifdef __cplusplus
12849 extern "C"
12850 #endif
12851 char EGifPutExtensionLast ();
12853 main ()
12855 return EGifPutExtensionLast ();
12857 return 0;
12859 _ACEOF
12860 if ac_fn_c_try_link "$LINENO"; then :
12861 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12862 else
12863 ac_cv_lib_ungif_EGifPutExtensionLast=no
12865 rm -f core conftest.err conftest.$ac_objext \
12866 conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12870 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12871 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12872 HAVE_GIF=yes
12873 else
12874 HAVE_GIF=no
12877 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12880 if test "${HAVE_GIF}" = "yes"; then
12882 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12888 if test "${HAVE_X11}" = "yes"; then
12889 MISSING=""
12890 WITH_NO=""
12891 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12892 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12893 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12894 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12895 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12896 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12897 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12898 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12899 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12900 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12902 if test "X${MISSING}" != X; then
12903 as_fn_error "The following required libraries were not found:
12904 $MISSING
12905 Maybe some development libraries/packages are missing?
12906 If you don't want to link with them give
12907 $WITH_NO
12908 as options to configure" "$LINENO" 5
12912 ### Use -lgpm if available, unless `--with-gpm=no'.
12913 HAVE_GPM=no
12914 LIBGPM=
12915 if test "${with_gpm}" != "no"; then
12916 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12917 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12919 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12920 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 ac_check_lib_save_LIBS=$LIBS
12924 LIBS="-lgpm $LIBS"
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12928 /* Override any GCC internal prototype to avoid an error.
12929 Use char because int might match the return type of a GCC
12930 builtin and then its argument prototype would still apply. */
12931 #ifdef __cplusplus
12932 extern "C"
12933 #endif
12934 char Gpm_Open ();
12936 main ()
12938 return Gpm_Open ();
12940 return 0;
12942 _ACEOF
12943 if ac_fn_c_try_link "$LINENO"; then :
12944 ac_cv_lib_gpm_Gpm_Open=yes
12945 else
12946 ac_cv_lib_gpm_Gpm_Open=no
12948 rm -f core conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12953 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12954 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12955 HAVE_GPM=yes
12962 if test "${HAVE_GPM}" = "yes"; then
12964 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12966 LIBGPM=-lgpm
12971 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12972 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12974 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12980 C_SWITCH_X_SYSTEM=
12981 ### Use NeXTstep API to implement GUI.
12982 if test "${HAVE_NS}" = "yes"; then
12984 $as_echo "#define HAVE_NS 1" >>confdefs.h
12986 if test "${NS_IMPL_COCOA}" = "yes"; then
12988 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12990 GNU_OBJC_CFLAGS=
12992 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12994 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12996 # See also .m.o rule in Makefile.in */
12997 # FIXME: are all these flags really needed? Document here why. */
12998 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12999 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
13001 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
13003 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
13006 # We also have mouse menus.
13007 HAVE_MENUS=yes
13008 OTHER_FILES=ns-app
13012 ### Use session management (-lSM -lICE) if available
13013 HAVE_X_SM=no
13014 LIBXSM=
13015 if test "${HAVE_X11}" = "yes"; then
13016 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
13017 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
13019 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
13020 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lSM -lICE $LIBS"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13028 /* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13031 #ifdef __cplusplus
13032 extern "C"
13033 #endif
13034 char SmcOpenConnection ();
13036 main ()
13038 return SmcOpenConnection ();
13040 return 0;
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_lib_SM_SmcOpenConnection=yes
13045 else
13046 ac_cv_lib_SM_SmcOpenConnection=no
13048 rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050 LIBS=$ac_check_lib_save_LIBS
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13053 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13054 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
13055 HAVE_X_SM=yes
13062 if test "${HAVE_X_SM}" = "yes"; then
13064 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
13066 LIBXSM="-lSM -lICE"
13067 case "$LIBS" in
13068 *-lSM*) ;;
13069 *) LIBS="$LIBXSM $LIBS" ;;
13070 esac
13075 ### Use libxml (-lxml2) if available
13076 if test "${with_xml2}" != "no"; then
13077 ### I'm not sure what the version number should be, so I just guessed.
13079 succeeded=no
13081 # Extract the first word of "pkg-config", so it can be a program name with args.
13082 set dummy pkg-config; ac_word=$2
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 case $PKG_CONFIG in
13089 [\\/]* | ?:[\\/]*)
13090 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094 for as_dir in $PATH
13096 IFS=$as_save_IFS
13097 test -z "$as_dir" && as_dir=.
13098 for ac_exec_ext in '' $ac_executable_extensions; do
13099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13100 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 break 2
13104 done
13105 done
13106 IFS=$as_save_IFS
13108 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13110 esac
13112 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13113 if test -n "$PKG_CONFIG"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13115 $as_echo "$PKG_CONFIG" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13123 if test "$PKG_CONFIG" = "no" ; then
13124 HAVE_LIBXML2=no
13125 else
13126 PKG_CONFIG_MIN_VERSION=0.9.0
13127 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
13129 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
13131 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13133 $as_echo "yes" >&6; }
13134 succeeded=yes
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
13137 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
13138 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
13140 $as_echo "$LIBXML2_CFLAGS" >&6; }
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
13143 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
13144 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
13146 $as_echo "$LIBXML2_LIBS" >&6; }
13147 else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 $as_echo "no" >&6; }
13150 LIBXML2_CFLAGS=""
13151 LIBXML2_LIBS=""
13152 ## If we have a custom action on failure, don't print errors, but
13153 ## do set a variable so people can do so.
13154 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
13160 else
13161 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13162 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13166 if test $succeeded = yes; then
13167 HAVE_LIBXML2=yes
13168 else
13169 HAVE_LIBXML2=no
13172 if test "${HAVE_LIBXML2}" = "yes"; then
13173 LIBS="$LIBXML2_LIBS $LIBS"
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
13175 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
13176 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
13177 $as_echo_n "(cached) " >&6
13178 else
13179 ac_check_lib_save_LIBS=$LIBS
13180 LIBS="-lxml2 $LIBS"
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13184 /* Override any GCC internal prototype to avoid an error.
13185 Use char because int might match the return type of a GCC
13186 builtin and then its argument prototype would still apply. */
13187 #ifdef __cplusplus
13188 extern "C"
13189 #endif
13190 char htmlReadMemory ();
13192 main ()
13194 return htmlReadMemory ();
13196 return 0;
13198 _ACEOF
13199 if ac_fn_c_try_link "$LINENO"; then :
13200 ac_cv_lib_xml2_htmlReadMemory=yes
13201 else
13202 ac_cv_lib_xml2_htmlReadMemory=no
13204 rm -f core conftest.err conftest.$ac_objext \
13205 conftest$ac_exeext conftest.$ac_ext
13206 LIBS=$ac_check_lib_save_LIBS
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
13209 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
13210 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
13211 HAVE_LIBXML2=yes
13212 else
13213 HAVE_LIBXML2=no
13216 if test "${HAVE_LIBXML2}" = "yes"; then
13218 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
13220 else
13221 LIBXML2_LIBS=""
13222 LIBXML2_CFLAGS=""
13229 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
13231 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
13232 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 #include <netdb.h>
13239 main ()
13241 return h_errno;
13243 return 0;
13245 _ACEOF
13246 if ac_fn_c_try_link "$LINENO"; then :
13247 emacs_cv_netdb_declares_h_errno=yes
13248 else
13249 emacs_cv_netdb_declares_h_errno=no
13251 rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
13255 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
13256 if test $emacs_cv_netdb_declares_h_errno = yes; then
13258 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
13262 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13263 # for constant arguments. Useless!
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13265 $as_echo_n "checking for working alloca.h... " >&6; }
13266 if test "${ac_cv_working_alloca_h+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271 #include <alloca.h>
13273 main ()
13275 char *p = (char *) alloca (2 * sizeof (int));
13276 if (p) return 0;
13278 return 0;
13280 _ACEOF
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 ac_cv_working_alloca_h=yes
13283 else
13284 ac_cv_working_alloca_h=no
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13290 $as_echo "$ac_cv_working_alloca_h" >&6; }
13291 if test $ac_cv_working_alloca_h = yes; then
13293 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13298 $as_echo_n "checking for alloca... " >&6; }
13299 if test "${ac_cv_func_alloca_works+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 #ifdef __GNUC__
13305 # define alloca __builtin_alloca
13306 #else
13307 # ifdef _MSC_VER
13308 # include <malloc.h>
13309 # define alloca _alloca
13310 # else
13311 # ifdef HAVE_ALLOCA_H
13312 # include <alloca.h>
13313 # else
13314 # ifdef _AIX
13315 #pragma alloca
13316 # else
13317 # ifndef alloca /* predefined by HP cc +Olibcalls */
13318 char *alloca ();
13319 # endif
13320 # endif
13321 # endif
13322 # endif
13323 #endif
13326 main ()
13328 char *p = (char *) alloca (1);
13329 if (p) return 0;
13331 return 0;
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"; then :
13335 ac_cv_func_alloca_works=yes
13336 else
13337 ac_cv_func_alloca_works=no
13339 rm -f core conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13343 $as_echo "$ac_cv_func_alloca_works" >&6; }
13345 if test $ac_cv_func_alloca_works = yes; then
13347 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13349 else
13350 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13351 # that cause trouble. Some versions do not even contain alloca or
13352 # contain a buggy version. If you still want to use their alloca,
13353 # use ar to extract alloca.o from them instead of compiling alloca.c.
13355 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13357 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13361 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13362 if test "${ac_cv_os_cray+set}" = set; then :
13363 $as_echo_n "(cached) " >&6
13364 else
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 #if defined CRAY && ! defined CRAY2
13368 webecray
13369 #else
13370 wenotbecray
13371 #endif
13373 _ACEOF
13374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13375 $EGREP "webecray" >/dev/null 2>&1; then :
13376 ac_cv_os_cray=yes
13377 else
13378 ac_cv_os_cray=no
13380 rm -f conftest*
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13384 $as_echo "$ac_cv_os_cray" >&6; }
13385 if test $ac_cv_os_cray = yes; then
13386 for ac_func in _getb67 GETB67 getb67; do
13387 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13388 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13389 eval as_val=\$$as_ac_var
13390 if test "x$as_val" = x""yes; then :
13392 cat >>confdefs.h <<_ACEOF
13393 #define CRAY_STACKSEG_END $ac_func
13394 _ACEOF
13396 break
13399 done
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13403 $as_echo_n "checking stack direction for C alloca... " >&6; }
13404 if test "${ac_cv_c_stack_direction+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 if test "$cross_compiling" = yes; then :
13408 ac_cv_c_stack_direction=0
13409 else
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 $ac_includes_default
13414 find_stack_direction ()
13416 static char *addr = 0;
13417 auto char dummy;
13418 if (addr == 0)
13420 addr = &dummy;
13421 return find_stack_direction ();
13423 else
13424 return (&dummy > addr) ? 1 : -1;
13428 main ()
13430 return find_stack_direction () < 0;
13432 _ACEOF
13433 if ac_fn_c_try_run "$LINENO"; then :
13434 ac_cv_c_stack_direction=1
13435 else
13436 ac_cv_c_stack_direction=-1
13438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13439 conftest.$ac_objext conftest.beam conftest.$ac_ext
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13444 $as_echo "$ac_cv_c_stack_direction" >&6; }
13445 cat >>confdefs.h <<_ACEOF
13446 #define STACK_DIRECTION $ac_cv_c_stack_direction
13447 _ACEOF
13453 if test x"$ac_cv_func_alloca_works" != xyes; then
13454 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
13457 # fmod, logb, and frexp are found in -lm on most systems.
13458 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13460 $as_echo_n "checking for sqrt in -lm... " >&6; }
13461 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 ac_check_lib_save_LIBS=$LIBS
13465 LIBS="-lm $LIBS"
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13469 /* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char sqrt ();
13477 main ()
13479 return sqrt ();
13481 return 0;
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485 ac_cv_lib_m_sqrt=yes
13486 else
13487 ac_cv_lib_m_sqrt=no
13489 rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
13491 LIBS=$ac_check_lib_save_LIBS
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13494 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13495 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13496 cat >>confdefs.h <<_ACEOF
13497 #define HAVE_LIBM 1
13498 _ACEOF
13500 LIBS="-lm $LIBS"
13505 # Check for mail-locking functions in a "mail" library. Probably this should
13506 # have the same check as for liblockfile below.
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13508 $as_echo_n "checking for maillock in -lmail... " >&6; }
13509 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 ac_check_lib_save_LIBS=$LIBS
13513 LIBS="-lmail $LIBS"
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13520 #ifdef __cplusplus
13521 extern "C"
13522 #endif
13523 char maillock ();
13525 main ()
13527 return maillock ();
13529 return 0;
13531 _ACEOF
13532 if ac_fn_c_try_link "$LINENO"; then :
13533 ac_cv_lib_mail_maillock=yes
13534 else
13535 ac_cv_lib_mail_maillock=no
13537 rm -f core conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13539 LIBS=$ac_check_lib_save_LIBS
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13542 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13543 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13544 have_mail=yes
13545 else
13546 have_mail=no
13549 if test $have_mail = yes; then
13550 LIBS_MAIL=-lmail
13551 LIBS="$LIBS_MAIL $LIBS"
13553 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13555 else
13556 LIBS_MAIL=
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13559 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13560 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 ac_check_lib_save_LIBS=$LIBS
13564 LIBS="-llockfile $LIBS"
13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13568 /* Override any GCC internal prototype to avoid an error.
13569 Use char because int might match the return type of a GCC
13570 builtin and then its argument prototype would still apply. */
13571 #ifdef __cplusplus
13572 extern "C"
13573 #endif
13574 char maillock ();
13576 main ()
13578 return maillock ();
13580 return 0;
13582 _ACEOF
13583 if ac_fn_c_try_link "$LINENO"; then :
13584 ac_cv_lib_lockfile_maillock=yes
13585 else
13586 ac_cv_lib_lockfile_maillock=no
13588 rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590 LIBS=$ac_check_lib_save_LIBS
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13593 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13594 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13595 have_lockfile=yes
13596 else
13597 have_lockfile=no
13600 if test $have_lockfile = yes; then
13601 LIBS_MAIL=-llockfile
13602 LIBS="$LIBS_MAIL $LIBS"
13604 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13606 else
13607 # If we have the shared liblockfile, assume we must use it for mail
13608 # locking (e.g. Debian). If we couldn't link against liblockfile
13609 # (no liblockfile.a installed), ensure that we don't need to.
13610 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13611 set dummy liblockfile.so; ac_word=$2
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13613 $as_echo_n "checking for $ac_word... " >&6; }
13614 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 if test -n "$liblockfile"; then
13618 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13619 else
13620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13621 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13622 for as_dir in $as_dummy
13624 IFS=$as_save_IFS
13625 test -z "$as_dir" && as_dir=.
13626 for ac_exec_ext in '' $ac_executable_extensions; do
13627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13628 ac_cv_prog_liblockfile="yes"
13629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13630 break 2
13632 done
13633 done
13634 IFS=$as_save_IFS
13636 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13639 liblockfile=$ac_cv_prog_liblockfile
13640 if test -n "$liblockfile"; then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13642 $as_echo "$liblockfile" >&6; }
13643 else
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13645 $as_echo "no" >&6; }
13649 if test $ac_cv_prog_liblockfile = yes; then
13650 as_fn_error "Shared liblockfile found but can't link against it.
13651 This probably means that movemail could lose mail.
13652 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13655 for ac_func in touchlock
13656 do :
13657 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13658 if test "x$ac_cv_func_touchlock" = x""yes; then :
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_TOUCHLOCK 1
13661 _ACEOF
13664 done
13666 for ac_header in maillock.h
13667 do :
13668 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13669 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_MAILLOCK_H 1
13672 _ACEOF
13676 done
13680 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13681 ## interlock access to the mail spool. The alternative is a lock file named
13682 ## /usr/spool/mail/$USER.lock.
13683 mail_lock=no
13684 case "$opsys" in
13685 aix4-2) mail_lock="lockf" ;;
13687 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13689 ## On GNU/Linux systems, both methods are used by various mail programs.
13690 ## I assume most people are using newer mailers that have heard of flock.
13691 ## Change this if you need to.
13692 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13693 ## configure gets the right answers, and that means *NOT* using flock.
13694 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13695 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13696 ## Debian maintainer hasn't provided a clean fix for Emacs.
13697 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13698 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13699 ## correct logic. -- fx
13700 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13701 ## liblockfile is a Free Software replacement for libmail, used on
13702 ## Debian systems and elsewhere. -rfr.
13703 gnu-*)
13704 mail_lock="flock"
13705 if test $have_mail = yes || test $have_lockfile = yes; then
13706 test $ac_cv_header_maillock_h = yes && mail_lock=no
13709 esac
13711 BLESSMAIL_TARGET=
13712 case "$mail_lock" in
13713 flock)
13714 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13717 lockf)
13718 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13721 *) BLESSMAIL_TARGET="need-blessmail" ;;
13722 esac
13726 for ac_func in gethostname getdomainname dup2 \
13727 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13728 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13729 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13730 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13731 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13732 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13733 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13734 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13735 cfmakeraw cfsetspeed isnan copysign __executable_start
13736 do :
13737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13738 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13739 eval as_val=\$$as_ac_var
13740 if test "x$as_val" = x""yes; then :
13741 cat >>confdefs.h <<_ACEOF
13742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13743 _ACEOF
13746 done
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13750 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13751 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13758 main ()
13760 __builtin_unwind_init ();
13762 return 0;
13764 _ACEOF
13765 if ac_fn_c_try_link "$LINENO"; then :
13766 emacs_cv_func___builtin_unwind_init=yes
13767 else
13768 emacs_cv_func___builtin_unwind_init=no
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13774 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13775 if test $emacs_cv_func___builtin_unwind_init = yes; then
13777 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13781 for ac_header in sys/un.h
13782 do :
13783 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13784 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13785 cat >>confdefs.h <<_ACEOF
13786 #define HAVE_SYS_UN_H 1
13787 _ACEOF
13791 done
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13795 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13796 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 while :; do
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h. */
13802 #include <sys/types.h> /* for off_t */
13803 #include <stdio.h>
13805 main ()
13807 int (*fp) (FILE *, off_t, int) = fseeko;
13808 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13810 return 0;
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 ac_cv_sys_largefile_source=no; break
13816 rm -f core conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820 #define _LARGEFILE_SOURCE 1
13821 #include <sys/types.h> /* for off_t */
13822 #include <stdio.h>
13824 main ()
13826 int (*fp) (FILE *, off_t, int) = fseeko;
13827 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13829 return 0;
13831 _ACEOF
13832 if ac_fn_c_try_link "$LINENO"; then :
13833 ac_cv_sys_largefile_source=1; break
13835 rm -f core conftest.err conftest.$ac_objext \
13836 conftest$ac_exeext conftest.$ac_ext
13837 ac_cv_sys_largefile_source=unknown
13838 break
13839 done
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13842 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13843 case $ac_cv_sys_largefile_source in #(
13844 no | unknown) ;;
13846 cat >>confdefs.h <<_ACEOF
13847 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13848 _ACEOF
13850 esac
13851 rm -rf conftest*
13853 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13854 # in glibc 2.1.3, but that breaks too many other things.
13855 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13856 if test $ac_cv_sys_largefile_source != unknown; then
13858 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13864 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13865 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 # Use it with a single arg.
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 $ac_includes_default
13873 main ()
13875 getpgrp (0);
13877 return 0;
13879 _ACEOF
13880 if ac_fn_c_try_compile "$LINENO"; then :
13881 ac_cv_func_getpgrp_void=no
13882 else
13883 ac_cv_func_getpgrp_void=yes
13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13889 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13890 if test $ac_cv_func_getpgrp_void = yes; then
13892 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13897 # Configure gnulib.
13908 LIBC_FATAL_STDERR_=1
13909 export LIBC_FATAL_STDERR_
13914 for ac_func in $ac_func_list
13915 do :
13916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13917 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13918 eval as_val=\$$as_ac_var
13919 if test "x$as_val" = x""yes; then :
13920 cat >>confdefs.h <<_ACEOF
13921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13922 _ACEOF
13925 done
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13931 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13932 if test "${ac_cv_c_bigendian+set}" = set; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 ac_cv_c_bigendian=unknown
13936 # See if we're dealing with a universal compiler.
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13939 #ifndef __APPLE_CC__
13940 not a universal capable compiler
13941 #endif
13942 typedef int dummy;
13944 _ACEOF
13945 if ac_fn_c_try_compile "$LINENO"; then :
13947 # Check for potential -arch flags. It is not universal unless
13948 # there are at least two -arch flags with different values.
13949 ac_arch=
13950 ac_prev=
13951 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13952 if test -n "$ac_prev"; then
13953 case $ac_word in
13954 i?86 | x86_64 | ppc | ppc64)
13955 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13956 ac_arch=$ac_word
13957 else
13958 ac_cv_c_bigendian=universal
13959 break
13962 esac
13963 ac_prev=
13964 elif test "x$ac_word" = "x-arch"; then
13965 ac_prev=arch
13967 done
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 if test $ac_cv_c_bigendian = unknown; then
13971 # See if sys/param.h defines the BYTE_ORDER macro.
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h. */
13974 #include <sys/types.h>
13975 #include <sys/param.h>
13978 main ()
13980 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13981 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13982 && LITTLE_ENDIAN)
13983 bogus endian macros
13984 #endif
13987 return 0;
13989 _ACEOF
13990 if ac_fn_c_try_compile "$LINENO"; then :
13991 # It does; now see whether it defined to BIG_ENDIAN or not.
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h. */
13994 #include <sys/types.h>
13995 #include <sys/param.h>
13998 main ()
14000 #if BYTE_ORDER != BIG_ENDIAN
14001 not big endian
14002 #endif
14005 return 0;
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"; then :
14009 ac_cv_c_bigendian=yes
14010 else
14011 ac_cv_c_bigendian=no
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 if test $ac_cv_c_bigendian = unknown; then
14018 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020 /* end confdefs.h. */
14021 #include <limits.h>
14024 main ()
14026 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14027 bogus endian macros
14028 #endif
14031 return 0;
14033 _ACEOF
14034 if ac_fn_c_try_compile "$LINENO"; then :
14035 # It does; now see whether it defined to _BIG_ENDIAN or not.
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038 #include <limits.h>
14041 main ()
14043 #ifndef _BIG_ENDIAN
14044 not big endian
14045 #endif
14048 return 0;
14050 _ACEOF
14051 if ac_fn_c_try_compile "$LINENO"; then :
14052 ac_cv_c_bigendian=yes
14053 else
14054 ac_cv_c_bigendian=no
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14060 if test $ac_cv_c_bigendian = unknown; then
14061 # Compile a test program.
14062 if test "$cross_compiling" = yes; then :
14063 # Try to guess by grepping values from an object file.
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066 short int ascii_mm[] =
14067 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14068 short int ascii_ii[] =
14069 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14070 int use_ascii (int i) {
14071 return ascii_mm[i] + ascii_ii[i];
14073 short int ebcdic_ii[] =
14074 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14075 short int ebcdic_mm[] =
14076 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14077 int use_ebcdic (int i) {
14078 return ebcdic_mm[i] + ebcdic_ii[i];
14080 extern int foo;
14083 main ()
14085 return use_ascii (foo) == use_ebcdic (foo);
14087 return 0;
14089 _ACEOF
14090 if ac_fn_c_try_compile "$LINENO"; then :
14091 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14092 ac_cv_c_bigendian=yes
14094 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14095 if test "$ac_cv_c_bigendian" = unknown; then
14096 ac_cv_c_bigendian=no
14097 else
14098 # finding both strings is unlikely to happen, but who knows?
14099 ac_cv_c_bigendian=unknown
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 else
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 $ac_includes_default
14109 main ()
14112 /* Are we little or big endian? From Harbison&Steele. */
14113 union
14115 long int l;
14116 char c[sizeof (long int)];
14117 } u;
14118 u.l = 1;
14119 return u.c[sizeof (long int) - 1] == 1;
14122 return 0;
14124 _ACEOF
14125 if ac_fn_c_try_run "$LINENO"; then :
14126 ac_cv_c_bigendian=no
14127 else
14128 ac_cv_c_bigendian=yes
14130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14131 conftest.$ac_objext conftest.beam conftest.$ac_ext
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14137 $as_echo "$ac_cv_c_bigendian" >&6; }
14138 case $ac_cv_c_bigendian in #(
14139 yes)
14140 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14141 ;; #(
14143 ;; #(
14144 universal)
14146 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14148 ;; #(
14150 as_fn_error "unknown endianness
14151 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14152 esac
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14156 $as_echo_n "checking for inline... " >&6; }
14157 if test "${ac_cv_c_inline+set}" = set; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160 ac_cv_c_inline=no
14161 for ac_kw in inline __inline__ __inline; do
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 #ifndef __cplusplus
14165 typedef int foo_t;
14166 static $ac_kw foo_t static_foo () {return 0; }
14167 $ac_kw foo_t foo () {return 0; }
14168 #endif
14170 _ACEOF
14171 if ac_fn_c_try_compile "$LINENO"; then :
14172 ac_cv_c_inline=$ac_kw
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 test "$ac_cv_c_inline" != no && break
14176 done
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14180 $as_echo "$ac_cv_c_inline" >&6; }
14182 case $ac_cv_c_inline in
14183 inline | yes) ;;
14185 case $ac_cv_c_inline in
14186 no) ac_val=;;
14187 *) ac_val=$ac_cv_c_inline;;
14188 esac
14189 cat >>confdefs.h <<_ACEOF
14190 #ifndef __cplusplus
14191 #define inline $ac_val
14192 #endif
14193 _ACEOF
14195 esac
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
14199 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
14200 if test "${gl_cv_func_c99_strtold+set}" = set; then :
14201 $as_echo_n "(cached) " >&6
14202 else
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14205 /* On HP-UX before 11.23, strtold returns a struct instead of
14206 long double. Reject implementations like that, by requiring
14207 compatibility with the C99 prototype. */
14208 #include <stdlib.h>
14209 static long double (*p) (char const *, char **) = strtold;
14210 static long double
14211 test (char const *nptr, char **endptr)
14213 long double r;
14214 r = strtold (nptr, endptr);
14215 return r;
14218 main ()
14220 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
14222 return 0;
14224 _ACEOF
14225 if ac_fn_c_try_link "$LINENO"; then :
14226 gl_cv_func_c99_strtold=yes
14227 else
14228 gl_cv_func_c99_strtold=no
14230 rm -f core conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext conftest.$ac_ext
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
14234 $as_echo "$gl_cv_func_c99_strtold" >&6; }
14235 if test $gl_cv_func_c99_strtold = yes; then
14237 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
14242 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
14243 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14249 #include <sys/types.h>
14250 #include <sys/stat.h>
14252 main ()
14254 struct stat s; s.st_dm_mode;
14256 return 0;
14258 _ACEOF
14259 if ac_fn_c_try_compile "$LINENO"; then :
14260 ac_cv_struct_st_dm_mode=yes
14261 else
14262 ac_cv_struct_st_dm_mode=no
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
14267 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
14269 if test $ac_cv_struct_st_dm_mode = yes; then
14271 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
14276 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
14277 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
14278 ac_have_decl=1
14279 else
14280 ac_have_decl=0
14283 cat >>confdefs.h <<_ACEOF
14284 #define HAVE_DECL_STRMODE $ac_have_decl
14285 _ACEOF
14288 GNULIB__EXIT=0;
14289 GNULIB_ATOLL=0;
14290 GNULIB_CALLOC_POSIX=0;
14291 GNULIB_CANONICALIZE_FILE_NAME=0;
14292 GNULIB_GETLOADAVG=0;
14293 GNULIB_GETSUBOPT=0;
14294 GNULIB_GRANTPT=0;
14295 GNULIB_MALLOC_POSIX=0;
14296 GNULIB_MBTOWC=0;
14297 GNULIB_MKDTEMP=0;
14298 GNULIB_MKOSTEMP=0;
14299 GNULIB_MKOSTEMPS=0;
14300 GNULIB_MKSTEMP=0;
14301 GNULIB_MKSTEMPS=0;
14302 GNULIB_PTSNAME=0;
14303 GNULIB_PUTENV=0;
14304 GNULIB_RANDOM_R=0;
14305 GNULIB_REALLOC_POSIX=0;
14306 GNULIB_REALPATH=0;
14307 GNULIB_RPMATCH=0;
14308 GNULIB_SETENV=0;
14309 GNULIB_STRTOD=0;
14310 GNULIB_STRTOLL=0;
14311 GNULIB_STRTOULL=0;
14312 GNULIB_SYSTEM_POSIX=0;
14313 GNULIB_UNLOCKPT=0;
14314 GNULIB_UNSETENV=0;
14315 GNULIB_WCTOMB=0;
14316 HAVE__EXIT=1;
14317 HAVE_ATOLL=1;
14318 HAVE_CANONICALIZE_FILE_NAME=1;
14319 HAVE_DECL_GETLOADAVG=1;
14320 HAVE_GETSUBOPT=1;
14321 HAVE_GRANTPT=1;
14322 HAVE_MKDTEMP=1;
14323 HAVE_MKOSTEMP=1;
14324 HAVE_MKOSTEMPS=1;
14325 HAVE_MKSTEMP=1;
14326 HAVE_MKSTEMPS=1;
14327 HAVE_PTSNAME=1;
14328 HAVE_RANDOM_H=1;
14329 HAVE_RANDOM_R=1;
14330 HAVE_REALPATH=1;
14331 HAVE_RPMATCH=1;
14332 HAVE_SETENV=1;
14333 HAVE_DECL_SETENV=1;
14334 HAVE_STRTOD=1;
14335 HAVE_STRTOLL=1;
14336 HAVE_STRTOULL=1;
14337 HAVE_STRUCT_RANDOM_DATA=1;
14338 HAVE_SYS_LOADAVG_H=0;
14339 HAVE_UNLOCKPT=1;
14340 HAVE_DECL_UNSETENV=1;
14341 REPLACE_CALLOC=0;
14342 REPLACE_CANONICALIZE_FILE_NAME=0;
14343 REPLACE_MALLOC=0;
14344 REPLACE_MBTOWC=0;
14345 REPLACE_MKSTEMP=0;
14346 REPLACE_PUTENV=0;
14347 REPLACE_REALLOC=0;
14348 REPLACE_REALPATH=0;
14349 REPLACE_SETENV=0;
14350 REPLACE_STRTOD=0;
14351 REPLACE_UNSETENV=0;
14352 REPLACE_WCTOMB=0;
14355 GNULIB_CHOWN=0;
14356 GNULIB_CLOSE=0;
14357 GNULIB_DUP2=0;
14358 GNULIB_DUP3=0;
14359 GNULIB_ENVIRON=0;
14360 GNULIB_EUIDACCESS=0;
14361 GNULIB_FACCESSAT=0;
14362 GNULIB_FCHDIR=0;
14363 GNULIB_FCHOWNAT=0;
14364 GNULIB_FSYNC=0;
14365 GNULIB_FTRUNCATE=0;
14366 GNULIB_GETCWD=0;
14367 GNULIB_GETDOMAINNAME=0;
14368 GNULIB_GETDTABLESIZE=0;
14369 GNULIB_GETGROUPS=0;
14370 GNULIB_GETHOSTNAME=0;
14371 GNULIB_GETLOGIN=0;
14372 GNULIB_GETLOGIN_R=0;
14373 GNULIB_GETPAGESIZE=0;
14374 GNULIB_GETUSERSHELL=0;
14375 GNULIB_GROUP_MEMBER=0;
14376 GNULIB_LCHOWN=0;
14377 GNULIB_LINK=0;
14378 GNULIB_LINKAT=0;
14379 GNULIB_LSEEK=0;
14380 GNULIB_PIPE=0;
14381 GNULIB_PIPE2=0;
14382 GNULIB_PREAD=0;
14383 GNULIB_PWRITE=0;
14384 GNULIB_READ=0;
14385 GNULIB_READLINK=0;
14386 GNULIB_READLINKAT=0;
14387 GNULIB_RMDIR=0;
14388 GNULIB_SLEEP=0;
14389 GNULIB_SYMLINK=0;
14390 GNULIB_SYMLINKAT=0;
14391 GNULIB_TTYNAME_R=0;
14392 GNULIB_UNISTD_H_GETOPT=0;
14393 GNULIB_UNISTD_H_NONBLOCKING=0;
14394 GNULIB_UNISTD_H_SIGPIPE=0;
14395 GNULIB_UNLINK=0;
14396 GNULIB_UNLINKAT=0;
14397 GNULIB_USLEEP=0;
14398 GNULIB_WRITE=0;
14399 HAVE_CHOWN=1;
14400 HAVE_DUP2=1;
14401 HAVE_DUP3=1;
14402 HAVE_EUIDACCESS=1;
14403 HAVE_FACCESSAT=1;
14404 HAVE_FCHDIR=1;
14405 HAVE_FCHOWNAT=1;
14406 HAVE_FSYNC=1;
14407 HAVE_FTRUNCATE=1;
14408 HAVE_GETDTABLESIZE=1;
14409 HAVE_GETGROUPS=1;
14410 HAVE_GETHOSTNAME=1;
14411 HAVE_GETLOGIN=1;
14412 HAVE_GETPAGESIZE=1;
14413 HAVE_GROUP_MEMBER=1;
14414 HAVE_LCHOWN=1;
14415 HAVE_LINK=1;
14416 HAVE_LINKAT=1;
14417 HAVE_PIPE=1;
14418 HAVE_PIPE2=1;
14419 HAVE_PREAD=1;
14420 HAVE_PWRITE=1;
14421 HAVE_READLINK=1;
14422 HAVE_READLINKAT=1;
14423 HAVE_SLEEP=1;
14424 HAVE_SYMLINK=1;
14425 HAVE_SYMLINKAT=1;
14426 HAVE_UNLINKAT=1;
14427 HAVE_USLEEP=1;
14428 HAVE_DECL_ENVIRON=1;
14429 HAVE_DECL_FCHDIR=1;
14430 HAVE_DECL_GETDOMAINNAME=1;
14431 HAVE_DECL_GETLOGIN_R=1;
14432 HAVE_DECL_GETPAGESIZE=1;
14433 HAVE_DECL_GETUSERSHELL=1;
14434 HAVE_DECL_TTYNAME_R=1;
14435 HAVE_OS_H=0;
14436 HAVE_SYS_PARAM_H=0;
14437 REPLACE_CHOWN=0;
14438 REPLACE_CLOSE=0;
14439 REPLACE_DUP=0;
14440 REPLACE_DUP2=0;
14441 REPLACE_FCHOWNAT=0;
14442 REPLACE_GETCWD=0;
14443 REPLACE_GETDOMAINNAME=0;
14444 REPLACE_GETLOGIN_R=0;
14445 REPLACE_GETGROUPS=0;
14446 REPLACE_GETPAGESIZE=0;
14447 REPLACE_LCHOWN=0;
14448 REPLACE_LINK=0;
14449 REPLACE_LINKAT=0;
14450 REPLACE_LSEEK=0;
14451 REPLACE_PREAD=0;
14452 REPLACE_PWRITE=0;
14453 REPLACE_READ=0;
14454 REPLACE_READLINK=0;
14455 REPLACE_RMDIR=0;
14456 REPLACE_SLEEP=0;
14457 REPLACE_SYMLINK=0;
14458 REPLACE_TTYNAME_R=0;
14459 REPLACE_UNLINK=0;
14460 REPLACE_UNLINKAT=0;
14461 REPLACE_USLEEP=0;
14462 REPLACE_WRITE=0;
14463 UNISTD_H_HAVE_WINSOCK2_H=0;
14464 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14470 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14471 if test "${gl_cv_have_include_next+set}" = set; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 rm -rf conftestd1a conftestd1b conftestd2
14475 mkdir conftestd1a conftestd1b conftestd2
14476 cat <<EOF > conftestd1a/conftest.h
14477 #define DEFINED_IN_CONFTESTD1
14478 #include_next <conftest.h>
14479 #ifdef DEFINED_IN_CONFTESTD2
14480 int foo;
14481 #else
14482 #error "include_next doesn't work"
14483 #endif
14485 cat <<EOF > conftestd1b/conftest.h
14486 #define DEFINED_IN_CONFTESTD1
14487 #include <stdio.h>
14488 #include_next <conftest.h>
14489 #ifdef DEFINED_IN_CONFTESTD2
14490 int foo;
14491 #else
14492 #error "include_next doesn't work"
14493 #endif
14495 cat <<EOF > conftestd2/conftest.h
14496 #ifndef DEFINED_IN_CONFTESTD1
14497 #error "include_next test doesn't work"
14498 #endif
14499 #define DEFINED_IN_CONFTESTD2
14501 gl_save_CPPFLAGS="$CPPFLAGS"
14502 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14504 /* end confdefs.h. */
14505 #include <conftest.h>
14506 _ACEOF
14507 if ac_fn_c_try_compile "$LINENO"; then :
14508 gl_cv_have_include_next=yes
14509 else
14510 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <conftest.h>
14514 _ACEOF
14515 if ac_fn_c_try_compile "$LINENO"; then :
14516 gl_cv_have_include_next=buggy
14517 else
14518 gl_cv_have_include_next=no
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14524 CPPFLAGS="$gl_save_CPPFLAGS"
14525 rm -rf conftestd1a conftestd1b conftestd2
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14529 $as_echo "$gl_cv_have_include_next" >&6; }
14530 PRAGMA_SYSTEM_HEADER=
14531 if test $gl_cv_have_include_next = yes; then
14532 INCLUDE_NEXT=include_next
14533 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14534 if test -n "$GCC"; then
14535 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14537 else
14538 if test $gl_cv_have_include_next = buggy; then
14539 INCLUDE_NEXT=include
14540 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14541 else
14542 INCLUDE_NEXT=include
14543 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14550 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14551 if test "${gl_cv_pragma_columns+set}" = set; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14557 #ifdef __TANDEM
14558 choke me
14559 #endif
14561 _ACEOF
14562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14563 $EGREP "choke me" >/dev/null 2>&1; then :
14564 gl_cv_pragma_columns=yes
14565 else
14566 gl_cv_pragma_columns=no
14568 rm -f conftest*
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14573 $as_echo "$gl_cv_pragma_columns" >&6; }
14574 if test $gl_cv_pragma_columns = yes; then
14575 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14576 else
14577 PRAGMA_COLUMNS=
14596 if test $gl_cv_have_include_next = yes; then
14597 gl_cv_next_getopt_h='<'getopt.h'>'
14598 else
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14600 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14601 if test "${gl_cv_next_getopt_h+set}" = set; then :
14602 $as_echo_n "(cached) " >&6
14603 else
14605 if test $ac_cv_header_getopt_h = yes; then
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14610 #include <getopt.h>
14612 _ACEOF
14613 case "$host_os" in
14614 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14615 *) gl_absname_cpp="$ac_cpp" ;;
14616 esac
14617 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14618 sed -n '\#/getopt.h#{
14619 s#.*"\(.*/getopt.h\)".*#\1#
14620 s#^/[^/]#//&#
14623 }'`'"'
14624 else
14625 gl_cv_next_getopt_h='<'getopt.h'>'
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14631 $as_echo "$gl_cv_next_getopt_h" >&6; }
14633 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14635 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14637 gl_next_as_first_directive='<'getopt.h'>'
14638 else
14639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14640 gl_next_as_first_directive=$gl_cv_next_getopt_h
14642 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14647 if test $ac_cv_header_getopt_h = yes; then
14648 HAVE_GETOPT_H=1
14649 else
14650 HAVE_GETOPT_H=0
14654 gl_replace_getopt=
14656 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14657 for ac_header in getopt.h
14658 do :
14659 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14660 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14661 cat >>confdefs.h <<_ACEOF
14662 #define HAVE_GETOPT_H 1
14663 _ACEOF
14665 else
14666 gl_replace_getopt=yes
14669 done
14673 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14674 for ac_func in getopt_long_only
14675 do :
14676 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14677 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14678 cat >>confdefs.h <<_ACEOF
14679 #define HAVE_GETOPT_LONG_ONLY 1
14680 _ACEOF
14682 else
14683 gl_replace_getopt=yes
14685 done
14689 if test -z "$gl_replace_getopt"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14691 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14692 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14693 $as_echo_n "(cached) " >&6
14694 else
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698 #include <unistd.h>
14700 main ()
14702 int *p = &optreset; return optreset;
14704 return 0;
14706 _ACEOF
14707 if ac_fn_c_try_compile "$LINENO"; then :
14708 gl_optind_min=1
14709 else
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712 #include <getopt.h>
14714 main ()
14716 return !getopt_clip;
14718 return 0;
14720 _ACEOF
14721 if ac_fn_c_try_compile "$LINENO"; then :
14722 gl_optind_min=1
14723 else
14724 gl_optind_min=0
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14730 gl_save_CPPFLAGS=$CPPFLAGS
14731 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14732 if test "$cross_compiling" = yes; then :
14733 case "$host_os" in
14734 mingw*) gl_cv_func_getopt_posix="guessing no";;
14735 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14736 *) gl_cv_func_getopt_posix="guessing yes";;
14737 esac
14739 else
14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741 /* end confdefs.h. */
14743 #include <unistd.h>
14744 #include <stdlib.h>
14745 #include <string.h>
14748 main ()
14751 int argc = 0;
14752 char *argv[10];
14753 int c;
14755 argv[argc++] = "program";
14756 argv[argc++] = "-a";
14757 argv[argc++] = "foo";
14758 argv[argc++] = "bar";
14759 argv[argc] = NULL;
14760 optind = OPTIND_MIN;
14761 opterr = 0;
14763 c = getopt (argc, argv, "ab");
14764 if (!(c == 'a'))
14765 return 1;
14766 c = getopt (argc, argv, "ab");
14767 if (!(c == -1))
14768 return 2;
14769 if (!(optind == 2))
14770 return 3;
14772 /* Some internal state exists at this point. */
14774 int argc = 0;
14775 char *argv[10];
14776 int c;
14778 argv[argc++] = "program";
14779 argv[argc++] = "donald";
14780 argv[argc++] = "-p";
14781 argv[argc++] = "billy";
14782 argv[argc++] = "duck";
14783 argv[argc++] = "-a";
14784 argv[argc++] = "bar";
14785 argv[argc] = NULL;
14786 optind = OPTIND_MIN;
14787 opterr = 0;
14789 c = getopt (argc, argv, "+abp:q:");
14790 if (!(c == -1))
14791 return 4;
14792 if (!(strcmp (argv[0], "program") == 0))
14793 return 5;
14794 if (!(strcmp (argv[1], "donald") == 0))
14795 return 6;
14796 if (!(strcmp (argv[2], "-p") == 0))
14797 return 7;
14798 if (!(strcmp (argv[3], "billy") == 0))
14799 return 8;
14800 if (!(strcmp (argv[4], "duck") == 0))
14801 return 9;
14802 if (!(strcmp (argv[5], "-a") == 0))
14803 return 10;
14804 if (!(strcmp (argv[6], "bar") == 0))
14805 return 11;
14806 if (!(optind == 1))
14807 return 12;
14809 /* Detect MacOS 10.5, AIX 7.1 bug. */
14811 char *argv[3] = { "program", "-ab", NULL };
14812 optind = OPTIND_MIN;
14813 opterr = 0;
14814 if (getopt (2, argv, "ab:") != 'a')
14815 return 13;
14816 if (getopt (2, argv, "ab:") != '?')
14817 return 14;
14818 if (optopt != 'b')
14819 return 15;
14820 if (optind != 2)
14821 return 16;
14824 return 0;
14827 _ACEOF
14828 if ac_fn_c_try_run "$LINENO"; then :
14829 gl_cv_func_getopt_posix=yes
14830 else
14831 gl_cv_func_getopt_posix=no
14833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14834 conftest.$ac_objext conftest.beam conftest.$ac_ext
14837 CPPFLAGS=$gl_save_CPPFLAGS
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14841 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14842 case "$gl_cv_func_getopt_posix" in
14843 *no) gl_replace_getopt=yes ;;
14844 esac
14847 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14849 $as_echo_n "checking for working GNU getopt function... " >&6; }
14850 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14851 $as_echo_n "(cached) " >&6
14852 else
14853 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14854 # optstring is necessary for programs like m4 that have POSIX-mandated
14855 # semantics for supporting options interspersed with files.
14856 # Also, since getopt_long is a GNU extension, we require optind=0.
14857 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14858 # so take care to revert to the correct (non-)export state.
14859 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14860 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14861 xx) gl_had_POSIXLY_CORRECT=exported ;;
14862 x) gl_had_POSIXLY_CORRECT=yes ;;
14863 *) gl_had_POSIXLY_CORRECT= ;;
14864 esac
14865 POSIXLY_CORRECT=1
14866 export POSIXLY_CORRECT
14867 if test "$cross_compiling" = yes; then :
14868 case $host_os:$ac_cv_have_decl_optreset in
14869 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14870 *:yes) gl_cv_func_getopt_gnu=no;;
14871 *) gl_cv_func_getopt_gnu=yes;;
14872 esac
14874 else
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877 #include <getopt.h>
14878 #include <stddef.h>
14879 #include <string.h>
14882 main ()
14885 int result = 0;
14886 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14887 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14888 OSF/1 5.1, Solaris 10. */
14890 char *myargv[3];
14891 myargv[0] = "conftest";
14892 myargv[1] = "-+";
14893 myargv[2] = 0;
14894 opterr = 0;
14895 if (getopt (2, myargv, "+a") != '?')
14896 result |= 1;
14898 /* This code succeeds on glibc 2.8, mingw,
14899 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14900 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14902 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14904 optind = 1;
14905 if (getopt (4, argv, "p::") != 'p')
14906 result |= 2;
14907 else if (optarg != NULL)
14908 result |= 4;
14909 else if (getopt (4, argv, "p::") != -1)
14910 result |= 6;
14911 else if (optind != 2)
14912 result |= 8;
14914 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14916 char *argv[] = { "program", "foo", "-p", NULL };
14917 optind = 0;
14918 if (getopt (3, argv, "-p") != 1)
14919 result |= 16;
14920 else if (getopt (3, argv, "-p") != 'p')
14921 result |= 32;
14923 /* This code fails on glibc 2.11. */
14925 char *argv[] = { "program", "-b", "-a", NULL };
14926 optind = opterr = 0;
14927 if (getopt (3, argv, "+:a:b") != 'b')
14928 result |= 64;
14929 else if (getopt (3, argv, "+:a:b") != ':')
14930 result |= 64;
14932 return result;
14935 return 0;
14937 _ACEOF
14938 if ac_fn_c_try_run "$LINENO"; then :
14939 gl_cv_func_getopt_gnu=yes
14940 else
14941 gl_cv_func_getopt_gnu=no
14943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14944 conftest.$ac_objext conftest.beam conftest.$ac_ext
14947 case $gl_had_POSIXLY_CORRECT in
14948 exported) ;;
14949 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14950 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14951 esac
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14955 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14956 if test "$gl_cv_func_getopt_gnu" = "no"; then
14957 gl_replace_getopt=yes
14961 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14962 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14963 ac_have_decl=1
14964 else
14965 ac_have_decl=0
14968 cat >>confdefs.h <<_ACEOF
14969 #define HAVE_DECL_GETENV $ac_have_decl
14970 _ACEOF
14977 if test -n "$gl_replace_getopt"; then :
14981 GETOPT_H=getopt.h
14983 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14987 GNULIB_UNISTD_H_GETOPT=1
14996 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15006 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15018 $as_echo_n "checking for unsigned long long int... " >&6; }
15019 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 ac_cv_type_unsigned_long_long_int=yes
15023 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15027 /* For now, do not test the preprocessor; as of 2007 there are too many
15028 implementations with broken preprocessors. Perhaps this can
15029 be revisited in 2012. In the meantime, code should not expect
15030 #if to work with literals wider than 32 bits. */
15031 /* Test literals. */
15032 long long int ll = 9223372036854775807ll;
15033 long long int nll = -9223372036854775807LL;
15034 unsigned long long int ull = 18446744073709551615ULL;
15035 /* Test constant expressions. */
15036 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15037 ? 1 : -1)];
15038 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15039 ? 1 : -1)];
15040 int i = 63;
15042 main ()
15044 /* Test availability of runtime routines for shift and division. */
15045 long long int llmax = 9223372036854775807ll;
15046 unsigned long long int ullmax = 18446744073709551615ull;
15047 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15048 | (llmax / ll) | (llmax % ll)
15049 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15050 | (ullmax / ull) | (ullmax % ull));
15052 return 0;
15055 _ACEOF
15056 if ac_fn_c_try_link "$LINENO"; then :
15058 else
15059 ac_cv_type_unsigned_long_long_int=no
15061 rm -f core conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15066 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15067 if test $ac_cv_type_unsigned_long_long_int = yes; then
15069 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15076 $as_echo_n "checking for long long int... " >&6; }
15077 if test "${ac_cv_type_long_long_int+set}" = set; then :
15078 $as_echo_n "(cached) " >&6
15079 else
15080 ac_cv_type_long_long_int=yes
15081 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15082 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15083 if test $ac_cv_type_long_long_int = yes; then
15084 if test "$cross_compiling" = yes; then :
15086 else
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 #include <limits.h>
15090 #ifndef LLONG_MAX
15091 # define HALF \
15092 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15093 # define LLONG_MAX (HALF - 1 + HALF)
15094 #endif
15096 main ()
15098 long long int n = 1;
15099 int i;
15100 for (i = 0; ; i++)
15102 long long int m = n << i;
15103 if (m >> i != n)
15104 return 1;
15105 if (LLONG_MAX / 2 < m)
15106 break;
15108 return 0;
15110 return 0;
15112 _ACEOF
15113 if ac_fn_c_try_run "$LINENO"; then :
15115 else
15116 ac_cv_type_long_long_int=no
15118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15119 conftest.$ac_objext conftest.beam conftest.$ac_ext
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15126 $as_echo "$ac_cv_type_long_long_int" >&6; }
15127 if test $ac_cv_type_long_long_int = yes; then
15129 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15138 gl_cv_c_multiarch=no
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141 #ifndef __APPLE_CC__
15142 not a universal capable compiler
15143 #endif
15144 typedef int dummy;
15146 _ACEOF
15147 if ac_fn_c_try_compile "$LINENO"; then :
15149 arch=
15150 prev=
15151 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15152 if test -n "$prev"; then
15153 case $word in
15154 i?86 | x86_64 | ppc | ppc64)
15155 if test -z "$arch" || test "$arch" = "$word"; then
15156 arch="$word"
15157 else
15158 gl_cv_c_multiarch=yes
15161 esac
15162 prev=
15163 else
15164 if test "x$word" = "x-arch"; then
15165 prev=arch
15168 done
15171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15172 if test $gl_cv_c_multiarch = yes; then
15173 APPLE_UNIVERSAL_BUILD=1
15174 else
15175 APPLE_UNIVERSAL_BUILD=0
15182 if test $ac_cv_type_long_long_int = yes; then
15183 HAVE_LONG_LONG_INT=1
15184 else
15185 HAVE_LONG_LONG_INT=0
15189 if test $ac_cv_type_unsigned_long_long_int = yes; then
15190 HAVE_UNSIGNED_LONG_LONG_INT=1
15191 else
15192 HAVE_UNSIGNED_LONG_LONG_INT=0
15197 if test $ac_cv_header_wchar_h = yes; then
15198 HAVE_WCHAR_H=1
15199 else
15200 HAVE_WCHAR_H=0
15204 if test $ac_cv_header_inttypes_h = yes; then
15205 HAVE_INTTYPES_H=1
15206 else
15207 HAVE_INTTYPES_H=0
15211 if test $ac_cv_header_sys_types_h = yes; then
15212 HAVE_SYS_TYPES_H=1
15213 else
15214 HAVE_SYS_TYPES_H=0
15227 if test $gl_cv_have_include_next = yes; then
15228 gl_cv_next_stdint_h='<'stdint.h'>'
15229 else
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
15231 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15232 if test "${gl_cv_next_stdint_h+set}" = set; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15236 if test $ac_cv_header_stdint_h = yes; then
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241 #include <stdint.h>
15243 _ACEOF
15244 case "$host_os" in
15245 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15246 *) gl_absname_cpp="$ac_cpp" ;;
15247 esac
15248 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15249 sed -n '\#/stdint.h#{
15250 s#.*"\(.*/stdint.h\)".*#\1#
15251 s#^/[^/]#//&#
15254 }'`'"'
15255 else
15256 gl_cv_next_stdint_h='<'stdint.h'>'
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
15262 $as_echo "$gl_cv_next_stdint_h" >&6; }
15264 NEXT_STDINT_H=$gl_cv_next_stdint_h
15266 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15268 gl_next_as_first_directive='<'stdint.h'>'
15269 else
15270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15271 gl_next_as_first_directive=$gl_cv_next_stdint_h
15273 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
15278 if test $ac_cv_header_stdint_h = yes; then
15279 HAVE_STDINT_H=1
15280 else
15281 HAVE_STDINT_H=0
15285 if test $ac_cv_header_stdint_h = yes; then
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
15287 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15288 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
15289 $as_echo_n "(cached) " >&6
15290 else
15291 gl_cv_header_working_stdint_h=no
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15296 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15297 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15298 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15299 #include <stdint.h>
15300 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15301 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15302 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15303 #endif
15306 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15307 included before <wchar.h>. */
15308 #include <stddef.h>
15309 #include <signal.h>
15310 #if HAVE_WCHAR_H
15311 # include <stdio.h>
15312 # include <time.h>
15313 # include <wchar.h>
15314 #endif
15317 #ifdef INT8_MAX
15318 int8_t a1 = INT8_MAX;
15319 int8_t a1min = INT8_MIN;
15320 #endif
15321 #ifdef INT16_MAX
15322 int16_t a2 = INT16_MAX;
15323 int16_t a2min = INT16_MIN;
15324 #endif
15325 #ifdef INT32_MAX
15326 int32_t a3 = INT32_MAX;
15327 int32_t a3min = INT32_MIN;
15328 #endif
15329 #ifdef INT64_MAX
15330 int64_t a4 = INT64_MAX;
15331 int64_t a4min = INT64_MIN;
15332 #endif
15333 #ifdef UINT8_MAX
15334 uint8_t b1 = UINT8_MAX;
15335 #else
15336 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15337 #endif
15338 #ifdef UINT16_MAX
15339 uint16_t b2 = UINT16_MAX;
15340 #endif
15341 #ifdef UINT32_MAX
15342 uint32_t b3 = UINT32_MAX;
15343 #endif
15344 #ifdef UINT64_MAX
15345 uint64_t b4 = UINT64_MAX;
15346 #endif
15347 int_least8_t c1 = INT8_C (0x7f);
15348 int_least8_t c1max = INT_LEAST8_MAX;
15349 int_least8_t c1min = INT_LEAST8_MIN;
15350 int_least16_t c2 = INT16_C (0x7fff);
15351 int_least16_t c2max = INT_LEAST16_MAX;
15352 int_least16_t c2min = INT_LEAST16_MIN;
15353 int_least32_t c3 = INT32_C (0x7fffffff);
15354 int_least32_t c3max = INT_LEAST32_MAX;
15355 int_least32_t c3min = INT_LEAST32_MIN;
15356 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15357 int_least64_t c4max = INT_LEAST64_MAX;
15358 int_least64_t c4min = INT_LEAST64_MIN;
15359 uint_least8_t d1 = UINT8_C (0xff);
15360 uint_least8_t d1max = UINT_LEAST8_MAX;
15361 uint_least16_t d2 = UINT16_C (0xffff);
15362 uint_least16_t d2max = UINT_LEAST16_MAX;
15363 uint_least32_t d3 = UINT32_C (0xffffffff);
15364 uint_least32_t d3max = UINT_LEAST32_MAX;
15365 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15366 uint_least64_t d4max = UINT_LEAST64_MAX;
15367 int_fast8_t e1 = INT_FAST8_MAX;
15368 int_fast8_t e1min = INT_FAST8_MIN;
15369 int_fast16_t e2 = INT_FAST16_MAX;
15370 int_fast16_t e2min = INT_FAST16_MIN;
15371 int_fast32_t e3 = INT_FAST32_MAX;
15372 int_fast32_t e3min = INT_FAST32_MIN;
15373 int_fast64_t e4 = INT_FAST64_MAX;
15374 int_fast64_t e4min = INT_FAST64_MIN;
15375 uint_fast8_t f1 = UINT_FAST8_MAX;
15376 uint_fast16_t f2 = UINT_FAST16_MAX;
15377 uint_fast32_t f3 = UINT_FAST32_MAX;
15378 uint_fast64_t f4 = UINT_FAST64_MAX;
15379 #ifdef INTPTR_MAX
15380 intptr_t g = INTPTR_MAX;
15381 intptr_t gmin = INTPTR_MIN;
15382 #endif
15383 #ifdef UINTPTR_MAX
15384 uintptr_t h = UINTPTR_MAX;
15385 #endif
15386 intmax_t i = INTMAX_MAX;
15387 uintmax_t j = UINTMAX_MAX;
15389 #include <limits.h> /* for CHAR_BIT */
15390 #define TYPE_MINIMUM(t) \
15391 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
15392 #define TYPE_MAXIMUM(t) \
15393 ((t) ((t) 0 < (t) -1 \
15394 ? (t) -1 \
15395 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
15396 struct s {
15397 int check_PTRDIFF:
15398 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15399 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15400 ? 1 : -1;
15401 /* Detect bug in FreeBSD 6.0 / ia64. */
15402 int check_SIG_ATOMIC:
15403 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15404 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15405 ? 1 : -1;
15406 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15407 int check_WCHAR:
15408 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15409 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15410 ? 1 : -1;
15411 /* Detect bug in mingw. */
15412 int check_WINT:
15413 WINT_MIN == TYPE_MINIMUM (wint_t)
15414 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15415 ? 1 : -1;
15417 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15418 int check_UINT8_C:
15419 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15420 int check_UINT16_C:
15421 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15423 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15424 #ifdef UINT8_MAX
15425 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15426 #endif
15427 #ifdef UINT16_MAX
15428 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15429 #endif
15430 #ifdef UINT32_MAX
15431 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15432 #endif
15433 #ifdef UINT64_MAX
15434 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15435 #endif
15436 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15437 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15438 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15439 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15440 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15441 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15442 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15443 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15444 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15445 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15446 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15450 main ()
15454 return 0;
15456 _ACEOF
15457 if ac_fn_c_try_compile "$LINENO"; then :
15458 if test "$cross_compiling" = yes; then :
15459 gl_cv_header_working_stdint_h=yes
15461 else
15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463 /* end confdefs.h. */
15466 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15467 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15468 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15469 #include <stdint.h>
15472 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15473 included before <wchar.h>. */
15474 #include <stddef.h>
15475 #include <signal.h>
15476 #if HAVE_WCHAR_H
15477 # include <stdio.h>
15478 # include <time.h>
15479 # include <wchar.h>
15480 #endif
15483 #include <stdio.h>
15484 #include <string.h>
15485 #define MVAL(macro) MVAL1(macro)
15486 #define MVAL1(expression) #expression
15487 static const char *macro_values[] =
15489 #ifdef INT8_MAX
15490 MVAL (INT8_MAX),
15491 #endif
15492 #ifdef INT16_MAX
15493 MVAL (INT16_MAX),
15494 #endif
15495 #ifdef INT32_MAX
15496 MVAL (INT32_MAX),
15497 #endif
15498 #ifdef INT64_MAX
15499 MVAL (INT64_MAX),
15500 #endif
15501 #ifdef UINT8_MAX
15502 MVAL (UINT8_MAX),
15503 #endif
15504 #ifdef UINT16_MAX
15505 MVAL (UINT16_MAX),
15506 #endif
15507 #ifdef UINT32_MAX
15508 MVAL (UINT32_MAX),
15509 #endif
15510 #ifdef UINT64_MAX
15511 MVAL (UINT64_MAX),
15512 #endif
15513 NULL
15517 main ()
15520 const char **mv;
15521 for (mv = macro_values; *mv != NULL; mv++)
15523 const char *value = *mv;
15524 /* Test whether it looks like a cast expression. */
15525 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
15526 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
15527 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
15528 || strncmp (value, "((int)"/*)*/, 6) == 0
15529 || strncmp (value, "((signed short)"/*)*/, 15) == 0
15530 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
15531 return mv - macro_values + 1;
15533 return 0;
15536 return 0;
15538 _ACEOF
15539 if ac_fn_c_try_run "$LINENO"; then :
15540 gl_cv_header_working_stdint_h=yes
15542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15543 conftest.$ac_objext conftest.beam conftest.$ac_ext
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
15552 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15554 if test "$gl_cv_header_working_stdint_h" = yes; then
15555 STDINT_H=
15556 else
15557 for ac_header in sys/inttypes.h sys/bitypes.h
15558 do :
15559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15560 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15561 eval as_val=\$$as_ac_Header
15562 if test "x$as_val" = x""yes; then :
15563 cat >>confdefs.h <<_ACEOF
15564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15565 _ACEOF
15569 done
15571 if test $ac_cv_header_sys_inttypes_h = yes; then
15572 HAVE_SYS_INTTYPES_H=1
15573 else
15574 HAVE_SYS_INTTYPES_H=0
15577 if test $ac_cv_header_sys_bitypes_h = yes; then
15578 HAVE_SYS_BITYPES_H=1
15579 else
15580 HAVE_SYS_BITYPES_H=0
15586 if test $APPLE_UNIVERSAL_BUILD = 0; then
15589 for gltype in ptrdiff_t size_t ; do
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15591 $as_echo_n "checking for bit size of $gltype... " >&6; }
15592 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15593 $as_echo_n "(cached) " >&6
15594 else
15595 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15596 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15597 included before <wchar.h>. */
15598 #include <stddef.h>
15599 #include <signal.h>
15600 #if HAVE_WCHAR_H
15601 # include <stdio.h>
15602 # include <time.h>
15603 # include <wchar.h>
15604 #endif
15606 #include <limits.h>"; then :
15608 else
15609 result=unknown
15612 eval gl_cv_bitsizeof_${gltype}=\$result
15615 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15617 $as_echo "$ac_res" >&6; }
15618 eval result=\$gl_cv_bitsizeof_${gltype}
15619 if test $result = unknown; then
15620 result=0
15622 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15623 cat >>confdefs.h <<_ACEOF
15624 #define BITSIZEOF_${GLTYPE} $result
15625 _ACEOF
15627 eval BITSIZEOF_${GLTYPE}=\$result
15628 done
15634 for gltype in sig_atomic_t wchar_t wint_t ; do
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
15636 $as_echo_n "checking for bit size of $gltype... " >&6; }
15637 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
15638 $as_echo_n "(cached) " >&6
15639 else
15640 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
15641 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15642 included before <wchar.h>. */
15643 #include <stddef.h>
15644 #include <signal.h>
15645 #if HAVE_WCHAR_H
15646 # include <stdio.h>
15647 # include <time.h>
15648 # include <wchar.h>
15649 #endif
15651 #include <limits.h>"; then :
15653 else
15654 result=unknown
15657 eval gl_cv_bitsizeof_${gltype}=\$result
15660 eval ac_res=\$gl_cv_bitsizeof_${gltype}
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15662 $as_echo "$ac_res" >&6; }
15663 eval result=\$gl_cv_bitsizeof_${gltype}
15664 if test $result = unknown; then
15665 result=0
15667 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15668 cat >>confdefs.h <<_ACEOF
15669 #define BITSIZEOF_${GLTYPE} $result
15670 _ACEOF
15672 eval BITSIZEOF_${GLTYPE}=\$result
15673 done
15678 for gltype in sig_atomic_t wchar_t wint_t ; do
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
15680 $as_echo_n "checking whether $gltype is signed... " >&6; }
15681 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
15682 $as_echo_n "(cached) " >&6
15683 else
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15687 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15688 included before <wchar.h>. */
15689 #include <stddef.h>
15690 #include <signal.h>
15691 #if HAVE_WCHAR_H
15692 # include <stdio.h>
15693 # include <time.h>
15694 # include <wchar.h>
15695 #endif
15697 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
15699 main ()
15703 return 0;
15705 _ACEOF
15706 if ac_fn_c_try_compile "$LINENO"; then :
15707 result=yes
15708 else
15709 result=no
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 eval gl_cv_type_${gltype}_signed=\$result
15715 eval ac_res=\$gl_cv_type_${gltype}_signed
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15717 $as_echo "$ac_res" >&6; }
15718 eval result=\$gl_cv_type_${gltype}_signed
15719 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15720 if test "$result" = yes; then
15721 cat >>confdefs.h <<_ACEOF
15722 #define HAVE_SIGNED_${GLTYPE} 1
15723 _ACEOF
15725 eval HAVE_SIGNED_${GLTYPE}=1
15726 else
15727 eval HAVE_SIGNED_${GLTYPE}=0
15729 done
15732 gl_cv_type_ptrdiff_t_signed=yes
15733 gl_cv_type_size_t_signed=no
15734 if test $APPLE_UNIVERSAL_BUILD = 0; then
15737 for gltype in ptrdiff_t size_t ; do
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15739 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15740 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15743 eval gl_cv_type_${gltype}_suffix=no
15744 eval result=\$gl_cv_type_${gltype}_signed
15745 if test "$result" = yes; then
15746 glsufu=
15747 else
15748 glsufu=u
15750 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15751 case $glsuf in
15752 '') gltype1='int';;
15753 l) gltype1='long int';;
15754 ll) gltype1='long long int';;
15755 i64) gltype1='__int64';;
15756 u) gltype1='unsigned int';;
15757 ul) gltype1='unsigned long int';;
15758 ull) gltype1='unsigned long long int';;
15759 ui64)gltype1='unsigned __int64';;
15760 esac
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15764 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15765 included before <wchar.h>. */
15766 #include <stddef.h>
15767 #include <signal.h>
15768 #if HAVE_WCHAR_H
15769 # include <stdio.h>
15770 # include <time.h>
15771 # include <wchar.h>
15772 #endif
15774 extern $gltype foo;
15775 extern $gltype1 foo;
15777 main ()
15781 return 0;
15783 _ACEOF
15784 if ac_fn_c_try_compile "$LINENO"; then :
15785 eval gl_cv_type_${gltype}_suffix=\$glsuf
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 eval result=\$gl_cv_type_${gltype}_suffix
15789 test "$result" != no && break
15790 done
15792 eval ac_res=\$gl_cv_type_${gltype}_suffix
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15794 $as_echo "$ac_res" >&6; }
15795 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15796 eval result=\$gl_cv_type_${gltype}_suffix
15797 test "$result" = no && result=
15798 eval ${GLTYPE}_SUFFIX=\$result
15799 cat >>confdefs.h <<_ACEOF
15800 #define ${GLTYPE}_SUFFIX $result
15801 _ACEOF
15803 done
15809 for gltype in sig_atomic_t wchar_t wint_t ; do
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
15811 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
15812 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
15813 $as_echo_n "(cached) " >&6
15814 else
15815 eval gl_cv_type_${gltype}_suffix=no
15816 eval result=\$gl_cv_type_${gltype}_signed
15817 if test "$result" = yes; then
15818 glsufu=
15819 else
15820 glsufu=u
15822 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
15823 case $glsuf in
15824 '') gltype1='int';;
15825 l) gltype1='long int';;
15826 ll) gltype1='long long int';;
15827 i64) gltype1='__int64';;
15828 u) gltype1='unsigned int';;
15829 ul) gltype1='unsigned long int';;
15830 ull) gltype1='unsigned long long int';;
15831 ui64)gltype1='unsigned __int64';;
15832 esac
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15836 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15837 included before <wchar.h>. */
15838 #include <stddef.h>
15839 #include <signal.h>
15840 #if HAVE_WCHAR_H
15841 # include <stdio.h>
15842 # include <time.h>
15843 # include <wchar.h>
15844 #endif
15846 extern $gltype foo;
15847 extern $gltype1 foo;
15849 main ()
15853 return 0;
15855 _ACEOF
15856 if ac_fn_c_try_compile "$LINENO"; then :
15857 eval gl_cv_type_${gltype}_suffix=\$glsuf
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 eval result=\$gl_cv_type_${gltype}_suffix
15861 test "$result" != no && break
15862 done
15864 eval ac_res=\$gl_cv_type_${gltype}_suffix
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15866 $as_echo "$ac_res" >&6; }
15867 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
15868 eval result=\$gl_cv_type_${gltype}_suffix
15869 test "$result" = no && result=
15870 eval ${GLTYPE}_SUFFIX=\$result
15871 cat >>confdefs.h <<_ACEOF
15872 #define ${GLTYPE}_SUFFIX $result
15873 _ACEOF
15875 done
15879 STDINT_H=stdint.h
15882 if test -n "$STDINT_H"; then
15883 GL_GENERATE_STDINT_H_TRUE=
15884 GL_GENERATE_STDINT_H_FALSE='#'
15885 else
15886 GL_GENERATE_STDINT_H_TRUE='#'
15887 GL_GENERATE_STDINT_H_FALSE=
15894 GNULIB_IMAXABS=0;
15895 GNULIB_IMAXDIV=0;
15896 GNULIB_STRTOIMAX=0;
15897 GNULIB_STRTOUMAX=0;
15898 HAVE_DECL_IMAXABS=1;
15899 HAVE_DECL_IMAXDIV=1;
15900 HAVE_DECL_STRTOIMAX=1;
15901 HAVE_DECL_STRTOUMAX=1;
15902 INT32_MAX_LT_INTMAX_MAX=1;
15903 INT64_MAX_EQ_LONG_MAX='defined _LP64';
15904 PRI_MACROS_BROKEN=0;
15905 PRIPTR_PREFIX=__PRIPTR_PREFIX;
15906 UINT32_MAX_LT_UINTMAX_MAX=1;
15907 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
15923 if test $gl_cv_have_include_next = yes; then
15924 gl_cv_next_inttypes_h='<'inttypes.h'>'
15925 else
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
15927 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
15928 if test "${gl_cv_next_inttypes_h+set}" = set; then :
15929 $as_echo_n "(cached) " >&6
15930 else
15932 if test $ac_cv_header_inttypes_h = yes; then
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937 #include <inttypes.h>
15939 _ACEOF
15940 case "$host_os" in
15941 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15942 *) gl_absname_cpp="$ac_cpp" ;;
15943 esac
15944 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15945 sed -n '\#/inttypes.h#{
15946 s#.*"\(.*/inttypes.h\)".*#\1#
15947 s#^/[^/]#//&#
15950 }'`'"'
15951 else
15952 gl_cv_next_inttypes_h='<'inttypes.h'>'
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
15958 $as_echo "$gl_cv_next_inttypes_h" >&6; }
15960 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
15962 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15963 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15964 gl_next_as_first_directive='<'inttypes.h'>'
15965 else
15966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15967 gl_next_as_first_directive=$gl_cv_next_inttypes_h
15969 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
15978 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
15985 GNULIB_FCHMODAT=0;
15986 GNULIB_FSTATAT=0;
15987 GNULIB_FUTIMENS=0;
15988 GNULIB_LCHMOD=0;
15989 GNULIB_LSTAT=0;
15990 GNULIB_MKDIRAT=0;
15991 GNULIB_MKFIFO=0;
15992 GNULIB_MKFIFOAT=0;
15993 GNULIB_MKNOD=0;
15994 GNULIB_MKNODAT=0;
15995 GNULIB_STAT=0;
15996 GNULIB_UTIMENSAT=0;
15997 HAVE_FCHMODAT=1;
15998 HAVE_FSTATAT=1;
15999 HAVE_FUTIMENS=1;
16000 HAVE_LCHMOD=1;
16001 HAVE_LSTAT=1;
16002 HAVE_MKDIRAT=1;
16003 HAVE_MKFIFO=1;
16004 HAVE_MKFIFOAT=1;
16005 HAVE_MKNOD=1;
16006 HAVE_MKNODAT=1;
16007 HAVE_UTIMENSAT=1;
16008 REPLACE_FSTAT=0;
16009 REPLACE_FSTATAT=0;
16010 REPLACE_FUTIMENS=0;
16011 REPLACE_LSTAT=0;
16012 REPLACE_MKDIR=0;
16013 REPLACE_MKFIFO=0;
16014 REPLACE_MKNOD=0;
16015 REPLACE_STAT=0;
16016 REPLACE_UTIMENSAT=0;
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16022 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16023 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 rm -f conftest.sym conftest.file
16027 echo >conftest.file
16028 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16029 if test "$cross_compiling" = yes; then :
16030 # When cross-compiling, be pessimistic so we will end up using the
16031 # replacement version of lstat that checks for trailing slashes and
16032 # calls lstat a second time when necessary.
16033 ac_cv_func_lstat_dereferences_slashed_symlink=no
16035 else
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038 $ac_includes_default
16040 main ()
16042 struct stat sbuf;
16043 /* Linux will dereference the symlink and fail, as required by
16044 POSIX. That is better in the sense that it means we will not
16045 have to compile and use the lstat wrapper. */
16046 return lstat ("conftest.sym/", &sbuf) == 0;
16049 return 0;
16051 _ACEOF
16052 if ac_fn_c_try_run "$LINENO"; then :
16053 ac_cv_func_lstat_dereferences_slashed_symlink=yes
16054 else
16055 ac_cv_func_lstat_dereferences_slashed_symlink=no
16057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16058 conftest.$ac_objext conftest.beam conftest.$ac_ext
16061 else
16062 # If the 'ln -s' command failed, then we probably don't even
16063 # have an lstat function.
16064 ac_cv_func_lstat_dereferences_slashed_symlink=no
16066 rm -f conftest.sym conftest.file
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16070 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16071 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16073 cat >>confdefs.h <<_ACEOF
16074 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16075 _ACEOF
16077 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16086 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
16091 GNULIB_MKTIME=0;
16092 GNULIB_NANOSLEEP=0;
16093 GNULIB_STRPTIME=0;
16094 GNULIB_TIMEGM=0;
16095 GNULIB_TIME_R=0;
16096 HAVE_DECL_LOCALTIME_R=1;
16097 HAVE_NANOSLEEP=1;
16098 HAVE_STRPTIME=1;
16099 HAVE_TIMEGM=1;
16100 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
16101 REPLACE_MKTIME=GNULIB_PORTCHECK;
16102 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
16103 REPLACE_TIMEGM=GNULIB_PORTCHECK;
16112 if test $ac_cv_header_sys_socket_h = no; then
16113 for ac_header in ws2tcpip.h
16114 do :
16115 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
16116 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
16117 cat >>confdefs.h <<_ACEOF
16118 #define HAVE_WS2TCPIP_H 1
16119 _ACEOF
16123 done
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
16128 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16129 if test "${ac_cv_header_stdbool_h+set}" = set; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16135 #include <stdbool.h>
16136 #ifndef bool
16137 "error: bool is not defined"
16138 #endif
16139 #ifndef false
16140 "error: false is not defined"
16141 #endif
16142 #if false
16143 "error: false is not 0"
16144 #endif
16145 #ifndef true
16146 "error: true is not defined"
16147 #endif
16148 #if true != 1
16149 "error: true is not 1"
16150 #endif
16151 #ifndef __bool_true_false_are_defined
16152 "error: __bool_true_false_are_defined is not defined"
16153 #endif
16155 struct s { _Bool s: 1; _Bool t; } s;
16157 char a[true == 1 ? 1 : -1];
16158 char b[false == 0 ? 1 : -1];
16159 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16160 char d[(bool) 0.5 == true ? 1 : -1];
16161 /* See body of main program for 'e'. */
16162 char f[(_Bool) 0.0 == false ? 1 : -1];
16163 char g[true];
16164 char h[sizeof (_Bool)];
16165 char i[sizeof s.t];
16166 enum { j = false, k = true, l = false * true, m = true * 256 };
16167 /* The following fails for
16168 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16169 _Bool n[m];
16170 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16171 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16172 /* Catch a bug in an HP-UX C compiler. See
16173 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16174 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16176 _Bool q = true;
16177 _Bool *pq = &q;
16180 main ()
16183 bool e = &s;
16184 *pq |= q;
16185 *pq |= ! q;
16186 /* Refer to every declared value, to avoid compiler optimizations. */
16187 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16188 + !m + !n + !o + !p + !q + !pq);
16191 return 0;
16193 _ACEOF
16194 if ac_fn_c_try_compile "$LINENO"; then :
16195 ac_cv_header_stdbool_h=yes
16196 else
16197 ac_cv_header_stdbool_h=no
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16202 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16203 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16204 if test "x$ac_cv_type__Bool" = x""yes; then :
16206 cat >>confdefs.h <<_ACEOF
16207 #define HAVE__BOOL 1
16208 _ACEOF
16215 REPLACE_NULL=0;
16216 HAVE_WCHAR_T=1;
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
16220 $as_echo_n "checking for wchar_t... " >&6; }
16221 if test "${gt_cv_c_wchar_t+set}" = set; then :
16222 $as_echo_n "(cached) " >&6
16223 else
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16226 #include <stddef.h>
16227 wchar_t foo = (wchar_t)'\0';
16229 main ()
16233 return 0;
16235 _ACEOF
16236 if ac_fn_c_try_compile "$LINENO"; then :
16237 gt_cv_c_wchar_t=yes
16238 else
16239 gt_cv_c_wchar_t=no
16241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
16244 $as_echo "$gt_cv_c_wchar_t" >&6; }
16245 if test $gt_cv_c_wchar_t = yes; then
16247 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
16252 GNULIB_DPRINTF=0;
16253 GNULIB_FCLOSE=0;
16254 GNULIB_FFLUSH=0;
16255 GNULIB_FGETC=0;
16256 GNULIB_FGETS=0;
16257 GNULIB_FOPEN=0;
16258 GNULIB_FPRINTF=0;
16259 GNULIB_FPRINTF_POSIX=0;
16260 GNULIB_FPURGE=0;
16261 GNULIB_FPUTC=0;
16262 GNULIB_FPUTS=0;
16263 GNULIB_FREAD=0;
16264 GNULIB_FREOPEN=0;
16265 GNULIB_FSCANF=0;
16266 GNULIB_FSEEK=0;
16267 GNULIB_FSEEKO=0;
16268 GNULIB_FTELL=0;
16269 GNULIB_FTELLO=0;
16270 GNULIB_FWRITE=0;
16271 GNULIB_GETC=0;
16272 GNULIB_GETCHAR=0;
16273 GNULIB_GETDELIM=0;
16274 GNULIB_GETLINE=0;
16275 GNULIB_GETS=0;
16276 GNULIB_OBSTACK_PRINTF=0;
16277 GNULIB_OBSTACK_PRINTF_POSIX=0;
16278 GNULIB_PERROR=0;
16279 GNULIB_POPEN=0;
16280 GNULIB_PRINTF=0;
16281 GNULIB_PRINTF_POSIX=0;
16282 GNULIB_PUTC=0;
16283 GNULIB_PUTCHAR=0;
16284 GNULIB_PUTS=0;
16285 GNULIB_REMOVE=0;
16286 GNULIB_RENAME=0;
16287 GNULIB_RENAMEAT=0;
16288 GNULIB_SCANF=0;
16289 GNULIB_SNPRINTF=0;
16290 GNULIB_SPRINTF_POSIX=0;
16291 GNULIB_STDIO_H_NONBLOCKING=0;
16292 GNULIB_STDIO_H_SIGPIPE=0;
16293 GNULIB_TMPFILE=0;
16294 GNULIB_VASPRINTF=0;
16295 GNULIB_VFSCANF=0;
16296 GNULIB_VSCANF=0;
16297 GNULIB_VDPRINTF=0;
16298 GNULIB_VFPRINTF=0;
16299 GNULIB_VFPRINTF_POSIX=0;
16300 GNULIB_VPRINTF=0;
16301 GNULIB_VPRINTF_POSIX=0;
16302 GNULIB_VSNPRINTF=0;
16303 GNULIB_VSPRINTF_POSIX=0;
16304 HAVE_DECL_FPURGE=1;
16305 HAVE_DECL_FSEEKO=1;
16306 HAVE_DECL_FTELLO=1;
16307 HAVE_DECL_GETDELIM=1;
16308 HAVE_DECL_GETLINE=1;
16309 HAVE_DECL_OBSTACK_PRINTF=1;
16310 HAVE_DECL_SNPRINTF=1;
16311 HAVE_DECL_VSNPRINTF=1;
16312 HAVE_DPRINTF=1;
16313 HAVE_FSEEKO=1;
16314 HAVE_FTELLO=1;
16315 HAVE_RENAMEAT=1;
16316 HAVE_VASPRINTF=1;
16317 HAVE_VDPRINTF=1;
16318 REPLACE_DPRINTF=0;
16319 REPLACE_FCLOSE=0;
16320 REPLACE_FFLUSH=0;
16321 REPLACE_FOPEN=0;
16322 REPLACE_FPRINTF=0;
16323 REPLACE_FPURGE=0;
16324 REPLACE_FREOPEN=0;
16325 REPLACE_FSEEK=0;
16326 REPLACE_FSEEKO=0;
16327 REPLACE_FTELL=0;
16328 REPLACE_FTELLO=0;
16329 REPLACE_GETDELIM=0;
16330 REPLACE_GETLINE=0;
16331 REPLACE_OBSTACK_PRINTF=0;
16332 REPLACE_PERROR=0;
16333 REPLACE_POPEN=0;
16334 REPLACE_PRINTF=0;
16335 REPLACE_REMOVE=0;
16336 REPLACE_RENAME=0;
16337 REPLACE_RENAMEAT=0;
16338 REPLACE_SNPRINTF=0;
16339 REPLACE_SPRINTF=0;
16340 REPLACE_STDIO_READ_FUNCS=0;
16341 REPLACE_STDIO_WRITE_FUNCS=0;
16342 REPLACE_TMPFILE=0;
16343 REPLACE_VASPRINTF=0;
16344 REPLACE_VDPRINTF=0;
16345 REPLACE_VFPRINTF=0;
16346 REPLACE_VPRINTF=0;
16347 REPLACE_VSNPRINTF=0;
16348 REPLACE_VSPRINTF=0;
16351 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
16353 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
16355 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
16362 ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
16363 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then :
16364 ac_have_decl=1
16365 else
16366 ac_have_decl=0
16369 cat >>confdefs.h <<_ACEOF
16370 #define HAVE_DECL_STRTOUMAX $ac_have_decl
16371 _ACEOF
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16376 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16377 if test "${ac_cv_header_stat_broken+set}" = set; then :
16378 $as_echo_n "(cached) " >&6
16379 else
16380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16382 #include <sys/types.h>
16383 #include <sys/stat.h>
16385 #if defined S_ISBLK && defined S_IFDIR
16386 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16387 #endif
16389 #if defined S_ISBLK && defined S_IFCHR
16390 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16391 #endif
16393 #if defined S_ISLNK && defined S_IFREG
16394 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16395 #endif
16397 #if defined S_ISSOCK && defined S_IFREG
16398 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16399 #endif
16401 _ACEOF
16402 if ac_fn_c_try_compile "$LINENO"; then :
16403 ac_cv_header_stat_broken=no
16404 else
16405 ac_cv_header_stat_broken=yes
16407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16410 $as_echo "$ac_cv_header_stat_broken" >&6; }
16411 if test $ac_cv_header_stat_broken = yes; then
16413 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16420 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16421 if test "${ac_cv_c_restrict+set}" = set; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424 ac_cv_c_restrict=no
16425 # The order here caters to the fact that C++ does not require restrict.
16426 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429 typedef int * int_ptr;
16430 int foo (int_ptr $ac_kw ip) {
16431 return ip[0];
16434 main ()
16436 int s[1];
16437 int * $ac_kw t = s;
16438 t[0] = 0;
16439 return foo(t)
16441 return 0;
16443 _ACEOF
16444 if ac_fn_c_try_compile "$LINENO"; then :
16445 ac_cv_c_restrict=$ac_kw
16447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 test "$ac_cv_c_restrict" != no && break
16449 done
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16453 $as_echo "$ac_cv_c_restrict" >&6; }
16455 case $ac_cv_c_restrict in
16456 restrict) ;;
16457 no) $as_echo "#define restrict /**/" >>confdefs.h
16459 *) cat >>confdefs.h <<_ACEOF
16460 #define restrict $ac_cv_c_restrict
16461 _ACEOF
16463 esac
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16470 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
16471 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
16472 $as_echo_n "(cached) " >&6
16473 else
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16476 #include <time.h>
16479 main ()
16481 static struct timespec x; x.tv_sec = x.tv_nsec;
16483 return 0;
16485 _ACEOF
16486 if ac_fn_c_try_compile "$LINENO"; then :
16487 gl_cv_sys_struct_timespec_in_time_h=yes
16488 else
16489 gl_cv_sys_struct_timespec_in_time_h=no
16491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16494 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16496 TIME_H_DEFINES_STRUCT_TIMESPEC=0
16497 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16498 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
16499 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16500 TIME_H_DEFINES_STRUCT_TIMESPEC=1
16501 else
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16503 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
16504 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
16505 $as_echo_n "(cached) " >&6
16506 else
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16509 #include <sys/time.h>
16512 main ()
16514 static struct timespec x; x.tv_sec = x.tv_nsec;
16516 return 0;
16518 _ACEOF
16519 if ac_fn_c_try_compile "$LINENO"; then :
16520 gl_cv_sys_struct_timespec_in_sys_time_h=yes
16521 else
16522 gl_cv_sys_struct_timespec_in_sys_time_h=no
16524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16527 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16528 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16529 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16530 else
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16532 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
16533 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
16534 $as_echo_n "(cached) " >&6
16535 else
16536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16538 #include <pthread.h>
16541 main ()
16543 static struct timespec x; x.tv_sec = x.tv_nsec;
16545 return 0;
16547 _ACEOF
16548 if ac_fn_c_try_compile "$LINENO"; then :
16549 gl_cv_sys_struct_timespec_in_pthread_h=yes
16550 else
16551 gl_cv_sys_struct_timespec_in_pthread_h=no
16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16556 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16557 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16558 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
16577 if test $gl_cv_have_include_next = yes; then
16578 gl_cv_next_time_h='<'time.h'>'
16579 else
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16581 $as_echo_n "checking absolute name of <time.h>... " >&6; }
16582 if test "${gl_cv_next_time_h+set}" = set; then :
16583 $as_echo_n "(cached) " >&6
16584 else
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #include <time.h>
16590 _ACEOF
16591 case "$host_os" in
16592 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16593 *) gl_absname_cpp="$ac_cpp" ;;
16594 esac
16595 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16596 sed -n '\#/time.h#{
16597 s#.*"\(.*/time.h\)".*#\1#
16598 s#^/[^/]#//&#
16601 }'`'"'
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16606 $as_echo "$gl_cv_next_time_h" >&6; }
16608 NEXT_TIME_H=$gl_cv_next_time_h
16610 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16612 gl_next_as_first_directive='<'time.h'>'
16613 else
16614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16615 gl_next_as_first_directive=$gl_cv_next_time_h
16617 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
16624 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
16625 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
16626 ac_have_decl=1
16627 else
16628 ac_have_decl=0
16631 cat >>confdefs.h <<_ACEOF
16632 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
16633 _ACEOF
16638 if false; then
16639 GL_COND_LIBTOOL_TRUE=
16640 GL_COND_LIBTOOL_FALSE='#'
16641 else
16642 GL_COND_LIBTOOL_TRUE='#'
16643 GL_COND_LIBTOOL_FALSE=
16646 gl_cond_libtool=false
16647 gl_libdeps=
16648 gl_ltlibdeps=
16649 gl_m4_base='m4'
16659 gl_source_base='lib'
16670 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
16686 gl_LIBOBJS="$gl_LIBOBJS sha1.$ac_objext"
16704 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
16710 # Persuade glibc <stdlib.h> to declare getloadavg().
16713 gl_save_LIBS=$LIBS
16715 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
16716 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
16717 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
16718 if test "x$ac_cv_func_getloadavg" = x""yes; then :
16720 else
16721 gl_have_func=no
16723 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16724 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16725 # to get the right answer into the cache.
16726 # For kstat on solaris, we need to test for libelf and libkvm to force the
16727 # definition of SVR4 below.
16728 if test $gl_have_func = no; then
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
16730 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
16731 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
16732 $as_echo_n "(cached) " >&6
16733 else
16734 ac_check_lib_save_LIBS=$LIBS
16735 LIBS="-lelf $LIBS"
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16739 /* Override any GCC internal prototype to avoid an error.
16740 Use char because int might match the return type of a GCC
16741 builtin and then its argument prototype would still apply. */
16742 #ifdef __cplusplus
16743 extern "C"
16744 #endif
16745 char elf_begin ();
16747 main ()
16749 return elf_begin ();
16751 return 0;
16753 _ACEOF
16754 if ac_fn_c_try_link "$LINENO"; then :
16755 ac_cv_lib_elf_elf_begin=yes
16756 else
16757 ac_cv_lib_elf_elf_begin=no
16759 rm -f core conftest.err conftest.$ac_objext \
16760 conftest$ac_exeext conftest.$ac_ext
16761 LIBS=$ac_check_lib_save_LIBS
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
16764 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
16765 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
16766 LIBS="-lelf $LIBS"
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
16770 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
16771 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
16772 $as_echo_n "(cached) " >&6
16773 else
16774 ac_check_lib_save_LIBS=$LIBS
16775 LIBS="-lkvm $LIBS"
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16779 /* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
16782 #ifdef __cplusplus
16783 extern "C"
16784 #endif
16785 char kvm_open ();
16787 main ()
16789 return kvm_open ();
16791 return 0;
16793 _ACEOF
16794 if ac_fn_c_try_link "$LINENO"; then :
16795 ac_cv_lib_kvm_kvm_open=yes
16796 else
16797 ac_cv_lib_kvm_kvm_open=no
16799 rm -f core conftest.err conftest.$ac_objext \
16800 conftest$ac_exeext conftest.$ac_ext
16801 LIBS=$ac_check_lib_save_LIBS
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
16804 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
16805 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
16806 LIBS="-lkvm $LIBS"
16809 # Check for the 4.4BSD definition of getloadavg.
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
16811 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
16812 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
16813 $as_echo_n "(cached) " >&6
16814 else
16815 ac_check_lib_save_LIBS=$LIBS
16816 LIBS="-lutil $LIBS"
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16820 /* Override any GCC internal prototype to avoid an error.
16821 Use char because int might match the return type of a GCC
16822 builtin and then its argument prototype would still apply. */
16823 #ifdef __cplusplus
16824 extern "C"
16825 #endif
16826 char getloadavg ();
16828 main ()
16830 return getloadavg ();
16832 return 0;
16834 _ACEOF
16835 if ac_fn_c_try_link "$LINENO"; then :
16836 ac_cv_lib_util_getloadavg=yes
16837 else
16838 ac_cv_lib_util_getloadavg=no
16840 rm -f core conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16842 LIBS=$ac_check_lib_save_LIBS
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
16845 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
16846 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
16847 LIBS="-lutil $LIBS" gl_have_func=yes
16852 if test $gl_have_func = no; then
16853 # There is a commonly available library for RS/6000 AIX.
16854 # Since it is not a standard part of AIX, it might be installed locally.
16855 gl_getloadavg_LIBS=$LIBS
16856 LIBS="-L/usr/local/lib $LIBS"
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
16858 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
16859 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
16860 $as_echo_n "(cached) " >&6
16861 else
16862 ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-lgetloadavg $LIBS"
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16867 /* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
16870 #ifdef __cplusplus
16871 extern "C"
16872 #endif
16873 char getloadavg ();
16875 main ()
16877 return getloadavg ();
16879 return 0;
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 ac_cv_lib_getloadavg_getloadavg=yes
16884 else
16885 ac_cv_lib_getloadavg_getloadavg=no
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16892 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
16893 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
16894 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
16895 else
16896 LIBS=$gl_getloadavg_LIBS
16901 # Set up the replacement function if necessary.
16902 if test $gl_have_func = no; then
16911 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
16914 # Figure out what our getloadavg.c needs.
16916 # Solaris has libkstat which does not require root.
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
16918 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
16919 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
16920 $as_echo_n "(cached) " >&6
16921 else
16922 ac_check_lib_save_LIBS=$LIBS
16923 LIBS="-lkstat $LIBS"
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char kstat_open ();
16935 main ()
16937 return kstat_open ();
16939 return 0;
16941 _ACEOF
16942 if ac_fn_c_try_link "$LINENO"; then :
16943 ac_cv_lib_kstat_kstat_open=yes
16944 else
16945 ac_cv_lib_kstat_kstat_open=no
16947 rm -f core conftest.err conftest.$ac_objext \
16948 conftest$ac_exeext conftest.$ac_ext
16949 LIBS=$ac_check_lib_save_LIBS
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
16952 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
16953 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
16954 cat >>confdefs.h <<_ACEOF
16955 #define HAVE_LIBKSTAT 1
16956 _ACEOF
16958 LIBS="-lkstat $LIBS"
16962 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
16964 # On HPUX9, an unprivileged user can get load averages this way.
16965 if test $gl_have_func = no; then
16966 for ac_func in pstat_getdynamic
16967 do :
16968 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
16969 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
16970 cat >>confdefs.h <<_ACEOF
16971 #define HAVE_PSTAT_GETDYNAMIC 1
16972 _ACEOF
16973 gl_have_func=yes
16975 done
16979 # AIX has libperfstat which does not require root
16980 if test $gl_have_func = no; then
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
16982 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
16983 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
16984 $as_echo_n "(cached) " >&6
16985 else
16986 ac_check_lib_save_LIBS=$LIBS
16987 LIBS="-lperfstat $LIBS"
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16991 /* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
16994 #ifdef __cplusplus
16995 extern "C"
16996 #endif
16997 char perfstat_cpu_total ();
16999 main ()
17001 return perfstat_cpu_total ();
17003 return 0;
17005 _ACEOF
17006 if ac_fn_c_try_link "$LINENO"; then :
17007 ac_cv_lib_perfstat_perfstat_cpu_total=yes
17008 else
17009 ac_cv_lib_perfstat_perfstat_cpu_total=no
17011 rm -f core conftest.err conftest.$ac_objext \
17012 conftest$ac_exeext conftest.$ac_ext
17013 LIBS=$ac_check_lib_save_LIBS
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
17016 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
17017 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
17018 cat >>confdefs.h <<_ACEOF
17019 #define HAVE_LIBPERFSTAT 1
17020 _ACEOF
17022 LIBS="-lperfstat $LIBS"
17026 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
17029 if test $gl_have_func = no; then
17030 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
17031 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
17032 gl_have_func=yes
17034 $as_echo "#define DGUX 1" >>confdefs.h
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
17037 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
17038 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
17039 $as_echo_n "(cached) " >&6
17040 else
17041 ac_check_lib_save_LIBS=$LIBS
17042 LIBS="-ldgc $LIBS"
17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17044 /* end confdefs.h. */
17046 /* Override any GCC internal prototype to avoid an error.
17047 Use char because int might match the return type of a GCC
17048 builtin and then its argument prototype would still apply. */
17049 #ifdef __cplusplus
17050 extern "C"
17051 #endif
17052 char dg_sys_info ();
17054 main ()
17056 return dg_sys_info ();
17058 return 0;
17060 _ACEOF
17061 if ac_fn_c_try_link "$LINENO"; then :
17062 ac_cv_lib_dgc_dg_sys_info=yes
17063 else
17064 ac_cv_lib_dgc_dg_sys_info=no
17066 rm -f core conftest.err conftest.$ac_objext \
17067 conftest$ac_exeext conftest.$ac_ext
17068 LIBS=$ac_check_lib_save_LIBS
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17071 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
17072 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
17073 cat >>confdefs.h <<_ACEOF
17074 #define HAVE_LIBDGC 1
17075 _ACEOF
17077 LIBS="-ldgc $LIBS"
17086 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17087 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17088 # Irix 4.0.5F has the header but not the library.
17089 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
17090 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
17091 gl_have_func=yes
17093 $as_echo "#define SVR4 1" >>confdefs.h
17097 if test $gl_have_func = no; then
17098 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
17099 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
17100 gl_have_func=yes
17102 $as_echo "#define UMAX 1" >>confdefs.h
17105 $as_echo "#define UMAX4_3 1" >>confdefs.h
17112 if test $gl_have_func = no; then
17113 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
17114 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
17115 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
17122 if test $gl_have_func = no; then
17123 for ac_header in mach/mach.h
17124 do :
17125 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
17126 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
17127 cat >>confdefs.h <<_ACEOF
17128 #define HAVE_MACH_MACH_H 1
17129 _ACEOF
17133 done
17137 for ac_header in nlist.h
17138 do :
17139 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
17140 if test "x$ac_cv_header_nlist_h" = x""yes; then :
17141 cat >>confdefs.h <<_ACEOF
17142 #define HAVE_NLIST_H 1
17143 _ACEOF
17144 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
17146 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
17148 cat >>confdefs.h <<_ACEOF
17149 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17150 _ACEOF
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17157 #include <nlist.h>
17159 main ()
17161 struct nlist x;
17162 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
17163 x.n_un.n_name = "";
17164 #else
17165 x.n_name = "";
17166 #endif
17168 return 0;
17170 _ACEOF
17171 if ac_fn_c_try_link "$LINENO"; then :
17173 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
17176 rm -f core conftest.err conftest.$ac_objext \
17177 conftest$ac_exeext conftest.$ac_ext
17181 done
17187 if test "x$gl_save_LIBS" = x; then
17188 GETLOADAVG_LIBS=$LIBS
17189 else
17190 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
17192 LIBS=$gl_save_LIBS
17195 # Test whether the system declares getloadavg. Solaris has the function
17196 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
17197 for ac_header in sys/loadavg.h
17198 do :
17199 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
17200 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
17201 cat >>confdefs.h <<_ACEOF
17202 #define HAVE_SYS_LOADAVG_H 1
17203 _ACEOF
17207 done
17209 if test $ac_cv_header_sys_loadavg_h = yes; then
17210 HAVE_SYS_LOADAVG_H=1
17211 else
17212 HAVE_SYS_LOADAVG_H=0
17214 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
17215 # include <sys/loadavg.h>
17216 #endif
17217 #include <stdlib.h>
17219 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
17221 else
17222 HAVE_DECL_GETLOADAVG=0
17229 GNULIB_GETLOADAVG=1
17244 if test -n "$gl_replace_getopt"; then :
17248 GETOPT_H=getopt.h
17250 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
17254 GNULIB_UNISTD_H_GETOPT=1
17263 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
17273 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
17288 if test $ac_cv_func_lstat = yes; then
17290 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
17291 REPLACE_LSTAT=1
17293 # Prerequisites of lib/lstat.c.
17295 else
17296 HAVE_LSTAT=0
17302 GNULIB_LSTAT=1
17311 if test $APPLE_UNIVERSAL_BUILD = 1; then
17312 # A universal build on Apple MacOS X platforms.
17313 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
17314 # But we need a configuration result that is valid in both modes.
17315 ac_cv_func_working_mktime=no
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17318 $as_echo_n "checking for working mktime... " >&6; }
17319 if test "${ac_cv_func_working_mktime+set}" = set; then :
17320 $as_echo_n "(cached) " >&6
17321 else
17322 if test "$cross_compiling" = yes; then :
17323 ac_cv_func_working_mktime=no
17324 else
17325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17327 /* Test program from Paul Eggert and Tony Leneis. */
17328 #include <limits.h>
17329 #include <stdlib.h>
17330 #include <time.h>
17332 #ifdef HAVE_UNISTD_H
17333 # include <unistd.h>
17334 #endif
17336 #ifndef HAVE_ALARM
17337 # define alarm(X) /* empty */
17338 #endif
17340 /* Work around redefinition to rpl_putenv by other config tests. */
17341 #undef putenv
17343 static time_t time_t_max;
17344 static time_t time_t_min;
17346 /* Values we'll use to set the TZ environment variable. */
17347 static char *tz_strings[] = {
17348 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17349 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17351 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17353 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17354 Based on a problem report from Andreas Jaeger. */
17355 static int
17356 spring_forward_gap ()
17358 /* glibc (up to about 1998-10-07) failed this test. */
17359 struct tm tm;
17361 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17362 instead of "TZ=America/Vancouver" in order to detect the bug even
17363 on systems that don't support the Olson extension, or don't have the
17364 full zoneinfo tables installed. */
17365 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17367 tm.tm_year = 98;
17368 tm.tm_mon = 3;
17369 tm.tm_mday = 5;
17370 tm.tm_hour = 2;
17371 tm.tm_min = 0;
17372 tm.tm_sec = 0;
17373 tm.tm_isdst = -1;
17374 return mktime (&tm) != (time_t) -1;
17377 static int
17378 mktime_test1 (time_t now)
17380 struct tm *lt;
17381 return ! (lt = localtime (&now)) || mktime (lt) == now;
17384 static int
17385 mktime_test (time_t now)
17387 return (mktime_test1 (now)
17388 && mktime_test1 ((time_t) (time_t_max - now))
17389 && mktime_test1 ((time_t) (time_t_min + now)));
17392 static int
17393 irix_6_4_bug ()
17395 /* Based on code from Ariel Faigon. */
17396 struct tm tm;
17397 tm.tm_year = 96;
17398 tm.tm_mon = 3;
17399 tm.tm_mday = 0;
17400 tm.tm_hour = 0;
17401 tm.tm_min = 0;
17402 tm.tm_sec = 0;
17403 tm.tm_isdst = -1;
17404 mktime (&tm);
17405 return tm.tm_mon == 2 && tm.tm_mday == 31;
17408 static int
17409 bigtime_test (int j)
17411 struct tm tm;
17412 time_t now;
17413 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17414 now = mktime (&tm);
17415 if (now != (time_t) -1)
17417 struct tm *lt = localtime (&now);
17418 if (! (lt
17419 && lt->tm_year == tm.tm_year
17420 && lt->tm_mon == tm.tm_mon
17421 && lt->tm_mday == tm.tm_mday
17422 && lt->tm_hour == tm.tm_hour
17423 && lt->tm_min == tm.tm_min
17424 && lt->tm_sec == tm.tm_sec
17425 && lt->tm_yday == tm.tm_yday
17426 && lt->tm_wday == tm.tm_wday
17427 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17428 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17429 return 0;
17431 return 1;
17434 static int
17435 year_2050_test ()
17437 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17438 ignoring leap seconds. */
17439 unsigned long int answer = 2527315200UL;
17441 struct tm tm;
17442 time_t t;
17443 tm.tm_year = 2050 - 1900;
17444 tm.tm_mon = 2 - 1;
17445 tm.tm_mday = 1;
17446 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17447 tm.tm_isdst = -1;
17449 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17450 instead of "TZ=America/Vancouver" in order to detect the bug even
17451 on systems that don't support the Olson extension, or don't have the
17452 full zoneinfo tables installed. */
17453 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17455 t = mktime (&tm);
17457 /* Check that the result is either a failure, or close enough
17458 to the correct answer that we can assume the discrepancy is
17459 due to leap seconds. */
17460 return (t == (time_t) -1
17461 || (0 < t && answer - 120 <= t && t <= answer + 120));
17465 main ()
17467 int result = 0;
17468 time_t t, delta;
17469 int i, j;
17470 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
17471 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
17473 /* This test makes some buggy mktime implementations loop.
17474 Give up after 60 seconds; a mktime slower than that
17475 isn't worth using anyway. */
17476 alarm (60);
17478 time_t_max = (! time_t_signed
17479 ? (time_t) -1
17480 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
17481 * 2 + 1));
17482 time_t_min = (! time_t_signed
17483 ? (time_t) 0
17484 : time_t_signed_magnitude
17485 ? ~ (time_t) 0
17486 : ~ time_t_max);
17488 delta = time_t_max / 997; /* a suitable prime number */
17489 for (i = 0; i < N_STRINGS; i++)
17491 if (tz_strings[i])
17492 putenv (tz_strings[i]);
17494 for (t = 0; t <= time_t_max - delta; t += delta)
17495 if (! mktime_test (t))
17496 result |= 1;
17497 if (! (mktime_test ((time_t) 1)
17498 && mktime_test ((time_t) (60 * 60))
17499 && mktime_test ((time_t) (60 * 60 * 24))))
17500 result |= 2;
17502 for (j = 1; ; j <<= 1)
17503 if (! bigtime_test (j))
17504 result |= 4;
17505 else if (INT_MAX / 2 < j)
17506 break;
17507 if (! bigtime_test (INT_MAX))
17508 result |= 8;
17510 if (! irix_6_4_bug ())
17511 result |= 16;
17512 if (! spring_forward_gap ())
17513 result |= 32;
17514 if (! year_2050_test ())
17515 result |= 64;
17516 return result;
17518 _ACEOF
17519 if ac_fn_c_try_run "$LINENO"; then :
17520 ac_cv_func_working_mktime=yes
17521 else
17522 ac_cv_func_working_mktime=no
17524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17525 conftest.$ac_objext conftest.beam conftest.$ac_ext
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
17530 $as_echo "$ac_cv_func_working_mktime" >&6; }
17531 if test $ac_cv_func_working_mktime = no; then
17540 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
17544 if test $ac_cv_func_working_mktime = no; then
17545 REPLACE_MKTIME=1
17549 else
17550 REPLACE_MKTIME=0
17556 GNULIB_MKTIME=1
17564 if test $ac_cv_func_readlink = no; then
17565 HAVE_READLINK=0
17574 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17579 else
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
17581 $as_echo_n "checking whether readlink signature is correct... " >&6; }
17582 if test "${gl_cv_decl_readlink_works+set}" = set; then :
17583 $as_echo_n "(cached) " >&6
17584 else
17585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17586 /* end confdefs.h. */
17587 #include <unistd.h>
17588 /* Cause compilation failure if original declaration has wrong type. */
17589 ssize_t readlink (const char *, char *, size_t);
17591 main ()
17595 return 0;
17597 _ACEOF
17598 if ac_fn_c_try_compile "$LINENO"; then :
17599 gl_cv_decl_readlink_works=yes
17600 else
17601 gl_cv_decl_readlink_works=no
17603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
17606 $as_echo "$gl_cv_decl_readlink_works" >&6; }
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
17608 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
17609 if test "${gl_cv_func_readlink_works+set}" = set; then :
17610 $as_echo_n "(cached) " >&6
17611 else
17612 # We have readlink, so assume ln -s works.
17613 ln -s conftest.no-such conftest.link
17614 ln -s conftest.link conftest.lnk2
17615 if test "$cross_compiling" = yes; then :
17616 gl_cv_func_readlink_works="guessing no"
17617 else
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620 #include <unistd.h>
17623 main ()
17625 char buf[20];
17626 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
17628 return 0;
17630 _ACEOF
17631 if ac_fn_c_try_run "$LINENO"; then :
17632 gl_cv_func_readlink_works=yes
17633 else
17634 gl_cv_func_readlink_works=no
17636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17637 conftest.$ac_objext conftest.beam conftest.$ac_ext
17640 rm -f conftest.link conftest.lnk2
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
17643 $as_echo "$gl_cv_func_readlink_works" >&6; }
17644 if test "$gl_cv_func_readlink_works" != yes; then
17646 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
17648 REPLACE_READLINK=1
17657 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17659 elif test "$gl_cv_decl_readlink_works" != yes; then
17660 REPLACE_READLINK=1
17669 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
17677 GNULIB_READLINK=1
17681 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
17682 /* <sys/types.h> is not needed according to POSIX, but the
17683 <sys/socket.h> in i386-unknown-freebsd4.10 and
17684 powerpc-apple-darwin5.5 required it. */
17685 #include <sys/types.h>
17686 #if HAVE_SYS_SOCKET_H
17687 # include <sys/socket.h>
17688 #elif HAVE_WS2TCPIP_H
17689 # include <ws2tcpip.h>
17690 #endif
17693 if test "x$ac_cv_type_socklen_t" = x""yes; then :
17695 else
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
17697 $as_echo_n "checking for socklen_t equivalent... " >&6; }
17698 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
17699 $as_echo_n "(cached) " >&6
17700 else
17701 # Systems have either "struct sockaddr *" or
17702 # "void *" as the second argument to getpeername
17703 gl_cv_socklen_t_equiv=
17704 for arg2 in "struct sockaddr" void; do
17705 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708 #include <sys/types.h>
17709 #include <sys/socket.h>
17711 int getpeername (int, $arg2 *, $t *);
17713 main ()
17715 $t len;
17716 getpeername (0, 0, &len);
17718 return 0;
17720 _ACEOF
17721 if ac_fn_c_try_compile "$LINENO"; then :
17722 gl_cv_socklen_t_equiv="$t"
17724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17725 test "$gl_cv_socklen_t_equiv" != "" && break
17726 done
17727 test "$gl_cv_socklen_t_equiv" != "" && break
17728 done
17732 if test "$gl_cv_socklen_t_equiv" = ""; then
17733 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
17736 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
17738 cat >>confdefs.h <<_ACEOF
17739 #define socklen_t $gl_cv_socklen_t_equiv
17740 _ACEOF
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17746 $as_echo_n "checking for ssize_t... " >&6; }
17747 if test "${gt_cv_ssize_t+set}" = set; then :
17748 $as_echo_n "(cached) " >&6
17749 else
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17752 #include <sys/types.h>
17754 main ()
17756 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17757 return !x;
17759 return 0;
17761 _ACEOF
17762 if ac_fn_c_try_compile "$LINENO"; then :
17763 gt_cv_ssize_t=yes
17764 else
17765 gt_cv_ssize_t=no
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17770 $as_echo "$gt_cv_ssize_t" >&6; }
17771 if test $gt_cv_ssize_t = no; then
17773 $as_echo "#define ssize_t int" >>confdefs.h
17778 STDARG_H=''
17779 NEXT_STDARG_H='<stdarg.h>'
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
17781 $as_echo_n "checking for va_copy... " >&6; }
17782 if test "${gl_cv_func_va_copy+set}" = set; then :
17783 $as_echo_n "(cached) " >&6
17784 else
17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17788 #include <stdarg.h>
17790 main ()
17793 #ifndef va_copy
17794 void (*func) (va_list, va_list) = va_copy;
17795 #endif
17798 return 0;
17800 _ACEOF
17801 if ac_fn_c_try_compile "$LINENO"; then :
17802 gl_cv_func_va_copy=yes
17803 else
17804 gl_cv_func_va_copy=no
17806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
17810 $as_echo "$gl_cv_func_va_copy" >&6; }
17811 if test $gl_cv_func_va_copy = no; then
17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h. */
17814 #if defined _AIX && !defined __GNUC__
17815 AIX vaccine
17816 #endif
17818 _ACEOF
17819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17820 $EGREP "vaccine" >/dev/null 2>&1; then :
17821 gl_aixcc=yes
17822 else
17823 gl_aixcc=no
17825 rm -f conftest*
17827 if test $gl_aixcc = yes; then
17828 STDARG_H=stdarg.h
17837 if test $gl_cv_have_include_next = yes; then
17838 gl_cv_next_stdarg_h='<'stdarg.h'>'
17839 else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
17841 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
17842 if test "${gl_cv_next_stdarg_h+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17844 else
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17848 #include <stdarg.h>
17850 _ACEOF
17851 case "$host_os" in
17852 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17853 *) gl_absname_cpp="$ac_cpp" ;;
17854 esac
17855 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17856 sed -n '\#/stdarg.h#{
17857 s#.*"\(.*/stdarg.h\)".*#\1#
17858 s#^/[^/]#//&#
17861 }'`'"'
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
17866 $as_echo "$gl_cv_next_stdarg_h" >&6; }
17868 NEXT_STDARG_H=$gl_cv_next_stdarg_h
17870 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17872 gl_next_as_first_directive='<'stdarg.h'>'
17873 else
17874 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17875 gl_next_as_first_directive=$gl_cv_next_stdarg_h
17877 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
17882 if test "$gl_cv_next_stdarg_h" = '""'; then
17883 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
17884 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
17886 else
17888 saved_as_echo_n="$as_echo_n"
17889 as_echo_n=':'
17890 if test "${gl_cv_func___va_copy+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17892 else
17894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h. */
17896 #include <stdarg.h>
17898 main ()
17901 #ifndef __va_copy
17902 error, bail out
17903 #endif
17906 return 0;
17908 _ACEOF
17909 if ac_fn_c_try_compile "$LINENO"; then :
17910 gl_cv_func___va_copy=yes
17911 else
17912 gl_cv_func___va_copy=no
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 as_echo_n="$saved_as_echo_n"
17919 if test $gl_cv_func___va_copy = yes; then
17921 $as_echo "#define va_copy __va_copy" >>confdefs.h
17923 else
17926 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
17932 if test -n "$STDARG_H"; then
17933 GL_GENERATE_STDARG_H_TRUE=
17934 GL_GENERATE_STDARG_H_FALSE='#'
17935 else
17936 GL_GENERATE_STDARG_H_TRUE='#'
17937 GL_GENERATE_STDARG_H_FALSE=
17945 # Define two additional variables used in the Makefile substitution.
17947 if test "$ac_cv_header_stdbool_h" = yes; then
17948 STDBOOL_H=''
17949 else
17950 STDBOOL_H='stdbool.h'
17953 if test -n "$STDBOOL_H"; then
17954 GL_GENERATE_STDBOOL_H_TRUE=
17955 GL_GENERATE_STDBOOL_H_FALSE='#'
17956 else
17957 GL_GENERATE_STDBOOL_H_TRUE='#'
17958 GL_GENERATE_STDBOOL_H_FALSE=
17962 if test "$ac_cv_type__Bool" = yes; then
17963 HAVE__BOOL=1
17964 else
17965 HAVE__BOOL=0
17972 STDDEF_H=
17973 if test $gt_cv_c_wchar_t = no; then
17974 HAVE_WCHAR_T=0
17975 STDDEF_H=stddef.h
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17978 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17979 if test "${gl_cv_decl_null_works+set}" = set; then :
17980 $as_echo_n "(cached) " >&6
17981 else
17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17984 #include <stddef.h>
17985 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17988 main ()
17992 return 0;
17994 _ACEOF
17995 if ac_fn_c_try_compile "$LINENO"; then :
17996 gl_cv_decl_null_works=yes
17997 else
17998 gl_cv_decl_null_works=no
18000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
18003 $as_echo "$gl_cv_decl_null_works" >&6; }
18004 if test $gl_cv_decl_null_works = no; then
18005 REPLACE_NULL=1
18006 STDDEF_H=stddef.h
18009 if test -n "$STDDEF_H"; then
18010 GL_GENERATE_STDDEF_H_TRUE=
18011 GL_GENERATE_STDDEF_H_FALSE='#'
18012 else
18013 GL_GENERATE_STDDEF_H_TRUE='#'
18014 GL_GENERATE_STDDEF_H_FALSE=
18017 if test -n "$STDDEF_H"; then
18026 if test $gl_cv_have_include_next = yes; then
18027 gl_cv_next_stddef_h='<'stddef.h'>'
18028 else
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
18030 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
18031 if test "${gl_cv_next_stddef_h+set}" = set; then :
18032 $as_echo_n "(cached) " >&6
18033 else
18035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h. */
18037 #include <stddef.h>
18039 _ACEOF
18040 case "$host_os" in
18041 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18042 *) gl_absname_cpp="$ac_cpp" ;;
18043 esac
18044 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18045 sed -n '\#/stddef.h#{
18046 s#.*"\(.*/stddef.h\)".*#\1#
18047 s#^/[^/]#//&#
18050 }'`'"'
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
18055 $as_echo "$gl_cv_next_stddef_h" >&6; }
18057 NEXT_STDDEF_H=$gl_cv_next_stddef_h
18059 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18060 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18061 gl_next_as_first_directive='<'stddef.h'>'
18062 else
18063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18064 gl_next_as_first_directive=$gl_cv_next_stddef_h
18066 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
18085 if test $gl_cv_have_include_next = yes; then
18086 gl_cv_next_stdio_h='<'stdio.h'>'
18087 else
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
18089 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
18090 if test "${gl_cv_next_stdio_h+set}" = set; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18096 #include <stdio.h>
18098 _ACEOF
18099 case "$host_os" in
18100 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18101 *) gl_absname_cpp="$ac_cpp" ;;
18102 esac
18103 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18104 sed -n '\#/stdio.h#{
18105 s#.*"\(.*/stdio.h\)".*#\1#
18106 s#^/[^/]#//&#
18109 }'`'"'
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
18114 $as_echo "$gl_cv_next_stdio_h" >&6; }
18116 NEXT_STDIO_H=$gl_cv_next_stdio_h
18118 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18119 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18120 gl_next_as_first_directive='<'stdio.h'>'
18121 else
18122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18123 gl_next_as_first_directive=$gl_cv_next_stdio_h
18125 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
18131 GNULIB_FSCANF=1
18132 GNULIB_SCANF=1
18133 GNULIB_FGETC=1
18134 GNULIB_GETC=1
18135 GNULIB_GETCHAR=1
18136 GNULIB_FGETS=1
18137 GNULIB_GETS=1
18138 GNULIB_FREAD=1
18141 GNULIB_FPRINTF=1
18142 GNULIB_PRINTF=1
18143 GNULIB_VFPRINTF=1
18144 GNULIB_VPRINTF=1
18145 GNULIB_FPUTC=1
18146 GNULIB_PUTC=1
18147 GNULIB_PUTCHAR=1
18148 GNULIB_FPUTS=1
18149 GNULIB_PUTS=1
18150 GNULIB_FWRITE=1
18166 if test $gl_cv_have_include_next = yes; then
18167 gl_cv_next_stdlib_h='<'stdlib.h'>'
18168 else
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18170 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18171 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18172 $as_echo_n "(cached) " >&6
18173 else
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18177 #include <stdlib.h>
18179 _ACEOF
18180 case "$host_os" in
18181 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18182 *) gl_absname_cpp="$ac_cpp" ;;
18183 esac
18184 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18185 sed -n '\#/stdlib.h#{
18186 s#.*"\(.*/stdlib.h\)".*#\1#
18187 s#^/[^/]#//&#
18190 }'`'"'
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18195 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18197 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18199 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18201 gl_next_as_first_directive='<'stdlib.h'>'
18202 else
18203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18204 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18206 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18224 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
18227 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
18235 $as_echo "#define my_strftime nstrftime" >>confdefs.h
18243 if test "$ac_cv_have_decl_strtoumax" != yes; then
18244 HAVE_DECL_STRTOUMAX=0
18254 for ac_func in strtoumax
18255 do :
18256 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
18257 if test "x$ac_cv_func_strtoumax" = x""yes; then :
18258 cat >>confdefs.h <<_ACEOF
18259 #define HAVE_STRTOUMAX 1
18260 _ACEOF
18262 else
18264 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18267 done
18270 if test $ac_cv_func_strtoumax = no; then
18272 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
18273 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
18274 ac_have_decl=1
18275 else
18276 ac_have_decl=0
18279 cat >>confdefs.h <<_ACEOF
18280 #define HAVE_DECL_STRTOULL $ac_have_decl
18281 _ACEOF
18291 GNULIB_STRTOUMAX=1
18297 if test $ac_cv_func_symlink = no; then
18298 HAVE_SYMLINK=0
18307 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
18309 else
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
18311 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
18312 if test "${gl_cv_func_symlink_works+set}" = set; then :
18313 $as_echo_n "(cached) " >&6
18314 else
18315 if test "$cross_compiling" = yes; then :
18316 gl_cv_func_symlink_works="guessing no"
18317 else
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18320 #include <unistd.h>
18323 main ()
18325 int result = 0;
18326 if (!symlink ("a", "conftest.link/"))
18327 result |= 1;
18328 if (symlink ("conftest.f", "conftest.lnk2"))
18329 result |= 2;
18330 else if (!symlink ("a", "conftest.lnk2/"))
18331 result |= 4;
18332 return result;
18335 return 0;
18337 _ACEOF
18338 if ac_fn_c_try_run "$LINENO"; then :
18339 gl_cv_func_symlink_works=yes
18340 else
18341 gl_cv_func_symlink_works=no
18343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18344 conftest.$ac_objext conftest.beam conftest.$ac_ext
18347 rm -f conftest.f conftest.link conftest.lnk2
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
18350 $as_echo "$gl_cv_func_symlink_works" >&6; }
18351 if test "$gl_cv_func_symlink_works" != yes; then
18352 REPLACE_SYMLINK=1
18361 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
18369 GNULIB_SYMLINK=1
18389 if test $gl_cv_have_include_next = yes; then
18390 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18391 else
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18393 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18394 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18395 $as_echo_n "(cached) " >&6
18396 else
18398 if test $ac_cv_header_sys_stat_h = yes; then
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <sys/stat.h>
18405 _ACEOF
18406 case "$host_os" in
18407 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18408 *) gl_absname_cpp="$ac_cpp" ;;
18409 esac
18410 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18411 sed -n '\#/sys/stat.h#{
18412 s#.*"\(.*/sys/stat.h\)".*#\1#
18413 s#^/[^/]#//&#
18416 }'`'"'
18417 else
18418 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18424 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18426 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18428 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18429 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18430 gl_next_as_first_directive='<'sys/stat.h'>'
18431 else
18432 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18433 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18435 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18441 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18442 #include <sys/stat.h>
18444 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18446 else
18448 $as_echo "#define nlink_t int" >>confdefs.h
18466 if test $ac_cv_have_decl_localtime_r = no; then
18467 HAVE_DECL_LOCALTIME_R=0
18471 if test $ac_cv_func_localtime_r = yes; then
18472 HAVE_LOCALTIME_R=1
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
18474 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
18475 if test "${gl_cv_time_r_posix+set}" = set; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18479 /* end confdefs.h. */
18480 #include <time.h>
18482 main ()
18484 /* We don't need to append 'restrict's to the argument types,
18485 even though the POSIX signature has the 'restrict's,
18486 since C99 says they can't affect type compatibility. */
18487 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
18488 if (ptr) return 0;
18489 /* Check the return type is a pointer.
18490 On HP-UX 10 it is 'int'. */
18491 *localtime_r (0, 0);
18493 return 0;
18496 _ACEOF
18497 if ac_fn_c_try_compile "$LINENO"; then :
18498 gl_cv_time_r_posix=yes
18499 else
18500 gl_cv_time_r_posix=no
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
18506 $as_echo "$gl_cv_time_r_posix" >&6; }
18507 if test $gl_cv_time_r_posix = yes; then
18508 REPLACE_LOCALTIME_R=0
18509 else
18510 REPLACE_LOCALTIME_R=1
18512 else
18513 HAVE_LOCALTIME_R=0
18515 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
18524 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
18534 GNULIB_TIME_R=1
18551 if test $gl_cv_have_include_next = yes; then
18552 gl_cv_next_unistd_h='<'unistd.h'>'
18553 else
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18555 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18556 if test "${gl_cv_next_unistd_h+set}" = set; then :
18557 $as_echo_n "(cached) " >&6
18558 else
18560 if test $ac_cv_header_unistd_h = yes; then
18563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18564 /* end confdefs.h. */
18565 #include <unistd.h>
18567 _ACEOF
18568 case "$host_os" in
18569 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18570 *) gl_absname_cpp="$ac_cpp" ;;
18571 esac
18572 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18573 sed -n '\#/unistd.h#{
18574 s#.*"\(.*/unistd.h\)".*#\1#
18575 s#^/[^/]#//&#
18578 }'`'"'
18579 else
18580 gl_cv_next_unistd_h='<'unistd.h'>'
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18586 $as_echo "$gl_cv_next_unistd_h" >&6; }
18588 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18590 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18592 gl_next_as_first_directive='<'unistd.h'>'
18593 else
18594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18595 gl_next_as_first_directive=$gl_cv_next_unistd_h
18597 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18602 if test $ac_cv_header_unistd_h = yes; then
18603 HAVE_UNISTD_H=1
18604 else
18605 HAVE_UNISTD_H=0
18611 gl_gnulib_enabled_dosname=false
18612 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
18613 gl_gnulib_enabled_stat=false
18614 gl_gnulib_enabled_strtoull=false
18615 gl_gnulib_enabled_verify=false
18616 func_gl_gnulib_m4code_dosname ()
18618 if ! $gl_gnulib_enabled_dosname; then
18619 gl_gnulib_enabled_dosname=true
18622 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
18624 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
18627 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
18630 func_gl_gnulib_m4code_stat ()
18632 if ! $gl_gnulib_enabled_stat; then
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
18637 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
18638 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
18639 $as_echo_n "(cached) " >&6
18640 else
18641 if test "$cross_compiling" = yes; then :
18642 case $host_os in
18643 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
18644 *) gl_cv_func_stat_dir_slash="guessing yes";;
18645 esac
18646 else
18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18649 #include <sys/stat.h>
18652 main ()
18654 struct stat st; return stat (".", &st) != stat ("./", &st);
18656 return 0;
18658 _ACEOF
18659 if ac_fn_c_try_run "$LINENO"; then :
18660 gl_cv_func_stat_dir_slash=yes
18661 else
18662 gl_cv_func_stat_dir_slash=no
18664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18665 conftest.$ac_objext conftest.beam conftest.$ac_ext
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
18670 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
18672 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
18673 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
18674 $as_echo_n "(cached) " >&6
18675 else
18676 touch conftest.tmp
18677 # Assume that if we have lstat, we can also check symlinks.
18678 if test $ac_cv_func_lstat = yes; then
18679 ln -s conftest.tmp conftest.lnk
18681 if test "$cross_compiling" = yes; then :
18682 gl_cv_func_stat_file_slash="guessing no"
18683 else
18684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18685 /* end confdefs.h. */
18686 #include <sys/stat.h>
18689 main ()
18691 int result = 0;
18692 struct stat st;
18693 if (!stat ("conftest.tmp/", &st))
18694 result |= 1;
18695 #if HAVE_LSTAT
18696 if (!stat ("conftest.lnk/", &st))
18697 result |= 2;
18698 #endif
18699 return result;
18702 return 0;
18704 _ACEOF
18705 if ac_fn_c_try_run "$LINENO"; then :
18706 gl_cv_func_stat_file_slash=yes
18707 else
18708 gl_cv_func_stat_file_slash=no
18710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18711 conftest.$ac_objext conftest.beam conftest.$ac_ext
18714 rm -f conftest.tmp conftest.lnk
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
18717 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
18718 case $gl_cv_func_stat_dir_slash in
18719 *no) REPLACE_STAT=1
18721 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
18723 esac
18724 case $gl_cv_func_stat_file_slash in
18725 *no) REPLACE_STAT=1
18727 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
18729 esac
18730 if test $REPLACE_STAT = 1; then
18739 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
18747 GNULIB_STAT=1
18751 gl_gnulib_enabled_stat=true
18752 if $condition; then
18753 func_gl_gnulib_m4code_dosname
18757 func_gl_gnulib_m4code_strtoull ()
18759 if ! $gl_gnulib_enabled_strtoull; then
18763 if test "$ac_cv_type_unsigned_long_long_int" = yes; then
18772 for ac_func in strtoull
18773 do :
18774 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
18775 if test "x$ac_cv_func_strtoull" = x""yes; then :
18776 cat >>confdefs.h <<_ACEOF
18777 #define HAVE_STRTOULL 1
18778 _ACEOF
18780 else
18782 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
18785 done
18788 if test $ac_cv_func_strtoull = no; then
18789 HAVE_STRTOULL=0
18799 GNULIB_STRTOULL=1
18803 gl_gnulib_enabled_strtoull=true
18806 func_gl_gnulib_m4code_verify ()
18808 if ! $gl_gnulib_enabled_verify; then
18809 gl_gnulib_enabled_verify=true
18812 if test $GNULIB_UNISTD_H_GETOPT = 1; then
18813 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
18815 if test $REPLACE_LSTAT = 1; then
18816 func_gl_gnulib_m4code_dosname
18818 if test $REPLACE_LSTAT = 1; then
18819 func_gl_gnulib_m4code_stat
18821 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
18822 func_gl_gnulib_m4code_stat
18824 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
18825 func_gl_gnulib_m4code_verify
18827 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
18828 func_gl_gnulib_m4code_strtoull
18831 if $gl_gnulib_enabled_dosname; then
18832 gl_GNULIB_ENABLED_dosname_TRUE=
18833 gl_GNULIB_ENABLED_dosname_FALSE='#'
18834 else
18835 gl_GNULIB_ENABLED_dosname_TRUE='#'
18836 gl_GNULIB_ENABLED_dosname_FALSE=
18839 if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
18840 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE=
18841 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#'
18842 else
18843 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#'
18844 gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE=
18847 if $gl_gnulib_enabled_stat; then
18848 gl_GNULIB_ENABLED_stat_TRUE=
18849 gl_GNULIB_ENABLED_stat_FALSE='#'
18850 else
18851 gl_GNULIB_ENABLED_stat_TRUE='#'
18852 gl_GNULIB_ENABLED_stat_FALSE=
18855 if $gl_gnulib_enabled_strtoull; then
18856 gl_GNULIB_ENABLED_strtoull_TRUE=
18857 gl_GNULIB_ENABLED_strtoull_FALSE='#'
18858 else
18859 gl_GNULIB_ENABLED_strtoull_TRUE='#'
18860 gl_GNULIB_ENABLED_strtoull_FALSE=
18863 if $gl_gnulib_enabled_verify; then
18864 gl_GNULIB_ENABLED_verify_TRUE=
18865 gl_GNULIB_ENABLED_verify_FALSE='#'
18866 else
18867 gl_GNULIB_ENABLED_verify_TRUE='#'
18868 gl_GNULIB_ENABLED_verify_FALSE=
18871 # End of code from modules
18881 gltests_libdeps=
18882 gltests_ltlibdeps=
18892 gl_source_base='tests'
18893 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
18895 gl_module_indicator_condition=$gltests_WITNESS
18906 LIBGNU_LIBDEPS="$gl_libdeps"
18908 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18912 # UNIX98 PTYs.
18913 for ac_func in grantpt
18914 do :
18915 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18916 if test "x$ac_cv_func_grantpt" = x""yes; then :
18917 cat >>confdefs.h <<_ACEOF
18918 #define HAVE_GRANTPT 1
18919 _ACEOF
18922 done
18925 # PTY-related GNU extensions.
18926 for ac_func in getpt
18927 do :
18928 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
18929 if test "x$ac_cv_func_getpt" = x""yes; then :
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_GETPT 1
18932 _ACEOF
18935 done
18938 # Check this now, so that we will NOT find the above functions in ncurses.
18939 # That is because we have not set up to link ncurses in lib-src.
18940 # It's better to believe a function is not available
18941 # than to expect to find it in ncurses.
18942 # Also we need tputs and friends to be able to build at all.
18943 have_tputs_et_al=true
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18945 $as_echo_n "checking for library containing tputs... " >&6; }
18946 if test "${ac_cv_search_tputs+set}" = set; then :
18947 $as_echo_n "(cached) " >&6
18948 else
18949 ac_func_search_save_LIBS=$LIBS
18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h. */
18953 /* Override any GCC internal prototype to avoid an error.
18954 Use char because int might match the return type of a GCC
18955 builtin and then its argument prototype would still apply. */
18956 #ifdef __cplusplus
18957 extern "C"
18958 #endif
18959 char tputs ();
18961 main ()
18963 return tputs ();
18965 return 0;
18967 _ACEOF
18968 for ac_lib in '' ncurses terminfo termcap; do
18969 if test -z "$ac_lib"; then
18970 ac_res="none required"
18971 else
18972 ac_res=-l$ac_lib
18973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18975 if ac_fn_c_try_link "$LINENO"; then :
18976 ac_cv_search_tputs=$ac_res
18978 rm -f core conftest.err conftest.$ac_objext \
18979 conftest$ac_exeext
18980 if test "${ac_cv_search_tputs+set}" = set; then :
18981 break
18983 done
18984 if test "${ac_cv_search_tputs+set}" = set; then :
18986 else
18987 ac_cv_search_tputs=no
18989 rm conftest.$ac_ext
18990 LIBS=$ac_func_search_save_LIBS
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18993 $as_echo "$ac_cv_search_tputs" >&6; }
18994 ac_res=$ac_cv_search_tputs
18995 if test "$ac_res" != no; then :
18996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18998 else
18999 have_tputs_et_al=false
19002 if test "$have_tputs_et_al" != true; then
19003 as_fn_error "I couldn't find termcap functions (tputs and friends).
19004 Maybe some development libraries/packages are missing? Try installing
19005 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
19007 # Must define this when any termcap library is found.
19009 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
19011 ## FIXME This was the cpp logic, but I am not sure it is right.
19012 ## The above test has not necessarily found libncurses.
19013 HAVE_LIBNCURSES=yes
19015 ## Use terminfo instead of termcap?
19016 ## Note only system files NOT using terminfo are:
19017 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
19018 ## darwin|gnu without ncurses.
19019 TERMINFO=no
19020 LIBS_TERMCAP=
19021 case "$opsys" in
19022 ## cygwin: Fewer environment variables to go wrong, more terminal types.
19023 ## hpux10-20: Use the system provided termcap(3) library.
19024 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
19025 ## is necessary. Otherwise Emacs dumps core when run -nw.
19026 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
19028 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
19029 ## The ncurses library has been moved out of the System framework in
19030 ## Mac OS X 10.2. So if configure detects it, set the command-line
19031 ## option to use it.
19032 darwin|gnu*)
19033 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
19034 if test "x$HAVE_LIBNCURSES" = "xyes"; then
19035 TERMINFO=yes
19036 LIBS_TERMCAP="-lncurses"
19040 freebsd)
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
19042 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
19043 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
19044 $as_echo_n "(cached) " >&6
19045 else
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19048 #include <osreldate.h>
19050 main ()
19052 #if __FreeBSD_version < 400000
19053 fail;
19054 #endif
19057 return 0;
19059 _ACEOF
19060 if ac_fn_c_try_link "$LINENO"; then :
19061 emacs_cv_freebsd_terminfo=yes
19062 else
19063 emacs_cv_freebsd_terminfo=no
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
19071 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
19073 if test $emacs_cv_freebsd_terminfo = yes; then
19074 TERMINFO=yes
19075 LIBS_TERMCAP="-lncurses"
19076 else
19077 LIBS_TERMCAP="-ltermcap"
19081 netbsd)
19082 if test $ac_cv_search_tputs = -lterminfo; then
19083 TERMINFO=yes
19084 LIBS_TERMCAP="-lterminfo"
19085 else
19086 LIBS_TERMCAP="-ltermcap"
19090 esac
19092 case "$opsys" in
19093 ## hpux: Make sure we get select from libc rather than from libcurses
19094 ## because libcurses on HPUX 10.10 has a broken version of select.
19095 ## We used to use -lc -lcurses, but this may be cleaner.
19096 hpux*) LIBS_TERMCAP="-ltermcap" ;;
19098 openbsd) LIBS_TERMCAP="-lncurses" ;;
19100 ## Must use system termcap, if we use any termcap. It does special things.
19101 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
19102 esac
19104 TERMCAP_OBJ=tparam.o
19105 if test $TERMINFO = yes; then
19107 $as_echo "#define TERMINFO 1" >>confdefs.h
19110 ## Default used to be -ltermcap. Add a case above if need something else.
19111 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
19113 TERMCAP_OBJ=terminfo.o
19119 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19120 resolv=no
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 #include <netinet/in.h>
19124 #include <arpa/nameser.h>
19125 #include <resolv.h>
19127 main ()
19129 return res_init();
19131 return 0;
19133 _ACEOF
19134 if ac_fn_c_try_link "$LINENO"; then :
19135 have_res_init=yes
19136 else
19137 have_res_init=no
19139 rm -f core conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
19141 if test "$have_res_init" = no; then
19142 OLIBS="$LIBS"
19143 LIBS="$LIBS -lresolv"
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
19145 $as_echo_n "checking for res_init with -lresolv... " >&6; }
19146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h. */
19148 #include <netinet/in.h>
19149 #include <arpa/nameser.h>
19150 #include <resolv.h>
19152 main ()
19154 return res_init();
19156 return 0;
19158 _ACEOF
19159 if ac_fn_c_try_link "$LINENO"; then :
19160 have_res_init=yes
19161 else
19162 have_res_init=no
19164 rm -f core conftest.err conftest.$ac_objext \
19165 conftest$ac_exeext conftest.$ac_ext
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
19167 $as_echo "$have_res_init" >&6; }
19168 if test "$have_res_init" = yes ; then
19169 resolv=yes
19171 LIBS="$OLIBS"
19174 if test "$have_res_init" = yes; then
19176 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
19180 # Do we need the Hesiod library to provide the support routines?
19181 LIBHESIOD=
19182 if test "$with_hesiod" != no ; then
19183 # Don't set $LIBS here -- see comments above. FIXME which comments?
19184 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
19185 if test "x$ac_cv_func_res_send" = x""yes; then :
19187 else
19188 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
19189 if test "x$ac_cv_func___res_send" = x""yes; then :
19191 else
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
19193 $as_echo_n "checking for res_send in -lresolv... " >&6; }
19194 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
19195 $as_echo_n "(cached) " >&6
19196 else
19197 ac_check_lib_save_LIBS=$LIBS
19198 LIBS="-lresolv $LIBS"
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19202 /* Override any GCC internal prototype to avoid an error.
19203 Use char because int might match the return type of a GCC
19204 builtin and then its argument prototype would still apply. */
19205 #ifdef __cplusplus
19206 extern "C"
19207 #endif
19208 char res_send ();
19210 main ()
19212 return res_send ();
19214 return 0;
19216 _ACEOF
19217 if ac_fn_c_try_link "$LINENO"; then :
19218 ac_cv_lib_resolv_res_send=yes
19219 else
19220 ac_cv_lib_resolv_res_send=no
19222 rm -f core conftest.err conftest.$ac_objext \
19223 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
19227 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
19228 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
19229 resolv=yes
19230 else
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
19232 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
19233 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
19234 $as_echo_n "(cached) " >&6
19235 else
19236 ac_check_lib_save_LIBS=$LIBS
19237 LIBS="-lresolv $LIBS"
19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19241 /* Override any GCC internal prototype to avoid an error.
19242 Use char because int might match the return type of a GCC
19243 builtin and then its argument prototype would still apply. */
19244 #ifdef __cplusplus
19245 extern "C"
19246 #endif
19247 char __res_send ();
19249 main ()
19251 return __res_send ();
19253 return 0;
19255 _ACEOF
19256 if ac_fn_c_try_link "$LINENO"; then :
19257 ac_cv_lib_resolv___res_send=yes
19258 else
19259 ac_cv_lib_resolv___res_send=no
19261 rm -f core conftest.err conftest.$ac_objext \
19262 conftest$ac_exeext conftest.$ac_ext
19263 LIBS=$ac_check_lib_save_LIBS
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
19266 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
19267 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
19268 resolv=yes
19277 if test "$resolv" = yes ; then
19278 RESOLVLIB=-lresolv
19279 else
19280 RESOLVLIB=
19282 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
19283 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
19285 else
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
19287 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
19288 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
19289 $as_echo_n "(cached) " >&6
19290 else
19291 ac_check_lib_save_LIBS=$LIBS
19292 LIBS="-lhesiod $RESOLVLIB $LIBS"
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19296 /* Override any GCC internal prototype to avoid an error.
19297 Use char because int might match the return type of a GCC
19298 builtin and then its argument prototype would still apply. */
19299 #ifdef __cplusplus
19300 extern "C"
19301 #endif
19302 char hes_getmailhost ();
19304 main ()
19306 return hes_getmailhost ();
19308 return 0;
19310 _ACEOF
19311 if ac_fn_c_try_link "$LINENO"; then :
19312 ac_cv_lib_hesiod_hes_getmailhost=yes
19313 else
19314 ac_cv_lib_hesiod_hes_getmailhost=no
19316 rm -f core conftest.err conftest.$ac_objext \
19317 conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19321 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19322 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
19323 hesiod=yes
19324 else
19331 if test x"$hesiod" = xyes; then
19333 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
19335 LIBHESIOD=-lhesiod
19340 # Do we need libresolv (due to res_init or Hesiod)?
19341 if test "$resolv" = yes ; then
19343 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
19345 LIBRESOLV=-lresolv
19346 else
19347 LIBRESOLV=
19351 # These tell us which Kerberos-related libraries to use.
19352 COM_ERRLIB=
19353 CRYPTOLIB=
19354 KRB5LIB=
19355 DESLIB=
19356 KRB4LIB=
19358 if test "${with_kerberos}" != no; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
19360 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
19361 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
19362 $as_echo_n "(cached) " >&6
19363 else
19364 ac_check_lib_save_LIBS=$LIBS
19365 LIBS="-lcom_err $LIBS"
19366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367 /* end confdefs.h. */
19369 /* Override any GCC internal prototype to avoid an error.
19370 Use char because int might match the return type of a GCC
19371 builtin and then its argument prototype would still apply. */
19372 #ifdef __cplusplus
19373 extern "C"
19374 #endif
19375 char com_err ();
19377 main ()
19379 return com_err ();
19381 return 0;
19383 _ACEOF
19384 if ac_fn_c_try_link "$LINENO"; then :
19385 ac_cv_lib_com_err_com_err=yes
19386 else
19387 ac_cv_lib_com_err_com_err=no
19389 rm -f core conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
19391 LIBS=$ac_check_lib_save_LIBS
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
19394 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
19395 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
19396 have_com_err=yes
19397 else
19398 have_com_err=no
19401 if test $have_com_err = yes; then
19402 COM_ERRLIB=-lcom_err
19403 LIBS="$COM_ERRLIB $LIBS"
19405 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19409 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
19410 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
19411 $as_echo_n "(cached) " >&6
19412 else
19413 ac_check_lib_save_LIBS=$LIBS
19414 LIBS="-lcrypto $LIBS"
19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19418 /* Override any GCC internal prototype to avoid an error.
19419 Use char because int might match the return type of a GCC
19420 builtin and then its argument prototype would still apply. */
19421 #ifdef __cplusplus
19422 extern "C"
19423 #endif
19424 char mit_des_cbc_encrypt ();
19426 main ()
19428 return mit_des_cbc_encrypt ();
19430 return 0;
19432 _ACEOF
19433 if ac_fn_c_try_link "$LINENO"; then :
19434 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19435 else
19436 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19438 rm -f core conftest.err conftest.$ac_objext \
19439 conftest$ac_exeext conftest.$ac_ext
19440 LIBS=$ac_check_lib_save_LIBS
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19443 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19444 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
19445 have_crypto=yes
19446 else
19447 have_crypto=no
19450 if test $have_crypto = yes; then
19451 CRYPTOLIB=-lcrypto
19452 LIBS="$CRYPTOLIB $LIBS"
19454 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19458 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
19459 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
19460 $as_echo_n "(cached) " >&6
19461 else
19462 ac_check_lib_save_LIBS=$LIBS
19463 LIBS="-lk5crypto $LIBS"
19464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19465 /* end confdefs.h. */
19467 /* Override any GCC internal prototype to avoid an error.
19468 Use char because int might match the return type of a GCC
19469 builtin and then its argument prototype would still apply. */
19470 #ifdef __cplusplus
19471 extern "C"
19472 #endif
19473 char mit_des_cbc_encrypt ();
19475 main ()
19477 return mit_des_cbc_encrypt ();
19479 return 0;
19481 _ACEOF
19482 if ac_fn_c_try_link "$LINENO"; then :
19483 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19484 else
19485 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19487 rm -f core conftest.err conftest.$ac_objext \
19488 conftest$ac_exeext conftest.$ac_ext
19489 LIBS=$ac_check_lib_save_LIBS
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19492 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19493 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
19494 have_k5crypto=yes
19495 else
19496 have_k5crypto=no
19499 if test $have_k5crypto = yes; then
19500 CRYPTOLIB=-lk5crypto
19501 LIBS="$CRYPTOLIB $LIBS"
19503 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19507 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
19508 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
19509 $as_echo_n "(cached) " >&6
19510 else
19511 ac_check_lib_save_LIBS=$LIBS
19512 LIBS="-lkrb5 $LIBS"
19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19516 /* Override any GCC internal prototype to avoid an error.
19517 Use char because int might match the return type of a GCC
19518 builtin and then its argument prototype would still apply. */
19519 #ifdef __cplusplus
19520 extern "C"
19521 #endif
19522 char krb5_init_context ();
19524 main ()
19526 return krb5_init_context ();
19528 return 0;
19530 _ACEOF
19531 if ac_fn_c_try_link "$LINENO"; then :
19532 ac_cv_lib_krb5_krb5_init_context=yes
19533 else
19534 ac_cv_lib_krb5_krb5_init_context=no
19536 rm -f core conftest.err conftest.$ac_objext \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19541 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
19542 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
19543 have_krb5=yes
19544 else
19545 have_krb5=no
19548 if test $have_krb5=yes; then
19549 KRB5LIB=-lkrb5
19550 LIBS="$KRB5LIB $LIBS"
19552 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
19555 if test "${with_kerberos5}" = no; then
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
19557 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
19558 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
19559 $as_echo_n "(cached) " >&6
19560 else
19561 ac_check_lib_save_LIBS=$LIBS
19562 LIBS="-ldes425 $LIBS"
19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h. */
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 char des_cbc_encrypt ();
19574 main ()
19576 return des_cbc_encrypt ();
19578 return 0;
19580 _ACEOF
19581 if ac_fn_c_try_link "$LINENO"; then :
19582 ac_cv_lib_des425_des_cbc_encrypt=yes
19583 else
19584 ac_cv_lib_des425_des_cbc_encrypt=no
19586 rm -f core conftest.err conftest.$ac_objext \
19587 conftest$ac_exeext conftest.$ac_ext
19588 LIBS=$ac_check_lib_save_LIBS
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19591 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19592 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
19593 have_des425=yes
19594 else
19595 have_des425=no
19598 if test $have_des425 = yes; then
19599 DESLIB=-ldes425
19600 LIBS="$DESLIB $LIBS"
19602 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
19604 else
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
19606 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
19607 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
19608 $as_echo_n "(cached) " >&6
19609 else
19610 ac_check_lib_save_LIBS=$LIBS
19611 LIBS="-ldes $LIBS"
19612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19613 /* end confdefs.h. */
19615 /* Override any GCC internal prototype to avoid an error.
19616 Use char because int might match the return type of a GCC
19617 builtin and then its argument prototype would still apply. */
19618 #ifdef __cplusplus
19619 extern "C"
19620 #endif
19621 char des_cbc_encrypt ();
19623 main ()
19625 return des_cbc_encrypt ();
19627 return 0;
19629 _ACEOF
19630 if ac_fn_c_try_link "$LINENO"; then :
19631 ac_cv_lib_des_des_cbc_encrypt=yes
19632 else
19633 ac_cv_lib_des_des_cbc_encrypt=no
19635 rm -f core conftest.err conftest.$ac_objext \
19636 conftest$ac_exeext conftest.$ac_ext
19637 LIBS=$ac_check_lib_save_LIBS
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19640 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19641 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
19642 have_des=yes
19643 else
19644 have_des=no
19647 if test $have_des = yes; then
19648 DESLIB=-ldes
19649 LIBS="$DESLIB $LIBS"
19651 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
19656 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
19657 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
19658 $as_echo_n "(cached) " >&6
19659 else
19660 ac_check_lib_save_LIBS=$LIBS
19661 LIBS="-lkrb4 $LIBS"
19662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h. */
19665 /* Override any GCC internal prototype to avoid an error.
19666 Use char because int might match the return type of a GCC
19667 builtin and then its argument prototype would still apply. */
19668 #ifdef __cplusplus
19669 extern "C"
19670 #endif
19671 char krb_get_cred ();
19673 main ()
19675 return krb_get_cred ();
19677 return 0;
19679 _ACEOF
19680 if ac_fn_c_try_link "$LINENO"; then :
19681 ac_cv_lib_krb4_krb_get_cred=yes
19682 else
19683 ac_cv_lib_krb4_krb_get_cred=no
19685 rm -f core conftest.err conftest.$ac_objext \
19686 conftest$ac_exeext conftest.$ac_ext
19687 LIBS=$ac_check_lib_save_LIBS
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19690 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
19691 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
19692 have_krb4=yes
19693 else
19694 have_krb4=no
19697 if test $have_krb4 = yes; then
19698 KRB4LIB=-lkrb4
19699 LIBS="$KRB4LIB $LIBS"
19701 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
19703 else
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
19705 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
19706 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
19707 $as_echo_n "(cached) " >&6
19708 else
19709 ac_check_lib_save_LIBS=$LIBS
19710 LIBS="-lkrb $LIBS"
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19714 /* Override any GCC internal prototype to avoid an error.
19715 Use char because int might match the return type of a GCC
19716 builtin and then its argument prototype would still apply. */
19717 #ifdef __cplusplus
19718 extern "C"
19719 #endif
19720 char krb_get_cred ();
19722 main ()
19724 return krb_get_cred ();
19726 return 0;
19728 _ACEOF
19729 if ac_fn_c_try_link "$LINENO"; then :
19730 ac_cv_lib_krb_krb_get_cred=yes
19731 else
19732 ac_cv_lib_krb_krb_get_cred=no
19734 rm -f core conftest.err conftest.$ac_objext \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
19739 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
19740 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
19741 have_krb=yes
19742 else
19743 have_krb=no
19746 if test $have_krb = yes; then
19747 KRB4LIB=-lkrb
19748 LIBS="$KRB4LIB $LIBS"
19750 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
19756 if test "${with_kerberos5}" != no; then
19757 for ac_header in krb5.h
19758 do :
19759 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
19760 if test "x$ac_cv_header_krb5_h" = x""yes; then :
19761 cat >>confdefs.h <<_ACEOF
19762 #define HAVE_KRB5_H 1
19763 _ACEOF
19764 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
19766 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
19768 cat >>confdefs.h <<_ACEOF
19769 #define HAVE_KRB5_ERROR_TEXT 1
19770 _ACEOF
19774 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
19776 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
19778 cat >>confdefs.h <<_ACEOF
19779 #define HAVE_KRB5_ERROR_E_TEXT 1
19780 _ACEOF
19787 done
19789 else
19790 for ac_header in des.h
19791 do :
19792 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
19793 if test "x$ac_cv_header_des_h" = x""yes; then :
19794 cat >>confdefs.h <<_ACEOF
19795 #define HAVE_DES_H 1
19796 _ACEOF
19798 else
19799 for ac_header in kerberosIV/des.h
19800 do :
19801 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
19802 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
19803 cat >>confdefs.h <<_ACEOF
19804 #define HAVE_KERBEROSIV_DES_H 1
19805 _ACEOF
19807 else
19808 for ac_header in kerberos/des.h
19809 do :
19810 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
19811 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
19812 cat >>confdefs.h <<_ACEOF
19813 #define HAVE_KERBEROS_DES_H 1
19814 _ACEOF
19818 done
19822 done
19826 done
19828 for ac_header in krb.h
19829 do :
19830 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
19831 if test "x$ac_cv_header_krb_h" = x""yes; then :
19832 cat >>confdefs.h <<_ACEOF
19833 #define HAVE_KRB_H 1
19834 _ACEOF
19836 else
19837 for ac_header in kerberosIV/krb.h
19838 do :
19839 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
19840 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_KERBEROSIV_KRB_H 1
19843 _ACEOF
19845 else
19846 for ac_header in kerberos/krb.h
19847 do :
19848 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19849 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
19850 cat >>confdefs.h <<_ACEOF
19851 #define HAVE_KERBEROS_KRB_H 1
19852 _ACEOF
19856 done
19860 done
19864 done
19867 for ac_header in com_err.h
19868 do :
19869 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19870 if test "x$ac_cv_header_com_err_h" = x""yes; then :
19871 cat >>confdefs.h <<_ACEOF
19872 #define HAVE_COM_ERR_H 1
19873 _ACEOF
19877 done
19887 # Solaris requires -lintl if you want strerror (which calls dgettext)
19888 # to return localized messages.
19889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19890 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19891 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19892 $as_echo_n "(cached) " >&6
19893 else
19894 ac_check_lib_save_LIBS=$LIBS
19895 LIBS="-lintl $LIBS"
19896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897 /* end confdefs.h. */
19899 /* Override any GCC internal prototype to avoid an error.
19900 Use char because int might match the return type of a GCC
19901 builtin and then its argument prototype would still apply. */
19902 #ifdef __cplusplus
19903 extern "C"
19904 #endif
19905 char dgettext ();
19907 main ()
19909 return dgettext ();
19911 return 0;
19913 _ACEOF
19914 if ac_fn_c_try_link "$LINENO"; then :
19915 ac_cv_lib_intl_dgettext=yes
19916 else
19917 ac_cv_lib_intl_dgettext=no
19919 rm -f core conftest.err conftest.$ac_objext \
19920 conftest$ac_exeext conftest.$ac_ext
19921 LIBS=$ac_check_lib_save_LIBS
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19924 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19925 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
19926 cat >>confdefs.h <<_ACEOF
19927 #define HAVE_LIBINTL 1
19928 _ACEOF
19930 LIBS="-lintl $LIBS"
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19936 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19937 if test "${emacs_cv_localtime_cache+set}" = set; then :
19938 $as_echo_n "(cached) " >&6
19939 else
19940 if test x$ac_cv_func_tzset = xyes; then
19941 if test "$cross_compiling" = yes; then :
19942 # If we have tzset, assume the worst when cross-compiling.
19943 emacs_cv_localtime_cache=yes
19944 else
19945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19946 /* end confdefs.h. */
19947 #include <time.h>
19948 char TZ_GMT0[] = "TZ=GMT0";
19949 char TZ_PST8[] = "TZ=PST8";
19950 main()
19952 time_t now = time ((time_t *) 0);
19953 int hour_GMT0, hour_unset;
19954 if (putenv (TZ_GMT0) != 0)
19955 exit (1);
19956 hour_GMT0 = localtime (&now)->tm_hour;
19957 unsetenv("TZ");
19958 hour_unset = localtime (&now)->tm_hour;
19959 if (putenv (TZ_PST8) != 0)
19960 exit (1);
19961 if (localtime (&now)->tm_hour == hour_GMT0)
19962 exit (1);
19963 unsetenv("TZ");
19964 if (localtime (&now)->tm_hour != hour_unset)
19965 exit (1);
19966 exit (0);
19968 _ACEOF
19969 if ac_fn_c_try_run "$LINENO"; then :
19970 emacs_cv_localtime_cache=no
19971 else
19972 emacs_cv_localtime_cache=yes
19974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19975 conftest.$ac_objext conftest.beam conftest.$ac_ext
19978 else
19979 # If we lack tzset, report that localtime does not cache TZ,
19980 # since we can't invalidate the cache if we don't have tzset.
19981 emacs_cv_localtime_cache=no
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19985 $as_echo "$emacs_cv_localtime_cache" >&6; }
19986 if test $emacs_cv_localtime_cache = yes; then
19988 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19992 if test "x$HAVE_TIMEVAL" = xyes; then
19993 for ac_func in gettimeofday
19994 do :
19995 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19996 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
19997 cat >>confdefs.h <<_ACEOF
19998 #define HAVE_GETTIMEOFDAY 1
19999 _ACEOF
20002 done
20004 if test $ac_cv_func_gettimeofday = yes; then
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
20006 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
20007 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
20008 $as_echo_n "(cached) " >&6
20009 else
20010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011 /* end confdefs.h. */
20013 #ifdef TIME_WITH_SYS_TIME
20014 #include <sys/time.h>
20015 #include <time.h>
20016 #else
20017 #ifdef HAVE_SYS_TIME_H
20018 #include <sys/time.h>
20019 #else
20020 #include <time.h>
20021 #endif
20022 #endif
20024 main ()
20026 struct timeval time;
20027 gettimeofday (&time, 0);
20029 return 0;
20031 _ACEOF
20032 if ac_fn_c_try_compile "$LINENO"; then :
20033 emacs_cv_gettimeofday_two_arguments=yes
20034 else
20035 emacs_cv_gettimeofday_two_arguments=no
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
20040 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
20041 if test $emacs_cv_gettimeofday_two_arguments = no; then
20043 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
20049 ok_so_far=yes
20050 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
20051 if test "x$ac_cv_func_socket" = x""yes; then :
20053 else
20054 ok_so_far=no
20057 if test $ok_so_far = yes; then
20058 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
20059 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
20061 else
20062 ok_so_far=no
20067 if test $ok_so_far = yes; then
20068 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
20069 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
20071 else
20072 ok_so_far=no
20077 if test $ok_so_far = yes; then
20079 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
20083 if test -f /usr/lpp/X11/bin/smt.exp; then
20085 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
20090 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
20091 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20093 $as_echo "yes" >&6; }
20095 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
20097 else
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20099 $as_echo "no" >&6; }
20102 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20103 if test "x$ac_cv_type_pid_t" = x""yes; then :
20105 else
20107 cat >>confdefs.h <<_ACEOF
20108 #define pid_t int
20109 _ACEOF
20113 for ac_header in vfork.h
20114 do :
20115 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
20116 if test "x$ac_cv_header_vfork_h" = x""yes; then :
20117 cat >>confdefs.h <<_ACEOF
20118 #define HAVE_VFORK_H 1
20119 _ACEOF
20123 done
20125 for ac_func in fork vfork
20126 do :
20127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20129 eval as_val=\$$as_ac_var
20130 if test "x$as_val" = x""yes; then :
20131 cat >>confdefs.h <<_ACEOF
20132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20133 _ACEOF
20136 done
20138 if test "x$ac_cv_func_fork" = xyes; then
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
20140 $as_echo_n "checking for working fork... " >&6; }
20141 if test "${ac_cv_func_fork_works+set}" = set; then :
20142 $as_echo_n "(cached) " >&6
20143 else
20144 if test "$cross_compiling" = yes; then :
20145 ac_cv_func_fork_works=cross
20146 else
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h. */
20149 $ac_includes_default
20151 main ()
20154 /* By Ruediger Kuhlmann. */
20155 return fork () < 0;
20158 return 0;
20160 _ACEOF
20161 if ac_fn_c_try_run "$LINENO"; then :
20162 ac_cv_func_fork_works=yes
20163 else
20164 ac_cv_func_fork_works=no
20166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20167 conftest.$ac_objext conftest.beam conftest.$ac_ext
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
20172 $as_echo "$ac_cv_func_fork_works" >&6; }
20174 else
20175 ac_cv_func_fork_works=$ac_cv_func_fork
20177 if test "x$ac_cv_func_fork_works" = xcross; then
20178 case $host in
20179 *-*-amigaos* | *-*-msdosdjgpp*)
20180 # Override, as these systems have only a dummy fork() stub
20181 ac_cv_func_fork_works=no
20184 ac_cv_func_fork_works=yes
20186 esac
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
20188 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
20190 ac_cv_func_vfork_works=$ac_cv_func_vfork
20191 if test "x$ac_cv_func_vfork" = xyes; then
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
20193 $as_echo_n "checking for working vfork... " >&6; }
20194 if test "${ac_cv_func_vfork_works+set}" = set; then :
20195 $as_echo_n "(cached) " >&6
20196 else
20197 if test "$cross_compiling" = yes; then :
20198 ac_cv_func_vfork_works=cross
20199 else
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20202 /* Thanks to Paul Eggert for this test. */
20203 $ac_includes_default
20204 #include <sys/wait.h>
20205 #ifdef HAVE_VFORK_H
20206 # include <vfork.h>
20207 #endif
20208 /* On some sparc systems, changes by the child to local and incoming
20209 argument registers are propagated back to the parent. The compiler
20210 is told about this with #include <vfork.h>, but some compilers
20211 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
20212 static variable whose address is put into a register that is
20213 clobbered by the vfork. */
20214 static void
20215 #ifdef __cplusplus
20216 sparc_address_test (int arg)
20217 # else
20218 sparc_address_test (arg) int arg;
20219 #endif
20221 static pid_t child;
20222 if (!child) {
20223 child = vfork ();
20224 if (child < 0) {
20225 perror ("vfork");
20226 _exit(2);
20228 if (!child) {
20229 arg = getpid();
20230 write(-1, "", 0);
20231 _exit (arg);
20237 main ()
20239 pid_t parent = getpid ();
20240 pid_t child;
20242 sparc_address_test (0);
20244 child = vfork ();
20246 if (child == 0) {
20247 /* Here is another test for sparc vfork register problems. This
20248 test uses lots of local variables, at least as many local
20249 variables as main has allocated so far including compiler
20250 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
20251 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
20252 reuse the register of parent for one of the local variables,
20253 since it will think that parent can't possibly be used any more
20254 in this routine. Assigning to the local variable will thus
20255 munge parent in the parent process. */
20256 pid_t
20257 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
20258 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
20259 /* Convince the compiler that p..p7 are live; otherwise, it might
20260 use the same hardware register for all 8 local variables. */
20261 if (p != p1 || p != p2 || p != p3 || p != p4
20262 || p != p5 || p != p6 || p != p7)
20263 _exit(1);
20265 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
20266 from child file descriptors. If the child closes a descriptor
20267 before it execs or exits, this munges the parent's descriptor
20268 as well. Test for this by closing stdout in the child. */
20269 _exit(close(fileno(stdout)) != 0);
20270 } else {
20271 int status;
20272 struct stat st;
20274 while (wait(&status) != child)
20276 return (
20277 /* Was there some problem with vforking? */
20278 child < 0
20280 /* Did the child fail? (This shouldn't happen.) */
20281 || status
20283 /* Did the vfork/compiler bug occur? */
20284 || parent != getpid()
20286 /* Did the file descriptor bug occur? */
20287 || fstat(fileno(stdout), &st) != 0
20291 _ACEOF
20292 if ac_fn_c_try_run "$LINENO"; then :
20293 ac_cv_func_vfork_works=yes
20294 else
20295 ac_cv_func_vfork_works=no
20297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20298 conftest.$ac_objext conftest.beam conftest.$ac_ext
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
20303 $as_echo "$ac_cv_func_vfork_works" >&6; }
20306 if test "x$ac_cv_func_fork_works" = xcross; then
20307 ac_cv_func_vfork_works=$ac_cv_func_vfork
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
20309 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
20312 if test "x$ac_cv_func_vfork_works" = xyes; then
20314 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
20316 else
20318 $as_echo "#define vfork fork" >>confdefs.h
20321 if test "x$ac_cv_func_fork_works" = xyes; then
20323 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20329 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20330 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
20331 $as_echo_n "(cached) " >&6
20332 else
20333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20334 /* end confdefs.h. */
20335 #include <langinfo.h>
20337 main ()
20339 char* cs = nl_langinfo(CODESET);
20341 return 0;
20343 _ACEOF
20344 if ac_fn_c_try_link "$LINENO"; then :
20345 emacs_cv_langinfo_codeset=yes
20346 else
20347 emacs_cv_langinfo_codeset=no
20349 rm -f core conftest.err conftest.$ac_objext \
20350 conftest$ac_exeext conftest.$ac_ext
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
20354 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
20355 if test $emacs_cv_langinfo_codeset = yes; then
20357 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20362 $as_echo_n "checking for mbstate_t... " >&6; }
20363 if test "${ac_cv_type_mbstate_t+set}" = set; then :
20364 $as_echo_n "(cached) " >&6
20365 else
20366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20367 /* end confdefs.h. */
20368 $ac_includes_default
20369 # include <wchar.h>
20371 main ()
20373 mbstate_t x; return sizeof x;
20375 return 0;
20377 _ACEOF
20378 if ac_fn_c_try_compile "$LINENO"; then :
20379 ac_cv_type_mbstate_t=yes
20380 else
20381 ac_cv_type_mbstate_t=no
20383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20386 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20387 if test $ac_cv_type_mbstate_t = yes; then
20389 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20391 else
20393 $as_echo "#define mbstate_t int" >>confdefs.h
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
20398 $as_echo_n "checking for C restricted array declarations... " >&6; }
20399 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
20400 $as_echo_n "(cached) " >&6
20401 else
20402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20403 /* end confdefs.h. */
20404 void fred (int x[__restrict]);
20406 main ()
20410 return 0;
20412 _ACEOF
20413 if ac_fn_c_try_compile "$LINENO"; then :
20414 emacs_cv_c_restrict_arr=yes
20415 else
20416 emacs_cv_c_restrict_arr=no
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
20421 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
20422 if test "$emacs_cv_c_restrict_arr" = yes; then
20424 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
20430 # Set up the CFLAGS for real compilation, so we can substitute it.
20431 CFLAGS="$REAL_CFLAGS"
20432 CPPFLAGS="$REAL_CPPFLAGS"
20434 ## Hack to detect a buggy GCC version.
20435 if test "x$GCC" = xyes \
20436 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
20437 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
20438 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
20439 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
20442 version=$PACKAGE_VERSION
20444 ### Specify what sort of things we'll be editing into Makefile and config.h.
20445 ### Use configuration here uncanonicalized to avoid exceeding size limits.
20448 ## Unused?
20469 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
20470 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
20471 ## end of LIBX_BASE, but nothing ever set it.
20476 ## Used in lwlib/Makefile.in.
20478 if test -n "${machfile}"; then
20479 M_FILE="\$(srcdir)/${machfile}"
20480 else
20481 M_FILE=
20483 S_FILE="\$(srcdir)/${opsysfile}"
20494 cat >>confdefs.h <<_ACEOF
20495 #define EMACS_CONFIGURATION "${canonical}"
20496 _ACEOF
20499 cat >>confdefs.h <<_ACEOF
20500 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
20501 _ACEOF
20503 if test -n "$machfile"; then
20505 cat >>confdefs.h <<_ACEOF
20506 #define config_machfile "${machfile}"
20507 _ACEOF
20511 cat >>confdefs.h <<_ACEOF
20512 #define config_opsysfile "${opsysfile}"
20513 _ACEOF
20516 XMENU_OBJ=
20517 XOBJ=
20518 FONT_OBJ=
20519 if test "${HAVE_X_WINDOWS}" = "yes" ; then
20521 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
20523 XMENU_OBJ=xmenu.o
20524 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
20525 FONT_OBJ=xfont.o
20526 if test "$HAVE_XFT" = "yes"; then
20527 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
20528 elif test "$HAVE_FREETYPE" = "yes"; then
20529 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
20537 WIDGET_OBJ=
20538 MOTIF_LIBW=
20539 if test "${USE_X_TOOLKIT}" != "none" ; then
20540 WIDGET_OBJ=widget.o
20542 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
20544 if test "${USE_X_TOOLKIT}" = "LUCID"; then
20546 $as_echo "#define USE_LUCID 1" >>confdefs.h
20548 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
20550 $as_echo "#define USE_MOTIF 1" >>confdefs.h
20552 MOTIF_LIBW=-lXm
20553 case "$opsys" in
20554 gnu-linux)
20555 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
20556 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
20559 unixware)
20560 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
20561 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
20562 MOTIF_LIBW="MOTIF_LIBW -lXimp"
20565 aix4-2)
20566 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
20567 MOTIF_LIBW="$MOTIF_LIBW -li18n"
20569 esac
20570 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
20575 TOOLKIT_LIBW=
20576 case "$USE_X_TOOLKIT" in
20577 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
20578 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
20579 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
20580 esac
20583 if test "$USE_X_TOOLKIT" = "none"; then
20584 LIBXT_OTHER="\$(LIBXSM)"
20585 OLDXMENU_TARGET="really-oldXMenu"
20586 else
20587 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
20588 OLDXMENU_TARGET="really-lwlib"
20592 ## The X Menu stuff is present in the X10 distribution, but missing
20593 ## from X11. If we have X10, just use the installed library;
20594 ## otherwise, use our own copy.
20595 if test "${HAVE_X11}" = "yes" ; then
20597 $as_echo "#define HAVE_X11 1" >>confdefs.h
20600 if test "$USE_X_TOOLKIT" = "none"; then
20601 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
20602 else
20603 OLDXMENU="\${lwlibdir}/liblw.a"
20605 LIBXMENU="\$(OLDXMENU)"
20606 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
20607 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
20608 else
20609 ## For a syntactically valid Makefile; not actually used for anything.
20610 ## See comments in src/Makefile.in.
20611 OLDXMENU=nothing
20612 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
20613 if test "${HAVE_X_WINDOWS}" = "yes"; then
20614 LIBXMENU="-lXMenu"
20615 else
20616 LIBXMENU=
20618 LIBX_OTHER=
20619 OLDXMENU_DEPS=
20622 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
20623 OLDXMENU_TARGET=
20624 OLDXMENU=nothing
20625 LIBXMENU=
20626 OLDXMENU_DEPS=
20635 if test "${HAVE_MENUS}" = "yes" ; then
20637 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
20641 if test "${GNU_MALLOC}" = "yes" ; then
20643 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
20647 RALLOC_OBJ=
20648 if test "${REL_ALLOC}" = "yes" ; then
20650 $as_echo "#define REL_ALLOC 1" >>confdefs.h
20653 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
20657 if test "$opsys" = "cygwin"; then
20658 CYGWIN_OBJ="sheap.o"
20659 ## Cygwin differs because of its unexec().
20660 PRE_ALLOC_OBJ=
20661 POST_ALLOC_OBJ=lastfile.o
20662 else
20663 CYGWIN_OBJ=
20664 PRE_ALLOC_OBJ=lastfile.o
20665 POST_ALLOC_OBJ=
20672 case "$opsys" in
20673 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
20675 darwin)
20676 ## The -headerpad option tells ld (see man page) to leave room at the
20677 ## end of the header for adding load commands. Needed for dumping.
20678 ## 0x690 is the total size of 30 segment load commands (at 56
20679 ## each); under Cocoa 31 commands are required.
20680 if test "$HAVE_NS" = "yes"; then
20681 libs_nsgui="-framework AppKit"
20682 headerpad_extra=6C8
20683 else
20684 libs_nsgui=
20685 headerpad_extra=690
20687 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
20689 ## This is here because src/Makefile.in did some extra fiddling around
20690 ## with LD_SWITCH_SYSTEM. The cpp logic was:
20691 ## #ifndef LD_SWITCH_SYSTEM
20692 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
20693 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
20694 ## not using gcc, darwin system not on an alpha (ie darwin, since
20695 ## darwin + alpha does not occur).
20696 ## Because this was done in src/Makefile.in, the resulting part of
20697 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
20698 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
20699 ## rather than LD_SWITCH_SYSTEM.
20700 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
20701 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
20704 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
20705 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
20706 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
20707 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
20708 ## had different values in configure (in ac_link) and src/Makefile.in.
20709 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
20710 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
20712 *) LD_SWITCH_SYSTEM_TEMACS= ;;
20713 esac
20715 if test "$NS_IMPL_GNUSTEP" = "yes"; then
20716 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
20722 LD_FIRSTFLAG=
20723 ORDINARY_LINK=
20724 case "$opsys" in
20725 ## gnu: GNU needs its own crt0.
20726 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
20728 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
20729 ## library search parth, i.e. it won't search /usr/lib for libc and
20730 ## friends. Using -nostartfiles instead avoids this problem, and
20731 ## will also work on earlier NetBSD releases.
20732 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
20734 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
20735 ## MkLinux/LinuxPPC needs this.
20736 ## ibms390x only supports opsys = gnu-linux so it can be added here.
20737 gnu-*)
20738 case "$machine" in
20739 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
20740 esac
20742 esac
20745 if test "x$ORDINARY_LINK" = "xyes"; then
20747 LD_FIRSTFLAG=""
20749 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
20752 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
20753 ## freebsd, gnu-* not on macppc|ibms390x.
20754 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
20756 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
20757 ## places that are difficult to figure out at make time. Fortunately,
20758 ## these same versions allow you to pass arbitrary flags on to the
20759 ## linker, so there is no reason not to use it as a linker.
20761 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
20762 ## searching for libraries in its internal directories, so we have to
20763 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
20764 LD_FIRSTFLAG="-nostdlib"
20767 ## FIXME? What setting of EDIT_LDFLAGS should this have?
20768 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
20773 ## FIXME? The logic here is not precisely the same as that above.
20774 ## There is no check here for a pre-defined LD_FIRSTFLAG.
20775 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
20776 LIB_GCC=
20777 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
20779 case "$opsys" in
20780 freebsd|netbsd|openbsd) LIB_GCC= ;;
20782 gnu-*)
20783 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
20784 ## build on ARM EABI under GNU/Linux. (Bug#5518)
20785 case $host_cpu in
20786 arm*)
20787 LIB_GCC="-lgcc_s"
20790 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
20791 ## immediately undefine it again and redefine it to empty.
20792 ## Was the C_SWITCH_X_SITE part really necessary?
20793 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
20794 LIB_GCC=
20796 esac
20799 ## Ask GCC where to find libgcc.a.
20800 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
20801 esac
20805 ## If we're using X11/GNUstep, define some consequences.
20806 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
20808 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
20811 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
20818 #### Report on what we decided to do.
20819 #### Report GTK as a toolkit, even if it doesn't use Xt.
20820 #### It makes printing result more understandable as using GTK sets
20821 #### toolkit_scroll_bars to yes by default.
20822 if test "${HAVE_GTK}" = "yes"; then
20823 USE_X_TOOLKIT=GTK
20826 and_machfile=
20827 if test -n "$machfile"; then
20828 and_machfile=" and \`${machfile}'"
20831 echo "
20832 Configured for \`${canonical}'.
20834 Where should the build process find the source code? ${srcdir}
20835 What operating system and machine description files should Emacs use?
20836 \`${opsysfile}'${and_machfile}
20837 What compiler should emacs be built with? ${CC} ${CFLAGS}
20838 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20839 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20840 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20841 What window system should Emacs use? ${window_system}
20842 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20844 if test -n "${x_includes}"; then
20845 echo " Where do we find X Windows header files? ${x_includes}"
20846 else
20847 echo " Where do we find X Windows header files? Standard dirs"
20849 if test -n "${x_libraries}"; then
20850 echo " Where do we find X Windows libraries? ${x_libraries}"
20851 else
20852 echo " Where do we find X Windows libraries? Standard dirs"
20855 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20856 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20857 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20858 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20859 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20860 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20861 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20862 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20864 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20865 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20866 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20867 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20868 echo " Does Emacs use -lgnutls (2.6.x or higher)? ${HAVE_GNUTLS}"
20869 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20871 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20872 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20873 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20874 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20876 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20877 echo
20879 if test $USE_XASSERTS = yes; then
20880 echo " Compiling with asserts turned on."
20881 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20884 echo
20886 if test "$HAVE_NS" = "yes"; then
20887 echo
20888 echo "You must run \"make install\" in order to test the built application.
20889 The installed application will go to nextstep/Emacs.app and can be
20890 run or moved from there."
20891 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20892 echo "The application will be fully self-contained."
20893 else
20894 echo "The lisp resources for the application will be installed under ${prefix}.
20895 You may need to run \"make install\" with sudo. The application will fail
20896 to run if these resources are not installed."
20898 echo
20902 # Remove any trailing slashes in these variables.
20903 test "${prefix}" != NONE &&
20904 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20905 test "${exec_prefix}" != NONE &&
20906 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20908 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"
20910 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"
20913 opt_makefile=test/automated/Makefile
20915 if test -f $srcdir/${opt_makefile}.in; then
20916 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile"
20917 ac_config_files="$ac_config_files test/automated/Makefile"
20921 SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'`
20925 ac_config_commands="$ac_config_commands mkdirs"
20928 ac_config_commands="$ac_config_commands epaths"
20931 ac_config_commands="$ac_config_commands gdbinit"
20934 cat >confcache <<\_ACEOF
20935 # This file is a shell script that caches the results of configure
20936 # tests run on this system so they can be shared between configure
20937 # scripts and configure runs, see configure's option --config-cache.
20938 # It is not useful on other systems. If it contains results you don't
20939 # want to keep, you may remove or edit it.
20941 # config.status only pays attention to the cache file if you give it
20942 # the --recheck option to rerun configure.
20944 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20945 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20946 # following values.
20948 _ACEOF
20950 # The following way of writing the cache mishandles newlines in values,
20951 # but we know of no workaround that is simple, portable, and efficient.
20952 # So, we kill variables containing newlines.
20953 # Ultrix sh set writes to stderr and can't be redirected directly,
20954 # and sets the high bit in the cache file unless we assign to the vars.
20956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20957 eval ac_val=\$$ac_var
20958 case $ac_val in #(
20959 *${as_nl}*)
20960 case $ac_var in #(
20961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20963 esac
20964 case $ac_var in #(
20965 _ | IFS | as_nl) ;; #(
20966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20967 *) { eval $ac_var=; unset $ac_var;} ;;
20968 esac ;;
20969 esac
20970 done
20972 (set) 2>&1 |
20973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20974 *${as_nl}ac_space=\ *)
20975 # `set' does not quote correctly, so add quotes: double-quote
20976 # substitution turns \\\\ into \\, and sed turns \\ into \.
20977 sed -n \
20978 "s/'/'\\\\''/g;
20979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20980 ;; #(
20982 # `set' quotes correctly as required by POSIX, so do not add quotes.
20983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20985 esac |
20986 sort
20988 sed '
20989 /^ac_cv_env_/b end
20990 t clear
20991 :clear
20992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20993 t end
20994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20995 :end' >>confcache
20996 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20997 if test -w "$cache_file"; then
20998 test "x$cache_file" != "x/dev/null" &&
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21000 $as_echo "$as_me: updating cache $cache_file" >&6;}
21001 cat confcache >$cache_file
21002 else
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21004 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21007 rm -f confcache
21009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21010 # Let make expand exec_prefix.
21011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21013 DEFS=-DHAVE_CONFIG_H
21015 ac_libobjs=
21016 ac_ltlibobjs=
21017 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21018 # 1. Remove the extension, and $U if already installed.
21019 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21020 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21021 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21022 # will be set to the directory where LIBOBJS objects are built.
21023 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21024 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21025 done
21026 LIBOBJS=$ac_libobjs
21028 LTLIBOBJS=$ac_ltlibobjs
21031 if test -n "$EXEEXT"; then
21032 am__EXEEXT_TRUE=
21033 am__EXEEXT_FALSE='#'
21034 else
21035 am__EXEEXT_TRUE='#'
21036 am__EXEEXT_FALSE=
21039 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21040 as_fn_error "conditional \"AMDEP\" was never defined.
21041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21043 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21044 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21048 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21049 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
21050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21053 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21054 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
21055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21057 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21058 as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined.
21059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21061 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21062 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
21063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21065 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21066 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
21067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21069 if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then
21070 as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined.
21071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21073 if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then
21074 as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined.
21075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21077 if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then
21078 as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined.
21079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21081 if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then
21082 as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined.
21083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21085 if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then
21086 as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined.
21087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21090 gl_libobjs=
21091 gl_ltlibobjs=
21092 if test -n "$gl_LIBOBJS"; then
21093 # Remove the extension.
21094 sed_drop_objext='s/\.o$//;s/\.obj$//'
21095 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21096 gl_libobjs="$gl_libobjs $i.$ac_objext"
21097 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21098 done
21100 gl_LIBOBJS=$gl_libobjs
21102 gl_LTLIBOBJS=$gl_ltlibobjs
21106 gltests_libobjs=
21107 gltests_ltlibobjs=
21108 if test -n "$gltests_LIBOBJS"; then
21109 # Remove the extension.
21110 sed_drop_objext='s/\.o$//;s/\.obj$//'
21111 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21112 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21113 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21114 done
21116 gltests_LIBOBJS=$gltests_libobjs
21118 gltests_LTLIBOBJS=$gltests_ltlibobjs
21122 : ${CONFIG_STATUS=./config.status}
21123 ac_write_fail=0
21124 ac_clean_files_save=$ac_clean_files
21125 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21127 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21128 as_write_fail=0
21129 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21130 #! $SHELL
21131 # Generated by $as_me.
21132 # Run this file to recreate the current configuration.
21133 # Compiler output produced by configure, useful for debugging
21134 # configure, is in config.log if it exists.
21136 debug=false
21137 ac_cs_recheck=false
21138 ac_cs_silent=false
21140 SHELL=\${CONFIG_SHELL-$SHELL}
21141 export SHELL
21142 _ASEOF
21143 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21144 ## -------------------- ##
21145 ## M4sh Initialization. ##
21146 ## -------------------- ##
21148 # Be more Bourne compatible
21149 DUALCASE=1; export DUALCASE # for MKS sh
21150 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21151 emulate sh
21152 NULLCMD=:
21153 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21154 # is contrary to our usage. Disable this feature.
21155 alias -g '${1+"$@"}'='"$@"'
21156 setopt NO_GLOB_SUBST
21157 else
21158 case `(set -o) 2>/dev/null` in #(
21159 *posix*) :
21160 set -o posix ;; #(
21161 *) :
21163 esac
21167 as_nl='
21169 export as_nl
21170 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21171 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21173 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21174 # Prefer a ksh shell builtin over an external printf program on Solaris,
21175 # but without wasting forks for bash or zsh.
21176 if test -z "$BASH_VERSION$ZSH_VERSION" \
21177 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21178 as_echo='print -r --'
21179 as_echo_n='print -rn --'
21180 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21181 as_echo='printf %s\n'
21182 as_echo_n='printf %s'
21183 else
21184 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21185 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21186 as_echo_n='/usr/ucb/echo -n'
21187 else
21188 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21189 as_echo_n_body='eval
21190 arg=$1;
21191 case $arg in #(
21192 *"$as_nl"*)
21193 expr "X$arg" : "X\\(.*\\)$as_nl";
21194 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21195 esac;
21196 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21198 export as_echo_n_body
21199 as_echo_n='sh -c $as_echo_n_body as_echo'
21201 export as_echo_body
21202 as_echo='sh -c $as_echo_body as_echo'
21205 # The user is always right.
21206 if test "${PATH_SEPARATOR+set}" != set; then
21207 PATH_SEPARATOR=:
21208 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21209 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21210 PATH_SEPARATOR=';'
21215 # IFS
21216 # We need space, tab and new line, in precisely that order. Quoting is
21217 # there to prevent editors from complaining about space-tab.
21218 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21219 # splitting by setting IFS to empty value.)
21220 IFS=" "" $as_nl"
21222 # Find who we are. Look in the path if we contain no directory separator.
21223 case $0 in #((
21224 *[\\/]* ) as_myself=$0 ;;
21225 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21226 for as_dir in $PATH
21228 IFS=$as_save_IFS
21229 test -z "$as_dir" && as_dir=.
21230 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21231 done
21232 IFS=$as_save_IFS
21235 esac
21236 # We did not find ourselves, most probably we were run as `sh COMMAND'
21237 # in which case we are not to be found in the path.
21238 if test "x$as_myself" = x; then
21239 as_myself=$0
21241 if test ! -f "$as_myself"; then
21242 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21243 exit 1
21246 # Unset variables that we do not need and which cause bugs (e.g. in
21247 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21248 # suppresses any "Segmentation fault" message there. '((' could
21249 # trigger a bug in pdksh 5.2.14.
21250 for as_var in BASH_ENV ENV MAIL MAILPATH
21251 do eval test x\${$as_var+set} = xset \
21252 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21253 done
21254 PS1='$ '
21255 PS2='> '
21256 PS4='+ '
21258 # NLS nuisances.
21259 LC_ALL=C
21260 export LC_ALL
21261 LANGUAGE=C
21262 export LANGUAGE
21264 # CDPATH.
21265 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21268 # as_fn_error ERROR [LINENO LOG_FD]
21269 # ---------------------------------
21270 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21271 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21272 # script with status $?, using 1 if that was 0.
21273 as_fn_error ()
21275 as_status=$?; test $as_status -eq 0 && as_status=1
21276 if test "$3"; then
21277 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21278 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21280 $as_echo "$as_me: error: $1" >&2
21281 as_fn_exit $as_status
21282 } # as_fn_error
21285 # as_fn_set_status STATUS
21286 # -----------------------
21287 # Set $? to STATUS, without forking.
21288 as_fn_set_status ()
21290 return $1
21291 } # as_fn_set_status
21293 # as_fn_exit STATUS
21294 # -----------------
21295 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21296 as_fn_exit ()
21298 set +e
21299 as_fn_set_status $1
21300 exit $1
21301 } # as_fn_exit
21303 # as_fn_unset VAR
21304 # ---------------
21305 # Portably unset VAR.
21306 as_fn_unset ()
21308 { eval $1=; unset $1;}
21310 as_unset=as_fn_unset
21311 # as_fn_append VAR VALUE
21312 # ----------------------
21313 # Append the text in VALUE to the end of the definition contained in VAR. Take
21314 # advantage of any shell optimizations that allow amortized linear growth over
21315 # repeated appends, instead of the typical quadratic growth present in naive
21316 # implementations.
21317 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21318 eval 'as_fn_append ()
21320 eval $1+=\$2
21322 else
21323 as_fn_append ()
21325 eval $1=\$$1\$2
21327 fi # as_fn_append
21329 # as_fn_arith ARG...
21330 # ------------------
21331 # Perform arithmetic evaluation on the ARGs, and store the result in the
21332 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21333 # must be portable across $(()) and expr.
21334 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21335 eval 'as_fn_arith ()
21337 as_val=$(( $* ))
21339 else
21340 as_fn_arith ()
21342 as_val=`expr "$@" || test $? -eq 1`
21344 fi # as_fn_arith
21347 if expr a : '\(a\)' >/dev/null 2>&1 &&
21348 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21349 as_expr=expr
21350 else
21351 as_expr=false
21354 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21355 as_basename=basename
21356 else
21357 as_basename=false
21360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21361 as_dirname=dirname
21362 else
21363 as_dirname=false
21366 as_me=`$as_basename -- "$0" ||
21367 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21368 X"$0" : 'X\(//\)$' \| \
21369 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21370 $as_echo X/"$0" |
21371 sed '/^.*\/\([^/][^/]*\)\/*$/{
21372 s//\1/
21375 /^X\/\(\/\/\)$/{
21376 s//\1/
21379 /^X\/\(\/\).*/{
21380 s//\1/
21383 s/.*/./; q'`
21385 # Avoid depending upon Character Ranges.
21386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21389 as_cr_digits='0123456789'
21390 as_cr_alnum=$as_cr_Letters$as_cr_digits
21392 ECHO_C= ECHO_N= ECHO_T=
21393 case `echo -n x` in #(((((
21394 -n*)
21395 case `echo 'xy\c'` in
21396 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21397 xy) ECHO_C='\c';;
21398 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21399 ECHO_T=' ';;
21400 esac;;
21402 ECHO_N='-n';;
21403 esac
21405 rm -f conf$$ conf$$.exe conf$$.file
21406 if test -d conf$$.dir; then
21407 rm -f conf$$.dir/conf$$.file
21408 else
21409 rm -f conf$$.dir
21410 mkdir conf$$.dir 2>/dev/null
21412 if (echo >conf$$.file) 2>/dev/null; then
21413 if ln -s conf$$.file conf$$ 2>/dev/null; then
21414 as_ln_s='ln -s'
21415 # ... but there are two gotchas:
21416 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21417 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21418 # In both cases, we have to default to `cp -p'.
21419 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21420 as_ln_s='cp -p'
21421 elif ln conf$$.file conf$$ 2>/dev/null; then
21422 as_ln_s=ln
21423 else
21424 as_ln_s='cp -p'
21426 else
21427 as_ln_s='cp -p'
21429 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21430 rmdir conf$$.dir 2>/dev/null
21433 # as_fn_mkdir_p
21434 # -------------
21435 # Create "$as_dir" as a directory, including parents if necessary.
21436 as_fn_mkdir_p ()
21439 case $as_dir in #(
21440 -*) as_dir=./$as_dir;;
21441 esac
21442 test -d "$as_dir" || eval $as_mkdir_p || {
21443 as_dirs=
21444 while :; do
21445 case $as_dir in #(
21446 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21447 *) as_qdir=$as_dir;;
21448 esac
21449 as_dirs="'$as_qdir' $as_dirs"
21450 as_dir=`$as_dirname -- "$as_dir" ||
21451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21452 X"$as_dir" : 'X\(//\)[^/]' \| \
21453 X"$as_dir" : 'X\(//\)$' \| \
21454 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21455 $as_echo X"$as_dir" |
21456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21457 s//\1/
21460 /^X\(\/\/\)[^/].*/{
21461 s//\1/
21464 /^X\(\/\/\)$/{
21465 s//\1/
21468 /^X\(\/\).*/{
21469 s//\1/
21472 s/.*/./; q'`
21473 test -d "$as_dir" && break
21474 done
21475 test -z "$as_dirs" || eval "mkdir $as_dirs"
21476 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21479 } # as_fn_mkdir_p
21480 if mkdir -p . 2>/dev/null; then
21481 as_mkdir_p='mkdir -p "$as_dir"'
21482 else
21483 test -d ./-p && rmdir ./-p
21484 as_mkdir_p=false
21487 if test -x / >/dev/null 2>&1; then
21488 as_test_x='test -x'
21489 else
21490 if ls -dL / >/dev/null 2>&1; then
21491 as_ls_L_option=L
21492 else
21493 as_ls_L_option=
21495 as_test_x='
21496 eval sh -c '\''
21497 if test -d "$1"; then
21498 test -d "$1/.";
21499 else
21500 case $1 in #(
21501 -*)set "./$1";;
21502 esac;
21503 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21504 ???[sx]*):;;*)false;;esac;fi
21505 '\'' sh
21508 as_executable_p=$as_test_x
21510 # Sed expression to map a string onto a valid CPP name.
21511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21513 # Sed expression to map a string onto a valid variable name.
21514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21517 exec 6>&1
21518 ## ----------------------------------- ##
21519 ## Main body of $CONFIG_STATUS script. ##
21520 ## ----------------------------------- ##
21521 _ASEOF
21522 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21525 # Save the log message, to keep $0 and so on meaningful, and to
21526 # report actual input values of CONFIG_FILES etc. instead of their
21527 # values after options handling.
21528 ac_log="
21529 This file was extended by emacs $as_me 24.0.50, which was
21530 generated by GNU Autoconf 2.65. Invocation command line was
21532 CONFIG_FILES = $CONFIG_FILES
21533 CONFIG_HEADERS = $CONFIG_HEADERS
21534 CONFIG_LINKS = $CONFIG_LINKS
21535 CONFIG_COMMANDS = $CONFIG_COMMANDS
21536 $ $0 $@
21538 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21541 _ACEOF
21543 case $ac_config_files in *"
21544 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21545 esac
21547 case $ac_config_headers in *"
21548 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21549 esac
21552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21553 # Files that config.status was made for.
21554 config_files="$ac_config_files"
21555 config_headers="$ac_config_headers"
21556 config_commands="$ac_config_commands"
21558 _ACEOF
21560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21561 ac_cs_usage="\
21562 \`$as_me' instantiates files and other configuration actions
21563 from templates according to the current configuration. Unless the files
21564 and actions are specified as TAGs, all are instantiated by default.
21566 Usage: $0 [OPTION]... [TAG]...
21568 -h, --help print this help, then exit
21569 -V, --version print version number and configuration settings, then exit
21570 --config print configuration, then exit
21571 -q, --quiet, --silent
21572 do not print progress messages
21573 -d, --debug don't remove temporary files
21574 --recheck update $as_me by reconfiguring in the same conditions
21575 --file=FILE[:TEMPLATE]
21576 instantiate the configuration file FILE
21577 --header=FILE[:TEMPLATE]
21578 instantiate the configuration header FILE
21580 Configuration files:
21581 $config_files
21583 Configuration headers:
21584 $config_headers
21586 Configuration commands:
21587 $config_commands
21589 Report bugs to the package provider."
21591 _ACEOF
21592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21593 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21594 ac_cs_version="\\
21595 emacs config.status 24.0.50
21596 configured by $0, generated by GNU Autoconf 2.65,
21597 with options \\"\$ac_cs_config\\"
21599 Copyright (C) 2009 Free Software Foundation, Inc.
21600 This config.status script is free software; the Free Software Foundation
21601 gives unlimited permission to copy, distribute and modify it."
21603 ac_pwd='$ac_pwd'
21604 srcdir='$srcdir'
21605 INSTALL='$INSTALL'
21606 MKDIR_P='$MKDIR_P'
21607 AWK='$AWK'
21608 test -n "\$AWK" || AWK=awk
21609 _ACEOF
21611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21612 # The default lists apply if the user does not specify any file.
21613 ac_need_defaults=:
21614 while test $# != 0
21616 case $1 in
21617 --*=*)
21618 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21619 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21620 ac_shift=:
21623 ac_option=$1
21624 ac_optarg=$2
21625 ac_shift=shift
21627 esac
21629 case $ac_option in
21630 # Handling of the options.
21631 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21632 ac_cs_recheck=: ;;
21633 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21634 $as_echo "$ac_cs_version"; exit ;;
21635 --config | --confi | --conf | --con | --co | --c )
21636 $as_echo "$ac_cs_config"; exit ;;
21637 --debug | --debu | --deb | --de | --d | -d )
21638 debug=: ;;
21639 --file | --fil | --fi | --f )
21640 $ac_shift
21641 case $ac_optarg in
21642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21643 esac
21644 as_fn_append CONFIG_FILES " '$ac_optarg'"
21645 ac_need_defaults=false;;
21646 --header | --heade | --head | --hea )
21647 $ac_shift
21648 case $ac_optarg in
21649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21650 esac
21651 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21652 ac_need_defaults=false;;
21653 --he | --h)
21654 # Conflict between --help and --header
21655 as_fn_error "ambiguous option: \`$1'
21656 Try \`$0 --help' for more information.";;
21657 --help | --hel | -h )
21658 $as_echo "$ac_cs_usage"; exit ;;
21659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21661 ac_cs_silent=: ;;
21663 # This is an error.
21664 -*) as_fn_error "unrecognized option: \`$1'
21665 Try \`$0 --help' for more information." ;;
21667 *) as_fn_append ac_config_targets " $1"
21668 ac_need_defaults=false ;;
21670 esac
21671 shift
21672 done
21674 ac_configure_extra_args=
21676 if $ac_cs_silent; then
21677 exec 6>/dev/null
21678 ac_configure_extra_args="$ac_configure_extra_args --silent"
21681 _ACEOF
21682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21683 if \$ac_cs_recheck; then
21684 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21685 shift
21686 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21687 CONFIG_SHELL='$SHELL'
21688 export CONFIG_SHELL
21689 exec "\$@"
21692 _ACEOF
21693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21694 exec 5>>config.log
21696 echo
21697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21698 ## Running $as_me. ##
21699 _ASBOX
21700 $as_echo "$ac_log"
21701 } >&5
21703 _ACEOF
21704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21706 # INIT-COMMANDS
21708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21709 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
21711 _ACEOF
21713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21715 # Handling of arguments.
21716 for ac_config_target in $ac_config_targets
21718 case $ac_config_target in
21719 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
21720 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21721 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21722 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21723 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
21724 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
21725 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
21726 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
21727 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
21728 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
21729 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21730 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
21731 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
21732 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
21733 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
21734 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
21735 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
21736 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
21738 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21739 esac
21740 done
21743 # If the user did not use the arguments to specify the items to instantiate,
21744 # then the envvar interface is used. Set only those that are not.
21745 # We use the long form for the default assignment because of an extremely
21746 # bizarre bug on SunOS 4.1.3.
21747 if $ac_need_defaults; then
21748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21753 # Have a temporary directory for convenience. Make it in the build tree
21754 # simply because there is no reason against having it here, and in addition,
21755 # creating and moving files from /tmp can sometimes cause problems.
21756 # Hook for its removal unless debugging.
21757 # Note that there is a small window in which the directory will not be cleaned:
21758 # after its creation but before its name has been assigned to `$tmp'.
21759 $debug ||
21761 tmp=
21762 trap 'exit_status=$?
21763 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21765 trap 'as_fn_exit 1' 1 2 13 15
21767 # Create a (secure) tmp directory for tmp files.
21770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21771 test -n "$tmp" && test -d "$tmp"
21772 } ||
21774 tmp=./conf$$-$RANDOM
21775 (umask 077 && mkdir "$tmp")
21776 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21778 # Set up the scripts for CONFIG_FILES section.
21779 # No need to generate them if there are no CONFIG_FILES.
21780 # This happens for instance with `./config.status config.h'.
21781 if test -n "$CONFIG_FILES"; then
21783 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
21784 ac_cs_awk_getline=:
21785 ac_cs_awk_pipe_init=
21786 ac_cs_awk_read_file='
21787 while ((getline aline < (F[key])) > 0)
21788 print(aline)
21789 close(F[key])'
21790 ac_cs_awk_pipe_fini=
21791 else
21792 ac_cs_awk_getline=false
21793 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
21794 ac_cs_awk_read_file='
21795 print "|#_!!_#|"
21796 print "cat " F[key] " &&"
21797 '$ac_cs_awk_pipe_init
21798 # The final `:' finishes the AND list.
21799 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
21801 ac_cr=`echo X | tr X '\015'`
21802 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21803 # But we know of no other shell where ac_cr would be empty at this
21804 # point, so we can use a bashism as a fallback.
21805 if test "x$ac_cr" = x; then
21806 eval ac_cr=\$\'\\r\'
21808 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21809 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21810 ac_cs_awk_cr='\r'
21811 else
21812 ac_cs_awk_cr=$ac_cr
21815 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21816 _ACEOF
21818 # Create commands to substitute file output variables.
21820 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
21821 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
21822 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
21823 echo "_ACAWK" &&
21824 echo "_ACEOF"
21825 } >conf$$files.sh &&
21826 . ./conf$$files.sh ||
21827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21828 rm -f conf$$files.sh
21831 echo "cat >conf$$subs.awk <<_ACEOF" &&
21832 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21833 echo "_ACEOF"
21834 } >conf$$subs.sh ||
21835 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21836 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21837 ac_delim='%!_!# '
21838 for ac_last_try in false false false false false :; do
21839 . ./conf$$subs.sh ||
21840 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21842 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21843 if test $ac_delim_n = $ac_delim_num; then
21844 break
21845 elif $ac_last_try; then
21846 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21847 else
21848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21850 done
21851 rm -f conf$$subs.sh
21853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21854 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21855 _ACEOF
21856 sed -n '
21858 s/^/S["/; s/!.*/"]=/
21861 s/^[^!]*!//
21862 :repl
21863 t repl
21864 s/'"$ac_delim"'$//
21865 t delim
21868 s/\(.\{148\}\)..*/\1/
21869 t more1
21870 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21873 b repl
21874 :more1
21875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21878 s/.\{148\}//
21879 t nl
21880 :delim
21882 s/\(.\{148\}\)..*/\1/
21883 t more2
21884 s/["\\]/\\&/g; s/^/"/; s/$/"/
21887 :more2
21888 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21891 s/.\{148\}//
21892 t delim
21893 ' <conf$$subs.awk | sed '
21894 /^[^""]/{
21896 s/\n//
21898 ' >>$CONFIG_STATUS || ac_write_fail=1
21899 rm -f conf$$subs.awk
21900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21901 _ACAWK
21902 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21903 for (key in S) S_is_set[key] = 1
21904 FS = "\a"
21905 \$ac_cs_awk_pipe_init
21908 line = $ 0
21909 nfields = split(line, field, "@")
21910 substed = 0
21911 len = length(field[1])
21912 for (i = 2; i < nfields; i++) {
21913 key = field[i]
21914 keylen = length(key)
21915 if (S_is_set[key]) {
21916 value = S[key]
21917 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21918 len += length(value) + length(field[++i])
21919 substed = 1
21920 } else
21921 len += 1 + keylen
21923 if (nfields == 3 && !substed) {
21924 key = field[2]
21925 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21926 \$ac_cs_awk_read_file
21927 next
21930 print line
21932 \$ac_cs_awk_pipe_fini
21933 _ACAWK
21934 _ACEOF
21935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21936 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21937 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21938 else
21940 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21941 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21942 _ACEOF
21944 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21945 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21946 # trailing colons and then remove the whole line if VPATH becomes empty
21947 # (actually we leave an empty line to preserve line numbers).
21948 if test "x$srcdir" = x.; then
21949 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21950 s/:*\$(srcdir):*/:/
21951 s/:*\${srcdir}:*/:/
21952 s/:*@srcdir@:*/:/
21953 s/^\([^=]*=[ ]*\):*/\1/
21954 s/:*$//
21955 s/^[^=]*=[ ]*$//
21959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21960 fi # test -n "$CONFIG_FILES"
21962 # Set up the scripts for CONFIG_HEADERS section.
21963 # No need to generate them if there are no CONFIG_HEADERS.
21964 # This happens for instance with `./config.status Makefile'.
21965 if test -n "$CONFIG_HEADERS"; then
21966 cat >"$tmp/defines.awk" <<\_ACAWK ||
21967 BEGIN {
21968 _ACEOF
21970 # Transform confdefs.h into an awk script `defines.awk', embedded as
21971 # here-document in config.status, that substitutes the proper values into
21972 # config.h.in to produce config.h.
21974 # Create a delimiter string that does not exist in confdefs.h, to ease
21975 # handling of long lines.
21976 ac_delim='%!_!# '
21977 for ac_last_try in false false :; do
21978 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21979 if test -z "$ac_t"; then
21980 break
21981 elif $ac_last_try; then
21982 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21983 else
21984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21986 done
21988 # For the awk script, D is an array of macro values keyed by name,
21989 # likewise P contains macro parameters if any. Preserve backslash
21990 # newline sequences.
21992 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21993 sed -n '
21994 s/.\{148\}/&'"$ac_delim"'/g
21995 t rset
21996 :rset
21997 s/^[ ]*#[ ]*define[ ][ ]*/ /
21998 t def
22000 :def
22001 s/\\$//
22002 t bsnl
22003 s/["\\]/\\&/g
22004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22005 D["\1"]=" \3"/p
22006 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22008 :bsnl
22009 s/["\\]/\\&/g
22010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22011 D["\1"]=" \3\\\\\\n"\\/p
22012 t cont
22013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22014 t cont
22016 :cont
22018 s/.\{148\}/&'"$ac_delim"'/g
22019 t clear
22020 :clear
22021 s/\\$//
22022 t bsnlc
22023 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22025 :bsnlc
22026 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22027 b cont
22028 ' <confdefs.h | sed '
22029 s/'"$ac_delim"'/"\\\
22030 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22033 for (key in D) D_is_set[key] = 1
22034 FS = "\a"
22036 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22037 line = \$ 0
22038 split(line, arg, " ")
22039 if (arg[1] == "#") {
22040 defundef = arg[2]
22041 mac1 = arg[3]
22042 } else {
22043 defundef = substr(arg[1], 2)
22044 mac1 = arg[2]
22046 split(mac1, mac2, "(") #)
22047 macro = mac2[1]
22048 prefix = substr(line, 1, index(line, defundef) - 1)
22049 if (D_is_set[macro]) {
22050 # Preserve the white space surrounding the "#".
22051 print prefix "define", macro P[macro] D[macro]
22052 next
22053 } else {
22054 # Replace #undef with comments. This is necessary, for example,
22055 # in the case of _POSIX_SOURCE, which is predefined and required
22056 # on some systems where configure will not decide to define it.
22057 if (defundef == "undef") {
22058 print "/*", prefix defundef, macro, "*/"
22059 next
22063 { print }
22064 _ACAWK
22065 _ACEOF
22066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22067 as_fn_error "could not setup config headers machinery" "$LINENO" 5
22068 fi # test -n "$CONFIG_HEADERS"
22071 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22072 shift
22073 for ac_tag
22075 case $ac_tag in
22076 :[FHLC]) ac_mode=$ac_tag; continue;;
22077 esac
22078 case $ac_mode$ac_tag in
22079 :[FHL]*:*);;
22080 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22081 :[FH]-) ac_tag=-:-;;
22082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22083 esac
22084 ac_save_IFS=$IFS
22085 IFS=:
22086 set x $ac_tag
22087 IFS=$ac_save_IFS
22088 shift
22089 ac_file=$1
22090 shift
22092 case $ac_mode in
22093 :L) ac_source=$1;;
22094 :[FH])
22095 ac_file_inputs=
22096 for ac_f
22098 case $ac_f in
22099 -) ac_f="$tmp/stdin";;
22100 *) # Look for the file first in the build tree, then in the source tree
22101 # (if the path is not absolute). The absolute path cannot be DOS-style,
22102 # because $ac_f cannot contain `:'.
22103 test -f "$ac_f" ||
22104 case $ac_f in
22105 [\\/$]*) false;;
22106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22107 esac ||
22108 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22109 esac
22110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22111 as_fn_append ac_file_inputs " '$ac_f'"
22112 done
22114 # Let's still pretend it is `configure' which instantiates (i.e., don't
22115 # use $as_me), people would be surprised to read:
22116 # /* config.h. Generated by config.status. */
22117 configure_input='Generated from '`
22118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22119 `' by configure.'
22120 if test x"$ac_file" != x-; then
22121 configure_input="$ac_file. $configure_input"
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22123 $as_echo "$as_me: creating $ac_file" >&6;}
22125 # Neutralize special characters interpreted by sed in replacement strings.
22126 case $configure_input in #(
22127 *\&* | *\|* | *\\* )
22128 ac_sed_conf_input=`$as_echo "$configure_input" |
22129 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22130 *) ac_sed_conf_input=$configure_input;;
22131 esac
22133 case $ac_tag in
22134 *:-:* | *:-) cat >"$tmp/stdin" \
22135 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22136 esac
22138 esac
22140 ac_dir=`$as_dirname -- "$ac_file" ||
22141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22142 X"$ac_file" : 'X\(//\)[^/]' \| \
22143 X"$ac_file" : 'X\(//\)$' \| \
22144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22145 $as_echo X"$ac_file" |
22146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22147 s//\1/
22150 /^X\(\/\/\)[^/].*/{
22151 s//\1/
22154 /^X\(\/\/\)$/{
22155 s//\1/
22158 /^X\(\/\).*/{
22159 s//\1/
22162 s/.*/./; q'`
22163 as_dir="$ac_dir"; as_fn_mkdir_p
22164 ac_builddir=.
22166 case "$ac_dir" in
22167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22169 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22170 # A ".." for each directory in $ac_dir_suffix.
22171 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22172 case $ac_top_builddir_sub in
22173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22175 esac ;;
22176 esac
22177 ac_abs_top_builddir=$ac_pwd
22178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22179 # for backward compatibility:
22180 ac_top_builddir=$ac_top_build_prefix
22182 case $srcdir in
22183 .) # We are building in place.
22184 ac_srcdir=.
22185 ac_top_srcdir=$ac_top_builddir_sub
22186 ac_abs_top_srcdir=$ac_pwd ;;
22187 [\\/]* | ?:[\\/]* ) # Absolute name.
22188 ac_srcdir=$srcdir$ac_dir_suffix;
22189 ac_top_srcdir=$srcdir
22190 ac_abs_top_srcdir=$srcdir ;;
22191 *) # Relative name.
22192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22193 ac_top_srcdir=$ac_top_build_prefix$srcdir
22194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22195 esac
22196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22199 case $ac_mode in
22202 # CONFIG_FILE
22205 case $INSTALL in
22206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22207 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22208 esac
22209 ac_MKDIR_P=$MKDIR_P
22210 case $MKDIR_P in
22211 [\\/$]* | ?:[\\/]* ) ;;
22212 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22213 esac
22214 _ACEOF
22216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22217 # If the template does not know about datarootdir, expand it.
22218 # FIXME: This hack should be removed a few years after 2.60.
22219 ac_datarootdir_hack=; ac_datarootdir_seen=
22220 ac_sed_dataroot='
22221 /datarootdir/ {
22225 /@datadir@/p
22226 /@docdir@/p
22227 /@infodir@/p
22228 /@localedir@/p
22229 /@mandir@/p'
22230 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22231 *datarootdir*) ac_datarootdir_seen=yes;;
22232 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22234 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22235 _ACEOF
22236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22237 ac_datarootdir_hack='
22238 s&@datadir@&$datadir&g
22239 s&@docdir@&$docdir&g
22240 s&@infodir@&$infodir&g
22241 s&@localedir@&$localedir&g
22242 s&@mandir@&$mandir&g
22243 s&\\\${datarootdir}&$datarootdir&g' ;;
22244 esac
22245 _ACEOF
22247 # Neutralize VPATH when `$srcdir' = `.'.
22248 # Shell code in configure.ac might set extrasub.
22249 # FIXME: do we really want to maintain this feature?
22250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22251 ac_sed_extra="$ac_vpsub
22252 $extrasub
22253 _ACEOF
22254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22257 s|@configure_input@|$ac_sed_conf_input|;t t
22258 s&@top_builddir@&$ac_top_builddir_sub&;t t
22259 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22260 s&@srcdir@&$ac_srcdir&;t t
22261 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22262 s&@top_srcdir@&$ac_top_srcdir&;t t
22263 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22264 s&@builddir@&$ac_builddir&;t t
22265 s&@abs_builddir@&$ac_abs_builddir&;t t
22266 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22267 s&@INSTALL@&$ac_INSTALL&;t t
22268 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22269 $ac_datarootdir_hack
22271 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
22272 if $ac_cs_awk_getline; then
22273 $AWK -f "$tmp/subs.awk"
22274 else
22275 $AWK -f "$tmp/subs.awk" | $SHELL
22276 fi >$tmp/out \
22277 || as_fn_error "could not create $ac_file" "$LINENO" 5
22279 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22280 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22283 which seems to be undefined. Please make sure it is defined." >&5
22284 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22285 which seems to be undefined. Please make sure it is defined." >&2;}
22287 rm -f "$tmp/stdin"
22288 case $ac_file in
22289 -) cat "$tmp/out" && rm -f "$tmp/out";;
22290 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22291 esac \
22292 || as_fn_error "could not create $ac_file" "$LINENO" 5
22296 # CONFIG_HEADER
22298 if test x"$ac_file" != x-; then
22300 $as_echo "/* $configure_input */" \
22301 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22302 } >"$tmp/config.h" \
22303 || as_fn_error "could not create $ac_file" "$LINENO" 5
22304 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22306 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22307 else
22308 rm -f "$ac_file"
22309 mv "$tmp/config.h" "$ac_file" \
22310 || as_fn_error "could not create $ac_file" "$LINENO" 5
22312 else
22313 $as_echo "/* $configure_input */" \
22314 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22315 || as_fn_error "could not create -" "$LINENO" 5
22317 # Compute "$ac_file"'s index in $config_headers.
22318 _am_arg="$ac_file"
22319 _am_stamp_count=1
22320 for _am_header in $config_headers :; do
22321 case $_am_header in
22322 $_am_arg | $_am_arg:* )
22323 break ;;
22325 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22326 esac
22327 done
22328 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22329 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22330 X"$_am_arg" : 'X\(//\)[^/]' \| \
22331 X"$_am_arg" : 'X\(//\)$' \| \
22332 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22333 $as_echo X"$_am_arg" |
22334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22335 s//\1/
22338 /^X\(\/\/\)[^/].*/{
22339 s//\1/
22342 /^X\(\/\/\)$/{
22343 s//\1/
22346 /^X\(\/\).*/{
22347 s//\1/
22350 s/.*/./; q'`/stamp-h$_am_stamp_count
22353 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22354 $as_echo "$as_me: executing $ac_file commands" >&6;}
22356 esac
22359 case $ac_file$ac_mode in
22360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22361 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22362 # are listed without --file. Let's play safe and only enable the eval
22363 # if we detect the quoting.
22364 case $CONFIG_FILES in
22365 *\'*) eval set x "$CONFIG_FILES" ;;
22366 *) set x $CONFIG_FILES ;;
22367 esac
22368 shift
22369 for mf
22371 # Strip MF so we end up with the name of the file.
22372 mf=`echo "$mf" | sed -e 's/:.*$//'`
22373 # Check whether this is an Automake generated Makefile or not.
22374 # We used to match only the files named `Makefile.in', but
22375 # some people rename them; so instead we look at the file content.
22376 # Grep'ing the first line is not enough: some people post-process
22377 # each Makefile.in and add a new line on top of each file to say so.
22378 # Grep'ing the whole file is not good either: AIX grep has a line
22379 # limit of 2048, but all sed's we know have understand at least 4000.
22380 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22381 dirpart=`$as_dirname -- "$mf" ||
22382 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22383 X"$mf" : 'X\(//\)[^/]' \| \
22384 X"$mf" : 'X\(//\)$' \| \
22385 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22386 $as_echo X"$mf" |
22387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22388 s//\1/
22391 /^X\(\/\/\)[^/].*/{
22392 s//\1/
22395 /^X\(\/\/\)$/{
22396 s//\1/
22399 /^X\(\/\).*/{
22400 s//\1/
22403 s/.*/./; q'`
22404 else
22405 continue
22407 # Extract the definition of DEPDIR, am__include, and am__quote
22408 # from the Makefile without running `make'.
22409 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22410 test -z "$DEPDIR" && continue
22411 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22412 test -z "am__include" && continue
22413 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22414 # When using ansi2knr, U may be empty or an underscore; expand it
22415 U=`sed -n 's/^U = //p' < "$mf"`
22416 # Find all dependency output files, they are included files with
22417 # $(DEPDIR) in their names. We invoke sed twice because it is the
22418 # simplest approach to changing $(DEPDIR) to its actual value in the
22419 # expansion.
22420 for file in `sed -n "
22421 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22422 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22423 # Make sure the directory exists.
22424 test -f "$dirpart/$file" && continue
22425 fdir=`$as_dirname -- "$file" ||
22426 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22427 X"$file" : 'X\(//\)[^/]' \| \
22428 X"$file" : 'X\(//\)$' \| \
22429 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22430 $as_echo X"$file" |
22431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22432 s//\1/
22435 /^X\(\/\/\)[^/].*/{
22436 s//\1/
22439 /^X\(\/\/\)$/{
22440 s//\1/
22443 /^X\(\/\).*/{
22444 s//\1/
22447 s/.*/./; q'`
22448 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22449 # echo "creating $dirpart/$file"
22450 echo '# dummy' > "$dirpart/$file"
22451 done
22452 done
22455 "mkdirs":C)
22456 for dir in etc lisp ; do
22457 test -d ${dir} || mkdir ${dir}
22458 done
22460 "epaths":C)
22461 echo creating src/epaths.h
22462 ${MAKE-make} epaths-force
22464 "gdbinit":C)
22465 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
22466 echo creating src/.gdbinit
22467 echo source $srcdir/src/.gdbinit > src/.gdbinit
22471 esac
22472 done # for ac_tag
22475 as_fn_exit 0
22476 _ACEOF
22477 ac_clean_files=$ac_clean_files_save
22479 test $ac_write_fail = 0 ||
22480 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22483 # configure is writing to config.log, and then calls config.status.
22484 # config.status does its own redirection, appending to config.log.
22485 # Unfortunately, on DOS this fails, as config.log is still kept open
22486 # by configure, so config.status won't be able to write to it; its
22487 # output is simply discarded. So we exec the FD to /dev/null,
22488 # effectively closing config.log, so it can be properly (re)opened and
22489 # appended to by config.status. When coming back to configure, we
22490 # need to make the FD available again.
22491 if test "$no_create" != yes; then
22492 ac_cs_success=:
22493 ac_config_status_args=
22494 test "$silent" = yes &&
22495 ac_config_status_args="$ac_config_status_args --quiet"
22496 exec 5>/dev/null
22497 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22498 exec 5>>config.log
22499 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22500 # would make configure fail if this is the last instruction.
22501 $ac_cs_success || as_fn_exit $?
22503 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22505 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}