lib/makefile.w32-in: Adapt to changes in 2011-04-06T05:19:39Z!eggert@cs.ucla.edu.
[emacs.git] / autogen / configure
blob563c729f18e89f830fa64c0b44dfa9f395195468
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 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 LIBGNU_LTLIBDEPS
662 LIBGNU_LIBDEPS
663 gltests_WITNESS
664 HAVE_UNISTD_H
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
666 NEXT_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 NEXT_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
673 NEXT_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
675 NEXT_STDLIB_H
676 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
677 NEXT_STDIO_H
678 REPLACE_VSPRINTF
679 REPLACE_VSNPRINTF
680 REPLACE_VPRINTF
681 REPLACE_VFPRINTF
682 REPLACE_VDPRINTF
683 REPLACE_VASPRINTF
684 REPLACE_TMPFILE
685 REPLACE_STDIO_WRITE_FUNCS
686 REPLACE_SPRINTF
687 REPLACE_SNPRINTF
688 REPLACE_RENAMEAT
689 REPLACE_RENAME
690 REPLACE_REMOVE
691 REPLACE_PRINTF
692 REPLACE_POPEN
693 REPLACE_PERROR
694 REPLACE_OBSTACK_PRINTF
695 REPLACE_GETLINE
696 REPLACE_GETDELIM
697 REPLACE_FTELLO
698 REPLACE_FTELL
699 REPLACE_FSEEKO
700 REPLACE_FSEEK
701 REPLACE_FREOPEN
702 REPLACE_FPURGE
703 REPLACE_FPRINTF
704 REPLACE_FOPEN
705 REPLACE_FFLUSH
706 REPLACE_FCLOSE
707 REPLACE_DPRINTF
708 HAVE_VDPRINTF
709 HAVE_VASPRINTF
710 HAVE_RENAMEAT
711 HAVE_FTELLO
712 HAVE_FSEEKO
713 HAVE_DPRINTF
714 HAVE_DECL_VSNPRINTF
715 HAVE_DECL_SNPRINTF
716 HAVE_DECL_OBSTACK_PRINTF
717 HAVE_DECL_GETLINE
718 HAVE_DECL_GETDELIM
719 HAVE_DECL_FTELLO
720 HAVE_DECL_FSEEKO
721 HAVE_DECL_FPURGE
722 GNULIB_VSPRINTF_POSIX
723 GNULIB_VSNPRINTF
724 GNULIB_VPRINTF_POSIX
725 GNULIB_VPRINTF
726 GNULIB_VFPRINTF_POSIX
727 GNULIB_VFPRINTF
728 GNULIB_VDPRINTF
729 GNULIB_VASPRINTF
730 GNULIB_TMPFILE
731 GNULIB_STDIO_H_SIGPIPE
732 GNULIB_SPRINTF_POSIX
733 GNULIB_SNPRINTF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
746 GNULIB_GETLINE
747 GNULIB_GETDELIM
748 GNULIB_FWRITE
749 GNULIB_FTELLO
750 GNULIB_FTELL
751 GNULIB_FSEEKO
752 GNULIB_FSEEK
753 GNULIB_FREOPEN
754 GNULIB_FPUTS
755 GNULIB_FPUTC
756 GNULIB_FPURGE
757 GNULIB_FPRINTF_POSIX
758 GNULIB_FPRINTF
759 GNULIB_FOPEN
760 GNULIB_FFLUSH
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 GL_GENERATE_STDINT_H_FALSE
764 GL_GENERATE_STDINT_H_TRUE
765 STDINT_H
766 WINT_T_SUFFIX
767 WCHAR_T_SUFFIX
768 SIG_ATOMIC_T_SUFFIX
769 SIZE_T_SUFFIX
770 PTRDIFF_T_SUFFIX
771 HAVE_SIGNED_WINT_T
772 HAVE_SIGNED_WCHAR_T
773 HAVE_SIGNED_SIG_ATOMIC_T
774 BITSIZEOF_WINT_T
775 BITSIZEOF_WCHAR_T
776 BITSIZEOF_SIG_ATOMIC_T
777 BITSIZEOF_SIZE_T
778 BITSIZEOF_PTRDIFF_T
779 HAVE_SYS_BITYPES_H
780 HAVE_SYS_INTTYPES_H
781 HAVE_STDINT_H
782 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
783 NEXT_STDINT_H
784 HAVE_SYS_TYPES_H
785 HAVE_INTTYPES_H
786 HAVE_WCHAR_H
787 HAVE_UNSIGNED_LONG_LONG_INT
788 HAVE_LONG_LONG_INT
789 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
790 NEXT_STDDEF_H
791 GL_GENERATE_STDDEF_H_FALSE
792 GL_GENERATE_STDDEF_H_TRUE
793 STDDEF_H
794 HAVE_WCHAR_T
795 REPLACE_NULL
796 HAVE__BOOL
797 GL_GENERATE_STDBOOL_H_FALSE
798 GL_GENERATE_STDBOOL_H_TRUE
799 STDBOOL_H
800 APPLE_UNIVERSAL_BUILD
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 LTLIBINTL
847 LIBINTL
848 GETOPT_H
849 HAVE_GETOPT_H
850 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
851 NEXT_GETOPT_H
852 PRAGMA_COLUMNS
853 PRAGMA_SYSTEM_HEADER
854 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
855 INCLUDE_NEXT
856 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
857 UNISTD_H_HAVE_WINSOCK2_H
858 REPLACE_WRITE
859 REPLACE_USLEEP
860 REPLACE_UNLINKAT
861 REPLACE_UNLINK
862 REPLACE_TTYNAME_R
863 REPLACE_SYMLINK
864 REPLACE_SLEEP
865 REPLACE_RMDIR
866 REPLACE_READLINK
867 REPLACE_PWRITE
868 REPLACE_PREAD
869 REPLACE_LSEEK
870 REPLACE_LINKAT
871 REPLACE_LINK
872 REPLACE_LCHOWN
873 REPLACE_GETPAGESIZE
874 REPLACE_GETGROUPS
875 REPLACE_GETLOGIN_R
876 REPLACE_GETDOMAINNAME
877 REPLACE_GETCWD
878 REPLACE_FCHOWNAT
879 REPLACE_DUP2
880 REPLACE_DUP
881 REPLACE_CLOSE
882 REPLACE_CHOWN
883 HAVE_SYS_PARAM_H
884 HAVE_OS_H
885 HAVE_DECL_TTYNAME_R
886 HAVE_DECL_GETUSERSHELL
887 HAVE_DECL_GETPAGESIZE
888 HAVE_DECL_GETLOGIN_R
889 HAVE_DECL_GETDOMAINNAME
890 HAVE_DECL_FCHDIR
891 HAVE_DECL_ENVIRON
892 HAVE_USLEEP
893 HAVE_UNLINKAT
894 HAVE_SYMLINKAT
895 HAVE_SYMLINK
896 HAVE_SLEEP
897 HAVE_READLINKAT
898 HAVE_READLINK
899 HAVE_PWRITE
900 HAVE_PREAD
901 HAVE_PIPE2
902 HAVE_PIPE
903 HAVE_LINKAT
904 HAVE_LINK
905 HAVE_LCHOWN
906 HAVE_GETPAGESIZE
907 HAVE_GETLOGIN
908 HAVE_GETHOSTNAME
909 HAVE_GETGROUPS
910 HAVE_GETDTABLESIZE
911 HAVE_FTRUNCATE
912 HAVE_FSYNC
913 HAVE_FCHOWNAT
914 HAVE_FCHDIR
915 HAVE_FACCESSAT
916 HAVE_EUIDACCESS
917 HAVE_DUP3
918 HAVE_DUP2
919 HAVE_CHOWN
920 GNULIB_WRITE
921 GNULIB_USLEEP
922 GNULIB_UNLINKAT
923 GNULIB_UNLINK
924 GNULIB_UNISTD_H_SIGPIPE
925 GNULIB_UNISTD_H_GETOPT
926 GNULIB_TTYNAME_R
927 GNULIB_SYMLINKAT
928 GNULIB_SYMLINK
929 GNULIB_SLEEP
930 GNULIB_RMDIR
931 GNULIB_READLINKAT
932 GNULIB_READLINK
933 GNULIB_PWRITE
934 GNULIB_PREAD
935 GNULIB_PIPE2
936 GNULIB_PIPE
937 GNULIB_LSEEK
938 GNULIB_LINKAT
939 GNULIB_LINK
940 GNULIB_LCHOWN
941 GNULIB_GETUSERSHELL
942 GNULIB_GETPAGESIZE
943 GNULIB_GETLOGIN_R
944 GNULIB_GETLOGIN
945 GNULIB_GETHOSTNAME
946 GNULIB_GETGROUPS
947 GNULIB_GETDTABLESIZE
948 GNULIB_GETDOMAINNAME
949 GNULIB_GETCWD
950 GNULIB_FTRUNCATE
951 GNULIB_FSYNC
952 GNULIB_FCHOWNAT
953 GNULIB_FCHDIR
954 GNULIB_FACCESSAT
955 GNULIB_EUIDACCESS
956 GNULIB_ENVIRON
957 GNULIB_DUP3
958 GNULIB_DUP2
959 GNULIB_CLOSE
960 GNULIB_CHOWN
961 GETLOADAVG_LIBS
962 REPLACE_WCTOMB
963 REPLACE_UNSETENV
964 REPLACE_STRTOD
965 REPLACE_SETENV
966 REPLACE_REALPATH
967 REPLACE_REALLOC
968 REPLACE_PUTENV
969 REPLACE_MKSTEMP
970 REPLACE_MBTOWC
971 REPLACE_MALLOC
972 REPLACE_CANONICALIZE_FILE_NAME
973 REPLACE_CALLOC
974 HAVE_DECL_UNSETENV
975 HAVE_UNLOCKPT
976 HAVE_SYS_LOADAVG_H
977 HAVE_STRUCT_RANDOM_DATA
978 HAVE_STRTOULL
979 HAVE_STRTOLL
980 HAVE_STRTOD
981 HAVE_DECL_SETENV
982 HAVE_SETENV
983 HAVE_RPMATCH
984 HAVE_REALPATH
985 HAVE_RANDOM_R
986 HAVE_RANDOM_H
987 HAVE_PTSNAME
988 HAVE_MKSTEMPS
989 HAVE_MKSTEMP
990 HAVE_MKOSTEMPS
991 HAVE_MKOSTEMP
992 HAVE_MKDTEMP
993 HAVE_GRANTPT
994 HAVE_GETSUBOPT
995 HAVE_DECL_GETLOADAVG
996 HAVE_CANONICALIZE_FILE_NAME
997 HAVE_ATOLL
998 HAVE__EXIT
999 GNULIB_WCTOMB
1000 GNULIB_UNSETENV
1001 GNULIB_UNLOCKPT
1002 GNULIB_SYSTEM_POSIX
1003 GNULIB_STRTOULL
1004 GNULIB_STRTOLL
1005 GNULIB_STRTOD
1006 GNULIB_SETENV
1007 GNULIB_RPMATCH
1008 GNULIB_REALPATH
1009 GNULIB_REALLOC_POSIX
1010 GNULIB_RANDOM_R
1011 GNULIB_PUTENV
1012 GNULIB_PTSNAME
1013 GNULIB_MKSTEMPS
1014 GNULIB_MKSTEMP
1015 GNULIB_MKOSTEMPS
1016 GNULIB_MKOSTEMP
1017 GNULIB_MKDTEMP
1018 GNULIB_MBTOWC
1019 GNULIB_MALLOC_POSIX
1020 GNULIB_GRANTPT
1021 GNULIB_GETSUBOPT
1022 GNULIB_GETLOADAVG
1023 GNULIB_CANONICALIZE_FILE_NAME
1024 GNULIB_CALLOC_POSIX
1025 GNULIB_ATOLL
1026 GNULIB__EXIT
1027 GL_COND_LIBTOOL_FALSE
1028 GL_COND_LIBTOOL_TRUE
1029 BLESSMAIL_TARGET
1030 LIBS_MAIL
1031 liblockfile
1032 ALLOCA
1033 LIBXML2_LIBS
1034 LIBXML2_CFLAGS
1035 LIBXSM
1036 LIBGPM
1037 LIBGIF
1038 LIBTIFF
1039 LIBPNG
1040 LIBJPEG
1041 LIBXPM
1042 M17N_FLT_LIBS
1043 M17N_FLT_CFLAGS
1044 LIBOTF_LIBS
1045 LIBOTF_CFLAGS
1046 FREETYPE_LIBS
1047 FREETYPE_CFLAGS
1048 XFT_LIBS
1049 XFT_CFLAGS
1050 FONTCONFIG_LIBS
1051 FONTCONFIG_CFLAGS
1052 LIBXMU
1053 LIBXTR6
1054 LIBGNUTLS_LIBS
1055 LIBGNUTLS_CFLAGS
1056 LIBSELINUX_LIBS
1057 GCONF_LIBS
1058 GCONF_CFLAGS
1059 DBUS_OBJ
1060 DBUS_LIBS
1061 DBUS_CFLAGS
1062 GTK_OBJ
1063 GTK_LIBS
1064 GTK_CFLAGS
1065 IMAGEMAGICK_LIBS
1066 IMAGEMAGICK_CFLAGS
1067 RSVG_LIBS
1068 RSVG_CFLAGS
1069 VMLIMIT_OBJ
1070 GMALLOC_OBJ
1071 HAVE_XSERVER
1072 LIB_STANDARD
1073 NS_SUPPORT
1074 NS_OBJC_OBJ
1075 NS_OBJ
1076 TEMACS_LDFLAGS2
1077 LD_SWITCH_X_SITE_AUX_RPATH
1078 LD_SWITCH_X_SITE_AUX
1079 XMKMF
1080 DEPFLAGS
1081 MKDEPDIR
1082 CFLAGS_SOUND
1083 ALSA_LIBS
1084 ALSA_CFLAGS
1085 PKG_CONFIG
1086 LIBSOUND
1087 START_FILES
1088 LIB_MATH
1089 CRT_DIR
1090 LIBS_SYSTEM
1091 C_SWITCH_SYSTEM
1092 UNEXEC_OBJ
1093 C_SWITCH_MACHINE
1094 LD_SWITCH_SYSTEM
1095 CANNOT_DUMP
1096 HAVE_MAKEINFO
1097 GZIP_PROG
1098 INSTALL_INFO
1099 C_WARNINGS_SWITCH
1100 EGREP
1101 GREP
1103 RANLIB
1104 am__fastdepCC_FALSE
1105 am__fastdepCC_TRUE
1106 CCDEPMODE
1107 AMDEPBACKSLASH
1108 AMDEP_FALSE
1109 AMDEP_TRUE
1110 am__quote
1111 am__include
1112 DEPDIR
1113 OBJEXT
1114 EXEEXT
1115 ac_ct_CC
1116 CPPFLAGS
1117 LDFLAGS
1118 CFLAGS
1120 host_os
1121 host_vendor
1122 host_cpu
1123 host
1124 build_os
1125 build_vendor
1126 build_cpu
1127 build
1128 PROFILING_CFLAGS
1129 MAINT
1130 GZIP_INFO
1131 am__untar
1132 am__tar
1133 AMTAR
1134 am__leading_dot
1135 SET_MAKE
1137 mkdir_p
1138 MKDIR_P
1139 INSTALL_STRIP_PROGRAM
1140 STRIP
1141 install_sh
1142 MAKEINFO
1143 AUTOHEADER
1144 AUTOMAKE
1145 AUTOCONF
1146 ACLOCAL
1147 VERSION
1148 PACKAGE
1149 CYGPATH_W
1150 am__isrc
1151 INSTALL_DATA
1152 INSTALL_SCRIPT
1153 INSTALL_PROGRAM
1154 target_alias
1155 host_alias
1156 build_alias
1157 LIBS
1158 ECHO_T
1159 ECHO_N
1160 ECHO_C
1161 DEFS
1162 mandir
1163 localedir
1164 libdir
1165 psdir
1166 pdfdir
1167 dvidir
1168 htmldir
1169 infodir
1170 docdir
1171 oldincludedir
1172 includedir
1173 localstatedir
1174 sharedstatedir
1175 sysconfdir
1176 datadir
1177 datarootdir
1178 libexecdir
1179 sbindir
1180 bindir
1181 program_transform_name
1182 prefix
1183 exec_prefix
1184 PACKAGE_URL
1185 PACKAGE_BUGREPORT
1186 PACKAGE_STRING
1187 PACKAGE_VERSION
1188 PACKAGE_TARNAME
1189 PACKAGE_NAME
1190 PATH_SEPARATOR
1191 SHELL'
1192 ac_subst_files='deps_frag
1193 ns_frag'
1194 ac_user_opts='
1195 enable_option_checking
1196 with_pop
1197 with_kerberos
1198 with_kerberos5
1199 with_hesiod
1200 with_mmdf
1201 with_mail_unlink
1202 with_mailhost
1203 with_sound
1204 with_sync_input
1205 with_x_toolkit
1206 with_xpm
1207 with_jpeg
1208 with_tiff
1209 with_gif
1210 with_png
1211 with_rsvg
1212 with_xml2
1213 with_imagemagick
1214 with_xft
1215 with_libotf
1216 with_m17n_flt
1217 with_toolkit_scroll_bars
1218 with_xaw3d
1219 with_xim
1220 with_ns
1221 with_gpm
1222 with_dbus
1223 with_gconf
1224 with_selinux
1225 with_gnutls
1226 with_makeinfo
1227 with_compress_info
1228 with_pkg_config_prog
1229 with_crt_dir
1230 with_gameuser
1231 with_gnustep_conf
1232 enable_ns_self_contained
1233 enable_asserts
1234 enable_maintainer_mode
1235 enable_locallisppath
1236 enable_checking
1237 enable_use_lisp_union_type
1238 enable_profiling
1239 enable_autodepend
1240 enable_dependency_tracking
1241 enable_largefile
1242 with_x
1244 ac_precious_vars='build_alias
1245 host_alias
1246 target_alias
1248 CFLAGS
1249 LDFLAGS
1250 LIBS
1251 CPPFLAGS
1253 XMKMF'
1256 # Initialize some variables set by options.
1257 ac_init_help=
1258 ac_init_version=false
1259 ac_unrecognized_opts=
1260 ac_unrecognized_sep=
1261 # The variables have the same names as the options, with
1262 # dashes changed to underlines.
1263 cache_file=/dev/null
1264 exec_prefix=NONE
1265 no_create=
1266 no_recursion=
1267 prefix=NONE
1268 program_prefix=NONE
1269 program_suffix=NONE
1270 program_transform_name=s,x,x,
1271 silent=
1272 site=
1273 srcdir=
1274 verbose=
1275 x_includes=NONE
1276 x_libraries=NONE
1278 # Installation directory options.
1279 # These are left unexpanded so users can "make install exec_prefix=/foo"
1280 # and all the variables that are supposed to be based on exec_prefix
1281 # by default will actually change.
1282 # Use braces instead of parens because sh, perl, etc. also accept them.
1283 # (The list follows the same order as the GNU Coding Standards.)
1284 bindir='${exec_prefix}/bin'
1285 sbindir='${exec_prefix}/sbin'
1286 libexecdir='${exec_prefix}/libexec'
1287 datarootdir='${prefix}/share'
1288 datadir='${datarootdir}'
1289 sysconfdir='${prefix}/etc'
1290 sharedstatedir='${prefix}/com'
1291 localstatedir='${prefix}/var'
1292 includedir='${prefix}/include'
1293 oldincludedir='/usr/include'
1294 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1295 infodir='${datarootdir}/info'
1296 htmldir='${docdir}'
1297 dvidir='${docdir}'
1298 pdfdir='${docdir}'
1299 psdir='${docdir}'
1300 libdir='${exec_prefix}/lib'
1301 localedir='${datarootdir}/locale'
1302 mandir='${datarootdir}/man'
1304 ac_prev=
1305 ac_dashdash=
1306 for ac_option
1308 # If the previous option needs an argument, assign it.
1309 if test -n "$ac_prev"; then
1310 eval $ac_prev=\$ac_option
1311 ac_prev=
1312 continue
1315 case $ac_option in
1316 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1317 *) ac_optarg=yes ;;
1318 esac
1320 # Accept the important Cygnus configure options, so we can diagnose typos.
1322 case $ac_dashdash$ac_option in
1324 ac_dashdash=yes ;;
1326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1327 ac_prev=bindir ;;
1328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1329 bindir=$ac_optarg ;;
1331 -build | --build | --buil | --bui | --bu)
1332 ac_prev=build_alias ;;
1333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1334 build_alias=$ac_optarg ;;
1336 -cache-file | --cache-file | --cache-fil | --cache-fi \
1337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1338 ac_prev=cache_file ;;
1339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1341 cache_file=$ac_optarg ;;
1343 --config-cache | -C)
1344 cache_file=config.cache ;;
1346 -datadir | --datadir | --datadi | --datad)
1347 ac_prev=datadir ;;
1348 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1349 datadir=$ac_optarg ;;
1351 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1352 | --dataroo | --dataro | --datar)
1353 ac_prev=datarootdir ;;
1354 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1355 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1356 datarootdir=$ac_optarg ;;
1358 -disable-* | --disable-*)
1359 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362 as_fn_error "invalid feature name: $ac_useropt"
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1367 "enable_$ac_useropt"
1368 "*) ;;
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1371 esac
1372 eval enable_$ac_useropt=no ;;
1374 -docdir | --docdir | --docdi | --doc | --do)
1375 ac_prev=docdir ;;
1376 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1377 docdir=$ac_optarg ;;
1379 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1380 ac_prev=dvidir ;;
1381 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1382 dvidir=$ac_optarg ;;
1384 -enable-* | --enable-*)
1385 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388 as_fn_error "invalid feature name: $ac_useropt"
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1393 "enable_$ac_useropt"
1394 "*) ;;
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1397 esac
1398 eval enable_$ac_useropt=\$ac_optarg ;;
1400 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1401 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1402 | --exec | --exe | --ex)
1403 ac_prev=exec_prefix ;;
1404 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1405 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1406 | --exec=* | --exe=* | --ex=*)
1407 exec_prefix=$ac_optarg ;;
1409 -gas | --gas | --ga | --g)
1410 # Obsolete; use --with-gas.
1411 with_gas=yes ;;
1413 -help | --help | --hel | --he | -h)
1414 ac_init_help=long ;;
1415 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1416 ac_init_help=recursive ;;
1417 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1418 ac_init_help=short ;;
1420 -host | --host | --hos | --ho)
1421 ac_prev=host_alias ;;
1422 -host=* | --host=* | --hos=* | --ho=*)
1423 host_alias=$ac_optarg ;;
1425 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1426 ac_prev=htmldir ;;
1427 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1428 | --ht=*)
1429 htmldir=$ac_optarg ;;
1431 -includedir | --includedir | --includedi | --included | --include \
1432 | --includ | --inclu | --incl | --inc)
1433 ac_prev=includedir ;;
1434 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1435 | --includ=* | --inclu=* | --incl=* | --inc=*)
1436 includedir=$ac_optarg ;;
1438 -infodir | --infodir | --infodi | --infod | --info | --inf)
1439 ac_prev=infodir ;;
1440 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1441 infodir=$ac_optarg ;;
1443 -libdir | --libdir | --libdi | --libd)
1444 ac_prev=libdir ;;
1445 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1446 libdir=$ac_optarg ;;
1448 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1449 | --libexe | --libex | --libe)
1450 ac_prev=libexecdir ;;
1451 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1452 | --libexe=* | --libex=* | --libe=*)
1453 libexecdir=$ac_optarg ;;
1455 -localedir | --localedir | --localedi | --localed | --locale)
1456 ac_prev=localedir ;;
1457 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1458 localedir=$ac_optarg ;;
1460 -localstatedir | --localstatedir | --localstatedi | --localstated \
1461 | --localstate | --localstat | --localsta | --localst | --locals)
1462 ac_prev=localstatedir ;;
1463 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1464 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1465 localstatedir=$ac_optarg ;;
1467 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1468 ac_prev=mandir ;;
1469 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1470 mandir=$ac_optarg ;;
1472 -nfp | --nfp | --nf)
1473 # Obsolete; use --without-fp.
1474 with_fp=no ;;
1476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1477 | --no-cr | --no-c | -n)
1478 no_create=yes ;;
1480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1482 no_recursion=yes ;;
1484 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1485 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1486 | --oldin | --oldi | --old | --ol | --o)
1487 ac_prev=oldincludedir ;;
1488 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1489 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1490 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1491 oldincludedir=$ac_optarg ;;
1493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1494 ac_prev=prefix ;;
1495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1496 prefix=$ac_optarg ;;
1498 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1499 | --program-pre | --program-pr | --program-p)
1500 ac_prev=program_prefix ;;
1501 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1502 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1503 program_prefix=$ac_optarg ;;
1505 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1506 | --program-suf | --program-su | --program-s)
1507 ac_prev=program_suffix ;;
1508 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1509 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1510 program_suffix=$ac_optarg ;;
1512 -program-transform-name | --program-transform-name \
1513 | --program-transform-nam | --program-transform-na \
1514 | --program-transform-n | --program-transform- \
1515 | --program-transform | --program-transfor \
1516 | --program-transfo | --program-transf \
1517 | --program-trans | --program-tran \
1518 | --progr-tra | --program-tr | --program-t)
1519 ac_prev=program_transform_name ;;
1520 -program-transform-name=* | --program-transform-name=* \
1521 | --program-transform-nam=* | --program-transform-na=* \
1522 | --program-transform-n=* | --program-transform-=* \
1523 | --program-transform=* | --program-transfor=* \
1524 | --program-transfo=* | --program-transf=* \
1525 | --program-trans=* | --program-tran=* \
1526 | --progr-tra=* | --program-tr=* | --program-t=*)
1527 program_transform_name=$ac_optarg ;;
1529 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1530 ac_prev=pdfdir ;;
1531 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1532 pdfdir=$ac_optarg ;;
1534 -psdir | --psdir | --psdi | --psd | --ps)
1535 ac_prev=psdir ;;
1536 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1537 psdir=$ac_optarg ;;
1539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1540 | -silent | --silent | --silen | --sile | --sil)
1541 silent=yes ;;
1543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1544 ac_prev=sbindir ;;
1545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1546 | --sbi=* | --sb=*)
1547 sbindir=$ac_optarg ;;
1549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1551 | --sharedst | --shareds | --shared | --share | --shar \
1552 | --sha | --sh)
1553 ac_prev=sharedstatedir ;;
1554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1557 | --sha=* | --sh=*)
1558 sharedstatedir=$ac_optarg ;;
1560 -site | --site | --sit)
1561 ac_prev=site ;;
1562 -site=* | --site=* | --sit=*)
1563 site=$ac_optarg ;;
1565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1566 ac_prev=srcdir ;;
1567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1568 srcdir=$ac_optarg ;;
1570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1571 | --syscon | --sysco | --sysc | --sys | --sy)
1572 ac_prev=sysconfdir ;;
1573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1575 sysconfdir=$ac_optarg ;;
1577 -target | --target | --targe | --targ | --tar | --ta | --t)
1578 ac_prev=target_alias ;;
1579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1580 target_alias=$ac_optarg ;;
1582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1583 verbose=yes ;;
1585 -version | --version | --versio | --versi | --vers | -V)
1586 ac_init_version=: ;;
1588 -with-* | --with-*)
1589 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592 as_fn_error "invalid package name: $ac_useropt"
1593 ac_useropt_orig=$ac_useropt
1594 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1597 "with_$ac_useropt"
1598 "*) ;;
1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1600 ac_unrecognized_sep=', ';;
1601 esac
1602 eval with_$ac_useropt=\$ac_optarg ;;
1604 -without-* | --without-*)
1605 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1606 # Reject names that are not valid shell variable names.
1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1608 as_fn_error "invalid package name: $ac_useropt"
1609 ac_useropt_orig=$ac_useropt
1610 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611 case $ac_user_opts in
1613 "with_$ac_useropt"
1614 "*) ;;
1615 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1616 ac_unrecognized_sep=', ';;
1617 esac
1618 eval with_$ac_useropt=no ;;
1620 --x)
1621 # Obsolete; use --with-x.
1622 with_x=yes ;;
1624 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1625 | --x-incl | --x-inc | --x-in | --x-i)
1626 ac_prev=x_includes ;;
1627 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1628 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1629 x_includes=$ac_optarg ;;
1631 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1632 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1633 ac_prev=x_libraries ;;
1634 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1635 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1636 x_libraries=$ac_optarg ;;
1638 -*) as_fn_error "unrecognized option: \`$ac_option'
1639 Try \`$0 --help' for more information."
1642 *=*)
1643 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1644 # Reject names that are not valid shell variable names.
1645 case $ac_envvar in #(
1646 '' | [0-9]* | *[!_$as_cr_alnum]* )
1647 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1648 esac
1649 eval $ac_envvar=\$ac_optarg
1650 export $ac_envvar ;;
1653 # FIXME: should be removed in autoconf 3.0.
1654 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1655 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1656 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1657 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1660 esac
1661 done
1663 if test -n "$ac_prev"; then
1664 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1665 as_fn_error "missing argument to $ac_option"
1668 if test -n "$ac_unrecognized_opts"; then
1669 case $enable_option_checking in
1670 no) ;;
1671 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1672 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1673 esac
1676 # Check all directory arguments for consistency.
1677 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1678 datadir sysconfdir sharedstatedir localstatedir includedir \
1679 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1680 libdir localedir mandir
1682 eval ac_val=\$$ac_var
1683 # Remove trailing slashes.
1684 case $ac_val in
1685 */ )
1686 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1687 eval $ac_var=\$ac_val;;
1688 esac
1689 # Be sure to have absolute directory names.
1690 case $ac_val in
1691 [\\/$]* | ?:[\\/]* ) continue;;
1692 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1693 esac
1694 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1695 done
1697 # There might be people who depend on the old broken behavior: `$host'
1698 # used to hold the argument of --host etc.
1699 # FIXME: To remove some day.
1700 build=$build_alias
1701 host=$host_alias
1702 target=$target_alias
1704 # FIXME: To remove some day.
1705 if test "x$host_alias" != x; then
1706 if test "x$build_alias" = x; then
1707 cross_compiling=maybe
1708 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1709 If a cross compiler is detected then cross compile mode will be used." >&2
1710 elif test "x$build_alias" != "x$host_alias"; then
1711 cross_compiling=yes
1715 ac_tool_prefix=
1716 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1718 test "$silent" = yes && exec 6>/dev/null
1721 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1722 ac_ls_di=`ls -di .` &&
1723 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1724 as_fn_error "working directory cannot be determined"
1725 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1726 as_fn_error "pwd does not report name of working directory"
1729 # Find the source files, if location was not specified.
1730 if test -z "$srcdir"; then
1731 ac_srcdir_defaulted=yes
1732 # Try the directory containing this script, then the parent directory.
1733 ac_confdir=`$as_dirname -- "$as_myself" ||
1734 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1735 X"$as_myself" : 'X\(//\)[^/]' \| \
1736 X"$as_myself" : 'X\(//\)$' \| \
1737 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1738 $as_echo X"$as_myself" |
1739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1740 s//\1/
1743 /^X\(\/\/\)[^/].*/{
1744 s//\1/
1747 /^X\(\/\/\)$/{
1748 s//\1/
1751 /^X\(\/\).*/{
1752 s//\1/
1755 s/.*/./; q'`
1756 srcdir=$ac_confdir
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1758 srcdir=..
1760 else
1761 ac_srcdir_defaulted=no
1763 if test ! -r "$srcdir/$ac_unique_file"; then
1764 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1765 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1767 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1768 ac_abs_confdir=`(
1769 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1770 pwd)`
1771 # When building in place, set srcdir=.
1772 if test "$ac_abs_confdir" = "$ac_pwd"; then
1773 srcdir=.
1775 # Remove unnecessary trailing slashes from srcdir.
1776 # Double slashes in file names in object file debugging info
1777 # mess up M-x gdb in Emacs.
1778 case $srcdir in
1779 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1780 esac
1781 for ac_var in $ac_precious_vars; do
1782 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1783 eval ac_env_${ac_var}_value=\$${ac_var}
1784 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1785 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1786 done
1789 # Report the --help message.
1791 if test "$ac_init_help" = "long"; then
1792 # Omit some internal or obsolete options to make the list less imposing.
1793 # This message is too long to be a string in the A/UX 3.1 sh.
1794 cat <<_ACEOF
1795 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1797 Usage: $0 [OPTION]... [VAR=VALUE]...
1799 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1800 VAR=VALUE. See below for descriptions of some of the useful variables.
1802 Defaults for the options are specified in brackets.
1804 Configuration:
1805 -h, --help display this help and exit
1806 --help=short display options specific to this package
1807 --help=recursive display the short help of all the included packages
1808 -V, --version display version information and exit
1809 -q, --quiet, --silent do not print \`checking...' messages
1810 --cache-file=FILE cache test results in FILE [disabled]
1811 -C, --config-cache alias for \`--cache-file=config.cache'
1812 -n, --no-create do not create output files
1813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1815 Installation directories:
1816 --prefix=PREFIX install architecture-independent files in PREFIX
1817 [$ac_default_prefix]
1818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1819 [PREFIX]
1821 By default, \`make install' will install all the files in
1822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1824 for instance \`--prefix=\$HOME'.
1826 For better control, use the options below.
1828 Fine tuning of the installation directories:
1829 --bindir=DIR user executables [EPREFIX/bin]
1830 --sbindir=DIR system admin executables [EPREFIX/sbin]
1831 --libexecdir=DIR program executables [EPREFIX/libexec]
1832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1835 --libdir=DIR object code libraries [EPREFIX/lib]
1836 --includedir=DIR C header files [PREFIX/include]
1837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1838 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1839 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1840 --infodir=DIR info documentation [DATAROOTDIR/info]
1841 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1842 --mandir=DIR man documentation [DATAROOTDIR/man]
1843 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1844 --htmldir=DIR html documentation [DOCDIR]
1845 --dvidir=DIR dvi documentation [DOCDIR]
1846 --pdfdir=DIR pdf documentation [DOCDIR]
1847 --psdir=DIR ps documentation [DOCDIR]
1848 _ACEOF
1850 cat <<\_ACEOF
1852 Program names:
1853 --program-prefix=PREFIX prepend PREFIX to installed program names
1854 --program-suffix=SUFFIX append SUFFIX to installed program names
1855 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1857 X features:
1858 --x-includes=DIR X include files are in DIR
1859 --x-libraries=DIR X library files are in DIR
1861 System types:
1862 --build=BUILD configure for building on BUILD [guessed]
1863 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1864 _ACEOF
1867 if test -n "$ac_init_help"; then
1868 case $ac_init_help in
1869 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1870 esac
1871 cat <<\_ACEOF
1873 Optional Features:
1874 --disable-option-checking ignore unrecognized --enable/--with options
1875 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1876 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1877 --disable-ns-self-contained
1878 disable self contained build under NeXTstep
1879 --enable-asserts compile code with asserts enabled
1880 --enable-maintainer-mode
1881 enable make rules and dependencies not useful (and
1882 sometimes confusing) to the casual installer
1883 --enable-locallisppath=PATH
1884 directories Emacs should search for lisp files
1885 specific to this site
1886 --enable-checking[=LIST]
1887 enable expensive run-time checks. With LIST, enable
1888 only specific categories of checks. Categories are:
1889 all,yes,no. Flags are: stringbytes, stringoverrun,
1890 stringfreelist, xmallocoverrun, conslist
1891 --enable-use-lisp-union-type
1892 use a union for the Lisp_Object data type. This is
1893 only useful for development for catching certain
1894 types of bugs.
1895 --enable-profiling build emacs with profiling support. This might not
1896 work on all platforms
1897 --enable-autodepend automatically generate dependencies to .h-files.
1898 Requires GNU Make and Gcc. Enabled if GNU Make and
1899 Gcc is found
1900 --disable-dependency-tracking speeds up one-time build
1901 --enable-dependency-tracking do not reject slow dependency extractors
1902 --disable-largefile omit support for large files
1904 Optional Packages:
1905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1907 --without-pop don't support POP mail retrieval with movemail
1908 --with-kerberos support Kerberos-authenticated POP
1909 --with-kerberos5 support Kerberos version 5 authenticated POP
1910 --with-hesiod support Hesiod to get the POP server host
1911 --with-mmdf support MMDF mailboxes
1912 --with-mail-unlink unlink, rather than empty, mail spool after reading
1913 --with-mailhost=HOSTNAME
1914 string giving default POP mail host
1915 --without-sound don't compile with sound support
1916 --without-sync-input process async input synchronously
1917 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1918 lucid or athena, motif, no)
1919 --without-xpm don't compile with XPM image support
1920 --without-jpeg don't compile with JPEG image support
1921 --without-tiff don't compile with TIFF image support
1922 --without-gif don't compile with GIF image support
1923 --without-png don't compile with PNG image support
1924 --without-rsvg don't compile with SVG image support
1925 --without-xml2 don't compile with XML parsing support
1926 --without-imagemagick don't compile with ImageMagick image support
1927 --without-xft don't use XFT for anti aliased fonts
1928 --without-libotf don't use libotf for OpenType font support
1929 --without-m17n-flt don't use m17n-flt for text shaping
1930 --without-toolkit-scroll-bars
1931 don't use Motif or Xaw3d scroll bars
1932 --without-xaw3d don't use Xaw3d
1933 --without-xim don't use X11 XIM
1934 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1935 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1936 console
1937 --without-dbus don't compile with D-Bus support
1938 --without-gconf don't compile with GConf support
1939 --without-selinux don't compile with SELinux support
1940 --without-gnutls don't use -lgnutls for SSL/TLS support
1941 --without-makeinfo don't require makeinfo for building manuals
1942 --without-compress-info don't compress the installed Info pages
1943 --with-pkg-config-prog=PATH
1944 path to pkg-config for finding GTK and librsvg
1945 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1946 /usr/lib, or /usr/lib64 on some platforms.
1947 --with-gameuser=USER user for shared game score files
1948 --with-gnustep-conf=PATH
1949 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1950 or /etc/GNUstep/GNUstep.conf
1951 --with-x use the X Window System
1953 Some influential environment variables:
1954 CC C compiler command
1955 CFLAGS C compiler flags
1956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1957 nonstandard directory <lib dir>
1958 LIBS libraries to pass to the linker, e.g. -l<library>
1959 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1960 you have headers in a nonstandard directory <include dir>
1961 CPP C preprocessor
1962 XMKMF Path to xmkmf, Makefile generator for X Window System
1964 Use these variables to override the choices made by `configure' or to help
1965 it to find libraries and programs with nonstandard names/locations.
1967 Report bugs to the package provider.
1968 _ACEOF
1969 ac_status=$?
1972 if test "$ac_init_help" = "recursive"; then
1973 # If there are subdirs, report their specific --help.
1974 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1975 test -d "$ac_dir" ||
1976 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1977 continue
1978 ac_builddir=.
1980 case "$ac_dir" in
1981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984 # A ".." for each directory in $ac_dir_suffix.
1985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986 case $ac_top_builddir_sub in
1987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1989 esac ;;
1990 esac
1991 ac_abs_top_builddir=$ac_pwd
1992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1993 # for backward compatibility:
1994 ac_top_builddir=$ac_top_build_prefix
1996 case $srcdir in
1997 .) # We are building in place.
1998 ac_srcdir=.
1999 ac_top_srcdir=$ac_top_builddir_sub
2000 ac_abs_top_srcdir=$ac_pwd ;;
2001 [\\/]* | ?:[\\/]* ) # Absolute name.
2002 ac_srcdir=$srcdir$ac_dir_suffix;
2003 ac_top_srcdir=$srcdir
2004 ac_abs_top_srcdir=$srcdir ;;
2005 *) # Relative name.
2006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007 ac_top_srcdir=$ac_top_build_prefix$srcdir
2008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2009 esac
2010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2012 cd "$ac_dir" || { ac_status=$?; continue; }
2013 # Check for guested configure.
2014 if test -f "$ac_srcdir/configure.gnu"; then
2015 echo &&
2016 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017 elif test -f "$ac_srcdir/configure"; then
2018 echo &&
2019 $SHELL "$ac_srcdir/configure" --help=recursive
2020 else
2021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2022 fi || ac_status=$?
2023 cd "$ac_pwd" || { ac_status=$?; break; }
2024 done
2027 test -n "$ac_init_help" && exit $ac_status
2028 if $ac_init_version; then
2029 cat <<\_ACEOF
2030 emacs configure 24.0.50
2031 generated by GNU Autoconf 2.65
2033 Copyright (C) 2009 Free Software Foundation, Inc.
2034 This configure script is free software; the Free Software Foundation
2035 gives unlimited permission to copy, distribute and modify it.
2036 _ACEOF
2037 exit
2040 ## ------------------------ ##
2041 ## Autoconf initialization. ##
2042 ## ------------------------ ##
2044 # ac_fn_c_try_compile LINENO
2045 # --------------------------
2046 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_c_try_compile ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext
2051 if { { ac_try="$ac_compile"
2052 case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_compile") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest.$ac_objext; then :
2070 ac_retval=0
2071 else
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_retval=1
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 as_fn_set_status $ac_retval
2080 } # ac_fn_c_try_compile
2082 # ac_fn_c_try_cpp LINENO
2083 # ----------------------
2084 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085 ac_fn_c_try_cpp ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { { ac_try="$ac_cpp conftest.$ac_ext"
2089 case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092 esac
2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 grep -v '^ *+' conftest.err >conftest.er1
2099 cat conftest.er1 >&5
2100 mv -f conftest.er1 conftest.err
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } >/dev/null && {
2104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2106 }; then :
2107 ac_retval=0
2108 else
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2112 ac_retval=1
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2115 as_fn_set_status $ac_retval
2117 } # ac_fn_c_try_cpp
2119 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # -------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2123 # accordingly.
2124 ac_fn_c_check_header_mongrel ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 else
2137 # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2143 #include <$2>
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_header_compiler=yes
2147 else
2148 ac_header_compiler=no
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152 $as_echo "$ac_header_compiler" >&6; }
2154 # Is the header present?
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156 $as_echo_n "checking $2 presence... " >&6; }
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 #include <$2>
2160 _ACEOF
2161 if ac_fn_c_try_cpp "$LINENO"; then :
2162 ac_header_preproc=yes
2163 else
2164 ac_header_preproc=no
2166 rm -f conftest.err conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168 $as_echo "$ac_header_preproc" >&6; }
2170 # So? What about this header?
2171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2172 yes:no: )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2178 no:yes:* )
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2190 esac
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 eval "$3=\$ac_header_compiler"
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2204 } # ac_fn_c_check_header_mongrel
2206 # ac_fn_c_try_run LINENO
2207 # ----------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2209 # that executables *can* be run.
2210 ac_fn_c_try_run ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>&5
2221 ac_status=$?
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2224 { { case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_try") 2>&5
2231 ac_status=$?
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; }; }; then :
2234 ac_retval=0
2235 else
2236 $as_echo "$as_me: program exited with status $ac_status" >&5
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 ac_retval=$ac_status
2242 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 as_fn_set_status $ac_retval
2246 } # ac_fn_c_try_run
2248 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists and can be compiled using the include files in
2251 # INCLUDES, setting the cache variable VAR accordingly.
2252 ac_fn_c_check_header_compile ()
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2263 #include <$2>
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 eval "$3=yes"
2267 else
2268 eval "$3=no"
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 } # ac_fn_c_check_header_compile
2279 # ac_fn_c_try_link LINENO
2280 # -----------------------
2281 # Try to link conftest.$ac_ext, and return whether this succeeded.
2282 ac_fn_c_try_link ()
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 rm -f conftest.$ac_objext conftest$ac_exeext
2286 if { { ac_try="$ac_link"
2287 case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290 esac
2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292 $as_echo "$ac_try_echo"; } >&5
2293 (eval "$ac_link") 2>conftest.err
2294 ac_status=$?
2295 if test -s conftest.err; then
2296 grep -v '^ *+' conftest.err >conftest.er1
2297 cat conftest.er1 >&5
2298 mv -f conftest.er1 conftest.err
2300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; } && {
2302 test -z "$ac_c_werror_flag" ||
2303 test ! -s conftest.err
2304 } && test -s conftest$ac_exeext && {
2305 test "$cross_compiling" = yes ||
2306 $as_test_x conftest$ac_exeext
2307 }; then :
2308 ac_retval=0
2309 else
2310 $as_echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2313 ac_retval=1
2315 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2316 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2317 # interfere with the next link command; also delete a directory that is
2318 # left behind by Apple's compiler. We do this before executing the actions.
2319 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 as_fn_set_status $ac_retval
2323 } # ac_fn_c_try_link
2325 # ac_fn_c_check_decl LINENO SYMBOL VAR
2326 # ------------------------------------
2327 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2328 ac_fn_c_check_decl ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2332 $as_echo_n "checking whether $2 is declared... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2340 main ()
2342 #ifndef $2
2343 (void) $2;
2344 #endif
2347 return 0;
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351 eval "$3=yes"
2352 else
2353 eval "$3=no"
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 eval ac_res=\$$3
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362 } # ac_fn_c_check_decl
2364 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2365 # ----------------------------------------------
2366 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2367 ac_fn_c_check_header_preproc ()
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2377 #include <$2>
2378 _ACEOF
2379 if ac_fn_c_try_cpp "$LINENO"; then :
2380 eval "$3=yes"
2381 else
2382 eval "$3=no"
2384 rm -f conftest.err conftest.$ac_ext
2386 eval ac_res=\$$3
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 } # ac_fn_c_check_header_preproc
2393 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2394 # ----------------------------------------------------
2395 # Tries to find if the field MEMBER exists in type AGGR, after including
2396 # INCLUDES, setting cache variable VAR accordingly.
2397 ac_fn_c_check_member ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2401 $as_echo_n "checking for $2.$3... " >&6; }
2402 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2409 main ()
2411 static $2 ac_aggr;
2412 if (ac_aggr.$3)
2413 return 0;
2415 return 0;
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419 eval "$4=yes"
2420 else
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2425 main ()
2427 static $2 ac_aggr;
2428 if (sizeof ac_aggr.$3)
2429 return 0;
2431 return 0;
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 eval "$4=yes"
2436 else
2437 eval "$4=no"
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 eval ac_res=\$$4
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2448 } # ac_fn_c_check_member
2450 # ac_fn_c_check_func LINENO FUNC VAR
2451 # ----------------------------------
2452 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2453 ac_fn_c_check_func ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2465 #define $2 innocuous_$2
2467 /* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $2 (); below.
2469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 <limits.h> exists even on freestanding compilers. */
2472 #ifdef __STDC__
2473 # include <limits.h>
2474 #else
2475 # include <assert.h>
2476 #endif
2478 #undef $2
2480 /* Override any GCC internal prototype to avoid an error.
2481 Use char because int might match the return type of a GCC
2482 builtin and then its argument prototype would still apply. */
2483 #ifdef __cplusplus
2484 extern "C"
2485 #endif
2486 char $2 ();
2487 /* The GNU C library defines this for functions which it implements
2488 to always fail with ENOSYS. Some functions are actually named
2489 something starting with __ and the normal name is an alias. */
2490 #if defined __stub_$2 || defined __stub___$2
2491 choke me
2492 #endif
2495 main ()
2497 return $2 ();
2499 return 0;
2501 _ACEOF
2502 if ac_fn_c_try_link "$LINENO"; then :
2503 eval "$3=yes"
2504 else
2505 eval "$3=no"
2507 rm -f core conftest.err conftest.$ac_objext \
2508 conftest$ac_exeext conftest.$ac_ext
2510 eval ac_res=\$$3
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515 } # ac_fn_c_check_func
2517 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2518 # -------------------------------------------
2519 # Tests whether TYPE exists after having included INCLUDES, setting cache
2520 # variable VAR accordingly.
2521 ac_fn_c_check_type ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 eval "$3=no"
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2534 main ()
2536 if (sizeof ($2))
2537 return 0;
2539 return 0;
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2547 main ()
2549 if (sizeof (($2)))
2550 return 0;
2552 return 0;
2554 _ACEOF
2555 if ac_fn_c_try_compile "$LINENO"; then :
2557 else
2558 eval "$3=yes"
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_type
2571 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2572 # --------------------------------------------
2573 # Tries to find the compile-time value of EXPR in a program that includes
2574 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2575 # computed
2576 ac_fn_c_compute_int ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 if test "$cross_compiling" = yes; then
2580 # Depending upon the size, compute the lo and hi bounds.
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2585 main ()
2587 static int test_array [1 - 2 * !(($2) >= 0)];
2588 test_array [0] = 0
2591 return 0;
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595 ac_lo=0 ac_mid=0
2596 while :; do
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2601 main ()
2603 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2604 test_array [0] = 0
2607 return 0;
2609 _ACEOF
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611 ac_hi=$ac_mid; break
2612 else
2613 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2614 if test $ac_lo -le $ac_mid; then
2615 ac_lo= ac_hi=
2616 break
2618 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 done
2622 else
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2627 main ()
2629 static int test_array [1 - 2 * !(($2) < 0)];
2630 test_array [0] = 0
2633 return 0;
2635 _ACEOF
2636 if ac_fn_c_try_compile "$LINENO"; then :
2637 ac_hi=-1 ac_mid=-1
2638 while :; do
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2643 main ()
2645 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2646 test_array [0] = 0
2649 return 0;
2651 _ACEOF
2652 if ac_fn_c_try_compile "$LINENO"; then :
2653 ac_lo=$ac_mid; break
2654 else
2655 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2656 if test $ac_mid -le $ac_hi; then
2657 ac_lo= ac_hi=
2658 break
2660 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 done
2664 else
2665 ac_lo= ac_hi=
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 # Binary search between lo and hi bounds.
2671 while test "x$ac_lo" != "x$ac_hi"; do
2672 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2677 main ()
2679 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2680 test_array [0] = 0
2683 return 0;
2685 _ACEOF
2686 if ac_fn_c_try_compile "$LINENO"; then :
2687 ac_hi=$ac_mid
2688 else
2689 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 done
2693 case $ac_lo in #((
2694 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2695 '') ac_retval=1 ;;
2696 esac
2697 else
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2701 static long int longval () { return $2; }
2702 static unsigned long int ulongval () { return $2; }
2703 #include <stdio.h>
2704 #include <stdlib.h>
2706 main ()
2709 FILE *f = fopen ("conftest.val", "w");
2710 if (! f)
2711 return 1;
2712 if (($2) < 0)
2714 long int i = longval ();
2715 if (i != ($2))
2716 return 1;
2717 fprintf (f, "%ld", i);
2719 else
2721 unsigned long int i = ulongval ();
2722 if (i != ($2))
2723 return 1;
2724 fprintf (f, "%lu", i);
2726 /* Do not output a trailing newline, as this causes \r\n confusion
2727 on some platforms. */
2728 return ferror (f) || fclose (f) != 0;
2731 return 0;
2733 _ACEOF
2734 if ac_fn_c_try_run "$LINENO"; then :
2735 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2736 else
2737 ac_retval=1
2739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2740 conftest.$ac_objext conftest.beam conftest.$ac_ext
2741 rm -f conftest.val
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745 as_fn_set_status $ac_retval
2747 } # ac_fn_c_compute_int
2748 cat >config.log <<_ACEOF
2749 This file contains any messages produced by compilers while
2750 running configure, to aid debugging if configure makes a mistake.
2752 It was created by emacs $as_me 24.0.50, which was
2753 generated by GNU Autoconf 2.65. Invocation command line was
2755 $ $0 $@
2757 _ACEOF
2758 exec 5>>config.log
2760 cat <<_ASUNAME
2761 ## --------- ##
2762 ## Platform. ##
2763 ## --------- ##
2765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2772 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2774 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2775 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2777 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2778 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2779 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2780 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2782 _ASUNAME
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 $as_echo "PATH: $as_dir"
2790 done
2791 IFS=$as_save_IFS
2793 } >&5
2795 cat >&5 <<_ACEOF
2798 ## ----------- ##
2799 ## Core tests. ##
2800 ## ----------- ##
2802 _ACEOF
2805 # Keep a trace of the command line.
2806 # Strip out --no-create and --no-recursion so they do not pile up.
2807 # Strip out --silent because we don't want to record it for future runs.
2808 # Also quote any args containing shell meta-characters.
2809 # Make two passes to allow for proper duplicate-argument suppression.
2810 ac_configure_args=
2811 ac_configure_args0=
2812 ac_configure_args1=
2813 ac_must_keep_next=false
2814 for ac_pass in 1 2
2816 for ac_arg
2818 case $ac_arg in
2819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2821 | -silent | --silent | --silen | --sile | --sil)
2822 continue ;;
2823 *\'*)
2824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2825 esac
2826 case $ac_pass in
2827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2829 as_fn_append ac_configure_args1 " '$ac_arg'"
2830 if test $ac_must_keep_next = true; then
2831 ac_must_keep_next=false # Got value, back to normal.
2832 else
2833 case $ac_arg in
2834 *=* | --config-cache | -C | -disable-* | --disable-* \
2835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2837 | -with-* | --with-* | -without-* | --without-* | --x)
2838 case "$ac_configure_args0 " in
2839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2840 esac
2842 -* ) ac_must_keep_next=true ;;
2843 esac
2845 as_fn_append ac_configure_args " '$ac_arg'"
2847 esac
2848 done
2849 done
2850 { ac_configure_args0=; unset ac_configure_args0;}
2851 { ac_configure_args1=; unset ac_configure_args1;}
2853 # When interrupted or exit'd, cleanup temporary files, and complete
2854 # config.log. We remove comments because anyway the quotes in there
2855 # would cause problems or look ugly.
2856 # WARNING: Use '\'' to represent an apostrophe within the trap.
2857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2858 trap 'exit_status=$?
2859 # Save into config.log some information that might help in debugging.
2861 echo
2863 cat <<\_ASBOX
2864 ## ---------------- ##
2865 ## Cache variables. ##
2866 ## ---------------- ##
2867 _ASBOX
2868 echo
2869 # The following way of writing the cache mishandles newlines in values,
2871 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2872 eval ac_val=\$$ac_var
2873 case $ac_val in #(
2874 *${as_nl}*)
2875 case $ac_var in #(
2876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2878 esac
2879 case $ac_var in #(
2880 _ | IFS | as_nl) ;; #(
2881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2882 *) { eval $ac_var=; unset $ac_var;} ;;
2883 esac ;;
2884 esac
2885 done
2886 (set) 2>&1 |
2887 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2888 *${as_nl}ac_space=\ *)
2889 sed -n \
2890 "s/'\''/'\''\\\\'\'''\''/g;
2891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2892 ;; #(
2894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2896 esac |
2897 sort
2899 echo
2901 cat <<\_ASBOX
2902 ## ----------------- ##
2903 ## Output variables. ##
2904 ## ----------------- ##
2905 _ASBOX
2906 echo
2907 for ac_var in $ac_subst_vars
2909 eval ac_val=\$$ac_var
2910 case $ac_val in
2911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2912 esac
2913 $as_echo "$ac_var='\''$ac_val'\''"
2914 done | sort
2915 echo
2917 if test -n "$ac_subst_files"; then
2918 cat <<\_ASBOX
2919 ## ------------------- ##
2920 ## File substitutions. ##
2921 ## ------------------- ##
2922 _ASBOX
2923 echo
2924 for ac_var in $ac_subst_files
2926 eval ac_val=\$$ac_var
2927 case $ac_val in
2928 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2929 esac
2930 $as_echo "$ac_var='\''$ac_val'\''"
2931 done | sort
2932 echo
2935 if test -s confdefs.h; then
2936 cat <<\_ASBOX
2937 ## ----------- ##
2938 ## confdefs.h. ##
2939 ## ----------- ##
2940 _ASBOX
2941 echo
2942 cat confdefs.h
2943 echo
2945 test "$ac_signal" != 0 &&
2946 $as_echo "$as_me: caught signal $ac_signal"
2947 $as_echo "$as_me: exit $exit_status"
2948 } >&5
2949 rm -f core *.core core.conftest.* &&
2950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2951 exit $exit_status
2953 for ac_signal in 1 2 13 15; do
2954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2955 done
2956 ac_signal=0
2958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2959 rm -f -r conftest* confdefs.h
2961 $as_echo "/* confdefs.h */" > confdefs.h
2963 # Predefined preprocessor variables.
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_NAME "$PACKAGE_NAME"
2967 _ACEOF
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2971 _ACEOF
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2975 _ACEOF
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_STRING "$PACKAGE_STRING"
2979 _ACEOF
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2983 _ACEOF
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_URL "$PACKAGE_URL"
2987 _ACEOF
2990 # Let the site file select an alternate cache file if it wants to.
2991 # Prefer an explicitly selected file to automatically selected ones.
2992 ac_site_file1=NONE
2993 ac_site_file2=NONE
2994 if test -n "$CONFIG_SITE"; then
2995 ac_site_file1=$CONFIG_SITE
2996 elif test "x$prefix" != xNONE; then
2997 ac_site_file1=$prefix/share/config.site
2998 ac_site_file2=$prefix/etc/config.site
2999 else
3000 ac_site_file1=$ac_default_prefix/share/config.site
3001 ac_site_file2=$ac_default_prefix/etc/config.site
3003 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3005 test "x$ac_site_file" = xNONE && continue
3006 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3008 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3009 sed 's/^/| /' "$ac_site_file" >&5
3010 . "$ac_site_file"
3012 done
3014 if test -r "$cache_file"; then
3015 # Some versions of bash will fail to source /dev/null (special files
3016 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3017 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3019 $as_echo "$as_me: loading cache $cache_file" >&6;}
3020 case $cache_file in
3021 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3022 *) . "./$cache_file";;
3023 esac
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3027 $as_echo "$as_me: creating cache $cache_file" >&6;}
3028 >$cache_file
3031 as_fn_append ac_header_list " stdlib.h"
3032 as_fn_append ac_header_list " unistd.h"
3033 as_fn_append ac_header_list " sys/param.h"
3034 as_fn_append ac_func_list " readlinkat"
3035 gl_getopt_required=GNU
3036 as_fn_append ac_header_list " getopt.h"
3037 as_fn_append ac_func_list " lstat"
3038 as_fn_append ac_func_list " alarm"
3039 as_fn_append ac_func_list " readlink"
3040 as_fn_append ac_header_list " sys/socket.h"
3041 as_fn_append ac_header_list " wchar.h"
3042 as_fn_append ac_header_list " stdint.h"
3043 as_fn_append ac_func_list " tzset"
3044 as_fn_append ac_func_list " symlink"
3045 as_fn_append ac_header_list " sys/stat.h"
3046 as_fn_append ac_header_list " sys/time.h"
3047 as_fn_append ac_func_list " localtime_r"
3048 # Check that the precious variables saved in the cache have kept the same
3049 # value.
3050 ac_cache_corrupted=false
3051 for ac_var in $ac_precious_vars; do
3052 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3053 eval ac_new_set=\$ac_env_${ac_var}_set
3054 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3055 eval ac_new_val=\$ac_env_${ac_var}_value
3056 case $ac_old_set,$ac_new_set in
3057 set,)
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3059 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3060 ac_cache_corrupted=: ;;
3061 ,set)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3063 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3064 ac_cache_corrupted=: ;;
3065 ,);;
3067 if test "x$ac_old_val" != "x$ac_new_val"; then
3068 # differences in whitespace do not lead to failure.
3069 ac_old_val_w=`echo x $ac_old_val`
3070 ac_new_val_w=`echo x $ac_new_val`
3071 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3073 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3074 ac_cache_corrupted=:
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3077 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3078 eval $ac_var=\$ac_old_val
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3081 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3083 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3084 fi;;
3085 esac
3086 # Pass precious variables to config.status.
3087 if test "$ac_new_set" = set; then
3088 case $ac_new_val in
3089 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3090 *) ac_arg=$ac_var=$ac_new_val ;;
3091 esac
3092 case " $ac_configure_args " in
3093 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3094 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3095 esac
3097 done
3098 if $ac_cache_corrupted; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3102 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3103 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3105 ## -------------------- ##
3106 ## Main body of script. ##
3107 ## -------------------- ##
3109 ac_ext=c
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3119 am__api_version='1.11'
3121 ac_aux_dir=
3122 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3123 for ac_t in install-sh install.sh shtool; do
3124 if test -f "$ac_dir/$ac_t"; then
3125 ac_aux_dir=$ac_dir
3126 ac_install_sh="$ac_aux_dir/$ac_t -c"
3127 break 2
3129 done
3130 done
3131 if test -z "$ac_aux_dir"; then
3132 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3135 # These three variables are undocumented and unsupported,
3136 # and are intended to be withdrawn in a future Autoconf release.
3137 # They can cause serious problems if a builder's source tree is in a directory
3138 # whose full name contains unusual characters.
3139 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3140 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3141 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3144 # Find a good install program. We prefer a C program (faster),
3145 # so one script is as good as another. But avoid the broken or
3146 # incompatible versions:
3147 # SysV /etc/install, /usr/sbin/install
3148 # SunOS /usr/etc/install
3149 # IRIX /sbin/install
3150 # AIX /bin/install
3151 # AmigaOS /C/install, which installs bootblocks on floppy discs
3152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3155 # OS/2's system install, which has a completely different semantic
3156 # ./install, which can be erroneously created by make from ./install.sh.
3157 # Reject install programs that cannot install multiple files.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3160 if test -z "$INSTALL"; then
3161 if test "${ac_cv_path_install+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 # Account for people who put trailing slashes in PATH elements.
3170 case $as_dir/ in #((
3171 ./ | .// | /[cC]/* | \
3172 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3173 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3174 /usr/ucb/* ) ;;
3176 # OSF1 and SCO ODT 3.0 have their own names for install.
3177 # Don't use installbsd from OSF since it installs stuff as root
3178 # by default.
3179 for ac_prog in ginstall scoinst install; do
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3182 if test $ac_prog = install &&
3183 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3184 # AIX install. It has an incompatible calling convention.
3186 elif test $ac_prog = install &&
3187 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3188 # program-specific install script used by HP pwplus--don't use.
3190 else
3191 rm -rf conftest.one conftest.two conftest.dir
3192 echo one > conftest.one
3193 echo two > conftest.two
3194 mkdir conftest.dir
3195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3196 test -s conftest.one && test -s conftest.two &&
3197 test -s conftest.dir/conftest.one &&
3198 test -s conftest.dir/conftest.two
3199 then
3200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3201 break 3
3205 done
3206 done
3208 esac
3210 done
3211 IFS=$as_save_IFS
3213 rm -rf conftest.one conftest.two conftest.dir
3216 if test "${ac_cv_path_install+set}" = set; then
3217 INSTALL=$ac_cv_path_install
3218 else
3219 # As a last resort, use the slow shell script. Don't cache a
3220 # value for INSTALL within a source directory, because that will
3221 # break other packages using the cache if that directory is
3222 # removed, or if the value is a relative name.
3223 INSTALL=$ac_install_sh
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3227 $as_echo "$INSTALL" >&6; }
3229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3230 # It thinks the first close brace ends the variable substitution.
3231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3238 $as_echo_n "checking whether build environment is sane... " >&6; }
3239 # Just in case
3240 sleep 1
3241 echo timestamp > conftest.file
3242 # Reject unsafe characters in $srcdir or the absolute working directory
3243 # name. Accept space and tab only in the latter.
3244 am_lf='
3246 case `pwd` in
3247 *[\\\"\#\$\&\'\`$am_lf]*)
3248 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3249 esac
3250 case $srcdir in
3251 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3252 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3253 esac
3255 # Do `set' in a subshell so we don't clobber the current shell's
3256 # arguments. Must try -L first in case configure is actually a
3257 # symlink; some systems play weird games with the mod time of symlinks
3258 # (eg FreeBSD returns the mod time of the symlink's containing
3259 # directory).
3260 if (
3261 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3262 if test "$*" = "X"; then
3263 # -L didn't work.
3264 set X `ls -t "$srcdir/configure" conftest.file`
3266 rm -f conftest.file
3267 if test "$*" != "X $srcdir/configure conftest.file" \
3268 && test "$*" != "X conftest.file $srcdir/configure"; then
3270 # If neither matched, then we have a broken ls. This can happen
3271 # if, for instance, CONFIG_SHELL is bash and it inherits a
3272 # broken ls alias from the environment. This has actually
3273 # happened. Such a system could not be considered "sane".
3274 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3275 alias in your environment" "$LINENO" 5
3278 test "$2" = conftest.file
3280 then
3281 # Ok.
3283 else
3284 as_fn_error "newly created file is older than distributed files!
3285 Check your system clock" "$LINENO" 5
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 test "$program_prefix" != NONE &&
3290 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3291 # Use a double $ so make ignores it.
3292 test "$program_suffix" != NONE &&
3293 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3294 # Double any \ or $.
3295 # By default was `s,x,x', remove it if useless.
3296 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3297 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3299 # expand $ac_aux_dir to an absolute path
3300 am_aux_dir=`cd $ac_aux_dir && pwd`
3302 if test x"${MISSING+set}" != xset; then
3303 case $am_aux_dir in
3304 *\ * | *\ *)
3305 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3307 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3308 esac
3310 # Use eval to expand $SHELL
3311 if eval "$MISSING --run true"; then
3312 am_missing_run="$MISSING --run "
3313 else
3314 am_missing_run=
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3316 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3319 if test x"${install_sh}" != xset; then
3320 case $am_aux_dir in
3321 *\ * | *\ *)
3322 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3324 install_sh="\${SHELL} $am_aux_dir/install-sh"
3325 esac
3328 # Installed binaries are usually stripped using `strip' when the user
3329 # run `make install-strip'. However `strip' might not be the right
3330 # tool to use in cross-compilation environments, therefore Automake
3331 # will honor the `STRIP' environment variable to overrule this program.
3332 if test "$cross_compiling" != no; then
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}strip; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_STRIP+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$STRIP"; then
3342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3355 done
3356 done
3357 IFS=$as_save_IFS
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3364 $as_echo "$STRIP" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3372 if test -z "$ac_cv_prog_STRIP"; then
3373 ac_ct_STRIP=$STRIP
3374 # Extract the first word of "strip", so it can be a program name with args.
3375 set dummy strip; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$ac_ct_STRIP"; then
3382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_ac_ct_STRIP="strip"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3395 done
3396 done
3397 IFS=$as_save_IFS
3401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3402 if test -n "$ac_ct_STRIP"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3404 $as_echo "$ac_ct_STRIP" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3410 if test "x$ac_ct_STRIP" = x; then
3411 STRIP=":"
3412 else
3413 case $cross_compiling:$ac_tool_warned in
3414 yes:)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3418 esac
3419 STRIP=$ac_ct_STRIP
3421 else
3422 STRIP="$ac_cv_prog_STRIP"
3426 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3429 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3430 if test -z "$MKDIR_P"; then
3431 if test "${ac_cv_path_mkdir+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_prog in mkdir gmkdir; do
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3443 'mkdir (GNU coreutils) '* | \
3444 'mkdir (coreutils) '* | \
3445 'mkdir (fileutils) '4.1*)
3446 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3447 break 3;;
3448 esac
3449 done
3450 done
3451 done
3452 IFS=$as_save_IFS
3456 test -d ./--version && rmdir ./--version
3457 if test "${ac_cv_path_mkdir+set}" = set; then
3458 MKDIR_P="$ac_cv_path_mkdir -p"
3459 else
3460 # As a last resort, use the slow shell script. Don't cache a
3461 # value for MKDIR_P within a source directory, because that will
3462 # break other packages using the cache if that directory is
3463 # removed, or if the value is a relative name.
3464 MKDIR_P="$ac_install_sh -d"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3468 $as_echo "$MKDIR_P" >&6; }
3471 mkdir_p="$MKDIR_P"
3472 case $mkdir_p in
3473 [\\/$]* | ?:[\\/]*) ;;
3474 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3475 esac
3477 for ac_prog in gawk mawk nawk awk
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_AWK+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$AWK"; then
3487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_AWK="$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3500 done
3501 done
3502 IFS=$as_save_IFS
3506 AWK=$ac_cv_prog_AWK
3507 if test -n "$AWK"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3509 $as_echo "$AWK" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3516 test -n "$AWK" && break
3517 done
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3520 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3521 set x ${MAKE-make}
3522 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3523 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 cat >conftest.make <<\_ACEOF
3527 SHELL = /bin/sh
3528 all:
3529 @echo '@@@%%%=$(MAKE)=@@@%%%'
3530 _ACEOF
3531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3532 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3533 *@@@%%%=?*=@@@%%%*)
3534 eval ac_cv_prog_make_${ac_make}_set=yes;;
3536 eval ac_cv_prog_make_${ac_make}_set=no;;
3537 esac
3538 rm -f conftest.make
3540 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3542 $as_echo "yes" >&6; }
3543 SET_MAKE=
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 SET_MAKE="MAKE=${MAKE-make}"
3550 rm -rf .tst 2>/dev/null
3551 mkdir .tst 2>/dev/null
3552 if test -d .tst; then
3553 am__leading_dot=.
3554 else
3555 am__leading_dot=_
3557 rmdir .tst 2>/dev/null
3559 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3560 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3561 # is not polluted with repeated "-I."
3562 am__isrc=' -I$(srcdir)'
3563 # test to see if srcdir already configured
3564 if test -f $srcdir/config.status; then
3565 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3569 # test whether we have cygpath
3570 if test -z "$CYGPATH_W"; then
3571 if (cygpath --version) >/dev/null 2>/dev/null; then
3572 CYGPATH_W='cygpath -w'
3573 else
3574 CYGPATH_W=echo
3579 # Define the identity of the package.
3580 PACKAGE='emacs'
3581 VERSION='24.0.50'
3584 cat >>confdefs.h <<_ACEOF
3585 #define PACKAGE "$PACKAGE"
3586 _ACEOF
3589 cat >>confdefs.h <<_ACEOF
3590 #define VERSION "$VERSION"
3591 _ACEOF
3593 # Some tools Automake needs.
3595 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3598 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3601 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3604 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3607 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3609 # We need awk for the "check" target. The system "awk" is bad on
3610 # some platforms.
3611 # Always define AMTAR for backward compatibility.
3613 AMTAR=${AMTAR-"${am_missing_run}tar"}
3615 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3624 lispdir='${datadir}/emacs/${version}/lisp'
3625 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3626 '${datadir}/emacs/site-lisp'
3627 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3628 etcdir='${datadir}/emacs/${version}/etc'
3629 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3630 docdir='${datadir}/emacs/${version}/etc'
3631 gamedir='${localstatedir}/games/emacs'
3636 # Check whether --with-pop was given.
3637 if test "${with_pop+set}" = set; then :
3638 withval=$with_pop;
3639 else
3640 with_pop=yes
3643 if test "$with_pop" = yes; then
3644 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3649 # Check whether --with-kerberos was given.
3650 if test "${with_kerberos+set}" = set; then :
3651 withval=$with_kerberos;
3652 else
3653 with_kerberos=no
3656 if test "$with_kerberos" != no; then
3657 $as_echo "#define KERBEROS 1" >>confdefs.h
3662 # Check whether --with-kerberos5 was given.
3663 if test "${with_kerberos5+set}" = set; then :
3664 withval=$with_kerberos5;
3665 else
3666 with_kerberos5=no
3669 if test "${with_kerberos5}" != no; then
3670 if test "${with_kerberos}" = no; then
3671 with_kerberos=yes
3672 $as_echo "#define KERBEROS 1" >>confdefs.h
3676 $as_echo "#define KERBEROS5 1" >>confdefs.h
3681 # Check whether --with-hesiod was given.
3682 if test "${with_hesiod+set}" = set; then :
3683 withval=$with_hesiod;
3684 else
3685 with_hesiod=no
3688 if test "$with_hesiod" != no; then
3690 $as_echo "#define HESIOD 1" >>confdefs.h
3695 # Check whether --with-mmdf was given.
3696 if test "${with_mmdf+set}" = set; then :
3697 withval=$with_mmdf;
3698 else
3699 with_mmdf=no
3702 if test "$with_mmdf" != no; then
3704 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3709 # Check whether --with-mail-unlink was given.
3710 if test "${with_mail_unlink+set}" = set; then :
3711 withval=$with_mail_unlink;
3712 else
3713 with_mail_unlink=no
3716 if test "$with_mail_unlink" != no; then
3718 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3723 # Check whether --with-mailhost was given.
3724 if test "${with_mailhost+set}" = set; then :
3725 withval=$with_mailhost;
3726 cat >>confdefs.h <<_ACEOF
3727 #define MAILHOST "$withval"
3728 _ACEOF
3734 # Check whether --with-sound was given.
3735 if test "${with_sound+set}" = set; then :
3736 withval=$with_sound;
3737 else
3738 with_sound=yes
3743 # Check whether --with-sync-input was given.
3744 if test "${with_sync_input+set}" = set; then :
3745 withval=$with_sync_input;
3746 else
3747 with_sync_input=yes
3750 if test "$with_sync_input" = yes; then
3752 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3757 # Check whether --with-x-toolkit was given.
3758 if test "${with_x_toolkit+set}" = set; then :
3759 withval=$with_x_toolkit; case "${withval}" in
3760 y | ye | yes ) val=gtk ;;
3761 n | no ) val=no ;;
3762 l | lu | luc | luci | lucid ) val=lucid ;;
3763 a | at | ath | athe | athen | athena ) val=athena ;;
3764 m | mo | mot | moti | motif ) val=motif ;;
3765 g | gt | gtk ) val=gtk ;;
3766 gtk3 ) val=gtk3 ;;
3768 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3769 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3770 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3772 esac
3773 with_x_toolkit=$val
3779 # Check whether --with-xpm was given.
3780 if test "${with_xpm+set}" = set; then :
3781 withval=$with_xpm;
3782 else
3783 with_xpm=yes
3787 # Check whether --with-jpeg was given.
3788 if test "${with_jpeg+set}" = set; then :
3789 withval=$with_jpeg;
3790 else
3791 with_jpeg=yes
3795 # Check whether --with-tiff was given.
3796 if test "${with_tiff+set}" = set; then :
3797 withval=$with_tiff;
3798 else
3799 with_tiff=yes
3803 # Check whether --with-gif was given.
3804 if test "${with_gif+set}" = set; then :
3805 withval=$with_gif;
3806 else
3807 with_gif=yes
3811 # Check whether --with-png was given.
3812 if test "${with_png+set}" = set; then :
3813 withval=$with_png;
3814 else
3815 with_png=yes
3819 # Check whether --with-rsvg was given.
3820 if test "${with_rsvg+set}" = set; then :
3821 withval=$with_rsvg;
3822 else
3823 with_rsvg=yes
3827 # Check whether --with-xml2 was given.
3828 if test "${with_xml2+set}" = set; then :
3829 withval=$with_xml2;
3830 else
3831 with_xml2=yes
3835 # Check whether --with-imagemagick was given.
3836 if test "${with_imagemagick+set}" = set; then :
3837 withval=$with_imagemagick;
3838 else
3839 with_imagemagick=yes
3844 # Check whether --with-xft was given.
3845 if test "${with_xft+set}" = set; then :
3846 withval=$with_xft;
3847 else
3848 with_xft=yes
3852 # Check whether --with-libotf was given.
3853 if test "${with_libotf+set}" = set; then :
3854 withval=$with_libotf;
3855 else
3856 with_libotf=yes
3860 # Check whether --with-m17n-flt was given.
3861 if test "${with_m17n_flt+set}" = set; then :
3862 withval=$with_m17n_flt;
3863 else
3864 with_m17n_flt=yes
3869 # Check whether --with-toolkit-scroll-bars was given.
3870 if test "${with_toolkit_scroll_bars+set}" = set; then :
3871 withval=$with_toolkit_scroll_bars;
3872 else
3873 with_toolkit_scroll_bars=yes
3877 # Check whether --with-xaw3d was given.
3878 if test "${with_xaw3d+set}" = set; then :
3879 withval=$with_xaw3d;
3880 else
3881 with_xaw3d=yes
3885 # Check whether --with-xim was given.
3886 if test "${with_xim+set}" = set; then :
3887 withval=$with_xim;
3888 else
3889 with_xim=yes
3893 # Check whether --with-ns was given.
3894 if test "${with_ns+set}" = set; then :
3895 withval=$with_ns;
3896 else
3897 with_ns=no
3902 # Check whether --with-gpm was given.
3903 if test "${with_gpm+set}" = set; then :
3904 withval=$with_gpm;
3905 else
3906 with_gpm=yes
3910 # Check whether --with-dbus was given.
3911 if test "${with_dbus+set}" = set; then :
3912 withval=$with_dbus;
3913 else
3914 with_dbus=yes
3918 # Check whether --with-gconf was given.
3919 if test "${with_gconf+set}" = set; then :
3920 withval=$with_gconf;
3921 else
3922 with_gconf=yes
3926 # Check whether --with-selinux was given.
3927 if test "${with_selinux+set}" = set; then :
3928 withval=$with_selinux;
3929 else
3930 with_selinux=yes
3934 # Check whether --with-gnutls was given.
3935 if test "${with_gnutls+set}" = set; then :
3936 withval=$with_gnutls;
3937 else
3938 with_gnutls=yes
3942 ## For the times when you want to build Emacs but don't have
3943 ## a suitable makeinfo, and can live without the manuals.
3945 # Check whether --with-makeinfo was given.
3946 if test "${with_makeinfo+set}" = set; then :
3947 withval=$with_makeinfo;
3948 else
3949 with_makeinfo=yes
3953 ## This is an option because I do not know if all info/man support
3954 ## compressed files, nor how to test if they do so.
3956 # Check whether --with-compress-info was given.
3957 if test "${with_compress_info+set}" = set; then :
3958 withval=$with_compress_info;
3959 else
3960 with_compress_info=yes
3963 if test $with_compress_info = yes; then
3964 GZIP_INFO=yes
3965 else
3966 GZIP_INFO=
3971 # Check whether --with-pkg-config-prog was given.
3972 if test "${with_pkg_config_prog+set}" = set; then :
3973 withval=$with_pkg_config_prog;
3976 if test "X${with_pkg_config_prog}" != X; then
3977 if test "${with_pkg_config_prog}" != yes; then
3978 PKG_CONFIG="${with_pkg_config_prog}"
3982 CRT_DIR=
3984 # Check whether --with-crt-dir was given.
3985 if test "${with_crt_dir+set}" = set; then :
3986 withval=$with_crt_dir;
3989 CRT_DIR="${with_crt_dir}"
3992 # Check whether --with-gameuser was given.
3993 if test "${with_gameuser+set}" = set; then :
3994 withval=$with_gameuser;
3997 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3998 && gameuser="${with_gameuser}"
3999 test "X$gameuser" = X && gameuser=games
4002 # Check whether --with-gnustep-conf was given.
4003 if test "${with_gnustep_conf+set}" = set; then :
4004 withval=$with_gnustep_conf;
4007 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4008 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4009 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4010 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4012 # Check whether --enable-ns-self-contained was given.
4013 if test "${enable_ns_self_contained+set}" = set; then :
4014 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4015 else
4016 EN_NS_SELF_CONTAINED=yes
4020 # Check whether --enable-asserts was given.
4021 if test "${enable_asserts+set}" = set; then :
4022 enableval=$enable_asserts; USE_XASSERTS=$enableval
4023 else
4024 USE_XASSERTS=no
4028 # Check whether --enable-maintainer-mode was given.
4029 if test "${enable_maintainer_mode+set}" = set; then :
4030 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4031 else
4032 USE_MAINTAINER_MODE=yes
4035 if test $USE_MAINTAINER_MODE = yes; then
4036 MAINT=
4037 else
4038 MAINT=#
4042 # Check whether --enable-locallisppath was given.
4043 if test "${enable_locallisppath+set}" = set; then :
4044 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4045 locallisppath=
4046 elif test "${enableval}" != "yes"; then
4047 locallisppath=${enableval}
4052 # Check whether --enable-checking was given.
4053 if test "${enable_checking+set}" = set; then :
4054 enableval=$enable_checking; ac_checking_flags="${enableval}"
4057 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4058 for check in $ac_checking_flags
4060 case $check in
4061 # these set all the flags to specific states
4062 yes) ac_enable_checking=1 ;;
4063 no) ac_enable_checking= ;
4064 ac_gc_check_stringbytes= ;
4065 ac_gc_check_string_overrun= ;
4066 ac_gc_check_string_free_list= ;
4067 ac_xmalloc_overrun= ;
4068 ac_gc_check_cons_list= ;;
4069 all) ac_enable_checking=1 ;
4070 ac_gc_check_stringbytes=1 ;
4071 ac_gc_check_string_overrun=1 ;
4072 ac_gc_check_string_free_list=1 ;
4073 ac_xmalloc_overrun=1 ;
4074 ac_gc_check_cons_list=1 ;;
4075 # these enable particular checks
4076 stringbytes) ac_gc_check_stringbytes=1 ;;
4077 stringoverrun) ac_gc_check_string_overrun=1 ;;
4078 stringfreelist) ac_gc_check_string_free_list=1 ;;
4079 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4080 conslist) ac_gc_check_cons_list=1 ;;
4081 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4082 esac
4083 done
4084 IFS="$ac_save_IFS"
4086 if test x$ac_enable_checking != x ; then
4088 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4091 if test x$ac_gc_check_stringbytes != x ; then
4093 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4096 if test x$ac_gc_check_stringoverrun != x ; then
4098 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4101 if test x$ac_gc_check_string_free_list != x ; then
4103 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4106 if test x$ac_xmalloc_overrun != x ; then
4108 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4111 if test x$ac_gc_check_cons_list != x ; then
4113 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4117 # Check whether --enable-use-lisp-union-type was given.
4118 if test "${enable_use_lisp_union_type+set}" = set; then :
4119 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4121 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4128 # Check whether --enable-profiling was given.
4129 if test "${enable_profiling+set}" = set; then :
4130 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4133 if test x$ac_enable_profiling != x ; then
4134 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4135 else
4136 PROFILING_CFLAGS=
4140 # Check whether --enable-autodepend was given.
4141 if test "${enable_autodepend+set}" = set; then :
4142 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4143 else
4144 ac_enable_autodepend=yes
4148 #### Make srcdir absolute, if it isn't already. It's important to
4149 #### avoid running the path through pwd unnecessarily, since pwd can
4150 #### give you automounter prefixes, which can go away. We do all this
4151 #### so Emacs can find its files when run uninstalled.
4152 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4153 unset CDPATH
4154 case "${srcdir}" in
4155 /* ) ;;
4157 ## We may be able to use the $PWD environment variable to make this
4158 ## absolute. But sometimes PWD is inaccurate.
4159 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4160 ## but that tested only for a well-formed and valid PWD,
4161 ## it did not object when PWD was well-formed and valid but just wrong.
4162 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4163 then
4164 srcdir="$PWD"
4165 else
4166 srcdir="`(cd ${srcdir}; pwd)`"
4169 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4170 esac
4172 #### Check if the source directory already has a configured system in it.
4173 if test `pwd` != `(cd ${srcdir} && pwd)` \
4174 && test -f "${srcdir}/src/config.h" ; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4176 as a build directory right now; it has been configured in its own
4177 right. To configure in another directory as well, you MUST
4178 use GNU make. If you do not have GNU make, then you must
4179 now do \`make distclean' in ${srcdir},
4180 and then run $0 again." >&5
4181 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4182 as a build directory right now; it has been configured in its own
4183 right. To configure in another directory as well, you MUST
4184 use GNU make. If you do not have GNU make, then you must
4185 now do \`make distclean' in ${srcdir},
4186 and then run $0 again." >&2;}
4189 #### Given the configuration name, set machfile and opsysfile to the
4190 #### names of the m/*.h and s/*.h files we should use.
4192 ### Canonicalize the configuration name.
4194 # Make sure we can run config.sub.
4195 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4196 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4199 $as_echo_n "checking build system type... " >&6; }
4200 if test "${ac_cv_build+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 ac_build_alias=$build_alias
4204 test "x$ac_build_alias" = x &&
4205 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4206 test "x$ac_build_alias" = x &&
4207 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4208 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4209 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4213 $as_echo "$ac_cv_build" >&6; }
4214 case $ac_cv_build in
4215 *-*-*) ;;
4216 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4217 esac
4218 build=$ac_cv_build
4219 ac_save_IFS=$IFS; IFS='-'
4220 set x $ac_cv_build
4221 shift
4222 build_cpu=$1
4223 build_vendor=$2
4224 shift; shift
4225 # Remember, the first character of IFS is used to create $*,
4226 # except with old shells:
4227 build_os=$*
4228 IFS=$ac_save_IFS
4229 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4233 $as_echo_n "checking host system type... " >&6; }
4234 if test "${ac_cv_host+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test "x$host_alias" = x; then
4238 ac_cv_host=$ac_cv_build
4239 else
4240 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4241 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4246 $as_echo "$ac_cv_host" >&6; }
4247 case $ac_cv_host in
4248 *-*-*) ;;
4249 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4250 esac
4251 host=$ac_cv_host
4252 ac_save_IFS=$IFS; IFS='-'
4253 set x $ac_cv_host
4254 shift
4255 host_cpu=$1
4256 host_vendor=$2
4257 shift; shift
4258 # Remember, the first character of IFS is used to create $*,
4259 # except with old shells:
4260 host_os=$*
4261 IFS=$ac_save_IFS
4262 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4265 canonical=$host
4266 configuration=${host_alias-${build_alias-$host}}
4270 ### If you add support for a new configuration, add code to this
4271 ### switch statement to recognize your configuration name and select
4272 ### the appropriate operating system and machine description files.
4274 ### You would hope that you could choose an m/*.h file pretty much
4275 ### based on the machine portion of the configuration name, and an s/*.h
4276 ### file based on the operating system portion. However, it turns out
4277 ### that each m/*.h file is pretty manufacturer-specific - for
4278 ### example mips.h is MIPS
4279 ### So we basically have to have a special case for each
4280 ### configuration name.
4282 ### As far as handling version numbers on operating systems is
4283 ### concerned, make sure things will fail in a fixable way. If
4284 ### /etc/MACHINES doesn't say anything about version numbers, be
4285 ### prepared to handle anything reasonably. If version numbers
4286 ### matter, be sure /etc/MACHINES says something about it.
4288 machine='' opsys='' unported=no
4289 case "${canonical}" in
4291 ## GNU/Linux ports
4292 *-*-linux-gnu*)
4293 opsys=gnu-linux
4294 case ${canonical} in
4295 alpha*) machine=alpha ;;
4296 s390-*) machine=ibms390 ;;
4297 s390x-*) machine=ibms390x ;;
4298 powerpc*) machine=macppc ;;
4299 sparc*) machine=sparc ;;
4300 ia64*) machine=ia64 ;;
4301 m68k*) machine=m68k ;;
4302 x86_64*) machine=amdx86-64 ;;
4303 esac
4306 ## FreeBSD ports
4307 *-*-freebsd* )
4308 opsys=freebsd
4309 case "${canonical}" in
4310 alpha*) machine=alpha ;;
4311 amd64-*|x86_64-*) machine=amdx86-64 ;;
4312 ia64-*) machine=ia64 ;;
4313 i[3456]86-*) machine=intel386 ;;
4314 powerpc-*) machine=macppc ;;
4315 sparc-*) machine=sparc ;;
4316 sparc64-*) machine=sparc ;;
4317 esac
4320 ## FreeBSD kernel + glibc based userland
4321 *-*-kfreebsd*gnu* )
4322 opsys=gnu-kfreebsd
4323 case "${canonical}" in
4324 alpha*) machine=alpha ;;
4325 amd64-*|x86_64-*) machine=amdx86-64 ;;
4326 ia64-*) machine=ia64 ;;
4327 i[3456]86-*) machine=intel386 ;;
4328 powerpc-*) machine=macppc ;;
4329 sparc-*) machine=sparc ;;
4330 sparc64-*) machine=sparc ;;
4331 esac
4334 ## NetBSD ports
4335 *-*-netbsd* )
4336 opsys=netbsd
4337 case "${canonical}" in
4338 alpha*) machine=alpha ;;
4339 x86_64-*) machine=amdx86-64 ;;
4340 i[3456]86-*) machine=intel386 ;;
4341 m68k-*) machine=m68k ;;
4342 powerpc-*) machine=macppc ;;
4343 sparc*-) machine=sparc ;;
4344 vax-*) machine=vax ;;
4345 esac
4348 ## OpenBSD ports
4349 *-*-openbsd* )
4350 opsys=openbsd
4351 case "${canonical}" in
4352 alpha*) machine=alpha ;;
4353 x86_64-*) machine=amdx86-64 ;;
4354 i386-*) machine=intel386 ;;
4355 powerpc-*) machine=macppc ;;
4356 sparc*) machine=sparc ;;
4357 vax-*) machine=vax ;;
4358 esac
4361 ## Apple Darwin / Mac OS X
4362 *-apple-darwin* )
4363 case "${canonical}" in
4364 i[3456]86-* ) machine=intel386 ;;
4365 powerpc-* ) machine=macppc ;;
4366 x86_64-* ) machine=amdx86-64 ;;
4367 * ) unported=yes ;;
4368 esac
4369 opsys=darwin
4370 # Define CPP as follows to make autoconf work correctly.
4371 CPP="${CC-cc} -E -no-cpp-precomp"
4372 # Use fink packages if available.
4373 if test -d /sw/include && test -d /sw/lib; then
4374 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4375 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4376 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4380 ## HP 9000 series 700 and 800, running HP/UX
4381 hppa*-hp-hpux10.2* )
4382 opsys=hpux10-20
4384 hppa*-hp-hpux1[1-9]* )
4385 opsys=hpux11
4386 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4389 ia64*-hp-hpux1[1-9]* )
4390 machine=hp800 opsys=hpux11
4391 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4392 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4393 CANNOT_DUMP=yes
4396 hppa*-*-linux-gnu* )
4397 machine=hp800 opsys=gnu-linux
4400 ## IBM machines
4401 rs6000-ibm-aix4.[23]* )
4402 machine=ibmrs6000 opsys=aix4-2
4404 powerpc-ibm-aix4.[23]* )
4405 machine=ibmrs6000 opsys=aix4-2
4407 rs6000-ibm-aix[56]* )
4408 machine=ibmrs6000 opsys=aix4-2
4410 powerpc-ibm-aix[56]* )
4411 machine=ibmrs6000 opsys=aix4-2
4414 ## Silicon Graphics machines
4415 ## Iris 4D
4416 mips-sgi-irix6.5 )
4417 machine=iris4d opsys=irix6-5
4418 # Without defining _LANGUAGE_C, things get masked out in the headers
4419 # so that, for instance, grepping for `free' in stdlib.h fails and
4420 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4421 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4422 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4425 ## Suns
4426 *-sun-solaris* \
4427 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4428 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4429 case "${canonical}" in
4430 i[3456]86-*-* ) machine=intel386 ;;
4431 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4432 sparc* ) machine=sparc ;;
4433 * ) unported=yes ;;
4434 esac
4435 case "${canonical}" in
4436 *-sunos5.6* | *-solaris2.6* )
4437 opsys=sol2-6
4438 NON_GNU_CPP=/usr/ccs/lib/cpp
4439 RANLIB="ar -ts"
4441 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4442 opsys=sol2-6
4443 emacs_check_sunpro_c=yes
4444 NON_GNU_CPP=/usr/ccs/lib/cpp
4446 *-sunos5* | *-solaris* )
4447 opsys=sol2-10
4448 emacs_check_sunpro_c=yes
4449 NON_GNU_CPP=/usr/ccs/lib/cpp
4451 esac
4452 ## Watch out for a compiler that we know will not work.
4453 case "${canonical}" in
4454 *-solaris* | *-sunos5* )
4455 if [ "x$CC" = x/usr/ucb/cc ]; then
4456 ## /usr/ucb/cc doesn't work;
4457 ## we should find some other compiler that does work.
4458 unset CC
4461 *) ;;
4462 esac
4465 ## Intel 386 machines where we don't care about the manufacturer.
4466 i[3456]86-*-* )
4467 machine=intel386
4468 case "${canonical}" in
4469 *-cygwin ) opsys=cygwin ;;
4470 *-darwin* ) opsys=darwin
4471 CPP="${CC-cc} -E -no-cpp-precomp"
4473 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4474 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4475 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4476 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4477 esac
4481 unported=yes
4483 esac
4485 ### If the code above didn't choose an operating system, just choose
4486 ### an operating system based on the configuration name. You really
4487 ### only want to use this when you have no idea what the right
4488 ### operating system is; if you know what operating systems a machine
4489 ### runs, it's cleaner to make it explicit in the case statement
4490 ### above.
4491 if test x"${opsys}" = x; then
4492 case "${canonical}" in
4493 *-gnu* ) opsys=gnu ;;
4495 unported=yes
4497 esac
4502 if test $unported = yes; then
4503 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4504 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4507 if test -n "$machine"; then
4508 machfile="m/${machine}.h"
4509 else
4510 machfile=
4512 opsysfile="s/${opsys}.h"
4515 #### Choose a compiler.
4516 test -n "$CC" && cc_specified=yes
4518 # Save the value of CFLAGS that the user specified.
4519 SPECIFIED_CFLAGS="$CFLAGS"
4521 ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4548 done
4549 done
4550 IFS=$as_save_IFS
4554 CC=$ac_cv_prog_CC
4555 if test -n "$CC"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4557 $as_echo "$CC" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4565 if test -z "$ac_cv_prog_CC"; then
4566 ac_ct_CC=$CC
4567 # Extract the first word of "gcc", so it can be a program name with args.
4568 set dummy gcc; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -n "$ac_ct_CC"; then
4575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_ac_ct_CC="gcc"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4588 done
4589 done
4590 IFS=$as_save_IFS
4594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4595 if test -n "$ac_ct_CC"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4597 $as_echo "$ac_ct_CC" >&6; }
4598 else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4603 if test "x$ac_ct_CC" = x; then
4604 CC=""
4605 else
4606 case $cross_compiling:$ac_tool_warned in
4607 yes:)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned=yes ;;
4611 esac
4612 CC=$ac_ct_CC
4614 else
4615 CC="$ac_cv_prog_CC"
4618 if test -z "$CC"; then
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4621 set dummy ${ac_tool_prefix}cc; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="${ac_tool_prefix}cc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4659 if test -z "$CC"; then
4660 # Extract the first word of "cc", so it can be a program name with args.
4661 set dummy cc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 else
4670 ac_prog_rejected=no
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4679 ac_prog_rejected=yes
4680 continue
4682 ac_cv_prog_CC="cc"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4686 done
4687 done
4688 IFS=$as_save_IFS
4690 if test $ac_prog_rejected = yes; then
4691 # We found a bogon in the path, so make sure we never use it.
4692 set dummy $ac_cv_prog_CC
4693 shift
4694 if test $# != 0; then
4695 # We chose a different compiler from the bogus one.
4696 # However, it has the same basename, so the bogon will be chosen
4697 # first if we set CC to just the basename; use the full file name.
4698 shift
4699 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4704 CC=$ac_cv_prog_CC
4705 if test -n "$CC"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4707 $as_echo "$CC" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4715 if test -z "$CC"; then
4716 if test -n "$ac_tool_prefix"; then
4717 for ac_prog in cl.exe
4719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_CC+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 if test -n "$CC"; then
4727 ac_cv_prog_CC="$CC" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4740 done
4741 done
4742 IFS=$as_save_IFS
4746 CC=$ac_cv_prog_CC
4747 if test -n "$CC"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4749 $as_echo "$CC" >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4756 test -n "$CC" && break
4757 done
4759 if test -z "$CC"; then
4760 ac_ct_CC=$CC
4761 for ac_prog in cl.exe
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy $ac_prog; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$ac_ct_CC"; then
4771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_ac_ct_CC="$ac_prog"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4791 if test -n "$ac_ct_CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793 $as_echo "$ac_ct_CC" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4800 test -n "$ac_ct_CC" && break
4801 done
4803 if test "x$ac_ct_CC" = x; then
4804 CC=""
4805 else
4806 case $cross_compiling:$ac_tool_warned in
4807 yes:)
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810 ac_tool_warned=yes ;;
4811 esac
4812 CC=$ac_ct_CC
4819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4821 as_fn_error "no acceptable C compiler found in \$PATH
4822 See \`config.log' for more details." "$LINENO" 5; }
4824 # Provide some information about the compiler.
4825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4826 set X $ac_compile
4827 ac_compiler=$2
4828 for ac_option in --version -v -V -qversion; do
4829 { { ac_try="$ac_compiler $ac_option >&5"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4835 $as_echo "$ac_try_echo"; } >&5
4836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4837 ac_status=$?
4838 if test -s conftest.err; then
4839 sed '10a\
4840 ... rest of stderr output deleted ...
4841 10q' conftest.err >conftest.er1
4842 cat conftest.er1 >&5
4844 rm -f conftest.er1 conftest.err
4845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }
4847 done
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4853 main ()
4857 return 0;
4859 _ACEOF
4860 ac_clean_files_save=$ac_clean_files
4861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4862 # Try to create an executable without -o first, disregard a.out.
4863 # It will help us diagnose broken compilers, and finding out an intuition
4864 # of exeext.
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4866 $as_echo_n "checking whether the C compiler works... " >&6; }
4867 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4869 # The possible output files:
4870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4872 ac_rmfiles=
4873 for ac_file in $ac_files
4875 case $ac_file in
4876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4878 esac
4879 done
4880 rm -f $ac_rmfiles
4882 if { { ac_try="$ac_link_default"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888 $as_echo "$ac_try_echo"; } >&5
4889 (eval "$ac_link_default") 2>&5
4890 ac_status=$?
4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }; then :
4893 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4895 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4896 # so that the user can short-circuit this test for compilers unknown to
4897 # Autoconf.
4898 for ac_file in $ac_files ''
4900 test -f "$ac_file" || continue
4901 case $ac_file in
4902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4904 [ab].out )
4905 # We found the default executable, but exeext='' is most
4906 # certainly right.
4907 break;;
4908 *.* )
4909 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4910 then :; else
4911 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4913 # We set ac_cv_exeext here because the later test for it is not
4914 # safe: cross compilers may not add the suffix if given an `-o'
4915 # argument, so we may need to know it at that point already.
4916 # Even if this section looks crufty: it has the advantage of
4917 # actually working.
4918 break;;
4920 break;;
4921 esac
4922 done
4923 test "$ac_cv_exeext" = no && ac_cv_exeext=
4925 else
4926 ac_file=''
4928 if test -z "$ac_file"; then :
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 $as_echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4936 { as_fn_set_status 77
4937 as_fn_error "C compiler cannot create executables
4938 See \`config.log' for more details." "$LINENO" 5; }; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4941 $as_echo "yes" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4944 $as_echo_n "checking for C compiler default output file name... " >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4946 $as_echo "$ac_file" >&6; }
4947 ac_exeext=$ac_cv_exeext
4949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4950 ac_clean_files=$ac_clean_files_save
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4952 $as_echo_n "checking for suffix of executables... " >&6; }
4953 if { { ac_try="$ac_link"
4954 case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4959 $as_echo "$ac_try_echo"; } >&5
4960 (eval "$ac_link") 2>&5
4961 ac_status=$?
4962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963 test $ac_status = 0; }; then :
4964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4966 # work properly (i.e., refer to `conftest.exe'), while it won't with
4967 # `rm'.
4968 for ac_file in conftest.exe conftest conftest.*; do
4969 test -f "$ac_file" || continue
4970 case $ac_file in
4971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4973 break;;
4974 * ) break;;
4975 esac
4976 done
4977 else
4978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4980 as_fn_error "cannot compute suffix of executables: cannot compile and link
4981 See \`config.log' for more details." "$LINENO" 5; }
4983 rm -f conftest conftest$ac_cv_exeext
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4985 $as_echo "$ac_cv_exeext" >&6; }
4987 rm -f conftest.$ac_ext
4988 EXEEXT=$ac_cv_exeext
4989 ac_exeext=$EXEEXT
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <stdio.h>
4994 main ()
4996 FILE *f = fopen ("conftest.out", "w");
4997 return ferror (f) || fclose (f) != 0;
5000 return 0;
5002 _ACEOF
5003 ac_clean_files="$ac_clean_files conftest.out"
5004 # Check that the compiler produces executables we can run. If not, either
5005 # the compiler is broken, or we cross compile.
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5007 $as_echo_n "checking whether we are cross compiling... " >&6; }
5008 if test "$cross_compiling" != yes; then
5009 { { ac_try="$ac_link"
5010 case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5015 $as_echo "$ac_try_echo"; } >&5
5016 (eval "$ac_link") 2>&5
5017 ac_status=$?
5018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5019 test $ac_status = 0; }
5020 if { ac_try='./conftest$ac_cv_exeext'
5021 { { case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5026 $as_echo "$ac_try_echo"; } >&5
5027 (eval "$ac_try") 2>&5
5028 ac_status=$?
5029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5030 test $ac_status = 0; }; }; then
5031 cross_compiling=no
5032 else
5033 if test "$cross_compiling" = maybe; then
5034 cross_compiling=yes
5035 else
5036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5038 as_fn_error "cannot run C compiled programs.
5039 If you meant to cross compile, use \`--host'.
5040 See \`config.log' for more details." "$LINENO" 5; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5045 $as_echo "$cross_compiling" >&6; }
5047 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5048 ac_clean_files=$ac_clean_files_save
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5050 $as_echo_n "checking for suffix of object files... " >&6; }
5051 if test "${ac_cv_objext+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5058 main ()
5062 return 0;
5064 _ACEOF
5065 rm -f conftest.o conftest.obj
5066 if { { ac_try="$ac_compile"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073 (eval "$ac_compile") 2>&5
5074 ac_status=$?
5075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076 test $ac_status = 0; }; then :
5077 for ac_file in conftest.o conftest.obj conftest.*; do
5078 test -f "$ac_file" || continue;
5079 case $ac_file in
5080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5082 break;;
5083 esac
5084 done
5085 else
5086 $as_echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "cannot compute suffix of object files: cannot compile
5092 See \`config.log' for more details." "$LINENO" 5; }
5094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5097 $as_echo "$ac_cv_objext" >&6; }
5098 OBJEXT=$ac_cv_objext
5099 ac_objext=$OBJEXT
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5102 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5109 main ()
5111 #ifndef __GNUC__
5112 choke me
5113 #endif
5116 return 0;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 ac_compiler_gnu=yes
5121 else
5122 ac_compiler_gnu=no
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5130 if test $ac_compiler_gnu = yes; then
5131 GCC=yes
5132 else
5133 GCC=
5135 ac_test_CFLAGS=${CFLAGS+set}
5136 ac_save_CFLAGS=$CFLAGS
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5139 if test "${ac_cv_prog_cc_g+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 ac_save_c_werror_flag=$ac_c_werror_flag
5143 ac_c_werror_flag=yes
5144 ac_cv_prog_cc_g=no
5145 CFLAGS="-g"
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5150 main ()
5154 return 0;
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_prog_cc_g=yes
5159 else
5160 CFLAGS=""
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5165 main ()
5169 return 0;
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"; then :
5174 else
5175 ac_c_werror_flag=$ac_save_c_werror_flag
5176 CFLAGS="-g"
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5181 main ()
5185 return 0;
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 ac_cv_prog_cc_g=yes
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 ac_c_werror_flag=$ac_save_c_werror_flag
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5199 $as_echo "$ac_cv_prog_cc_g" >&6; }
5200 if test "$ac_test_CFLAGS" = set; then
5201 CFLAGS=$ac_save_CFLAGS
5202 elif test $ac_cv_prog_cc_g = yes; then
5203 if test "$GCC" = yes; then
5204 CFLAGS="-g -O2"
5205 else
5206 CFLAGS="-g"
5208 else
5209 if test "$GCC" = yes; then
5210 CFLAGS="-O2"
5211 else
5212 CFLAGS=
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5217 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 ac_cv_prog_cc_c89=no
5221 ac_save_CC=$CC
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5224 #include <stdarg.h>
5225 #include <stdio.h>
5226 #include <sys/types.h>
5227 #include <sys/stat.h>
5228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5229 struct buf { int x; };
5230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5231 static char *e (p, i)
5232 char **p;
5233 int i;
5235 return p[i];
5237 static char *f (char * (*g) (char **, int), char **p, ...)
5239 char *s;
5240 va_list v;
5241 va_start (v,p);
5242 s = g (p, va_arg (v,int));
5243 va_end (v);
5244 return s;
5247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5248 function prototypes and stuff, but not '\xHH' hex character constants.
5249 These don't provoke an error unfortunately, instead are silently treated
5250 as 'x'. The following induces an error, until -std is added to get
5251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5252 array size at least. It's necessary to write '\x00'==0 to get something
5253 that's true only with -std. */
5254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5257 inside strings and character constants. */
5258 #define FOO(x) 'x'
5259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5261 int test (int i, double x);
5262 struct s1 {int (*f) (int a);};
5263 struct s2 {int (*f) (double a);};
5264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5265 int argc;
5266 char **argv;
5268 main ()
5270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5272 return 0;
5274 _ACEOF
5275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5278 CC="$ac_save_CC $ac_arg"
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_prog_cc_c89=$ac_arg
5282 rm -f core conftest.err conftest.$ac_objext
5283 test "x$ac_cv_prog_cc_c89" != "xno" && break
5284 done
5285 rm -f conftest.$ac_ext
5286 CC=$ac_save_CC
5289 # AC_CACHE_VAL
5290 case "x$ac_cv_prog_cc_c89" in
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5293 $as_echo "none needed" >&6; } ;;
5294 xno)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5296 $as_echo "unsupported" >&6; } ;;
5298 CC="$CC $ac_cv_prog_cc_c89"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5300 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5301 esac
5302 if test "x$ac_cv_prog_cc_c89" != xno; then :
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 DEPDIR="${am__leading_dot}deps"
5313 ac_config_commands="$ac_config_commands depfiles"
5316 am_make=${MAKE-make}
5317 cat > confinc << 'END'
5318 am__doit:
5319 @echo this is the am__doit target
5320 .PHONY: am__doit
5322 # If we don't find an include directive, just comment out the code.
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5324 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5325 am__include="#"
5326 am__quote=
5327 _am_result=none
5328 # First try GNU make style include.
5329 echo "include confinc" > confmf
5330 # Ignore all kinds of additional output from `make'.
5331 case `$am_make -s -f confmf 2> /dev/null` in #(
5332 *the\ am__doit\ target*)
5333 am__include=include
5334 am__quote=
5335 _am_result=GNU
5337 esac
5338 # Now try BSD make style include.
5339 if test "$am__include" = "#"; then
5340 echo '.include "confinc"' > confmf
5341 case `$am_make -s -f confmf 2> /dev/null` in #(
5342 *the\ am__doit\ target*)
5343 am__include=.include
5344 am__quote="\""
5345 _am_result=BSD
5347 esac
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5352 $as_echo "$_am_result" >&6; }
5353 rm -f confinc confmf
5355 # Check whether --enable-dependency-tracking was given.
5356 if test "${enable_dependency_tracking+set}" = set; then :
5357 enableval=$enable_dependency_tracking;
5360 if test "x$enable_dependency_tracking" != xno; then
5361 am_depcomp="$ac_aux_dir/depcomp"
5362 AMDEPBACKSLASH='\'
5364 if test "x$enable_dependency_tracking" != xno; then
5365 AMDEP_TRUE=
5366 AMDEP_FALSE='#'
5367 else
5368 AMDEP_TRUE='#'
5369 AMDEP_FALSE=
5374 depcc="$CC" am_compiler_list=
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5377 $as_echo_n "checking dependency style of $depcc... " >&6; }
5378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5382 # We make a subdir and do the tests there. Otherwise we can end up
5383 # making bogus files that we don't know about and never remove. For
5384 # instance it was reported that on HP-UX the gcc test will end up
5385 # making a dummy file named `D' -- because `-MD' means `put the output
5386 # in D'.
5387 mkdir conftest.dir
5388 # Copy depcomp to subdir because otherwise we won't find it if we're
5389 # using a relative directory.
5390 cp "$am_depcomp" conftest.dir
5391 cd conftest.dir
5392 # We will build objects and dependencies in a subdirectory because
5393 # it helps to detect inapplicable dependency modes. For instance
5394 # both Tru64's cc and ICC support -MD to output dependencies as a
5395 # side effect of compilation, but ICC will put the dependencies in
5396 # the current directory while Tru64 will put them in the object
5397 # directory.
5398 mkdir sub
5400 am_cv_CC_dependencies_compiler_type=none
5401 if test "$am_compiler_list" = ""; then
5402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5404 am__universal=false
5405 case " $depcc " in #(
5406 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5407 esac
5409 for depmode in $am_compiler_list; do
5410 # Setup a source with many dependencies, because some compilers
5411 # like to wrap large dependency lists on column 80 (with \), and
5412 # we should not choose a depcomp mode which is confused by this.
5414 # We need to recreate these files for each test, as the compiler may
5415 # overwrite some of them when testing with obscure command lines.
5416 # This happens at least with the AIX C compiler.
5417 : > sub/conftest.c
5418 for i in 1 2 3 4 5 6; do
5419 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5420 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5421 # Solaris 8's {/usr,}/bin/sh.
5422 touch sub/conftst$i.h
5423 done
5424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5426 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5427 # mode. It turns out that the SunPro C++ compiler does not properly
5428 # handle `-M -o', and we need to detect this. Also, some Intel
5429 # versions had trouble with output in subdirs
5430 am__obj=sub/conftest.${OBJEXT-o}
5431 am__minus_obj="-o $am__obj"
5432 case $depmode in
5433 gcc)
5434 # This depmode causes a compiler race in universal mode.
5435 test "$am__universal" = false || continue
5437 nosideeffect)
5438 # after this tag, mechanisms are not by side-effect, so they'll
5439 # only be used when explicitly requested
5440 if test "x$enable_dependency_tracking" = xyes; then
5441 continue
5442 else
5443 break
5446 msvisualcpp | msvcmsys)
5447 # This compiler won't grok `-c -o', but also, the minuso test has
5448 # not run yet. These depmodes are late enough in the game, and
5449 # so weak that their functioning should not be impacted.
5450 am__obj=conftest.${OBJEXT-o}
5451 am__minus_obj=
5453 none) break ;;
5454 esac
5455 if depmode=$depmode \
5456 source=sub/conftest.c object=$am__obj \
5457 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5458 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5459 >/dev/null 2>conftest.err &&
5460 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5462 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5464 # icc doesn't choke on unknown options, it will just issue warnings
5465 # or remarks (even with -Werror). So we grep stderr for any message
5466 # that says an option was ignored or not supported.
5467 # When given -MP, icc 7.0 and 7.1 complain thusly:
5468 # icc: Command line warning: ignoring option '-M'; no argument required
5469 # The diagnosis changed in icc 8.0:
5470 # icc: Command line remark: option '-MP' not supported
5471 if (grep 'ignoring option' conftest.err ||
5472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5473 am_cv_CC_dependencies_compiler_type=$depmode
5474 break
5477 done
5479 cd ..
5480 rm -rf conftest.dir
5481 else
5482 am_cv_CC_dependencies_compiler_type=none
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5487 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5488 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5491 test "x$enable_dependency_tracking" != xno \
5492 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5493 am__fastdepCC_TRUE=
5494 am__fastdepCC_FALSE='#'
5495 else
5496 am__fastdepCC_TRUE='#'
5497 am__fastdepCC_FALSE=
5501 if test "x$CC" != xcc; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5503 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5506 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5508 set dummy $CC; ac_cc=`$as_echo "$2" |
5509 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5510 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5517 main ()
5521 return 0;
5523 _ACEOF
5524 # Make sure it works both with $CC and with simple cc.
5525 # We do the test twice because some compilers refuse to overwrite an
5526 # existing .o file with -o, though they will create one.
5527 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5528 rm -f conftest2.*
5529 if { { case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532 esac
5533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5534 $as_echo "$ac_try_echo"; } >&5
5535 (eval "$ac_try") 2>&5
5536 ac_status=$?
5537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538 test $ac_status = 0; } &&
5539 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542 esac
5543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5544 $as_echo "$ac_try_echo"; } >&5
5545 (eval "$ac_try") 2>&5
5546 ac_status=$?
5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5548 test $ac_status = 0; };
5549 then
5550 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5551 if test "x$CC" != xcc; then
5552 # Test first that cc exists at all.
5553 if { ac_try='cc -c conftest.$ac_ext >&5'
5554 { { case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5559 $as_echo "$ac_try_echo"; } >&5
5560 (eval "$ac_try") 2>&5
5561 ac_status=$?
5562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5563 test $ac_status = 0; }; }; then
5564 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5565 rm -f conftest2.*
5566 if { { case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569 esac
5570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5571 $as_echo "$ac_try_echo"; } >&5
5572 (eval "$ac_try") 2>&5
5573 ac_status=$?
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; } &&
5576 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5579 esac
5580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5581 $as_echo "$ac_try_echo"; } >&5
5582 (eval "$ac_try") 2>&5
5583 ac_status=$?
5584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5585 test $ac_status = 0; };
5586 then
5587 # cc works too.
5589 else
5590 # cc exists but doesn't like -o.
5591 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5595 else
5596 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5598 rm -f core conftest*
5601 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603 $as_echo "yes" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5608 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5612 # FIXME: we rely on the cache variable name because
5613 # there is no other way.
5614 set dummy $CC
5615 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5616 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5617 if test "$am_t" != yes; then
5618 # Losing compiler, so override with the script.
5619 # FIXME: It is wrong to rewrite CC.
5620 # But if we don't then we get into trouble of one sort or another.
5621 # A longer-term fix would be to have automake use am__CC in this case,
5622 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5623 CC="$am_aux_dir/compile $CC"
5628 # Initialize gnulib right after verifying that the C compiler works.
5629 if test -n "$ac_tool_prefix"; then
5630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$RANLIB"; then
5638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5651 done
5652 done
5653 IFS=$as_save_IFS
5657 RANLIB=$ac_cv_prog_RANLIB
5658 if test -n "$RANLIB"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5660 $as_echo "$RANLIB" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5668 if test -z "$ac_cv_prog_RANLIB"; then
5669 ac_ct_RANLIB=$RANLIB
5670 # Extract the first word of "ranlib", so it can be a program name with args.
5671 set dummy ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 if test -n "$ac_ct_RANLIB"; then
5678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_prog_ac_ct_RANLIB="ranlib"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5691 done
5692 done
5693 IFS=$as_save_IFS
5697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5698 if test -n "$ac_ct_RANLIB"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5700 $as_echo "$ac_ct_RANLIB" >&6; }
5701 else
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5706 if test "x$ac_ct_RANLIB" = x; then
5707 RANLIB=":"
5708 else
5709 case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715 RANLIB=$ac_ct_RANLIB
5717 else
5718 RANLIB="$ac_cv_prog_RANLIB"
5722 ac_ext=c
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5729 # On Suns, sometimes $CPP names a directory.
5730 if test -n "$CPP" && test -d "$CPP"; then
5731 CPP=
5733 if test -z "$CPP"; then
5734 if test "${ac_cv_prog_CPP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5740 ac_preproc_ok=false
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #ifdef __STDC__
5752 # include <limits.h>
5753 #else
5754 # include <assert.h>
5755 #endif
5756 Syntax error
5757 _ACEOF
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5760 else
5761 # Broken: fails on valid input.
5762 continue
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5771 _ACEOF
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5774 continue
5775 else
5776 # Passes both tests.
5777 ac_preproc_ok=:
5778 break
5780 rm -f conftest.err conftest.$ac_ext
5782 done
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then :
5786 break
5789 done
5790 ac_cv_prog_CPP=$CPP
5793 CPP=$ac_cv_prog_CPP
5794 else
5795 ac_cv_prog_CPP=$CPP
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5798 $as_echo "$CPP" >&6; }
5799 ac_preproc_ok=false
5800 for ac_c_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #ifdef __STDC__
5811 # include <limits.h>
5812 #else
5813 # include <assert.h>
5814 #endif
5815 Syntax error
5816 _ACEOF
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5819 else
5820 # Broken: fails on valid input.
5821 continue
5823 rm -f conftest.err conftest.$ac_ext
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5830 _ACEOF
5831 if ac_fn_c_try_cpp "$LINENO"; then :
5832 # Broken: success on invalid input.
5833 continue
5834 else
5835 # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5839 rm -f conftest.err conftest.$ac_ext
5841 done
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then :
5846 else
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." "$LINENO" 5; }
5853 ac_ext=c
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5862 if test "${ac_cv_path_GREP+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -z "$GREP"; then
5866 ac_path_GREP_found=false
5867 # Loop through the user's path and test for each of PROGNAME-LIST
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_prog in grep ggrep; do
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5877 # Check for GNU ac_path_GREP and select it if it is found.
5878 # Check for GNU $ac_path_GREP
5879 case `"$ac_path_GREP" --version 2>&1` in
5880 *GNU*)
5881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5883 ac_count=0
5884 $as_echo_n 0123456789 >"conftest.in"
5885 while :
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 $as_echo 'GREP' >> "conftest.nl"
5891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5893 as_fn_arith $ac_count + 1 && ac_count=$as_val
5894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_GREP="$ac_path_GREP"
5897 ac_path_GREP_max=$ac_count
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5901 done
5902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5903 esac
5905 $ac_path_GREP_found && break 3
5906 done
5907 done
5908 done
5909 IFS=$as_save_IFS
5910 if test -z "$ac_cv_path_GREP"; then
5911 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5913 else
5914 ac_cv_path_GREP=$GREP
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5919 $as_echo "$ac_cv_path_GREP" >&6; }
5920 GREP="$ac_cv_path_GREP"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5924 $as_echo_n "checking for egrep... " >&6; }
5925 if test "${ac_cv_path_EGREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5929 then ac_cv_path_EGREP="$GREP -E"
5930 else
5931 if test -z "$EGREP"; then
5932 ac_path_EGREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_prog in egrep; do
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5943 # Check for GNU ac_path_EGREP and select it if it is found.
5944 # Check for GNU $ac_path_EGREP
5945 case `"$ac_path_EGREP" --version 2>&1` in
5946 *GNU*)
5947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5949 ac_count=0
5950 $as_echo_n 0123456789 >"conftest.in"
5951 while :
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'EGREP' >> "conftest.nl"
5957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959 as_fn_arith $ac_count + 1 && ac_count=$as_val
5960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_EGREP="$ac_path_EGREP"
5963 ac_path_EGREP_max=$ac_count
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5967 done
5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5969 esac
5971 $ac_path_EGREP_found && break 3
5972 done
5973 done
5974 done
5975 IFS=$as_save_IFS
5976 if test -z "$ac_cv_path_EGREP"; then
5977 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5979 else
5980 ac_cv_path_EGREP=$EGREP
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5986 $as_echo "$ac_cv_path_EGREP" >&6; }
5987 EGREP="$ac_cv_path_EGREP"
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5991 $as_echo_n "checking for ANSI C header files... " >&6; }
5992 if test "${ac_cv_header_stdc+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 #include <stdlib.h>
5998 #include <stdarg.h>
5999 #include <string.h>
6000 #include <float.h>
6003 main ()
6007 return 0;
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"; then :
6011 ac_cv_header_stdc=yes
6012 else
6013 ac_cv_header_stdc=no
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 if test $ac_cv_header_stdc = yes; then
6018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #include <string.h>
6023 _ACEOF
6024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025 $EGREP "memchr" >/dev/null 2>&1; then :
6027 else
6028 ac_cv_header_stdc=no
6030 rm -f conftest*
6034 if test $ac_cv_header_stdc = yes; then
6035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <stdlib.h>
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "free" >/dev/null 2>&1; then :
6044 else
6045 ac_cv_header_stdc=no
6047 rm -f conftest*
6051 if test $ac_cv_header_stdc = yes; then
6052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6053 if test "$cross_compiling" = yes; then :
6055 else
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <ctype.h>
6059 #include <stdlib.h>
6060 #if ((' ' & 0x0FF) == 0x020)
6061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6063 #else
6064 # define ISLOWER(c) \
6065 (('a' <= (c) && (c) <= 'i') \
6066 || ('j' <= (c) && (c) <= 'r') \
6067 || ('s' <= (c) && (c) <= 'z'))
6068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6069 #endif
6071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6073 main ()
6075 int i;
6076 for (i = 0; i < 256; i++)
6077 if (XOR (islower (i), ISLOWER (i))
6078 || toupper (i) != TOUPPER (i))
6079 return 2;
6080 return 0;
6082 _ACEOF
6083 if ac_fn_c_try_run "$LINENO"; then :
6085 else
6086 ac_cv_header_stdc=no
6088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6089 conftest.$ac_objext conftest.beam conftest.$ac_ext
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6095 $as_echo "$ac_cv_header_stdc" >&6; }
6096 if test $ac_cv_header_stdc = yes; then
6098 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6102 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6103 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6104 inttypes.h stdint.h unistd.h
6105 do :
6106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6107 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6109 eval as_val=\$$as_ac_Header
6110 if test "x$as_val" = x""yes; then :
6111 cat >>confdefs.h <<_ACEOF
6112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6113 _ACEOF
6117 done
6123 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6124 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6125 MINIX=yes
6126 else
6127 MINIX=
6131 if test "$MINIX" = yes; then
6133 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6136 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6139 $as_echo "#define _MINIX 1" >>confdefs.h
6143 case "$host_os" in
6144 hpux*)
6146 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6149 esac
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6153 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6154 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 # define __EXTENSIONS__ 1
6161 $ac_includes_default
6163 main ()
6167 return 0;
6169 _ACEOF
6170 if ac_fn_c_try_compile "$LINENO"; then :
6171 ac_cv_safe_to_define___extensions__=yes
6172 else
6173 ac_cv_safe_to_define___extensions__=no
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6178 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6179 test $ac_cv_safe_to_define___extensions__ = yes &&
6180 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6182 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6184 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6186 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6188 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6199 # Code from module arg-nonnull:
6200 # Code from module c++defs:
6201 # Code from module careadlinkat:
6202 # Code from module crypto/md5:
6203 # Code from module dosname:
6204 # Code from module dtoastr:
6205 # Code from module extensions:
6207 # Code from module filemode:
6208 # Code from module getloadavg:
6209 # Code from module getopt-gnu:
6210 # Code from module getopt-posix:
6211 # Code from module gettext-h:
6212 # Code from module ignore-value:
6213 # Code from module include_next:
6214 # Code from module intprops:
6215 # Code from module lstat:
6216 # Code from module mktime:
6217 # Code from module multiarch:
6218 # Code from module readlink:
6219 # Code from module socklen:
6220 # Code from module ssize_t:
6221 # Code from module stat:
6222 # Code from module stdbool:
6223 # Code from module stddef:
6224 # Code from module stdint:
6225 # Code from module stdio:
6226 # Code from module stdlib:
6227 # Code from module strftime:
6228 # Code from module symlink:
6229 # Code from module sys_stat:
6230 # Code from module time:
6231 # Code from module time_r:
6232 # Code from module unistd:
6233 # Code from module warn-on-use:
6236 # On Suns, sometimes $CPP names a directory.
6237 if test -n "$CPP" && test -d "$CPP"; then
6238 CPP=
6241 ## If not using gcc, and on Solaris, and no CPP specified, see if
6242 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6243 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6244 test x"$CPP" = x; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6246 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6247 if test "${emacs_cv_sunpro_c+set}" = set; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6254 main ()
6256 #ifndef __SUNPRO_C
6257 fail;
6258 #endif
6261 return 0;
6263 _ACEOF
6264 if ac_fn_c_try_link "$LINENO"; then :
6265 emacs_cv_sunpro_c=yes
6266 else
6267 emacs_cv_sunpro_c=no
6269 rm -f core conftest.err conftest.$ac_objext \
6270 conftest$ac_exeext conftest.$ac_ext
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6274 $as_echo "$emacs_cv_sunpro_c" >&6; }
6276 if test x"$emacs_cv_sunpro_c" = xyes; then
6277 NON_GNU_CPP="$CC -E -Xs"
6281 #### Some systems specify a CPP to use unless we are using GCC.
6282 #### Now that we know whether we are using GCC, we can decide whether
6283 #### to use that one.
6284 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6285 then
6286 CPP="$NON_GNU_CPP"
6289 #### Some systems specify a CC to use unless we are using GCC.
6290 #### Now that we know whether we are using GCC, we can decide whether
6291 #### to use that one.
6292 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6293 test x$cc_specified != xyes
6294 then
6295 CC="$NON_GNU_CC"
6298 if test x$GCC = xyes; then
6299 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6300 else
6301 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6304 ### Use -Wdeclaration-after-statement if the compiler supports it
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6306 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6307 SAVE_CFLAGS="$CFLAGS"
6308 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6313 main ()
6317 return 0;
6319 _ACEOF
6320 if ac_fn_c_try_compile "$LINENO"; then :
6321 has_option=yes
6322 else
6323 has_option=no
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 if test $has_option = yes; then
6327 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6330 $as_echo "$has_option" >&6; }
6331 CFLAGS="$SAVE_CFLAGS"
6332 unset has_option
6333 unset SAVE_CFLAGS
6335 ### Use -Wold-style-definition if the compiler supports it
6336 # This can be removed when conversion to standard C is finished.
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6338 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6339 SAVE_CFLAGS="$CFLAGS"
6340 CFLAGS="$CFLAGS -Wold-style-definition"
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6345 main ()
6349 return 0;
6351 _ACEOF
6352 if ac_fn_c_try_compile "$LINENO"; then :
6353 has_option=yes
6354 else
6355 has_option=no
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358 if test $has_option = yes; then
6359 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6362 $as_echo "$has_option" >&6; }
6363 CFLAGS="$SAVE_CFLAGS"
6364 unset has_option
6365 unset SAVE_CFLAGS
6367 ### Use -Wimplicit-function-declaration if the compiler supports it
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6369 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6370 SAVE_CFLAGS="$CFLAGS"
6371 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6376 main ()
6380 return 0;
6382 _ACEOF
6383 if ac_fn_c_try_compile "$LINENO"; then :
6384 has_option=yes
6385 else
6386 has_option=no
6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 if test $has_option = yes; then
6390 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6393 $as_echo "$has_option" >&6; }
6394 CFLAGS="$SAVE_CFLAGS"
6395 unset has_option
6396 unset SAVE_CFLAGS
6401 #### Some other nice autoconf tests.
6403 ac_ext=c
6404 ac_cpp='$CPP $CPPFLAGS'
6405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6409 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6410 # On Suns, sometimes $CPP names a directory.
6411 if test -n "$CPP" && test -d "$CPP"; then
6412 CPP=
6414 if test -z "$CPP"; then
6415 if test "${ac_cv_prog_CPP+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 # Double quotes because CPP needs to be expanded
6419 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6421 ac_preproc_ok=false
6422 for ac_c_preproc_warn_flag in '' yes
6424 # Use a header file that comes with gcc, so configuring glibc
6425 # with a fresh cross-compiler works.
6426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6427 # <limits.h> exists even on freestanding compilers.
6428 # On the NeXT, cc -E runs the code through the compiler's parser,
6429 # not just through cpp. "Syntax error" is here to catch this case.
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6432 #ifdef __STDC__
6433 # include <limits.h>
6434 #else
6435 # include <assert.h>
6436 #endif
6437 Syntax error
6438 _ACEOF
6439 if ac_fn_c_try_cpp "$LINENO"; then :
6441 else
6442 # Broken: fails on valid input.
6443 continue
6445 rm -f conftest.err conftest.$ac_ext
6447 # OK, works on sane cases. Now check whether nonexistent headers
6448 # can be detected and how.
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 #include <ac_nonexistent.h>
6452 _ACEOF
6453 if ac_fn_c_try_cpp "$LINENO"; then :
6454 # Broken: success on invalid input.
6455 continue
6456 else
6457 # Passes both tests.
6458 ac_preproc_ok=:
6459 break
6461 rm -f conftest.err conftest.$ac_ext
6463 done
6464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6465 rm -f conftest.err conftest.$ac_ext
6466 if $ac_preproc_ok; then :
6467 break
6470 done
6471 ac_cv_prog_CPP=$CPP
6474 CPP=$ac_cv_prog_CPP
6475 else
6476 ac_cv_prog_CPP=$CPP
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6479 $as_echo "$CPP" >&6; }
6480 ac_preproc_ok=false
6481 for ac_c_preproc_warn_flag in '' yes
6483 # Use a header file that comes with gcc, so configuring glibc
6484 # with a fresh cross-compiler works.
6485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6486 # <limits.h> exists even on freestanding compilers.
6487 # On the NeXT, cc -E runs the code through the compiler's parser,
6488 # not just through cpp. "Syntax error" is here to catch this case.
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #ifdef __STDC__
6492 # include <limits.h>
6493 #else
6494 # include <assert.h>
6495 #endif
6496 Syntax error
6497 _ACEOF
6498 if ac_fn_c_try_cpp "$LINENO"; then :
6500 else
6501 # Broken: fails on valid input.
6502 continue
6504 rm -f conftest.err conftest.$ac_ext
6506 # OK, works on sane cases. Now check whether nonexistent headers
6507 # can be detected and how.
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510 #include <ac_nonexistent.h>
6511 _ACEOF
6512 if ac_fn_c_try_cpp "$LINENO"; then :
6513 # Broken: success on invalid input.
6514 continue
6515 else
6516 # Passes both tests.
6517 ac_preproc_ok=:
6518 break
6520 rm -f conftest.err conftest.$ac_ext
6522 done
6523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6524 rm -f conftest.err conftest.$ac_ext
6525 if $ac_preproc_ok; then :
6527 else
6528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6530 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6531 See \`config.log' for more details." "$LINENO" 5; }
6534 ac_ext=c
6535 ac_cpp='$CPP $CPPFLAGS'
6536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541 if test "x$RANLIB" = x; then
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 if test -n "$RANLIB"; then
6551 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6564 done
6565 done
6566 IFS=$as_save_IFS
6570 RANLIB=$ac_cv_prog_RANLIB
6571 if test -n "$RANLIB"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6573 $as_echo "$RANLIB" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6581 if test -z "$ac_cv_prog_RANLIB"; then
6582 ac_ct_RANLIB=$RANLIB
6583 # Extract the first word of "ranlib", so it can be a program name with args.
6584 set dummy ranlib; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 if test -n "$ac_ct_RANLIB"; then
6591 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_ac_ct_RANLIB="ranlib"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6604 done
6605 done
6606 IFS=$as_save_IFS
6610 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6611 if test -n "$ac_ct_RANLIB"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6613 $as_echo "$ac_ct_RANLIB" >&6; }
6614 else
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6619 if test "x$ac_ct_RANLIB" = x; then
6620 RANLIB=":"
6621 else
6622 case $cross_compiling:$ac_tool_warned in
6623 yes:)
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626 ac_tool_warned=yes ;;
6627 esac
6628 RANLIB=$ac_ct_RANLIB
6630 else
6631 RANLIB="$ac_cv_prog_RANLIB"
6636 ## Although we're running on an amd64 kernel, we're actually compiling for
6637 ## the x86 architecture. The user should probably have provided an
6638 ## explicit --build to `configure', but if everything else than the kernel
6639 ## is running in i386 mode, we can help them out.
6640 if test "$machine" = "amdx86-64"; then
6641 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6642 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6646 if test "$ac_cv_have_decl_i386" = "yes"; then
6647 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6648 machine=intel386
6649 machfile="m/${machine}.h"
6653 # Extract the first word of "install-info", so it can be a program name with args.
6654 set dummy install-info; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 case $INSTALL_INFO in
6661 [\\/]* | ?:[\\/]*)
6662 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6668 IFS=$as_save_IFS
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 break 2
6676 done
6677 done
6678 IFS=$as_save_IFS
6681 esac
6683 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6684 if test -n "$INSTALL_INFO"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6686 $as_echo "$INSTALL_INFO" >&6; }
6687 else
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6693 # Extract the first word of "install-info", so it can be a program name with args.
6694 set dummy install-info; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 case $INSTALL_INFO in
6701 [\\/]* | ?:[\\/]*)
6702 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in /usr/sbin
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6718 IFS=$as_save_IFS
6721 esac
6723 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6724 if test -n "$INSTALL_INFO"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6726 $as_echo "$INSTALL_INFO" >&6; }
6727 else
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6733 # Extract the first word of "install-info", so it can be a program name with args.
6734 set dummy install-info; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6738 $as_echo_n "(cached) " >&6
6739 else
6740 case $INSTALL_INFO in
6741 [\\/]* | ?:[\\/]*)
6742 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in /sbin
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6756 done
6757 done
6758 IFS=$as_save_IFS
6760 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6762 esac
6764 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6765 if test -n "$INSTALL_INFO"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6767 $as_echo "$INSTALL_INFO" >&6; }
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6774 # Extract the first word of "gzip", so it can be a program name with args.
6775 set dummy gzip; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6780 else
6781 case $GZIP_PROG in
6782 [\\/]* | ?:[\\/]*)
6783 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6797 done
6798 done
6799 IFS=$as_save_IFS
6802 esac
6804 GZIP_PROG=$ac_cv_path_GZIP_PROG
6805 if test -n "$GZIP_PROG"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6807 $as_echo "$GZIP_PROG" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6816 ## Need makeinfo >= 4.6 (?) to build the manuals.
6817 # Extract the first word of "makeinfo", so it can be a program name with args.
6818 set dummy makeinfo; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 case $MAKEINFO in
6825 [\\/]* | ?:[\\/]*)
6826 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6840 done
6841 done
6842 IFS=$as_save_IFS
6844 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6846 esac
6848 MAKEINFO=$ac_cv_path_MAKEINFO
6849 if test -n "$MAKEINFO"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6851 $as_echo "$MAKEINFO" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6858 if test "$MAKEINFO" != "no" && \
6859 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
6860 MAKEINFO=no
6863 ## Makeinfo is unusual. For a released Emacs, the manuals are
6864 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6865 ## therefore in the category of "special tools" not normally required, which
6866 ## configure does not have to check for (eg autoconf itself).
6867 ## In a Bazaar checkout on the other hand, the manuals are not included.
6868 ## So makeinfo is a requirement to build from Bazaar, and configure
6869 ## should test for it as it does for any other build requirement.
6870 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6871 ## with pre-built manuals, from a Bazaar checkout.
6872 HAVE_MAKEINFO=yes
6874 if test "$MAKEINFO" = "no"; then
6875 MAKEINFO=makeinfo
6876 if test "x${with_makeinfo}" = "xno"; then
6877 HAVE_MAKEINFO=no
6878 elif test ! -e $srcdir/info/emacs; then
6879 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
6880 source tree does not seem to have pre-built manuals in the \`info' directory.
6881 Either install a suitable version of makeinfo, or re-run configure
6882 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6888 if test x$GCC = xyes; then
6889 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6890 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6891 else
6892 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6893 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6897 late_LDFLAGS=$LDFLAGS
6898 if test x$GCC = xyes; then
6899 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6900 else
6901 LDFLAGS="$LDFLAGS -znocombreloc"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6905 $as_echo_n "checking for -znocombreloc... " >&6; }
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6910 main ()
6914 return 0;
6916 _ACEOF
6917 if ac_fn_c_try_link "$LINENO"; then :
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6919 $as_echo "yes" >&6; }
6920 else
6921 LDFLAGS=$late_LDFLAGS
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6925 rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6929 # The value of CPP is a quoted variable reference, so we need to do this
6930 # to get its actual value...
6931 CPP=`eval "echo $CPP"`
6934 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6935 case "$opsys" in
6936 your-opsys-here) CANNOT_DUMP=yes ;;
6937 esac
6939 test "$CANNOT_DUMP" = "yes" && \
6941 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6947 UNEXEC_OBJ=unexelf.o
6948 case "$opsys" in
6949 # MSDOS uses unexcoff.o
6950 # MSWindows uses unexw32.o
6951 aix4-2)
6952 UNEXEC_OBJ=unexaix.o
6954 cygwin)
6955 UNEXEC_OBJ=unexcw.o
6957 darwin)
6958 UNEXEC_OBJ=unexmacosx.o
6960 hpux10-20 | hpux11)
6961 UNEXEC_OBJ=unexhp9k800.o
6963 sol2-10)
6964 # Use the Solaris dldump() function, called from unexsol.c, to dump
6965 # emacs, instead of the generic ELF dump code found in unexelf.c.
6966 # The resulting binary has a complete symbol table, and is better
6967 # for debugging and other observability tools (debuggers, pstack, etc).
6969 # If you encounter a problem using dldump(), please consider sending
6970 # a message to the OpenSolaris tools-linking mailing list:
6971 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6973 # It is likely that dldump() works with older Solaris too, but this has
6974 # not been tested, so for now this change is for Solaris 10 or newer.
6975 UNEXEC_OBJ=unexsol.o
6977 esac
6979 LD_SWITCH_SYSTEM=
6980 case "$opsys" in
6981 freebsd)
6982 ## Let `ld' find image libs and similar things in /usr/local/lib.
6983 ## The system compiler, GCC, has apparently been modified to not
6984 ## look there, contrary to what a stock GCC would do.
6985 LD_SWITCH_SYSTEM=-L/usr/local/lib
6988 gnu-linux)
6989 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6990 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6993 netbsd)
6994 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6997 openbsd)
6998 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6999 ## otherwise Emacs dumps core on elf systems.
7000 LD_SWITCH_SYSTEM="-Z"
7002 esac
7005 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7007 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7008 ## which has not been defined yet. When this was handled with cpp,
7009 ## it was expanded to null when configure sourced the s/*.h file.
7010 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7011 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7012 ## (or somesuch), but because it is supposed to go at the _front_
7013 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7014 ## Compare with the gnu-linux case below, which added to the end
7015 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7016 ## LD_SWITCH_SYSTEM_TEMACS.
7017 case "$opsys" in
7018 netbsd|openbsd)
7019 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7020 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7021 esac
7024 C_SWITCH_MACHINE=
7025 if test "$machine" = "alpha"; then
7026 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7027 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7031 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7032 ## With ELF, make sure that all common symbols get allocated to in the
7033 ## data section. Otherwise, the dump of temacs may miss variables in
7034 ## the shared library that have been initialized. For example, with
7035 ## GNU libc, __malloc_initialized would normally be resolved to the
7036 ## shared library's .bss section, which is fatal.
7037 if test "x$GCC" = "xyes"; then
7038 C_SWITCH_MACHINE="-fno-common"
7039 else
7040 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7042 else
7043 UNEXEC_OBJ=unexalpha.o
7050 C_SWITCH_SYSTEM=
7051 ## Some programs in src produce warnings saying certain subprograms
7052 ## are too complex and need a MAXMEM value greater than 2000 for
7053 ## additional optimization. --nils@exp-math.uni-essen.de
7054 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7055 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7056 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7057 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7061 LIBS_SYSTEM=
7062 case "$opsys" in
7063 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7064 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7066 freebsd) LIBS_SYSTEM="-lutil" ;;
7068 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7070 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7072 ## Motif needs -lgen.
7073 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7074 esac
7078 ### Make sure subsequent tests use flags consistent with the build flags.
7080 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7081 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7082 else
7083 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7086 # Check whether --enable-largefile was given.
7087 if test "${enable_largefile+set}" = set; then :
7088 enableval=$enable_largefile;
7091 if test "$enable_largefile" != no; then
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7094 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7095 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 ac_cv_sys_largefile_CC=no
7099 if test "$GCC" != yes; then
7100 ac_save_CC=$CC
7101 while :; do
7102 # IRIX 6.2 and later do not support large files by default,
7103 # so use the C compiler's -n32 option if that helps.
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 #include <sys/types.h>
7107 /* Check that off_t can represent 2**63 - 1 correctly.
7108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7109 since some C++ compilers masquerading as C compilers
7110 incorrectly reject 9223372036854775807. */
7111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7113 && LARGE_OFF_T % 2147483647 == 1)
7114 ? 1 : -1];
7116 main ()
7120 return 0;
7122 _ACEOF
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124 break
7126 rm -f core conftest.err conftest.$ac_objext
7127 CC="$CC -n32"
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 ac_cv_sys_largefile_CC=' -n32'; break
7131 rm -f core conftest.err conftest.$ac_objext
7132 break
7133 done
7134 CC=$ac_save_CC
7135 rm -f conftest.$ac_ext
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7139 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7140 if test "$ac_cv_sys_largefile_CC" != no; then
7141 CC=$CC$ac_cv_sys_largefile_CC
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7145 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7146 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7147 $as_echo_n "(cached) " >&6
7148 else
7149 while :; do
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 #include <sys/types.h>
7153 /* Check that off_t can represent 2**63 - 1 correctly.
7154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7155 since some C++ compilers masquerading as C compilers
7156 incorrectly reject 9223372036854775807. */
7157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7159 && LARGE_OFF_T % 2147483647 == 1)
7160 ? 1 : -1];
7162 main ()
7166 return 0;
7168 _ACEOF
7169 if ac_fn_c_try_compile "$LINENO"; then :
7170 ac_cv_sys_file_offset_bits=no; break
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #define _FILE_OFFSET_BITS 64
7176 #include <sys/types.h>
7177 /* Check that off_t can represent 2**63 - 1 correctly.
7178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7179 since some C++ compilers masquerading as C compilers
7180 incorrectly reject 9223372036854775807. */
7181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7183 && LARGE_OFF_T % 2147483647 == 1)
7184 ? 1 : -1];
7186 main ()
7190 return 0;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 ac_cv_sys_file_offset_bits=64; break
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 ac_cv_sys_file_offset_bits=unknown
7198 break
7199 done
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7202 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7203 case $ac_cv_sys_file_offset_bits in #(
7204 no | unknown) ;;
7206 cat >>confdefs.h <<_ACEOF
7207 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7208 _ACEOF
7210 esac
7211 rm -rf conftest*
7212 if test $ac_cv_sys_file_offset_bits = unknown; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7214 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7215 if test "${ac_cv_sys_large_files+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 while :; do
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <sys/types.h>
7222 /* Check that off_t can represent 2**63 - 1 correctly.
7223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7224 since some C++ compilers masquerading as C compilers
7225 incorrectly reject 9223372036854775807. */
7226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7228 && LARGE_OFF_T % 2147483647 == 1)
7229 ? 1 : -1];
7231 main ()
7235 return 0;
7237 _ACEOF
7238 if ac_fn_c_try_compile "$LINENO"; then :
7239 ac_cv_sys_large_files=no; break
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 #define _LARGE_FILES 1
7245 #include <sys/types.h>
7246 /* Check that off_t can represent 2**63 - 1 correctly.
7247 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7248 since some C++ compilers masquerading as C compilers
7249 incorrectly reject 9223372036854775807. */
7250 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7251 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7252 && LARGE_OFF_T % 2147483647 == 1)
7253 ? 1 : -1];
7255 main ()
7259 return 0;
7261 _ACEOF
7262 if ac_fn_c_try_compile "$LINENO"; then :
7263 ac_cv_sys_large_files=1; break
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 ac_cv_sys_large_files=unknown
7267 break
7268 done
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7271 $as_echo "$ac_cv_sys_large_files" >&6; }
7272 case $ac_cv_sys_large_files in #(
7273 no | unknown) ;;
7275 cat >>confdefs.h <<_ACEOF
7276 #define _LARGE_FILES $ac_cv_sys_large_files
7277 _ACEOF
7279 esac
7280 rm -rf conftest*
7286 ## If user specified a crt-dir, use that unconditionally.
7287 if test "X$CRT_DIR" = "X"; then
7289 case "$canonical" in
7290 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7291 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7292 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7293 ## For anything else (eg /usr/lib32), it is up the user to specify
7294 ## the location (bug#5655).
7295 ## Test for crtn.o, not just the directory, because sometimes the
7296 ## directory exists but does not have the relevant files (bug#1287).
7297 ## FIXME better to test for binary compatibility somehow.
7298 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7301 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7302 esac
7304 case "$opsys" in
7305 hpux10-20) CRT_DIR=/lib ;;
7306 esac
7308 ## Default is /usr/lib.
7309 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7311 else
7313 ## Some platforms don't use any of these files, so it is not
7314 ## appropriate to put this test outside the if block.
7315 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7316 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7322 LIB_MATH=-lm
7323 LIB_STANDARD=
7324 START_FILES=
7326 case $opsys in
7327 cygwin )
7328 LIB_MATH=
7329 START_FILES='pre-crt0.o'
7331 darwin )
7332 ## Adding -lm confuses the dynamic linker, so omit it.
7333 LIB_MATH=
7334 START_FILES='pre-crt0.o'
7336 freebsd )
7337 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7338 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7340 gnu-linux | gnu-kfreebsd )
7341 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7342 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7344 hpux10-20 | hpux11 )
7345 LIB_STANDARD=-lc
7346 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7348 netbsd | openbsd )
7349 if test -f $CRT_DIR/crti.o; then
7350 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7351 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7352 else
7353 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7354 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7357 esac
7365 if test "${with_sound}" != "no"; then
7366 # Sound support for GNU/Linux and the free BSDs.
7367 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7368 do :
7369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7371 eval as_val=\$$as_ac_Header
7372 if test "x$as_val" = x""yes; then :
7373 cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7376 have_sound_header=yes
7379 done
7381 # Emulation library used on NetBSD.
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7383 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7384 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7387 ac_check_lib_save_LIBS=$LIBS
7388 LIBS="-lossaudio $LIBS"
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7392 /* Override any GCC internal prototype to avoid an error.
7393 Use char because int might match the return type of a GCC
7394 builtin and then its argument prototype would still apply. */
7395 #ifdef __cplusplus
7396 extern "C"
7397 #endif
7398 char _oss_ioctl ();
7400 main ()
7402 return _oss_ioctl ();
7404 return 0;
7406 _ACEOF
7407 if ac_fn_c_try_link "$LINENO"; then :
7408 ac_cv_lib_ossaudio__oss_ioctl=yes
7409 else
7410 ac_cv_lib_ossaudio__oss_ioctl=no
7412 rm -f core conftest.err conftest.$ac_objext \
7413 conftest$ac_exeext conftest.$ac_ext
7414 LIBS=$ac_check_lib_save_LIBS
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7417 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7418 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7419 LIBSOUND=-lossaudio
7420 else
7421 LIBSOUND=
7426 ALSA_REQUIRED=1.0.0
7427 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7429 succeeded=no
7431 # Extract the first word of "pkg-config", so it can be a program name with args.
7432 set dummy pkg-config; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 case $PKG_CONFIG in
7439 [\\/]* | ?:[\\/]*)
7440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7454 done
7455 done
7456 IFS=$as_save_IFS
7458 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7460 esac
7462 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7463 if test -n "$PKG_CONFIG"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7465 $as_echo "$PKG_CONFIG" >&6; }
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7473 if test "$PKG_CONFIG" = "no" ; then
7474 HAVE_ALSA=no
7475 else
7476 PKG_CONFIG_MIN_VERSION=0.9.0
7477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7479 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7481 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7483 $as_echo "yes" >&6; }
7484 succeeded=yes
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7487 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7488 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7490 $as_echo "$ALSA_CFLAGS" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7493 $as_echo_n "checking ALSA_LIBS... " >&6; }
7494 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7496 $as_echo "$ALSA_LIBS" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 ALSA_CFLAGS=""
7501 ALSA_LIBS=""
7502 ## If we have a custom action on failure, don't print errors, but
7503 ## do set a variable so people can do so.
7504 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7510 else
7511 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7512 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7516 if test $succeeded = yes; then
7517 HAVE_ALSA=yes
7518 else
7519 HAVE_ALSA=no
7522 if test $HAVE_ALSA = yes; then
7523 SAVE_CFLAGS="$CFLAGS"
7524 SAVE_LDFLAGS="$LDFLAGS"
7525 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7526 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 #include <asoundlib.h>
7531 main ()
7533 snd_lib_error_set_handler (0);
7535 return 0;
7537 _ACEOF
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539 emacs_alsa_normal=yes
7540 else
7541 emacs_alsa_normal=no
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 if test "$emacs_alsa_normal" != yes; then
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 #include <alsa/asoundlib.h>
7549 main ()
7551 snd_lib_error_set_handler (0);
7553 return 0;
7555 _ACEOF
7556 if ac_fn_c_try_compile "$LINENO"; then :
7557 emacs_alsa_subdir=yes
7558 else
7559 emacs_alsa_subdir=no
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 if test "$emacs_alsa_subdir" != yes; then
7563 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7565 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7568 CFLAGS="$SAVE_CFLAGS"
7569 LDFLAGS="$SAVE_LDFLAGS"
7570 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7571 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7573 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7577 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7578 case "$opsys" in
7579 gnu-linux|freebsd|netbsd)
7581 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7584 esac
7590 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7591 linux/version.h sys/systeminfo.h limits.h \
7592 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7593 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7594 sys/utsname.h pwd.h utmp.h dirent.h util.h
7595 do :
7596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7597 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7598 eval as_val=\$$as_ac_Header
7599 if test "x$as_val" = x""yes; then :
7600 cat >>confdefs.h <<_ACEOF
7601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7602 _ACEOF
7606 done
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7610 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 #include <sys/personality.h>
7615 main ()
7617 personality (PER_LINUX32)
7619 return 0;
7621 _ACEOF
7622 if ac_fn_c_try_compile "$LINENO"; then :
7623 emacs_cv_personality_linux32=yes
7624 else
7625 emacs_cv_personality_linux32=no
7627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7629 $as_echo "$emacs_cv_personality_linux32" >&6; }
7631 if test $emacs_cv_personality_linux32 = yes; then
7633 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7637 for ac_header in term.h
7638 do :
7639 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7640 if test "x$ac_cv_header_term_h" = x""yes; then :
7641 cat >>confdefs.h <<_ACEOF
7642 #define HAVE_TERM_H 1
7643 _ACEOF
7647 done
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7650 $as_echo_n "checking for ANSI C header files... " >&6; }
7651 if test "${ac_cv_header_stdc+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 #include <stdlib.h>
7657 #include <stdarg.h>
7658 #include <string.h>
7659 #include <float.h>
7662 main ()
7666 return 0;
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670 ac_cv_header_stdc=yes
7671 else
7672 ac_cv_header_stdc=no
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676 if test $ac_cv_header_stdc = yes; then
7677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 #include <string.h>
7682 _ACEOF
7683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684 $EGREP "memchr" >/dev/null 2>&1; then :
7686 else
7687 ac_cv_header_stdc=no
7689 rm -f conftest*
7693 if test $ac_cv_header_stdc = yes; then
7694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #include <stdlib.h>
7699 _ACEOF
7700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701 $EGREP "free" >/dev/null 2>&1; then :
7703 else
7704 ac_cv_header_stdc=no
7706 rm -f conftest*
7710 if test $ac_cv_header_stdc = yes; then
7711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7712 if test "$cross_compiling" = yes; then :
7714 else
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 #include <ctype.h>
7718 #include <stdlib.h>
7719 #if ((' ' & 0x0FF) == 0x020)
7720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7722 #else
7723 # define ISLOWER(c) \
7724 (('a' <= (c) && (c) <= 'i') \
7725 || ('j' <= (c) && (c) <= 'r') \
7726 || ('s' <= (c) && (c) <= 'z'))
7727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7728 #endif
7730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7732 main ()
7734 int i;
7735 for (i = 0; i < 256; i++)
7736 if (XOR (islower (i), ISLOWER (i))
7737 || toupper (i) != TOUPPER (i))
7738 return 2;
7739 return 0;
7741 _ACEOF
7742 if ac_fn_c_try_run "$LINENO"; then :
7744 else
7745 ac_cv_header_stdc=no
7747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7748 conftest.$ac_objext conftest.beam conftest.$ac_ext
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7754 $as_echo "$ac_cv_header_stdc" >&6; }
7755 if test $ac_cv_header_stdc = yes; then
7757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7762 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7763 if test "${ac_cv_header_time+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 #include <sys/types.h>
7769 #include <sys/time.h>
7770 #include <time.h>
7773 main ()
7775 if ((struct tm *) 0)
7776 return 0;
7778 return 0;
7780 _ACEOF
7781 if ac_fn_c_try_compile "$LINENO"; then :
7782 ac_cv_header_time=yes
7783 else
7784 ac_cv_header_time=no
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7789 $as_echo "$ac_cv_header_time" >&6; }
7790 if test $ac_cv_header_time = yes; then
7792 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7796 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7797 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7798 ac_have_decl=1
7799 else
7800 ac_have_decl=0
7803 cat >>confdefs.h <<_ACEOF
7804 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7805 _ACEOF
7807 if test $ac_cv_have_decl_sys_siglist != yes; then
7808 # For Tru64, at least:
7809 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7810 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7811 ac_have_decl=1
7812 else
7813 ac_have_decl=0
7816 cat >>confdefs.h <<_ACEOF
7817 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7818 _ACEOF
7820 if test $ac_cv_have_decl___sys_siglist = yes; then
7822 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7827 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7828 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
7830 else
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <sys/types.h>
7834 #include <sys/wait.h>
7835 #ifndef WEXITSTATUS
7836 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7837 #endif
7838 #ifndef WIFEXITED
7839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7840 #endif
7843 main ()
7845 int s;
7846 wait (&s);
7847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7849 return 0;
7851 _ACEOF
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853 ac_cv_header_sys_wait_h=yes
7854 else
7855 ac_cv_header_sys_wait_h=no
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7860 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7861 if test $ac_cv_header_sys_wait_h = yes; then
7863 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7869 $as_echo_n "checking for struct utimbuf... " >&6; }
7870 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7875 #ifdef TIME_WITH_SYS_TIME
7876 #include <sys/time.h>
7877 #include <time.h>
7878 #else
7879 #ifdef HAVE_SYS_TIME_H
7880 #include <sys/time.h>
7881 #else
7882 #include <time.h>
7883 #endif
7884 #endif
7885 #ifdef HAVE_UTIME_H
7886 #include <utime.h>
7887 #endif
7889 main ()
7891 static struct utimbuf x; x.actime = x.modtime;
7893 return 0;
7895 _ACEOF
7896 if ac_fn_c_try_compile "$LINENO"; then :
7897 emacs_cv_struct_utimbuf=yes
7898 else
7899 emacs_cv_struct_utimbuf=no
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7904 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7905 if test $emacs_cv_struct_utimbuf = yes; then
7907 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7912 $as_echo_n "checking for speed_t... " >&6; }
7913 if test "${emacs_cv_speed_t+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 #include <termios.h>
7920 main ()
7922 speed_t x = 1;
7924 return 0;
7926 _ACEOF
7927 if ac_fn_c_try_compile "$LINENO"; then :
7928 emacs_cv_speed_t=yes
7929 else
7930 emacs_cv_speed_t=no
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7935 $as_echo "$emacs_cv_speed_t" >&6; }
7936 if test $emacs_cv_speed_t = yes; then
7938 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7943 $as_echo_n "checking for struct timeval... " >&6; }
7944 if test "${emacs_cv_struct_timeval+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 #ifdef TIME_WITH_SYS_TIME
7950 #include <sys/time.h>
7951 #include <time.h>
7952 #else
7953 #ifdef HAVE_SYS_TIME_H
7954 #include <sys/time.h>
7955 #else
7956 #include <time.h>
7957 #endif
7958 #endif
7960 main ()
7962 static struct timeval x; x.tv_sec = x.tv_usec;
7964 return 0;
7966 _ACEOF
7967 if ac_fn_c_try_compile "$LINENO"; then :
7968 emacs_cv_struct_timeval=yes
7969 else
7970 emacs_cv_struct_timeval=no
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7975 $as_echo "$emacs_cv_struct_timeval" >&6; }
7976 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7977 if test $emacs_cv_struct_timeval = yes; then
7979 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7984 $as_echo_n "checking for struct exception... " >&6; }
7985 if test "${emacs_cv_struct_exception+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 <math.h>
7992 main ()
7994 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7996 return 0;
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000 emacs_cv_struct_exception=yes
8001 else
8002 emacs_cv_struct_exception=no
8004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8007 $as_echo "$emacs_cv_struct_exception" >&6; }
8008 HAVE_EXCEPTION=$emacs_cv_struct_exception
8009 if test $emacs_cv_struct_exception != yes; then
8011 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8015 for ac_header in net/if.h
8016 do :
8017 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8018 #if HAVE_SYS_SOCKET_H
8019 #include <sys/socket.h>
8020 #endif
8022 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8023 cat >>confdefs.h <<_ACEOF
8024 #define HAVE_NET_IF_H 1
8025 _ACEOF
8029 done
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8033 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8034 if test "${ac_cv_struct_tm+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8036 else
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 #include <sys/types.h>
8040 #include <time.h>
8043 main ()
8045 struct tm tm;
8046 int *p = &tm.tm_sec;
8047 return !p;
8049 return 0;
8051 _ACEOF
8052 if ac_fn_c_try_compile "$LINENO"; then :
8053 ac_cv_struct_tm=time.h
8054 else
8055 ac_cv_struct_tm=sys/time.h
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8060 $as_echo "$ac_cv_struct_tm" >&6; }
8061 if test $ac_cv_struct_tm = sys/time.h; then
8063 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8067 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8068 #include <$ac_cv_struct_tm>
8071 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8073 cat >>confdefs.h <<_ACEOF
8074 #define HAVE_STRUCT_TM_TM_ZONE 1
8075 _ACEOF
8080 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8082 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8084 else
8085 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8087 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8088 ac_have_decl=1
8089 else
8090 ac_have_decl=0
8093 cat >>confdefs.h <<_ACEOF
8094 #define HAVE_DECL_TZNAME $ac_have_decl
8095 _ACEOF
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8098 $as_echo_n "checking for tzname... " >&6; }
8099 if test "${ac_cv_var_tzname+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #include <time.h>
8105 #if !HAVE_DECL_TZNAME
8106 extern char *tzname[];
8107 #endif
8110 main ()
8112 return tzname[0][0];
8114 return 0;
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118 ac_cv_var_tzname=yes
8119 else
8120 ac_cv_var_tzname=no
8122 rm -f core conftest.err conftest.$ac_objext \
8123 conftest$ac_exeext conftest.$ac_ext
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8126 $as_echo "$ac_cv_var_tzname" >&6; }
8127 if test $ac_cv_var_tzname = yes; then
8129 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8134 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8136 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8138 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8142 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8143 #if HAVE_SYS_SOCKET_H
8144 #include <sys/socket.h>
8145 #endif
8146 #if HAVE_NET_IF_H
8147 #include <net/if.h>
8148 #endif
8150 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8154 _ACEOF
8158 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8159 #if HAVE_SYS_SOCKET_H
8160 #include <sys/socket.h>
8161 #endif
8162 #if HAVE_NET_IF_H
8163 #include <net/if.h>
8164 #endif
8166 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8168 cat >>confdefs.h <<_ACEOF
8169 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8170 _ACEOF
8174 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8175 #if HAVE_SYS_SOCKET_H
8176 #include <sys/socket.h>
8177 #endif
8178 #if HAVE_NET_IF_H
8179 #include <net/if.h>
8180 #endif
8182 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8184 cat >>confdefs.h <<_ACEOF
8185 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8186 _ACEOF
8190 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8191 #if HAVE_SYS_SOCKET_H
8192 #include <sys/socket.h>
8193 #endif
8194 #if HAVE_NET_IF_H
8195 #include <net/if.h>
8196 #endif
8198 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8200 cat >>confdefs.h <<_ACEOF
8201 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8202 _ACEOF
8206 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8207 #if HAVE_SYS_SOCKET_H
8208 #include <sys/socket.h>
8209 #endif
8210 #if HAVE_NET_IF_H
8211 #include <net/if.h>
8212 #endif
8214 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8216 cat >>confdefs.h <<_ACEOF
8217 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8218 _ACEOF
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8226 $as_echo_n "checking for function prototypes... " >&6; }
8227 if test "$ac_cv_prog_cc_c89" != no; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8229 $as_echo "yes" >&6; }
8231 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8234 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8236 else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8242 $as_echo_n "checking for working volatile... " >&6; }
8243 if test "${ac_cv_c_volatile+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8250 main ()
8253 volatile int x;
8254 int * volatile y = (int *) 0;
8255 return !x && !y;
8257 return 0;
8259 _ACEOF
8260 if ac_fn_c_try_compile "$LINENO"; then :
8261 ac_cv_c_volatile=yes
8262 else
8263 ac_cv_c_volatile=no
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8268 $as_echo "$ac_cv_c_volatile" >&6; }
8269 if test $ac_cv_c_volatile = no; then
8271 $as_echo "#define volatile /**/" >>confdefs.h
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8276 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8277 if test "${ac_cv_c_const+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8279 else
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8284 main ()
8286 /* FIXME: Include the comments suggested by Paul. */
8287 #ifndef __cplusplus
8288 /* Ultrix mips cc rejects this. */
8289 typedef int charset[2];
8290 const charset cs;
8291 /* SunOS 4.1.1 cc rejects this. */
8292 char const *const *pcpcc;
8293 char **ppc;
8294 /* NEC SVR4.0.2 mips cc rejects this. */
8295 struct point {int x, y;};
8296 static struct point const zero = {0,0};
8297 /* AIX XL C 1.02.0.0 rejects this.
8298 It does not let you subtract one const X* pointer from another in
8299 an arm of an if-expression whose if-part is not a constant
8300 expression */
8301 const char *g = "string";
8302 pcpcc = &g + (g ? g-g : 0);
8303 /* HPUX 7.0 cc rejects these. */
8304 ++pcpcc;
8305 ppc = (char**) pcpcc;
8306 pcpcc = (char const *const *) ppc;
8307 { /* SCO 3.2v4 cc rejects this. */
8308 char *t;
8309 char const *s = 0 ? (char *) 0 : (char const *) 0;
8311 *t++ = 0;
8312 if (s) return 0;
8314 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8315 int x[] = {25, 17};
8316 const int *foo = &x[0];
8317 ++foo;
8319 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8320 typedef const int *iptr;
8321 iptr p = 0;
8322 ++p;
8324 { /* AIX XL C 1.02.0.0 rejects this saying
8325 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8326 struct s { int j; const int *ap[3]; };
8327 struct s *b; b->j = 5;
8329 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8330 const int foo = 10;
8331 if (!foo) return 0;
8333 return !cs[0] && !zero.x;
8334 #endif
8337 return 0;
8339 _ACEOF
8340 if ac_fn_c_try_compile "$LINENO"; then :
8341 ac_cv_c_const=yes
8342 else
8343 ac_cv_c_const=no
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8348 $as_echo "$ac_cv_c_const" >&6; }
8349 if test $ac_cv_c_const = no; then
8351 $as_echo "#define const /**/" >>confdefs.h
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8356 $as_echo_n "checking for void * support... " >&6; }
8357 if test "${emacs_cv_void_star+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8359 else
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8364 main ()
8366 void * foo;
8368 return 0;
8370 _ACEOF
8371 if ac_fn_c_try_compile "$LINENO"; then :
8372 emacs_cv_void_star=yes
8373 else
8374 emacs_cv_void_star=no
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8379 $as_echo "$emacs_cv_void_star" >&6; }
8380 if test $emacs_cv_void_star = yes; then
8381 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8383 else
8384 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8389 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8390 if test "${ac_cv_c_bigendian+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 ac_cv_c_bigendian=unknown
8394 # See if we're dealing with a universal compiler.
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #ifndef __APPLE_CC__
8398 not a universal capable compiler
8399 #endif
8400 typedef int dummy;
8402 _ACEOF
8403 if ac_fn_c_try_compile "$LINENO"; then :
8405 # Check for potential -arch flags. It is not universal unless
8406 # there are at least two -arch flags with different values.
8407 ac_arch=
8408 ac_prev=
8409 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8410 if test -n "$ac_prev"; then
8411 case $ac_word in
8412 i?86 | x86_64 | ppc | ppc64)
8413 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8414 ac_arch=$ac_word
8415 else
8416 ac_cv_c_bigendian=universal
8417 break
8420 esac
8421 ac_prev=
8422 elif test "x$ac_word" = "x-arch"; then
8423 ac_prev=arch
8425 done
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 if test $ac_cv_c_bigendian = unknown; then
8429 # See if sys/param.h defines the BYTE_ORDER macro.
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <sys/types.h>
8433 #include <sys/param.h>
8436 main ()
8438 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8439 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8440 && LITTLE_ENDIAN)
8441 bogus endian macros
8442 #endif
8445 return 0;
8447 _ACEOF
8448 if ac_fn_c_try_compile "$LINENO"; then :
8449 # It does; now see whether it defined to BIG_ENDIAN or not.
8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h. */
8452 #include <sys/types.h>
8453 #include <sys/param.h>
8456 main ()
8458 #if BYTE_ORDER != BIG_ENDIAN
8459 not big endian
8460 #endif
8463 return 0;
8465 _ACEOF
8466 if ac_fn_c_try_compile "$LINENO"; then :
8467 ac_cv_c_bigendian=yes
8468 else
8469 ac_cv_c_bigendian=no
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 if test $ac_cv_c_bigendian = unknown; then
8476 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8479 #include <limits.h>
8482 main ()
8484 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8485 bogus endian macros
8486 #endif
8489 return 0;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 # It does; now see whether it defined to _BIG_ENDIAN or not.
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 #include <limits.h>
8499 main ()
8501 #ifndef _BIG_ENDIAN
8502 not big endian
8503 #endif
8506 return 0;
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 ac_cv_c_bigendian=yes
8511 else
8512 ac_cv_c_bigendian=no
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 if test $ac_cv_c_bigendian = unknown; then
8519 # Compile a test program.
8520 if test "$cross_compiling" = yes; then :
8521 # Try to guess by grepping values from an object file.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 short int ascii_mm[] =
8525 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8526 short int ascii_ii[] =
8527 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8528 int use_ascii (int i) {
8529 return ascii_mm[i] + ascii_ii[i];
8531 short int ebcdic_ii[] =
8532 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8533 short int ebcdic_mm[] =
8534 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8535 int use_ebcdic (int i) {
8536 return ebcdic_mm[i] + ebcdic_ii[i];
8538 extern int foo;
8541 main ()
8543 return use_ascii (foo) == use_ebcdic (foo);
8545 return 0;
8547 _ACEOF
8548 if ac_fn_c_try_compile "$LINENO"; then :
8549 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8550 ac_cv_c_bigendian=yes
8552 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8553 if test "$ac_cv_c_bigendian" = unknown; then
8554 ac_cv_c_bigendian=no
8555 else
8556 # finding both strings is unlikely to happen, but who knows?
8557 ac_cv_c_bigendian=unknown
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 else
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 $ac_includes_default
8567 main ()
8570 /* Are we little or big endian? From Harbison&Steele. */
8571 union
8573 long int l;
8574 char c[sizeof (long int)];
8575 } u;
8576 u.l = 1;
8577 return u.c[sizeof (long int) - 1] == 1;
8580 return 0;
8582 _ACEOF
8583 if ac_fn_c_try_run "$LINENO"; then :
8584 ac_cv_c_bigendian=no
8585 else
8586 ac_cv_c_bigendian=yes
8588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8589 conftest.$ac_objext conftest.beam conftest.$ac_ext
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8595 $as_echo "$ac_cv_c_bigendian" >&6; }
8596 case $ac_cv_c_bigendian in #(
8597 yes)
8598 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8599 ;; #(
8601 ;; #(
8602 universal)
8604 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8606 ;; #(
8608 as_fn_error "unknown endianness
8609 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8610 esac
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8614 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8615 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 char __attribute__ ((__aligned__ (1 << 3))) c;
8622 main ()
8626 return 0;
8628 _ACEOF
8629 if ac_fn_c_try_compile "$LINENO"; then :
8630 emacs_cv_attribute_aligned=yes
8631 else
8632 emacs_cv_attribute_aligned=no
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8637 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8638 if test $emacs_cv_attribute_aligned = yes; then
8640 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8645 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8646 set x ${MAKE-make}
8647 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8648 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 cat >conftest.make <<\_ACEOF
8652 SHELL = /bin/sh
8653 all:
8654 @echo '@@@%%%=$(MAKE)=@@@%%%'
8655 _ACEOF
8656 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8657 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8658 *@@@%%%=?*=@@@%%%*)
8659 eval ac_cv_prog_make_${ac_make}_set=yes;;
8661 eval ac_cv_prog_make_${ac_make}_set=no;;
8662 esac
8663 rm -f conftest.make
8665 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8667 $as_echo "yes" >&6; }
8668 SET_MAKE=
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 SET_MAKE="MAKE=${MAKE-make}"
8676 DEPFLAGS=
8677 MKDEPDIR=":"
8678 deps_frag=deps.mk
8679 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8681 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8682 HAVE_GNU_MAKE=no
8683 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8684 if test "x$testval" != x; then
8685 HAVE_GNU_MAKE=yes
8686 else
8687 ac_enable_autodepend=no
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8690 $as_echo "$HAVE_GNU_MAKE" >&6; }
8691 if test $HAVE_GNU_MAKE = yes; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8693 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8694 SAVE_CFLAGS="$CFLAGS"
8695 CFLAGS="$CFLAGS -MMD -MF deps.d"
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8700 main ()
8704 return 0;
8706 _ACEOF
8707 if ac_fn_c_try_compile "$LINENO"; then :
8709 else
8710 ac_enable_autodepend=no
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 CFLAGS="$SAVE_CFLAGS"
8714 test -f deps.d || ac_enable_autodepend=no
8715 rm -rf deps.d
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8717 $as_echo "$ac_enable_autodepend" >&6; }
8719 if test $ac_enable_autodepend = yes; then
8720 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8721 ## In parallel builds, another make might create depdir between
8722 ## the first test and mkdir, so stick another test on the end.
8723 ## Or use install-sh -d? mkdir -p is not portable.
8724 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8725 deps_frag=autodeps.mk
8728 deps_frag=$srcdir/src/$deps_frag
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8735 $as_echo_n "checking for long file names... " >&6; }
8736 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8738 else
8739 ac_cv_sys_long_file_names=yes
8740 # Test for long file names in all the places we know might matter:
8741 # . the current directory, where building will happen
8742 # $prefix/lib where we will be installing things
8743 # $exec_prefix/lib likewise
8744 # $TMPDIR if set, where it might want to write temporary files
8745 # /tmp where it might want to write temporary files
8746 # /var/tmp likewise
8747 # /usr/tmp likewise
8748 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8749 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8750 # in the usual case where exec_prefix is '${prefix}'.
8751 case $ac_dir in #(
8752 . | /* | ?:[\\/]*) ;; #(
8753 *) continue;;
8754 esac
8755 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8756 ac_xdir=$ac_dir/cf$$
8757 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8758 ac_tf1=$ac_xdir/conftest9012345
8759 ac_tf2=$ac_xdir/conftest9012346
8760 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8761 ac_cv_sys_long_file_names=no
8762 rm -f -r "$ac_xdir" 2>/dev/null
8763 test $ac_cv_sys_long_file_names = no && break
8764 done
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8767 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8768 if test $ac_cv_sys_long_file_names = yes; then
8770 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8775 #### Choose a window system.
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8778 $as_echo_n "checking for X... " >&6; }
8781 # Check whether --with-x was given.
8782 if test "${with_x+set}" = set; then :
8783 withval=$with_x;
8786 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8787 if test "x$with_x" = xno; then
8788 # The user explicitly disabled X.
8789 have_x=disabled
8790 else
8791 case $x_includes,$x_libraries in #(
8792 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
8793 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 # One or both of the vars are not set, and there is no cached value.
8797 ac_x_includes=no ac_x_libraries=no
8798 rm -f -r conftest.dir
8799 if mkdir conftest.dir; then
8800 cd conftest.dir
8801 cat >Imakefile <<'_ACEOF'
8802 incroot:
8803 @echo incroot='${INCROOT}'
8804 usrlibdir:
8805 @echo usrlibdir='${USRLIBDIR}'
8806 libdir:
8807 @echo libdir='${LIBDIR}'
8808 _ACEOF
8809 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8811 for ac_var in incroot usrlibdir libdir; do
8812 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8813 done
8814 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8815 for ac_extension in a so sl dylib la dll; do
8816 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8817 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8818 ac_im_usrlibdir=$ac_im_libdir; break
8820 done
8821 # Screen out bogus values from the imake configuration. They are
8822 # bogus both because they are the default anyway, and because
8823 # using them would break gcc on systems where it needs fixed includes.
8824 case $ac_im_incroot in
8825 /usr/include) ac_x_includes= ;;
8826 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8827 esac
8828 case $ac_im_usrlibdir in
8829 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8830 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8831 esac
8833 cd ..
8834 rm -f -r conftest.dir
8837 # Standard set of common directories for X headers.
8838 # Check X11 before X11Rn because it is often a symlink to the current release.
8839 ac_x_header_dirs='
8840 /usr/X11/include
8841 /usr/X11R7/include
8842 /usr/X11R6/include
8843 /usr/X11R5/include
8844 /usr/X11R4/include
8846 /usr/include/X11
8847 /usr/include/X11R7
8848 /usr/include/X11R6
8849 /usr/include/X11R5
8850 /usr/include/X11R4
8852 /usr/local/X11/include
8853 /usr/local/X11R7/include
8854 /usr/local/X11R6/include
8855 /usr/local/X11R5/include
8856 /usr/local/X11R4/include
8858 /usr/local/include/X11
8859 /usr/local/include/X11R7
8860 /usr/local/include/X11R6
8861 /usr/local/include/X11R5
8862 /usr/local/include/X11R4
8864 /usr/X386/include
8865 /usr/x386/include
8866 /usr/XFree86/include/X11
8868 /usr/include
8869 /usr/local/include
8870 /usr/unsupported/include
8871 /usr/athena/include
8872 /usr/local/x11r5/include
8873 /usr/lpp/Xamples/include
8875 /usr/openwin/include
8876 /usr/openwin/share/include'
8878 if test "$ac_x_includes" = no; then
8879 # Guess where to find include files, by looking for Xlib.h.
8880 # First, try using that file with no special directory specified.
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 #include <X11/Xlib.h>
8884 _ACEOF
8885 if ac_fn_c_try_cpp "$LINENO"; then :
8886 # We can compile using X headers with no special include directory.
8887 ac_x_includes=
8888 else
8889 for ac_dir in $ac_x_header_dirs; do
8890 if test -r "$ac_dir/X11/Xlib.h"; then
8891 ac_x_includes=$ac_dir
8892 break
8894 done
8896 rm -f conftest.err conftest.$ac_ext
8897 fi # $ac_x_includes = no
8899 if test "$ac_x_libraries" = no; then
8900 # Check for the libraries.
8901 # See if we find them without any special options.
8902 # Don't add to $LIBS permanently.
8903 ac_save_LIBS=$LIBS
8904 LIBS="-lX11 $LIBS"
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #include <X11/Xlib.h>
8909 main ()
8911 XrmInitialize ()
8913 return 0;
8915 _ACEOF
8916 if ac_fn_c_try_link "$LINENO"; then :
8917 LIBS=$ac_save_LIBS
8918 # We can link X programs with no special library path.
8919 ac_x_libraries=
8920 else
8921 LIBS=$ac_save_LIBS
8922 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8924 # Don't even attempt the hair of trying to link an X program!
8925 for ac_extension in a so sl dylib la dll; do
8926 if test -r "$ac_dir/libX11.$ac_extension"; then
8927 ac_x_libraries=$ac_dir
8928 break 2
8930 done
8931 done
8933 rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 fi # $ac_x_libraries = no
8937 case $ac_x_includes,$ac_x_libraries in #(
8938 no,* | *,no | *\'*)
8939 # Didn't find X, or a directory has "'" in its name.
8940 ac_cv_have_x="have_x=no";; #(
8942 # Record where we found X for the cache.
8943 ac_cv_have_x="have_x=yes\
8944 ac_x_includes='$ac_x_includes'\
8945 ac_x_libraries='$ac_x_libraries'"
8946 esac
8948 ;; #(
8949 *) have_x=yes;;
8950 esac
8951 eval "$ac_cv_have_x"
8952 fi # $with_x != no
8954 if test "$have_x" != yes; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8956 $as_echo "$have_x" >&6; }
8957 no_x=yes
8958 else
8959 # If each of the values was on the command line, it overrides each guess.
8960 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8961 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8962 # Update the cache value to reflect the command line values.
8963 ac_cv_have_x="have_x=yes\
8964 ac_x_includes='$x_includes'\
8965 ac_x_libraries='$x_libraries'"
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8967 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8970 if test "$no_x" = yes; then
8971 window_system=none
8972 else
8973 window_system=x11
8976 ## Workaround for bug in autoconf <= 2.62.
8977 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8978 ## No need to do anything special for these standard directories.
8979 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8981 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8985 LD_SWITCH_X_SITE_AUX=
8986 LD_SWITCH_X_SITE_AUX_RPATH=
8987 if test "${x_libraries}" != NONE; then
8988 if test -n "${x_libraries}"; then
8989 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8990 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8991 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8993 x_default_search_path=""
8994 x_search_path=${x_libraries}
8995 if test -z "${x_search_path}"; then
8996 x_search_path=/usr/lib
8998 for x_library in `echo ${x_search_path}: | \
8999 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9000 x_search_path="\
9001 ${x_library}/X11/%L/%T/%N%C%S:\
9002 ${x_library}/X11/%l/%T/%N%C%S:\
9003 ${x_library}/X11/%T/%N%C%S:\
9004 ${x_library}/X11/%L/%T/%N%S:\
9005 ${x_library}/X11/%l/%T/%N%S:\
9006 ${x_library}/X11/%T/%N%S"
9007 if test x"${x_default_search_path}" = x; then
9008 x_default_search_path=${x_search_path}
9009 else
9010 x_default_search_path="${x_search_path}:${x_default_search_path}"
9012 done
9017 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9018 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9021 if test x"${x_includes}" = x; then
9022 bitmapdir=/usr/include/X11/bitmaps
9023 else
9024 # accumulate include directories that have X11 bitmap subdirectories
9025 bmd_acc="dummyval"
9026 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9027 if test -d "${bmd}/X11/bitmaps"; then
9028 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9030 if test -d "${bmd}/bitmaps"; then
9031 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9033 done
9034 if test ${bmd_acc} != "dummyval"; then
9035 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9039 HAVE_NS=no
9040 NS_IMPL_COCOA=no
9041 NS_IMPL_GNUSTEP=no
9042 tmp_CPPFLAGS="$CPPFLAGS"
9043 tmp_CFLAGS="$CFLAGS"
9044 CPPFLAGS="$CPPFLAGS -x objective-c"
9045 CFLAGS="$CFLAGS -x objective-c"
9046 TEMACS_LDFLAGS2="\${LDFLAGS}"
9047 if test "${with_ns}" != no; then
9048 if test "${opsys}" = darwin; then
9049 NS_IMPL_COCOA=yes
9050 ns_appdir=`pwd`/nextstep/Emacs.app
9051 ns_appbindir=${ns_appdir}/Contents/MacOS/
9052 ns_appresdir=${ns_appdir}/Contents/Resources
9053 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9054 elif test -f $GNUSTEP_CONFIG_FILE; then
9055 NS_IMPL_GNUSTEP=yes
9056 ns_appdir=`pwd`/nextstep/Emacs.app
9057 ns_appbindir=${ns_appdir}/
9058 ns_appresdir=${ns_appdir}/Resources
9059 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9060 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9061 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9062 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9063 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9064 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9065 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9066 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9067 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9068 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9069 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9070 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9071 LIB_STANDARD=
9072 START_FILES=
9073 TEMACS_LDFLAGS2=
9075 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9076 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9077 HAVE_NS=yes
9078 else
9079 as_fn_error "\`--with-ns' was specified, but the include
9080 files are missing or cannot be compiled." "$LINENO" 5
9084 NS_HAVE_NSINTEGER=yes
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <Foundation/NSObjCRuntime.h>
9089 main ()
9091 NSInteger i;
9093 return 0;
9095 _ACEOF
9096 if ac_fn_c_try_compile "$LINENO"; then :
9097 ns_have_nsinteger=yes
9098 else
9099 ns_have_nsinteger=no
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102 if test $ns_have_nsinteger = no; then
9103 NS_HAVE_NSINTEGER=no
9108 ns_frag=/dev/null
9109 NS_OBJ=
9110 NS_OBJC_OBJ=
9111 NS_SUPPORT=
9112 if test "${HAVE_NS}" = yes; then
9113 window_system=nextstep
9114 with_xft=no
9115 # set up packaging dirs
9116 exec_prefix=${ns_appbindir}
9117 libexecdir=${ns_appbindir}/libexec
9118 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9119 prefix=${ns_appresdir}
9121 ns_frag=$srcdir/src/ns.mk
9122 NS_OBJ="fontset.o fringe.o image.o"
9123 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9124 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9126 CFLAGS="$tmp_CFLAGS"
9127 CPPFLAGS="$tmp_CPPFLAGS"
9134 case "${window_system}" in
9135 x11 )
9136 HAVE_X_WINDOWS=yes
9137 HAVE_X11=yes
9138 case "${with_x_toolkit}" in
9139 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9140 motif ) USE_X_TOOLKIT=MOTIF ;;
9141 gtk ) with_gtk=yes
9142 USE_X_TOOLKIT=none ;;
9143 gtk3 ) with_gtk3=yes
9144 USE_X_TOOLKIT=none ;;
9145 no ) USE_X_TOOLKIT=none ;;
9146 * ) USE_X_TOOLKIT=maybe ;;
9147 esac
9149 nextstep | none )
9150 HAVE_X_WINDOWS=no
9151 HAVE_X11=no
9152 USE_X_TOOLKIT=none
9154 esac
9156 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9157 # Extract the first word of "X", so it can be a program name with args.
9158 set dummy X; ac_word=$2
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9160 $as_echo_n "checking for $ac_word... " >&6; }
9161 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 if test -n "$HAVE_XSERVER"; then
9165 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9166 else
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9168 for as_dir in $PATH
9170 IFS=$as_save_IFS
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9174 ac_cv_prog_HAVE_XSERVER="true"
9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 break 2
9178 done
9179 done
9180 IFS=$as_save_IFS
9182 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9185 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9186 if test -n "$HAVE_XSERVER"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9188 $as_echo "$HAVE_XSERVER" >&6; }
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9195 if test "$HAVE_XSERVER" = true ||
9196 test -n "$DISPLAY" ||
9197 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9198 as_fn_error "You seem to be running X, but no X development libraries
9199 were found. You should install the relevant development files for X
9200 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9201 sure you have development files for image handling, i.e.
9202 tiff, gif, jpeg, png and xpm.
9203 If you are sure you want Emacs compiled without X window support, pass
9204 --without-x
9205 to configure." "$LINENO" 5
9209 ### If we're using X11, we should use the X menu package.
9210 HAVE_MENUS=no
9211 case ${HAVE_X11} in
9212 yes ) HAVE_MENUS=yes ;;
9213 esac
9215 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9216 # Assume not, until told otherwise.
9217 GNU_MALLOC=yes
9218 doug_lea_malloc=yes
9219 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9220 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9222 else
9223 doug_lea_malloc=no
9226 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9227 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9229 else
9230 doug_lea_malloc=no
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9234 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9235 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 extern void (* __after_morecore_hook)();
9242 main ()
9244 __after_morecore_hook = 0
9246 return 0;
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"; then :
9250 emacs_cv_var___after_morecore_hook=yes
9251 else
9252 emacs_cv_var___after_morecore_hook=no
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9258 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9259 if test $emacs_cv_var___after_morecore_hook = no; then
9260 doug_lea_malloc=no
9264 system_malloc=no
9265 case "$opsys" in
9266 ## darwin ld insists on the use of malloc routines in the System framework.
9267 darwin|sol2-10) system_malloc=yes ;;
9268 esac
9270 if test "${system_malloc}" = "yes"; then
9272 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9274 GNU_MALLOC=no
9275 GNU_MALLOC_reason="
9276 (The GNU allocators don't work with this system configuration.)"
9277 GMALLOC_OBJ=
9278 VMLIMIT_OBJ=
9279 else
9280 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9281 VMLIMIT_OBJ=vm-limit.o
9286 if test "$doug_lea_malloc" = "yes" ; then
9287 if test "$GNU_MALLOC" = yes ; then
9288 GNU_MALLOC_reason="
9289 (Using Doug Lea's new malloc from the GNU C Library.)"
9292 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9295 ## Use mmap directly for allocating larger buffers.
9296 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9297 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9298 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9299 case "$opsys" in
9300 gnu*) REL_ALLOC=no ;;
9301 esac
9304 if test x"${REL_ALLOC}" = x; then
9305 REL_ALLOC=${GNU_MALLOC}
9308 use_mmap_for_buffers=no
9309 case "$opsys" in
9310 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9311 esac
9316 for ac_header in $ac_header_list
9317 do :
9318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9319 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9321 eval as_val=\$$as_ac_Header
9322 if test "x$as_val" = x""yes; then :
9323 cat >>confdefs.h <<_ACEOF
9324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9325 _ACEOF
9329 done
9338 for ac_func in getpagesize
9339 do :
9340 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9341 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9342 cat >>confdefs.h <<_ACEOF
9343 #define HAVE_GETPAGESIZE 1
9344 _ACEOF
9347 done
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9350 $as_echo_n "checking for working mmap... " >&6; }
9351 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 if test "$cross_compiling" = yes; then :
9355 ac_cv_func_mmap_fixed_mapped=no
9356 else
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 $ac_includes_default
9360 /* malloc might have been renamed as rpl_malloc. */
9361 #undef malloc
9363 /* Thanks to Mike Haertel and Jim Avera for this test.
9364 Here is a matrix of mmap possibilities:
9365 mmap private not fixed
9366 mmap private fixed at somewhere currently unmapped
9367 mmap private fixed at somewhere already mapped
9368 mmap shared not fixed
9369 mmap shared fixed at somewhere currently unmapped
9370 mmap shared fixed at somewhere already mapped
9371 For private mappings, we should verify that changes cannot be read()
9372 back from the file, nor mmap's back from the file at a different
9373 address. (There have been systems where private was not correctly
9374 implemented like the infamous i386 svr4.0, and systems where the
9375 VM page cache was not coherent with the file system buffer cache
9376 like early versions of FreeBSD and possibly contemporary NetBSD.)
9377 For shared mappings, we should conversely verify that changes get
9378 propagated back to all the places they're supposed to be.
9380 Grep wants private fixed already mapped.
9381 The main things grep needs to know about mmap are:
9382 * does it exist and is it safe to write into the mmap'd area
9383 * how to use it (BSD variants) */
9385 #include <fcntl.h>
9386 #include <sys/mman.h>
9388 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9389 char *malloc ();
9390 #endif
9392 /* This mess was copied from the GNU getpagesize.h. */
9393 #ifndef HAVE_GETPAGESIZE
9394 # ifdef _SC_PAGESIZE
9395 # define getpagesize() sysconf(_SC_PAGESIZE)
9396 # else /* no _SC_PAGESIZE */
9397 # ifdef HAVE_SYS_PARAM_H
9398 # include <sys/param.h>
9399 # ifdef EXEC_PAGESIZE
9400 # define getpagesize() EXEC_PAGESIZE
9401 # else /* no EXEC_PAGESIZE */
9402 # ifdef NBPG
9403 # define getpagesize() NBPG * CLSIZE
9404 # ifndef CLSIZE
9405 # define CLSIZE 1
9406 # endif /* no CLSIZE */
9407 # else /* no NBPG */
9408 # ifdef NBPC
9409 # define getpagesize() NBPC
9410 # else /* no NBPC */
9411 # ifdef PAGESIZE
9412 # define getpagesize() PAGESIZE
9413 # endif /* PAGESIZE */
9414 # endif /* no NBPC */
9415 # endif /* no NBPG */
9416 # endif /* no EXEC_PAGESIZE */
9417 # else /* no HAVE_SYS_PARAM_H */
9418 # define getpagesize() 8192 /* punt totally */
9419 # endif /* no HAVE_SYS_PARAM_H */
9420 # endif /* no _SC_PAGESIZE */
9422 #endif /* no HAVE_GETPAGESIZE */
9425 main ()
9427 char *data, *data2, *data3;
9428 const char *cdata2;
9429 int i, pagesize;
9430 int fd, fd2;
9432 pagesize = getpagesize ();
9434 /* First, make a file with some known garbage in it. */
9435 data = (char *) malloc (pagesize);
9436 if (!data)
9437 return 1;
9438 for (i = 0; i < pagesize; ++i)
9439 *(data + i) = rand ();
9440 umask (0);
9441 fd = creat ("conftest.mmap", 0600);
9442 if (fd < 0)
9443 return 2;
9444 if (write (fd, data, pagesize) != pagesize)
9445 return 3;
9446 close (fd);
9448 /* Next, check that the tail of a page is zero-filled. File must have
9449 non-zero length, otherwise we risk SIGBUS for entire page. */
9450 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9451 if (fd2 < 0)
9452 return 4;
9453 cdata2 = "";
9454 if (write (fd2, cdata2, 1) != 1)
9455 return 5;
9456 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9457 if (data2 == MAP_FAILED)
9458 return 6;
9459 for (i = 0; i < pagesize; ++i)
9460 if (*(data2 + i))
9461 return 7;
9462 close (fd2);
9463 if (munmap (data2, pagesize))
9464 return 8;
9466 /* Next, try to mmap the file at a fixed address which already has
9467 something else allocated at it. If we can, also make sure that
9468 we see the same garbage. */
9469 fd = open ("conftest.mmap", O_RDWR);
9470 if (fd < 0)
9471 return 9;
9472 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9473 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9474 return 10;
9475 for (i = 0; i < pagesize; ++i)
9476 if (*(data + i) != *(data2 + i))
9477 return 11;
9479 /* Finally, make sure that changes to the mapped area do not
9480 percolate back to the file as seen by read(). (This is a bug on
9481 some variants of i386 svr4.0.) */
9482 for (i = 0; i < pagesize; ++i)
9483 *(data2 + i) = *(data2 + i) + 1;
9484 data3 = (char *) malloc (pagesize);
9485 if (!data3)
9486 return 12;
9487 if (read (fd, data3, pagesize) != pagesize)
9488 return 13;
9489 for (i = 0; i < pagesize; ++i)
9490 if (*(data + i) != *(data3 + i))
9491 return 14;
9492 close (fd);
9493 return 0;
9495 _ACEOF
9496 if ac_fn_c_try_run "$LINENO"; then :
9497 ac_cv_func_mmap_fixed_mapped=yes
9498 else
9499 ac_cv_func_mmap_fixed_mapped=no
9501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9502 conftest.$ac_objext conftest.beam conftest.$ac_ext
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9507 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9508 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9510 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9513 rm -f conftest.mmap conftest.txt
9515 if test $use_mmap_for_buffers = yes; then
9517 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9519 REL_ALLOC=no
9522 LIBS="$LIBS_SYSTEM $LIBS"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9525 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9526 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9528 else
9529 ac_check_lib_save_LIBS=$LIBS
9530 LIBS="-ldnet $LIBS"
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9537 #ifdef __cplusplus
9538 extern "C"
9539 #endif
9540 char dnet_ntoa ();
9542 main ()
9544 return dnet_ntoa ();
9546 return 0;
9548 _ACEOF
9549 if ac_fn_c_try_link "$LINENO"; then :
9550 ac_cv_lib_dnet_dnet_ntoa=yes
9551 else
9552 ac_cv_lib_dnet_dnet_ntoa=no
9554 rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
9556 LIBS=$ac_check_lib_save_LIBS
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9559 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9560 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9561 cat >>confdefs.h <<_ACEOF
9562 #define HAVE_LIBDNET 1
9563 _ACEOF
9565 LIBS="-ldnet $LIBS"
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9571 $as_echo_n "checking for main in -lXbsd... " >&6; }
9572 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 ac_check_lib_save_LIBS=$LIBS
9576 LIBS="-lXbsd $LIBS"
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9582 main ()
9584 return main ();
9586 return 0;
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"; then :
9590 ac_cv_lib_Xbsd_main=yes
9591 else
9592 ac_cv_lib_Xbsd_main=no
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9599 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9600 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9601 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9606 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9607 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9608 $as_echo_n "(cached) " >&6
9609 else
9610 ac_check_lib_save_LIBS=$LIBS
9611 LIBS="-lpthreads $LIBS"
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618 #ifdef __cplusplus
9619 extern "C"
9620 #endif
9621 char cma_open ();
9623 main ()
9625 return cma_open ();
9627 return 0;
9629 _ACEOF
9630 if ac_fn_c_try_link "$LINENO"; then :
9631 ac_cv_lib_pthreads_cma_open=yes
9632 else
9633 ac_cv_lib_pthreads_cma_open=no
9635 rm -f core conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9640 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9641 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9642 cat >>confdefs.h <<_ACEOF
9643 #define HAVE_LIBPTHREADS 1
9644 _ACEOF
9646 LIBS="-lpthreads $LIBS"
9651 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9652 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9653 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9654 ## added to LIBS in configure would never contain the pthreads part,
9655 ## but the value used in Makefiles might. FIXME?
9657 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9658 ## be harmless on older versions of X where it happens to exist.
9659 test "$opsys" = "aix4-2" && \
9660 test $ac_cv_lib_pthreads_cma_open = yes && \
9661 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9664 case ${host_os} in
9665 aix*)
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9667 $as_echo_n "checking for -bbigtoc option... " >&6; }
9668 if test "${gdb_cv_bigtoc+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
9670 else
9672 case $GCC in
9673 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9674 *) gdb_cv_bigtoc=-bbigtoc ;;
9675 esac
9677 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9682 main ()
9684 int i;
9686 return 0;
9688 _ACEOF
9689 if ac_fn_c_try_link "$LINENO"; then :
9691 else
9692 gdb_cv_bigtoc=
9694 rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9699 $as_echo "$gdb_cv_bigtoc" >&6; }
9701 esac
9703 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9704 # used for the tests that follow. We set them back to REAL_CFLAGS and
9705 # REAL_CPPFLAGS later on.
9707 REAL_CFLAGS="$CFLAGS"
9708 REAL_CPPFLAGS="$CPPFLAGS"
9710 if test "${HAVE_X11}" = "yes"; then
9711 DEFS="$C_SWITCH_X_SITE $DEFS"
9712 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9713 LIBS="-lX11 $LIBS"
9714 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9715 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9717 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9718 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9719 # but it's more convenient here to set LD_RUN_PATH
9720 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9721 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9722 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9723 export LD_RUN_PATH
9726 if test "${opsys}" = "gnu-linux"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9728 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9733 main ()
9735 XOpenDisplay ("foo");
9737 return 0;
9739 _ACEOF
9740 if ac_fn_c_try_link "$LINENO"; then :
9741 xlinux_first_failure=no
9742 else
9743 xlinux_first_failure=yes
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 if test "${xlinux_first_failure}" = "yes"; then
9748 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9749 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9750 OLD_CPPFLAGS="$CPPFLAGS"
9751 OLD_LIBS="$LIBS"
9752 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9753 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9754 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9755 LIBS="$LIBS -b i486-linuxaout"
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9760 main ()
9762 XOpenDisplay ("foo");
9764 return 0;
9766 _ACEOF
9767 if ac_fn_c_try_link "$LINENO"; then :
9768 xlinux_second_failure=no
9769 else
9770 xlinux_second_failure=yes
9772 rm -f core conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9774 if test "${xlinux_second_failure}" = "yes"; then
9775 # If we get the same failure with -b, there is no use adding -b.
9776 # So take it out. This plays safe.
9777 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9778 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9779 CPPFLAGS="$OLD_CPPFLAGS"
9780 LIBS="$OLD_LIBS"
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9783 else
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9785 $as_echo "yes" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9793 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9794 # header files included from there.
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9796 $as_echo_n "checking for Xkb... " >&6; }
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 #include <X11/Xlib.h>
9800 #include <X11/XKBlib.h>
9802 main ()
9804 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9806 return 0;
9808 _ACEOF
9809 if ac_fn_c_try_link "$LINENO"; then :
9810 emacs_xkb=yes
9811 else
9812 emacs_xkb=no
9814 rm -f core conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9817 $as_echo "$emacs_xkb" >&6; }
9818 if test $emacs_xkb = yes; then
9820 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9824 for ac_func in XrmSetDatabase XScreenResourceString \
9825 XScreenNumberOfScreen XSetWMProtocols
9826 do :
9827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9829 eval as_val=\$$as_ac_var
9830 if test "x$as_val" = x""yes; then :
9831 cat >>confdefs.h <<_ACEOF
9832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9833 _ACEOF
9836 done
9840 if test "${window_system}" = "x11"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9842 $as_echo_n "checking X11 version 6... " >&6; }
9843 if test "${emacs_cv_x11_version_6+set}" = set; then :
9844 $as_echo_n "(cached) " >&6
9845 else
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 #include <X11/Xlib.h>
9850 main ()
9852 #if XlibSpecificationRelease < 6
9853 fail;
9854 #endif
9857 return 0;
9859 _ACEOF
9860 if ac_fn_c_try_link "$LINENO"; then :
9861 emacs_cv_x11_version_6=yes
9862 else
9863 emacs_cv_x11_version_6=no
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9869 if test $emacs_cv_x11_version_6 = yes; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9871 $as_echo "6 or newer" >&6; }
9873 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9876 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9878 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9879 ## XIM support.
9880 case "$opsys" in
9881 sol2-*) : ;;
9883 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9886 esac
9887 else
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9889 $as_echo "before 6" >&6; }
9894 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9895 HAVE_RSVG=no
9896 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9897 if test "${with_rsvg}" != "no"; then
9898 RSVG_REQUIRED=2.11.0
9899 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9902 succeeded=no
9904 # Extract the first word of "pkg-config", so it can be a program name with args.
9905 set dummy pkg-config; ac_word=$2
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907 $as_echo_n "checking for $ac_word... " >&6; }
9908 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 case $PKG_CONFIG in
9912 [\\/]* | ?:[\\/]*)
9913 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9927 done
9928 done
9929 IFS=$as_save_IFS
9931 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9933 esac
9935 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9936 if test -n "$PKG_CONFIG"; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9938 $as_echo "$PKG_CONFIG" >&6; }
9939 else
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941 $as_echo "no" >&6; }
9946 if test "$PKG_CONFIG" = "no" ; then
9948 else
9949 PKG_CONFIG_MIN_VERSION=0.9.0
9950 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9952 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9954 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9956 $as_echo "yes" >&6; }
9957 succeeded=yes
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9960 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9961 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9963 $as_echo "$RSVG_CFLAGS" >&6; }
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9966 $as_echo_n "checking RSVG_LIBS... " >&6; }
9967 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9969 $as_echo "$RSVG_LIBS" >&6; }
9970 else
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9973 RSVG_CFLAGS=""
9974 RSVG_LIBS=""
9975 ## If we have a custom action on failure, don't print errors, but
9976 ## do set a variable so people can do so.
9977 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9983 else
9984 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9985 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9989 if test $succeeded = yes; then
9990 HAVE_RSVG=yes
9991 else
9998 if test $HAVE_RSVG = yes; then
10000 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10002 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10003 LIBS="$RSVG_LIBS $LIBS"
10008 HAVE_IMAGEMAGICK=no
10009 if test "${HAVE_X11}" = "yes"; then
10010 if test "${with_imagemagick}" != "no"; then
10011 IMAGEMAGICK_MODULE="Wand"
10013 succeeded=no
10015 # Extract the first word of "pkg-config", so it can be a program name with args.
10016 set dummy pkg-config; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10020 $as_echo_n "(cached) " >&6
10021 else
10022 case $PKG_CONFIG in
10023 [\\/]* | ?:[\\/]*)
10024 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10030 IFS=$as_save_IFS
10031 test -z "$as_dir" && as_dir=.
10032 for ac_exec_ext in '' $ac_executable_extensions; do
10033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 break 2
10038 done
10039 done
10040 IFS=$as_save_IFS
10042 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10044 esac
10046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10047 if test -n "$PKG_CONFIG"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10049 $as_echo "$PKG_CONFIG" >&6; }
10050 else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10057 if test "$PKG_CONFIG" = "no" ; then
10059 else
10060 PKG_CONFIG_MIN_VERSION=0.9.0
10061 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10063 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10065 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10067 $as_echo "yes" >&6; }
10068 succeeded=yes
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10071 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10072 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10074 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10077 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10078 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10080 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10081 else
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10084 IMAGEMAGICK_CFLAGS=""
10085 IMAGEMAGICK_LIBS=""
10086 ## If we have a custom action on failure, don't print errors, but
10087 ## do set a variable so people can do so.
10088 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10094 else
10095 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10096 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10100 if test $succeeded = yes; then
10101 HAVE_IMAGEMAGICK=yes
10102 else
10109 if test $HAVE_IMAGEMAGICK = yes; then
10111 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10113 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10114 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10115 for ac_func in MagickExportImagePixels
10116 do :
10117 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10118 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10119 cat >>confdefs.h <<_ACEOF
10120 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10121 _ACEOF
10124 done
10131 HAVE_GTK=no
10132 if test "${with_gtk3}" = "yes"; then
10133 GLIB_REQUIRED=2.28
10134 GTK_REQUIRED=3.0
10135 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10138 succeeded=no
10140 # Extract the first word of "pkg-config", so it can be a program name with args.
10141 set dummy pkg-config; ac_word=$2
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143 $as_echo_n "checking for $ac_word... " >&6; }
10144 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 case $PKG_CONFIG in
10148 [\\/]* | ?:[\\/]*)
10149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10163 done
10164 done
10165 IFS=$as_save_IFS
10167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10169 esac
10171 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10172 if test -n "$PKG_CONFIG"; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10174 $as_echo "$PKG_CONFIG" >&6; }
10175 else
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10182 if test "$PKG_CONFIG" = "no" ; then
10183 pkg_check_gtk=no
10184 else
10185 PKG_CONFIG_MIN_VERSION=0.9.0
10186 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10188 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10190 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10192 $as_echo "yes" >&6; }
10193 succeeded=yes
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10196 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10197 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10199 $as_echo "$GTK_CFLAGS" >&6; }
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10202 $as_echo_n "checking GTK_LIBS... " >&6; }
10203 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10205 $as_echo "$GTK_LIBS" >&6; }
10206 else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10209 GTK_CFLAGS=""
10210 GTK_LIBS=""
10211 ## If we have a custom action on failure, don't print errors, but
10212 ## do set a variable so people can do so.
10213 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10219 else
10220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10225 if test $succeeded = yes; then
10226 pkg_check_gtk=yes
10227 else
10228 pkg_check_gtk=no
10231 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10232 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10235 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10239 if test "$pkg_check_gtk" != "yes"; then
10240 HAVE_GTK=no
10241 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10242 GLIB_REQUIRED=2.6
10243 GTK_REQUIRED=2.6
10244 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10247 succeeded=no
10249 # Extract the first word of "pkg-config", so it can be a program name with args.
10250 set dummy pkg-config; ac_word=$2
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252 $as_echo_n "checking for $ac_word... " >&6; }
10253 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 case $PKG_CONFIG in
10257 [\\/]* | ?:[\\/]*)
10258 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in $PATH
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10272 done
10273 done
10274 IFS=$as_save_IFS
10276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10278 esac
10280 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10281 if test -n "$PKG_CONFIG"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10283 $as_echo "$PKG_CONFIG" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286 $as_echo "no" >&6; }
10291 if test "$PKG_CONFIG" = "no" ; then
10292 pkg_check_gtk=no
10293 else
10294 PKG_CONFIG_MIN_VERSION=0.9.0
10295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10297 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10299 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10301 $as_echo "yes" >&6; }
10302 succeeded=yes
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10305 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10306 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10308 $as_echo "$GTK_CFLAGS" >&6; }
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10311 $as_echo_n "checking GTK_LIBS... " >&6; }
10312 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10314 $as_echo "$GTK_LIBS" >&6; }
10315 else
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10317 $as_echo "no" >&6; }
10318 GTK_CFLAGS=""
10319 GTK_LIBS=""
10320 ## If we have a custom action on failure, don't print errors, but
10321 ## do set a variable so people can do so.
10322 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10328 else
10329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10334 if test $succeeded = yes; then
10335 pkg_check_gtk=yes
10336 else
10337 pkg_check_gtk=no
10340 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10341 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10346 GTK_OBJ=
10347 if test x"$pkg_check_gtk" = xyes; then
10351 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10352 CFLAGS="$CFLAGS $GTK_CFLAGS"
10353 LIBS="$GTK_LIBS $LIBS"
10354 GTK_COMPILES=no
10355 for ac_func in gtk_main
10356 do :
10357 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10358 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10359 cat >>confdefs.h <<_ACEOF
10360 #define HAVE_GTK_MAIN 1
10361 _ACEOF
10362 GTK_COMPILES=yes
10364 done
10366 if test "${GTK_COMPILES}" != "yes"; then
10367 if test "$USE_X_TOOLKIT" != "maybe"; then
10368 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10370 else
10371 HAVE_GTK=yes
10373 $as_echo "#define USE_GTK 1" >>confdefs.h
10375 GTK_OBJ=gtkutil.o
10376 USE_X_TOOLKIT=none
10377 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10379 else
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10381 closing open displays. This is no problem if you just use
10382 one display, but if you use more than one and close one of them
10383 Emacs may crash." >&5
10384 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10385 closing open displays. This is no problem if you just use
10386 one display, but if you use more than one and close one of them
10387 Emacs may crash." >&2;}
10388 sleep 3
10396 if test "${HAVE_GTK}" = "yes"; then
10398 if test "$with_toolkit_scroll_bars" != no; then
10399 with_toolkit_scroll_bars=yes
10402 HAVE_GTK_FILE_SELECTION=no
10403 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10404 #include <gtk/gtk.h>
10406 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10407 HAVE_GTK_FILE_SELECTION=yes
10408 else
10409 HAVE_GTK_FILE_SELECTION=no
10412 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10413 for ac_func in gtk_file_selection_new
10414 do :
10415 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10416 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10417 cat >>confdefs.h <<_ACEOF
10418 #define HAVE_GTK_FILE_SELECTION_NEW 1
10419 _ACEOF
10422 done
10426 HAVE_GTK_AND_PTHREAD=no
10427 for ac_header in pthread.h
10428 do :
10429 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10430 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10431 cat >>confdefs.h <<_ACEOF
10432 #define HAVE_PTHREAD_H 1
10433 _ACEOF
10437 done
10439 if test "$ac_cv_header_pthread_h"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10441 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10442 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 ac_check_lib_save_LIBS=$LIBS
10446 LIBS="-lpthread $LIBS"
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10450 /* Override any GCC internal prototype to avoid an error.
10451 Use char because int might match the return type of a GCC
10452 builtin and then its argument prototype would still apply. */
10453 #ifdef __cplusplus
10454 extern "C"
10455 #endif
10456 char pthread_self ();
10458 main ()
10460 return pthread_self ();
10462 return 0;
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"; then :
10466 ac_cv_lib_pthread_pthread_self=yes
10467 else
10468 ac_cv_lib_pthread_pthread_self=no
10470 rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LIBS=$ac_check_lib_save_LIBS
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10475 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10476 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10477 HAVE_GTK_AND_PTHREAD=yes
10481 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10482 case "${canonical}" in
10483 *-hpux*) ;;
10484 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10485 esac
10487 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10491 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10492 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10493 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10494 gtk_orientable_set_orientation
10495 do :
10496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10498 eval as_val=\$$as_ac_var
10499 if test "x$as_val" = x""yes; then :
10500 cat >>confdefs.h <<_ACEOF
10501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10502 _ACEOF
10505 done
10510 HAVE_DBUS=no
10511 DBUS_OBJ=
10512 if test "${with_dbus}" = "yes"; then
10514 succeeded=no
10516 # Extract the first word of "pkg-config", so it can be a program name with args.
10517 set dummy pkg-config; ac_word=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 case $PKG_CONFIG in
10524 [\\/]* | ?:[\\/]*)
10525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10531 IFS=$as_save_IFS
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 break 2
10539 done
10540 done
10541 IFS=$as_save_IFS
10543 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10545 esac
10547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10548 if test -n "$PKG_CONFIG"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10550 $as_echo "$PKG_CONFIG" >&6; }
10551 else
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10558 if test "$PKG_CONFIG" = "no" ; then
10559 HAVE_DBUS=no
10560 else
10561 PKG_CONFIG_MIN_VERSION=0.9.0
10562 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10564 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10566 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568 $as_echo "yes" >&6; }
10569 succeeded=yes
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10572 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10573 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10575 $as_echo "$DBUS_CFLAGS" >&6; }
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10578 $as_echo_n "checking DBUS_LIBS... " >&6; }
10579 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10581 $as_echo "$DBUS_LIBS" >&6; }
10582 else
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 DBUS_CFLAGS=""
10586 DBUS_LIBS=""
10587 ## If we have a custom action on failure, don't print errors, but
10588 ## do set a variable so people can do so.
10589 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10595 else
10596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10601 if test $succeeded = yes; then
10602 HAVE_DBUS=yes
10603 else
10604 HAVE_DBUS=no
10607 if test "$HAVE_DBUS" = yes; then
10608 LIBS="$LIBS $DBUS_LIBS"
10610 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10612 for ac_func in dbus_watch_get_unix_fd
10613 do :
10614 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10615 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10616 cat >>confdefs.h <<_ACEOF
10617 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10618 _ACEOF
10621 done
10623 DBUS_OBJ=dbusbind.o
10628 HAVE_GCONF=no
10629 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10631 succeeded=no
10633 # Extract the first word of "pkg-config", so it can be a program name with args.
10634 set dummy pkg-config; ac_word=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 case $PKG_CONFIG in
10641 [\\/]* | ?:[\\/]*)
10642 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646 for as_dir in $PATH
10648 IFS=$as_save_IFS
10649 test -z "$as_dir" && as_dir=.
10650 for ac_exec_ext in '' $ac_executable_extensions; do
10651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10652 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10654 break 2
10656 done
10657 done
10658 IFS=$as_save_IFS
10660 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10662 esac
10664 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10665 if test -n "$PKG_CONFIG"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10667 $as_echo "$PKG_CONFIG" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10675 if test "$PKG_CONFIG" = "no" ; then
10676 HAVE_GCONF=no
10677 else
10678 PKG_CONFIG_MIN_VERSION=0.9.0
10679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10681 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10683 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10685 $as_echo "yes" >&6; }
10686 succeeded=yes
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10689 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10690 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10692 $as_echo "$GCONF_CFLAGS" >&6; }
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10695 $as_echo_n "checking GCONF_LIBS... " >&6; }
10696 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10698 $as_echo "$GCONF_LIBS" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10702 GCONF_CFLAGS=""
10703 GCONF_LIBS=""
10704 ## If we have a custom action on failure, don't print errors, but
10705 ## do set a variable so people can do so.
10706 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10712 else
10713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10718 if test $succeeded = yes; then
10719 HAVE_GCONF=yes
10720 else
10721 HAVE_GCONF=no
10724 if test "$HAVE_GCONF" = yes; then
10726 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10728 for ac_func in g_type_init
10729 do :
10730 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10731 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10732 cat >>confdefs.h <<_ACEOF
10733 #define HAVE_G_TYPE_INIT 1
10734 _ACEOF
10737 done
10742 HAVE_LIBSELINUX=no
10743 LIBSELINUX_LIBS=
10744 if test "${with_selinux}" = "yes"; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10746 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10747 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-lselinux $LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char lgetfilecon ();
10763 main ()
10765 return lgetfilecon ();
10767 return 0;
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_lib_selinux_lgetfilecon=yes
10772 else
10773 ac_cv_lib_selinux_lgetfilecon=no
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10780 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10781 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10782 HAVE_LIBSELINUX=yes
10783 else
10784 HAVE_LIBSELINUX=no
10787 if test "$HAVE_LIBSELINUX" = yes; then
10789 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10791 LIBSELINUX_LIBS=-lselinux
10796 HAVE_GNUTLS=no
10797 if test "${with_gnutls}" = "yes" ; then
10799 succeeded=no
10801 # Extract the first word of "pkg-config", so it can be a program name with args.
10802 set dummy pkg-config; ac_word=$2
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804 $as_echo_n "checking for $ac_word... " >&6; }
10805 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 case $PKG_CONFIG in
10809 [\\/]* | ?:[\\/]*)
10810 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814 for as_dir in $PATH
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10820 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10824 done
10825 done
10826 IFS=$as_save_IFS
10828 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10830 esac
10832 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10833 if test -n "$PKG_CONFIG"; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10835 $as_echo "$PKG_CONFIG" >&6; }
10836 else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838 $as_echo "no" >&6; }
10843 if test "$PKG_CONFIG" = "no" ; then
10844 HAVE_GNUTLS=no
10845 else
10846 PKG_CONFIG_MIN_VERSION=0.9.0
10847 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10849 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10851 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10853 $as_echo "yes" >&6; }
10854 succeeded=yes
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10857 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10858 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10860 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10863 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10864 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10866 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10869 $as_echo "no" >&6; }
10870 LIBGNUTLS_CFLAGS=""
10871 LIBGNUTLS_LIBS=""
10872 ## If we have a custom action on failure, don't print errors, but
10873 ## do set a variable so people can do so.
10874 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10880 else
10881 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10882 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10886 if test $succeeded = yes; then
10887 HAVE_GNUTLS=yes
10888 else
10889 HAVE_GNUTLS=no
10892 if test "${HAVE_GNUTLS}" = "yes"; then
10894 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10901 HAVE_XAW3D=no
10902 LUCID_LIBW=
10903 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10904 if test "$with_xaw3d" != no; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10906 $as_echo_n "checking for xaw3d... " >&6; }
10907 if test "${emacs_cv_xaw3d+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10913 #include <X11/Intrinsic.h>
10914 #include <X11/Xaw3d/Simple.h>
10916 main ()
10920 return 0;
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10925 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10926 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 ac_check_lib_save_LIBS=$LIBS
10930 LIBS="-lXaw3d $LIBS"
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10934 /* Override any GCC internal prototype to avoid an error.
10935 Use char because int might match the return type of a GCC
10936 builtin and then its argument prototype would still apply. */
10937 #ifdef __cplusplus
10938 extern "C"
10939 #endif
10940 char XawScrollbarSetThumb ();
10942 main ()
10944 return XawScrollbarSetThumb ();
10946 return 0;
10948 _ACEOF
10949 if ac_fn_c_try_link "$LINENO"; then :
10950 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10951 else
10952 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10954 rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10959 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10960 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
10961 emacs_cv_xaw3d=yes
10962 else
10963 emacs_cv_xaw3d=no
10966 else
10967 emacs_cv_xaw3d=no
10969 rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10973 else
10974 emacs_cv_xaw3d=no
10976 if test $emacs_cv_xaw3d = yes; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10978 $as_echo "yes; using Lucid toolkit" >&6; }
10979 USE_X_TOOLKIT=LUCID
10980 HAVE_XAW3D=yes
10981 LUCID_LIBW=-lXaw3d
10983 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10985 else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; }
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10989 $as_echo_n "checking for libXaw... " >&6; }
10990 if test "${emacs_cv_xaw+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10996 #include <X11/Intrinsic.h>
10997 #include <X11/Xaw/Simple.h>
10999 main ()
11003 return 0;
11005 _ACEOF
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 emacs_cv_xaw=yes
11008 else
11009 emacs_cv_xaw=no
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11015 if test $emacs_cv_xaw = yes; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11017 $as_echo "yes; using Lucid toolkit" >&6; }
11018 USE_X_TOOLKIT=LUCID
11019 LUCID_LIBW=-lXaw
11020 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11021 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11024 $as_echo "no; do not use toolkit by default" >&6; }
11025 USE_X_TOOLKIT=none
11030 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11032 LIBXTR6=
11033 if test "${USE_X_TOOLKIT}" != "none"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11035 $as_echo_n "checking X11 toolkit version... " >&6; }
11036 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041 #include <X11/Intrinsic.h>
11043 main ()
11045 #if XtSpecificationRelease < 6
11046 fail;
11047 #endif
11050 return 0;
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 emacs_cv_x11_toolkit_version_6=yes
11055 else
11056 emacs_cv_x11_toolkit_version_6=no
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11062 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11063 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11065 $as_echo "6 or newer" >&6; }
11067 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11069 LIBXTR6="-lSM -lICE"
11070 case "$opsys" in
11071 ## Use libw.a along with X11R6 Xt.
11072 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11073 esac
11074 else
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11076 $as_echo "before 6" >&6; }
11079 OLDLIBS="$LIBS"
11080 if test x$HAVE_X11XTR6 = xyes; then
11081 LIBS="-lXt -lSM -lICE $LIBS"
11082 else
11083 LIBS="-lXt $LIBS"
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11086 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11087 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
11089 else
11090 ac_check_lib_save_LIBS=$LIBS
11091 LIBS="-lXmu $LIBS"
11092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11098 #ifdef __cplusplus
11099 extern "C"
11100 #endif
11101 char XmuConvertStandardSelection ();
11103 main ()
11105 return XmuConvertStandardSelection ();
11107 return 0;
11109 _ACEOF
11110 if ac_fn_c_try_link "$LINENO"; then :
11111 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11112 else
11113 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11115 rm -f core conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext conftest.$ac_ext
11117 LIBS=$ac_check_lib_save_LIBS
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11120 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11121 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11122 cat >>confdefs.h <<_ACEOF
11123 #define HAVE_LIBXMU 1
11124 _ACEOF
11126 LIBS="-lXmu $LIBS"
11130 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11134 LIBXMU=-lXmu
11135 case $opsys in
11136 ## These systems don't supply Xmu.
11137 hpux* | aix4-2 )
11138 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11140 esac
11143 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11144 if test "${HAVE_X11}" = "yes"; then
11145 if test "${USE_X_TOOLKIT}" != "none"; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11147 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11148 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 ac_check_lib_save_LIBS=$LIBS
11152 LIBS="-lXext $LIBS"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char XShapeQueryExtension ();
11164 main ()
11166 return XShapeQueryExtension ();
11168 return 0;
11170 _ACEOF
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 ac_cv_lib_Xext_XShapeQueryExtension=yes
11173 else
11174 ac_cv_lib_Xext_XShapeQueryExtension=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11181 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11182 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11183 cat >>confdefs.h <<_ACEOF
11184 #define HAVE_LIBXEXT 1
11185 _ACEOF
11187 LIBS="-lXext $LIBS"
11194 LIBXP=
11195 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11197 $as_echo_n "checking for Motif version 2.1... " >&6; }
11198 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203 #include <Xm/Xm.h>
11205 main ()
11207 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11208 int x = 5;
11209 #else
11210 Motif version prior to 2.1.
11211 #endif
11213 return 0;
11215 _ACEOF
11216 if ac_fn_c_try_compile "$LINENO"; then :
11217 emacs_cv_motif_version_2_1=yes
11218 else
11219 emacs_cv_motif_version_2_1=no
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11224 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11225 if test $emacs_cv_motif_version_2_1 = yes; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11227 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11228 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 ac_check_lib_save_LIBS=$LIBS
11232 LIBS="-lXp $LIBS"
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char XpCreateContext ();
11244 main ()
11246 return XpCreateContext ();
11248 return 0;
11250 _ACEOF
11251 if ac_fn_c_try_link "$LINENO"; then :
11252 ac_cv_lib_Xp_XpCreateContext=yes
11253 else
11254 ac_cv_lib_Xp_XpCreateContext=no
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11261 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11262 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11263 LIBXP=-lXp
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11268 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11269 if test "${emacs_cv_lesstif+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 # We put this in CFLAGS temporarily to precede other -I options
11273 # that might be in CFLAGS temporarily.
11274 # We put this in CPPFLAGS where it precedes the other -I options.
11275 OLD_CPPFLAGS=$CPPFLAGS
11276 OLD_CFLAGS=$CFLAGS
11277 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11278 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11283 main ()
11285 int x = 5;
11287 return 0;
11289 _ACEOF
11290 if ac_fn_c_try_compile "$LINENO"; then :
11291 emacs_cv_lesstif=yes
11292 else
11293 emacs_cv_lesstif=no
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11298 $as_echo "$emacs_cv_lesstif" >&6; }
11299 if test $emacs_cv_lesstif = yes; then
11300 # Make sure this -I option remains in CPPFLAGS after it is set
11301 # back to REAL_CPPFLAGS.
11302 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11303 # have those other -I options anyway. Ultimately, having this
11304 # directory ultimately in CPPFLAGS will be enough.
11305 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11306 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11307 else
11308 CFLAGS=$OLD_CFLAGS
11309 CPPFLAGS=$OLD_CPPFLAGS
11315 USE_TOOLKIT_SCROLL_BARS=no
11316 if test "${with_toolkit_scroll_bars}" != "no"; then
11317 if test "${USE_X_TOOLKIT}" != "none"; then
11318 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11319 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11321 HAVE_XAW3D=no
11322 USE_TOOLKIT_SCROLL_BARS=yes
11323 elif test "${HAVE_XAW3D}" = "yes"; then
11324 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11326 USE_TOOLKIT_SCROLL_BARS=yes
11328 elif test "${HAVE_GTK}" = "yes"; then
11329 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11331 USE_TOOLKIT_SCROLL_BARS=yes
11332 elif test "${HAVE_NS}" = "yes"; then
11333 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11335 USE_TOOLKIT_SCROLL_BARS=yes
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11342 #include <X11/Xlib.h>
11343 #include <X11/Xresource.h>
11345 main ()
11347 XIMProc callback;
11349 return 0;
11351 _ACEOF
11352 if ac_fn_c_try_compile "$LINENO"; then :
11353 HAVE_XIM=yes
11355 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11357 else
11358 HAVE_XIM=no
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 if test "${with_xim}" != "no"; then
11365 $as_echo "#define USE_XIM 1" >>confdefs.h
11370 if test "${HAVE_XIM}" != "no"; then
11371 late_CFLAGS=$CFLAGS
11372 if test "$GCC" = yes; then
11373 CFLAGS="$CFLAGS --pedantic-errors"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h. */
11378 #include <X11/Xlib.h>
11379 #include <X11/Xresource.h>
11381 main ()
11383 Display *display;
11384 XrmDatabase db;
11385 char *res_name;
11386 char *res_class;
11387 XIMProc callback;
11388 XPointer *client_data;
11389 #ifndef __GNUC__
11390 /* If we're not using GCC, it's probably not XFree86, and this is
11391 probably right, but we can't use something like --pedantic-errors. */
11392 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11393 char*, XIMProc, XPointer*);
11394 #endif
11395 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11396 client_data);
11398 return 0;
11400 _ACEOF
11401 if ac_fn_c_try_compile "$LINENO"; then :
11402 emacs_cv_arg6_star=yes
11404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11405 if test "$emacs_cv_arg6_star" = yes; then
11406 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11408 else
11409 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11412 CFLAGS=$late_CFLAGS
11415 ### Start of font-backend (under any platform) section.
11416 # (nothing here yet -- this is a placeholder)
11417 ### End of font-backend (under any platform) section.
11419 ### Start of font-backend (under X11) section.
11420 if test "${HAVE_X11}" = "yes"; then
11422 succeeded=no
11424 # Extract the first word of "pkg-config", so it can be a program name with args.
11425 set dummy pkg-config; ac_word=$2
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427 $as_echo_n "checking for $ac_word... " >&6; }
11428 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 case $PKG_CONFIG in
11432 [\\/]* | ?:[\\/]*)
11433 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11445 break 2
11447 done
11448 done
11449 IFS=$as_save_IFS
11451 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11453 esac
11455 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11456 if test -n "$PKG_CONFIG"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11458 $as_echo "$PKG_CONFIG" >&6; }
11459 else
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11466 if test "$PKG_CONFIG" = "no" ; then
11467 HAVE_FC=no
11468 else
11469 PKG_CONFIG_MIN_VERSION=0.9.0
11470 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11472 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11474 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11476 $as_echo "yes" >&6; }
11477 succeeded=yes
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11480 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11481 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11483 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11486 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11487 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11489 $as_echo "$FONTCONFIG_LIBS" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11493 FONTCONFIG_CFLAGS=""
11494 FONTCONFIG_LIBS=""
11495 ## If we have a custom action on failure, don't print errors, but
11496 ## do set a variable so people can do so.
11497 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11503 else
11504 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11505 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11509 if test $succeeded = yes; then
11510 HAVE_FC=yes
11511 else
11512 HAVE_FC=no
11516 ## Use -lXft if available, unless `--with-xft=no'.
11517 HAVE_XFT=maybe
11518 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11519 with_xft="no";
11521 if test "x${with_xft}" != "xno"; then
11524 succeeded=no
11526 # Extract the first word of "pkg-config", so it can be a program name with args.
11527 set dummy pkg-config; ac_word=$2
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529 $as_echo_n "checking for $ac_word... " >&6; }
11530 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 case $PKG_CONFIG in
11534 [\\/]* | ?:[\\/]*)
11535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 break 2
11549 done
11550 done
11551 IFS=$as_save_IFS
11553 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11555 esac
11557 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11558 if test -n "$PKG_CONFIG"; then
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11560 $as_echo "$PKG_CONFIG" >&6; }
11561 else
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11568 if test "$PKG_CONFIG" = "no" ; then
11569 HAVE_XFT=no
11570 else
11571 PKG_CONFIG_MIN_VERSION=0.9.0
11572 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11574 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11576 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11578 $as_echo "yes" >&6; }
11579 succeeded=yes
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11582 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11583 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11585 $as_echo "$XFT_CFLAGS" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11588 $as_echo_n "checking XFT_LIBS... " >&6; }
11589 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11591 $as_echo "$XFT_LIBS" >&6; }
11592 else
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11595 XFT_CFLAGS=""
11596 XFT_LIBS=""
11597 ## If we have a custom action on failure, don't print errors, but
11598 ## do set a variable so people can do so.
11599 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11605 else
11606 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11607 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11611 if test $succeeded = yes; then
11613 else
11614 HAVE_XFT=no
11617 ## Because xftfont.c uses XRenderQueryExtension, we also
11618 ## need to link to -lXrender.
11619 HAVE_XRENDER=no
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11621 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11622 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 ac_check_lib_save_LIBS=$LIBS
11626 LIBS="-lXrender $LIBS"
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11630 /* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11633 #ifdef __cplusplus
11634 extern "C"
11635 #endif
11636 char XRenderQueryExtension ();
11638 main ()
11640 return XRenderQueryExtension ();
11642 return 0;
11644 _ACEOF
11645 if ac_fn_c_try_link "$LINENO"; then :
11646 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11647 else
11648 ac_cv_lib_Xrender_XRenderQueryExtension=no
11650 rm -f core conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11652 LIBS=$ac_check_lib_save_LIBS
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11655 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11656 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11657 HAVE_XRENDER=yes
11660 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11661 OLD_CPPFLAGS="$CPPFLAGS"
11662 OLD_CFLAGS="$CFLAGS"
11663 OLD_LIBS="$LIBS"
11664 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11665 CFLAGS="$CFLAGS $XFT_CFLAGS"
11666 XFT_LIBS="-lXrender $XFT_LIBS"
11667 LIBS="$XFT_LIBS $LIBS"
11668 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11669 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11671 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11672 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 ac_check_lib_save_LIBS=$LIBS
11676 LIBS="-lXft $XFT_LIBS $LIBS"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 char XftFontOpen ();
11688 main ()
11690 return XftFontOpen ();
11692 return 0;
11694 _ACEOF
11695 if ac_fn_c_try_link "$LINENO"; then :
11696 ac_cv_lib_Xft_XftFontOpen=yes
11697 else
11698 ac_cv_lib_Xft_XftFontOpen=no
11700 rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11705 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11706 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11707 HAVE_XFT=yes
11714 if test "${HAVE_XFT}" = "yes"; then
11716 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11719 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11720 else
11721 CPPFLAGS="$OLD_CPPFLAGS"
11722 CFLAGS="$OLD_CFLAGS"
11723 LIBS="$OLD_LIBS"
11724 fi # "${HAVE_XFT}" = "yes"
11725 fi # "$HAVE_XFT" != no
11726 fi # "x${with_xft}" != "xno"
11728 ## We used to allow building with FreeType and without Xft.
11729 ## However, the ftx font backend driver is not in good shape.
11730 if test "$HAVE_XFT" != "yes"; then
11731 HAVE_XFT=no
11732 HAVE_FREETYPE=no
11733 else
11735 succeeded=no
11737 # Extract the first word of "pkg-config", so it can be a program name with args.
11738 set dummy pkg-config; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 case $PKG_CONFIG in
11745 [\\/]* | ?:[\\/]*)
11746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11758 break 2
11760 done
11761 done
11762 IFS=$as_save_IFS
11764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11766 esac
11768 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11769 if test -n "$PKG_CONFIG"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11771 $as_echo "$PKG_CONFIG" >&6; }
11772 else
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11779 if test "$PKG_CONFIG" = "no" ; then
11780 HAVE_FREETYPE=no
11781 else
11782 PKG_CONFIG_MIN_VERSION=0.9.0
11783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11785 $as_echo_n "checking for freetype2... " >&6; }
11787 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11790 succeeded=yes
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11793 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11794 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11796 $as_echo "$FREETYPE_CFLAGS" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11799 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11800 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11802 $as_echo "$FREETYPE_LIBS" >&6; }
11803 else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 FREETYPE_CFLAGS=""
11807 FREETYPE_LIBS=""
11808 ## If we have a custom action on failure, don't print errors, but
11809 ## do set a variable so people can do so.
11810 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11816 else
11817 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11818 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11822 if test $succeeded = yes; then
11823 HAVE_FREETYPE=yes
11824 else
11825 HAVE_FREETYPE=no
11829 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11832 HAVE_LIBOTF=no
11833 if test "${HAVE_FREETYPE}" = "yes"; then
11835 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11837 if test "${with_libotf}" != "no"; then
11839 succeeded=no
11841 # Extract the first word of "pkg-config", so it can be a program name with args.
11842 set dummy pkg-config; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 case $PKG_CONFIG in
11849 [\\/]* | ?:[\\/]*)
11850 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11856 IFS=$as_save_IFS
11857 test -z "$as_dir" && as_dir=.
11858 for ac_exec_ext in '' $ac_executable_extensions; do
11859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11860 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11862 break 2
11864 done
11865 done
11866 IFS=$as_save_IFS
11868 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11870 esac
11872 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11873 if test -n "$PKG_CONFIG"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11875 $as_echo "$PKG_CONFIG" >&6; }
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11883 if test "$PKG_CONFIG" = "no" ; then
11884 HAVE_LIBOTF=no
11885 else
11886 PKG_CONFIG_MIN_VERSION=0.9.0
11887 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11889 $as_echo_n "checking for libotf... " >&6; }
11891 if $PKG_CONFIG --exists "libotf" 2>&5; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11893 $as_echo "yes" >&6; }
11894 succeeded=yes
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11897 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11898 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11900 $as_echo "$LIBOTF_CFLAGS" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11903 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11904 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11906 $as_echo "$LIBOTF_LIBS" >&6; }
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11909 $as_echo "no" >&6; }
11910 LIBOTF_CFLAGS=""
11911 LIBOTF_LIBS=""
11912 ## If we have a custom action on failure, don't print errors, but
11913 ## do set a variable so people can do so.
11914 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11920 else
11921 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11922 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11926 if test $succeeded = yes; then
11927 HAVE_LIBOTF=yes
11928 else
11929 HAVE_LIBOTF=no
11932 if test "$HAVE_LIBOTF" = "yes"; then
11934 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11937 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11938 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lotf $LIBS"
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11949 #ifdef __cplusplus
11950 extern "C"
11951 #endif
11952 char OTF_get_variation_glyphs ();
11954 main ()
11956 return OTF_get_variation_glyphs ();
11958 return 0;
11960 _ACEOF
11961 if ac_fn_c_try_link "$LINENO"; then :
11962 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11963 else
11964 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11966 rm -f core conftest.err conftest.$ac_objext \
11967 conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11971 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11972 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11973 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11974 else
11975 HAVE_OTF_GET_VARIATION_GLYPHS=no
11978 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11980 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11987 HAVE_M17N_FLT=no
11988 if test "${HAVE_LIBOTF}" = yes; then
11989 if test "${with_m17n_flt}" != "no"; then
11991 succeeded=no
11993 # Extract the first word of "pkg-config", so it can be a program name with args.
11994 set dummy pkg-config; ac_word=$2
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996 $as_echo_n "checking for $ac_word... " >&6; }
11997 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 case $PKG_CONFIG in
12001 [\\/]* | ?:[\\/]*)
12002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006 for as_dir in $PATH
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12014 break 2
12016 done
12017 done
12018 IFS=$as_save_IFS
12020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12022 esac
12024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12025 if test -n "$PKG_CONFIG"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12027 $as_echo "$PKG_CONFIG" >&6; }
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12035 if test "$PKG_CONFIG" = "no" ; then
12036 HAVE_M17N_FLT=no
12037 else
12038 PKG_CONFIG_MIN_VERSION=0.9.0
12039 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12041 $as_echo_n "checking for m17n-flt... " >&6; }
12043 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12045 $as_echo "yes" >&6; }
12046 succeeded=yes
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12049 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12050 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12052 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12055 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12056 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12058 $as_echo "$M17N_FLT_LIBS" >&6; }
12059 else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12062 M17N_FLT_CFLAGS=""
12063 M17N_FLT_LIBS=""
12064 ## If we have a custom action on failure, don't print errors, but
12065 ## do set a variable so people can do so.
12066 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12072 else
12073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12078 if test $succeeded = yes; then
12079 HAVE_M17N_FLT=yes
12080 else
12081 HAVE_M17N_FLT=no
12084 if test "$HAVE_M17N_FLT" = "yes"; then
12086 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12091 else
12092 HAVE_XFT=no
12093 HAVE_FREETYPE=no
12094 HAVE_LIBOTF=no
12095 HAVE_M17N_FLT=no
12098 ### End of font-backend (under X11) section.
12109 ### Use -lXpm if available, unless `--with-xpm=no'.
12110 HAVE_XPM=no
12111 LIBXPM=
12112 if test "${HAVE_X11}" = "yes"; then
12113 if test "${with_xpm}" != "no"; then
12114 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12115 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12117 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12118 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-lXpm -lX11 $LIBS"
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char XpmReadFileToPixmap ();
12134 main ()
12136 return XpmReadFileToPixmap ();
12138 return 0;
12140 _ACEOF
12141 if ac_fn_c_try_link "$LINENO"; then :
12142 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12143 else
12144 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12146 rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12151 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12152 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12153 HAVE_XPM=yes
12159 if test "${HAVE_XPM}" = "yes"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12161 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164 #include "X11/xpm.h"
12165 #ifndef XpmReturnAllocPixels
12166 no_return_alloc_pixels
12167 #endif
12169 _ACEOF
12170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12171 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12172 HAVE_XPM=no
12173 else
12174 HAVE_XPM=yes
12176 rm -f conftest*
12179 if test "${HAVE_XPM}" = "yes"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181 $as_echo "yes" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184 $as_echo "no" >&6; }
12189 if test "${HAVE_XPM}" = "yes"; then
12191 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12193 LIBXPM=-lXpm
12198 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12199 HAVE_JPEG=no
12200 LIBJPEG=
12201 if test "${HAVE_X11}" = "yes"; then
12202 if test "${with_jpeg}" != "no"; then
12203 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12204 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12206 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12207 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 ac_check_lib_save_LIBS=$LIBS
12211 LIBS="-ljpeg $LIBS"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char jpeg_destroy_compress ();
12223 main ()
12225 return jpeg_destroy_compress ();
12227 return 0;
12229 _ACEOF
12230 if ac_fn_c_try_link "$LINENO"; then :
12231 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12232 else
12233 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12235 rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12240 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12241 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12242 HAVE_JPEG=yes
12250 if test "${HAVE_JPEG}" = "yes"; then
12251 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255 #include <jpeglib.h>
12256 version=JPEG_LIB_VERSION
12258 _ACEOF
12259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12260 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12261 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12263 else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12265 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12266 HAVE_JPEG=no
12268 rm -f conftest*
12271 if test "${HAVE_JPEG}" = "yes"; then
12272 LIBJPEG=-ljpeg
12277 ### Use -lpng if available, unless `--with-png=no'.
12278 HAVE_PNG=no
12279 LIBPNG=
12280 if test "${HAVE_X11}" = "yes"; then
12281 if test "${with_png}" != "no"; then
12282 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12283 # in /usr/include/libpng.
12284 for ac_header in png.h libpng/png.h
12285 do :
12286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12287 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12288 eval as_val=\$$as_ac_Header
12289 if test "x$as_val" = x""yes; then :
12290 cat >>confdefs.h <<_ACEOF
12291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12292 _ACEOF
12296 done
12298 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12300 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12301 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-lpng -lz -lm $LIBS"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312 #ifdef __cplusplus
12313 extern "C"
12314 #endif
12315 char png_get_channels ();
12317 main ()
12319 return png_get_channels ();
12321 return 0;
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"; then :
12325 ac_cv_lib_png_png_get_channels=yes
12326 else
12327 ac_cv_lib_png_png_get_channels=no
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12334 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12335 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12336 HAVE_PNG=yes
12342 if test "${HAVE_PNG}" = "yes"; then
12344 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12346 LIBPNG="-lpng -lz -lm"
12351 ### Use -ltiff if available, unless `--with-tiff=no'.
12352 HAVE_TIFF=no
12353 LIBTIFF=
12354 if test "${HAVE_X11}" = "yes"; then
12355 if test "${with_tiff}" != "no"; then
12356 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12357 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12358 tifflibs="-lz -lm"
12359 # At least one tiff package requires the jpeg library.
12360 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12362 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12363 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 ac_check_lib_save_LIBS=$LIBS
12367 LIBS="-ltiff $tifflibs $LIBS"
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12371 /* Override any GCC internal prototype to avoid an error.
12372 Use char because int might match the return type of a GCC
12373 builtin and then its argument prototype would still apply. */
12374 #ifdef __cplusplus
12375 extern "C"
12376 #endif
12377 char TIFFGetVersion ();
12379 main ()
12381 return TIFFGetVersion ();
12383 return 0;
12385 _ACEOF
12386 if ac_fn_c_try_link "$LINENO"; then :
12387 ac_cv_lib_tiff_TIFFGetVersion=yes
12388 else
12389 ac_cv_lib_tiff_TIFFGetVersion=no
12391 rm -f core conftest.err conftest.$ac_objext \
12392 conftest$ac_exeext conftest.$ac_ext
12393 LIBS=$ac_check_lib_save_LIBS
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12396 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12397 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12398 HAVE_TIFF=yes
12406 if test "${HAVE_TIFF}" = "yes"; then
12408 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12410 LIBTIFF=-ltiff
12415 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12416 HAVE_GIF=no
12417 LIBGIF=
12418 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12419 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12420 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12421 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12422 # Earlier versions can crash Emacs.
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12424 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12425 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lgif $LIBS"
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char EGifPutExtensionLast ();
12441 main ()
12443 return EGifPutExtensionLast ();
12445 return 0;
12447 _ACEOF
12448 if ac_fn_c_try_link "$LINENO"; then :
12449 ac_cv_lib_gif_EGifPutExtensionLast=yes
12450 else
12451 ac_cv_lib_gif_EGifPutExtensionLast=no
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12458 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12459 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12460 HAVE_GIF=yes
12461 else
12462 HAVE_GIF=maybe
12469 if test "$HAVE_GIF" = yes; then
12470 LIBGIF=-lgif
12471 elif test "$HAVE_GIF" = maybe; then
12472 # If gif_lib.h but no libgif, try libungif.
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12474 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12475 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 ac_check_lib_save_LIBS=$LIBS
12479 LIBS="-lungif $LIBS"
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 char EGifPutExtensionLast ();
12491 main ()
12493 return EGifPutExtensionLast ();
12495 return 0;
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12500 else
12501 ac_cv_lib_ungif_EGifPutExtensionLast=no
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12508 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12509 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12510 HAVE_GIF=yes
12511 else
12512 HAVE_GIF=no
12515 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12518 if test "${HAVE_GIF}" = "yes"; then
12520 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12526 if test "${HAVE_X11}" = "yes"; then
12527 MISSING=""
12528 WITH_NO=""
12529 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12530 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12531 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12532 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12533 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12534 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12535 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12536 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12537 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12538 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12540 if test "X${MISSING}" != X; then
12541 as_fn_error "The following required libraries were not found:
12542 $MISSING
12543 Maybe some development libraries/packages are missing?
12544 If you don't want to link with them give
12545 $WITH_NO
12546 as options to configure" "$LINENO" 5
12550 ### Use -lgpm if available, unless `--with-gpm=no'.
12551 HAVE_GPM=no
12552 LIBGPM=
12553 MOUSE_SUPPORT=
12554 if test "${with_gpm}" != "no"; then
12555 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12556 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12558 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12559 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_check_lib_save_LIBS=$LIBS
12563 LIBS="-lgpm $LIBS"
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12567 /* Override any GCC internal prototype to avoid an error.
12568 Use char because int might match the return type of a GCC
12569 builtin and then its argument prototype would still apply. */
12570 #ifdef __cplusplus
12571 extern "C"
12572 #endif
12573 char Gpm_Open ();
12575 main ()
12577 return Gpm_Open ();
12579 return 0;
12581 _ACEOF
12582 if ac_fn_c_try_link "$LINENO"; then :
12583 ac_cv_lib_gpm_Gpm_Open=yes
12584 else
12585 ac_cv_lib_gpm_Gpm_Open=no
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589 LIBS=$ac_check_lib_save_LIBS
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12592 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12593 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12594 HAVE_GPM=yes
12601 if test "${HAVE_GPM}" = "yes"; then
12603 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12605 LIBGPM=-lgpm
12606 ## May be reset below.
12607 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12612 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12613 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12615 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12621 C_SWITCH_X_SYSTEM=
12622 ### Use NeXTstep API to implement GUI.
12623 if test "${HAVE_NS}" = "yes"; then
12625 $as_echo "#define HAVE_NS 1" >>confdefs.h
12627 if test "${NS_IMPL_COCOA}" = "yes"; then
12629 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12631 GNU_OBJC_CFLAGS=
12633 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12635 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12637 # See also .m.o rule in Makefile.in */
12638 # FIXME: are all these flags really needed? Document here why. */
12639 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12640 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12642 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12644 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12647 # We also have mouse menus.
12648 HAVE_MENUS=yes
12649 OTHER_FILES=ns-app
12653 ### Use session management (-lSM -lICE) if available
12654 HAVE_X_SM=no
12655 LIBXSM=
12656 if test "${HAVE_X11}" = "yes"; then
12657 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12658 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12660 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12661 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-lSM -lICE $LIBS"
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12669 /* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 char SmcOpenConnection ();
12677 main ()
12679 return SmcOpenConnection ();
12681 return 0;
12683 _ACEOF
12684 if ac_fn_c_try_link "$LINENO"; then :
12685 ac_cv_lib_SM_SmcOpenConnection=yes
12686 else
12687 ac_cv_lib_SM_SmcOpenConnection=no
12689 rm -f core conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12694 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12695 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12696 HAVE_X_SM=yes
12703 if test "${HAVE_X_SM}" = "yes"; then
12705 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12707 LIBXSM="-lSM -lICE"
12708 case "$LIBS" in
12709 *-lSM*) ;;
12710 *) LIBS="$LIBXSM $LIBS" ;;
12711 esac
12716 ### Use libxml (-lxml2) if available
12717 if test "${with_xml2}" != "no"; then
12718 ### I'm not sure what the version number should be, so I just guessed.
12720 succeeded=no
12722 # Extract the first word of "pkg-config", so it can be a program name with args.
12723 set dummy pkg-config; ac_word=$2
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725 $as_echo_n "checking for $ac_word... " >&6; }
12726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 case $PKG_CONFIG in
12730 [\\/]* | ?:[\\/]*)
12731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12741 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12745 done
12746 done
12747 IFS=$as_save_IFS
12749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12751 esac
12753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12754 if test -n "$PKG_CONFIG"; then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12756 $as_echo "$PKG_CONFIG" >&6; }
12757 else
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12759 $as_echo "no" >&6; }
12764 if test "$PKG_CONFIG" = "no" ; then
12765 HAVE_LIBXML2=no
12766 else
12767 PKG_CONFIG_MIN_VERSION=0.9.0
12768 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12770 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12772 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12774 $as_echo "yes" >&6; }
12775 succeeded=yes
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12778 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12779 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12781 $as_echo "$LIBXML2_CFLAGS" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12784 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12785 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12787 $as_echo "$LIBXML2_LIBS" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12791 LIBXML2_CFLAGS=""
12792 LIBXML2_LIBS=""
12793 ## If we have a custom action on failure, don't print errors, but
12794 ## do set a variable so people can do so.
12795 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12801 else
12802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12807 if test $succeeded = yes; then
12808 HAVE_LIBXML2=yes
12809 else
12810 HAVE_LIBXML2=no
12813 if test "${HAVE_LIBXML2}" = "yes"; then
12814 LIBS="$LIBXML2_LIBS $LIBS"
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12816 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12817 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-lxml2 $LIBS"
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 char htmlReadMemory ();
12833 main ()
12835 return htmlReadMemory ();
12837 return 0;
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841 ac_cv_lib_xml2_htmlReadMemory=yes
12842 else
12843 ac_cv_lib_xml2_htmlReadMemory=no
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12850 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12851 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12852 HAVE_LIBXML2=yes
12853 else
12854 HAVE_LIBXML2=no
12857 if test "${HAVE_LIBXML2}" = "yes"; then
12859 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12861 else
12862 LIBXML2_LIBS=""
12863 LIBXML2_CFLAGS=""
12870 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12872 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12873 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 #include <netdb.h>
12880 main ()
12882 return h_errno;
12884 return 0;
12886 _ACEOF
12887 if ac_fn_c_try_link "$LINENO"; then :
12888 emacs_cv_netdb_declares_h_errno=yes
12889 else
12890 emacs_cv_netdb_declares_h_errno=no
12892 rm -f core conftest.err conftest.$ac_objext \
12893 conftest$ac_exeext conftest.$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12896 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12897 if test $emacs_cv_netdb_declares_h_errno = yes; then
12899 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12903 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12904 # for constant arguments. Useless!
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12906 $as_echo_n "checking for working alloca.h... " >&6; }
12907 if test "${ac_cv_working_alloca_h+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 #include <alloca.h>
12914 main ()
12916 char *p = (char *) alloca (2 * sizeof (int));
12917 if (p) return 0;
12919 return 0;
12921 _ACEOF
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_working_alloca_h=yes
12924 else
12925 ac_cv_working_alloca_h=no
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12931 $as_echo "$ac_cv_working_alloca_h" >&6; }
12932 if test $ac_cv_working_alloca_h = yes; then
12934 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12939 $as_echo_n "checking for alloca... " >&6; }
12940 if test "${ac_cv_func_alloca_works+set}" = set; then :
12941 $as_echo_n "(cached) " >&6
12942 else
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945 #ifdef __GNUC__
12946 # define alloca __builtin_alloca
12947 #else
12948 # ifdef _MSC_VER
12949 # include <malloc.h>
12950 # define alloca _alloca
12951 # else
12952 # ifdef HAVE_ALLOCA_H
12953 # include <alloca.h>
12954 # else
12955 # ifdef _AIX
12956 #pragma alloca
12957 # else
12958 # ifndef alloca /* predefined by HP cc +Olibcalls */
12959 char *alloca ();
12960 # endif
12961 # endif
12962 # endif
12963 # endif
12964 #endif
12967 main ()
12969 char *p = (char *) alloca (1);
12970 if (p) return 0;
12972 return 0;
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976 ac_cv_func_alloca_works=yes
12977 else
12978 ac_cv_func_alloca_works=no
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12984 $as_echo "$ac_cv_func_alloca_works" >&6; }
12986 if test $ac_cv_func_alloca_works = yes; then
12988 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12990 else
12991 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12992 # that cause trouble. Some versions do not even contain alloca or
12993 # contain a buggy version. If you still want to use their alloca,
12994 # use ar to extract alloca.o from them instead of compiling alloca.c.
12996 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12998 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13002 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13003 if test "${ac_cv_os_cray+set}" = set; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #if defined CRAY && ! defined CRAY2
13009 webecray
13010 #else
13011 wenotbecray
13012 #endif
13014 _ACEOF
13015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13016 $EGREP "webecray" >/dev/null 2>&1; then :
13017 ac_cv_os_cray=yes
13018 else
13019 ac_cv_os_cray=no
13021 rm -f conftest*
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13025 $as_echo "$ac_cv_os_cray" >&6; }
13026 if test $ac_cv_os_cray = yes; then
13027 for ac_func in _getb67 GETB67 getb67; do
13028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13030 eval as_val=\$$as_ac_var
13031 if test "x$as_val" = x""yes; then :
13033 cat >>confdefs.h <<_ACEOF
13034 #define CRAY_STACKSEG_END $ac_func
13035 _ACEOF
13037 break
13040 done
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13044 $as_echo_n "checking stack direction for C alloca... " >&6; }
13045 if test "${ac_cv_c_stack_direction+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 if test "$cross_compiling" = yes; then :
13049 ac_cv_c_stack_direction=0
13050 else
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 $ac_includes_default
13055 find_stack_direction ()
13057 static char *addr = 0;
13058 auto char dummy;
13059 if (addr == 0)
13061 addr = &dummy;
13062 return find_stack_direction ();
13064 else
13065 return (&dummy > addr) ? 1 : -1;
13069 main ()
13071 return find_stack_direction () < 0;
13073 _ACEOF
13074 if ac_fn_c_try_run "$LINENO"; then :
13075 ac_cv_c_stack_direction=1
13076 else
13077 ac_cv_c_stack_direction=-1
13079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13080 conftest.$ac_objext conftest.beam conftest.$ac_ext
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13085 $as_echo "$ac_cv_c_stack_direction" >&6; }
13086 cat >>confdefs.h <<_ACEOF
13087 #define STACK_DIRECTION $ac_cv_c_stack_direction
13088 _ACEOF
13094 if test x"$ac_cv_func_alloca_works" != xyes; then
13095 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
13098 # fmod, logb, and frexp are found in -lm on most systems.
13099 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13101 $as_echo_n "checking for sqrt in -lm... " >&6; }
13102 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13104 else
13105 ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-lm $LIBS"
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13110 /* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13113 #ifdef __cplusplus
13114 extern "C"
13115 #endif
13116 char sqrt ();
13118 main ()
13120 return sqrt ();
13122 return 0;
13124 _ACEOF
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 ac_cv_lib_m_sqrt=yes
13127 else
13128 ac_cv_lib_m_sqrt=no
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 LIBS=$ac_check_lib_save_LIBS
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13135 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13136 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13137 cat >>confdefs.h <<_ACEOF
13138 #define HAVE_LIBM 1
13139 _ACEOF
13141 LIBS="-lm $LIBS"
13146 # Check for mail-locking functions in a "mail" library. Probably this should
13147 # have the same check as for liblockfile below.
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13149 $as_echo_n "checking for maillock in -lmail... " >&6; }
13150 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13152 else
13153 ac_check_lib_save_LIBS=$LIBS
13154 LIBS="-lmail $LIBS"
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char maillock ();
13166 main ()
13168 return maillock ();
13170 return 0;
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"; then :
13174 ac_cv_lib_mail_maillock=yes
13175 else
13176 ac_cv_lib_mail_maillock=no
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13183 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13184 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13185 have_mail=yes
13186 else
13187 have_mail=no
13190 if test $have_mail = yes; then
13191 LIBS_MAIL=-lmail
13192 LIBS="$LIBS_MAIL $LIBS"
13194 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13196 else
13197 LIBS_MAIL=
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13200 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13201 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13202 $as_echo_n "(cached) " >&6
13203 else
13204 ac_check_lib_save_LIBS=$LIBS
13205 LIBS="-llockfile $LIBS"
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char maillock ();
13217 main ()
13219 return maillock ();
13221 return 0;
13223 _ACEOF
13224 if ac_fn_c_try_link "$LINENO"; then :
13225 ac_cv_lib_lockfile_maillock=yes
13226 else
13227 ac_cv_lib_lockfile_maillock=no
13229 rm -f core conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231 LIBS=$ac_check_lib_save_LIBS
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13234 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13235 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13236 have_lockfile=yes
13237 else
13238 have_lockfile=no
13241 if test $have_lockfile = yes; then
13242 LIBS_MAIL=-llockfile
13243 LIBS="$LIBS_MAIL $LIBS"
13245 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13247 else
13248 # If we have the shared liblockfile, assume we must use it for mail
13249 # locking (e.g. Debian). If we couldn't link against liblockfile
13250 # (no liblockfile.a installed), ensure that we don't need to.
13251 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13252 set dummy liblockfile.so; ac_word=$2
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13254 $as_echo_n "checking for $ac_word... " >&6; }
13255 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13258 if test -n "$liblockfile"; then
13259 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13260 else
13261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13263 for as_dir in $as_dummy
13265 IFS=$as_save_IFS
13266 test -z "$as_dir" && as_dir=.
13267 for ac_exec_ext in '' $ac_executable_extensions; do
13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13269 ac_cv_prog_liblockfile="yes"
13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13271 break 2
13273 done
13274 done
13275 IFS=$as_save_IFS
13277 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13280 liblockfile=$ac_cv_prog_liblockfile
13281 if test -n "$liblockfile"; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13283 $as_echo "$liblockfile" >&6; }
13284 else
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286 $as_echo "no" >&6; }
13290 if test $ac_cv_prog_liblockfile = yes; then
13291 as_fn_error "Shared liblockfile found but can't link against it.
13292 This probably means that movemail could lose mail.
13293 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13296 for ac_func in touchlock
13297 do :
13298 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13299 if test "x$ac_cv_func_touchlock" = x""yes; then :
13300 cat >>confdefs.h <<_ACEOF
13301 #define HAVE_TOUCHLOCK 1
13302 _ACEOF
13305 done
13307 for ac_header in maillock.h
13308 do :
13309 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13310 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_MAILLOCK_H 1
13313 _ACEOF
13317 done
13321 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13322 ## interlock access to the mail spool. The alternative is a lock file named
13323 ## /usr/spool/mail/$USER.lock.
13324 mail_lock=no
13325 case "$opsys" in
13326 aix4-2) mail_lock="lockf" ;;
13328 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13330 ## On GNU/Linux systems, both methods are used by various mail programs.
13331 ## I assume most people are using newer mailers that have heard of flock.
13332 ## Change this if you need to.
13333 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13334 ## configure gets the right answers, and that means *NOT* using flock.
13335 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13336 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13337 ## Debian maintainer hasn't provided a clean fix for Emacs.
13338 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13339 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13340 ## correct logic. -- fx
13341 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13342 ## liblockfile is a Free Software replacement for libmail, used on
13343 ## Debian systems and elsewhere. -rfr.
13344 gnu-*)
13345 mail_lock="flock"
13346 if test $have_mail = yes || test $have_lockfile = yes; then
13347 test $ac_cv_header_maillock_h = yes && mail_lock=no
13350 esac
13352 BLESSMAIL_TARGET=
13353 case "$mail_lock" in
13354 flock)
13355 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13358 lockf)
13359 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13362 *) BLESSMAIL_TARGET="need-blessmail" ;;
13363 esac
13367 for ac_func in gethostname getdomainname dup2 \
13368 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13369 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13370 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13371 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13372 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13373 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13374 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13375 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13376 cfmakeraw cfsetspeed isnan copysign __executable_start
13377 do :
13378 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13379 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13380 eval as_val=\$$as_ac_var
13381 if test "x$as_val" = x""yes; then :
13382 cat >>confdefs.h <<_ACEOF
13383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13384 _ACEOF
13387 done
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13391 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13392 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13399 main ()
13401 __builtin_unwind_init ();
13403 return 0;
13405 _ACEOF
13406 if ac_fn_c_try_link "$LINENO"; then :
13407 emacs_cv_func___builtin_unwind_init=yes
13408 else
13409 emacs_cv_func___builtin_unwind_init=no
13411 rm -f core conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13415 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13416 if test $emacs_cv_func___builtin_unwind_init = yes; then
13418 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13422 for ac_header in sys/un.h
13423 do :
13424 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_SYS_UN_H 1
13428 _ACEOF
13432 done
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13436 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13437 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 while :; do
13441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 #include <sys/types.h> /* for off_t */
13444 #include <stdio.h>
13446 main ()
13448 int (*fp) (FILE *, off_t, int) = fseeko;
13449 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13451 return 0;
13453 _ACEOF
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 ac_cv_sys_largefile_source=no; break
13457 rm -f core conftest.err conftest.$ac_objext \
13458 conftest$ac_exeext conftest.$ac_ext
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 #define _LARGEFILE_SOURCE 1
13462 #include <sys/types.h> /* for off_t */
13463 #include <stdio.h>
13465 main ()
13467 int (*fp) (FILE *, off_t, int) = fseeko;
13468 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13470 return 0;
13472 _ACEOF
13473 if ac_fn_c_try_link "$LINENO"; then :
13474 ac_cv_sys_largefile_source=1; break
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 ac_cv_sys_largefile_source=unknown
13479 break
13480 done
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13483 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13484 case $ac_cv_sys_largefile_source in #(
13485 no | unknown) ;;
13487 cat >>confdefs.h <<_ACEOF
13488 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13489 _ACEOF
13491 esac
13492 rm -rf conftest*
13494 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13495 # in glibc 2.1.3, but that breaks too many other things.
13496 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13497 if test $ac_cv_sys_largefile_source != unknown; then
13499 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13505 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13506 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13507 $as_echo_n "(cached) " >&6
13508 else
13509 # Use it with a single arg.
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 $ac_includes_default
13514 main ()
13516 getpgrp (0);
13518 return 0;
13520 _ACEOF
13521 if ac_fn_c_try_compile "$LINENO"; then :
13522 ac_cv_func_getpgrp_void=no
13523 else
13524 ac_cv_func_getpgrp_void=yes
13526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13530 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13531 if test $ac_cv_func_getpgrp_void = yes; then
13533 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13538 # Configure gnulib.
13549 LIBC_FATAL_STDERR_=1
13550 export LIBC_FATAL_STDERR_
13555 for ac_func in $ac_func_list
13556 do :
13557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13559 eval as_val=\$$as_ac_var
13560 if test "x$as_val" = x""yes; then :
13561 cat >>confdefs.h <<_ACEOF
13562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13563 _ACEOF
13566 done
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13572 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13573 if test "${ac_cv_c_bigendian+set}" = set; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 ac_cv_c_bigendian=unknown
13577 # See if we're dealing with a universal compiler.
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13580 #ifndef __APPLE_CC__
13581 not a universal capable compiler
13582 #endif
13583 typedef int dummy;
13585 _ACEOF
13586 if ac_fn_c_try_compile "$LINENO"; then :
13588 # Check for potential -arch flags. It is not universal unless
13589 # there are at least two -arch flags with different values.
13590 ac_arch=
13591 ac_prev=
13592 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13593 if test -n "$ac_prev"; then
13594 case $ac_word in
13595 i?86 | x86_64 | ppc | ppc64)
13596 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13597 ac_arch=$ac_word
13598 else
13599 ac_cv_c_bigendian=universal
13600 break
13603 esac
13604 ac_prev=
13605 elif test "x$ac_word" = "x-arch"; then
13606 ac_prev=arch
13608 done
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 if test $ac_cv_c_bigendian = unknown; then
13612 # See if sys/param.h defines the BYTE_ORDER macro.
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 #include <sys/types.h>
13616 #include <sys/param.h>
13619 main ()
13621 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13622 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13623 && LITTLE_ENDIAN)
13624 bogus endian macros
13625 #endif
13628 return 0;
13630 _ACEOF
13631 if ac_fn_c_try_compile "$LINENO"; then :
13632 # It does; now see whether it defined to BIG_ENDIAN or not.
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #include <sys/types.h>
13636 #include <sys/param.h>
13639 main ()
13641 #if BYTE_ORDER != BIG_ENDIAN
13642 not big endian
13643 #endif
13646 return 0;
13648 _ACEOF
13649 if ac_fn_c_try_compile "$LINENO"; then :
13650 ac_cv_c_bigendian=yes
13651 else
13652 ac_cv_c_bigendian=no
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 if test $ac_cv_c_bigendian = unknown; then
13659 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <limits.h>
13665 main ()
13667 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13668 bogus endian macros
13669 #endif
13672 return 0;
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 # It does; now see whether it defined to _BIG_ENDIAN or not.
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679 #include <limits.h>
13682 main ()
13684 #ifndef _BIG_ENDIAN
13685 not big endian
13686 #endif
13689 return 0;
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"; then :
13693 ac_cv_c_bigendian=yes
13694 else
13695 ac_cv_c_bigendian=no
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 if test $ac_cv_c_bigendian = unknown; then
13702 # Compile a test program.
13703 if test "$cross_compiling" = yes; then :
13704 # Try to guess by grepping values from an object file.
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707 short int ascii_mm[] =
13708 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13709 short int ascii_ii[] =
13710 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13711 int use_ascii (int i) {
13712 return ascii_mm[i] + ascii_ii[i];
13714 short int ebcdic_ii[] =
13715 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13716 short int ebcdic_mm[] =
13717 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13718 int use_ebcdic (int i) {
13719 return ebcdic_mm[i] + ebcdic_ii[i];
13721 extern int foo;
13724 main ()
13726 return use_ascii (foo) == use_ebcdic (foo);
13728 return 0;
13730 _ACEOF
13731 if ac_fn_c_try_compile "$LINENO"; then :
13732 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13733 ac_cv_c_bigendian=yes
13735 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13736 if test "$ac_cv_c_bigendian" = unknown; then
13737 ac_cv_c_bigendian=no
13738 else
13739 # finding both strings is unlikely to happen, but who knows?
13740 ac_cv_c_bigendian=unknown
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 else
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748 $ac_includes_default
13750 main ()
13753 /* Are we little or big endian? From Harbison&Steele. */
13754 union
13756 long int l;
13757 char c[sizeof (long int)];
13758 } u;
13759 u.l = 1;
13760 return u.c[sizeof (long int) - 1] == 1;
13763 return 0;
13765 _ACEOF
13766 if ac_fn_c_try_run "$LINENO"; then :
13767 ac_cv_c_bigendian=no
13768 else
13769 ac_cv_c_bigendian=yes
13771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13772 conftest.$ac_objext conftest.beam conftest.$ac_ext
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13778 $as_echo "$ac_cv_c_bigendian" >&6; }
13779 case $ac_cv_c_bigendian in #(
13780 yes)
13781 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13782 ;; #(
13784 ;; #(
13785 universal)
13787 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13789 ;; #(
13791 as_fn_error "unknown endianness
13792 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13793 esac
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13797 $as_echo_n "checking for inline... " >&6; }
13798 if test "${ac_cv_c_inline+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 ac_cv_c_inline=no
13802 for ac_kw in inline __inline__ __inline; do
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805 #ifndef __cplusplus
13806 typedef int foo_t;
13807 static $ac_kw foo_t static_foo () {return 0; }
13808 $ac_kw foo_t foo () {return 0; }
13809 #endif
13811 _ACEOF
13812 if ac_fn_c_try_compile "$LINENO"; then :
13813 ac_cv_c_inline=$ac_kw
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 test "$ac_cv_c_inline" != no && break
13817 done
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13821 $as_echo "$ac_cv_c_inline" >&6; }
13823 case $ac_cv_c_inline in
13824 inline | yes) ;;
13826 case $ac_cv_c_inline in
13827 no) ac_val=;;
13828 *) ac_val=$ac_cv_c_inline;;
13829 esac
13830 cat >>confdefs.h <<_ACEOF
13831 #ifndef __cplusplus
13832 #define inline $ac_val
13833 #endif
13834 _ACEOF
13836 esac
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13840 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13841 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 /* On HP-UX before 11.23, strtold returns a struct instead of
13847 long double. Reject implementations like that, by requiring
13848 compatibility with the C99 prototype. */
13849 #include <stdlib.h>
13850 static long double (*p) (char const *, char **) = strtold;
13851 static long double
13852 test (char const *nptr, char **endptr)
13854 long double r;
13855 r = strtold (nptr, endptr);
13856 return r;
13859 main ()
13861 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13863 return 0;
13865 _ACEOF
13866 if ac_fn_c_try_link "$LINENO"; then :
13867 gl_cv_func_c99_strtold=yes
13868 else
13869 gl_cv_func_c99_strtold=no
13871 rm -f core conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13875 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13876 if test $gl_cv_func_c99_strtold = yes; then
13878 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13883 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13884 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13888 /* end confdefs.h. */
13890 #include <sys/types.h>
13891 #include <sys/stat.h>
13893 main ()
13895 struct stat s; s.st_dm_mode;
13897 return 0;
13899 _ACEOF
13900 if ac_fn_c_try_compile "$LINENO"; then :
13901 ac_cv_struct_st_dm_mode=yes
13902 else
13903 ac_cv_struct_st_dm_mode=no
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13908 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13910 if test $ac_cv_struct_st_dm_mode = yes; then
13912 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13917 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13918 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
13919 ac_have_decl=1
13920 else
13921 ac_have_decl=0
13924 cat >>confdefs.h <<_ACEOF
13925 #define HAVE_DECL_STRMODE $ac_have_decl
13926 _ACEOF
13929 GNULIB__EXIT=0;
13930 GNULIB_ATOLL=0;
13931 GNULIB_CALLOC_POSIX=0;
13932 GNULIB_CANONICALIZE_FILE_NAME=0;
13933 GNULIB_GETLOADAVG=0;
13934 GNULIB_GETSUBOPT=0;
13935 GNULIB_GRANTPT=0;
13936 GNULIB_MALLOC_POSIX=0;
13937 GNULIB_MBTOWC=0;
13938 GNULIB_MKDTEMP=0;
13939 GNULIB_MKOSTEMP=0;
13940 GNULIB_MKOSTEMPS=0;
13941 GNULIB_MKSTEMP=0;
13942 GNULIB_MKSTEMPS=0;
13943 GNULIB_PTSNAME=0;
13944 GNULIB_PUTENV=0;
13945 GNULIB_RANDOM_R=0;
13946 GNULIB_REALLOC_POSIX=0;
13947 GNULIB_REALPATH=0;
13948 GNULIB_RPMATCH=0;
13949 GNULIB_SETENV=0;
13950 GNULIB_STRTOD=0;
13951 GNULIB_STRTOLL=0;
13952 GNULIB_STRTOULL=0;
13953 GNULIB_SYSTEM_POSIX=0;
13954 GNULIB_UNLOCKPT=0;
13955 GNULIB_UNSETENV=0;
13956 GNULIB_WCTOMB=0;
13957 HAVE__EXIT=1;
13958 HAVE_ATOLL=1;
13959 HAVE_CANONICALIZE_FILE_NAME=1;
13960 HAVE_DECL_GETLOADAVG=1;
13961 HAVE_GETSUBOPT=1;
13962 HAVE_GRANTPT=1;
13963 HAVE_MKDTEMP=1;
13964 HAVE_MKOSTEMP=1;
13965 HAVE_MKOSTEMPS=1;
13966 HAVE_MKSTEMP=1;
13967 HAVE_MKSTEMPS=1;
13968 HAVE_PTSNAME=1;
13969 HAVE_RANDOM_H=1;
13970 HAVE_RANDOM_R=1;
13971 HAVE_REALPATH=1;
13972 HAVE_RPMATCH=1;
13973 HAVE_SETENV=1;
13974 HAVE_DECL_SETENV=1;
13975 HAVE_STRTOD=1;
13976 HAVE_STRTOLL=1;
13977 HAVE_STRTOULL=1;
13978 HAVE_STRUCT_RANDOM_DATA=1;
13979 HAVE_SYS_LOADAVG_H=0;
13980 HAVE_UNLOCKPT=1;
13981 HAVE_DECL_UNSETENV=1;
13982 REPLACE_CALLOC=0;
13983 REPLACE_CANONICALIZE_FILE_NAME=0;
13984 REPLACE_MALLOC=0;
13985 REPLACE_MBTOWC=0;
13986 REPLACE_MKSTEMP=0;
13987 REPLACE_PUTENV=0;
13988 REPLACE_REALLOC=0;
13989 REPLACE_REALPATH=0;
13990 REPLACE_SETENV=0;
13991 REPLACE_STRTOD=0;
13992 REPLACE_UNSETENV=0;
13993 REPLACE_WCTOMB=0;
13996 GNULIB_CHOWN=0;
13997 GNULIB_CLOSE=0;
13998 GNULIB_DUP2=0;
13999 GNULIB_DUP3=0;
14000 GNULIB_ENVIRON=0;
14001 GNULIB_EUIDACCESS=0;
14002 GNULIB_FACCESSAT=0;
14003 GNULIB_FCHDIR=0;
14004 GNULIB_FCHOWNAT=0;
14005 GNULIB_FSYNC=0;
14006 GNULIB_FTRUNCATE=0;
14007 GNULIB_GETCWD=0;
14008 GNULIB_GETDOMAINNAME=0;
14009 GNULIB_GETDTABLESIZE=0;
14010 GNULIB_GETGROUPS=0;
14011 GNULIB_GETHOSTNAME=0;
14012 GNULIB_GETLOGIN=0;
14013 GNULIB_GETLOGIN_R=0;
14014 GNULIB_GETPAGESIZE=0;
14015 GNULIB_GETUSERSHELL=0;
14016 GNULIB_LCHOWN=0;
14017 GNULIB_LINK=0;
14018 GNULIB_LINKAT=0;
14019 GNULIB_LSEEK=0;
14020 GNULIB_PIPE=0;
14021 GNULIB_PIPE2=0;
14022 GNULIB_PREAD=0;
14023 GNULIB_PWRITE=0;
14024 GNULIB_READLINK=0;
14025 GNULIB_READLINKAT=0;
14026 GNULIB_RMDIR=0;
14027 GNULIB_SLEEP=0;
14028 GNULIB_SYMLINK=0;
14029 GNULIB_SYMLINKAT=0;
14030 GNULIB_TTYNAME_R=0;
14031 GNULIB_UNISTD_H_GETOPT=0;
14032 GNULIB_UNISTD_H_SIGPIPE=0;
14033 GNULIB_UNLINK=0;
14034 GNULIB_UNLINKAT=0;
14035 GNULIB_USLEEP=0;
14036 GNULIB_WRITE=0;
14037 HAVE_CHOWN=1;
14038 HAVE_DUP2=1;
14039 HAVE_DUP3=1;
14040 HAVE_EUIDACCESS=1;
14041 HAVE_FACCESSAT=1;
14042 HAVE_FCHDIR=1;
14043 HAVE_FCHOWNAT=1;
14044 HAVE_FSYNC=1;
14045 HAVE_FTRUNCATE=1;
14046 HAVE_GETDTABLESIZE=1;
14047 HAVE_GETGROUPS=1;
14048 HAVE_GETHOSTNAME=1;
14049 HAVE_GETLOGIN=1;
14050 HAVE_GETPAGESIZE=1;
14051 HAVE_LCHOWN=1;
14052 HAVE_LINK=1;
14053 HAVE_LINKAT=1;
14054 HAVE_PIPE=1;
14055 HAVE_PIPE2=1;
14056 HAVE_PREAD=1;
14057 HAVE_PWRITE=1;
14058 HAVE_READLINK=1;
14059 HAVE_READLINKAT=1;
14060 HAVE_SLEEP=1;
14061 HAVE_SYMLINK=1;
14062 HAVE_SYMLINKAT=1;
14063 HAVE_UNLINKAT=1;
14064 HAVE_USLEEP=1;
14065 HAVE_DECL_ENVIRON=1;
14066 HAVE_DECL_FCHDIR=1;
14067 HAVE_DECL_GETDOMAINNAME=1;
14068 HAVE_DECL_GETLOGIN_R=1;
14069 HAVE_DECL_GETPAGESIZE=1;
14070 HAVE_DECL_GETUSERSHELL=1;
14071 HAVE_DECL_TTYNAME_R=1;
14072 HAVE_OS_H=0;
14073 HAVE_SYS_PARAM_H=0;
14074 REPLACE_CHOWN=0;
14075 REPLACE_CLOSE=0;
14076 REPLACE_DUP=0;
14077 REPLACE_DUP2=0;
14078 REPLACE_FCHOWNAT=0;
14079 REPLACE_GETCWD=0;
14080 REPLACE_GETDOMAINNAME=0;
14081 REPLACE_GETLOGIN_R=0;
14082 REPLACE_GETGROUPS=0;
14083 REPLACE_GETPAGESIZE=0;
14084 REPLACE_LCHOWN=0;
14085 REPLACE_LINK=0;
14086 REPLACE_LINKAT=0;
14087 REPLACE_LSEEK=0;
14088 REPLACE_PREAD=0;
14089 REPLACE_PWRITE=0;
14090 REPLACE_READLINK=0;
14091 REPLACE_RMDIR=0;
14092 REPLACE_SLEEP=0;
14093 REPLACE_SYMLINK=0;
14094 REPLACE_TTYNAME_R=0;
14095 REPLACE_UNLINK=0;
14096 REPLACE_UNLINKAT=0;
14097 REPLACE_USLEEP=0;
14098 REPLACE_WRITE=0;
14099 UNISTD_H_HAVE_WINSOCK2_H=0;
14100 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14106 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14107 if test "${gl_cv_have_include_next+set}" = set; then :
14108 $as_echo_n "(cached) " >&6
14109 else
14110 rm -rf conftestd1a conftestd1b conftestd2
14111 mkdir conftestd1a conftestd1b conftestd2
14112 cat <<EOF > conftestd1a/conftest.h
14113 #define DEFINED_IN_CONFTESTD1
14114 #include_next <conftest.h>
14115 #ifdef DEFINED_IN_CONFTESTD2
14116 int foo;
14117 #else
14118 #error "include_next doesn't work"
14119 #endif
14121 cat <<EOF > conftestd1b/conftest.h
14122 #define DEFINED_IN_CONFTESTD1
14123 #include <stdio.h>
14124 #include_next <conftest.h>
14125 #ifdef DEFINED_IN_CONFTESTD2
14126 int foo;
14127 #else
14128 #error "include_next doesn't work"
14129 #endif
14131 cat <<EOF > conftestd2/conftest.h
14132 #ifndef DEFINED_IN_CONFTESTD1
14133 #error "include_next test doesn't work"
14134 #endif
14135 #define DEFINED_IN_CONFTESTD2
14137 gl_save_CPPFLAGS="$CPPFLAGS"
14138 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 #include <conftest.h>
14142 _ACEOF
14143 if ac_fn_c_try_compile "$LINENO"; then :
14144 gl_cv_have_include_next=yes
14145 else
14146 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <conftest.h>
14150 _ACEOF
14151 if ac_fn_c_try_compile "$LINENO"; then :
14152 gl_cv_have_include_next=buggy
14153 else
14154 gl_cv_have_include_next=no
14156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 CPPFLAGS="$gl_save_CPPFLAGS"
14161 rm -rf conftestd1a conftestd1b conftestd2
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14165 $as_echo "$gl_cv_have_include_next" >&6; }
14166 PRAGMA_SYSTEM_HEADER=
14167 if test $gl_cv_have_include_next = yes; then
14168 INCLUDE_NEXT=include_next
14169 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14170 if test -n "$GCC"; then
14171 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14173 else
14174 if test $gl_cv_have_include_next = buggy; then
14175 INCLUDE_NEXT=include
14176 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14177 else
14178 INCLUDE_NEXT=include
14179 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14186 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14187 if test "${gl_cv_pragma_columns+set}" = set; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14191 /* end confdefs.h. */
14193 #ifdef __TANDEM
14194 choke me
14195 #endif
14197 _ACEOF
14198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14199 $EGREP "choke me" >/dev/null 2>&1; then :
14200 gl_cv_pragma_columns=yes
14201 else
14202 gl_cv_pragma_columns=no
14204 rm -f conftest*
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14209 $as_echo "$gl_cv_pragma_columns" >&6; }
14210 if test $gl_cv_pragma_columns = yes; then
14211 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14212 else
14213 PRAGMA_COLUMNS=
14232 if test $gl_cv_have_include_next = yes; then
14233 gl_cv_next_getopt_h='<'getopt.h'>'
14234 else
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14236 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14237 if test "${gl_cv_next_getopt_h+set}" = set; then :
14238 $as_echo_n "(cached) " >&6
14239 else
14241 if test $ac_cv_header_getopt_h = yes; then
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14246 #include <getopt.h>
14248 _ACEOF
14249 case "$host_os" in
14250 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14251 *) gl_absname_cpp="$ac_cpp" ;;
14252 esac
14253 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14254 sed -n '\#/getopt.h#{
14255 s#.*"\(.*/getopt.h\)".*#\1#
14256 s#^/[^/]#//&#
14259 }'`'"'
14260 else
14261 gl_cv_next_getopt_h='<'getopt.h'>'
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14267 $as_echo "$gl_cv_next_getopt_h" >&6; }
14269 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14271 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14273 gl_next_as_first_directive='<'getopt.h'>'
14274 else
14275 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14276 gl_next_as_first_directive=$gl_cv_next_getopt_h
14278 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14283 if test $ac_cv_header_getopt_h = yes; then
14284 HAVE_GETOPT_H=1
14285 else
14286 HAVE_GETOPT_H=0
14290 gl_replace_getopt=
14292 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14293 for ac_header in getopt.h
14294 do :
14295 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14296 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14297 cat >>confdefs.h <<_ACEOF
14298 #define HAVE_GETOPT_H 1
14299 _ACEOF
14301 else
14302 gl_replace_getopt=yes
14305 done
14309 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14310 for ac_func in getopt_long_only
14311 do :
14312 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14313 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14314 cat >>confdefs.h <<_ACEOF
14315 #define HAVE_GETOPT_LONG_ONLY 1
14316 _ACEOF
14318 else
14319 gl_replace_getopt=yes
14321 done
14325 if test -z "$gl_replace_getopt"; then
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14327 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14328 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #include <unistd.h>
14336 main ()
14338 int *p = &optreset; return optreset;
14340 return 0;
14342 _ACEOF
14343 if ac_fn_c_try_compile "$LINENO"; then :
14344 gl_optind_min=1
14345 else
14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14348 #include <getopt.h>
14350 main ()
14352 return !getopt_clip;
14354 return 0;
14356 _ACEOF
14357 if ac_fn_c_try_compile "$LINENO"; then :
14358 gl_optind_min=1
14359 else
14360 gl_optind_min=0
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14366 gl_save_CPPFLAGS=$CPPFLAGS
14367 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14368 if test "$cross_compiling" = yes; then :
14369 case "$host_os" in
14370 mingw*) gl_cv_func_getopt_posix="guessing no";;
14371 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14372 *) gl_cv_func_getopt_posix="guessing yes";;
14373 esac
14375 else
14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14379 #include <unistd.h>
14380 #include <stdlib.h>
14381 #include <string.h>
14384 main ()
14387 int argc = 0;
14388 char *argv[10];
14389 int c;
14391 argv[argc++] = "program";
14392 argv[argc++] = "-a";
14393 argv[argc++] = "foo";
14394 argv[argc++] = "bar";
14395 argv[argc] = NULL;
14396 optind = OPTIND_MIN;
14397 opterr = 0;
14399 c = getopt (argc, argv, "ab");
14400 if (!(c == 'a'))
14401 return 1;
14402 c = getopt (argc, argv, "ab");
14403 if (!(c == -1))
14404 return 2;
14405 if (!(optind == 2))
14406 return 3;
14408 /* Some internal state exists at this point. */
14410 int argc = 0;
14411 char *argv[10];
14412 int c;
14414 argv[argc++] = "program";
14415 argv[argc++] = "donald";
14416 argv[argc++] = "-p";
14417 argv[argc++] = "billy";
14418 argv[argc++] = "duck";
14419 argv[argc++] = "-a";
14420 argv[argc++] = "bar";
14421 argv[argc] = NULL;
14422 optind = OPTIND_MIN;
14423 opterr = 0;
14425 c = getopt (argc, argv, "+abp:q:");
14426 if (!(c == -1))
14427 return 4;
14428 if (!(strcmp (argv[0], "program") == 0))
14429 return 5;
14430 if (!(strcmp (argv[1], "donald") == 0))
14431 return 6;
14432 if (!(strcmp (argv[2], "-p") == 0))
14433 return 7;
14434 if (!(strcmp (argv[3], "billy") == 0))
14435 return 8;
14436 if (!(strcmp (argv[4], "duck") == 0))
14437 return 9;
14438 if (!(strcmp (argv[5], "-a") == 0))
14439 return 10;
14440 if (!(strcmp (argv[6], "bar") == 0))
14441 return 11;
14442 if (!(optind == 1))
14443 return 12;
14445 /* Detect MacOS 10.5, AIX 7.1 bug. */
14447 char *argv[3] = { "program", "-ab", NULL };
14448 optind = OPTIND_MIN;
14449 opterr = 0;
14450 if (getopt (2, argv, "ab:") != 'a')
14451 return 13;
14452 if (getopt (2, argv, "ab:") != '?')
14453 return 14;
14454 if (optopt != 'b')
14455 return 15;
14456 if (optind != 2)
14457 return 16;
14460 return 0;
14463 _ACEOF
14464 if ac_fn_c_try_run "$LINENO"; then :
14465 gl_cv_func_getopt_posix=yes
14466 else
14467 gl_cv_func_getopt_posix=no
14469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14470 conftest.$ac_objext conftest.beam conftest.$ac_ext
14473 CPPFLAGS=$gl_save_CPPFLAGS
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14477 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14478 case "$gl_cv_func_getopt_posix" in
14479 *no) gl_replace_getopt=yes ;;
14480 esac
14483 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14485 $as_echo_n "checking for working GNU getopt function... " >&6; }
14486 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14487 $as_echo_n "(cached) " >&6
14488 else
14489 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14490 # optstring is necessary for programs like m4 that have POSIX-mandated
14491 # semantics for supporting options interspersed with files.
14492 # Also, since getopt_long is a GNU extension, we require optind=0.
14493 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14494 # so take care to revert to the correct (non-)export state.
14495 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14496 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14497 xx) gl_had_POSIXLY_CORRECT=exported ;;
14498 x) gl_had_POSIXLY_CORRECT=yes ;;
14499 *) gl_had_POSIXLY_CORRECT= ;;
14500 esac
14501 POSIXLY_CORRECT=1
14502 export POSIXLY_CORRECT
14503 if test "$cross_compiling" = yes; then :
14504 case $host_os:$ac_cv_have_decl_optreset in
14505 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14506 *:yes) gl_cv_func_getopt_gnu=no;;
14507 *) gl_cv_func_getopt_gnu=yes;;
14508 esac
14510 else
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #include <getopt.h>
14514 #include <stddef.h>
14515 #include <string.h>
14518 main ()
14521 int result = 0;
14522 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14523 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14524 OSF/1 5.1, Solaris 10. */
14526 char *myargv[3];
14527 myargv[0] = "conftest";
14528 myargv[1] = "-+";
14529 myargv[2] = 0;
14530 opterr = 0;
14531 if (getopt (2, myargv, "+a") != '?')
14532 result |= 1;
14534 /* This code succeeds on glibc 2.8, mingw,
14535 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14536 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14538 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14540 optind = 1;
14541 if (getopt (4, argv, "p::") != 'p')
14542 result |= 2;
14543 else if (optarg != NULL)
14544 result |= 4;
14545 else if (getopt (4, argv, "p::") != -1)
14546 result |= 6;
14547 else if (optind != 2)
14548 result |= 8;
14550 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14552 char *argv[] = { "program", "foo", "-p", NULL };
14553 optind = 0;
14554 if (getopt (3, argv, "-p") != 1)
14555 result |= 16;
14556 else if (getopt (3, argv, "-p") != 'p')
14557 result |= 32;
14559 /* This code fails on glibc 2.11. */
14561 char *argv[] = { "program", "-b", "-a", NULL };
14562 optind = opterr = 0;
14563 if (getopt (3, argv, "+:a:b") != 'b')
14564 result |= 64;
14565 else if (getopt (3, argv, "+:a:b") != ':')
14566 result |= 64;
14568 return result;
14571 return 0;
14573 _ACEOF
14574 if ac_fn_c_try_run "$LINENO"; then :
14575 gl_cv_func_getopt_gnu=yes
14576 else
14577 gl_cv_func_getopt_gnu=no
14579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14580 conftest.$ac_objext conftest.beam conftest.$ac_ext
14583 case $gl_had_POSIXLY_CORRECT in
14584 exported) ;;
14585 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14586 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14587 esac
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14591 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14592 if test "$gl_cv_func_getopt_gnu" = "no"; then
14593 gl_replace_getopt=yes
14597 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14598 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14599 ac_have_decl=1
14600 else
14601 ac_have_decl=0
14604 cat >>confdefs.h <<_ACEOF
14605 #define HAVE_DECL_GETENV $ac_have_decl
14606 _ACEOF
14613 if test -n "$gl_replace_getopt"; then :
14617 GETOPT_H=getopt.h
14619 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14623 GNULIB_UNISTD_H_GETOPT=1
14632 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14642 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14653 GNULIB_FCHMODAT=0;
14654 GNULIB_FSTATAT=0;
14655 GNULIB_FUTIMENS=0;
14656 GNULIB_LCHMOD=0;
14657 GNULIB_LSTAT=0;
14658 GNULIB_MKDIRAT=0;
14659 GNULIB_MKFIFO=0;
14660 GNULIB_MKFIFOAT=0;
14661 GNULIB_MKNOD=0;
14662 GNULIB_MKNODAT=0;
14663 GNULIB_STAT=0;
14664 GNULIB_UTIMENSAT=0;
14665 HAVE_FCHMODAT=1;
14666 HAVE_FSTATAT=1;
14667 HAVE_FUTIMENS=1;
14668 HAVE_LCHMOD=1;
14669 HAVE_LSTAT=1;
14670 HAVE_MKDIRAT=1;
14671 HAVE_MKFIFO=1;
14672 HAVE_MKFIFOAT=1;
14673 HAVE_MKNOD=1;
14674 HAVE_MKNODAT=1;
14675 HAVE_UTIMENSAT=1;
14676 REPLACE_FSTAT=0;
14677 REPLACE_FSTATAT=0;
14678 REPLACE_FUTIMENS=0;
14679 REPLACE_LSTAT=0;
14680 REPLACE_MKDIR=0;
14681 REPLACE_MKFIFO=0;
14682 REPLACE_MKNOD=0;
14683 REPLACE_STAT=0;
14684 REPLACE_UTIMENSAT=0;
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14690 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14691 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14692 $as_echo_n "(cached) " >&6
14693 else
14694 rm -f conftest.sym conftest.file
14695 echo >conftest.file
14696 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14697 if test "$cross_compiling" = yes; then :
14698 # When cross-compiling, be pessimistic so we will end up using the
14699 # replacement version of lstat that checks for trailing slashes and
14700 # calls lstat a second time when necessary.
14701 ac_cv_func_lstat_dereferences_slashed_symlink=no
14703 else
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706 $ac_includes_default
14708 main ()
14710 struct stat sbuf;
14711 /* Linux will dereference the symlink and fail, as required by
14712 POSIX. That is better in the sense that it means we will not
14713 have to compile and use the lstat wrapper. */
14714 return lstat ("conftest.sym/", &sbuf) == 0;
14717 return 0;
14719 _ACEOF
14720 if ac_fn_c_try_run "$LINENO"; then :
14721 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14722 else
14723 ac_cv_func_lstat_dereferences_slashed_symlink=no
14725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14726 conftest.$ac_objext conftest.beam conftest.$ac_ext
14729 else
14730 # If the 'ln -s' command failed, then we probably don't even
14731 # have an lstat function.
14732 ac_cv_func_lstat_dereferences_slashed_symlink=no
14734 rm -f conftest.sym conftest.file
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14738 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14739 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14741 cat >>confdefs.h <<_ACEOF
14742 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14743 _ACEOF
14745 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14754 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14759 GNULIB_MKTIME=0;
14760 GNULIB_NANOSLEEP=0;
14761 GNULIB_STRPTIME=0;
14762 GNULIB_TIMEGM=0;
14763 GNULIB_TIME_R=0;
14764 HAVE_DECL_LOCALTIME_R=1;
14765 HAVE_NANOSLEEP=1;
14766 HAVE_STRPTIME=1;
14767 HAVE_TIMEGM=1;
14768 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14769 REPLACE_MKTIME=GNULIB_PORTCHECK;
14770 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14771 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14776 gl_cv_c_multiarch=no
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779 #ifndef __APPLE_CC__
14780 not a universal capable compiler
14781 #endif
14782 typedef int dummy;
14784 _ACEOF
14785 if ac_fn_c_try_compile "$LINENO"; then :
14787 arch=
14788 prev=
14789 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14790 if test -n "$prev"; then
14791 case $word in
14792 i?86 | x86_64 | ppc | ppc64)
14793 if test -z "$arch" || test "$arch" = "$word"; then
14794 arch="$word"
14795 else
14796 gl_cv_c_multiarch=yes
14799 esac
14800 prev=
14801 else
14802 if test "x$word" = "x-arch"; then
14803 prev=arch
14806 done
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 if test $gl_cv_c_multiarch = yes; then
14811 APPLE_UNIVERSAL_BUILD=1
14812 else
14813 APPLE_UNIVERSAL_BUILD=0
14822 if test $ac_cv_header_sys_socket_h = no; then
14823 for ac_header in ws2tcpip.h
14824 do :
14825 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14826 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
14827 cat >>confdefs.h <<_ACEOF
14828 #define HAVE_WS2TCPIP_H 1
14829 _ACEOF
14833 done
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14838 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14839 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14845 #include <stdbool.h>
14846 #ifndef bool
14847 "error: bool is not defined"
14848 #endif
14849 #ifndef false
14850 "error: false is not defined"
14851 #endif
14852 #if false
14853 "error: false is not 0"
14854 #endif
14855 #ifndef true
14856 "error: true is not defined"
14857 #endif
14858 #if true != 1
14859 "error: true is not 1"
14860 #endif
14861 #ifndef __bool_true_false_are_defined
14862 "error: __bool_true_false_are_defined is not defined"
14863 #endif
14865 struct s { _Bool s: 1; _Bool t; } s;
14867 char a[true == 1 ? 1 : -1];
14868 char b[false == 0 ? 1 : -1];
14869 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14870 char d[(bool) 0.5 == true ? 1 : -1];
14871 /* See body of main program for 'e'. */
14872 char f[(_Bool) 0.0 == false ? 1 : -1];
14873 char g[true];
14874 char h[sizeof (_Bool)];
14875 char i[sizeof s.t];
14876 enum { j = false, k = true, l = false * true, m = true * 256 };
14877 /* The following fails for
14878 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14879 _Bool n[m];
14880 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14881 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14882 /* Catch a bug in an HP-UX C compiler. See
14883 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14884 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14886 _Bool q = true;
14887 _Bool *pq = &q;
14890 main ()
14893 bool e = &s;
14894 *pq |= q;
14895 *pq |= ! q;
14896 /* Refer to every declared value, to avoid compiler optimizations. */
14897 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14898 + !m + !n + !o + !p + !q + !pq);
14901 return 0;
14903 _ACEOF
14904 if ac_fn_c_try_compile "$LINENO"; then :
14905 ac_cv_header_stdbool_h=yes
14906 else
14907 ac_cv_header_stdbool_h=no
14909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14912 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14913 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14914 if test "x$ac_cv_type__Bool" = x""yes; then :
14916 cat >>confdefs.h <<_ACEOF
14917 #define HAVE__BOOL 1
14918 _ACEOF
14925 REPLACE_NULL=0;
14926 HAVE_WCHAR_T=1;
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14930 $as_echo_n "checking for wchar_t... " >&6; }
14931 if test "${gt_cv_c_wchar_t+set}" = set; then :
14932 $as_echo_n "(cached) " >&6
14933 else
14934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14935 /* end confdefs.h. */
14936 #include <stddef.h>
14937 wchar_t foo = (wchar_t)'\0';
14939 main ()
14943 return 0;
14945 _ACEOF
14946 if ac_fn_c_try_compile "$LINENO"; then :
14947 gt_cv_c_wchar_t=yes
14948 else
14949 gt_cv_c_wchar_t=no
14951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14954 $as_echo "$gt_cv_c_wchar_t" >&6; }
14955 if test $gt_cv_c_wchar_t = yes; then
14957 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14963 $as_echo_n "checking for unsigned long long int... " >&6; }
14964 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 ac_cv_type_unsigned_long_long_int=yes
14968 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14972 /* For now, do not test the preprocessor; as of 2007 there are too many
14973 implementations with broken preprocessors. Perhaps this can
14974 be revisited in 2012. In the meantime, code should not expect
14975 #if to work with literals wider than 32 bits. */
14976 /* Test literals. */
14977 long long int ll = 9223372036854775807ll;
14978 long long int nll = -9223372036854775807LL;
14979 unsigned long long int ull = 18446744073709551615ULL;
14980 /* Test constant expressions. */
14981 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14982 ? 1 : -1)];
14983 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14984 ? 1 : -1)];
14985 int i = 63;
14987 main ()
14989 /* Test availability of runtime routines for shift and division. */
14990 long long int llmax = 9223372036854775807ll;
14991 unsigned long long int ullmax = 18446744073709551615ull;
14992 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14993 | (llmax / ll) | (llmax % ll)
14994 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14995 | (ullmax / ull) | (ullmax % ull));
14997 return 0;
15000 _ACEOF
15001 if ac_fn_c_try_link "$LINENO"; then :
15003 else
15004 ac_cv_type_unsigned_long_long_int=no
15006 rm -f core conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15011 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15012 if test $ac_cv_type_unsigned_long_long_int = yes; then
15014 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15021 $as_echo_n "checking for long long int... " >&6; }
15022 if test "${ac_cv_type_long_long_int+set}" = set; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 ac_cv_type_long_long_int=yes
15026 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15027 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15028 if test $ac_cv_type_long_long_int = yes; then
15029 if test "$cross_compiling" = yes; then :
15031 else
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <limits.h>
15035 #ifndef LLONG_MAX
15036 # define HALF \
15037 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15038 # define LLONG_MAX (HALF - 1 + HALF)
15039 #endif
15041 main ()
15043 long long int n = 1;
15044 int i;
15045 for (i = 0; ; i++)
15047 long long int m = n << i;
15048 if (m >> i != n)
15049 return 1;
15050 if (LLONG_MAX / 2 < m)
15051 break;
15053 return 0;
15055 return 0;
15057 _ACEOF
15058 if ac_fn_c_try_run "$LINENO"; then :
15060 else
15061 ac_cv_type_long_long_int=no
15063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15064 conftest.$ac_objext conftest.beam conftest.$ac_ext
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15071 $as_echo "$ac_cv_type_long_long_int" >&6; }
15072 if test $ac_cv_type_long_long_int = yes; then
15074 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15083 GNULIB_DPRINTF=0;
15084 GNULIB_FCLOSE=0;
15085 GNULIB_FFLUSH=0;
15086 GNULIB_FOPEN=0;
15087 GNULIB_FPRINTF=0;
15088 GNULIB_FPRINTF_POSIX=0;
15089 GNULIB_FPURGE=0;
15090 GNULIB_FPUTC=0;
15091 GNULIB_FPUTS=0;
15092 GNULIB_FREOPEN=0;
15093 GNULIB_FSEEK=0;
15094 GNULIB_FSEEKO=0;
15095 GNULIB_FTELL=0;
15096 GNULIB_FTELLO=0;
15097 GNULIB_FWRITE=0;
15098 GNULIB_GETDELIM=0;
15099 GNULIB_GETLINE=0;
15100 GNULIB_OBSTACK_PRINTF=0;
15101 GNULIB_OBSTACK_PRINTF_POSIX=0;
15102 GNULIB_PERROR=0;
15103 GNULIB_POPEN=0;
15104 GNULIB_PRINTF=0;
15105 GNULIB_PRINTF_POSIX=0;
15106 GNULIB_PUTC=0;
15107 GNULIB_PUTCHAR=0;
15108 GNULIB_PUTS=0;
15109 GNULIB_REMOVE=0;
15110 GNULIB_RENAME=0;
15111 GNULIB_RENAMEAT=0;
15112 GNULIB_SNPRINTF=0;
15113 GNULIB_SPRINTF_POSIX=0;
15114 GNULIB_STDIO_H_SIGPIPE=0;
15115 GNULIB_TMPFILE=0;
15116 GNULIB_VASPRINTF=0;
15117 GNULIB_VDPRINTF=0;
15118 GNULIB_VFPRINTF=0;
15119 GNULIB_VFPRINTF_POSIX=0;
15120 GNULIB_VPRINTF=0;
15121 GNULIB_VPRINTF_POSIX=0;
15122 GNULIB_VSNPRINTF=0;
15123 GNULIB_VSPRINTF_POSIX=0;
15124 HAVE_DECL_FPURGE=1;
15125 HAVE_DECL_FSEEKO=1;
15126 HAVE_DECL_FTELLO=1;
15127 HAVE_DECL_GETDELIM=1;
15128 HAVE_DECL_GETLINE=1;
15129 HAVE_DECL_OBSTACK_PRINTF=1;
15130 HAVE_DECL_SNPRINTF=1;
15131 HAVE_DECL_VSNPRINTF=1;
15132 HAVE_DPRINTF=1;
15133 HAVE_FSEEKO=1;
15134 HAVE_FTELLO=1;
15135 HAVE_RENAMEAT=1;
15136 HAVE_VASPRINTF=1;
15137 HAVE_VDPRINTF=1;
15138 REPLACE_DPRINTF=0;
15139 REPLACE_FCLOSE=0;
15140 REPLACE_FFLUSH=0;
15141 REPLACE_FOPEN=0;
15142 REPLACE_FPRINTF=0;
15143 REPLACE_FPURGE=0;
15144 REPLACE_FREOPEN=0;
15145 REPLACE_FSEEK=0;
15146 REPLACE_FSEEKO=0;
15147 REPLACE_FTELL=0;
15148 REPLACE_FTELLO=0;
15149 REPLACE_GETDELIM=0;
15150 REPLACE_GETLINE=0;
15151 REPLACE_OBSTACK_PRINTF=0;
15152 REPLACE_PERROR=0;
15153 REPLACE_POPEN=0;
15154 REPLACE_PRINTF=0;
15155 REPLACE_REMOVE=0;
15156 REPLACE_RENAME=0;
15157 REPLACE_RENAMEAT=0;
15158 REPLACE_SNPRINTF=0;
15159 REPLACE_SPRINTF=0;
15160 REPLACE_STDIO_WRITE_FUNCS=0;
15161 REPLACE_TMPFILE=0;
15162 REPLACE_VASPRINTF=0;
15163 REPLACE_VDPRINTF=0;
15164 REPLACE_VFPRINTF=0;
15165 REPLACE_VPRINTF=0;
15166 REPLACE_VSNPRINTF=0;
15167 REPLACE_VSPRINTF=0;
15170 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15172 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
15174 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15184 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15185 if test "${ac_cv_header_stat_broken+set}" = set; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 #include <sys/types.h>
15191 #include <sys/stat.h>
15193 #if defined S_ISBLK && defined S_IFDIR
15194 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15195 #endif
15197 #if defined S_ISBLK && defined S_IFCHR
15198 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15199 #endif
15201 #if defined S_ISLNK && defined S_IFREG
15202 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15203 #endif
15205 #if defined S_ISSOCK && defined S_IFREG
15206 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15207 #endif
15209 _ACEOF
15210 if ac_fn_c_try_compile "$LINENO"; then :
15211 ac_cv_header_stat_broken=no
15212 else
15213 ac_cv_header_stat_broken=yes
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15218 $as_echo "$ac_cv_header_stat_broken" >&6; }
15219 if test $ac_cv_header_stat_broken = yes; then
15221 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15228 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15229 if test "${ac_cv_c_restrict+set}" = set; then :
15230 $as_echo_n "(cached) " >&6
15231 else
15232 ac_cv_c_restrict=no
15233 # The order here caters to the fact that C++ does not require restrict.
15234 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15237 typedef int * int_ptr;
15238 int foo (int_ptr $ac_kw ip) {
15239 return ip[0];
15242 main ()
15244 int s[1];
15245 int * $ac_kw t = s;
15246 t[0] = 0;
15247 return foo(t)
15249 return 0;
15251 _ACEOF
15252 if ac_fn_c_try_compile "$LINENO"; then :
15253 ac_cv_c_restrict=$ac_kw
15255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256 test "$ac_cv_c_restrict" != no && break
15257 done
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15261 $as_echo "$ac_cv_c_restrict" >&6; }
15263 case $ac_cv_c_restrict in
15264 restrict) ;;
15265 no) $as_echo "#define restrict /**/" >>confdefs.h
15267 *) cat >>confdefs.h <<_ACEOF
15268 #define restrict $ac_cv_c_restrict
15269 _ACEOF
15271 esac
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15278 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15279 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15281 else
15282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15283 /* end confdefs.h. */
15284 #include <time.h>
15287 main ()
15289 static struct timespec x; x.tv_sec = x.tv_nsec;
15291 return 0;
15293 _ACEOF
15294 if ac_fn_c_try_compile "$LINENO"; then :
15295 gl_cv_sys_struct_timespec_in_time_h=yes
15296 else
15297 gl_cv_sys_struct_timespec_in_time_h=no
15299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15302 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15304 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15305 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15306 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15307 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15308 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15309 else
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15311 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15312 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15313 $as_echo_n "(cached) " >&6
15314 else
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 #include <sys/time.h>
15320 main ()
15322 static struct timespec x; x.tv_sec = x.tv_nsec;
15324 return 0;
15326 _ACEOF
15327 if ac_fn_c_try_compile "$LINENO"; then :
15328 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15329 else
15330 gl_cv_sys_struct_timespec_in_sys_time_h=no
15332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15335 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15336 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15337 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15338 else
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15340 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15341 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15342 $as_echo_n "(cached) " >&6
15343 else
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15346 #include <pthread.h>
15349 main ()
15351 static struct timespec x; x.tv_sec = x.tv_nsec;
15353 return 0;
15355 _ACEOF
15356 if ac_fn_c_try_compile "$LINENO"; then :
15357 gl_cv_sys_struct_timespec_in_pthread_h=yes
15358 else
15359 gl_cv_sys_struct_timespec_in_pthread_h=no
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15364 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15365 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15366 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15385 if test $gl_cv_have_include_next = yes; then
15386 gl_cv_next_time_h='<'time.h'>'
15387 else
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15389 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15390 if test "${gl_cv_next_time_h+set}" = set; then :
15391 $as_echo_n "(cached) " >&6
15392 else
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15396 #include <time.h>
15398 _ACEOF
15399 case "$host_os" in
15400 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15401 *) gl_absname_cpp="$ac_cpp" ;;
15402 esac
15403 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15404 sed -n '\#/time.h#{
15405 s#.*"\(.*/time.h\)".*#\1#
15406 s#^/[^/]#//&#
15409 }'`'"'
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15414 $as_echo "$gl_cv_next_time_h" >&6; }
15416 NEXT_TIME_H=$gl_cv_next_time_h
15418 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15420 gl_next_as_first_directive='<'time.h'>'
15421 else
15422 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15423 gl_next_as_first_directive=$gl_cv_next_time_h
15425 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15432 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15433 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15434 ac_have_decl=1
15435 else
15436 ac_have_decl=0
15439 cat >>confdefs.h <<_ACEOF
15440 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15441 _ACEOF
15446 if false; then
15447 GL_COND_LIBTOOL_TRUE=
15448 GL_COND_LIBTOOL_FALSE='#'
15449 else
15450 GL_COND_LIBTOOL_TRUE='#'
15451 GL_COND_LIBTOOL_FALSE=
15454 gl_cond_libtool=false
15455 gl_libdeps=
15456 gl_ltlibdeps=
15457 gl_m4_base='m4'
15467 gl_source_base='lib'
15468 # Code from module arg-nonnull:
15469 # Code from module c++defs:
15470 # Code from module careadlinkat:
15472 # Code from module crypto/md5:
15482 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15489 # Code from module dosname:
15490 # Code from module dtoastr:
15492 # Code from module extensions:
15493 # Code from module filemode:
15504 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15508 # Code from module getloadavg:
15511 # Persuade glibc <stdlib.h> to declare getloadavg().
15514 # Make sure getloadavg.c is where it belongs, at configure-time.
15515 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15516 as_fn_error "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15518 gl_save_LIBS=$LIBS
15520 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15521 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15522 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15523 if test "x$ac_cv_func_getloadavg" = x""yes; then :
15525 else
15526 gl_have_func=no
15528 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15529 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15530 # to get the right answer into the cache.
15531 # For kstat on solaris, we need to test for libelf and libkvm to force the
15532 # definition of SVR4 below.
15533 if test $gl_have_func = no; then
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15535 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15536 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15537 $as_echo_n "(cached) " >&6
15538 else
15539 ac_check_lib_save_LIBS=$LIBS
15540 LIBS="-lelf $LIBS"
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15544 /* Override any GCC internal prototype to avoid an error.
15545 Use char because int might match the return type of a GCC
15546 builtin and then its argument prototype would still apply. */
15547 #ifdef __cplusplus
15548 extern "C"
15549 #endif
15550 char elf_begin ();
15552 main ()
15554 return elf_begin ();
15556 return 0;
15558 _ACEOF
15559 if ac_fn_c_try_link "$LINENO"; then :
15560 ac_cv_lib_elf_elf_begin=yes
15561 else
15562 ac_cv_lib_elf_elf_begin=no
15564 rm -f core conftest.err conftest.$ac_objext \
15565 conftest$ac_exeext conftest.$ac_ext
15566 LIBS=$ac_check_lib_save_LIBS
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15569 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15570 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
15571 LIBS="-lelf $LIBS"
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15575 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15576 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15577 $as_echo_n "(cached) " >&6
15578 else
15579 ac_check_lib_save_LIBS=$LIBS
15580 LIBS="-lkvm $LIBS"
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15584 /* Override any GCC internal prototype to avoid an error.
15585 Use char because int might match the return type of a GCC
15586 builtin and then its argument prototype would still apply. */
15587 #ifdef __cplusplus
15588 extern "C"
15589 #endif
15590 char kvm_open ();
15592 main ()
15594 return kvm_open ();
15596 return 0;
15598 _ACEOF
15599 if ac_fn_c_try_link "$LINENO"; then :
15600 ac_cv_lib_kvm_kvm_open=yes
15601 else
15602 ac_cv_lib_kvm_kvm_open=no
15604 rm -f core conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
15606 LIBS=$ac_check_lib_save_LIBS
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15609 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15610 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15611 LIBS="-lkvm $LIBS"
15614 # Check for the 4.4BSD definition of getloadavg.
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15616 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15617 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15618 $as_echo_n "(cached) " >&6
15619 else
15620 ac_check_lib_save_LIBS=$LIBS
15621 LIBS="-lutil $LIBS"
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15625 /* Override any GCC internal prototype to avoid an error.
15626 Use char because int might match the return type of a GCC
15627 builtin and then its argument prototype would still apply. */
15628 #ifdef __cplusplus
15629 extern "C"
15630 #endif
15631 char getloadavg ();
15633 main ()
15635 return getloadavg ();
15637 return 0;
15639 _ACEOF
15640 if ac_fn_c_try_link "$LINENO"; then :
15641 ac_cv_lib_util_getloadavg=yes
15642 else
15643 ac_cv_lib_util_getloadavg=no
15645 rm -f core conftest.err conftest.$ac_objext \
15646 conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15650 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15651 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
15652 LIBS="-lutil $LIBS" gl_have_func=yes
15657 if test $gl_have_func = no; then
15658 # There is a commonly available library for RS/6000 AIX.
15659 # Since it is not a standard part of AIX, it might be installed locally.
15660 gl_getloadavg_LIBS=$LIBS
15661 LIBS="-L/usr/local/lib $LIBS"
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15663 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15664 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 ac_check_lib_save_LIBS=$LIBS
15668 LIBS="-lgetloadavg $LIBS"
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15672 /* Override any GCC internal prototype to avoid an error.
15673 Use char because int might match the return type of a GCC
15674 builtin and then its argument prototype would still apply. */
15675 #ifdef __cplusplus
15676 extern "C"
15677 #endif
15678 char getloadavg ();
15680 main ()
15682 return getloadavg ();
15684 return 0;
15686 _ACEOF
15687 if ac_fn_c_try_link "$LINENO"; then :
15688 ac_cv_lib_getloadavg_getloadavg=yes
15689 else
15690 ac_cv_lib_getloadavg_getloadavg=no
15692 rm -f core conftest.err conftest.$ac_objext \
15693 conftest$ac_exeext conftest.$ac_ext
15694 LIBS=$ac_check_lib_save_LIBS
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15697 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15698 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
15699 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15700 else
15701 LIBS=$gl_getloadavg_LIBS
15706 # Set up the replacement function if necessary.
15707 if test $gl_have_func = no; then
15716 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15719 # Figure out what our getloadavg.c needs.
15721 # Solaris has libkstat which does not require root.
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15723 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15724 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15725 $as_echo_n "(cached) " >&6
15726 else
15727 ac_check_lib_save_LIBS=$LIBS
15728 LIBS="-lkstat $LIBS"
15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h. */
15732 /* Override any GCC internal prototype to avoid an error.
15733 Use char because int might match the return type of a GCC
15734 builtin and then its argument prototype would still apply. */
15735 #ifdef __cplusplus
15736 extern "C"
15737 #endif
15738 char kstat_open ();
15740 main ()
15742 return kstat_open ();
15744 return 0;
15746 _ACEOF
15747 if ac_fn_c_try_link "$LINENO"; then :
15748 ac_cv_lib_kstat_kstat_open=yes
15749 else
15750 ac_cv_lib_kstat_kstat_open=no
15752 rm -f core conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
15754 LIBS=$ac_check_lib_save_LIBS
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15757 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15758 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
15759 cat >>confdefs.h <<_ACEOF
15760 #define HAVE_LIBKSTAT 1
15761 _ACEOF
15763 LIBS="-lkstat $LIBS"
15767 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15769 # On HPUX9, an unprivileged user can get load averages this way.
15770 if test $gl_have_func = no; then
15771 for ac_func in pstat_getdynamic
15772 do :
15773 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15774 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
15775 cat >>confdefs.h <<_ACEOF
15776 #define HAVE_PSTAT_GETDYNAMIC 1
15777 _ACEOF
15778 gl_have_func=yes
15780 done
15784 # AIX has libperfstat which does not require root
15785 if test $gl_have_func = no; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15787 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15788 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15789 $as_echo_n "(cached) " >&6
15790 else
15791 ac_check_lib_save_LIBS=$LIBS
15792 LIBS="-lperfstat $LIBS"
15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15796 /* Override any GCC internal prototype to avoid an error.
15797 Use char because int might match the return type of a GCC
15798 builtin and then its argument prototype would still apply. */
15799 #ifdef __cplusplus
15800 extern "C"
15801 #endif
15802 char perfstat_cpu_total ();
15804 main ()
15806 return perfstat_cpu_total ();
15808 return 0;
15810 _ACEOF
15811 if ac_fn_c_try_link "$LINENO"; then :
15812 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15813 else
15814 ac_cv_lib_perfstat_perfstat_cpu_total=no
15816 rm -f core conftest.err conftest.$ac_objext \
15817 conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15821 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15822 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
15823 cat >>confdefs.h <<_ACEOF
15824 #define HAVE_LIBPERFSTAT 1
15825 _ACEOF
15827 LIBS="-lperfstat $LIBS"
15831 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15834 if test $gl_have_func = no; then
15835 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15836 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15837 gl_have_func=yes
15839 $as_echo "#define DGUX 1" >>confdefs.h
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15842 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15843 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15844 $as_echo_n "(cached) " >&6
15845 else
15846 ac_check_lib_save_LIBS=$LIBS
15847 LIBS="-ldgc $LIBS"
15848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15851 /* Override any GCC internal prototype to avoid an error.
15852 Use char because int might match the return type of a GCC
15853 builtin and then its argument prototype would still apply. */
15854 #ifdef __cplusplus
15855 extern "C"
15856 #endif
15857 char dg_sys_info ();
15859 main ()
15861 return dg_sys_info ();
15863 return 0;
15865 _ACEOF
15866 if ac_fn_c_try_link "$LINENO"; then :
15867 ac_cv_lib_dgc_dg_sys_info=yes
15868 else
15869 ac_cv_lib_dgc_dg_sys_info=no
15871 rm -f core conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15876 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15877 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_LIBDGC 1
15880 _ACEOF
15882 LIBS="-ldgc $LIBS"
15891 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15892 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15893 # Irix 4.0.5F has the header but not the library.
15894 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15895 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15896 gl_have_func=yes
15898 $as_echo "#define SVR4 1" >>confdefs.h
15902 if test $gl_have_func = no; then
15903 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15904 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
15905 gl_have_func=yes
15907 $as_echo "#define UMAX 1" >>confdefs.h
15910 $as_echo "#define UMAX4_3 1" >>confdefs.h
15917 if test $gl_have_func = no; then
15918 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15919 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
15920 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15927 if test $gl_have_func = no; then
15928 for ac_header in mach/mach.h
15929 do :
15930 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15931 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
15932 cat >>confdefs.h <<_ACEOF
15933 #define HAVE_MACH_MACH_H 1
15934 _ACEOF
15938 done
15942 for ac_header in nlist.h
15943 do :
15944 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15945 if test "x$ac_cv_header_nlist_h" = x""yes; then :
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_NLIST_H 1
15948 _ACEOF
15949 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15951 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
15953 cat >>confdefs.h <<_ACEOF
15954 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15955 _ACEOF
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15962 #include <nlist.h>
15964 main ()
15966 struct nlist x;
15967 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15968 x.n_un.n_name = "";
15969 #else
15970 x.n_name = "";
15971 #endif
15973 return 0;
15975 _ACEOF
15976 if ac_fn_c_try_link "$LINENO"; then :
15978 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15981 rm -f core conftest.err conftest.$ac_objext \
15982 conftest$ac_exeext conftest.$ac_ext
15986 done
15992 if test "x$gl_save_LIBS" = x; then
15993 GETLOADAVG_LIBS=$LIBS
15994 else
15995 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15997 LIBS=$gl_save_LIBS
16000 # Test whether the system declares getloadavg. Solaris has the function
16001 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16002 for ac_header in sys/loadavg.h
16003 do :
16004 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16005 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
16006 cat >>confdefs.h <<_ACEOF
16007 #define HAVE_SYS_LOADAVG_H 1
16008 _ACEOF
16012 done
16014 if test $ac_cv_header_sys_loadavg_h = yes; then
16015 HAVE_SYS_LOADAVG_H=1
16016 else
16017 HAVE_SYS_LOADAVG_H=0
16019 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16020 # include <sys/loadavg.h>
16021 #endif
16022 #include <stdlib.h>
16024 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
16026 else
16027 HAVE_DECL_GETLOADAVG=0
16034 GNULIB_GETLOADAVG=1
16038 # Code from module getopt-gnu:
16045 # Code from module getopt-posix:
16051 if test -n "$gl_replace_getopt"; then :
16055 GETOPT_H=getopt.h
16057 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16061 GNULIB_UNISTD_H_GETOPT=1
16070 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
16080 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
16090 # Code from module gettext-h:
16093 # Code from module ignore-value:
16095 # Code from module include_next:
16096 # Code from module intprops:
16097 # Code from module lstat:
16101 if test $ac_cv_func_lstat = yes; then
16103 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
16104 REPLACE_LSTAT=1
16106 # Prerequisites of lib/lstat.c.
16108 else
16109 HAVE_LSTAT=0
16115 GNULIB_LSTAT=1
16119 # Code from module mktime:
16125 if test $APPLE_UNIVERSAL_BUILD = 1; then
16126 # A universal build on Apple MacOS X platforms.
16127 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16128 # But we need a configuration result that is valid in both modes.
16129 ac_cv_func_working_mktime=no
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16132 $as_echo_n "checking for working mktime... " >&6; }
16133 if test "${ac_cv_func_working_mktime+set}" = set; then :
16134 $as_echo_n "(cached) " >&6
16135 else
16136 if test "$cross_compiling" = yes; then :
16137 ac_cv_func_working_mktime=no
16138 else
16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140 /* end confdefs.h. */
16141 /* Test program from Paul Eggert and Tony Leneis. */
16142 #include <limits.h>
16143 #include <stdlib.h>
16144 #include <time.h>
16146 #ifdef HAVE_UNISTD_H
16147 # include <unistd.h>
16148 #endif
16150 #ifndef HAVE_ALARM
16151 # define alarm(X) /* empty */
16152 #endif
16154 /* Work around redefinition to rpl_putenv by other config tests. */
16155 #undef putenv
16157 static time_t time_t_max;
16158 static time_t time_t_min;
16160 /* Values we'll use to set the TZ environment variable. */
16161 static char *tz_strings[] = {
16162 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16163 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16165 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16167 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16168 Based on a problem report from Andreas Jaeger. */
16169 static int
16170 spring_forward_gap ()
16172 /* glibc (up to about 1998-10-07) failed this test. */
16173 struct tm tm;
16175 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16176 instead of "TZ=America/Vancouver" in order to detect the bug even
16177 on systems that don't support the Olson extension, or don't have the
16178 full zoneinfo tables installed. */
16179 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16181 tm.tm_year = 98;
16182 tm.tm_mon = 3;
16183 tm.tm_mday = 5;
16184 tm.tm_hour = 2;
16185 tm.tm_min = 0;
16186 tm.tm_sec = 0;
16187 tm.tm_isdst = -1;
16188 return mktime (&tm) != (time_t) -1;
16191 static int
16192 mktime_test1 (time_t now)
16194 struct tm *lt;
16195 return ! (lt = localtime (&now)) || mktime (lt) == now;
16198 static int
16199 mktime_test (time_t now)
16201 return (mktime_test1 (now)
16202 && mktime_test1 ((time_t) (time_t_max - now))
16203 && mktime_test1 ((time_t) (time_t_min + now)));
16206 static int
16207 irix_6_4_bug ()
16209 /* Based on code from Ariel Faigon. */
16210 struct tm tm;
16211 tm.tm_year = 96;
16212 tm.tm_mon = 3;
16213 tm.tm_mday = 0;
16214 tm.tm_hour = 0;
16215 tm.tm_min = 0;
16216 tm.tm_sec = 0;
16217 tm.tm_isdst = -1;
16218 mktime (&tm);
16219 return tm.tm_mon == 2 && tm.tm_mday == 31;
16222 static int
16223 bigtime_test (int j)
16225 struct tm tm;
16226 time_t now;
16227 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16228 now = mktime (&tm);
16229 if (now != (time_t) -1)
16231 struct tm *lt = localtime (&now);
16232 if (! (lt
16233 && lt->tm_year == tm.tm_year
16234 && lt->tm_mon == tm.tm_mon
16235 && lt->tm_mday == tm.tm_mday
16236 && lt->tm_hour == tm.tm_hour
16237 && lt->tm_min == tm.tm_min
16238 && lt->tm_sec == tm.tm_sec
16239 && lt->tm_yday == tm.tm_yday
16240 && lt->tm_wday == tm.tm_wday
16241 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16242 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16243 return 0;
16245 return 1;
16248 static int
16249 year_2050_test ()
16251 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16252 ignoring leap seconds. */
16253 unsigned long int answer = 2527315200UL;
16255 struct tm tm;
16256 time_t t;
16257 tm.tm_year = 2050 - 1900;
16258 tm.tm_mon = 2 - 1;
16259 tm.tm_mday = 1;
16260 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16261 tm.tm_isdst = -1;
16263 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16264 instead of "TZ=America/Vancouver" in order to detect the bug even
16265 on systems that don't support the Olson extension, or don't have the
16266 full zoneinfo tables installed. */
16267 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16269 t = mktime (&tm);
16271 /* Check that the result is either a failure, or close enough
16272 to the correct answer that we can assume the discrepancy is
16273 due to leap seconds. */
16274 return (t == (time_t) -1
16275 || (0 < t && answer - 120 <= t && t <= answer + 120));
16279 main ()
16281 int result = 0;
16282 time_t t, delta;
16283 int i, j;
16284 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16285 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16287 /* This test makes some buggy mktime implementations loop.
16288 Give up after 60 seconds; a mktime slower than that
16289 isn't worth using anyway. */
16290 alarm (60);
16292 time_t_max = (! time_t_signed
16293 ? (time_t) -1
16294 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16295 * 2 + 1));
16296 time_t_min = (! time_t_signed
16297 ? (time_t) 0
16298 : time_t_signed_magnitude
16299 ? ~ (time_t) 0
16300 : ~ time_t_max);
16302 delta = time_t_max / 997; /* a suitable prime number */
16303 for (i = 0; i < N_STRINGS; i++)
16305 if (tz_strings[i])
16306 putenv (tz_strings[i]);
16308 for (t = 0; t <= time_t_max - delta; t += delta)
16309 if (! mktime_test (t))
16310 result |= 1;
16311 if (! (mktime_test ((time_t) 1)
16312 && mktime_test ((time_t) (60 * 60))
16313 && mktime_test ((time_t) (60 * 60 * 24))))
16314 result |= 2;
16316 for (j = 1; ; j <<= 1)
16317 if (! bigtime_test (j))
16318 result |= 4;
16319 else if (INT_MAX / 2 < j)
16320 break;
16321 if (! bigtime_test (INT_MAX))
16322 result |= 8;
16324 if (! irix_6_4_bug ())
16325 result |= 16;
16326 if (! spring_forward_gap ())
16327 result |= 32;
16328 if (! year_2050_test ())
16329 result |= 64;
16330 return result;
16332 _ACEOF
16333 if ac_fn_c_try_run "$LINENO"; then :
16334 ac_cv_func_working_mktime=yes
16335 else
16336 ac_cv_func_working_mktime=no
16338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16339 conftest.$ac_objext conftest.beam conftest.$ac_ext
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16344 $as_echo "$ac_cv_func_working_mktime" >&6; }
16345 if test $ac_cv_func_working_mktime = no; then
16354 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
16358 if test $ac_cv_func_working_mktime = no; then
16359 REPLACE_MKTIME=1
16363 else
16364 REPLACE_MKTIME=0
16370 GNULIB_MKTIME=1
16374 # Code from module multiarch:
16376 # Code from module readlink:
16380 if test $ac_cv_func_readlink = no; then
16381 HAVE_READLINK=0
16390 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16395 else
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16397 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16398 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16399 $as_echo_n "(cached) " >&6
16400 else
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403 #include <unistd.h>
16404 /* Cause compilation failure if original declaration has wrong type. */
16405 ssize_t readlink (const char *, char *, size_t);
16407 main ()
16411 return 0;
16413 _ACEOF
16414 if ac_fn_c_try_compile "$LINENO"; then :
16415 gl_cv_decl_readlink_works=yes
16416 else
16417 gl_cv_decl_readlink_works=no
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16422 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16424 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16425 if test "${gl_cv_func_readlink_works+set}" = set; then :
16426 $as_echo_n "(cached) " >&6
16427 else
16428 # We have readlink, so assume ln -s works.
16429 ln -s conftest.no-such conftest.link
16430 ln -s conftest.link conftest.lnk2
16431 if test "$cross_compiling" = yes; then :
16432 gl_cv_func_readlink_works="guessing no"
16433 else
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 #include <unistd.h>
16439 main ()
16441 char buf[20];
16442 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16444 return 0;
16446 _ACEOF
16447 if ac_fn_c_try_run "$LINENO"; then :
16448 gl_cv_func_readlink_works=yes
16449 else
16450 gl_cv_func_readlink_works=no
16452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16453 conftest.$ac_objext conftest.beam conftest.$ac_ext
16456 rm -f conftest.link conftest.lnk2
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16459 $as_echo "$gl_cv_func_readlink_works" >&6; }
16460 if test "$gl_cv_func_readlink_works" != yes; then
16462 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16464 REPLACE_READLINK=1
16473 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16475 elif test "$gl_cv_decl_readlink_works" != yes; then
16476 REPLACE_READLINK=1
16485 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16493 GNULIB_READLINK=1
16497 # Code from module socklen:
16498 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16499 /* <sys/types.h> is not needed according to POSIX, but the
16500 <sys/socket.h> in i386-unknown-freebsd4.10 and
16501 powerpc-apple-darwin5.5 required it. */
16502 #include <sys/types.h>
16503 #if HAVE_SYS_SOCKET_H
16504 # include <sys/socket.h>
16505 #elif HAVE_WS2TCPIP_H
16506 # include <ws2tcpip.h>
16507 #endif
16510 if test "x$ac_cv_type_socklen_t" = x""yes; then :
16512 else
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16514 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16515 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
16516 $as_echo_n "(cached) " >&6
16517 else
16518 # Systems have either "struct sockaddr *" or
16519 # "void *" as the second argument to getpeername
16520 gl_cv_socklen_t_equiv=
16521 for arg2 in "struct sockaddr" void; do
16522 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16524 /* end confdefs.h. */
16525 #include <sys/types.h>
16526 #include <sys/socket.h>
16528 int getpeername (int, $arg2 *, $t *);
16530 main ()
16532 $t len;
16533 getpeername (0, 0, &len);
16535 return 0;
16537 _ACEOF
16538 if ac_fn_c_try_compile "$LINENO"; then :
16539 gl_cv_socklen_t_equiv="$t"
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 test "$gl_cv_socklen_t_equiv" != "" && break
16543 done
16544 test "$gl_cv_socklen_t_equiv" != "" && break
16545 done
16549 if test "$gl_cv_socklen_t_equiv" = ""; then
16550 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16553 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16555 cat >>confdefs.h <<_ACEOF
16556 #define socklen_t $gl_cv_socklen_t_equiv
16557 _ACEOF
16561 # Code from module ssize_t:
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16564 $as_echo_n "checking for ssize_t... " >&6; }
16565 if test "${gt_cv_ssize_t+set}" = set; then :
16566 $as_echo_n "(cached) " >&6
16567 else
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16570 #include <sys/types.h>
16572 main ()
16574 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16575 return !x;
16577 return 0;
16579 _ACEOF
16580 if ac_fn_c_try_compile "$LINENO"; then :
16581 gt_cv_ssize_t=yes
16582 else
16583 gt_cv_ssize_t=no
16585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16588 $as_echo "$gt_cv_ssize_t" >&6; }
16589 if test $gt_cv_ssize_t = no; then
16591 $as_echo "#define ssize_t int" >>confdefs.h
16595 # Code from module stat:
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16600 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16601 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16602 $as_echo_n "(cached) " >&6
16603 else
16604 if test "$cross_compiling" = yes; then :
16605 case $host_os in
16606 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16607 *) gl_cv_func_stat_dir_slash="guessing yes";;
16608 esac
16609 else
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 #include <sys/stat.h>
16615 main ()
16617 struct stat st; return stat (".", &st) != stat ("./", &st);
16619 return 0;
16621 _ACEOF
16622 if ac_fn_c_try_run "$LINENO"; then :
16623 gl_cv_func_stat_dir_slash=yes
16624 else
16625 gl_cv_func_stat_dir_slash=no
16627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16628 conftest.$ac_objext conftest.beam conftest.$ac_ext
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16633 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16635 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16636 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16637 $as_echo_n "(cached) " >&6
16638 else
16639 touch conftest.tmp
16640 # Assume that if we have lstat, we can also check symlinks.
16641 if test $ac_cv_func_lstat = yes; then
16642 ln -s conftest.tmp conftest.lnk
16644 if test "$cross_compiling" = yes; then :
16645 gl_cv_func_stat_file_slash="guessing no"
16646 else
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16649 #include <sys/stat.h>
16652 main ()
16654 int result = 0;
16655 struct stat st;
16656 if (!stat ("conftest.tmp/", &st))
16657 result |= 1;
16658 #if HAVE_LSTAT
16659 if (!stat ("conftest.lnk/", &st))
16660 result |= 2;
16661 #endif
16662 return result;
16665 return 0;
16667 _ACEOF
16668 if ac_fn_c_try_run "$LINENO"; then :
16669 gl_cv_func_stat_file_slash=yes
16670 else
16671 gl_cv_func_stat_file_slash=no
16673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16674 conftest.$ac_objext conftest.beam conftest.$ac_ext
16677 rm -f conftest.tmp conftest.lnk
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16680 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16681 case $gl_cv_func_stat_dir_slash in
16682 *no) REPLACE_STAT=1
16684 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16686 esac
16687 case $gl_cv_func_stat_file_slash in
16688 *no) REPLACE_STAT=1
16690 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16692 esac
16693 if test $REPLACE_STAT = 1; then
16702 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16710 GNULIB_STAT=1
16714 # Code from module stdbool:
16718 # Define two additional variables used in the Makefile substitution.
16720 if test "$ac_cv_header_stdbool_h" = yes; then
16721 STDBOOL_H=''
16722 else
16723 STDBOOL_H='stdbool.h'
16726 if test -n "$STDBOOL_H"; then
16727 GL_GENERATE_STDBOOL_H_TRUE=
16728 GL_GENERATE_STDBOOL_H_FALSE='#'
16729 else
16730 GL_GENERATE_STDBOOL_H_TRUE='#'
16731 GL_GENERATE_STDBOOL_H_FALSE=
16735 if test "$ac_cv_type__Bool" = yes; then
16736 HAVE__BOOL=1
16737 else
16738 HAVE__BOOL=0
16742 # Code from module stddef:
16746 STDDEF_H=
16747 if test $gt_cv_c_wchar_t = no; then
16748 HAVE_WCHAR_T=0
16749 STDDEF_H=stddef.h
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16752 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16753 if test "${gl_cv_decl_null_works+set}" = set; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758 #include <stddef.h>
16759 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16762 main ()
16766 return 0;
16768 _ACEOF
16769 if ac_fn_c_try_compile "$LINENO"; then :
16770 gl_cv_decl_null_works=yes
16771 else
16772 gl_cv_decl_null_works=no
16774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16777 $as_echo "$gl_cv_decl_null_works" >&6; }
16778 if test $gl_cv_decl_null_works = no; then
16779 REPLACE_NULL=1
16780 STDDEF_H=stddef.h
16783 if test -n "$STDDEF_H"; then
16784 GL_GENERATE_STDDEF_H_TRUE=
16785 GL_GENERATE_STDDEF_H_FALSE='#'
16786 else
16787 GL_GENERATE_STDDEF_H_TRUE='#'
16788 GL_GENERATE_STDDEF_H_FALSE=
16791 if test -n "$STDDEF_H"; then
16800 if test $gl_cv_have_include_next = yes; then
16801 gl_cv_next_stddef_h='<'stddef.h'>'
16802 else
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16804 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16805 if test "${gl_cv_next_stddef_h+set}" = set; then :
16806 $as_echo_n "(cached) " >&6
16807 else
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 #include <stddef.h>
16813 _ACEOF
16814 case "$host_os" in
16815 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16816 *) gl_absname_cpp="$ac_cpp" ;;
16817 esac
16818 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16819 sed -n '\#/stddef.h#{
16820 s#.*"\(.*/stddef.h\)".*#\1#
16821 s#^/[^/]#//&#
16824 }'`'"'
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16829 $as_echo "$gl_cv_next_stddef_h" >&6; }
16831 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16833 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16835 gl_next_as_first_directive='<'stddef.h'>'
16836 else
16837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16838 gl_next_as_first_directive=$gl_cv_next_stddef_h
16840 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16847 # Code from module stdint:
16851 if test $ac_cv_type_long_long_int = yes; then
16852 HAVE_LONG_LONG_INT=1
16853 else
16854 HAVE_LONG_LONG_INT=0
16858 if test $ac_cv_type_unsigned_long_long_int = yes; then
16859 HAVE_UNSIGNED_LONG_LONG_INT=1
16860 else
16861 HAVE_UNSIGNED_LONG_LONG_INT=0
16866 if test $ac_cv_header_wchar_h = yes; then
16867 HAVE_WCHAR_H=1
16868 else
16869 HAVE_WCHAR_H=0
16873 if test $ac_cv_header_inttypes_h = yes; then
16874 HAVE_INTTYPES_H=1
16875 else
16876 HAVE_INTTYPES_H=0
16880 if test $ac_cv_header_sys_types_h = yes; then
16881 HAVE_SYS_TYPES_H=1
16882 else
16883 HAVE_SYS_TYPES_H=0
16896 if test $gl_cv_have_include_next = yes; then
16897 gl_cv_next_stdint_h='<'stdint.h'>'
16898 else
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16900 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16901 if test "${gl_cv_next_stdint_h+set}" = set; then :
16902 $as_echo_n "(cached) " >&6
16903 else
16905 if test $ac_cv_header_stdint_h = yes; then
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 #include <stdint.h>
16912 _ACEOF
16913 case "$host_os" in
16914 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16915 *) gl_absname_cpp="$ac_cpp" ;;
16916 esac
16917 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16918 sed -n '\#/stdint.h#{
16919 s#.*"\(.*/stdint.h\)".*#\1#
16920 s#^/[^/]#//&#
16923 }'`'"'
16924 else
16925 gl_cv_next_stdint_h='<'stdint.h'>'
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16931 $as_echo "$gl_cv_next_stdint_h" >&6; }
16933 NEXT_STDINT_H=$gl_cv_next_stdint_h
16935 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16937 gl_next_as_first_directive='<'stdint.h'>'
16938 else
16939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16940 gl_next_as_first_directive=$gl_cv_next_stdint_h
16942 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16947 if test $ac_cv_header_stdint_h = yes; then
16948 HAVE_STDINT_H=1
16949 else
16950 HAVE_STDINT_H=0
16954 if test $ac_cv_header_stdint_h = yes; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16956 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16957 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16958 $as_echo_n "(cached) " >&6
16959 else
16960 gl_cv_header_working_stdint_h=no
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16965 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16966 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16967 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16968 #include <stdint.h>
16969 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16970 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16971 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16972 #endif
16975 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16976 included before <wchar.h>. */
16977 #include <stddef.h>
16978 #include <signal.h>
16979 #if HAVE_WCHAR_H
16980 # include <stdio.h>
16981 # include <time.h>
16982 # include <wchar.h>
16983 #endif
16986 #ifdef INT8_MAX
16987 int8_t a1 = INT8_MAX;
16988 int8_t a1min = INT8_MIN;
16989 #endif
16990 #ifdef INT16_MAX
16991 int16_t a2 = INT16_MAX;
16992 int16_t a2min = INT16_MIN;
16993 #endif
16994 #ifdef INT32_MAX
16995 int32_t a3 = INT32_MAX;
16996 int32_t a3min = INT32_MIN;
16997 #endif
16998 #ifdef INT64_MAX
16999 int64_t a4 = INT64_MAX;
17000 int64_t a4min = INT64_MIN;
17001 #endif
17002 #ifdef UINT8_MAX
17003 uint8_t b1 = UINT8_MAX;
17004 #else
17005 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17006 #endif
17007 #ifdef UINT16_MAX
17008 uint16_t b2 = UINT16_MAX;
17009 #endif
17010 #ifdef UINT32_MAX
17011 uint32_t b3 = UINT32_MAX;
17012 #endif
17013 #ifdef UINT64_MAX
17014 uint64_t b4 = UINT64_MAX;
17015 #endif
17016 int_least8_t c1 = INT8_C (0x7f);
17017 int_least8_t c1max = INT_LEAST8_MAX;
17018 int_least8_t c1min = INT_LEAST8_MIN;
17019 int_least16_t c2 = INT16_C (0x7fff);
17020 int_least16_t c2max = INT_LEAST16_MAX;
17021 int_least16_t c2min = INT_LEAST16_MIN;
17022 int_least32_t c3 = INT32_C (0x7fffffff);
17023 int_least32_t c3max = INT_LEAST32_MAX;
17024 int_least32_t c3min = INT_LEAST32_MIN;
17025 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17026 int_least64_t c4max = INT_LEAST64_MAX;
17027 int_least64_t c4min = INT_LEAST64_MIN;
17028 uint_least8_t d1 = UINT8_C (0xff);
17029 uint_least8_t d1max = UINT_LEAST8_MAX;
17030 uint_least16_t d2 = UINT16_C (0xffff);
17031 uint_least16_t d2max = UINT_LEAST16_MAX;
17032 uint_least32_t d3 = UINT32_C (0xffffffff);
17033 uint_least32_t d3max = UINT_LEAST32_MAX;
17034 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17035 uint_least64_t d4max = UINT_LEAST64_MAX;
17036 int_fast8_t e1 = INT_FAST8_MAX;
17037 int_fast8_t e1min = INT_FAST8_MIN;
17038 int_fast16_t e2 = INT_FAST16_MAX;
17039 int_fast16_t e2min = INT_FAST16_MIN;
17040 int_fast32_t e3 = INT_FAST32_MAX;
17041 int_fast32_t e3min = INT_FAST32_MIN;
17042 int_fast64_t e4 = INT_FAST64_MAX;
17043 int_fast64_t e4min = INT_FAST64_MIN;
17044 uint_fast8_t f1 = UINT_FAST8_MAX;
17045 uint_fast16_t f2 = UINT_FAST16_MAX;
17046 uint_fast32_t f3 = UINT_FAST32_MAX;
17047 uint_fast64_t f4 = UINT_FAST64_MAX;
17048 #ifdef INTPTR_MAX
17049 intptr_t g = INTPTR_MAX;
17050 intptr_t gmin = INTPTR_MIN;
17051 #endif
17052 #ifdef UINTPTR_MAX
17053 uintptr_t h = UINTPTR_MAX;
17054 #endif
17055 intmax_t i = INTMAX_MAX;
17056 uintmax_t j = UINTMAX_MAX;
17058 #include <limits.h> /* for CHAR_BIT */
17059 #define TYPE_MINIMUM(t) \
17060 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17061 #define TYPE_MAXIMUM(t) \
17062 ((t) ((t) 0 < (t) -1 \
17063 ? (t) -1 \
17064 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17065 struct s {
17066 int check_PTRDIFF:
17067 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17068 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17069 ? 1 : -1;
17070 /* Detect bug in FreeBSD 6.0 / ia64. */
17071 int check_SIG_ATOMIC:
17072 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17073 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17074 ? 1 : -1;
17075 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17076 int check_WCHAR:
17077 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17078 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17079 ? 1 : -1;
17080 /* Detect bug in mingw. */
17081 int check_WINT:
17082 WINT_MIN == TYPE_MINIMUM (wint_t)
17083 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17084 ? 1 : -1;
17086 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17087 int check_UINT8_C:
17088 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17089 int check_UINT16_C:
17090 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17092 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17093 #ifdef UINT8_MAX
17094 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17095 #endif
17096 #ifdef UINT16_MAX
17097 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17098 #endif
17099 #ifdef UINT32_MAX
17100 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17101 #endif
17102 #ifdef UINT64_MAX
17103 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17104 #endif
17105 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17106 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17107 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17108 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17109 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17110 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17111 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17112 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17113 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17114 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17115 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17119 main ()
17123 return 0;
17125 _ACEOF
17126 if ac_fn_c_try_compile "$LINENO"; then :
17127 if test "$cross_compiling" = yes; then :
17128 gl_cv_header_working_stdint_h=yes
17130 else
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17135 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17136 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17137 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17138 #include <stdint.h>
17141 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17142 included before <wchar.h>. */
17143 #include <stddef.h>
17144 #include <signal.h>
17145 #if HAVE_WCHAR_H
17146 # include <stdio.h>
17147 # include <time.h>
17148 # include <wchar.h>
17149 #endif
17152 #include <stdio.h>
17153 #include <string.h>
17154 #define MVAL(macro) MVAL1(macro)
17155 #define MVAL1(expression) #expression
17156 static const char *macro_values[] =
17158 #ifdef INT8_MAX
17159 MVAL (INT8_MAX),
17160 #endif
17161 #ifdef INT16_MAX
17162 MVAL (INT16_MAX),
17163 #endif
17164 #ifdef INT32_MAX
17165 MVAL (INT32_MAX),
17166 #endif
17167 #ifdef INT64_MAX
17168 MVAL (INT64_MAX),
17169 #endif
17170 #ifdef UINT8_MAX
17171 MVAL (UINT8_MAX),
17172 #endif
17173 #ifdef UINT16_MAX
17174 MVAL (UINT16_MAX),
17175 #endif
17176 #ifdef UINT32_MAX
17177 MVAL (UINT32_MAX),
17178 #endif
17179 #ifdef UINT64_MAX
17180 MVAL (UINT64_MAX),
17181 #endif
17182 NULL
17186 main ()
17189 const char **mv;
17190 for (mv = macro_values; *mv != NULL; mv++)
17192 const char *value = *mv;
17193 /* Test whether it looks like a cast expression. */
17194 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17195 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17196 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17197 || strncmp (value, "((int)"/*)*/, 6) == 0
17198 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17199 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17200 return mv - macro_values + 1;
17202 return 0;
17205 return 0;
17207 _ACEOF
17208 if ac_fn_c_try_run "$LINENO"; then :
17209 gl_cv_header_working_stdint_h=yes
17211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17212 conftest.$ac_objext conftest.beam conftest.$ac_ext
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17221 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17223 if test "$gl_cv_header_working_stdint_h" = yes; then
17224 STDINT_H=
17225 else
17226 for ac_header in sys/inttypes.h sys/bitypes.h
17227 do :
17228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17229 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17230 eval as_val=\$$as_ac_Header
17231 if test "x$as_val" = x""yes; then :
17232 cat >>confdefs.h <<_ACEOF
17233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17234 _ACEOF
17238 done
17240 if test $ac_cv_header_sys_inttypes_h = yes; then
17241 HAVE_SYS_INTTYPES_H=1
17242 else
17243 HAVE_SYS_INTTYPES_H=0
17246 if test $ac_cv_header_sys_bitypes_h = yes; then
17247 HAVE_SYS_BITYPES_H=1
17248 else
17249 HAVE_SYS_BITYPES_H=0
17255 if test $APPLE_UNIVERSAL_BUILD = 0; then
17258 for gltype in ptrdiff_t size_t ; do
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17260 $as_echo_n "checking for bit size of $gltype... " >&6; }
17261 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17262 $as_echo_n "(cached) " >&6
17263 else
17264 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17265 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17266 included before <wchar.h>. */
17267 #include <stddef.h>
17268 #include <signal.h>
17269 #if HAVE_WCHAR_H
17270 # include <stdio.h>
17271 # include <time.h>
17272 # include <wchar.h>
17273 #endif
17275 #include <limits.h>"; then :
17277 else
17278 result=unknown
17281 eval gl_cv_bitsizeof_${gltype}=\$result
17284 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17286 $as_echo "$ac_res" >&6; }
17287 eval result=\$gl_cv_bitsizeof_${gltype}
17288 if test $result = unknown; then
17289 result=0
17291 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17292 cat >>confdefs.h <<_ACEOF
17293 #define BITSIZEOF_${GLTYPE} $result
17294 _ACEOF
17296 eval BITSIZEOF_${GLTYPE}=\$result
17297 done
17303 for gltype in sig_atomic_t wchar_t wint_t ; do
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17305 $as_echo_n "checking for bit size of $gltype... " >&6; }
17306 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17310 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17311 included before <wchar.h>. */
17312 #include <stddef.h>
17313 #include <signal.h>
17314 #if HAVE_WCHAR_H
17315 # include <stdio.h>
17316 # include <time.h>
17317 # include <wchar.h>
17318 #endif
17320 #include <limits.h>"; then :
17322 else
17323 result=unknown
17326 eval gl_cv_bitsizeof_${gltype}=\$result
17329 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17331 $as_echo "$ac_res" >&6; }
17332 eval result=\$gl_cv_bitsizeof_${gltype}
17333 if test $result = unknown; then
17334 result=0
17336 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17337 cat >>confdefs.h <<_ACEOF
17338 #define BITSIZEOF_${GLTYPE} $result
17339 _ACEOF
17341 eval BITSIZEOF_${GLTYPE}=\$result
17342 done
17347 for gltype in sig_atomic_t wchar_t wint_t ; do
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17349 $as_echo_n "checking whether $gltype is signed... " >&6; }
17350 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17351 $as_echo_n "(cached) " >&6
17352 else
17353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17354 /* end confdefs.h. */
17356 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17357 included before <wchar.h>. */
17358 #include <stddef.h>
17359 #include <signal.h>
17360 #if HAVE_WCHAR_H
17361 # include <stdio.h>
17362 # include <time.h>
17363 # include <wchar.h>
17364 #endif
17366 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17368 main ()
17372 return 0;
17374 _ACEOF
17375 if ac_fn_c_try_compile "$LINENO"; then :
17376 result=yes
17377 else
17378 result=no
17380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381 eval gl_cv_type_${gltype}_signed=\$result
17384 eval ac_res=\$gl_cv_type_${gltype}_signed
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17386 $as_echo "$ac_res" >&6; }
17387 eval result=\$gl_cv_type_${gltype}_signed
17388 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17389 if test "$result" = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391 #define HAVE_SIGNED_${GLTYPE} 1
17392 _ACEOF
17394 eval HAVE_SIGNED_${GLTYPE}=1
17395 else
17396 eval HAVE_SIGNED_${GLTYPE}=0
17398 done
17401 gl_cv_type_ptrdiff_t_signed=yes
17402 gl_cv_type_size_t_signed=no
17403 if test $APPLE_UNIVERSAL_BUILD = 0; then
17406 for gltype in ptrdiff_t size_t ; do
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17408 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17409 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17410 $as_echo_n "(cached) " >&6
17411 else
17412 eval gl_cv_type_${gltype}_suffix=no
17413 eval result=\$gl_cv_type_${gltype}_signed
17414 if test "$result" = yes; then
17415 glsufu=
17416 else
17417 glsufu=u
17419 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17420 case $glsuf in
17421 '') gltype1='int';;
17422 l) gltype1='long int';;
17423 ll) gltype1='long long int';;
17424 i64) gltype1='__int64';;
17425 u) gltype1='unsigned int';;
17426 ul) gltype1='unsigned long int';;
17427 ull) gltype1='unsigned long long int';;
17428 ui64)gltype1='unsigned __int64';;
17429 esac
17430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17431 /* end confdefs.h. */
17433 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17434 included before <wchar.h>. */
17435 #include <stddef.h>
17436 #include <signal.h>
17437 #if HAVE_WCHAR_H
17438 # include <stdio.h>
17439 # include <time.h>
17440 # include <wchar.h>
17441 #endif
17443 extern $gltype foo;
17444 extern $gltype1 foo;
17446 main ()
17450 return 0;
17452 _ACEOF
17453 if ac_fn_c_try_compile "$LINENO"; then :
17454 eval gl_cv_type_${gltype}_suffix=\$glsuf
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457 eval result=\$gl_cv_type_${gltype}_suffix
17458 test "$result" != no && break
17459 done
17461 eval ac_res=\$gl_cv_type_${gltype}_suffix
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17463 $as_echo "$ac_res" >&6; }
17464 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17465 eval result=\$gl_cv_type_${gltype}_suffix
17466 test "$result" = no && result=
17467 eval ${GLTYPE}_SUFFIX=\$result
17468 cat >>confdefs.h <<_ACEOF
17469 #define ${GLTYPE}_SUFFIX $result
17470 _ACEOF
17472 done
17478 for gltype in sig_atomic_t wchar_t wint_t ; do
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17480 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17481 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17482 $as_echo_n "(cached) " >&6
17483 else
17484 eval gl_cv_type_${gltype}_suffix=no
17485 eval result=\$gl_cv_type_${gltype}_signed
17486 if test "$result" = yes; then
17487 glsufu=
17488 else
17489 glsufu=u
17491 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17492 case $glsuf in
17493 '') gltype1='int';;
17494 l) gltype1='long int';;
17495 ll) gltype1='long long int';;
17496 i64) gltype1='__int64';;
17497 u) gltype1='unsigned int';;
17498 ul) gltype1='unsigned long int';;
17499 ull) gltype1='unsigned long long int';;
17500 ui64)gltype1='unsigned __int64';;
17501 esac
17502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17506 included before <wchar.h>. */
17507 #include <stddef.h>
17508 #include <signal.h>
17509 #if HAVE_WCHAR_H
17510 # include <stdio.h>
17511 # include <time.h>
17512 # include <wchar.h>
17513 #endif
17515 extern $gltype foo;
17516 extern $gltype1 foo;
17518 main ()
17522 return 0;
17524 _ACEOF
17525 if ac_fn_c_try_compile "$LINENO"; then :
17526 eval gl_cv_type_${gltype}_suffix=\$glsuf
17528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17529 eval result=\$gl_cv_type_${gltype}_suffix
17530 test "$result" != no && break
17531 done
17533 eval ac_res=\$gl_cv_type_${gltype}_suffix
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17535 $as_echo "$ac_res" >&6; }
17536 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17537 eval result=\$gl_cv_type_${gltype}_suffix
17538 test "$result" = no && result=
17539 eval ${GLTYPE}_SUFFIX=\$result
17540 cat >>confdefs.h <<_ACEOF
17541 #define ${GLTYPE}_SUFFIX $result
17542 _ACEOF
17544 done
17548 STDINT_H=stdint.h
17551 if test -n "$STDINT_H"; then
17552 GL_GENERATE_STDINT_H_TRUE=
17553 GL_GENERATE_STDINT_H_FALSE='#'
17554 else
17555 GL_GENERATE_STDINT_H_TRUE='#'
17556 GL_GENERATE_STDINT_H_FALSE=
17560 # Code from module stdio:
17572 if test $gl_cv_have_include_next = yes; then
17573 gl_cv_next_stdio_h='<'stdio.h'>'
17574 else
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17576 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17577 if test "${gl_cv_next_stdio_h+set}" = set; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17583 #include <stdio.h>
17585 _ACEOF
17586 case "$host_os" in
17587 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17588 *) gl_absname_cpp="$ac_cpp" ;;
17589 esac
17590 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17591 sed -n '\#/stdio.h#{
17592 s#.*"\(.*/stdio.h\)".*#\1#
17593 s#^/[^/]#//&#
17596 }'`'"'
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17601 $as_echo "$gl_cv_next_stdio_h" >&6; }
17603 NEXT_STDIO_H=$gl_cv_next_stdio_h
17605 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17606 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17607 gl_next_as_first_directive='<'stdio.h'>'
17608 else
17609 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17610 gl_next_as_first_directive=$gl_cv_next_stdio_h
17612 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17617 GNULIB_FPRINTF=1
17618 GNULIB_PRINTF=1
17619 GNULIB_VFPRINTF=1
17620 GNULIB_VPRINTF=1
17621 GNULIB_FPUTC=1
17622 GNULIB_PUTC=1
17623 GNULIB_PUTCHAR=1
17624 GNULIB_FPUTS=1
17625 GNULIB_PUTS=1
17626 GNULIB_FWRITE=1
17631 # Code from module stdlib:
17642 if test $gl_cv_have_include_next = yes; then
17643 gl_cv_next_stdlib_h='<'stdlib.h'>'
17644 else
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17646 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17647 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17648 $as_echo_n "(cached) " >&6
17649 else
17651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17653 #include <stdlib.h>
17655 _ACEOF
17656 case "$host_os" in
17657 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17658 *) gl_absname_cpp="$ac_cpp" ;;
17659 esac
17660 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17661 sed -n '\#/stdlib.h#{
17662 s#.*"\(.*/stdlib.h\)".*#\1#
17663 s#^/[^/]#//&#
17666 }'`'"'
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17671 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17673 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17675 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17676 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17677 gl_next_as_first_directive='<'stdlib.h'>'
17678 else
17679 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17680 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17682 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17690 # Code from module strftime:
17701 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17704 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17712 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17716 # Code from module symlink:
17720 if test $ac_cv_func_symlink = no; then
17721 HAVE_SYMLINK=0
17730 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17732 else
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17734 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17735 if test "${gl_cv_func_symlink_works+set}" = set; then :
17736 $as_echo_n "(cached) " >&6
17737 else
17738 if test "$cross_compiling" = yes; then :
17739 gl_cv_func_symlink_works="guessing no"
17740 else
17741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17742 /* end confdefs.h. */
17743 #include <unistd.h>
17746 main ()
17748 int result = 0;
17749 if (!symlink ("a", "conftest.link/"))
17750 result |= 1;
17751 if (symlink ("conftest.f", "conftest.lnk2"))
17752 result |= 2;
17753 else if (!symlink ("a", "conftest.lnk2/"))
17754 result |= 4;
17755 return result;
17758 return 0;
17760 _ACEOF
17761 if ac_fn_c_try_run "$LINENO"; then :
17762 gl_cv_func_symlink_works=yes
17763 else
17764 gl_cv_func_symlink_works=no
17766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17767 conftest.$ac_objext conftest.beam conftest.$ac_ext
17770 rm -f conftest.f conftest.link conftest.lnk2
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17773 $as_echo "$gl_cv_func_symlink_works" >&6; }
17774 if test "$gl_cv_func_symlink_works" != yes; then
17775 REPLACE_SYMLINK=1
17784 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17792 GNULIB_SYMLINK=1
17796 # Code from module sys_stat:
17813 if test $gl_cv_have_include_next = yes; then
17814 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17815 else
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17817 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17818 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17819 $as_echo_n "(cached) " >&6
17820 else
17822 if test $ac_cv_header_sys_stat_h = yes; then
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17827 #include <sys/stat.h>
17829 _ACEOF
17830 case "$host_os" in
17831 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17832 *) gl_absname_cpp="$ac_cpp" ;;
17833 esac
17834 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17835 sed -n '\#/sys/stat.h#{
17836 s#.*"\(.*/sys/stat.h\)".*#\1#
17837 s#^/[^/]#//&#
17840 }'`'"'
17841 else
17842 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17848 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17850 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17852 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17854 gl_next_as_first_directive='<'sys/stat.h'>'
17855 else
17856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17857 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17859 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17865 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17866 #include <sys/stat.h>
17868 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17870 else
17872 $as_echo "#define nlink_t int" >>confdefs.h
17880 # Code from module time:
17884 # Code from module time_r:
17892 if test $ac_cv_have_decl_localtime_r = no; then
17893 HAVE_DECL_LOCALTIME_R=0
17897 if test $ac_cv_func_localtime_r = yes; then
17898 HAVE_LOCALTIME_R=1
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17900 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17901 if test "${gl_cv_time_r_posix+set}" = set; then :
17902 $as_echo_n "(cached) " >&6
17903 else
17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17906 #include <time.h>
17908 main ()
17910 /* We don't need to append 'restrict's to the argument types,
17911 even though the POSIX signature has the 'restrict's,
17912 since C99 says they can't affect type compatibility. */
17913 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17914 if (ptr) return 0;
17915 /* Check the return type is a pointer.
17916 On HP-UX 10 it is 'int'. */
17917 *localtime_r (0, 0);
17919 return 0;
17922 _ACEOF
17923 if ac_fn_c_try_compile "$LINENO"; then :
17924 gl_cv_time_r_posix=yes
17925 else
17926 gl_cv_time_r_posix=no
17928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17932 $as_echo "$gl_cv_time_r_posix" >&6; }
17933 if test $gl_cv_time_r_posix = yes; then
17934 REPLACE_LOCALTIME_R=0
17935 else
17936 REPLACE_LOCALTIME_R=1
17938 else
17939 HAVE_LOCALTIME_R=0
17941 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17950 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17960 GNULIB_TIME_R=1
17964 # Code from module unistd:
17978 if test $gl_cv_have_include_next = yes; then
17979 gl_cv_next_unistd_h='<'unistd.h'>'
17980 else
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17982 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17983 if test "${gl_cv_next_unistd_h+set}" = set; then :
17984 $as_echo_n "(cached) " >&6
17985 else
17987 if test $ac_cv_header_unistd_h = yes; then
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 #include <unistd.h>
17994 _ACEOF
17995 case "$host_os" in
17996 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17997 *) gl_absname_cpp="$ac_cpp" ;;
17998 esac
17999 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18000 sed -n '\#/unistd.h#{
18001 s#.*"\(.*/unistd.h\)".*#\1#
18002 s#^/[^/]#//&#
18005 }'`'"'
18006 else
18007 gl_cv_next_unistd_h='<'unistd.h'>'
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18013 $as_echo "$gl_cv_next_unistd_h" >&6; }
18015 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18017 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18019 gl_next_as_first_directive='<'unistd.h'>'
18020 else
18021 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18022 gl_next_as_first_directive=$gl_cv_next_unistd_h
18024 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18029 if test $ac_cv_header_unistd_h = yes; then
18030 HAVE_UNISTD_H=1
18031 else
18032 HAVE_UNISTD_H=0
18038 # Code from module warn-on-use:
18039 # End of code from modules
18049 gltests_libdeps=
18050 gltests_ltlibdeps=
18060 gl_source_base='tests'
18061 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
18063 gl_module_indicator_condition=$gltests_WITNESS
18073 LIBGNU_LIBDEPS="$gl_libdeps"
18075 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18079 # UNIX98 PTYs.
18080 for ac_func in grantpt
18081 do :
18082 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18083 if test "x$ac_cv_func_grantpt" = x""yes; then :
18084 cat >>confdefs.h <<_ACEOF
18085 #define HAVE_GRANTPT 1
18086 _ACEOF
18089 done
18092 # PTY-related GNU extensions.
18093 for ac_func in getpt
18094 do :
18095 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
18096 if test "x$ac_cv_func_getpt" = x""yes; then :
18097 cat >>confdefs.h <<_ACEOF
18098 #define HAVE_GETPT 1
18099 _ACEOF
18102 done
18105 # Check this now, so that we will NOT find the above functions in ncurses.
18106 # That is because we have not set up to link ncurses in lib-src.
18107 # It's better to believe a function is not available
18108 # than to expect to find it in ncurses.
18109 # Also we need tputs and friends to be able to build at all.
18110 have_tputs_et_al=true
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18112 $as_echo_n "checking for library containing tputs... " >&6; }
18113 if test "${ac_cv_search_tputs+set}" = set; then :
18114 $as_echo_n "(cached) " >&6
18115 else
18116 ac_func_search_save_LIBS=$LIBS
18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h. */
18120 /* Override any GCC internal prototype to avoid an error.
18121 Use char because int might match the return type of a GCC
18122 builtin and then its argument prototype would still apply. */
18123 #ifdef __cplusplus
18124 extern "C"
18125 #endif
18126 char tputs ();
18128 main ()
18130 return tputs ();
18132 return 0;
18134 _ACEOF
18135 for ac_lib in '' ncurses terminfo termcap; do
18136 if test -z "$ac_lib"; then
18137 ac_res="none required"
18138 else
18139 ac_res=-l$ac_lib
18140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18142 if ac_fn_c_try_link "$LINENO"; then :
18143 ac_cv_search_tputs=$ac_res
18145 rm -f core conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext
18147 if test "${ac_cv_search_tputs+set}" = set; then :
18148 break
18150 done
18151 if test "${ac_cv_search_tputs+set}" = set; then :
18153 else
18154 ac_cv_search_tputs=no
18156 rm conftest.$ac_ext
18157 LIBS=$ac_func_search_save_LIBS
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18160 $as_echo "$ac_cv_search_tputs" >&6; }
18161 ac_res=$ac_cv_search_tputs
18162 if test "$ac_res" != no; then :
18163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18165 else
18166 have_tputs_et_al=false
18169 if test "$have_tputs_et_al" != true; then
18170 as_fn_error "I couldn't find termcap functions (tputs and friends).
18171 Maybe some development libraries/packages are missing? Try installing
18172 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18174 # Must define this when any termcap library is found.
18176 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18178 ## FIXME This was the cpp logic, but I am not sure it is right.
18179 ## The above test has not necessarily found libncurses.
18180 HAVE_LIBNCURSES=yes
18182 ## Use terminfo instead of termcap?
18183 ## Note only system files NOT using terminfo are:
18184 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18185 ## darwin|gnu without ncurses.
18186 TERMINFO=no
18187 LIBS_TERMCAP=
18188 case "$opsys" in
18189 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18190 ## hpux10-20: Use the system provided termcap(3) library.
18191 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18192 ## is necessary. Otherwise Emacs dumps core when run -nw.
18193 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
18195 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18196 ## The ncurses library has been moved out of the System framework in
18197 ## Mac OS X 10.2. So if configure detects it, set the command-line
18198 ## option to use it.
18199 darwin|gnu*)
18200 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18201 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18202 TERMINFO=yes
18203 LIBS_TERMCAP="-lncurses"
18207 freebsd)
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18209 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18210 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
18211 $as_echo_n "(cached) " >&6
18212 else
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18215 #include <osreldate.h>
18217 main ()
18219 #if __FreeBSD_version < 400000
18220 fail;
18221 #endif
18224 return 0;
18226 _ACEOF
18227 if ac_fn_c_try_link "$LINENO"; then :
18228 emacs_cv_freebsd_terminfo=yes
18229 else
18230 emacs_cv_freebsd_terminfo=no
18232 rm -f core conftest.err conftest.$ac_objext \
18233 conftest$ac_exeext conftest.$ac_ext
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18238 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18240 if test $emacs_cv_freebsd_terminfo = yes; then
18241 TERMINFO=yes
18242 LIBS_TERMCAP="-lncurses"
18243 else
18244 LIBS_TERMCAP="-ltermcap"
18248 netbsd)
18249 if test $ac_cv_search_tputs = -lterminfo; then
18250 TERMINFO=yes
18251 LIBS_TERMCAP="-lterminfo"
18252 else
18253 LIBS_TERMCAP="-ltermcap"
18257 esac
18259 case "$opsys" in
18260 ## hpux: Make sure we get select from libc rather than from libcurses
18261 ## because libcurses on HPUX 10.10 has a broken version of select.
18262 ## We used to use -lc -lcurses, but this may be cleaner.
18263 hpux*) LIBS_TERMCAP="-ltermcap" ;;
18265 openbsd) LIBS_TERMCAP="-lncurses" ;;
18267 ## Must use system termcap, if we use any termcap. It does special things.
18268 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
18269 esac
18271 TERMCAP_OBJ=tparam.o
18272 if test $TERMINFO = yes; then
18274 $as_echo "#define TERMINFO 1" >>confdefs.h
18277 ## Default used to be -ltermcap. Add a case above if need something else.
18278 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
18280 TERMCAP_OBJ=terminfo.o
18286 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18287 resolv=no
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18290 #include <netinet/in.h>
18291 #include <arpa/nameser.h>
18292 #include <resolv.h>
18294 main ()
18296 return res_init();
18298 return 0;
18300 _ACEOF
18301 if ac_fn_c_try_link "$LINENO"; then :
18302 have_res_init=yes
18303 else
18304 have_res_init=no
18306 rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
18308 if test "$have_res_init" = no; then
18309 OLIBS="$LIBS"
18310 LIBS="$LIBS -lresolv"
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18312 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18315 #include <netinet/in.h>
18316 #include <arpa/nameser.h>
18317 #include <resolv.h>
18319 main ()
18321 return res_init();
18323 return 0;
18325 _ACEOF
18326 if ac_fn_c_try_link "$LINENO"; then :
18327 have_res_init=yes
18328 else
18329 have_res_init=no
18331 rm -f core conftest.err conftest.$ac_objext \
18332 conftest$ac_exeext conftest.$ac_ext
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18334 $as_echo "$have_res_init" >&6; }
18335 if test "$have_res_init" = yes ; then
18336 resolv=yes
18338 LIBS="$OLIBS"
18341 if test "$have_res_init" = yes; then
18343 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18347 # Do we need the Hesiod library to provide the support routines?
18348 LIBHESIOD=
18349 if test "$with_hesiod" != no ; then
18350 # Don't set $LIBS here -- see comments above. FIXME which comments?
18351 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
18352 if test "x$ac_cv_func_res_send" = x""yes; then :
18354 else
18355 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
18356 if test "x$ac_cv_func___res_send" = x""yes; then :
18358 else
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18360 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18361 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18362 $as_echo_n "(cached) " >&6
18363 else
18364 ac_check_lib_save_LIBS=$LIBS
18365 LIBS="-lresolv $LIBS"
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18369 /* Override any GCC internal prototype to avoid an error.
18370 Use char because int might match the return type of a GCC
18371 builtin and then its argument prototype would still apply. */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 char res_send ();
18377 main ()
18379 return res_send ();
18381 return 0;
18383 _ACEOF
18384 if ac_fn_c_try_link "$LINENO"; then :
18385 ac_cv_lib_resolv_res_send=yes
18386 else
18387 ac_cv_lib_resolv_res_send=no
18389 rm -f core conftest.err conftest.$ac_objext \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18394 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18395 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
18396 resolv=yes
18397 else
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18399 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18400 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18401 $as_echo_n "(cached) " >&6
18402 else
18403 ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lresolv $LIBS"
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18408 /* Override any GCC internal prototype to avoid an error.
18409 Use char because int might match the return type of a GCC
18410 builtin and then its argument prototype would still apply. */
18411 #ifdef __cplusplus
18412 extern "C"
18413 #endif
18414 char __res_send ();
18416 main ()
18418 return __res_send ();
18420 return 0;
18422 _ACEOF
18423 if ac_fn_c_try_link "$LINENO"; then :
18424 ac_cv_lib_resolv___res_send=yes
18425 else
18426 ac_cv_lib_resolv___res_send=no
18428 rm -f core conftest.err conftest.$ac_objext \
18429 conftest$ac_exeext conftest.$ac_ext
18430 LIBS=$ac_check_lib_save_LIBS
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18433 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18434 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
18435 resolv=yes
18444 if test "$resolv" = yes ; then
18445 RESOLVLIB=-lresolv
18446 else
18447 RESOLVLIB=
18449 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18450 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
18452 else
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18454 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18455 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18456 $as_echo_n "(cached) " >&6
18457 else
18458 ac_check_lib_save_LIBS=$LIBS
18459 LIBS="-lhesiod $RESOLVLIB $LIBS"
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18463 /* Override any GCC internal prototype to avoid an error.
18464 Use char because int might match the return type of a GCC
18465 builtin and then its argument prototype would still apply. */
18466 #ifdef __cplusplus
18467 extern "C"
18468 #endif
18469 char hes_getmailhost ();
18471 main ()
18473 return hes_getmailhost ();
18475 return 0;
18477 _ACEOF
18478 if ac_fn_c_try_link "$LINENO"; then :
18479 ac_cv_lib_hesiod_hes_getmailhost=yes
18480 else
18481 ac_cv_lib_hesiod_hes_getmailhost=no
18483 rm -f core conftest.err conftest.$ac_objext \
18484 conftest$ac_exeext conftest.$ac_ext
18485 LIBS=$ac_check_lib_save_LIBS
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18488 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18489 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
18490 hesiod=yes
18491 else
18498 if test x"$hesiod" = xyes; then
18500 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18502 LIBHESIOD=-lhesiod
18507 # Do we need libresolv (due to res_init or Hesiod)?
18508 if test "$resolv" = yes ; then
18510 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18512 LIBRESOLV=-lresolv
18513 else
18514 LIBRESOLV=
18518 # These tell us which Kerberos-related libraries to use.
18519 COM_ERRLIB=
18520 CRYPTOLIB=
18521 KRB5LIB=
18522 DESLIB=
18523 KRB4LIB=
18525 if test "${with_kerberos}" != no; then
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18527 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18528 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18529 $as_echo_n "(cached) " >&6
18530 else
18531 ac_check_lib_save_LIBS=$LIBS
18532 LIBS="-lcom_err $LIBS"
18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18534 /* end confdefs.h. */
18536 /* Override any GCC internal prototype to avoid an error.
18537 Use char because int might match the return type of a GCC
18538 builtin and then its argument prototype would still apply. */
18539 #ifdef __cplusplus
18540 extern "C"
18541 #endif
18542 char com_err ();
18544 main ()
18546 return com_err ();
18548 return 0;
18550 _ACEOF
18551 if ac_fn_c_try_link "$LINENO"; then :
18552 ac_cv_lib_com_err_com_err=yes
18553 else
18554 ac_cv_lib_com_err_com_err=no
18556 rm -f core conftest.err conftest.$ac_objext \
18557 conftest$ac_exeext conftest.$ac_ext
18558 LIBS=$ac_check_lib_save_LIBS
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18561 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18562 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
18563 have_com_err=yes
18564 else
18565 have_com_err=no
18568 if test $have_com_err = yes; then
18569 COM_ERRLIB=-lcom_err
18570 LIBS="$COM_ERRLIB $LIBS"
18572 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18576 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18577 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18578 $as_echo_n "(cached) " >&6
18579 else
18580 ac_check_lib_save_LIBS=$LIBS
18581 LIBS="-lcrypto $LIBS"
18582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18583 /* end confdefs.h. */
18585 /* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18588 #ifdef __cplusplus
18589 extern "C"
18590 #endif
18591 char mit_des_cbc_encrypt ();
18593 main ()
18595 return mit_des_cbc_encrypt ();
18597 return 0;
18599 _ACEOF
18600 if ac_fn_c_try_link "$LINENO"; then :
18601 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18602 else
18603 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18605 rm -f core conftest.err conftest.$ac_objext \
18606 conftest$ac_exeext conftest.$ac_ext
18607 LIBS=$ac_check_lib_save_LIBS
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18610 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18611 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
18612 have_crypto=yes
18613 else
18614 have_crypto=no
18617 if test $have_crypto = yes; then
18618 CRYPTOLIB=-lcrypto
18619 LIBS="$CRYPTOLIB $LIBS"
18621 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18625 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18626 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18627 $as_echo_n "(cached) " >&6
18628 else
18629 ac_check_lib_save_LIBS=$LIBS
18630 LIBS="-lk5crypto $LIBS"
18631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18632 /* end confdefs.h. */
18634 /* Override any GCC internal prototype to avoid an error.
18635 Use char because int might match the return type of a GCC
18636 builtin and then its argument prototype would still apply. */
18637 #ifdef __cplusplus
18638 extern "C"
18639 #endif
18640 char mit_des_cbc_encrypt ();
18642 main ()
18644 return mit_des_cbc_encrypt ();
18646 return 0;
18648 _ACEOF
18649 if ac_fn_c_try_link "$LINENO"; then :
18650 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18651 else
18652 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18654 rm -f core conftest.err conftest.$ac_objext \
18655 conftest$ac_exeext conftest.$ac_ext
18656 LIBS=$ac_check_lib_save_LIBS
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18659 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18660 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
18661 have_k5crypto=yes
18662 else
18663 have_k5crypto=no
18666 if test $have_k5crypto = yes; then
18667 CRYPTOLIB=-lk5crypto
18668 LIBS="$CRYPTOLIB $LIBS"
18670 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18674 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18675 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18676 $as_echo_n "(cached) " >&6
18677 else
18678 ac_check_lib_save_LIBS=$LIBS
18679 LIBS="-lkrb5 $LIBS"
18680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18681 /* end confdefs.h. */
18683 /* Override any GCC internal prototype to avoid an error.
18684 Use char because int might match the return type of a GCC
18685 builtin and then its argument prototype would still apply. */
18686 #ifdef __cplusplus
18687 extern "C"
18688 #endif
18689 char krb5_init_context ();
18691 main ()
18693 return krb5_init_context ();
18695 return 0;
18697 _ACEOF
18698 if ac_fn_c_try_link "$LINENO"; then :
18699 ac_cv_lib_krb5_krb5_init_context=yes
18700 else
18701 ac_cv_lib_krb5_krb5_init_context=no
18703 rm -f core conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
18705 LIBS=$ac_check_lib_save_LIBS
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18708 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18709 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
18710 have_krb5=yes
18711 else
18712 have_krb5=no
18715 if test $have_krb5=yes; then
18716 KRB5LIB=-lkrb5
18717 LIBS="$KRB5LIB $LIBS"
18719 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18722 if test "${with_kerberos5}" = no; then
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18724 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18725 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18726 $as_echo_n "(cached) " >&6
18727 else
18728 ac_check_lib_save_LIBS=$LIBS
18729 LIBS="-ldes425 $LIBS"
18730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18733 /* Override any GCC internal prototype to avoid an error.
18734 Use char because int might match the return type of a GCC
18735 builtin and then its argument prototype would still apply. */
18736 #ifdef __cplusplus
18737 extern "C"
18738 #endif
18739 char des_cbc_encrypt ();
18741 main ()
18743 return des_cbc_encrypt ();
18745 return 0;
18747 _ACEOF
18748 if ac_fn_c_try_link "$LINENO"; then :
18749 ac_cv_lib_des425_des_cbc_encrypt=yes
18750 else
18751 ac_cv_lib_des425_des_cbc_encrypt=no
18753 rm -f core conftest.err conftest.$ac_objext \
18754 conftest$ac_exeext conftest.$ac_ext
18755 LIBS=$ac_check_lib_save_LIBS
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18758 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18759 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
18760 have_des425=yes
18761 else
18762 have_des425=no
18765 if test $have_des425 = yes; then
18766 DESLIB=-ldes425
18767 LIBS="$DESLIB $LIBS"
18769 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18771 else
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18773 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18774 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18775 $as_echo_n "(cached) " >&6
18776 else
18777 ac_check_lib_save_LIBS=$LIBS
18778 LIBS="-ldes $LIBS"
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18782 /* Override any GCC internal prototype to avoid an error.
18783 Use char because int might match the return type of a GCC
18784 builtin and then its argument prototype would still apply. */
18785 #ifdef __cplusplus
18786 extern "C"
18787 #endif
18788 char des_cbc_encrypt ();
18790 main ()
18792 return des_cbc_encrypt ();
18794 return 0;
18796 _ACEOF
18797 if ac_fn_c_try_link "$LINENO"; then :
18798 ac_cv_lib_des_des_cbc_encrypt=yes
18799 else
18800 ac_cv_lib_des_des_cbc_encrypt=no
18802 rm -f core conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804 LIBS=$ac_check_lib_save_LIBS
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18807 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18808 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
18809 have_des=yes
18810 else
18811 have_des=no
18814 if test $have_des = yes; then
18815 DESLIB=-ldes
18816 LIBS="$DESLIB $LIBS"
18818 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18823 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18824 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18825 $as_echo_n "(cached) " >&6
18826 else
18827 ac_check_lib_save_LIBS=$LIBS
18828 LIBS="-lkrb4 $LIBS"
18829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830 /* end confdefs.h. */
18832 /* Override any GCC internal prototype to avoid an error.
18833 Use char because int might match the return type of a GCC
18834 builtin and then its argument prototype would still apply. */
18835 #ifdef __cplusplus
18836 extern "C"
18837 #endif
18838 char krb_get_cred ();
18840 main ()
18842 return krb_get_cred ();
18844 return 0;
18846 _ACEOF
18847 if ac_fn_c_try_link "$LINENO"; then :
18848 ac_cv_lib_krb4_krb_get_cred=yes
18849 else
18850 ac_cv_lib_krb4_krb_get_cred=no
18852 rm -f core conftest.err conftest.$ac_objext \
18853 conftest$ac_exeext conftest.$ac_ext
18854 LIBS=$ac_check_lib_save_LIBS
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18857 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18858 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
18859 have_krb4=yes
18860 else
18861 have_krb4=no
18864 if test $have_krb4 = yes; then
18865 KRB4LIB=-lkrb4
18866 LIBS="$KRB4LIB $LIBS"
18868 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18870 else
18871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18872 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18873 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18874 $as_echo_n "(cached) " >&6
18875 else
18876 ac_check_lib_save_LIBS=$LIBS
18877 LIBS="-lkrb $LIBS"
18878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18879 /* end confdefs.h. */
18881 /* Override any GCC internal prototype to avoid an error.
18882 Use char because int might match the return type of a GCC
18883 builtin and then its argument prototype would still apply. */
18884 #ifdef __cplusplus
18885 extern "C"
18886 #endif
18887 char krb_get_cred ();
18889 main ()
18891 return krb_get_cred ();
18893 return 0;
18895 _ACEOF
18896 if ac_fn_c_try_link "$LINENO"; then :
18897 ac_cv_lib_krb_krb_get_cred=yes
18898 else
18899 ac_cv_lib_krb_krb_get_cred=no
18901 rm -f core conftest.err conftest.$ac_objext \
18902 conftest$ac_exeext conftest.$ac_ext
18903 LIBS=$ac_check_lib_save_LIBS
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18906 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18907 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
18908 have_krb=yes
18909 else
18910 have_krb=no
18913 if test $have_krb = yes; then
18914 KRB4LIB=-lkrb
18915 LIBS="$KRB4LIB $LIBS"
18917 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18923 if test "${with_kerberos5}" != no; then
18924 for ac_header in krb5.h
18925 do :
18926 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18927 if test "x$ac_cv_header_krb5_h" = x""yes; then :
18928 cat >>confdefs.h <<_ACEOF
18929 #define HAVE_KRB5_H 1
18930 _ACEOF
18931 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18933 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_KRB5_ERROR_TEXT 1
18937 _ACEOF
18941 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18943 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
18945 cat >>confdefs.h <<_ACEOF
18946 #define HAVE_KRB5_ERROR_E_TEXT 1
18947 _ACEOF
18954 done
18956 else
18957 for ac_header in des.h
18958 do :
18959 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18960 if test "x$ac_cv_header_des_h" = x""yes; then :
18961 cat >>confdefs.h <<_ACEOF
18962 #define HAVE_DES_H 1
18963 _ACEOF
18965 else
18966 for ac_header in kerberosIV/des.h
18967 do :
18968 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18969 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
18970 cat >>confdefs.h <<_ACEOF
18971 #define HAVE_KERBEROSIV_DES_H 1
18972 _ACEOF
18974 else
18975 for ac_header in kerberos/des.h
18976 do :
18977 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18978 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
18979 cat >>confdefs.h <<_ACEOF
18980 #define HAVE_KERBEROS_DES_H 1
18981 _ACEOF
18985 done
18989 done
18993 done
18995 for ac_header in krb.h
18996 do :
18997 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18998 if test "x$ac_cv_header_krb_h" = x""yes; then :
18999 cat >>confdefs.h <<_ACEOF
19000 #define HAVE_KRB_H 1
19001 _ACEOF
19003 else
19004 for ac_header in kerberosIV/krb.h
19005 do :
19006 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
19007 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
19008 cat >>confdefs.h <<_ACEOF
19009 #define HAVE_KERBEROSIV_KRB_H 1
19010 _ACEOF
19012 else
19013 for ac_header in kerberos/krb.h
19014 do :
19015 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19016 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
19017 cat >>confdefs.h <<_ACEOF
19018 #define HAVE_KERBEROS_KRB_H 1
19019 _ACEOF
19023 done
19027 done
19031 done
19034 for ac_header in com_err.h
19035 do :
19036 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19037 if test "x$ac_cv_header_com_err_h" = x""yes; then :
19038 cat >>confdefs.h <<_ACEOF
19039 #define HAVE_COM_ERR_H 1
19040 _ACEOF
19044 done
19054 # Solaris requires -lintl if you want strerror (which calls dgettext)
19055 # to return localized messages.
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19057 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19058 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19059 $as_echo_n "(cached) " >&6
19060 else
19061 ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lintl $LIBS"
19063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19066 /* Override any GCC internal prototype to avoid an error.
19067 Use char because int might match the return type of a GCC
19068 builtin and then its argument prototype would still apply. */
19069 #ifdef __cplusplus
19070 extern "C"
19071 #endif
19072 char dgettext ();
19074 main ()
19076 return dgettext ();
19078 return 0;
19080 _ACEOF
19081 if ac_fn_c_try_link "$LINENO"; then :
19082 ac_cv_lib_intl_dgettext=yes
19083 else
19084 ac_cv_lib_intl_dgettext=no
19086 rm -f core conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19091 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19092 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
19093 cat >>confdefs.h <<_ACEOF
19094 #define HAVE_LIBINTL 1
19095 _ACEOF
19097 LIBS="-lintl $LIBS"
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19103 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19104 if test "${emacs_cv_localtime_cache+set}" = set; then :
19105 $as_echo_n "(cached) " >&6
19106 else
19107 if test x$ac_cv_func_tzset = xyes; then
19108 if test "$cross_compiling" = yes; then :
19109 # If we have tzset, assume the worst when cross-compiling.
19110 emacs_cv_localtime_cache=yes
19111 else
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19114 #include <time.h>
19115 char TZ_GMT0[] = "TZ=GMT0";
19116 char TZ_PST8[] = "TZ=PST8";
19117 main()
19119 time_t now = time ((time_t *) 0);
19120 int hour_GMT0, hour_unset;
19121 if (putenv (TZ_GMT0) != 0)
19122 exit (1);
19123 hour_GMT0 = localtime (&now)->tm_hour;
19124 unsetenv("TZ");
19125 hour_unset = localtime (&now)->tm_hour;
19126 if (putenv (TZ_PST8) != 0)
19127 exit (1);
19128 if (localtime (&now)->tm_hour == hour_GMT0)
19129 exit (1);
19130 unsetenv("TZ");
19131 if (localtime (&now)->tm_hour != hour_unset)
19132 exit (1);
19133 exit (0);
19135 _ACEOF
19136 if ac_fn_c_try_run "$LINENO"; then :
19137 emacs_cv_localtime_cache=no
19138 else
19139 emacs_cv_localtime_cache=yes
19141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19142 conftest.$ac_objext conftest.beam conftest.$ac_ext
19145 else
19146 # If we lack tzset, report that localtime does not cache TZ,
19147 # since we can't invalidate the cache if we don't have tzset.
19148 emacs_cv_localtime_cache=no
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19152 $as_echo "$emacs_cv_localtime_cache" >&6; }
19153 if test $emacs_cv_localtime_cache = yes; then
19155 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19159 if test "x$HAVE_TIMEVAL" = xyes; then
19160 for ac_func in gettimeofday
19161 do :
19162 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19163 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
19164 cat >>confdefs.h <<_ACEOF
19165 #define HAVE_GETTIMEOFDAY 1
19166 _ACEOF
19169 done
19171 if test $ac_cv_func_gettimeofday = yes; then
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19173 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19174 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
19175 $as_echo_n "(cached) " >&6
19176 else
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19180 #ifdef TIME_WITH_SYS_TIME
19181 #include <sys/time.h>
19182 #include <time.h>
19183 #else
19184 #ifdef HAVE_SYS_TIME_H
19185 #include <sys/time.h>
19186 #else
19187 #include <time.h>
19188 #endif
19189 #endif
19191 main ()
19193 struct timeval time;
19194 gettimeofday (&time, 0);
19196 return 0;
19198 _ACEOF
19199 if ac_fn_c_try_compile "$LINENO"; then :
19200 emacs_cv_gettimeofday_two_arguments=yes
19201 else
19202 emacs_cv_gettimeofday_two_arguments=no
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19207 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19208 if test $emacs_cv_gettimeofday_two_arguments = no; then
19210 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19216 ok_so_far=yes
19217 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
19218 if test "x$ac_cv_func_socket" = x""yes; then :
19220 else
19221 ok_so_far=no
19224 if test $ok_so_far = yes; then
19225 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19226 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
19228 else
19229 ok_so_far=no
19234 if test $ok_so_far = yes; then
19235 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19236 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
19238 else
19239 ok_so_far=no
19244 if test $ok_so_far = yes; then
19246 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19250 if test -f /usr/lpp/X11/bin/smt.exp; then
19252 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19257 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19258 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260 $as_echo "yes" >&6; }
19262 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19264 else
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 $as_echo "no" >&6; }
19269 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19270 if test "x$ac_cv_type_pid_t" = x""yes; then :
19272 else
19274 cat >>confdefs.h <<_ACEOF
19275 #define pid_t int
19276 _ACEOF
19280 for ac_header in vfork.h
19281 do :
19282 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19283 if test "x$ac_cv_header_vfork_h" = x""yes; then :
19284 cat >>confdefs.h <<_ACEOF
19285 #define HAVE_VFORK_H 1
19286 _ACEOF
19290 done
19292 for ac_func in fork vfork
19293 do :
19294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19296 eval as_val=\$$as_ac_var
19297 if test "x$as_val" = x""yes; then :
19298 cat >>confdefs.h <<_ACEOF
19299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19300 _ACEOF
19303 done
19305 if test "x$ac_cv_func_fork" = xyes; then
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19307 $as_echo_n "checking for working fork... " >&6; }
19308 if test "${ac_cv_func_fork_works+set}" = set; then :
19309 $as_echo_n "(cached) " >&6
19310 else
19311 if test "$cross_compiling" = yes; then :
19312 ac_cv_func_fork_works=cross
19313 else
19314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315 /* end confdefs.h. */
19316 $ac_includes_default
19318 main ()
19321 /* By Ruediger Kuhlmann. */
19322 return fork () < 0;
19325 return 0;
19327 _ACEOF
19328 if ac_fn_c_try_run "$LINENO"; then :
19329 ac_cv_func_fork_works=yes
19330 else
19331 ac_cv_func_fork_works=no
19333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19334 conftest.$ac_objext conftest.beam conftest.$ac_ext
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19339 $as_echo "$ac_cv_func_fork_works" >&6; }
19341 else
19342 ac_cv_func_fork_works=$ac_cv_func_fork
19344 if test "x$ac_cv_func_fork_works" = xcross; then
19345 case $host in
19346 *-*-amigaos* | *-*-msdosdjgpp*)
19347 # Override, as these systems have only a dummy fork() stub
19348 ac_cv_func_fork_works=no
19351 ac_cv_func_fork_works=yes
19353 esac
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19355 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19357 ac_cv_func_vfork_works=$ac_cv_func_vfork
19358 if test "x$ac_cv_func_vfork" = xyes; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19360 $as_echo_n "checking for working vfork... " >&6; }
19361 if test "${ac_cv_func_vfork_works+set}" = set; then :
19362 $as_echo_n "(cached) " >&6
19363 else
19364 if test "$cross_compiling" = yes; then :
19365 ac_cv_func_vfork_works=cross
19366 else
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19369 /* Thanks to Paul Eggert for this test. */
19370 $ac_includes_default
19371 #include <sys/wait.h>
19372 #ifdef HAVE_VFORK_H
19373 # include <vfork.h>
19374 #endif
19375 /* On some sparc systems, changes by the child to local and incoming
19376 argument registers are propagated back to the parent. The compiler
19377 is told about this with #include <vfork.h>, but some compilers
19378 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19379 static variable whose address is put into a register that is
19380 clobbered by the vfork. */
19381 static void
19382 #ifdef __cplusplus
19383 sparc_address_test (int arg)
19384 # else
19385 sparc_address_test (arg) int arg;
19386 #endif
19388 static pid_t child;
19389 if (!child) {
19390 child = vfork ();
19391 if (child < 0) {
19392 perror ("vfork");
19393 _exit(2);
19395 if (!child) {
19396 arg = getpid();
19397 write(-1, "", 0);
19398 _exit (arg);
19404 main ()
19406 pid_t parent = getpid ();
19407 pid_t child;
19409 sparc_address_test (0);
19411 child = vfork ();
19413 if (child == 0) {
19414 /* Here is another test for sparc vfork register problems. This
19415 test uses lots of local variables, at least as many local
19416 variables as main has allocated so far including compiler
19417 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19418 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19419 reuse the register of parent for one of the local variables,
19420 since it will think that parent can't possibly be used any more
19421 in this routine. Assigning to the local variable will thus
19422 munge parent in the parent process. */
19423 pid_t
19424 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19425 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19426 /* Convince the compiler that p..p7 are live; otherwise, it might
19427 use the same hardware register for all 8 local variables. */
19428 if (p != p1 || p != p2 || p != p3 || p != p4
19429 || p != p5 || p != p6 || p != p7)
19430 _exit(1);
19432 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19433 from child file descriptors. If the child closes a descriptor
19434 before it execs or exits, this munges the parent's descriptor
19435 as well. Test for this by closing stdout in the child. */
19436 _exit(close(fileno(stdout)) != 0);
19437 } else {
19438 int status;
19439 struct stat st;
19441 while (wait(&status) != child)
19443 return (
19444 /* Was there some problem with vforking? */
19445 child < 0
19447 /* Did the child fail? (This shouldn't happen.) */
19448 || status
19450 /* Did the vfork/compiler bug occur? */
19451 || parent != getpid()
19453 /* Did the file descriptor bug occur? */
19454 || fstat(fileno(stdout), &st) != 0
19458 _ACEOF
19459 if ac_fn_c_try_run "$LINENO"; then :
19460 ac_cv_func_vfork_works=yes
19461 else
19462 ac_cv_func_vfork_works=no
19464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19465 conftest.$ac_objext conftest.beam conftest.$ac_ext
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19470 $as_echo "$ac_cv_func_vfork_works" >&6; }
19473 if test "x$ac_cv_func_fork_works" = xcross; then
19474 ac_cv_func_vfork_works=$ac_cv_func_vfork
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19476 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19479 if test "x$ac_cv_func_vfork_works" = xyes; then
19481 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19483 else
19485 $as_echo "#define vfork fork" >>confdefs.h
19488 if test "x$ac_cv_func_fork_works" = xyes; then
19490 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19496 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19497 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19498 $as_echo_n "(cached) " >&6
19499 else
19500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h. */
19502 #include <langinfo.h>
19504 main ()
19506 char* cs = nl_langinfo(CODESET);
19508 return 0;
19510 _ACEOF
19511 if ac_fn_c_try_link "$LINENO"; then :
19512 emacs_cv_langinfo_codeset=yes
19513 else
19514 emacs_cv_langinfo_codeset=no
19516 rm -f core conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19521 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19522 if test $emacs_cv_langinfo_codeset = yes; then
19524 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19528 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19529 if test "x$ac_cv_type_size_t" = x""yes; then :
19531 cat >>confdefs.h <<_ACEOF
19532 #define HAVE_SIZE_T 1
19533 _ACEOF
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19540 $as_echo_n "checking for mbstate_t... " >&6; }
19541 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19542 $as_echo_n "(cached) " >&6
19543 else
19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19546 $ac_includes_default
19547 # include <wchar.h>
19549 main ()
19551 mbstate_t x; return sizeof x;
19553 return 0;
19555 _ACEOF
19556 if ac_fn_c_try_compile "$LINENO"; then :
19557 ac_cv_type_mbstate_t=yes
19558 else
19559 ac_cv_type_mbstate_t=no
19561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19564 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19565 if test $ac_cv_type_mbstate_t = yes; then
19567 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19569 else
19571 $as_echo "#define mbstate_t int" >>confdefs.h
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19576 $as_echo_n "checking for C restricted array declarations... " >&6; }
19577 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19578 $as_echo_n "(cached) " >&6
19579 else
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19582 void fred (int x[__restrict]);
19584 main ()
19588 return 0;
19590 _ACEOF
19591 if ac_fn_c_try_compile "$LINENO"; then :
19592 emacs_cv_c_restrict_arr=yes
19593 else
19594 emacs_cv_c_restrict_arr=no
19596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19599 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19600 if test "$emacs_cv_c_restrict_arr" = yes; then
19602 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19608 # Set up the CFLAGS for real compilation, so we can substitute it.
19609 CFLAGS="$REAL_CFLAGS"
19610 CPPFLAGS="$REAL_CPPFLAGS"
19612 ## Hack to detect a buggy GCC version.
19613 if test "x$GCC" = xyes \
19614 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19615 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19616 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
19617 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19620 version=$PACKAGE_VERSION
19622 ### Specify what sort of things we'll be editing into Makefile and config.h.
19623 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19626 ## Unused?
19647 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19648 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19649 ## end of LIBX_BASE, but nothing ever set it.
19654 ## Used in lwlib/Makefile.in.
19656 if test -n "${machfile}"; then
19657 M_FILE="\$(srcdir)/${machfile}"
19658 else
19659 M_FILE=
19661 S_FILE="\$(srcdir)/${opsysfile}"
19672 cat >>confdefs.h <<_ACEOF
19673 #define EMACS_CONFIGURATION "${canonical}"
19674 _ACEOF
19677 cat >>confdefs.h <<_ACEOF
19678 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19679 _ACEOF
19681 if test -n "$machfile"; then
19683 cat >>confdefs.h <<_ACEOF
19684 #define config_machfile "${machfile}"
19685 _ACEOF
19689 cat >>confdefs.h <<_ACEOF
19690 #define config_opsysfile "${opsysfile}"
19691 _ACEOF
19694 XMENU_OBJ=
19695 XOBJ=
19696 FONT_OBJ=
19697 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19699 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19701 XMENU_OBJ=xmenu.o
19702 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19703 FONT_OBJ=xfont.o
19704 if test "$HAVE_XFT" = "yes"; then
19705 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19706 elif test "$HAVE_FREETYPE" = "yes"; then
19707 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19715 WIDGET_OBJ=
19716 MOTIF_LIBW=
19717 if test "${USE_X_TOOLKIT}" != "none" ; then
19718 WIDGET_OBJ=widget.o
19720 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19722 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19724 $as_echo "#define USE_LUCID 1" >>confdefs.h
19726 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19728 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19730 MOTIF_LIBW=-lXm
19731 case "$opsys" in
19732 gnu-linux)
19733 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19734 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19737 unixware)
19738 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19739 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19740 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19743 aix4-2)
19744 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19745 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19747 esac
19748 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19753 TOOLKIT_LIBW=
19754 case "$USE_X_TOOLKIT" in
19755 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19756 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19757 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19758 esac
19761 if test "$USE_X_TOOLKIT" = "none"; then
19762 LIBXT_OTHER="\$(LIBXSM)"
19763 OLDXMENU_TARGET="really-oldXMenu"
19764 else
19765 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19766 OLDXMENU_TARGET="really-lwlib"
19770 ## The X Menu stuff is present in the X10 distribution, but missing
19771 ## from X11. If we have X10, just use the installed library;
19772 ## otherwise, use our own copy.
19773 if test "${HAVE_X11}" = "yes" ; then
19775 $as_echo "#define HAVE_X11 1" >>confdefs.h
19778 if test "$USE_X_TOOLKIT" = "none"; then
19779 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19780 else
19781 OLDXMENU="\${lwlibdir}/liblw.a"
19783 LIBXMENU="\$(OLDXMENU)"
19784 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19785 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19786 else
19787 ## For a syntactically valid Makefile; not actually used for anything.
19788 ## See comments in src/Makefile.in.
19789 OLDXMENU=nothing
19790 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19791 if test "${HAVE_X_WINDOWS}" = "yes"; then
19792 LIBXMENU="-lXMenu"
19793 else
19794 LIBXMENU=
19796 LIBX_OTHER=
19797 OLDXMENU_DEPS=
19800 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19801 OLDXMENU_TARGET=
19802 OLDXMENU=nothing
19803 LIBXMENU=
19804 OLDXMENU_DEPS=
19813 if test "${HAVE_MENUS}" = "yes" ; then
19815 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19819 if test "${GNU_MALLOC}" = "yes" ; then
19821 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19825 RALLOC_OBJ=
19826 if test "${REL_ALLOC}" = "yes" ; then
19828 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19831 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19835 if test "$opsys" = "cygwin"; then
19836 CYGWIN_OBJ="sheap.o"
19837 ## Cygwin differs because of its unexec().
19838 PRE_ALLOC_OBJ=
19839 POST_ALLOC_OBJ=lastfile.o
19840 else
19841 CYGWIN_OBJ=
19842 PRE_ALLOC_OBJ=lastfile.o
19843 POST_ALLOC_OBJ=
19850 case "$opsys" in
19851 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19853 darwin)
19854 ## The -headerpad option tells ld (see man page) to leave room at the
19855 ## end of the header for adding load commands. Needed for dumping.
19856 ## 0x690 is the total size of 30 segment load commands (at 56
19857 ## each); under Cocoa 31 commands are required.
19858 if test "$HAVE_NS" = "yes"; then
19859 libs_nsgui="-framework AppKit"
19860 headerpad_extra=6C8
19861 else
19862 libs_nsgui=
19863 headerpad_extra=690
19865 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19867 ## This is here because src/Makefile.in did some extra fiddling around
19868 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19869 ## #ifndef LD_SWITCH_SYSTEM
19870 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19871 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19872 ## not using gcc, darwin system not on an alpha (ie darwin, since
19873 ## darwin + alpha does not occur).
19874 ## Because this was done in src/Makefile.in, the resulting part of
19875 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19876 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19877 ## rather than LD_SWITCH_SYSTEM.
19878 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19879 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19882 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19883 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19884 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19885 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19886 ## had different values in configure (in ac_link) and src/Makefile.in.
19887 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19888 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19890 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19891 esac
19893 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19894 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19900 LD_FIRSTFLAG=
19901 ORDINARY_LINK=
19902 case "$opsys" in
19903 ## gnu: GNU needs its own crt0.
19904 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19906 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19907 ## library search parth, i.e. it won't search /usr/lib for libc and
19908 ## friends. Using -nostartfiles instead avoids this problem, and
19909 ## will also work on earlier NetBSD releases.
19910 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19912 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19913 ## MkLinux/LinuxPPC needs this.
19914 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19915 gnu-*)
19916 case "$machine" in
19917 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19918 esac
19920 esac
19923 if test "x$ORDINARY_LINK" = "xyes"; then
19925 LD_FIRSTFLAG=""
19927 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19930 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19931 ## freebsd, gnu-* not on macppc|ibms390x.
19932 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19934 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19935 ## places that are difficult to figure out at make time. Fortunately,
19936 ## these same versions allow you to pass arbitrary flags on to the
19937 ## linker, so there is no reason not to use it as a linker.
19939 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19940 ## searching for libraries in its internal directories, so we have to
19941 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19942 LD_FIRSTFLAG="-nostdlib"
19945 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19946 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19951 ## FIXME? The logic here is not precisely the same as that above.
19952 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19953 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19954 LIB_GCC=
19955 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19957 case "$opsys" in
19958 freebsd|netbsd|openbsd) LIB_GCC= ;;
19960 gnu-*)
19961 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19962 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19963 case $host_cpu in
19964 arm*)
19965 LIB_GCC="-lgcc_s"
19968 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19969 ## immediately undefine it again and redefine it to empty.
19970 ## Was the C_SWITCH_X_SITE part really necessary?
19971 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19972 LIB_GCC=
19974 esac
19977 ## Ask GCC where to find libgcc.a.
19978 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19979 esac
19983 TOOLTIP_SUPPORT=
19984 WINDOW_SUPPORT=
19985 ## If we're using X11/GNUstep, define some consequences.
19986 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19988 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19991 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19993 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19994 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19996 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19997 test "$HAVE_X_WINDOWS" = "yes" && \
19998 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
20008 #### Report on what we decided to do.
20009 #### Report GTK as a toolkit, even if it doesn't use Xt.
20010 #### It makes printing result more understandable as using GTK sets
20011 #### toolkit_scroll_bars to yes by default.
20012 if test "${HAVE_GTK}" = "yes"; then
20013 USE_X_TOOLKIT=GTK
20016 and_machfile=
20017 if test -n "$machfile"; then
20018 and_machfile=" and \`${machfile}'"
20021 echo "
20022 Configured for \`${canonical}'.
20024 Where should the build process find the source code? ${srcdir}
20025 What operating system and machine description files should Emacs use?
20026 \`${opsysfile}'${and_machfile}
20027 What compiler should emacs be built with? ${CC} ${CFLAGS}
20028 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20029 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20030 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20031 What window system should Emacs use? ${window_system}
20032 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20034 if test -n "${x_includes}"; then
20035 echo " Where do we find X Windows header files? ${x_includes}"
20036 else
20037 echo " Where do we find X Windows header files? Standard dirs"
20039 if test -n "${x_libraries}"; then
20040 echo " Where do we find X Windows libraries? ${x_libraries}"
20041 else
20042 echo " Where do we find X Windows libraries? Standard dirs"
20045 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20046 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20047 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20048 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20049 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20050 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20051 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20052 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20054 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20055 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20056 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20057 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20058 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
20059 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20061 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20062 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20063 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20064 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20066 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20067 echo
20069 if test $USE_XASSERTS = yes; then
20070 echo " Compiling with asserts turned on."
20071 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20074 echo
20076 if test "$HAVE_NS" = "yes"; then
20077 echo
20078 echo "You must run \"make install\" in order to test the built application.
20079 The installed application will go to nextstep/Emacs.app and can be
20080 run or moved from there."
20081 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20082 echo "The application will be fully self-contained."
20083 else
20084 echo "The lisp resources for the application will be installed under ${prefix}.
20085 You may need to run \"make install\" with sudo. The application will fail
20086 to run if these resources are not installed."
20088 echo
20092 # Remove any trailing slashes in these variables.
20093 test "${prefix}" != NONE &&
20094 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20095 test "${exec_prefix}" != NONE &&
20096 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20098 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 test/automated/Makefile"
20101 ac_config_commands="$ac_config_commands mkdirs"
20104 ac_config_commands="$ac_config_commands epaths"
20107 ac_config_commands="$ac_config_commands gdbinit"
20110 cat >confcache <<\_ACEOF
20111 # This file is a shell script that caches the results of configure
20112 # tests run on this system so they can be shared between configure
20113 # scripts and configure runs, see configure's option --config-cache.
20114 # It is not useful on other systems. If it contains results you don't
20115 # want to keep, you may remove or edit it.
20117 # config.status only pays attention to the cache file if you give it
20118 # the --recheck option to rerun configure.
20120 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20121 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20122 # following values.
20124 _ACEOF
20126 # The following way of writing the cache mishandles newlines in values,
20127 # but we know of no workaround that is simple, portable, and efficient.
20128 # So, we kill variables containing newlines.
20129 # Ultrix sh set writes to stderr and can't be redirected directly,
20130 # and sets the high bit in the cache file unless we assign to the vars.
20132 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20133 eval ac_val=\$$ac_var
20134 case $ac_val in #(
20135 *${as_nl}*)
20136 case $ac_var in #(
20137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20138 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20139 esac
20140 case $ac_var in #(
20141 _ | IFS | as_nl) ;; #(
20142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20143 *) { eval $ac_var=; unset $ac_var;} ;;
20144 esac ;;
20145 esac
20146 done
20148 (set) 2>&1 |
20149 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20150 *${as_nl}ac_space=\ *)
20151 # `set' does not quote correctly, so add quotes: double-quote
20152 # substitution turns \\\\ into \\, and sed turns \\ into \.
20153 sed -n \
20154 "s/'/'\\\\''/g;
20155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20156 ;; #(
20158 # `set' quotes correctly as required by POSIX, so do not add quotes.
20159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20161 esac |
20162 sort
20164 sed '
20165 /^ac_cv_env_/b end
20166 t clear
20167 :clear
20168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20169 t end
20170 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20171 :end' >>confcache
20172 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20173 if test -w "$cache_file"; then
20174 test "x$cache_file" != "x/dev/null" &&
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20176 $as_echo "$as_me: updating cache $cache_file" >&6;}
20177 cat confcache >$cache_file
20178 else
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20180 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20183 rm -f confcache
20185 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20186 # Let make expand exec_prefix.
20187 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20189 DEFS=-DHAVE_CONFIG_H
20191 ac_libobjs=
20192 ac_ltlibobjs=
20193 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20194 # 1. Remove the extension, and $U if already installed.
20195 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20196 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20197 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20198 # will be set to the directory where LIBOBJS objects are built.
20199 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20200 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20201 done
20202 LIBOBJS=$ac_libobjs
20204 LTLIBOBJS=$ac_ltlibobjs
20207 if test -n "$EXEEXT"; then
20208 am__EXEEXT_TRUE=
20209 am__EXEEXT_FALSE='#'
20210 else
20211 am__EXEEXT_TRUE='#'
20212 am__EXEEXT_FALSE=
20215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20216 as_fn_error "conditional \"AMDEP\" was never defined.
20217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20220 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20224 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20225 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
20226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20229 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20230 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20233 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20234 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20237 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20238 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
20239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20242 gl_libobjs=
20243 gl_ltlibobjs=
20244 if test -n "$gl_LIBOBJS"; then
20245 # Remove the extension.
20246 sed_drop_objext='s/\.o$//;s/\.obj$//'
20247 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20248 gl_libobjs="$gl_libobjs $i.$ac_objext"
20249 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20250 done
20252 gl_LIBOBJS=$gl_libobjs
20254 gl_LTLIBOBJS=$gl_ltlibobjs
20258 gltests_libobjs=
20259 gltests_ltlibobjs=
20260 if test -n "$gltests_LIBOBJS"; then
20261 # Remove the extension.
20262 sed_drop_objext='s/\.o$//;s/\.obj$//'
20263 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20264 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20265 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20266 done
20268 gltests_LIBOBJS=$gltests_libobjs
20270 gltests_LTLIBOBJS=$gltests_ltlibobjs
20274 : ${CONFIG_STATUS=./config.status}
20275 ac_write_fail=0
20276 ac_clean_files_save=$ac_clean_files
20277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20279 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20280 as_write_fail=0
20281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20282 #! $SHELL
20283 # Generated by $as_me.
20284 # Run this file to recreate the current configuration.
20285 # Compiler output produced by configure, useful for debugging
20286 # configure, is in config.log if it exists.
20288 debug=false
20289 ac_cs_recheck=false
20290 ac_cs_silent=false
20292 SHELL=\${CONFIG_SHELL-$SHELL}
20293 export SHELL
20294 _ASEOF
20295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20296 ## -------------------- ##
20297 ## M4sh Initialization. ##
20298 ## -------------------- ##
20300 # Be more Bourne compatible
20301 DUALCASE=1; export DUALCASE # for MKS sh
20302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20303 emulate sh
20304 NULLCMD=:
20305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20306 # is contrary to our usage. Disable this feature.
20307 alias -g '${1+"$@"}'='"$@"'
20308 setopt NO_GLOB_SUBST
20309 else
20310 case `(set -o) 2>/dev/null` in #(
20311 *posix*) :
20312 set -o posix ;; #(
20313 *) :
20315 esac
20319 as_nl='
20321 export as_nl
20322 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20323 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20326 # Prefer a ksh shell builtin over an external printf program on Solaris,
20327 # but without wasting forks for bash or zsh.
20328 if test -z "$BASH_VERSION$ZSH_VERSION" \
20329 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20330 as_echo='print -r --'
20331 as_echo_n='print -rn --'
20332 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20333 as_echo='printf %s\n'
20334 as_echo_n='printf %s'
20335 else
20336 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20337 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20338 as_echo_n='/usr/ucb/echo -n'
20339 else
20340 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20341 as_echo_n_body='eval
20342 arg=$1;
20343 case $arg in #(
20344 *"$as_nl"*)
20345 expr "X$arg" : "X\\(.*\\)$as_nl";
20346 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20347 esac;
20348 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20350 export as_echo_n_body
20351 as_echo_n='sh -c $as_echo_n_body as_echo'
20353 export as_echo_body
20354 as_echo='sh -c $as_echo_body as_echo'
20357 # The user is always right.
20358 if test "${PATH_SEPARATOR+set}" != set; then
20359 PATH_SEPARATOR=:
20360 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20361 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20362 PATH_SEPARATOR=';'
20367 # IFS
20368 # We need space, tab and new line, in precisely that order. Quoting is
20369 # there to prevent editors from complaining about space-tab.
20370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20371 # splitting by setting IFS to empty value.)
20372 IFS=" "" $as_nl"
20374 # Find who we are. Look in the path if we contain no directory separator.
20375 case $0 in #((
20376 *[\\/]* ) as_myself=$0 ;;
20377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20378 for as_dir in $PATH
20380 IFS=$as_save_IFS
20381 test -z "$as_dir" && as_dir=.
20382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20383 done
20384 IFS=$as_save_IFS
20387 esac
20388 # We did not find ourselves, most probably we were run as `sh COMMAND'
20389 # in which case we are not to be found in the path.
20390 if test "x$as_myself" = x; then
20391 as_myself=$0
20393 if test ! -f "$as_myself"; then
20394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20395 exit 1
20398 # Unset variables that we do not need and which cause bugs (e.g. in
20399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20400 # suppresses any "Segmentation fault" message there. '((' could
20401 # trigger a bug in pdksh 5.2.14.
20402 for as_var in BASH_ENV ENV MAIL MAILPATH
20403 do eval test x\${$as_var+set} = xset \
20404 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20405 done
20406 PS1='$ '
20407 PS2='> '
20408 PS4='+ '
20410 # NLS nuisances.
20411 LC_ALL=C
20412 export LC_ALL
20413 LANGUAGE=C
20414 export LANGUAGE
20416 # CDPATH.
20417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20420 # as_fn_error ERROR [LINENO LOG_FD]
20421 # ---------------------------------
20422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20424 # script with status $?, using 1 if that was 0.
20425 as_fn_error ()
20427 as_status=$?; test $as_status -eq 0 && as_status=1
20428 if test "$3"; then
20429 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20432 $as_echo "$as_me: error: $1" >&2
20433 as_fn_exit $as_status
20434 } # as_fn_error
20437 # as_fn_set_status STATUS
20438 # -----------------------
20439 # Set $? to STATUS, without forking.
20440 as_fn_set_status ()
20442 return $1
20443 } # as_fn_set_status
20445 # as_fn_exit STATUS
20446 # -----------------
20447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20448 as_fn_exit ()
20450 set +e
20451 as_fn_set_status $1
20452 exit $1
20453 } # as_fn_exit
20455 # as_fn_unset VAR
20456 # ---------------
20457 # Portably unset VAR.
20458 as_fn_unset ()
20460 { eval $1=; unset $1;}
20462 as_unset=as_fn_unset
20463 # as_fn_append VAR VALUE
20464 # ----------------------
20465 # Append the text in VALUE to the end of the definition contained in VAR. Take
20466 # advantage of any shell optimizations that allow amortized linear growth over
20467 # repeated appends, instead of the typical quadratic growth present in naive
20468 # implementations.
20469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20470 eval 'as_fn_append ()
20472 eval $1+=\$2
20474 else
20475 as_fn_append ()
20477 eval $1=\$$1\$2
20479 fi # as_fn_append
20481 # as_fn_arith ARG...
20482 # ------------------
20483 # Perform arithmetic evaluation on the ARGs, and store the result in the
20484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20485 # must be portable across $(()) and expr.
20486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20487 eval 'as_fn_arith ()
20489 as_val=$(( $* ))
20491 else
20492 as_fn_arith ()
20494 as_val=`expr "$@" || test $? -eq 1`
20496 fi # as_fn_arith
20499 if expr a : '\(a\)' >/dev/null 2>&1 &&
20500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20501 as_expr=expr
20502 else
20503 as_expr=false
20506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20507 as_basename=basename
20508 else
20509 as_basename=false
20512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20513 as_dirname=dirname
20514 else
20515 as_dirname=false
20518 as_me=`$as_basename -- "$0" ||
20519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20520 X"$0" : 'X\(//\)$' \| \
20521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20522 $as_echo X/"$0" |
20523 sed '/^.*\/\([^/][^/]*\)\/*$/{
20524 s//\1/
20527 /^X\/\(\/\/\)$/{
20528 s//\1/
20531 /^X\/\(\/\).*/{
20532 s//\1/
20535 s/.*/./; q'`
20537 # Avoid depending upon Character Ranges.
20538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20541 as_cr_digits='0123456789'
20542 as_cr_alnum=$as_cr_Letters$as_cr_digits
20544 ECHO_C= ECHO_N= ECHO_T=
20545 case `echo -n x` in #(((((
20546 -n*)
20547 case `echo 'xy\c'` in
20548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20549 xy) ECHO_C='\c';;
20550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20551 ECHO_T=' ';;
20552 esac;;
20554 ECHO_N='-n';;
20555 esac
20557 rm -f conf$$ conf$$.exe conf$$.file
20558 if test -d conf$$.dir; then
20559 rm -f conf$$.dir/conf$$.file
20560 else
20561 rm -f conf$$.dir
20562 mkdir conf$$.dir 2>/dev/null
20564 if (echo >conf$$.file) 2>/dev/null; then
20565 if ln -s conf$$.file conf$$ 2>/dev/null; then
20566 as_ln_s='ln -s'
20567 # ... but there are two gotchas:
20568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20570 # In both cases, we have to default to `cp -p'.
20571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20572 as_ln_s='cp -p'
20573 elif ln conf$$.file conf$$ 2>/dev/null; then
20574 as_ln_s=ln
20575 else
20576 as_ln_s='cp -p'
20578 else
20579 as_ln_s='cp -p'
20581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20582 rmdir conf$$.dir 2>/dev/null
20585 # as_fn_mkdir_p
20586 # -------------
20587 # Create "$as_dir" as a directory, including parents if necessary.
20588 as_fn_mkdir_p ()
20591 case $as_dir in #(
20592 -*) as_dir=./$as_dir;;
20593 esac
20594 test -d "$as_dir" || eval $as_mkdir_p || {
20595 as_dirs=
20596 while :; do
20597 case $as_dir in #(
20598 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20599 *) as_qdir=$as_dir;;
20600 esac
20601 as_dirs="'$as_qdir' $as_dirs"
20602 as_dir=`$as_dirname -- "$as_dir" ||
20603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20604 X"$as_dir" : 'X\(//\)[^/]' \| \
20605 X"$as_dir" : 'X\(//\)$' \| \
20606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20607 $as_echo X"$as_dir" |
20608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20609 s//\1/
20612 /^X\(\/\/\)[^/].*/{
20613 s//\1/
20616 /^X\(\/\/\)$/{
20617 s//\1/
20620 /^X\(\/\).*/{
20621 s//\1/
20624 s/.*/./; q'`
20625 test -d "$as_dir" && break
20626 done
20627 test -z "$as_dirs" || eval "mkdir $as_dirs"
20628 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20631 } # as_fn_mkdir_p
20632 if mkdir -p . 2>/dev/null; then
20633 as_mkdir_p='mkdir -p "$as_dir"'
20634 else
20635 test -d ./-p && rmdir ./-p
20636 as_mkdir_p=false
20639 if test -x / >/dev/null 2>&1; then
20640 as_test_x='test -x'
20641 else
20642 if ls -dL / >/dev/null 2>&1; then
20643 as_ls_L_option=L
20644 else
20645 as_ls_L_option=
20647 as_test_x='
20648 eval sh -c '\''
20649 if test -d "$1"; then
20650 test -d "$1/.";
20651 else
20652 case $1 in #(
20653 -*)set "./$1";;
20654 esac;
20655 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20656 ???[sx]*):;;*)false;;esac;fi
20657 '\'' sh
20660 as_executable_p=$as_test_x
20662 # Sed expression to map a string onto a valid CPP name.
20663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20665 # Sed expression to map a string onto a valid variable name.
20666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20669 exec 6>&1
20670 ## ----------------------------------- ##
20671 ## Main body of $CONFIG_STATUS script. ##
20672 ## ----------------------------------- ##
20673 _ASEOF
20674 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20677 # Save the log message, to keep $0 and so on meaningful, and to
20678 # report actual input values of CONFIG_FILES etc. instead of their
20679 # values after options handling.
20680 ac_log="
20681 This file was extended by emacs $as_me 24.0.50, which was
20682 generated by GNU Autoconf 2.65. Invocation command line was
20684 CONFIG_FILES = $CONFIG_FILES
20685 CONFIG_HEADERS = $CONFIG_HEADERS
20686 CONFIG_LINKS = $CONFIG_LINKS
20687 CONFIG_COMMANDS = $CONFIG_COMMANDS
20688 $ $0 $@
20690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20693 _ACEOF
20695 case $ac_config_files in *"
20696 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20697 esac
20699 case $ac_config_headers in *"
20700 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20701 esac
20704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20705 # Files that config.status was made for.
20706 config_files="$ac_config_files"
20707 config_headers="$ac_config_headers"
20708 config_commands="$ac_config_commands"
20710 _ACEOF
20712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20713 ac_cs_usage="\
20714 \`$as_me' instantiates files and other configuration actions
20715 from templates according to the current configuration. Unless the files
20716 and actions are specified as TAGs, all are instantiated by default.
20718 Usage: $0 [OPTION]... [TAG]...
20720 -h, --help print this help, then exit
20721 -V, --version print version number and configuration settings, then exit
20722 --config print configuration, then exit
20723 -q, --quiet, --silent
20724 do not print progress messages
20725 -d, --debug don't remove temporary files
20726 --recheck update $as_me by reconfiguring in the same conditions
20727 --file=FILE[:TEMPLATE]
20728 instantiate the configuration file FILE
20729 --header=FILE[:TEMPLATE]
20730 instantiate the configuration header FILE
20732 Configuration files:
20733 $config_files
20735 Configuration headers:
20736 $config_headers
20738 Configuration commands:
20739 $config_commands
20741 Report bugs to the package provider."
20743 _ACEOF
20744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20745 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20746 ac_cs_version="\\
20747 emacs config.status 24.0.50
20748 configured by $0, generated by GNU Autoconf 2.65,
20749 with options \\"\$ac_cs_config\\"
20751 Copyright (C) 2009 Free Software Foundation, Inc.
20752 This config.status script is free software; the Free Software Foundation
20753 gives unlimited permission to copy, distribute and modify it."
20755 ac_pwd='$ac_pwd'
20756 srcdir='$srcdir'
20757 INSTALL='$INSTALL'
20758 MKDIR_P='$MKDIR_P'
20759 AWK='$AWK'
20760 test -n "\$AWK" || AWK=awk
20761 _ACEOF
20763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20764 # The default lists apply if the user does not specify any file.
20765 ac_need_defaults=:
20766 while test $# != 0
20768 case $1 in
20769 --*=*)
20770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20771 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20772 ac_shift=:
20775 ac_option=$1
20776 ac_optarg=$2
20777 ac_shift=shift
20779 esac
20781 case $ac_option in
20782 # Handling of the options.
20783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20784 ac_cs_recheck=: ;;
20785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20786 $as_echo "$ac_cs_version"; exit ;;
20787 --config | --confi | --conf | --con | --co | --c )
20788 $as_echo "$ac_cs_config"; exit ;;
20789 --debug | --debu | --deb | --de | --d | -d )
20790 debug=: ;;
20791 --file | --fil | --fi | --f )
20792 $ac_shift
20793 case $ac_optarg in
20794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20795 esac
20796 as_fn_append CONFIG_FILES " '$ac_optarg'"
20797 ac_need_defaults=false;;
20798 --header | --heade | --head | --hea )
20799 $ac_shift
20800 case $ac_optarg in
20801 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20802 esac
20803 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20804 ac_need_defaults=false;;
20805 --he | --h)
20806 # Conflict between --help and --header
20807 as_fn_error "ambiguous option: \`$1'
20808 Try \`$0 --help' for more information.";;
20809 --help | --hel | -h )
20810 $as_echo "$ac_cs_usage"; exit ;;
20811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20812 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20813 ac_cs_silent=: ;;
20815 # This is an error.
20816 -*) as_fn_error "unrecognized option: \`$1'
20817 Try \`$0 --help' for more information." ;;
20819 *) as_fn_append ac_config_targets " $1"
20820 ac_need_defaults=false ;;
20822 esac
20823 shift
20824 done
20826 ac_configure_extra_args=
20828 if $ac_cs_silent; then
20829 exec 6>/dev/null
20830 ac_configure_extra_args="$ac_configure_extra_args --silent"
20833 _ACEOF
20834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20835 if \$ac_cs_recheck; then
20836 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20837 shift
20838 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20839 CONFIG_SHELL='$SHELL'
20840 export CONFIG_SHELL
20841 exec "\$@"
20844 _ACEOF
20845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20846 exec 5>>config.log
20848 echo
20849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20850 ## Running $as_me. ##
20851 _ASBOX
20852 $as_echo "$ac_log"
20853 } >&5
20855 _ACEOF
20856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20858 # INIT-COMMANDS
20860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20861 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20863 _ACEOF
20865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20867 # Handling of arguments.
20868 for ac_config_target in $ac_config_targets
20870 case $ac_config_target in
20871 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20872 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20873 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20874 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20875 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20876 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20877 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20878 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20879 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20880 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20881 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20882 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20883 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20884 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20885 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
20886 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20887 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20888 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
20890 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20891 esac
20892 done
20895 # If the user did not use the arguments to specify the items to instantiate,
20896 # then the envvar interface is used. Set only those that are not.
20897 # We use the long form for the default assignment because of an extremely
20898 # bizarre bug on SunOS 4.1.3.
20899 if $ac_need_defaults; then
20900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20901 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20902 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20905 # Have a temporary directory for convenience. Make it in the build tree
20906 # simply because there is no reason against having it here, and in addition,
20907 # creating and moving files from /tmp can sometimes cause problems.
20908 # Hook for its removal unless debugging.
20909 # Note that there is a small window in which the directory will not be cleaned:
20910 # after its creation but before its name has been assigned to `$tmp'.
20911 $debug ||
20913 tmp=
20914 trap 'exit_status=$?
20915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20917 trap 'as_fn_exit 1' 1 2 13 15
20919 # Create a (secure) tmp directory for tmp files.
20922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20923 test -n "$tmp" && test -d "$tmp"
20924 } ||
20926 tmp=./conf$$-$RANDOM
20927 (umask 077 && mkdir "$tmp")
20928 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20930 # Set up the scripts for CONFIG_FILES section.
20931 # No need to generate them if there are no CONFIG_FILES.
20932 # This happens for instance with `./config.status config.h'.
20933 if test -n "$CONFIG_FILES"; then
20935 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20936 ac_cs_awk_getline=:
20937 ac_cs_awk_pipe_init=
20938 ac_cs_awk_read_file='
20939 while ((getline aline < (F[key])) > 0)
20940 print(aline)
20941 close(F[key])'
20942 ac_cs_awk_pipe_fini=
20943 else
20944 ac_cs_awk_getline=false
20945 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20946 ac_cs_awk_read_file='
20947 print "|#_!!_#|"
20948 print "cat " F[key] " &&"
20949 '$ac_cs_awk_pipe_init
20950 # The final `:' finishes the AND list.
20951 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20953 ac_cr=`echo X | tr X '\015'`
20954 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20955 # But we know of no other shell where ac_cr would be empty at this
20956 # point, so we can use a bashism as a fallback.
20957 if test "x$ac_cr" = x; then
20958 eval ac_cr=\$\'\\r\'
20960 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20962 ac_cs_awk_cr='\r'
20963 else
20964 ac_cs_awk_cr=$ac_cr
20967 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20968 _ACEOF
20970 # Create commands to substitute file output variables.
20972 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20973 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20974 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20975 echo "_ACAWK" &&
20976 echo "_ACEOF"
20977 } >conf$$files.sh &&
20978 . ./conf$$files.sh ||
20979 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20980 rm -f conf$$files.sh
20983 echo "cat >conf$$subs.awk <<_ACEOF" &&
20984 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20985 echo "_ACEOF"
20986 } >conf$$subs.sh ||
20987 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20989 ac_delim='%!_!# '
20990 for ac_last_try in false false false false false :; do
20991 . ./conf$$subs.sh ||
20992 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20994 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20995 if test $ac_delim_n = $ac_delim_num; then
20996 break
20997 elif $ac_last_try; then
20998 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20999 else
21000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21002 done
21003 rm -f conf$$subs.sh
21005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21006 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21007 _ACEOF
21008 sed -n '
21010 s/^/S["/; s/!.*/"]=/
21013 s/^[^!]*!//
21014 :repl
21015 t repl
21016 s/'"$ac_delim"'$//
21017 t delim
21020 s/\(.\{148\}\)..*/\1/
21021 t more1
21022 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21025 b repl
21026 :more1
21027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21030 s/.\{148\}//
21031 t nl
21032 :delim
21034 s/\(.\{148\}\)..*/\1/
21035 t more2
21036 s/["\\]/\\&/g; s/^/"/; s/$/"/
21039 :more2
21040 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21043 s/.\{148\}//
21044 t delim
21045 ' <conf$$subs.awk | sed '
21046 /^[^""]/{
21048 s/\n//
21050 ' >>$CONFIG_STATUS || ac_write_fail=1
21051 rm -f conf$$subs.awk
21052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21053 _ACAWK
21054 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21055 for (key in S) S_is_set[key] = 1
21056 FS = "\a"
21057 \$ac_cs_awk_pipe_init
21060 line = $ 0
21061 nfields = split(line, field, "@")
21062 substed = 0
21063 len = length(field[1])
21064 for (i = 2; i < nfields; i++) {
21065 key = field[i]
21066 keylen = length(key)
21067 if (S_is_set[key]) {
21068 value = S[key]
21069 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21070 len += length(value) + length(field[++i])
21071 substed = 1
21072 } else
21073 len += 1 + keylen
21075 if (nfields == 3 && !substed) {
21076 key = field[2]
21077 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21078 \$ac_cs_awk_read_file
21079 next
21082 print line
21084 \$ac_cs_awk_pipe_fini
21085 _ACAWK
21086 _ACEOF
21087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21088 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21089 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21090 else
21092 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21093 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21094 _ACEOF
21096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21098 # trailing colons and then remove the whole line if VPATH becomes empty
21099 # (actually we leave an empty line to preserve line numbers).
21100 if test "x$srcdir" = x.; then
21101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21102 s/:*\$(srcdir):*/:/
21103 s/:*\${srcdir}:*/:/
21104 s/:*@srcdir@:*/:/
21105 s/^\([^=]*=[ ]*\):*/\1/
21106 s/:*$//
21107 s/^[^=]*=[ ]*$//
21111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21112 fi # test -n "$CONFIG_FILES"
21114 # Set up the scripts for CONFIG_HEADERS section.
21115 # No need to generate them if there are no CONFIG_HEADERS.
21116 # This happens for instance with `./config.status Makefile'.
21117 if test -n "$CONFIG_HEADERS"; then
21118 cat >"$tmp/defines.awk" <<\_ACAWK ||
21119 BEGIN {
21120 _ACEOF
21122 # Transform confdefs.h into an awk script `defines.awk', embedded as
21123 # here-document in config.status, that substitutes the proper values into
21124 # config.h.in to produce config.h.
21126 # Create a delimiter string that does not exist in confdefs.h, to ease
21127 # handling of long lines.
21128 ac_delim='%!_!# '
21129 for ac_last_try in false false :; do
21130 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21131 if test -z "$ac_t"; then
21132 break
21133 elif $ac_last_try; then
21134 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21135 else
21136 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21138 done
21140 # For the awk script, D is an array of macro values keyed by name,
21141 # likewise P contains macro parameters if any. Preserve backslash
21142 # newline sequences.
21144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21145 sed -n '
21146 s/.\{148\}/&'"$ac_delim"'/g
21147 t rset
21148 :rset
21149 s/^[ ]*#[ ]*define[ ][ ]*/ /
21150 t def
21152 :def
21153 s/\\$//
21154 t bsnl
21155 s/["\\]/\\&/g
21156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21157 D["\1"]=" \3"/p
21158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21160 :bsnl
21161 s/["\\]/\\&/g
21162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21163 D["\1"]=" \3\\\\\\n"\\/p
21164 t cont
21165 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21166 t cont
21168 :cont
21170 s/.\{148\}/&'"$ac_delim"'/g
21171 t clear
21172 :clear
21173 s/\\$//
21174 t bsnlc
21175 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21177 :bsnlc
21178 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21179 b cont
21180 ' <confdefs.h | sed '
21181 s/'"$ac_delim"'/"\\\
21182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21185 for (key in D) D_is_set[key] = 1
21186 FS = "\a"
21188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21189 line = \$ 0
21190 split(line, arg, " ")
21191 if (arg[1] == "#") {
21192 defundef = arg[2]
21193 mac1 = arg[3]
21194 } else {
21195 defundef = substr(arg[1], 2)
21196 mac1 = arg[2]
21198 split(mac1, mac2, "(") #)
21199 macro = mac2[1]
21200 prefix = substr(line, 1, index(line, defundef) - 1)
21201 if (D_is_set[macro]) {
21202 # Preserve the white space surrounding the "#".
21203 print prefix "define", macro P[macro] D[macro]
21204 next
21205 } else {
21206 # Replace #undef with comments. This is necessary, for example,
21207 # in the case of _POSIX_SOURCE, which is predefined and required
21208 # on some systems where configure will not decide to define it.
21209 if (defundef == "undef") {
21210 print "/*", prefix defundef, macro, "*/"
21211 next
21215 { print }
21216 _ACAWK
21217 _ACEOF
21218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21219 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21220 fi # test -n "$CONFIG_HEADERS"
21223 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21224 shift
21225 for ac_tag
21227 case $ac_tag in
21228 :[FHLC]) ac_mode=$ac_tag; continue;;
21229 esac
21230 case $ac_mode$ac_tag in
21231 :[FHL]*:*);;
21232 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21233 :[FH]-) ac_tag=-:-;;
21234 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21235 esac
21236 ac_save_IFS=$IFS
21237 IFS=:
21238 set x $ac_tag
21239 IFS=$ac_save_IFS
21240 shift
21241 ac_file=$1
21242 shift
21244 case $ac_mode in
21245 :L) ac_source=$1;;
21246 :[FH])
21247 ac_file_inputs=
21248 for ac_f
21250 case $ac_f in
21251 -) ac_f="$tmp/stdin";;
21252 *) # Look for the file first in the build tree, then in the source tree
21253 # (if the path is not absolute). The absolute path cannot be DOS-style,
21254 # because $ac_f cannot contain `:'.
21255 test -f "$ac_f" ||
21256 case $ac_f in
21257 [\\/$]*) false;;
21258 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21259 esac ||
21260 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21261 esac
21262 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21263 as_fn_append ac_file_inputs " '$ac_f'"
21264 done
21266 # Let's still pretend it is `configure' which instantiates (i.e., don't
21267 # use $as_me), people would be surprised to read:
21268 # /* config.h. Generated by config.status. */
21269 configure_input='Generated from '`
21270 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21271 `' by configure.'
21272 if test x"$ac_file" != x-; then
21273 configure_input="$ac_file. $configure_input"
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21275 $as_echo "$as_me: creating $ac_file" >&6;}
21277 # Neutralize special characters interpreted by sed in replacement strings.
21278 case $configure_input in #(
21279 *\&* | *\|* | *\\* )
21280 ac_sed_conf_input=`$as_echo "$configure_input" |
21281 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21282 *) ac_sed_conf_input=$configure_input;;
21283 esac
21285 case $ac_tag in
21286 *:-:* | *:-) cat >"$tmp/stdin" \
21287 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21288 esac
21290 esac
21292 ac_dir=`$as_dirname -- "$ac_file" ||
21293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21294 X"$ac_file" : 'X\(//\)[^/]' \| \
21295 X"$ac_file" : 'X\(//\)$' \| \
21296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21297 $as_echo X"$ac_file" |
21298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21299 s//\1/
21302 /^X\(\/\/\)[^/].*/{
21303 s//\1/
21306 /^X\(\/\/\)$/{
21307 s//\1/
21310 /^X\(\/\).*/{
21311 s//\1/
21314 s/.*/./; q'`
21315 as_dir="$ac_dir"; as_fn_mkdir_p
21316 ac_builddir=.
21318 case "$ac_dir" in
21319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21321 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21322 # A ".." for each directory in $ac_dir_suffix.
21323 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21324 case $ac_top_builddir_sub in
21325 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21326 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21327 esac ;;
21328 esac
21329 ac_abs_top_builddir=$ac_pwd
21330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21331 # for backward compatibility:
21332 ac_top_builddir=$ac_top_build_prefix
21334 case $srcdir in
21335 .) # We are building in place.
21336 ac_srcdir=.
21337 ac_top_srcdir=$ac_top_builddir_sub
21338 ac_abs_top_srcdir=$ac_pwd ;;
21339 [\\/]* | ?:[\\/]* ) # Absolute name.
21340 ac_srcdir=$srcdir$ac_dir_suffix;
21341 ac_top_srcdir=$srcdir
21342 ac_abs_top_srcdir=$srcdir ;;
21343 *) # Relative name.
21344 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21345 ac_top_srcdir=$ac_top_build_prefix$srcdir
21346 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21347 esac
21348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21351 case $ac_mode in
21354 # CONFIG_FILE
21357 case $INSTALL in
21358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21359 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21360 esac
21361 ac_MKDIR_P=$MKDIR_P
21362 case $MKDIR_P in
21363 [\\/$]* | ?:[\\/]* ) ;;
21364 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21365 esac
21366 _ACEOF
21368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21369 # If the template does not know about datarootdir, expand it.
21370 # FIXME: This hack should be removed a few years after 2.60.
21371 ac_datarootdir_hack=; ac_datarootdir_seen=
21372 ac_sed_dataroot='
21373 /datarootdir/ {
21377 /@datadir@/p
21378 /@docdir@/p
21379 /@infodir@/p
21380 /@localedir@/p
21381 /@mandir@/p'
21382 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21383 *datarootdir*) ac_datarootdir_seen=yes;;
21384 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21386 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21387 _ACEOF
21388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21389 ac_datarootdir_hack='
21390 s&@datadir@&$datadir&g
21391 s&@docdir@&$docdir&g
21392 s&@infodir@&$infodir&g
21393 s&@localedir@&$localedir&g
21394 s&@mandir@&$mandir&g
21395 s&\\\${datarootdir}&$datarootdir&g' ;;
21396 esac
21397 _ACEOF
21399 # Neutralize VPATH when `$srcdir' = `.'.
21400 # Shell code in configure.ac might set extrasub.
21401 # FIXME: do we really want to maintain this feature?
21402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21403 ac_sed_extra="$ac_vpsub
21404 $extrasub
21405 _ACEOF
21406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21409 s|@configure_input@|$ac_sed_conf_input|;t t
21410 s&@top_builddir@&$ac_top_builddir_sub&;t t
21411 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21412 s&@srcdir@&$ac_srcdir&;t t
21413 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21414 s&@top_srcdir@&$ac_top_srcdir&;t t
21415 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21416 s&@builddir@&$ac_builddir&;t t
21417 s&@abs_builddir@&$ac_abs_builddir&;t t
21418 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21419 s&@INSTALL@&$ac_INSTALL&;t t
21420 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21421 $ac_datarootdir_hack
21423 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21424 if $ac_cs_awk_getline; then
21425 $AWK -f "$tmp/subs.awk"
21426 else
21427 $AWK -f "$tmp/subs.awk" | $SHELL
21428 fi >$tmp/out \
21429 || as_fn_error "could not create $ac_file" "$LINENO" 5
21431 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21432 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21433 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21435 which seems to be undefined. Please make sure it is defined." >&5
21436 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21437 which seems to be undefined. Please make sure it is defined." >&2;}
21439 rm -f "$tmp/stdin"
21440 case $ac_file in
21441 -) cat "$tmp/out" && rm -f "$tmp/out";;
21442 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21443 esac \
21444 || as_fn_error "could not create $ac_file" "$LINENO" 5
21448 # CONFIG_HEADER
21450 if test x"$ac_file" != x-; then
21452 $as_echo "/* $configure_input */" \
21453 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21454 } >"$tmp/config.h" \
21455 || as_fn_error "could not create $ac_file" "$LINENO" 5
21456 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21458 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21459 else
21460 rm -f "$ac_file"
21461 mv "$tmp/config.h" "$ac_file" \
21462 || as_fn_error "could not create $ac_file" "$LINENO" 5
21464 else
21465 $as_echo "/* $configure_input */" \
21466 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21467 || as_fn_error "could not create -" "$LINENO" 5
21469 # Compute "$ac_file"'s index in $config_headers.
21470 _am_arg="$ac_file"
21471 _am_stamp_count=1
21472 for _am_header in $config_headers :; do
21473 case $_am_header in
21474 $_am_arg | $_am_arg:* )
21475 break ;;
21477 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21478 esac
21479 done
21480 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21481 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21482 X"$_am_arg" : 'X\(//\)[^/]' \| \
21483 X"$_am_arg" : 'X\(//\)$' \| \
21484 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21485 $as_echo X"$_am_arg" |
21486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21487 s//\1/
21490 /^X\(\/\/\)[^/].*/{
21491 s//\1/
21494 /^X\(\/\/\)$/{
21495 s//\1/
21498 /^X\(\/\).*/{
21499 s//\1/
21502 s/.*/./; q'`/stamp-h$_am_stamp_count
21505 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21506 $as_echo "$as_me: executing $ac_file commands" >&6;}
21508 esac
21511 case $ac_file$ac_mode in
21512 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21513 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21514 # are listed without --file. Let's play safe and only enable the eval
21515 # if we detect the quoting.
21516 case $CONFIG_FILES in
21517 *\'*) eval set x "$CONFIG_FILES" ;;
21518 *) set x $CONFIG_FILES ;;
21519 esac
21520 shift
21521 for mf
21523 # Strip MF so we end up with the name of the file.
21524 mf=`echo "$mf" | sed -e 's/:.*$//'`
21525 # Check whether this is an Automake generated Makefile or not.
21526 # We used to match only the files named `Makefile.in', but
21527 # some people rename them; so instead we look at the file content.
21528 # Grep'ing the first line is not enough: some people post-process
21529 # each Makefile.in and add a new line on top of each file to say so.
21530 # Grep'ing the whole file is not good either: AIX grep has a line
21531 # limit of 2048, but all sed's we know have understand at least 4000.
21532 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21533 dirpart=`$as_dirname -- "$mf" ||
21534 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21535 X"$mf" : 'X\(//\)[^/]' \| \
21536 X"$mf" : 'X\(//\)$' \| \
21537 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21538 $as_echo X"$mf" |
21539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21540 s//\1/
21543 /^X\(\/\/\)[^/].*/{
21544 s//\1/
21547 /^X\(\/\/\)$/{
21548 s//\1/
21551 /^X\(\/\).*/{
21552 s//\1/
21555 s/.*/./; q'`
21556 else
21557 continue
21559 # Extract the definition of DEPDIR, am__include, and am__quote
21560 # from the Makefile without running `make'.
21561 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21562 test -z "$DEPDIR" && continue
21563 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21564 test -z "am__include" && continue
21565 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21566 # When using ansi2knr, U may be empty or an underscore; expand it
21567 U=`sed -n 's/^U = //p' < "$mf"`
21568 # Find all dependency output files, they are included files with
21569 # $(DEPDIR) in their names. We invoke sed twice because it is the
21570 # simplest approach to changing $(DEPDIR) to its actual value in the
21571 # expansion.
21572 for file in `sed -n "
21573 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21574 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21575 # Make sure the directory exists.
21576 test -f "$dirpart/$file" && continue
21577 fdir=`$as_dirname -- "$file" ||
21578 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21579 X"$file" : 'X\(//\)[^/]' \| \
21580 X"$file" : 'X\(//\)$' \| \
21581 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21582 $as_echo X"$file" |
21583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21584 s//\1/
21587 /^X\(\/\/\)[^/].*/{
21588 s//\1/
21591 /^X\(\/\/\)$/{
21592 s//\1/
21595 /^X\(\/\).*/{
21596 s//\1/
21599 s/.*/./; q'`
21600 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21601 # echo "creating $dirpart/$file"
21602 echo '# dummy' > "$dirpart/$file"
21603 done
21604 done
21607 "mkdirs":C)
21608 for dir in etc lisp ; do
21609 test -d ${dir} || mkdir ${dir}
21610 done
21612 "epaths":C)
21613 echo creating src/epaths.h
21614 ${MAKE-make} epaths-force
21616 "gdbinit":C)
21617 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21618 echo creating src/.gdbinit
21619 echo source $srcdir/src/.gdbinit > src/.gdbinit
21623 esac
21624 done # for ac_tag
21627 as_fn_exit 0
21628 _ACEOF
21629 ac_clean_files=$ac_clean_files_save
21631 test $ac_write_fail = 0 ||
21632 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21635 # configure is writing to config.log, and then calls config.status.
21636 # config.status does its own redirection, appending to config.log.
21637 # Unfortunately, on DOS this fails, as config.log is still kept open
21638 # by configure, so config.status won't be able to write to it; its
21639 # output is simply discarded. So we exec the FD to /dev/null,
21640 # effectively closing config.log, so it can be properly (re)opened and
21641 # appended to by config.status. When coming back to configure, we
21642 # need to make the FD available again.
21643 if test "$no_create" != yes; then
21644 ac_cs_success=:
21645 ac_config_status_args=
21646 test "$silent" = yes &&
21647 ac_config_status_args="$ac_config_status_args --quiet"
21648 exec 5>/dev/null
21649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21650 exec 5>>config.log
21651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21652 # would make configure fail if this is the last instruction.
21653 $ac_cs_success || as_fn_exit $?
21655 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21657 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}